52703 {
52706 if (item.type == 3001)
52707 {
52708 int healLife = item.healLife;
52710 num = Main.rand.Next(healLife,
num2 + 1);
52711 if (Main.myPlayer ==
whoAmI)
52712 {
52713 float num3 = Main.rand.NextFloat();
52716 {
52718 }
52719 else if (
num3 <= 0.3
f)
52720 {
52722 }
52723 else if (
num3 <= 0.6
f)
52724 {
52726 }
52728 {
52730 }
52731 }
52732 }
52736 {
52738 }
52740 {
52742 }
52743 if (
num > 0 && Main.myPlayer ==
whoAmI)
52744 {
52746 }
52747 if (healMana > 0)
52748 {
52750 if (Main.myPlayer ==
whoAmI)
52751 {
52753 }
52754 }
52755 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
int statLifeMax2
The maximum health this player can have, adjusted by buffs and equipment.
int statManaMax2
The maximum mana this player can have, adjusted by buffs and equipment.
void ManaEffect(int manaAmount)
int statLife
The current health of this player. Capped at F:Terraria.Player.statLifeMax2. If you increase this v...
void HealEffect(int healAmount, bool broadcast=true)
Spawns a T:Terraria.CombatText indicating the player healed healAmount life and syncs it if broadcas...
int GetHealMana(Item item, bool quickHeal=false)
void SetImmuneTimeForAllTypes(int time)
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Gives the player the provided buff. This accounts for if the player is immune to the buff....
int GetHealLife(Item item, bool quickHeal=false)
int statMana
The current mana of this player. Capped at F:Terraria.Player.statManaMax2. If you increase this val...