From 0c86b7f694139d1fc96260aaba6f20984fad0d6b Mon Sep 17 00:00:00 2001 From: sladecraven Date: Tue, 26 Jul 2022 22:58:33 +0200 Subject: [PATCH] Add Hero Level max --- modules/pegasus-actor-sheet.js | 1 + modules/pegasus-actor.js | 9 +++++++++ templates/actor-sheet.html | 6 +++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/pegasus-actor-sheet.js b/modules/pegasus-actor-sheet.js index e52fd42..bf67a83 100644 --- a/modules/pegasus-actor-sheet.js +++ b/modules/pegasus-actor-sheet.js @@ -61,6 +61,7 @@ export class PegasusActorSheet extends ActorSheet { vices: duplicate(this.actor.getVices()), encCapacity: this.actor.getEncumbranceCapacity(), levelRemainingList: this.actor.getLevelRemainingList(), + maxLevelRemainingList: this.actor.getMaxLevelRemainingList(), 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 34e2eab..7134cc5 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -1381,6 +1381,15 @@ export class PegasusActor extends Actor { return options.join("\n") } + /* -------------------------------------------- */ + getMaxLevelRemainingList() { + let options = [] + for (let i = 0; i <= 12; i++) { + options.push(``) + } + return options.join("\n") + } + /* -------------------------------------------- */ async startRoll(rollData) { this.syncRoll(rollData); diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 2e1bb88..189de8b 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -1017,7 +1017,11 @@
  • - +