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

◆ countWires()

static int Terraria.WorldGen.countWires ( int x,
int y,
int size )
inlinestatic

Definition at line 6309 of file WorldGen.cs.

6310 {
6311 int num = 0;
6312 for (int i = x - size; i <= x + size; i++)
6313 {
6314 for (int j = y - size; j <= y + size; j++)
6315 {
6316 if (InWorld(i, j))
6317 {
6318 if (Main.tile[i, j].wire())
6319 {
6320 num++;
6321 }
6322 if (Main.tile[i, j].wire2())
6323 {
6324 num++;
6325 }
6326 if (Main.tile[i, j].wire3())
6327 {
6328 num++;
6329 }
6330 if (Main.tile[i, j].wire4())
6331 {
6332 num++;
6333 }
6334 }
6335 }
6336 }
6337 return num;
6338 }
static bool InWorld(int x, int y, int fluff=0)
Definition WorldGen.cs:6481

References Terraria.WorldGen.InWorld(), and Terraria.Main.tile.

Referenced by Terraria.GameContent.Biomes.DeadMansChestBiome.IsAGoodSpot().

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