mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
[Feature] ActiveEffect Improvements (#439)
* Fixed so genericStatuses aren't shown in activeEffectConfig if turned off. Fixed localization of genericStatuses in Inventory-ItemV2.
* Effects with statuses on them will now add them as full additional effects so they show up on the token.
* Revert "Effects with statuses on them will now add them as full additional effects so they show up on the token."
This reverts commit 5afd7ae686.
* Redid it a better way
* Fixed so multiple statuses on an effect are still treated as active
This commit is contained in:
parent
0a944eb3d4
commit
2fbbf98f88
6 changed files with 83 additions and 13 deletions
|
|
@ -41,6 +41,14 @@ export default class DhActiveEffect extends ActiveEffect {
|
|||
});
|
||||
}
|
||||
|
||||
get localizedStatuses() {
|
||||
const statusMap = new Map(foundry.CONFIG.statusEffects.map(status => [status.id, status.name]));
|
||||
return this.statuses.map(x => ({
|
||||
key: x,
|
||||
name: game.i18n.localize(statusMap.get(x))
|
||||
}));
|
||||
}
|
||||
|
||||
async _preCreate(data, options, user) {
|
||||
const update = {};
|
||||
if (!data.img) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue