You've already forked obsidian-visualiser
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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user