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

◆ GetLifePercent()

float Terraria.NPC.GetLifePercent ( )
inline

Definition at line 2305 of file NPC.cs.

2306 {
2307 GetLifeStats(out var statLife, out var statLifeMax);
2308 return (float)statLife / (float)statLifeMax;
2309 }
void GetLifeStats(out int statLife, out int statLifeMax)
Definition NPC.cs:2294

References Terraria.NPC.GetLifeStats().

Referenced by Terraria.GameContent.CoinLossRevengeSystem.CacheEnemy().

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