Difference between revisions of "Block"

From Regisfall Wiki
Jump to: navigation, search
Line 1: Line 1:
 
Strap on a shield and be prepared to get hit! Successfully blocking will reduce some damage you would've otherwise taken.
 
Strap on a shield and be prepared to get hit! Successfully blocking will reduce some damage you would've otherwise taken.
  
Formula:
+
Chance to block:
  
 
   double chance = (defender.Str) / 2500;
 
   double chance = (defender.Str) / 2500;
Line 7: Line 7:
 
     chance = 0.20;
 
     chance = 0.20;
 
   chance += (defender.Skills.Parry.Value * 0.0045);
 
   chance += (defender.Skills.Parry.Value * 0.0045);
 +
 +
Damage reduction modifier:
  
 
   double parrymodifier = 0.95;
 
   double parrymodifier = 0.95;

Revision as of 17:22, 19 February 2024

Strap on a shield and be prepared to get hit! Successfully blocking will reduce some damage you would've otherwise taken.

Chance to block:

 double chance = (defender.Str) / 2500;
 if (chance > 0.20)
    chance = 0.20;
 chance += (defender.Skills.Parry.Value * 0.0045);

Damage reduction modifier:

 double parrymodifier = 0.95;
 double reduce = (defender.Skills.Parry.Value * 0.0015);
 if (reduce > 0.25)
    reduce = 0.25;
 parrymodifier -= reduce;
 double newdamage = (damage * parrymodifier);


Return: Skills