Definition at line 13268 of file NPC.cs.
13269 {
13273 {
13275 }
13277 {
13279 lifeMax = (int)((
float)
lifeMax * (gameModeData.EnemyMaxLifeMultiplier + (float)
num2));
13280 }
13281 damage = (int)((
float)
damage * (gameModeData.EnemyDamageMultiplier + (float)
num2));
13283 }
static bool[] ProjectileNPC
If true for a given NPC type (F:Terraria.NPC.type), then that NPC is treated specially for difficulty...
int damage
The amount of contact damage this NPC deals. Changing this WILL NOT change the amount of damage done...
int lifeMax
The maximum life of this NPC.
float knockBackResist
How much of the knockback it receives will actually apply. 1f: full knockback; 0f: no knockback....
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....
float KnockbackToEnemiesMultiplier
float EnemyMoneyDropMultiplier
References Terraria.NPC.damage, Terraria.DataStructures.GameModeData.EnemyMoneyDropMultiplier, Terraria.Main.getGoodWorld, Terraria.DataStructures.GameModeData.IsJourneyMode, Terraria.NPC.knockBackResist, Terraria.DataStructures.GameModeData.KnockbackToEnemiesMultiplier, Terraria.NPC.lifeMax, Terraria.ID.NPCID.Sets.ProjectileNPC, Terraria.NPC.type, and Terraria.NPC.value.
Referenced by Terraria.NPC.ScaleStats().