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

◆ CastLight()

static bool Terraria.DelegateMethods.CastLight ( int x,
int y )
inlinestatic

Definition at line 598 of file DelegateMethods.cs.

599 {
600 if (x < 0 || x >= Main.maxTilesX || y < 0 || y >= Main.maxTilesY)
601 {
602 return false;
603 }
604 if (Main.tile[x, y] == null)
605 {
606 return false;
607 }
608 Lighting.AddLight(x, y, v3_1.X, v3_1.Y, v3_1.Z);
609 return true;
610 }

References Terraria.Lighting.AddLight(), Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.tile, and Terraria.DelegateMethods.v3_1.

Referenced by Terraria.Projectile.AI_136_BetsyBreath().