diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index bddf304..3e8ac25 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -334,7 +334,7 @@ export class PegasusActor extends Actor { if (item.system.resistance) { item.system.resistanceDice = PegasusUtility.getDiceFromLevel(item.system.resistance) } - if (item.system.idr) { + if (item.system.idr && Number(item.system.idr) > 0) { item.system.idrDice = PegasusUtility.getDiceFromLevel(item.system.idr) } if (item.system.damage) { diff --git a/modules/pegasus-vehicle-sheet.js b/modules/pegasus-vehicle-sheet.js index f4cd994..ef20762 100644 --- a/modules/pegasus-vehicle-sheet.js +++ b/modules/pegasus-vehicle-sheet.js @@ -51,8 +51,8 @@ export class PegasusVehicleSheet extends ActorSheet { vehicleHull: duplicate(this.actor.getVehicleHull()), mobilityModules: duplicate(this.actor.getMobilityModules()), propulsionModules: duplicate(this.actor.getPropulsionModules()), - vehicleModules: duplicate(this.actor.getVehicleModules()), - vehicleWeaponModules: duplicate(this.actor.getVehicleWeaponModules()), + vehicleModules: this.actor.checkAndPrepareEquipments(duplicate(this.actor.getVehicleModules())), + vehicleWeaponModules: this.actor.checkAndPrepareEquipments(duplicate(this.actor.getVehicleWeaponModules())), cargos: this.actor.checkAndPrepareEquipments(duplicate(this.actor.getCargos()) ), cargoCurrent: this.actor.getCurrentCargoCapacity(), moneys: duplicate(this.actor.getMoneys()), diff --git a/templates/vehicle-sheet.html b/templates/vehicle-sheet.html index 564c84c..7b8b01f 100644 --- a/templates/vehicle-sheet.html +++ b/templates/vehicle-sheet.html @@ -456,10 +456,10 @@

- + - + @@ -480,12 +480,20 @@ {{vehiclemod.name}} - {{vehiclemod.system.category}} - {{vehiclemod.system.location}} + {{vehiclemod.system.category}} + {{vehiclemod.system.location}} {{vehiclemod.system.security}} {{vehiclemod.system.nrg}} {{vehiclemod.system.range}} - {{vehiclemod.system.idr}} + + + {{#if vehiclemod.system.idrDice}} + {{vehiclemod.system.idrDice}} + {{else}} +  -  + {{/if}} + +
 
{{#if vehiclemod.system.activated}}

- + - + @@ -528,13 +536,21 @@
{{weapon.name}} - {{weapon.system.site}} - {{weapon.system.location}} + {{weapon.system.site}} + {{weapon.system.location}} {{weapon.system.dmg}} {{weapon.system.aoe}} {{weapon.system.turrent}} {{weapon.system.nrg}} - {{weapon.system.idr}} + + + {{#if weapon.system.idrDice}} + {{weapon.system.idrDice}} + {{else}} +  -  + {{/if}} + +