This commit is contained in:
sladecraven 2022-09-27 17:01:05 +02:00
parent 48f32ff5d9
commit a43da3198b

View File

@ -1668,6 +1668,7 @@ export class PegasusActor extends Actor {
rollData.statVehicle = vehicle.system.statistics.man rollData.statVehicle = vehicle.system.statistics.man
rollData.vehicleKey = "man" rollData.vehicleKey = "man"
} }
vehicle.addVehicleShields( rollData)
} }
vehicle.addEffects(rollData, false, false, false) vehicle.addEffects(rollData, false, false, false)
//this.addVehiculeHindrances(rollData.effectsList, vehicle) //this.addVehiculeHindrances(rollData.effectsList, vehicle)
@ -2193,9 +2194,11 @@ export class PegasusActor extends Actor {
/* -------------------------------------------- */ /* -------------------------------------------- */
addVehicleShields(rollData) { addVehicleShields(rollData) {
let shields = this.items.filter(shield => shield.type == "vehiclemodule" && shield.system.activated && shield.system.shielddicevalue > 0) || [] for (let arcKey in this.system.arcs) {
for (let shield of shields) { let arc = this.system.arcs[arcKey]
rollData.vehicleShieldList.push({ label: `${shield.name} (${shield.system.arccoverage})`, type: "vehicleshield", applied: false, value: shield.system.shielddicevalue }) if (arc.shieldlevel > 0) {
rollData.vehicleShieldList.push({ label: `${arc.label} Shield`, type: "vehicleshield", applied: false, value: arc.shieldlevel })
}
} }
} }
@ -2218,7 +2221,6 @@ export class PegasusActor extends Actor {
rollData.mode = "stat" rollData.mode = "stat"
rollData.title = `Stat ${stat.label}`; rollData.title = `Stat ${stat.label}`;
this.addVehicleShields(rollData)
this.addVehicleArmors(rollData) this.addVehicleArmors(rollData)
this.startRoll(rollData) this.startRoll(rollData)
this.modifyVehicleStun(1) this.modifyVehicleStun(1)