From 756cfd5445af74c215068693b433d4f2641bc8a7 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 30 Jul 2023 10:45:32 +0300 Subject: [PATCH] Build Analyzer: Add Splat Brella ISM shot stat Closes #1424 --- app/features/build-analyzer/core/weapon-params.json | 3 ++- scripts/create-analyzer-json.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/features/build-analyzer/core/weapon-params.json b/app/features/build-analyzer/core/weapon-params.json index 01f711d5c..b24f18265 100644 --- a/app/features/build-analyzer/core/weapon-params.json +++ b/app/features/build-analyzer/core/weapon-params.json @@ -1254,7 +1254,8 @@ "specialWeaponId": 14, "MoveSpeed": 0.065, "DamageParam_ValueMax": 810, - "InkConsumeUmbrella_WeaponShelterCanopyParam": 0.3 + "InkConsumeUmbrella_WeaponShelterCanopyParam": 0.3, + "InkConsume_WeaponShelterShotgunParam": 0.0632499977946 }, "6010": { "SpecialPoint": 190, diff --git a/scripts/create-analyzer-json.ts b/scripts/create-analyzer-json.ts index b9cf2b3f5..fa567d7c5 100644 --- a/scripts/create-analyzer-json.ts +++ b/scripts/create-analyzer-json.ts @@ -149,6 +149,13 @@ function parametersToMainWeaponResult( ); }; + const InkConsume_WeaponShelterShotgunParam = () => { + // Splat Brella ink consumption not listed in params + if (weapon.Id === 6000) return 0.0632499977946; + + return params["spl__WeaponShelterShotgunParam"]?.["InkConsume"]; + }; + const BlastParam_DistanceDamage = () => { // REEF-LUX has distance damage listed in params // but actually doesn't deal it in game @@ -360,7 +367,7 @@ function parametersToMainWeaponResult( ? params["spl__WeaponShelterCanopyParam"]?.["InkConsumeUmbrella"] : undefined, InkConsume_WeaponShelterShotgunParam: - params["spl__WeaponShelterShotgunParam"]?.["InkConsume"], + InkConsume_WeaponShelterShotgunParam(), InkConsume_SideStepParam: params["SideStepParam"]?.["InkConsume"], InkConsume_SwingParam: params["spl__WeaponSaberParam"]?.["SwingParam"]?.["InkConsume"],