This commit is contained in:
2022-01-14 13:42:28 +01:00
parent b4b41f5c96
commit e2140274d4
6 changed files with 180 additions and 1 deletions

View File

@ -617,6 +617,9 @@ export class PegasusActor extends Actor {
if ( nrgValue!= this.data.data.nrg.max) {
this.update( {'data.nrg.max': nrgValue, 'data.nrg.value': nrgValue} )
}
if ( nrgValue!= this.data.data.combat.stunthreshold) {
this.update( {'data.combat.stunthreshold': nrgValue } )
}
let mrLevel = (this.data.data.statistics.agi.value + this.data.data.statistics.str.value) - this.data.data.statistics.phy.value
mrLevel = (mrLevel < 1) ? 1 : mrLevel;