Fix #95 message for GM
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user