From 963915254790ff40ecfb1e929c03336629e15e9f Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 26 Apr 2025 12:39:04 +0300 Subject: [PATCH] Fix Hero Shot not having correct dmg multipliers --- app/features/object-damage-calculator/core/objectDamage.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/features/object-damage-calculator/core/objectDamage.ts b/app/features/object-damage-calculator/core/objectDamage.ts index 8ab3ce56e..f90330c82 100644 --- a/app/features/object-damage-calculator/core/objectDamage.ts +++ b/app/features/object-damage-calculator/core/objectDamage.ts @@ -11,6 +11,7 @@ import type { SpecialWeaponId, SubWeaponId, } from "~/modules/in-game-lists"; +import { altWeaponIdToId } from "~/modules/in-game-lists/weapon-ids"; import invariant from "~/utils/invariant"; import { roundToNDecimalPlaces } from "~/utils/number"; import { @@ -23,6 +24,10 @@ import objectDamages from "./object-dmg.json"; import { objectHitPoints } from "./objectHitPoints"; const getNormalizedMainWeapondId = (id: MainWeaponId) => { + if (altWeaponIdToId.has(id)) { + return altWeaponIdToId.get(id)!; + } + return id % 10 !== 0 ? ((id - 1) as MainWeaponId) : id; };