From f86dcfd5ea8be5dfa7c4e571a23d4a3d7dc7fc85 Mon Sep 17 00:00:00 2001 From: Futil Date: Sun, 26 May 2024 01:00:15 -0600 Subject: [PATCH] Weapon Ship Bonus & Repar Period Break --- module/actor/ship-sheet-sbt.js | 2 ++ templates/actor/ship-sheet-sbt.html | 2 +- templates/item/item-weapon-sheet.html | 42 +++++++++++++++++++++++---- 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/module/actor/ship-sheet-sbt.js b/module/actor/ship-sheet-sbt.js index 92b7b67..452f8bb 100644 --- a/module/actor/ship-sheet-sbt.js +++ b/module/actor/ship-sheet-sbt.js @@ -144,6 +144,8 @@ export class MothershipShipSheetSBT extends ActorSheet { } else if (i.type === 'module') { modules.push(i); } else if (i.type == 'repair'){ + i.name = i.name.split('.')[0]; + if(i.system.major){ majorRepairs.push(i); } diff --git a/templates/actor/ship-sheet-sbt.html b/templates/actor/ship-sheet-sbt.html index 5d1dfdf..448de14 100644 --- a/templates/actor/ship-sheet-sbt.html +++ b/templates/actor/ship-sheet-sbt.html @@ -420,7 +420,7 @@
{{weapon.name}}
-
{{weapon.system.damage}}
+
{{weapon.system.bonus}}
diff --git a/templates/item/item-weapon-sheet.html b/templates/item/item-weapon-sheet.html index 5e7dac4..6c7227e 100644 --- a/templates/item/item-weapon-sheet.html +++ b/templates/item/item-weapon-sheet.html @@ -160,7 +160,8 @@ {{!-- Sheet Tab Navigation --}}
@@ -176,15 +177,46 @@ {{!-- Item Tab --}}
-
+ +
+ + +
+ +
+
+ + + +
+ + +
+ +
+
+ + +
+ + +
+ +
+
+ +
+ \ No newline at end of file