Minot fixes
This commit is contained in:
parent
3a8ad674bd
commit
7827e07e1c
@ -15,7 +15,6 @@
|
||||
"TypeLanguage": "Language",
|
||||
"TypeCondition": "Condition",
|
||||
"TypeClass": "Class",
|
||||
"TypeGenericitem": "Class",
|
||||
"TypeMoney": "Money",
|
||||
"TypePotion": "Potion",
|
||||
"TypePoison": "Poison",
|
||||
@ -55,6 +54,11 @@
|
||||
"WH.conf.beltpouch2": "Beltpouch 2",
|
||||
"WH.conf.beltpouch3": "Beltpouch 3",
|
||||
|
||||
"WH.conf.unknown": "Unknown",
|
||||
"WH.conf.yes": "Yes",
|
||||
"WH.conf.no": "No",
|
||||
"WH.conf.notapplicable": "Not applicable",
|
||||
|
||||
"WH.ui.level": "Level",
|
||||
"WH.ui.notes": "Notes",
|
||||
|
||||
@ -185,6 +189,7 @@
|
||||
"WH.ui.diseaseduration": "Disease duration",
|
||||
"WH.ui.ignoreeffect": "Ignore effect",
|
||||
"WH.ui.raceSkills": "Race skills",
|
||||
"WH.ui.identified": "Identified",
|
||||
|
||||
"WH.chat.save": "Save",
|
||||
"WH.chat.mweaponmalus": "Multiple weapons malus ",
|
||||
|
@ -81,6 +81,13 @@ export const WARHERO_CONFIG = {
|
||||
untilendcombat: "WH.ui.untilendcombat",
|
||||
beginturn: "WH.ui.beginturn",
|
||||
endturn: "WH.ui.endturn"
|
||||
},
|
||||
|
||||
identifiedState: {
|
||||
unknown: "WH.conf.unknown",
|
||||
yes:"WH.conf.yes",
|
||||
no:"WH.conf.no",
|
||||
notapplicable:"WH.conf.notapplicable"
|
||||
}
|
||||
|
||||
}
|
@ -56,7 +56,6 @@ Hooks.once("init", async function () {
|
||||
CONFIG.Combat.documentClass = WarheroCombat
|
||||
CONFIG.Actor.documentClass = WarheroActor
|
||||
CONFIG.Item.documentClass = WarheroItem
|
||||
//CONFIG.Token.objectClass = WarheroToken
|
||||
|
||||
/* -------------------------------------------- */
|
||||
// Register sheet application classes
|
||||
@ -79,28 +78,15 @@ Hooks.once("ready", function () {
|
||||
// User warning
|
||||
if (!game.user.isGM && game.user.character == undefined) {
|
||||
ui.notifications.info("Warning ! No character linked to your user !");
|
||||
/*ChatMessage.create({
|
||||
content: "<b>WARNING</b> The player " + game.user.name + " is not linked to a character !",
|
||||
user: game.user._id
|
||||
});*/
|
||||
}
|
||||
|
||||
// CSS patch for v9
|
||||
/*if (game.version) {
|
||||
let sidebar = document.getElementById("sidebar");
|
||||
sidebar.style.width = "min-content";
|
||||
}*/
|
||||
|
||||
//welcomeMessage();
|
||||
WarheroUtility.ready()
|
||||
//WarheroHotbar.initDropbar()
|
||||
|
||||
})
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Foundry VTT Initialization */
|
||||
/* -------------------------------------------- */
|
||||
Hooks.on("chatMessage", (html, content, msg) => {
|
||||
/*Hooks.on("chatMessage", (html, content, msg) => {
|
||||
if (content[0] == '/') {
|
||||
let regExp = /(\S+)/g;
|
||||
let commands = content.match(regExp);
|
||||
@ -109,5 +95,5 @@ Hooks.on("chatMessage", (html, content, msg) => {
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
});*/
|
||||
|
||||
|
@ -1496,6 +1496,12 @@ li {
|
||||
max-width: 9rem;
|
||||
min-width: 9rem;
|
||||
}
|
||||
.item-field-label-2rem {
|
||||
flex-grow: 1;
|
||||
margin-top: 4px;
|
||||
max-width: 1.2rem;
|
||||
min-width: 1.2rem;
|
||||
}
|
||||
.item-field-label-short {
|
||||
flex-grow: 1;
|
||||
margin-top: 4px;
|
||||
|
@ -107,7 +107,7 @@
|
||||
"styles": [
|
||||
"styles/simple.css"
|
||||
],
|
||||
"version": "10.0.35",
|
||||
"version": "10.0.36",
|
||||
"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.35.zip",
|
||||
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-warhero/archive/fvtt-warhero-10.0.36.zip",
|
||||
"url": "https://www.uberwald.me/gitea/public/fvtt-warhero",
|
||||
"background": "images/ui/warhero_welcome_page.webp",
|
||||
"id": "fvtt-warhero"
|
||||
|
@ -243,7 +243,6 @@
|
||||
"language",
|
||||
"condition",
|
||||
"class",
|
||||
"genericitem",
|
||||
"money",
|
||||
"potion",
|
||||
"poison",
|
||||
@ -280,7 +279,8 @@
|
||||
"cost": 0,
|
||||
"quantity": 1,
|
||||
"slotused": 1,
|
||||
"slotlocation": "armor",
|
||||
"slotlocation": "backpack",
|
||||
"isidentified": "unknown",
|
||||
"alchemycost": "",
|
||||
"preparetime": "",
|
||||
"durationround": 0,
|
||||
@ -290,7 +290,8 @@
|
||||
"cost": 0,
|
||||
"quantity": 1,
|
||||
"slotused": 1,
|
||||
"slotlocation": "armor",
|
||||
"slotlocation": "backpack",
|
||||
"isidentified": "unknown",
|
||||
"application": "",
|
||||
"preparecost": "",
|
||||
"preparetime": "",
|
||||
@ -304,7 +305,8 @@
|
||||
"cost": 0,
|
||||
"quantity": 1,
|
||||
"slotused": 1,
|
||||
"slotlocation": "armor",
|
||||
"slotlocation": "backpack",
|
||||
"isidentified": "unknown",
|
||||
"dcfind": 0,
|
||||
"dcdisable": 0,
|
||||
"throwtohit": 0,
|
||||
@ -315,7 +317,8 @@
|
||||
"cost": 0,
|
||||
"quantity": 1,
|
||||
"slotused": 1,
|
||||
"slotlocation": "armor",
|
||||
"slotlocation": "backpack",
|
||||
"isidentified": "unknown",
|
||||
"class": "",
|
||||
"mandatoryfor": "",
|
||||
"description": ""
|
||||
@ -325,9 +328,6 @@
|
||||
"slotlocation": "backpack",
|
||||
"description": ""
|
||||
},
|
||||
"genericitem": {
|
||||
"description": ""
|
||||
},
|
||||
"condition": {
|
||||
"conditiontype": "",
|
||||
"duration": "",
|
||||
@ -382,6 +382,7 @@
|
||||
"quantity": 1,
|
||||
"slotused": 1,
|
||||
"slotlocation": "weapon1",
|
||||
"isidentified": "unknown",
|
||||
"description": ""
|
||||
},
|
||||
"armor": {
|
||||
@ -392,6 +393,7 @@
|
||||
"quantity": 1,
|
||||
"slotused": 1,
|
||||
"slotlocation": "armor",
|
||||
"isidentified": "unknown",
|
||||
"description": ""
|
||||
},
|
||||
"shield": {
|
||||
@ -402,6 +404,7 @@
|
||||
"quantity": 1,
|
||||
"slotused": 1,
|
||||
"slotlocation": "shield",
|
||||
"isidentified": "unknown",
|
||||
"description": ""
|
||||
},
|
||||
"equipment": {
|
||||
@ -412,6 +415,7 @@
|
||||
"slotused": 1,
|
||||
"slotlocation": "backpack",
|
||||
"providedslot": 0,
|
||||
"isidentified": "unknown",
|
||||
"description": ""
|
||||
},
|
||||
"power": {
|
||||
|
@ -33,6 +33,7 @@
|
||||
{{/if}}
|
||||
{{#if hasuse}}
|
||||
<input type="text" class="item-field-label-short " name="system.{{path}}.{{key}}.nbuse" value="{{stat.nbuse}}" data-dtype="Number"/>
|
||||
<label class="item-field-label-2rem"> / </label>
|
||||
<input type="text" class="item-field-label-short " name="system.{{path}}.{{key}}.maxuse" value="{{stat.maxuse}}" data-dtype="Number"/>
|
||||
{{/if}}
|
||||
|
||||
|
@ -10,7 +10,18 @@
|
||||
{{/select}}
|
||||
</select>
|
||||
</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.identified"}}</label>
|
||||
<select class="item-field-label-long " type="text" name="system.identified" value="{{system.identified}}" data-dtype="String">
|
||||
{{#select system.identified}}
|
||||
{{#each config.identifiedState 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.quantity"}}</label>
|
||||
<input type="text" class="item-field-label-medium " name="system.quantity" value="{{system.quantity}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="item-field-label-medium">{{localize "WH.ui.cost"}}</label>
|
||||
|
Reference in New Issue
Block a user