mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 15:03:37 +02:00
* Initial * . * Fixed positioning * . * Only showing the menu if there are extra resources * Improved resourceManager clickable * . * Changed variable name * Refactor resources selection and data prep (#1721) * Move resources select to scrolly text and accept actor object * Convert isReversed to prepared data and add label * Removed unused imports --------- Co-authored-by: WBHarry <williambjrklund@gmail.com> * Naming * [Feature] Custom Homebrew Resources (#1718) * Added resources to the Homebrew Menu * Fixed translations * . * Inverted from isImage to isIcon. Should be more logical for users * Removed testing resources * Refactor resource settings to not be a method (#1723) * Fix editing homebrew resources with a custom ResourcesField * Fix removing homebrew resources * Remove vestigial code * Use custom config for module data instead of including in all (#1724) * Use custom config for module data instead of including in all * More simple * base highest priority --------- Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com> Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
88 lines
1.9 KiB
JavaScript
88 lines
1.9 KiB
JavaScript
/**
|
|
* 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,
|
|
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,
|
|
reverse: false,
|
|
label: 'DAGGERHEART.GENERAL.hope'
|
|
}
|
|
});
|
|
|
|
export const character = {
|
|
base: characterBaseResources,
|
|
custom: {}, // module stuff goes here
|
|
all: { ...characterBaseResources },
|
|
};
|
|
|
|
export const adversary = {
|
|
base: adversaryBaseResources,
|
|
custom: {}, // module stuff goes here
|
|
all: { ...adversaryBaseResources },
|
|
};
|
|
|
|
export const companion = {
|
|
base: companionBaseResources,
|
|
custom: {}, // module stuff goes here
|
|
all: { ...companionBaseResources },
|
|
};
|