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

◆ CastLightOpen()

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

Definition at line 881 of file DelegateMethods.cs.

882 {
883 if (x < 0 || x >= Main.maxTilesX || y < 0 || y >= Main.maxTilesY)
884 {
885 return false;
886 }
887 if (Main.tile[x, y] == null)
888 {
889 return false;
890 }
891 if (!Main.tile[x, y].active() || Main.tile[x, y].inActive() || Main.tileSolidTop[Main.tile[x, y].type] || !Main.tileSolid[Main.tile[x, y].type])
892 {
893 Lighting.AddLight(x, y, v3_1.X, v3_1.Y, v3_1.Z);
894 }
895 return true;
896 }

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

Referenced by Terraria.Projectile.AI_001(), Terraria.Projectile.AI_007_GrapplingHooks(), Terraria.Projectile.AI_026(), Terraria.Projectile.AI_075(), Terraria.NPC.AI_107_ImprovedWalkers(), Terraria.NPC.AI_109_DarkMage(), Terraria.Projectile.AI_137_LightningAura(), Terraria.Projectile.AI_139_ExplosiveTrapExplosion(), Terraria.Projectile.AI_144_DD2Pet(), Terraria.Projectile.AI_156_BatOfLight(), Terraria.Projectile.AI_180_FairyQueenSunDance(), Terraria.Player.ApplyEquipFunctional(), Terraria.Mount.UpdateEffects(), and Terraria.Player.Yoraiz0rEye().

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