From 2e4b0188348707260eea9c00407c607c7978b777 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Fri, 24 Mar 2023 13:40:20 +0100 Subject: [PATCH] New combat features --- lang/en.json | 5 +++++ modules/warhero-config.js | 6 ++++- system.json | 4 ++-- template.json | 8 +++++++ templates/partial-item-common-equipment.html | 23 ++++++++++++++++---- 5 files changed, 39 insertions(+), 7 deletions(-) diff --git a/lang/en.json b/lang/en.json index 1a49654..a248b7c 100644 --- a/lang/en.json +++ b/lang/en.json @@ -207,6 +207,11 @@ "WH.ui.secondaryclass": "Super warhero", "WH.ui.meleedamagebonus": "Melee damage bonus", "WH.ui.rangeddamagebonus": "Ranged damage bonus", + "WH.ui.notapplicable": "Not applicable", + "WH.ui.chargedaily": "Daily", + "WH.ui.chargelimited": "Limited", + "WH.ui.magiccharge": "Magic charges", + "WH.ui.chargevalue": "Charge value", "WH.ui.bodyslots": "Body", "WH.ui.containerslot": "Containers", diff --git a/modules/warhero-config.js b/modules/warhero-config.js index 81f4550..5b7b636 100644 --- a/modules/warhero-config.js +++ b/modules/warhero-config.js @@ -96,7 +96,11 @@ export const WARHERO_CONFIG = { beginturn: "WH.ui.beginturn", endturn: "WH.ui.endturn" }, - + magicCharge: { + notapplicable: "WH.ui.notapplicable", + chargedaily: "WH.ui.chargedaily", + chargelimited: "WH.ui.chargelimited", + }, identifiedState: { unknown: "WH.conf.unknown", yes:"WH.conf.yes", diff --git a/system.json b/system.json index 9d843eb..364ee57 100644 --- a/system.json +++ b/system.json @@ -107,7 +107,7 @@ "styles": [ "styles/simple.css" ], - "version": "10.0.46", + "version": "10.0.47", "compatibility": { "minimum": "10", "verified": "10", @@ -115,7 +115,7 @@ }, "title": "Warhero RPG", "manifest": "https://www.uberwald.me/gitea/public/fvtt-warhero/raw/branch/master/system.json", - "download": "https://www.uberwald.me/gitea/uberwald/fvtt-warhero/archive/fvtt-warhero-10.0.466.zip", + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-warhero/archive/fvtt-warhero-10.0.47.zip", "url": "https://www.uberwald.me/gitea/public/fvtt-warhero", "background": "images/ui/warhero_welcome_page.webp", "id": "fvtt-warhero" diff --git a/template.json b/template.json index 6e4606b..6509d6a 100644 --- a/template.json +++ b/template.json @@ -413,6 +413,8 @@ "slotused": 1, "slotlocation": "weapon1", "isidentified": "unknown", + "magiccharge": "notapplicable", + "chargevalue": 0, "description": "" }, "armor": { @@ -424,6 +426,8 @@ "slotused": 1, "slotlocation": "armor", "isidentified": "unknown", + "magiccharge": "notapplicable", + "chargevalue": 0, "description": "" }, "shield": { @@ -435,6 +439,8 @@ "slotused": 1, "slotlocation": "shield", "isidentified": "unknown", + "magiccharge": "notapplicable", + "chargevalue": 0, "description": "" }, "equipment": { @@ -446,6 +452,8 @@ "slotlocation": "backpack", "providedslot": 0, "isidentified": "unknown", + "magiccharge": "notapplicable", + "chargevalue": 0, "description": "" }, "power": { diff --git a/templates/partial-item-common-equipment.html b/templates/partial-item-common-equipment.html index 4dc3704..0b8710c 100644 --- a/templates/partial-item-common-equipment.html +++ b/templates/partial-item-common-equipment.html @@ -21,9 +21,24 @@ +
  • + +
  • + +
  • + +
  • +
  • -
  • -
  • - -
  • + + +
  • + +