Fix elemental defense; implement rainbow spell damage %
This commit is contained in:
parent
8fe457bd14
commit
749bd9a965
4 changed files with 5 additions and 4 deletions
|
@ -11,8 +11,6 @@
|
|||
"displayName": "Violet-Shift",
|
||||
"slots": 2,
|
||||
"fDef": -50,
|
||||
"wDef": 160,
|
||||
"tDef": -40,
|
||||
"lvl": 77,
|
||||
"mr": 11,
|
||||
"rSdPct": 29,
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -133,6 +133,9 @@ function calculateSpellDamage(stats, weapon, _conversions, use_spell_damage, ign
|
|||
let damage_specific = damage_elements[i] + specific_boost_str + 'Pct';
|
||||
let damageBoost = 1 + skill_boost[i] + static_boost
|
||||
+ ((stats.get(damage_specific) + stats.get(damage_elements[i]+'DamPct')) /100);
|
||||
if (i > 0) {
|
||||
damageBoost += stats.get('r'+specific_boost_str+'Pct') / 100;
|
||||
}
|
||||
damages[i][0] *= Math.max(damageBoost, 0);
|
||||
damages[i][1] *= Math.max(damageBoost, 0);
|
||||
// Collect total damage post %boost
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const DB_VERSION = 113;
|
||||
const DB_VERSION = 114;
|
||||
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.jsA
|
||||
|
||||
let db;
|
||||
|
|
Loading…
Reference in a new issue