Changes tooltips reference, update character sheet UI, getID now embed the ID_SIZE, new ability max option in feature effect.

This commit is contained in:
Clément Pons
2025-08-29 17:46:08 +02:00
parent 042d4479ee
commit 17bc232602
19 changed files with 522 additions and 242 deletions

View File

@@ -1,9 +1,9 @@
import type { CharacterConfig } from "~/types/character";
import type { CharacterConfig, i18nID } from "~/types/character";
import characterConfig from '#shared/character-config.json';
const config = characterConfig as CharacterConfig;
export function getText(id?: string, lang?: string)
export function getText(id?: i18nID, lang?: string)
{
return id ? (config.texts.hasOwnProperty(id) ? config.texts[id][lang ?? "default"] : '') : undefined;
}