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

◆ PetAnimal()

void Terraria.Player.PetAnimal ( int animalNpcIndex)
inline

Definition at line 9770 of file Player.cs.

9771 {
9772 int num = 1;
9773 if (num == 0)
9774 {
9775 }
9776 long num2 = 0L;
9777 Microsoft.Xna.Framework.Vector2 bottom = base.Bottom;
9778 if (num == 0)
9779 {
9780 }
9781 bool flag = WorldGen.SolidTileAllowBottomSlope(0, (int)num2);
9782 bool flag2 = this.isPettingAnimal;
9783 if (flag2)
9784 {
9786 if (!flag2)
9787 {
9788 }
9789 return;
9790 }
9791 int num3 = 1;
9793 Mount mount = this.mount;
9794 bool active = mount._active;
9795 if (active)
9796 {
9797 mount.Dismount(this);
9798 }
9799 long num4 = 0L;
9800 this.ChangeDir((int)num4);
9803 if (!active)
9804 {
9805 }
9806 if (!true)
9807 {
9808 }
9809 int num5 = 16256;
9810 this.gravDir = (float)num5;
9811 int whoAmI = this.whoAmI;
9812 int myPlayer = Main.myPlayer;
9813 int num6 = 21;
9815 }
class f__AnonymousType0<< Count > j__TPar
static void HandleSpecialEvent(Player player, int eventID)
void Dismount(Player mountedPlayer)
Definition Mount.cs:1578
bool isPettingAnimal
Definition Player.cs:23120
void RemoveAllGrapplingHooks()
Definition Player.cs:9981
void ChangeDir(int dir)
Definition Player.cs:13595

References Terraria.Mount._active, Terraria.Entity.active, Terraria.Player.ChangeDir(), Terraria.Mount.Dismount(), Terraria.GameContent.Achievements.AchievementsHelper.HandleSpecialEvent(), Terraria.Player.isPettingAnimal, j__TPar, System.L, Terraria.Player.mount, Terraria.Main.myPlayer, Terraria.Player.RemoveAllGrapplingHooks(), Terraria.WorldGen.SolidTileAllowBottomSlope(), and Terraria.Entity.whoAmI.