New combat features

This commit is contained in:
LeRatierBretonnien 2023-03-24 13:40:20 +01:00
parent fb3d0dfd7f
commit 2e4b018834
5 changed files with 39 additions and 7 deletions

View File

@ -207,6 +207,11 @@
"WH.ui.secondaryclass": "Super warhero", "WH.ui.secondaryclass": "Super warhero",
"WH.ui.meleedamagebonus": "Melee damage bonus", "WH.ui.meleedamagebonus": "Melee damage bonus",
"WH.ui.rangeddamagebonus": "Ranged 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.bodyslots": "Body",
"WH.ui.containerslot": "Containers", "WH.ui.containerslot": "Containers",

View File

@ -96,7 +96,11 @@ export const WARHERO_CONFIG = {
beginturn: "WH.ui.beginturn", beginturn: "WH.ui.beginturn",
endturn: "WH.ui.endturn" endturn: "WH.ui.endturn"
}, },
magicCharge: {
notapplicable: "WH.ui.notapplicable",
chargedaily: "WH.ui.chargedaily",
chargelimited: "WH.ui.chargelimited",
},
identifiedState: { identifiedState: {
unknown: "WH.conf.unknown", unknown: "WH.conf.unknown",
yes:"WH.conf.yes", yes:"WH.conf.yes",

View File

@ -107,7 +107,7 @@
"styles": [ "styles": [
"styles/simple.css" "styles/simple.css"
], ],
"version": "10.0.46", "version": "10.0.47",
"compatibility": { "compatibility": {
"minimum": "10", "minimum": "10",
"verified": "10", "verified": "10",
@ -115,7 +115,7 @@
}, },
"title": "Warhero RPG", "title": "Warhero RPG",
"manifest": "https://www.uberwald.me/gitea/public/fvtt-warhero/raw/branch/master/system.json", "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", "url": "https://www.uberwald.me/gitea/public/fvtt-warhero",
"background": "images/ui/warhero_welcome_page.webp", "background": "images/ui/warhero_welcome_page.webp",
"id": "fvtt-warhero" "id": "fvtt-warhero"

View File

@ -413,6 +413,8 @@
"slotused": 1, "slotused": 1,
"slotlocation": "weapon1", "slotlocation": "weapon1",
"isidentified": "unknown", "isidentified": "unknown",
"magiccharge": "notapplicable",
"chargevalue": 0,
"description": "" "description": ""
}, },
"armor": { "armor": {
@ -424,6 +426,8 @@
"slotused": 1, "slotused": 1,
"slotlocation": "armor", "slotlocation": "armor",
"isidentified": "unknown", "isidentified": "unknown",
"magiccharge": "notapplicable",
"chargevalue": 0,
"description": "" "description": ""
}, },
"shield": { "shield": {
@ -435,6 +439,8 @@
"slotused": 1, "slotused": 1,
"slotlocation": "shield", "slotlocation": "shield",
"isidentified": "unknown", "isidentified": "unknown",
"magiccharge": "notapplicable",
"chargevalue": 0,
"description": "" "description": ""
}, },
"equipment": { "equipment": {
@ -446,6 +452,8 @@
"slotlocation": "backpack", "slotlocation": "backpack",
"providedslot": 0, "providedslot": 0,
"isidentified": "unknown", "isidentified": "unknown",
"magiccharge": "notapplicable",
"chargevalue": 0,
"description": "" "description": ""
}, },
"power": { "power": {

View File

@ -21,9 +21,24 @@
</select> </select>
</li> </li>
<li class="flexrow"><label class="item-field-label-medium ">{{localize "WH.ui.magiccharge"}}</label>
<select class="item-field-label-long " type="text" name="system.magiccharge" value="{{system.magiccharge}}" data-dtype="String">
{{#select system.magiccharge}}
{{#each config.magicCharge as |type key|}}
<option value="{{key}}">{{localize type}}</option>
{{/each}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="item-field-label-medium ">{{localize "WH.ui.chargevalue"}}</label>
<input type="text" class="item-field-label-medium " name="system.chargevalue" value="{{system.chargevalue}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="item-field-label-medium ">{{localize "WH.ui.quantity"}}</label> <li class="flexrow"><label class="item-field-label-medium ">{{localize "WH.ui.quantity"}}</label>
<input type="text" class="item-field-label-medium " name="system.quantity" value="{{system.quantity}}" data-dtype="Number"/> <input type="text" class="item-field-label-medium " name="system.quantity" value="{{system.quantity}}" data-dtype="Number"/>
</li> </li>
<li class="flexrow"><label class="item-field-label-medium">{{localize "WH.ui.cost"}}</label>
<li class="flexrow"><label class="item-field-label-medium">{{localize "WH.ui.cost"}}</label>
<input type="text" class="item-field-label-medium " name="system.cost" value="{{system.cost}}" data-dtype="Number"/> <input type="text" class="item-field-label-medium " name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
</li> </li>