From 7539e0e76e6caba1587ec3512988efa6d9eb63c1 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Mon, 19 Sep 2022 20:31:59 +0300 Subject: [PATCH] Killer Wail 5.1 SPU effect --- app/modules/analyzer/weapon-params.json | 2 +- scripts/create-analyzer-json.ts | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/modules/analyzer/weapon-params.json b/app/modules/analyzer/weapon-params.json index 0ab93a6be..89d8010e9 100644 --- a/app/modules/analyzer/weapon-params.json +++ b/app/modules/analyzer/weapon-params.json @@ -1133,7 +1133,7 @@ }, "9": { "overwrites": { - "LaserFrame": { + "SpecialDurationFrame": { "High": 240, "Low": 180, "Mid": 210 diff --git a/scripts/create-analyzer-json.ts b/scripts/create-analyzer-json.ts index 59033634f..06ccf994f 100644 --- a/scripts/create-analyzer-json.ts +++ b/scripts/create-analyzer-json.ts @@ -276,9 +276,13 @@ function parametersToSpecialWeaponResult(params: any) { } } - if (result["RainyFrame"]) { - result["SpecialDurationFrame"] = result["RainyFrame"]; - result["RainyFrame"] = undefined; + const specialDurationFrameKeyAlises = ["LaserFrame", "RainyFrame"]; + + for (const key of specialDurationFrameKeyAlises) { + if (!result[key]) continue; + + result["SpecialDurationFrame"] = result[key]; + result[key] = undefined; } return { overwrites: unwrapSubSpecialSpecUpList(result) };