public override void apply(ref int buffTime, Player target) { buffTime = 18000; applyOverridable(target); for (int i = 0; i < 1000; i++) { if (Main.projectile[i].active && Main.projectile[i].owner == target.whoAmi && Main.projectile[i].type == projectileID) return; } Projectile.NewProjectile(target.position.X + (float)(target.width / 2), target.position.Y + (float)(target.height / 2), 0f, 0f, projectileID, 0, 0f, target.whoAmi, 0f, 0f); }
public override void apply(ref int buffTime, Player target) { target.statDefense += 2; target.meleeCrit += 2; target.meleeDamage += 0.05f; target.meleeSpeed += 0.05f; target.magicCrit += 2; target.magicDamage += 0.05f; target.rangedCrit += 2; target.magicDamage += 0.05f; target.minionDamage += 0.05f; target.minionKB += 0.5f; target.moveSpeed += 0.2f; }
public override void apply(ref int buffTime, Player target){}
protected override void applyOverridable(Player target) { projectileID = 209; target.truffle = true; }
protected override void applyOverridable(Player target) { projectileID = 200; target.lizard = true; }
protected override void applyOverridable(Player target) { projectileID = 198; target.hornet = true; }
public override void apply(ref int buffTime, Player target) { if (Main.myPlayer == target.whoAmi) { for (int m = 0; m < 1000; m++) { if (Main.projectile[m].active && Main.projectile[m].owner == target.whoAmi && Main.projectile[m].type >= 191 && Main.projectile[m].type <= 194) { target.pygmy = true; break; } } if (!target.pygmy) buffTime = 0; else buffTime = 18000; } }
public override void apply(ref int buffTime, Player target) { target.frozen = true; }
public override void apply(ref int buffTime, Player target) { target.brokenArmor = true; }
public override void apply(ref int buffTime, Player target) { target.silence = true; }
public override void apply(ref int buffTime, Player target) { target.meleeDamage -= 0.051f; target.meleeSpeed -= 0.051f; target.statDefense -= 4; target.moveSpeed -= 0.1f; }
public override void apply(ref int buffTime, Player target) { target.magicCrit += 2; target.magicDamage += 0.05f; target.statManaMax2 += 20; target.manaCost -= 0.02f; }
public override void apply(ref int buffTime, Player target) { if (!Main.dayTime && target.wolfAcc && !target.merman) { target.lifeRegen++; target.wereWolf = true; target.meleeCrit += 2; target.meleeDamage += 0.051f; target.meleeSpeed += 0.051f; target.statDefense += 3; target.moveSpeed += 0.05f; } else buffTime = 0; }
protected override void applyOverridable(Player target) { target.greenFairy = true; projectileID = 87; if (target.head == 45 && target.body == 26 && target.legs == 25) projectileID = 72; }
protected override void applyOverridable(Player target) { target.blueFairy = true; }
protected override void applyOverridable(Player target) { projectileID = 175; target.eater = true; }
public override void apply(ref int buffTime, Player target) { target.chilled = true; }
public override void apply(ref int buffTime, Player target) { if (Main.wof >= 0 && Main.npc[Main.wof].type == 113) { target.gross = true; buffTime = 10; } else buffTime = 0; }
public override void apply(ref int buffTime, Player target) { target.ichor = true; target.statDefense -= 20; }
public override void apply(ref int buffTime, Player target) { buffTime = 10; target.tongued = true; }
protected override void applyOverridable(Player target) { projectileID = 197; target.skeletron = true; }
public override void apply(ref int buffTime, Player target) { target.onFire2 = true; }
protected override void applyOverridable(Player target) { projectileID = 199; target.tiki = true; }
protected override void applyOverridable(Player target) { projectileID = 111; target.bunny = true; }
protected override void applyOverridable(Player target) { projectileID = 208; target.parrot = true; }
protected override void applyOverridable(Player target) { projectileID = 112; target.penguin = true; }
protected override void applyOverridable(Player target) { projectileID = 210; target.sapling = true; }
public override void apply(ref int buffTime, Player target) { target.paladinBuff = true; }
public PlayerStates(Player Ref) { }
public override void apply(ref int buffTime, Player target) { target.onFrostBurn = true; }