/** * Full custom typing: * id * initial * max * reverse * label * images { * full { value, isIcon, noColorFilter } * empty { value, isIcon noColorFilter } * } */ const characterBaseResources = Object.freeze({ hitPoints: { id: 'hitPoints', initial: 0, max: 0, reverse: true, label: 'DAGGERHEART.GENERAL.HitPoints.plural', maxLabel: 'DAGGERHEART.ACTORS.Character.maxHPBonus' }, stress: { id: 'stress', initial: 0, max: 6, reverse: true, label: 'DAGGERHEART.GENERAL.stress' }, hope: { id: 'hope', initial: 2, min: 0, reverse: false, label: 'DAGGERHEART.GENERAL.hope' } }); const adversaryBaseResources = Object.freeze({ hitPoints: { id: 'hitPoints', initial: 0, max: 0, reverse: true, label: 'DAGGERHEART.GENERAL.HitPoints.plural', maxLabel: 'DAGGERHEART.ACTORS.Character.maxHPBonus' }, stress: { id: 'stress', initial: 0, max: 0, reverse: true, label: 'DAGGERHEART.GENERAL.stress' } }); const companionBaseResources = Object.freeze({ stress: { id: 'stress', initial: 0, max: 0, reverse: true, label: 'DAGGERHEART.GENERAL.stress' }, hope: { id: 'hope', initial: 0, min: 0, reverse: false, label: 'DAGGERHEART.GENERAL.hope' } }); export const character = { base: characterBaseResources, all: { ...characterBaseResources }, }; export const adversary = { base: adversaryBaseResources, all: { ...adversaryBaseResources }, }; export const companion = { base: companionBaseResources, all: { ...companionBaseResources }, };