Browse Source

Update caller.ts

dev
许孟阳 2 months ago
parent
commit
30f5d89283
  1. 6
      src/tool/caller.ts

6
src/tool/caller.ts

@ -63,9 +63,9 @@ export const callPlayerAttribute = (playerAttribute: any, rA: any) => { @@ -63,9 +63,9 @@ export const callPlayerAttribute = (playerAttribute: any, rA: any) => {
critdmg = attribute.critDmg / 100;
attribute.dps = Math.ceil((1 - crit + crit * critdmg) * atk);
//计算减伤比例
attribute.def = 500;
// attribute.reducPercent = (0.5 * attribute.def) / (35 + 0.55 * attribute.def) + (0.09 * attribute.def) / (attribute.def + 200);
attribute.reducPercent = (0.5 * attribute.def) / (200 + 0.502 * attribute.def);
// attribute.def = 500;
attribute.reducPercent = (0.5 * attribute.def) / (35 + 0.55 * attribute.def) + (0.09 * attribute.def) / (attribute.def + 200);
// attribute.reducPercent = (0.5 * attribute.def) / (200 + 0.502 * attribute.def);
return attribute;
};

Loading…
Cancel
Save