Definition at line 84701 of file NPC.cs.
84702 {
84703
84704
84705
84706
84708 {
84710 if (Main.expertMode)
84711 {
84713 }
84714 if (
closestPlayer.RollLuck(
range) == 0 && Main.wallDungeon[Main.tile[(
int)
base.Center.X / 16, (
int)
base.Center.Y / 16].wall])
84715 {
84717 }
84718 }
84719 }
int lifeMax
The maximum life of this NPC.
IEntitySource GetSpawnSource_NPCHurt()
float value
How many copper coins the NPC will drop when killed (100 copper coins = 1 silver coin etc....
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
static int NewNPC(IEntitySource source, int X, int Y, int Type, int Start=0, float ai0=0f, float ai1=0f, float ai2=0f, float ai3=0f, int Target=255)
Spawns an NPC into the game world with the given type. This method should not be called on multipla...
static bool downedPlantBoss
Denotes whether or not Plantera has been defeated at least once in the current world.
References Terraria.NPC.downedPlantBoss, Terraria.Main.expertMode, Terraria.NPC.GetSpawnSource_NPCHurt(), Terraria.Main.hardMode, Terraria.NPC.HasPlayerTarget, Terraria.NPC.lifeMax, Terraria.NPC.NewNPC(), Terraria.Main.player, Terraria.NPC.target, Terraria.Main.tile, Terraria.NPC.type, Terraria.NPC.value, and Terraria.Main.wallDungeon.
Referenced by Terraria.NPC.DoDeathEvents().