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

◆ GetFishingPondWidth()

static void Terraria.Projectile.GetFishingPondWidth ( int x,
int y,
out int minX,
out int maxX )
inlinestaticprivate

Definition at line 20448 of file Projectile.cs.

20449 {
20450 minX = x;
20451 maxX = x;
20452 while (minX > 10 && Main.tile[minX, y] != null && Main.tile[minX, y].liquid > 0 && !WorldGen.SolidTile(minX, y))
20453 {
20454 minX--;
20455 }
20456 while (maxX < Main.maxTilesX - 10 && Main.tile[maxX, y] != null && Main.tile[maxX, y].liquid > 0 && !WorldGen.SolidTile(maxX, y))
20457 {
20458 maxX++;
20459 }
20460 }

References Terraria.Main.maxTilesX, Terraria.WorldGen.SolidTile(), and Terraria.Main.tile.

Referenced by Terraria.Projectile.GetFishingPondState().

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