Fix #53
This commit is contained in:
parent
919420eac4
commit
48f32ff5d9
@ -2199,6 +2199,16 @@ export class PegasusActor extends Actor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
addVehicleArmors( rollData) {
|
||||||
|
for (let arcKey in this.system.arcs) {
|
||||||
|
let arc = this.system.arcs[arcKey]
|
||||||
|
if (arc.armourlevel > 0) {
|
||||||
|
rollData.vehicleShieldList.push({ label: `${arc.label} Armor`, type: "vehicleshield", applied: false, value: arc.armourlevel })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
rollVehicleDamageResistance() {
|
rollVehicleDamageResistance() {
|
||||||
let actor = this.isValidActor()
|
let actor = this.isValidActor()
|
||||||
@ -2209,6 +2219,7 @@ export class PegasusActor extends Actor {
|
|||||||
rollData.title = `Stat ${stat.label}`;
|
rollData.title = `Stat ${stat.label}`;
|
||||||
|
|
||||||
this.addVehicleShields(rollData)
|
this.addVehicleShields(rollData)
|
||||||
|
this.addVehicleArmors(rollData)
|
||||||
this.startRoll(rollData)
|
this.startRoll(rollData)
|
||||||
this.modifyVehicleStun(1)
|
this.modifyVehicleStun(1)
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if (notEmpty vehicleShieldList)}}
|
{{#if (notEmpty vehicleShieldList)}}
|
||||||
<label>Vehicle Shields</label>
|
<label>Vehicle Armors&Shields</label>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
{{#each vehicleShieldList as |shield idx|}}
|
{{#each vehicleShieldList as |shield idx|}}
|
||||||
|
Loading…
Reference in New Issue
Block a user