Add threat level

This commit is contained in:
sladecraven 2022-02-25 17:11:31 +01:00
parent 1ea1b3b1a8
commit c73e51dfa1
4 changed files with 8 additions and 2 deletions

View File

@ -682,7 +682,7 @@ export class PegasusActor extends Actor {
updates['data.nrg.value'] = nrgValue
}
nrgValue = PegasusUtility.getDiceValue(this.data.data.statistics.foc.value) + this.data.data.statistics.foc.mod;
nrgValue = PegasusUtility.getDiceValue(this.data.data.statistics.mnd.value) + this.data.data.statistics.mnd.mod;
if (nrgValue != this.data.data.combat.stunthreshold) {
updates['data.combat.stunthreshold'] = nrgValue
}

View File

@ -183,6 +183,6 @@
"templateVersion": 81,
"title": "Pegasus RPG",
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
"version": "0.4.19",
"version": "0.4.20",
"background" : "./images/ui/pegasus_welcome_page.webp"
}

View File

@ -22,6 +22,7 @@
"catchphrasetrigger": "",
"charactervalue": 0,
"level": 0,
"threatlevel": 0,
"cdp": 0,
"cdpused": 0,
"notes": "",

View File

@ -649,6 +649,11 @@
<input type="text" class="" name="data.biodata.cdpused" value="{{data.biodata.cdpused}}"
data-dtype="Number" />
</li>
<li class="flexrow">
<label class="short-label">Threat Level : </label>
<input type="text" class="" name="data.biodata.threatlevel" value="{{data.biodata.threatlevel}}"
data-dtype="Number" />
</li>
</ul>
<hr>