Fix #95 message for GM

This commit is contained in:
2022-10-05 10:24:42 +02:00
parent 6e69e151c5
commit a68db10676
6 changed files with 18 additions and 4 deletions

View File

@@ -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,

View File

@@ -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])