[wpdreams_ajaxsearchlite]

Damage Plugin 伤害插件

名称:损坏类型的名称。

抗性属性:在计算使用此伤害类型的攻击所造成的伤害时使用的抗性属性。

伤害是根据此算法计算的:

 

dmg-base,dmg-max - damage from weapon (player) or defined on mob

d1= random(dmg-base,dmg-max)+ ammoDamage +  skillMod * skillLevel;

d2 = d1 + d1*(PHYSICAL_POWER_STAT / 25);
d3 = d2 + d2 *(DAMAGE_DEALT_MODIFIER/100);

if (useHitRoll)
  d3 = d3 *((hitRoll / (100 / DAMAGE_HITROLL_MODIFIER) + (100 - DAMAGE_HITROLL_MODIFIER)) / 100.0);

if FLAT_ARMOR_DAMAGE_CALCULATIONS
  d4 = d3*0.01+(d3 * 0.99 - targetArmor);
 else
  d4 = d3 * ((100-targetArmor) / 100);

d5 = d4 +d4 * DAMAGE_TAKEN_MODIFIER / 100; 
if (d5 <= 0) 
  d5 = 1.0;

criticalChanceCalculated=0;
  
  if (criticalChance <= 440){
    criticalChanceCalculated = criticalChance/10;
  }
  else if(criticalChance > 440 && criticalChance <= 560){
    criticalChanceCalculated = (criticalChance - 440) / 20 + 44;
  }
  else if(criticalChance > 560 && criticalChance <= 660){
    criticalChanceCalculated = (criticalChance - 560) / 50 + 44 + 6; //44 from 440/10; 6 from (560 - 440) / 20
  }
  else if(criticalChance > 660){
    criticalChanceCalculated = (criticalChance - 660) / 100 + 44 + 6 + 2; //44 from 440/10; 6 from (560 - 440) / 20; 2 from (660 - 560) / 50
  }
if (rand < (criticalChanceCalculated / 100.0)) 
  d6 = d5 * 1.7;
 
d7 = d6 * DamageMod;
d8 = d7 + bonusDmgEffectVals;

RESULT_BLOCKED
  d9 = d8 / 2;

RESULT_PARRIED
  d9 = d8 * 0.6;
  
d10 = d9 * PVP_DAMAGE_REDUCTION_PERCENT;