mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
. (#1252)
This commit is contained in:
parent
321b7c2da3
commit
66961d7fea
3 changed files with 20 additions and 10 deletions
|
|
@ -166,11 +166,16 @@ export const healingTypes = {
|
|||
|
||||
export const defeatedConditions = () => {
|
||||
const defeated = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation).defeated;
|
||||
return Object.values(defeatedConditionChoices).map(x => ({
|
||||
...x,
|
||||
img: defeated[`${x.id}Icon`],
|
||||
description: `DAGGERHEART.CONFIG.Condition.${x.id}.description`
|
||||
}));
|
||||
return Object.keys(defeatedConditionChoices).reduce((acc, key) => {
|
||||
const choice = defeatedConditionChoices[key];
|
||||
acc[key] = {
|
||||
...choice,
|
||||
img: defeated[`${choice.id}Icon`],
|
||||
description: `DAGGERHEART.CONFIG.Condition.${choice.id}.description`
|
||||
};
|
||||
|
||||
return acc;
|
||||
}, {});
|
||||
};
|
||||
|
||||
const defeatedConditionChoices = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue