|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinevirtual |
Allows you to customize this NPC's stats when the difficulty is expert or higher.
This runs after F:Terraria.NPC.value, F:Terraria.NPC.lifeMax, F:Terraria.NPC.damage, F:Terraria.NPC.knockBackResist have been adjusted for the current difficulty, (expert/master/FTW)
It is common to multiply lifeMax by the balance factor, and sometimes adjust knockbackResist.
Eg:
lifeMax = (int)(lifeMax * balance * bossAdjustment)
| numPlayers | The number of active players |
| balance | Scaling factor that increases by a fraction for each player |
| bossAdjustment | An extra reduction factor to be applied to boss life in high difficulty modes |
Definition at line 182 of file ModNPC.cs.