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

◆ GetStatScalingFactors()

static void Terraria.NPC.GetStatScalingFactors ( int numPlayers,
out float balance,
out float boost )
inlinestatic

Definition at line 13574 of file NPC.cs.

13575 {
13576 balance = 1f;
13577 boost = 0.35f;
13578 for (int i = 1; i < numPlayers; i++)
13579 {
13580 balance += boost;
13581 boost += (1f - boost) / 3f;
13582 }
13583 if (balance > 8f)
13584 {
13585 balance = (balance * 2f + 8f) / 3f;
13586 }
13587 if (balance > 1000f)
13588 {
13589 balance = 1000f;
13590 }
13591 }

Referenced by Terraria.NPC.GetBalance(), Terraria.NPC.GetMyBalance(), and Terraria.NPC.ScaleStats().

+ Here is the caller graph for this function: