From 2f049d9888ddf307e42bacba0758d7b6ae3c6d2a Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Mon, 19 Jun 2023 19:04:10 +0300 Subject: [PATCH] Special damages: Ink Storm --- app/features/build-analyzer/core/weapon-params.json | 3 ++- .../object-damage-calculator/calculator-constants.ts | 2 +- scripts/create-analyzer-json.ts | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/features/build-analyzer/core/weapon-params.json b/app/features/build-analyzer/core/weapon-params.json index f9b99d6c3..d16bd23a8 100644 --- a/app/features/build-analyzer/core/weapon-params.json +++ b/app/features/build-analyzer/core/weapon-params.json @@ -1770,7 +1770,8 @@ "Low": 480, "Mid": 540 } - } + }, + "TickDamage": 4 }, "6": { "overwrites": { diff --git a/app/features/object-damage-calculator/calculator-constants.ts b/app/features/object-damage-calculator/calculator-constants.ts index 8af65ef64..fa0146f61 100644 --- a/app/features/object-damage-calculator/calculator-constants.ts +++ b/app/features/object-damage-calculator/calculator-constants.ts @@ -80,7 +80,7 @@ export const objectDamageJsonKeyPriority: Record< Geyser: null, GoldenIkuraAttack: null, InkStormRain: null, - InkStorm: null, + InkStorm: ["SPECIAL_TICK"], Jetpack_BombCore: ["BOMB_DIRECT"], Jetpack_Bullet: ["BOMB_NORMAL"], Jetpack_Coop: null, diff --git a/scripts/create-analyzer-json.ts b/scripts/create-analyzer-json.ts index 17a112885..fce34d2c6 100644 --- a/scripts/create-analyzer-json.ts +++ b/scripts/create-analyzer-json.ts @@ -464,6 +464,7 @@ function parametersToSpecialWeaponResult(params: any) { const isCrabTank = () => !!params["CannonParam"]; const isKraken = () => !!params["BodyParam"]?.["DamageJumpValue"]; const isInkjet = () => !!params["JetParam"]; + const isInkStorm = () => !!params["CloudParam"]; const isBooyahBomb = () => params["BlastParam"]?.["$type"] === "spl__BulletSpNiceBallBlastParam"; @@ -512,6 +513,12 @@ function parametersToSpecialWeaponResult(params: any) { return 33; }; + const InkStormTickDamage = () => { + if (!isInkStorm()) return; + + return 4; + }; + return { ArmorHP: params["WeaponSpChariotParam"]?.["ArmorHP"], overwrites: resultUnwrapped, @@ -544,6 +551,7 @@ function parametersToSpecialWeaponResult(params: any) { JumpDamage: params["BodyParam"]?.["DamageJumpValue"], TickDamage: BooyahBombTickDamage() ?? + InkStormTickDamage() ?? params["spl__BulletSpMicroLaserBitParam"]?.["LaserParam"]?.[ "LaserDamage" ],