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

◆ UpdateBuffs()

void Terraria.Player.UpdateBuffs ( int i)
inline

Definition at line 3937 of file Player.cs.

3938 {
3939 int num = this.soulDrain;
3940 int whoAmI = this.whoAmI;
3941 if (num == 0)
3942 {
3943 }
3944 int myPlayer = Main.myPlayer;
3945 int num2 = 151;
3946 int num3 = 2;
3947 int num4 = 1;
3948 long num5 = 0L;
3949 this.AddBuff(num2, num3, num4 != 0, num5 != 0L);
3950 if (num == 0)
3951 {
3952 }
3953 if (num != 0)
3954 {
3955 int num6 = 1;
3956 this.UpdateStarvingState(num6 != 0);
3957 }
3958 int num7 = 1;
3959 int[] array = this.buffType;
3960 if (array == null)
3961 {
3962 }
3963 int myPlayer2 = Main.myPlayer;
3964 if (array == null)
3965 {
3966 }
3967 int[] array2 = this.buffType;
3968 if (this.buffType == null)
3969 {
3970 }
3971 int[] array3 = this.buffType;
3972 bool[] array4 = this.buffImmune;
3973 this.lavaImmune = num7 != 0;
3974 this.fireWalk = num7 != 0;
3975 }
class f__AnonymousType0<< Count > j__TPar
bool[] buffImmune
Definition Player.cs:21173
void UpdateStarvingState(bool withEmote)
Definition Player.cs:4020
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Definition Player.cs:2280

References Terraria.Player.AddBuff(), System.array, Terraria.Player.buffImmune, Terraria.Player.buffType, j__TPar, System.L, Terraria.Main.myPlayer, Terraria.Player.soulDrain, Terraria.Player.UpdateStarvingState(), and Terraria.Entity.whoAmI.