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

◆ AddBuff()

void Terraria.Player.AddBuff ( int type,
int timeToAdd,
bool quiet = true,
bool foodHack = false )
inline

Definition at line 2280 of file Player.cs.

2281 {
2282 bool[] array = this.buffImmune;
2283 if (array == null)
2284 {
2285 if (array == null)
2286 {
2287 }
2288 int whoAmI;
2289 if (array != null)
2290 {
2291 if (array == null)
2292 {
2293 }
2294 int myPlayer = Main.myPlayer;
2295 whoAmI = this.whoAmI;
2296 }
2297 if (whoAmI == 0)
2298 {
2299 }
2300 if (whoAmI != 0)
2301 {
2302 long num = 0L;
2303 if (whoAmI == 0)
2304 {
2305 }
2306 if (whoAmI == 0)
2307 {
2308 }
2309 int[] array2 = this.buffType;
2310 if (whoAmI != 0)
2311 {
2312 this.DelBuff((int)num);
2313 }
2314 return;
2315 }
2317 bool flag = this.AddBuff_TryUpdatingExistingBuffTime(type, num2);
2318 }
2319 }
class f__AnonymousType0<< Count > j__TPar
bool[] buffImmune
Definition Player.cs:21173
int AddBuff_DetermineBuffTimeToAdd(int type, int time1)
Definition Player.cs:2441
bool AddBuff_TryUpdatingExistingBuffTime(int type, int time)
Definition Player.cs:2416
void DelBuff(int b)
Definition Player.cs:2479

References Terraria.Player.AddBuff_DetermineBuffTimeToAdd(), Terraria.Player.AddBuff_TryUpdatingExistingBuffTime(), System.array, Terraria.Player.buffImmune, Terraria.Player.buffType, Terraria.Player.DelBuff(), j__TPar, System.L, Terraria.Main.myPlayer, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.ApplyTouchDamage(), Terraria.Player.BrainOfConfusionDodge(), Terraria.Player.FloorVisuals(), Terraria.Player.ItemCheck_ApplyPetBuffs(), Terraria.Player.ItemCheck_CatchCritters(), Terraria.Player.OnKillNPC(), GUIPlayerCreateMenu.SetupStartingItems(), Terraria.Player.UpdateBuffs(), Terraria.Player.UpdateHungerBuffs(), and Terraria.Player.WOFTongue().