diff --git a/modules/pegasus-actor-sheet.js b/modules/pegasus-actor-sheet.js index df83b68..8675d58 100644 --- a/modules/pegasus-actor-sheet.js +++ b/modules/pegasus-actor-sheet.js @@ -61,6 +61,7 @@ export class PegasusActorSheet extends ActorSheet { encCapacity: this.actor.getEncumbranceCapacity(), levelRemainingList: this.actor.getLevelRemainingList(), maxLevelRemainingList: this.actor.getMaxLevelRemainingList(), + disabledBonus: (this.actor.system.biodata.noautobonus) ? "" : "disabled", containersTree: this.actor.containersTree, encCurrent: this.actor.encCurrent, encHindrance: this.actor.encHindrance, diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index d0dec51..318f6f4 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -1443,6 +1443,9 @@ checkIfPossible() { /* -------------------------------------------- */ parseStatEffects() { + if ( this.system.biodata.noautobonus) { // If we are in "no-bonus mode + return + } let effects = this.items.filter(effect => effect.type == "effect" && effect.system.genre == "positive" && effect.system.statdice) for (let statKey in this.system.statistics) { let stat = duplicate(this.system.statistics[statKey]) @@ -1461,6 +1464,9 @@ parseStatEffects() { /* -------------------------------------------- */ parseStatusEffects() { + if ( this.system.biodata.noautobonus) { // If we are in "no-bonus mode + return + } let effects = this.items.filter(effect => effect.type == "effect" && effect.system.affectstatus && (Number(effect.system.effectlevel) > 0)) for (let statusKey in this.system.secondary) { let status = duplicate(this.system.secondary[statusKey]) diff --git a/system.json b/system.json index baa7f9d..5f969ed 100644 --- a/system.json +++ b/system.json @@ -253,7 +253,7 @@ ], "title": "Pegasus RPG", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", - "version": "10.0.32", - "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.0.32.zip", + "version": "10.1.0", + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.1.0.zip", "background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp" } \ No newline at end of file diff --git a/template.json b/template.json index 14390af..b454b12 100644 --- a/template.json +++ b/template.json @@ -37,6 +37,7 @@ "rolename": "", "morality": 5, "bonusselection": "", + "noautobonus": false, "moralitythreshold": 0 } }, diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 4c1ac27..c657ada 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -869,6 +869,12 @@ + {{#if isGM}} +