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

◆ UseHealthMaxIncreasingItem()

void Terraria.Player.UseHealthMaxIncreasingItem ( int increase)
inline

Definition at line 45021 of file Player.cs.

45022 {
45023 if (increase < 0)
45024 {
45025 increase = 0;
45026 }
45029 statLife += increase;
45030 if (Main.myPlayer == whoAmI)
45031 {
45033 }
45034 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
int statLifeMax2
The maximum health this player can have, adjusted by buffs and equipment.
Definition Player.cs:2092
int statLife
The current health of this player. Capped at F:Terraria.Player.statLifeMax2. If you increase this v...
Definition Player.cs:2102
void HealEffect(int healAmount, bool broadcast=true)
Spawns a T:Terraria.CombatText indicating the player healed healAmount life and syncs it if broadcas...
Definition Player.cs:4980
int statLifeMax
The maximum health this player can have without adjustment. You should not modify this value....
Definition Player.cs:2087

References Terraria.Player.HealEffect(), Terraria.Main.myPlayer, Terraria.Player.statLife, Terraria.Player.statLifeMax, Terraria.Player.statLifeMax2, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.ItemCheck_UseLifeCrystal(), and Terraria.Player.ItemCheck_UseLifeFruit().

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