Fix #65
This commit is contained in:
parent
65d0b18191
commit
0c6faeb9ca
@ -2273,10 +2273,13 @@ export class PegasusActor extends Actor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
updateMaxNrg(currentLevel) {
|
||||||
|
this.update({ 'system.statistics.pc.maxnrg': Number(currentLevel) })
|
||||||
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
setTurningArc(currentLevel) {
|
setTurningArc(currentLevel) {
|
||||||
this.update({ 'system.statistics.man.turningarc45': currentLevel })
|
this.update({ 'system.statistics.man.turningarc45': Number(currentLevel) })
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
@ -227,6 +227,9 @@ export class PegasusVehicleSheet extends ActorSheet {
|
|||||||
if ( statKey == "man") {
|
if ( statKey == "man") {
|
||||||
this.actor.setTurningArc(event.currentTarget.value)
|
this.actor.setTurningArc(event.currentTarget.value)
|
||||||
}
|
}
|
||||||
|
if ( statKey == "pc") {
|
||||||
|
this.actor.updateMaxNrg(event.currentTarget.value)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
html.find('.roll-stat').click((event) => {
|
html.find('.roll-stat').click((event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user