koishi-plugin-maple-warriors 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -100,7 +100,7 @@ var INITIAL_ITEMS = [
|
|
|
100
100
|
function calculateRates(character) {
|
|
101
101
|
const resistance = (character.toughness / (character.toughness + 90)).toFixed(4);
|
|
102
102
|
const critRate = (character.crit / (character.crit + 90)).toFixed(4);
|
|
103
|
-
const chargeTime = (1 +
|
|
103
|
+
const chargeTime = (1 + 1800 / (7 * character.agility + 200)).toFixed(2);
|
|
104
104
|
const dodgeRate = (0.2 * character.agility / (character.agility + 90)).toFixed(4);
|
|
105
105
|
return { resistance, critRate, chargeTime, dodgeRate };
|
|
106
106
|
}
|