Fix Hydra wrong dmg multipliers

Closes #1055
This commit is contained in:
Kalle 2022-10-29 12:42:40 +03:00
parent 518b778052
commit bfc3cbfc87
2 changed files with 27 additions and 1 deletions

View File

@ -140,7 +140,7 @@ export const objectDamageJsonKeyPriority: Record<
Slosher_WashtubBombCore: null,
Slosher_Washtub: null,
Slosher: null,
Spinner: null,
Spinner: ["NORMAL_MAX", "NORMAL_MIN", "NORMAL_MAX_FULL_CHARGE"],
Sprinkler: null,
Stringer_Short: null,
Stringer: null,

View File

@ -113,4 +113,30 @@ CalculateDamage(
}
);
const HYDRA_SPLATLING_ID = 4020;
CalculateDamage(
"Hits to destroy Minimum < Maximum < Maximum (Fully charged)",
() => {
const min = calculate({
mainWeaponId: HYDRA_SPLATLING_ID,
damageType: "NORMAL_MIN",
})[0]?.damages[0]?.hitsToDestroy;
const max = calculate({
mainWeaponId: HYDRA_SPLATLING_ID,
damageType: "NORMAL_MAX",
})[0]?.damages[0]?.hitsToDestroy;
const maxFullyCharged = calculate({
mainWeaponId: HYDRA_SPLATLING_ID,
damageType: "NORMAL_MAX_FULL_CHARGE",
})[0]?.damages[0]?.hitsToDestroy;
assert.ok(typeof min === "number");
assert.ok(typeof max === "number");
assert.ok(typeof maxFullyCharged === "number");
assert.ok(min > max);
assert.ok(max > maxFullyCharged);
}
);
CalculateDamage.run();