Release v1.13.1 - Conditions & Fixes

This commit is contained in:
Vlyan
2025-09-21 16:55:57 +02:00
parent bee911df5e
commit e54a105222
9 changed files with 93 additions and 58 deletions

View File

@@ -5,8 +5,14 @@ export default class HooksL5r5e {
* Do initialization
*/
static async init() {
// Add L5R conditions to foundry conditions (don't restrict users)
CONFIG.statusEffects.push(...CONFIG.l5r5e.conditions);
// L5R conditions
if (game.settings.get(CONFIG.l5r5e.namespace, "show-all-status-effects")) {
// Add L5R conditions to foundry conditions (don't restrict users)
CONFIG.statusEffects.push(...CONFIG.l5r5e.conditions);
} else {
// L5R conditions only
CONFIG.statusEffects = CONFIG.l5r5e.conditions;
}
}
/**