Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Terraria.Player
- public void UpdateBuffs(int i)
- {
- int[] array = new int[423];
- for (int j = 0; j < 1000; j++)
- {
- if (Main.projectile[j].active && Main.projectile[j].owner == i)
- {
- array[Main.projectile[j].type]++;
- }
- }
- for (int k = 0; k < 22; k++)
- {
- if (this.buffType[k] > 0 && this.buffTime[k] > 0)
- {
- if (this.whoAmi == Main.myPlayer && this.buffType[k] != 28)
- {
- this.buffTime[k]--;
- }
- if (this.buffType[k] == 1)
- {
- this.lavaImmune = true;
- this.fireWalk = true;
- }
- else
- {
- if (this.buffType[k] == 2)
- {
- this.lifeRegen += 2;
- }
- else
- {
- if (this.buffType[k] == 3)
- {
- this.moveSpeed += 0.25f;
- }
- else
- {
- if (this.buffType[k] == 4)
- {
- this.gills = true;
- }
- else
- {
- if (this.buffType[k] == 5)
- {
- this.statDefense += 8;
- }
- else
- {
- if (this.buffType[k] == 6)
- {
- this.manaRegenBuff = true;
- }
- else
- {
- if (this.buffType[k] == 7)
- {
- this.magicDamage += 0.2f;
- }
- else
- {
- if (this.buffType[k] == 8)
- {
- this.slowFall = true;
- }
- else
- {
- if (this.buffType[k] == 9)
- {
- this.findTreasure = true;
- }
- else
- {
- if (this.buffType[k] == 10)
- {
- this.invis = true;
- }
- else
- {
- if (this.buffType[k] == 11)
- {
- Lighting.addLight((int)(this.position.X + (float)(this.width / 2)) / 16, (int)(this.position.Y + (float)(this.height / 2)) / 16, 0.8f, 0.95f, 1f);
- }
- else
- {
- if (this.buffType[k] == 12)
- {
- this.nightVision = true;
- }
- else
- {
- if (this.buffType[k] == 13)
- {
- this.enemySpawns = true;
- }
- else
- {
- if (this.buffType[k] == 14)
- {
- this.thorns = true;
- }
- else
- {
- if (this.buffType[k] == 15)
- {
- this.waterWalk = true;
- }
- else
- {
- if (this.buffType[k] == 16)
- {
- this.archery = true;
- }
- else
- {
- if (this.buffType[k] == 17)
- {
- this.detectCreature = true;
- }
- else
- {
- if (this.buffType[k] == 18)
- {
- this.gravControl = true;
- }
- else
- {
- if (this.buffType[k] == 30)
- {
- this.bleed = true;
- }
- else
- {
- if (this.buffType[k] == 31)
- {
- this.confused = true;
- }
- else
- {
- if (this.buffType[k] == 32)
- {
- this.slow = true;
- }
- else
- {
- if (this.buffType[k] == 35)
- {
- this.silence = true;
- }
- else
- {
- if (this.buffType[k] == 46)
- {
- this.chilled = true;
- }
- else
- {
- if (this.buffType[k] == 47)
- {
- this.frozen = true;
- }
- else
- {
- if (this.buffType[k] == 69)
- {
- this.ichor = true;
- this.statDefense -= 20;
- }
- else
- {
- if (this.buffType[k] == 36)
- {
- this.brokenArmor = true;
- }
- else
- {
- if (this.buffType[k] == 48)
- {
- this.honey = true;
- }
- else
- {
- if (this.buffType[k] == 59)
- {
- this.shadowDodge = true;
- }
- else
- {
- if (this.buffType[k] == 93)
- {
- this.ammoBox = true;
- }
- else
- {
- if (this.buffType[k] == 58)
- {
- this.palladiumRegen = true;
- }
- else
- {
- if (this.buffType[k] == 88)
- {
- this.chaosState = true;
- }
- else
- {
- if (this.buffType[k] == 63)
- {
- this.moveSpeed += 1f;
- }
- else
- {
- if (this.buffType[k] == 104)
- {
- this.pickSpeed -= 0.25f;
- }
- else
- {
- if (this.buffType[k] == 105)
- {
- this.lifeMagnet = true;
- }
- else
- {
- if (this.buffType[k] == 106)
- {
- this.calmed = true;
- }
- else
- {
- if (this.buffType[k] == 121)
- {
- this.fishingSkill += 15;
- }
- else
- {
- if (this.buffType[k] == 122)
- {
- this.sonarPotion = true;
- }
- else
- {
- if (this.buffType[k] == 123)
- {
- this.cratePotion = true;
- }
- else
- {
- if (this.buffType[k] == 107)
- {
- this.tileSpeed += 0.25f;
- this.wallSpeed += 0.25f;
- this.blockRange++;
- }
- else
- {
- if (this.buffType[k] == 108)
- {
- this.kbBuff = true;
- }
- else
- {
- if (this.buffType[k] == 109)
- {
- this.ignoreWater = true;
- this.accFlipper = true;
- }
- else
- {
- if (this.buffType[k] == 110)
- {
- this.maxMinions++;
- }
- else
- {
- if (this.buffType[k] == 111)
- {
- this.dangerSense = true;
- }
- else
- {
- if (this.buffType[k] == 112)
- {
- this.ammoPotion = true;
- }
- else
- {
- if (this.buffType[k] == 113)
- {
- this.lifeForce = true;
- this.statLifeMax2 += this.statLifeMax / 5 / 20 * 20;
- }
- else
- {
- if (this.buffType[k] == 114)
- {
- this.endurance += 0.1f;
- }
- else
- {
- if (this.buffType[k] == 115)
- {
- this.meleeCrit += 10;
- this.rangedCrit += 10;
- this.magicCrit += 10;
- }
- else
- {
- if (this.buffType[k] == 116)
- {
- this.inferno = true;
- Lighting.addLight((int)(this.Center().X / 16f), (int)(this.Center().Y / 16f), 0.65f, 0.4f, 0.1f);
- int num = 24;
- float num2 = 200f;
- bool flag = this.infernoCounter % 60 == 0;
- int num3 = 10;
- if (this.whoAmi == Main.myPlayer)
- {
- for (int l = 0; l < 200; l++)
- {
- NPC nPC = Main.npc[l];
- if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && !nPC.buffImmune[num] && Vector2.Distance(this.center(), nPC.center()) <= num2)
- {
- if (nPC.HasBuff(num) == -1)
- {
- nPC.AddBuff(num, 120, false);
- }
- if (flag)
- {
- nPC.StrikeNPC(num3, 0f, 0, false, false);
- if (Main.netMode != 0)
- {
- NetMessage.SendData(28, -1, -1, "", l, (float)num3, 0f, 0f, 0);
- }
- }
- }
- }
- if (this.hostile)
- {
- for (int m = 0; m < 255; m++)
- {
- Player player = Main.player[m];
- if (player != this && player.active && !player.dead && player.hostile && !player.buffImmune[num] && (player.team != this.team || player.team == 0) && Vector2.Distance(this.center(), player.center()) <= num2)
- {
- if (player.HasBuff(num) == -1)
- {
- player.AddBuff(num, 120, true);
- }
- if (flag)
- {
- player.Hurt(num3, 0, true, false, "", false);
- if (Main.netMode != 0)
- {
- NetMessage.SendData(26, -1, -1, Lang.deathMsg(this.whoAmi, -1, -1, -1), m, 0f, (float)num3, 1f, 0);
- }
- }
- }
- }
- }
- }
- }
- else
- {
- if (this.buffType[k] == 117)
- {
- this.meleeDamage += 0.1f;
- this.rangedDamage += 0.1f;
- this.magicDamage += 0.1f;
- this.minionDamage += 0.1f;
- }
- else
- {
- if (this.buffType[k] == 119)
- {
- this.loveStruck = true;
- }
- else
- {
- if (this.buffType[k] == 120)
- {
- this.stinky = true;
- }
- else
- {
- if (this.buffType[k] == 124)
- {
- this.resistCold = true;
- }
- else
- {
- if (this.buffType[k] == 94)
- {
- this.manaSick = true;
- this.manaSickReduction = Player.manaSickLessDmg * ((float)this.buffTime[k] / (float)Player.manaSickTime);
- }
- else
- {
- if (this.buffType[k] >= 95 && this.buffType[k] <= 97)
- {
- this.buffTime[k] = 5;
- int num4 = (int)((byte)(1 + this.buffType[k] - 95));
- if (this.beetleOrbs > 0 && this.beetleOrbs != num4)
- {
- if (this.beetleOrbs > num4)
- {
- this.DelBuff(k);
- }
- else
- {
- for (int n = 0; n < 22; n++)
- {
- if (this.buffType[n] >= 95 && this.buffType[n] <= 95 + num4 - 1)
- {
- this.DelBuff(n);
- }
- }
- }
- }
- this.beetleOrbs = num4;
- if (!this.beetleDefense)
- {
- this.beetleOrbs = 0;
- this.DelBuff(k);
- }
- else
- {
- this.beetleBuff = true;
- }
- }
- else
- {
- if (this.buffType[k] >= 98 && this.buffType[k] <= 100)
- {
- int num5 = (int)((byte)(1 + this.buffType[k] - 98));
- if (this.beetleOrbs > 0 && this.beetleOrbs != num5)
- {
- if (this.beetleOrbs > num5)
- {
- this.DelBuff(k);
- }
- else
- {
- for (int num6 = 0; num6 < 22; num6++)
- {
- if (this.buffType[num6] >= 98 && this.buffType[num6] <= 98 + num5 - 1)
- {
- this.DelBuff(num6);
- }
- }
- }
- }
- this.beetleOrbs = num5;
- this.meleeDamage += 0.1f * (float)this.beetleOrbs;
- this.meleeSpeed += 0.1f * (float)this.beetleOrbs;
- if (!this.beetleOffense)
- {
- this.beetleOrbs = 0;
- this.DelBuff(k);
- }
- else
- {
- this.beetleBuff = true;
- }
- }
- else
- {
- if (this.buffType[k] == 62)
- {
- if ((double)this.statLife <= (double)this.statLifeMax2 * 0.25)
- {
- Lighting.addLight((int)(this.Center().X / 16f), (int)(this.Center().Y / 16f), 0.1f, 0.2f, 0.45f);
- this.iceBarrier = true;
- this.statDefense += 30;
- this.iceBarrierFrameCounter += 1;
- if (this.iceBarrierFrameCounter > 2)
- {
- this.iceBarrierFrameCounter = 0;
- this.iceBarrierFrame += 1;
- if (this.iceBarrierFrame >= 12)
- {
- this.iceBarrierFrame = 0;
- }
- }
- }
- else
- {
- this.DelBuff(k);
- }
- }
- else
- {
- if (this.buffType[k] == 49)
- {
- for (int num7 = 191; num7 <= 194; num7++)
- {
- if (array[num7] > 0)
- {
- this.pygmy = true;
- }
- }
- if (!this.pygmy)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 83)
- {
- if (array[317] > 0)
- {
- this.raven = true;
- }
- if (!this.raven)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 64)
- {
- if (array[266] > 0)
- {
- this.slime = true;
- }
- if (!this.slime)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 125)
- {
- if (array[373] > 0)
- {
- this.hornetMinion = true;
- }
- if (!this.hornetMinion)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 126)
- {
- if (array[375] > 0)
- {
- this.impMinion = true;
- }
- if (!this.impMinion)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 133)
- {
- if (array[390] > 0 || array[391] > 0 || array[392] > 0)
- {
- this.spiderMinion = true;
- }
- if (!this.spiderMinion)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 134)
- {
- if (array[387] > 0 || array[388] > 0)
- {
- this.twinsMinion = true;
- }
- if (!this.twinsMinion)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 135)
- {
- if (array[393] > 0 || array[394] > 0 || array[395] > 0)
- {
- this.pirateMinion = true;
- }
- if (!this.pirateMinion)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 139)
- {
- if (array[407] > 0)
- {
- this.sharknadoMinion = true;
- }
- if (!this.sharknadoMinion)
- {
- this.DelBuff(k);
- }
- else
- {
- this.buffTime[k] = 18000;
- }
- }
- else
- {
- if (this.buffType[k] == 90)
- {
- this.mount.SetMount(0, this, false);
- this.buffTime[k] = 10;
- }
- else
- {
- if (this.buffType[k] == 128)
- {
- this.mount.SetMount(1, this, false);
- this.buffTime[k] = 10;
- }
- else
- {
- if (this.buffType[k] == 129)
- {
- this.mount.SetMount(2, this, false);
- this.buffTime[k] = 10;
- }
- else
- {
- if (this.buffType[k] == 130)
- {
- this.mount.SetMount(3, this, false);
- this.buffTime[k] = 10;
- }
- else
- {
- if (this.buffType[k] == 118)
- {
- this.mount.SetMount(6, this, true);
- this.buffTime[k] = 10;
- }
- else
- {
- if (this.buffType[k] == 138)
- {
- this.mount.SetMount(6, this, false);
- this.buffTime[k] = 10;
- }
- else
- {
- if (this.buffType[k] == 131)
- {
- this.ignoreWater = true;
- this.accFlipper = true;
- this.mount.SetMount(4, this, false);
- this.buffTime[k] = 10;
- }
- else
- {
- if (this.buffType[k] == 132)
- {
- this.mount.SetMount(5, this, false);
- this.buffTime[k] = 10;
- }
- else
- {
- if (this.buffType[k] == 37)
- {
- if (Main.wof >= 0 && Main.npc[Main.wof].type == 113)
- {
- this.gross = true;
- this.buffTime[k] = 10;
- }
- else
- {
- this.DelBuff(k);
- }
- }
- else
- {
- if (this.buffType[k] == 38)
- {
- this.buffTime[k] = 10;
- this.tongued = true;
- }
- else
- {
- if (this.buffType[k] == 19)
- {
- this.buffTime[k] = 18000;
- this.lightOrb = true;
- bool flag2 = true;
- if (array[18] > 0)
- {
- flag2 = false;
- }
- if (flag2)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 18, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 27 || this.buffType[k] == 101 || this.buffType[k] == 102)
- {
- this.buffTime[k] = 18000;
- bool flag3 = true;
- int num8 = 72;
- if (this.buffType[k] == 27)
- {
- this.blueFairy = true;
- }
- if (this.buffType[k] == 101)
- {
- num8 = 86;
- this.redFairy = true;
- }
- if (this.buffType[k] == 102)
- {
- num8 = 87;
- this.greenFairy = true;
- }
- if (this.head == 45 && this.body == 26 && this.legs == 25)
- {
- num8 = 72;
- }
- if (array[num8] > 0)
- {
- flag3 = false;
- }
- if (flag3)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, num8, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 40)
- {
- this.buffTime[k] = 18000;
- this.bunny = true;
- bool flag4 = true;
- if (array[111] > 0)
- {
- flag4 = false;
- }
- if (flag4)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 111, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 41)
- {
- this.buffTime[k] = 18000;
- this.penguin = true;
- bool flag5 = true;
- if (array[112] > 0)
- {
- flag5 = false;
- }
- if (flag5)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 112, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 91)
- {
- this.buffTime[k] = 18000;
- this.puppy = true;
- bool flag6 = true;
- if (array[334] > 0)
- {
- flag6 = false;
- }
- if (flag6)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 334, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 92)
- {
- this.buffTime[k] = 18000;
- this.grinch = true;
- bool flag7 = true;
- if (array[353] > 0)
- {
- flag7 = false;
- }
- if (flag7)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 353, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 84)
- {
- this.buffTime[k] = 18000;
- this.blackCat = true;
- bool flag8 = true;
- if (array[319] > 0)
- {
- flag8 = false;
- }
- if (flag8)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 319, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 61)
- {
- this.buffTime[k] = 18000;
- this.dino = true;
- bool flag9 = true;
- if (array[236] > 0)
- {
- flag9 = false;
- }
- if (flag9)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 236, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 65)
- {
- this.buffTime[k] = 18000;
- this.eyeSpring = true;
- bool flag10 = true;
- if (array[268] > 0)
- {
- flag10 = false;
- }
- if (flag10)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 268, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 66)
- {
- this.buffTime[k] = 18000;
- this.snowman = true;
- bool flag11 = true;
- if (array[269] > 0)
- {
- flag11 = false;
- }
- if (flag11)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 269, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 42)
- {
- this.buffTime[k] = 18000;
- this.turtle = true;
- bool flag12 = true;
- if (array[127] > 0)
- {
- flag12 = false;
- }
- if (flag12)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 127, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 45)
- {
- this.buffTime[k] = 18000;
- this.eater = true;
- bool flag13 = true;
- if (array[175] > 0)
- {
- flag13 = false;
- }
- if (flag13)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 175, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 50)
- {
- this.buffTime[k] = 18000;
- this.skeletron = true;
- bool flag14 = true;
- if (array[197] > 0)
- {
- flag14 = false;
- }
- if (flag14)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 197, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 51)
- {
- this.buffTime[k] = 18000;
- this.hornet = true;
- bool flag15 = true;
- if (array[198] > 0)
- {
- flag15 = false;
- }
- if (flag15)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 198, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 52)
- {
- this.buffTime[k] = 18000;
- this.tiki = true;
- bool flag16 = true;
- if (array[199] > 0)
- {
- flag16 = false;
- }
- if (flag16)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 199, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 53)
- {
- this.buffTime[k] = 18000;
- this.lizard = true;
- bool flag17 = true;
- if (array[200] > 0)
- {
- flag17 = false;
- }
- if (flag17)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 200, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 54)
- {
- this.buffTime[k] = 18000;
- this.parrot = true;
- bool flag18 = true;
- if (array[208] > 0)
- {
- flag18 = false;
- }
- if (flag18)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 208, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 55)
- {
- this.buffTime[k] = 18000;
- this.truffle = true;
- bool flag19 = true;
- if (array[209] > 0)
- {
- flag19 = false;
- }
- if (flag19)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 209, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 56)
- {
- this.buffTime[k] = 18000;
- this.sapling = true;
- bool flag20 = true;
- if (array[210] > 0)
- {
- flag20 = false;
- }
- if (flag20)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 210, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 85)
- {
- this.buffTime[k] = 18000;
- this.cSapling = true;
- bool flag21 = true;
- if (array[324] > 0)
- {
- flag21 = false;
- }
- if (flag21)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 324, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 81)
- {
- this.buffTime[k] = 18000;
- this.spider = true;
- bool flag22 = true;
- if (array[313] > 0)
- {
- flag22 = false;
- }
- if (flag22)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 313, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 82)
- {
- this.buffTime[k] = 18000;
- this.squashling = true;
- bool flag23 = true;
- if (array[314] > 0)
- {
- flag23 = false;
- }
- if (flag23)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 314, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 57)
- {
- this.buffTime[k] = 18000;
- this.wisp = true;
- bool flag24 = true;
- if (array[211] > 0)
- {
- flag24 = false;
- }
- if (flag24)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 211, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 60)
- {
- this.buffTime[k] = 18000;
- this.crystalLeaf = true;
- bool flag25 = true;
- for (int num9 = 0; num9 < 1000; num9++)
- {
- if (Main.projectile[num9].active && Main.projectile[num9].owner == this.whoAmi && Main.projectile[num9].type == 226)
- {
- if (!flag25)
- {
- Main.projectile[num9].Kill();
- }
- flag25 = false;
- }
- }
- if (flag25)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 226, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 127)
- {
- this.buffTime[k] = 18000;
- this.zephyrfish = true;
- bool flag26 = true;
- if (array[380] > 0)
- {
- flag26 = false;
- }
- if (flag26)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 380, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 136)
- {
- this.buffTime[k] = 18000;
- this.miniMinotaur = true;
- bool flag27 = true;
- if (array[398] > 0)
- {
- flag27 = false;
- }
- if (flag27)
- {
- Projectile.NewProjectile(this.position.X + (float)(this.width / 2), this.position.Y + (float)(this.height / 2), 0f, 0f, 398, 0, 0f, this.whoAmi, 0f, 0f);
- }
- }
- else
- {
- if (this.buffType[k] == 70)
- {
- this.venom = true;
- }
- else
- {
- if (this.buffType[k] == 20)
- {
- this.poisoned = true;
- }
- else
- {
- if (this.buffType[k] == 21)
- {
- this.potionDelay = this.buffTime[k];
- }
- else
- {
- if (this.buffType[k] == 22)
- {
- this.blind = true;
- }
- else
- {
- if (this.buffType[k] == 80)
- {
- this.blackout = true;
- }
- else
- {
- if (this.buffType[k] == 23)
- {
- this.noItems = true;
- }
- else
- {
- if (this.buffType[k] == 24)
- {
- this.onFire = true;
- }
- else
- {
- if (this.buffType[k] == 103)
- {
- this.dripping = true;
- }
- else
- {
- if (this.buffType[k] == 137)
- {
- this.drippingSlime = true;
- }
- else
- {
- if (this.buffType[k] == 67)
- {
- this.burned = true;
- }
- else
- {
- if (this.buffType[k] == 68)
- {
- this.suffocating = true;
- }
- else
- {
- if (this.buffType[k] == 39)
- {
- this.onFire2 = true;
- }
- else
- {
- if (this.buffType[k] == 44)
- {
- this.onFrostBurn = true;
- }
- else
- {
- if (this.buffType[k] == 43)
- {
- this.paladinBuff = true;
- }
- else
- {
- if (this.buffType[k] == 29)
- {
- this.magicCrit += 2;
- this.magicDamage += 0.05f;
- this.statManaMax2 += 20;
- this.manaCost -= 0.02f;
- }
- else
- {
- if (this.buffType[k] == 28)
- {
- if (!Main.dayTime && this.wolfAcc && !this.merman)
- {
- this.lifeRegen++;
- this.wereWolf = true;
- this.meleeCrit += 2;
- this.meleeDamage += 0.051f;
- this.meleeSpeed += 0.051f;
- this.statDefense += 3;
- this.moveSpeed += 0.05f;
- }
- else
- {
- this.DelBuff(k);
- }
- }
- else
- {
- if (this.buffType[k] == 33)
- {
- this.meleeDamage -= 0.051f;
- this.meleeSpeed -= 0.051f;
- this.statDefense -= 4;
- this.moveSpeed -= 0.1f;
- }
- else
- {
- if (this.buffType[k] == 25)
- {
- this.statDefense -= 4;
- this.meleeCrit += 2;
- this.meleeDamage += 0.1f;
- this.meleeSpeed += 0.1f;
- }
- else
- {
- if (this.buffType[k] == 26)
- {
- this.statDefense += 2;
- this.meleeCrit += 2;
- this.meleeDamage += 0.05f;
- this.meleeSpeed += 0.05f;
- this.magicCrit += 2;
- this.magicDamage += 0.05f;
- this.rangedCrit += 2;
- this.rangedDamage += 0.05f;
- this.minionDamage += 0.05f;
- this.minionKB += 0.5f;
- this.moveSpeed += 0.2f;
- }
- else
- {
- if (this.buffType[k] == 71)
- {
- this.meleeEnchant = 1;
- }
- else
- {
- if (this.buffType[k] == 73)
- {
- this.meleeEnchant = 2;
- }
- else
- {
- if (this.buffType[k] == 74)
- {
- this.meleeEnchant = 3;
- }
- else
- {
- if (this.buffType[k] == 75)
- {
- this.meleeEnchant = 4;
- }
- else
- {
- if (this.buffType[k] == 76)
- {
- this.meleeEnchant = 5;
- }
- else
- {
- if (this.buffType[k] == 77)
- {
- this.meleeEnchant = 6;
- }
- else
- {
- if (this.buffType[k] == 78)
- {
- this.meleeEnchant = 7;
- }
- else
- {
- if (this.buffType[k] == 79)
- {
- this.meleeEnchant = 8;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement