mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 04:02:40 -05:00
15 lines
419 B
TypeScript
15 lines
419 B
TypeScript
import type { DamageType } from "~/features/build-analyzer";
|
|
import type { SubWeaponId } from "~/modules/in-game-lists";
|
|
|
|
// TODO: type this correctly
|
|
export const damageTypeTranslationString = ({
|
|
damageType,
|
|
subWeaponId,
|
|
}: {
|
|
damageType: DamageType;
|
|
subWeaponId: SubWeaponId;
|
|
}): any =>
|
|
damageType.startsWith("BOMB_")
|
|
? `weapons:SUB_${subWeaponId}`
|
|
: `analyzer:damage.${damageType as "NORMAL_MIN"}`;
|