This commit is contained in:
sladecraven 2022-09-30 11:54:48 +02:00
parent 27029abc88
commit afe4fc2a1b
3 changed files with 8 additions and 5 deletions

View File

@ -2261,12 +2261,12 @@ export class PegasusActor extends Actor {
if (actor) { if (actor) {
let stat = this.getStat("hr") let stat = this.getStat("hr")
let rollData = this.getCommonRollData("hr") let rollData = this.getCommonRollData("hr")
rollData.isVehicleStun = true
rollData.mode = "stat" rollData.mode = "stat"
rollData.title = `Stat ${stat.label}`; rollData.title = `Stat ${stat.label}`
this.addVehicleArmors(rollData) this.addVehicleArmors(rollData)
this.startRoll(rollData) this.startRoll(rollData)
this.modifyVehicleStun(1)
} }
} }

View File

@ -831,10 +831,13 @@ export class PegasusUtility {
combat.updateEmbeddedDocuments("Combatant", [{ _id: rollData.combatantId, initiative: rollData.finalScore }]) combat.updateEmbeddedDocuments("Combatant", [{ _id: rollData.combatantId, initiative: rollData.finalScore }])
} }
// Stun specific -> Suffere a stun level when dmg-res // Stun specific -> Suffer a stun level when dmg-res for character
if (rollData.subKey && rollData.subKey == "dmg-res") { if (rollData.subKey && rollData.subKey == "dmg-res") {
actor.modifyStun(+1) actor.modifyStun(+1)
} }
if (rollData.isVehicleStun) {
this.modifyVehicleStun(1)
}
//this.removeUsedPerkEffects( rollData) // Unused for now //this.removeUsedPerkEffects( rollData) // Unused for now
this.removeOneUseEffects(rollData) // Unused for now this.removeOneUseEffects(rollData) // Unused for now

View File

@ -34,8 +34,8 @@
<div class="tab details" data-group="primary" data-tab="details"> <div class="tab details" data-group="primary" data-tab="details">
<ul> <ul>
<li class="flexrow"><label class="generic-label">Roll Needed ?</label> <li class="flexrow"><label class="generic-label">Roll Needed ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.rollneeded" {{checked <label class="attribute-value checkbox">
data.rollneeded}} /></label> <input type="checkbox" name="system.rollneeded" {{checked data.rollneeded}} /></label>
</li> </li>
{{#if data.rollneeded}} {{#if data.rollneeded}}
<li class="flexrow"><label class="generic-label">Related Statistic (only if roll is needed)</label> <li class="flexrow"><label class="generic-label">Related Statistic (only if roll is needed)</label>