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_ApplyPetBuffs()

void Terraria.Player.ItemCheck_ApplyPetBuffs ( Item sItem)
inlineprivate

Definition at line 17426 of file Player.cs.

17427 {
17428 int num = 1;
17429 int num2 = sItem.buffType;
17430 this.CheckForPetAchievement(num2);
17431 int whoAmI = this.whoAmI;
17432 if (num == 0)
17433 {
17434 }
17435 int myPlayer = Main.myPlayer;
17436 int type = sItem.type;
17437 if (type == 0)
17438 {
17439 }
17440 if (type != 0)
17441 {
17442 int num3 = 3600;
17443 int num4 = 1;
17444 long num5 = 0L;
17445 this.AddBuff(num2, num3, num4 != 0, num5 != 0L);
17446 }
17447 if (type == 0)
17448 {
17449 }
17450 int myPlayer2 = Main.myPlayer;
17451 int type2 = sItem.type;
17452 int num6 = 3600;
17453 int num7 = 1;
17454 long num8 = 0L;
17455 this.AddBuff(num2, num6, num7 != 0, num8 != 0L);
17456 if (type2 == 0)
17457 {
17458 }
17459 int myPlayer3 = Main.myPlayer;
17460 int type3 = sItem.type;
17461 int num9 = 3600;
17462 int num10 = 1;
17463 long num11 = 0L;
17464 this.AddBuff(num2, num9, num10 != 0, num11 != 0L);
17465 if (type3 == 0)
17466 {
17467 }
17468 int myPlayer4 = Main.myPlayer;
17469 int type4 = sItem.type;
17470 int num12 = 3600;
17471 int num13 = 1;
17472 long num14 = 0L;
17473 this.AddBuff(num2, num12, num13 != 0, num14 != 0L);
17474 if (type4 == 0)
17475 {
17476 }
17477 int myPlayer5 = Main.myPlayer;
17478 int type5 = sItem.type;
17479 int num15 = 3600;
17480 int num16 = 1;
17481 long num17 = 0L;
17482 this.AddBuff(num2, num15, num16 != 0, num17 != 0L);
17483 if (type5 == 0)
17484 {
17485 }
17486 int myPlayer6 = Main.myPlayer;
17487 int type6 = sItem.type;
17488 int num18 = 3600;
17489 int num19 = 1;
17490 long num20 = 0L;
17491 this.AddBuff(num2, num18, num19 != 0, num20 != 0L);
17492 if (type6 == 0)
17493 {
17494 }
17495 int myPlayer7 = Main.myPlayer;
17496 int type7 = sItem.type;
17497 int num21 = 3600;
17498 int num22 = 1;
17499 long num23 = 0L;
17500 this.AddBuff(num2, num21, num22 != 0, num23 != 0L);
17501 if (type7 == 0)
17502 {
17503 }
17504 int myPlayer8 = Main.myPlayer;
17505 if (sItem.type == 0)
17506 {
17507 }
17508 int num24 = 27;
17509 long num25 = 0L;
17510 if (num24 == 0)
17511 {
17512 }
17513 int[] array = this.buffType;
17514 this.DelBuff((int)num25);
17515 }
class f__AnonymousType0<< Count > j__TPar
void CheckForPetAchievement(int buffID)
Definition Player.cs:5032
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Definition Player.cs:2280
void DelBuff(int b)
Definition Player.cs:2479

References Terraria.Player.AddBuff(), System.array, Terraria.Player.buffType, Terraria.Player.CheckForPetAchievement(), Terraria.Player.DelBuff(), j__TPar, System.L, Terraria.Main.myPlayer, and Terraria.Entity.whoAmI.