fix: crew skill off by 1 roman numerals

This commit is contained in:
TrèsAbhi committed 2024-10-25 10:57:49 -05:00
1 parent 282b8f8a37
commit ab0d3f7170
3 files changed
+48 -5

No files matched your search

@@ -2,8 +2,7 @@ import {
asset,
fetchSkillDefinitions,
permanentSkills,
TIER_ROMAN_NUMERALS,
type Tier,
romanize,
} from '@blitzkit/core';
import { Flex } from '@radix-ui/themes';
import { GenericTankComponentButton } from './ModuleButtons/GenericTankComponentButton';
@@ -31,9 +30,7 @@ export function CrewSkillManager({
key={skill}
special={!permanentSkills.includes(skill)}
selected={level > 0}
discriminator={
level === 0 ? undefined : TIER_ROMAN_NUMERALS[level as Tier]
}
discriminator={level === 0 ? undefined : romanize(level)}
icon={asset(`icons/skills/${skill}.webp`)}
onClick={(event) => {
if (!onChange) return;