Display Super Chumps damage as Splash (Min/Max)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

Closes #2789
This commit is contained in:
Kalle
2026-02-21 18:25:16 +02:00
parent af4dd3eb55
commit 7f7ca44221
22 changed files with 60 additions and 1 deletions

View File

@@ -111,6 +111,21 @@ async function main() {
const rawParams = loadWeaponParamsObject(specialWeapon);
const params = parametersToSpecialWeaponResult(rawParams);
// Super Chumps has two distinct splash damage values (near/far)
// that should be labeled separately in the analyzer
const SUPER_CHUMP_SPECIAL_ID = 16;
if (
specialWeapon.Id === SUPER_CHUMP_SPECIAL_ID &&
params.DistanceDamage?.length === 2
) {
const sorted = [...params.DistanceDamage].sort(
(a: any, b: any) => b.Damage - a.Damage,
);
params.SplashDamageMax = [sorted[0]];
params.SplashDamageMin = [sorted[1]];
params.DistanceDamage = undefined;
}
if (hasLangDicts) {
translationsToArray({
arr: translations,