Fix enraged blow slider and remove prints from damage_calc

This commit is contained in:
hppeng 2022-07-08 14:53:07 -07:00
parent c05eb82e60
commit 644213e5aa
3 changed files with 4 additions and 5 deletions

View file

@ -2782,7 +2782,7 @@ const atrees = {
{ {
"display_name": "Bak'al's Grasp", "display_name": "Bak'al's Grasp",
"desc": "After casting War Scream, become Corrupted (15s Cooldown). You cannot heal while in that state\n\nWhile Corrupted, every 2% of Health you lose will add +4 Raw Damage to your attacks (Max 120)", "desc": "After casting War Scream, become Corrupted (15s Cooldown). You cannot heal while in that state. While Corrupted, every 2% of Health you lose will add +4 Raw Damage to your attacks (Max 120)",
"archetype": "Fallen", "archetype": "Fallen",
"archetype_req": 2, "archetype_req": 2,
"parents": ["Quadruple Bash", "Fireworks"], "parents": ["Quadruple Bash", "Fireworks"],
@ -2808,6 +2808,7 @@ const atrees = {
"type": "stat", "type": "stat",
"name": "damRaw" "name": "damRaw"
}, },
"max": 120,
"scaling": [2] "scaling": [2]
} }
] ]
@ -2982,6 +2983,7 @@ const atrees = {
{ {
"type": "stat_scaling", "type": "stat_scaling",
"slider_name": "Corrupted", "slider_name": "Corrupted",
"slider": true,
"output": { "output": {
"type": "stat", "type": "stat",
"name": "damMult.Enraged" "name": "damMult.Enraged"

File diff suppressed because one or more lines are too long

View file

@ -155,13 +155,10 @@ function calculateSpellDamage(stats, weapon, conversions, use_spell_damage, igno
let total_dam_crit = [0, 0]; let total_dam_crit = [0, 0];
let damages_results = []; let damages_results = [];
const mult_map = stats.get("damMult"); const mult_map = stats.get("damMult");
console.log(mult_map);
let damage_mult = 1; let damage_mult = 1;
for (const [k, v] of mult_map.entries()) { for (const [k, v] of mult_map.entries()) {
damage_mult *= (1 + v/100); damage_mult *= (1 + v/100);
} }
console.log(damage_mult);
for (const damage of damages) { for (const damage of damages) {
const res = [ const res = [