diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index 878aa16..c9e7bd5 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -2273,10 +2273,13 @@ export class PegasusActor extends Actor { } } } - + /* -------------------------------------------- */ + updateMaxNrg(currentLevel) { + this.update({ 'system.statistics.pc.maxnrg': Number(currentLevel) }) + } /* -------------------------------------------- */ setTurningArc(currentLevel) { - this.update({ 'system.statistics.man.turningarc45': currentLevel }) + this.update({ 'system.statistics.man.turningarc45': Number(currentLevel) }) } /* -------------------------------------------- */ diff --git a/modules/pegasus-vehicle-sheet.js b/modules/pegasus-vehicle-sheet.js index c0c4f3f..f4cd994 100644 --- a/modules/pegasus-vehicle-sheet.js +++ b/modules/pegasus-vehicle-sheet.js @@ -227,6 +227,9 @@ export class PegasusVehicleSheet extends ActorSheet { if ( statKey == "man") { this.actor.setTurningArc(event.currentTarget.value) } + if ( statKey == "pc") { + this.actor.updateMaxNrg(event.currentTarget.value) + } }) html.find('.roll-stat').click((event) => {