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

◆ GetFishingPondState()

static void Terraria.Projectile.GetFishingPondState ( int x,
int y,
out bool lava,
out bool honey,
out int numWaters,
out int chumCount )
inlinestaticprivate

Definition at line 20412 of file Projectile.cs.

20413 {
20414 //IL_0094: Unknown result type (might be due to invalid IL or missing references)
20415 lava = false;
20416 honey = false;
20417 numWaters = 0;
20418 chumCount = 0;
20419 Point tileCoords = default(Point);
20420 ((Point)(ref tileCoords))._002Ector(0, 0);
20422 for (int i = minX; i <= maxX; i++)
20423 {
20424 int num = y;
20425 while (Main.tile[i, num] != null && Main.tile[i, num].liquid > 0 && !WorldGen.SolidTile(i, num) && num < Main.maxTilesY - 10)
20426 {
20427 numWaters++;
20428 num++;
20429 if (Main.tile[i, num].lava())
20430 {
20431 lava = true;
20432 }
20433 else if (Main.tile[i, num].honey())
20434 {
20435 honey = true;
20436 }
20437 tileCoords.X = i;
20438 tileCoords.Y = num;
20439 chumCount += Main.instance.ChumBucketProjectileHelper.GetChumsInLocation(tileCoords);
20440 }
20441 }
20442 if (honey)
20443 {
20444 numWaters = (int)((double)numWaters * 1.5);
20445 }
20446 }
static void GetFishingPondWidth(int x, int y, out int minX, out int maxX)

References Terraria.Projectile.GetFishingPondWidth(), Terraria.Main.instance, Terraria.Main.maxTilesY, Terraria.WorldGen.SolidTile(), and Terraria.Main.tile.

Referenced by Terraria.Projectile.FishingCheck().

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