TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ FigureOutWhatToPlace()

void Terraria.Player.FigureOutWhatToPlace ( Tile targetTile,
Item sItem,
out int tileToCreate,
out int previewPlaceStyle,
out bool? overrideCanPlace,
out int? forcedRandom )
inlineprivate

Definition at line 42656 of file Player.cs.

42657 {
42658 tileToCreate = sItem.createTile;
42659 previewPlaceStyle = sItem.placeStyle;
42660 overrideCanPlace = null;
42661 forcedRandom = null;
42662 if (UsingBiomeTorches && tileToCreate == 215 && previewPlaceStyle == 0)
42663 {
42665 }
42666 if (targetTile != null && targetTile.active())
42667 {
42668 ushort type = targetTile.type;
42669 if (tileToCreate == 23 && type == 59)
42670 {
42671 tileToCreate = 661;
42672 }
42673 if (tileToCreate == 199 && type == 59)
42674 {
42675 tileToCreate = 662;
42676 }
42677 }
42679 {
42680 overrideCanPlace = false;
42681 }
42682 }
int BiomeCampfirePlaceStyle(ref int type, ref int style)
Definition Player.cs:39064
bool UsingBiomeTorches
Definition Player.cs:4289
bool ModifyFlexibleWandPlacementInfo(ref int tileType, ref int tileStyle, ref int? forcedRandom)
Definition Player.cs:38580

References Terraria.Player.BiomeCampfirePlaceStyle(), Terraria.Player.ModifyFlexibleWandPlacementInfo(), and Terraria.Player.UsingBiomeTorches.

Referenced by Terraria.Player.PlaceThing_Tiles(), and Terraria.Player.UpdatePlacementPreview().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: