Exemplo n.º 1
0
 public override void ModifyHitPlayer(Projectile projectile, Player target, ref int damage, ref bool crit)
 {
     if (ModSupport.GetMod("CalamityMod") != null)
     {
         if (projectile.hostile && !projectile.friendly && projectile.type > 714 && projectile.modProjectile.mod == AAMod.instance)
         {
             bool revenge = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "revenge", false, true);
             bool Death   = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "death", false, true);
             if (!NPC.downedMoonlord)
             {
                 damage = (int)(damage * (1.1f + (revenge? 0.2f:0f) + (Death? 0.3f:0f)));
             }
             else
             {
                 damage = (int)(damage * (1.2f + (revenge? 0.4f:0f) + (Death? 0.6f:0f)));
             }
         }
     }
 }
Exemplo n.º 2
0
 public override void ModifyHitPlayer(NPC npc, Player target, ref int damage, ref bool crit)
 {
     if (ModSupport.GetMod("CalamityMod") != null)
     {
         if (npc.type > 580 && npc.modNPC.mod == AAMod.instance && npc.boss)
         {
             bool revenge = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "revenge", false, true);
             bool Death   = (bool)ModSupport.GetModWorldConditions("CalamityMod", "CalamityWorld", "death", false, true);
             if (!NPC.downedMoonlord)
             {
                 damage = (int)(damage * (1.1f + (revenge? 0.2f:0f) + (Death? 0.3f:0f)));
             }
             else
             {
                 damage = (int)(damage * (1.2f + (revenge? 0.4f:0f) + (Death? 0.6f:0f)));
             }
         }
     }
 }