Exemplo n.º 1
0
 public void ProcessPowers(Defense defense)
 {
     ResetAttack();
     CriticalHitPower =
         MathConts.ProcessPercentage(
             CriticalHit - GetCriticalResistanceDecrease(defense.CriticalHitResistance)
             ,
             AttackOffensivePower
             );
     BleedingPower = PassiveDamage - defense.GetPassiveDamageDecrease(PassiveDamage);
     ProcessAtkBasePower();
     DoubleStrikePower   = ApplyDoubleStrike(AttackBasePower);
     AdrenalineRushPower = ApplyAdrenalineRush(Squad.AtkPowers.HealthPower.CurrentHp, AttackBasePower + DoubleStrikePower);
     AttackDecrease      = defense.GetAttackDecrease(AttackOffensivePower);
     SabotageDecrease    = defense.GetSabotageDecrease(SabotageOffensivePower);
     ProcessAtkPower();
     ProcessDefPower();
     ProcessSabPower();
 }