This commit is contained in:
sladecraven 2022-09-28 13:54:06 +02:00
parent 65d0b18191
commit 0c6faeb9ca
2 changed files with 8 additions and 2 deletions

View File

@ -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) })
}
/* -------------------------------------------- */

View File

@ -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) => {