Add Crab Tank 80dmg under "Combo" name

This commit is contained in:
Kalle
2026-01-21 19:14:14 +02:00
parent 8fbae0f2df
commit a0bc50c9aa
3 changed files with 6 additions and 2 deletions

View File

@@ -548,7 +548,7 @@ function specialWeaponDamages(
id: nanoid(),
distance: 0,
value: R.sum(cannonDamages.map((v) => v.value)),
type: "SPECIAL_CANNON",
type: "COMBO",
});
}

View File

@@ -64,6 +64,7 @@ describe("calculateDamage()", () => {
});
for (const damage of analyzed.stats.damages) {
if (damage.type === "COMBO") continue;
calculate({ mainWeaponId, damageType: damage.type });
}
}
@@ -89,6 +90,7 @@ describe("calculateDamage()", () => {
for (const damage of analyzedWithSpecialWeapon.stats
.specialWeaponDamages) {
if (damage.type === "COMBO") continue;
calculate({
specialWeaponId,
damageType: damage.type,

View File

@@ -129,7 +129,9 @@ export function resolveAllUniqueDamageTypes({
? analyzed.stats.specialWeaponDamages.map((d) => d.type)
: analyzed.stats.damages.map((d) => d.type);
return R.unique(damageTypes).filter((dmg) => !dmg.includes("SECONDARY"));
return R.unique(damageTypes).filter(
(dmg) => !dmg.includes("SECONDARY") && dmg !== "COMBO",
);
}
function resolveFilteredDamages({