Definition at line 48647 of file Player.cs.
48648 {
48649 int num =
item.healLife;
48650 int healMana =
item.healMana;
48651 if (
item.type == 3001)
48652 {
48653 int healLife =
item.healLife;
48655 num = Main.rand.Next(healLife,
num2 + 1);
48656 if (Main.myPlayer ==
whoAmI)
48657 {
48658 float num3 = Main.rand.NextFloat();
48661 {
48663 }
48664 else if (
num3 <= 0.3f)
48665 {
48667 }
48668 else if (
num3 <= 0.6f)
48669 {
48671 }
48673 {
48675 }
48676 }
48677 }
48681 {
48683 }
48685 {
48687 }
48688 if (num > 0 && Main.myPlayer ==
whoAmI)
48689 {
48691 }
48692 if (healMana > 0)
48693 {
48695 if (Main.myPlayer ==
whoAmI)
48696 {
48698 }
48699 }
48700 }
void ManaEffect(int manaAmount)
void HealEffect(int healAmount, bool broadcast=true)
void SetImmuneTimeForAllTypes(int time)
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
References System.item, Terraria.Main.myPlayer, and Terraria.Main.rand.
Referenced by Terraria.Player.QuickHeal(), and Terraria.Player.QuickMana().