diff --git a/module/actor/actor.js b/module/actor/actor.js index 80294ac..366de68 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -134,7 +134,8 @@ export class MothershipActor extends Actor { } } else { if (item.data.curShots > 0) { - item.data.curShots -= 1; + let subAmount = Math.max(item.data.shotsPerFire, 1); + item.data.curShots = Math.max(item.data.curShots-subAmount, 0); console.log("Unloading Shots"); this.updateEmbeddedEntity('OwnedItem', item); } diff --git a/system.json b/system.json index 4be2edc..21c4521 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "mothership", "title": "Mothership", "description": "The Mothership system for FoundryVTT!", - "version": "0.0.6", + "version": "0.0.7", "minimumCoreVersion": "0.5.5", "compatibleCoreVersion": "0.5.5", "templateVersion": 2, diff --git a/template.json b/template.json index bf45465..367b6d5 100644 --- a/template.json +++ b/template.json @@ -218,6 +218,7 @@ "ammo": 10, "shots": 1, "curShots": 0, + "shotsPerFire" : 1, "useAmmo": false, "ammoType": "", "critDmg": "", diff --git a/templates/item/item-weapon-sheet.html b/templates/item/item-weapon-sheet.html index 8e4521f..ed273bd 100644 --- a/templates/item/item-weapon-sheet.html +++ b/templates/item/item-weapon-sheet.html @@ -16,6 +16,14 @@ +
+ + +
+
+ + +
@@ -24,10 +32,6 @@
-
- - -