Terraria v1.4.4.9
Terraria 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 41329 of file Player.cs.

41330 {
41331 tileToCreate = sItem.createTile;
41332 previewPlaceStyle = sItem.placeStyle;
41333 overrideCanPlace = null;
41334 forcedRandom = null;
41335 if (UsingBiomeTorches && tileToCreate == 215 && previewPlaceStyle == 0)
41336 {
41338 }
41339 if (targetTile != null && targetTile.active())
41340 {
41341 ushort type = targetTile.type;
41342 if (tileToCreate == 23 && type == 59)
41343 {
41344 tileToCreate = 661;
41345 }
41346 if (tileToCreate == 199 && type == 59)
41347 {
41348 tileToCreate = 662;
41349 }
41350 }
41352 {
41353 overrideCanPlace = false;
41354 }
41355 }
bool UsingBiomeTorches
Definition Player.cs:3426
int BiomeCampfirePlaceStyle(int style)
Definition Player.cs:38042
bool ModifyFlexibleWandPlacementInfo(ref int tileType, ref int tileStyle, ref int? forcedRandom)
Definition Player.cs:37587

References System.type.