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

◆ Place()

override bool Terraria.GameContent.Biomes.DeadMansChestBiome.Place ( Point origin,
StructureMap structures )
inline

Definition at line 102 of file DeadMansChestBiome.cs.

103 {
104 if (!IsAGoodSpot(origin))
105 {
106 return false;
107 }
108 ClearCaches();
109 Point position = new Point(origin.X, origin.Y + 1);
110 FindBoulderTrapSpots(position);
111 FindDartTrapSpots(position);
112 FindExplosiveTrapSpots(position);
113 if (!AreThereEnoughTraps())
114 {
115 return false;
116 }
118 foreach (DartTrapPlacementAttempt dartTrapPlacementSpot in _dartTrapPlacementSpots)
119 {
121 }
122 foreach (WirePlacementAttempt wirePlacementSpot in _wirePlacementSpots)
123 {
125 }
126 foreach (BoulderPlacementAttempt boulderPlacementSpot in _boulderPlacementSpots)
127 {
129 }
130 foreach (ExplosivePlacementAttempt item in _explosivePlacementAttempt)
131 {
133 }
135 return true;
136 }
void PlaceWireLine(Point start, int offsetX, int offsetY, int steps)
List< BoulderPlacementAttempt > _boulderPlacementSpots
void ActuallyPlaceDartTrap(Point position, int directionX, int x, int y, int xPush, Tile t)
List< ExplosivePlacementAttempt > _explosivePlacementAttempt
void ActuallyPlaceBoulderTrap(Point position, int yPush, int requiredHeight, int bestType)
List< DartTrapPlacementAttempt > _dartTrapPlacementSpots

References Terraria.GameContent.Biomes.DeadMansChestBiome._boulderPlacementSpots, Terraria.GameContent.Biomes.DeadMansChestBiome._dartTrapPlacementSpots, Terraria.GameContent.Biomes.DeadMansChestBiome._explosivePlacementAttempt, Terraria.GameContent.Biomes.DeadMansChestBiome._wirePlacementSpots, Terraria.GameContent.Biomes.DeadMansChestBiome.ActuallyPlaceBoulderTrap(), Terraria.GameContent.Biomes.DeadMansChestBiome.ActuallyPlaceDartTrap(), Terraria.GameContent.Biomes.DeadMansChestBiome.ActuallyPlaceExplosive(), Terraria.GameContent.Biomes.DeadMansChestBiome.AreThereEnoughTraps(), Terraria.GameContent.Biomes.DeadMansChestBiome.ClearCaches(), Terraria.GameContent.Biomes.DeadMansChestBiome.FindBoulderTrapSpots(), Terraria.GameContent.Biomes.DeadMansChestBiome.FindDartTrapSpots(), Terraria.GameContent.Biomes.DeadMansChestBiome.FindExplosiveTrapSpots(), Terraria.GameContent.Biomes.DeadMansChestBiome.IsAGoodSpot(), Terraria.GameContent.Biomes.DeadMansChestBiome.PlaceWireLine(), Terraria.GameContent.Biomes.DeadMansChestBiome.PlaceWiresForExplosives(), Terraria.GameContent.Biomes.DeadMansChestBiome.TurnGoldChestIntoDeadMansChest(), Microsoft.Xna.Framework.Point.X, and Microsoft.Xna.Framework.Point.Y.