コード例 #1
0
 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);
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public override void apply(ref int buffTime, Player target){}
コード例 #4
0
 protected override void applyOverridable(Player target) { projectileID = 209; target.truffle = true; }
コード例 #5
0
 protected override void applyOverridable(Player target) { projectileID = 200; target.lizard = true; }
コード例 #6
0
 protected override void applyOverridable(Player target) { projectileID = 198; target.hornet = true; }
コード例 #7
0
 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;
     }
 }
コード例 #8
0
 public override void apply(ref int buffTime, Player target) { target.frozen = true; }
コード例 #9
0
 public override void apply(ref int buffTime, Player target)
 {
     target.brokenArmor = true;
 }
コード例 #10
0
 public override void apply(ref int buffTime, Player target)
 {
     target.silence = true;
 }
コード例 #11
0
 public override void apply(ref int buffTime, Player target)
 {
     target.meleeDamage -= 0.051f;
     target.meleeSpeed -= 0.051f;
     target.statDefense -= 4;
     target.moveSpeed -= 0.1f;
 }
コード例 #12
0
 public override void apply(ref int buffTime, Player target)
 {
     target.magicCrit += 2;
     target.magicDamage += 0.05f;
     target.statManaMax2 += 20;
     target.manaCost -= 0.02f;
 }
コード例 #13
0
 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;
 }
コード例 #14
0
 protected override void applyOverridable(Player target)
 {
     target.greenFairy = true;
     projectileID = 87;
     if (target.head == 45 && target.body == 26 && target.legs == 25) projectileID = 72;
 }
コード例 #15
0
 protected override void applyOverridable(Player target) { target.blueFairy = true; }
コード例 #16
0
 protected override void applyOverridable(Player target) { projectileID = 175; target.eater = true; }
コード例 #17
0
 public override void apply(ref int buffTime, Player target) { target.chilled = true; }
コード例 #18
0
 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;
 }
コード例 #19
0
 public override void apply(ref int buffTime, Player target)
 {
     target.ichor = true;
     target.statDefense -= 20;
 }
コード例 #20
0
 public override void apply(ref int buffTime, Player target)
 {
     buffTime = 10;
     target.tongued = true;
 }
コード例 #21
0
 protected override void applyOverridable(Player target) { projectileID = 197; target.skeletron = true; }
コード例 #22
0
 public override void apply(ref int buffTime, Player target)
 {
     target.onFire2 = true;
 }
コード例 #23
0
 protected override void applyOverridable(Player target) { projectileID = 199; target.tiki = true; }
コード例 #24
0
 protected override void applyOverridable(Player target) { projectileID = 111; target.bunny = true; }
コード例 #25
0
 protected override void applyOverridable(Player target) { projectileID = 208; target.parrot = true; }
コード例 #26
0
 protected override void applyOverridable(Player target) { projectileID = 112; target.penguin = true; }
コード例 #27
0
 protected override void applyOverridable(Player target) { projectileID = 210; target.sapling = true; }
コード例 #28
0
 public override void apply(ref int buffTime, Player target)
 {
     target.paladinBuff = true;
 }
コード例 #29
0
 public PlayerStates(Player Ref)
 {
     
 }
コード例 #30
0
 public override void apply(ref int buffTime, Player target)
 {
     target.onFrostBurn = true;
 }