terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ ItemCheck_UseManaCrystal()

void Terraria.Player.ItemCheck_UseManaCrystal ( Item sItem)
inlineprivate

Definition at line 15479 of file Player.cs.

15480 {
15481 int type = sItem.type;
15482 int num = this.itemAnimation;
15483 int num2 = this.statManaMax;
15484 if (this.itemTime != 0)
15485 {
15486 return;
15487 }
15488 int useTime = sItem.useTime;
15489 int num3 = this.statManaMax2;
15490 int num4 = this.statMana;
15492 this.itemTime = useTime;
15493 this.itemTimeMax = useTime;
15495 this.statMana = useTime;
15496 if (num2 == 0)
15497 {
15498 }
15499 int myPlayer = Main.myPlayer;
15500 int whoAmI = this.whoAmI;
15501 int num5 = 20;
15502 this.ManaEffect(num5);
15503 int num6 = 1;
15505 }
class f__AnonymousType0<< Count > j__TPar
static void HandleSpecialEvent(Player player, int eventID)
void ManaEffect(int manaAmount)
Definition Player.cs:1832

References Terraria.GameContent.Achievements.AchievementsHelper.HandleSpecialEvent(), Terraria.Player.itemAnimation, Terraria.Player.itemTime, j__TPar, Terraria.Player.ManaEffect(), Terraria.Main.myPlayer, Terraria.Player.statMana, Terraria.Player.statManaMax, Terraria.Player.statManaMax2, and Terraria.Entity.whoAmI.