Skip to content

Commit

Permalink
add util
Browse files Browse the repository at this point in the history
  • Loading branch information
frzyc committed Jan 14, 2025
1 parent b634f15 commit 092ff5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libs/zzz/consts/src/disc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const allDiscMainSubStatKeys = Array.from(
export type DiscMainSubStatKey = (typeof allDiscMainSubStatKeys)[number]

// TODO: use dm values
const _subData = {
const subData = {
hp: { B: 39, A: 79, S: 112 },
atk: { B: 7, A: 15, S: 19 },
def: { B: 5, A: 10, S: 15 },
Expand All @@ -111,6 +111,12 @@ const _subData = {
crit_dmg_: { B: 0.016, A: 0.032, S: 0.048 },
anomProf: { B: 3, A: 6, S: 9 },
} as const
export function getSubStatBaseVal(
statKey: DiscSubStatKey,
rarity: DiscRarityKey
) {
return subData[statKey][rarity]
}

const m123 = { B: 0.1, A: 0.2, S: 0.3 }

Expand Down

0 comments on commit 092ff5e

Please sign in to comment.