-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from fvtt-fria-ligan/12-28-refactor_Remove_co…
…mbat_module_in_favour_of_yzec refactor: ♻️ Remove combat module in favour of yzec
- Loading branch information
Showing
11 changed files
with
95 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"forbidden-lands": patch | ||
--- | ||
|
||
- Removes the combat module in favour of Year Zero Combat which is now required. Fixes to slow fast actions are being implemented in https://github.com/fvtt-fria-ligan/yearzero-combat-fvtt/pull/38 | ||
- Fixes an issue where roll modifiers were not applied to rolls | ||
- Fixes an issue where the fast and slow actions had the wrong icons (#389) | ||
|
||
If a token i stuck with old icons, it is possible to create a script macro that deletes all active effects on the current scene: | ||
|
||
```js | ||
canvas.scene.tokens.map((token) => { | ||
const actor = token.actor; | ||
actor.deleteEmbeddedDocuments( | ||
"ActiveEffect", | ||
actor.effects.map((e) => e.id) | ||
); | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export class ForbiddenLandsTokenHUD extends TokenHUD { | ||
_getStatusEffectChoices() { | ||
const actor = this.object.document.actor; | ||
|
||
const data = super._getStatusEffectChoices(); | ||
|
||
if (actor?.type === "character") return data; | ||
|
||
for (const [key, effect] of Object.entries(data)) { | ||
if (effect && CONFIG.fbl.conditions.includes(effect?.id)) | ||
delete data[key]; | ||
} | ||
|
||
return data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.