diff --git a/modules/hawkmoon-utility.js b/modules/hawkmoon-utility.js index d423092..ee35404 100644 --- a/modules/hawkmoon-utility.js +++ b/modules/hawkmoon-utility.js @@ -122,7 +122,8 @@ export class HawkmoonUtility { 'systems/fvtt-hawkmoon-cyd/templates/editor-notes-gm.html', 'systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html', 'systems/fvtt-hawkmoon-cyd/templates/partial-item-nav.html', - 'systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau.html' + 'systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau.html', + 'systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.html' ] return loadTemplates(templatePaths); } diff --git a/styles/simple.css b/styles/simple.css index a3c499f..d10f36b 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -713,6 +713,12 @@ ul, li { flex-grow: 0; } +.numeric-input { + text-align: right; + direction: rtl; + padding: 5px; +} + .input-numeric-short { width: 40px; max-width: 40px; @@ -1324,11 +1330,13 @@ ul, li { min-width: 9rem; } .item-field-label-short { + padding-top: 6px; flex-grow:1; max-width: 4rem; min-width: 4rem; } .item-field-label-medium { + padding-top: 6px; flex-grow:1; max-width: 6rem; min-width: 6rem; @@ -1339,11 +1347,17 @@ ul, li { max-width: 8rem; min-width: 8rem; } +.item-field-label-long2 { + padding-top: 6px; + flex-grow:1; + max-width: 20rem; + min-width: 20rem; +} .item-control-end { align-self: flex-end; } .alternate-list { - margin-top: 4px; + margin-top: 2px; flex-wrap: nowrap; } .item-filler { diff --git a/template.json b/template.json index 02b5084..3c4e650 100644 --- a/template.json +++ b/template.json @@ -101,6 +101,13 @@ "templates": { "base": { "description": "" + }, + "basequip": { + "prixpo": 0, + "prixca": 0, + "prixsc": 0, + "rarete": 0, + "equipped": false } }, "types": [ @@ -149,10 +156,9 @@ ] }, "equipement": { - "rarete": 0, - "prix": 0, "templates": [ - "base" + "base", + "basequip" ] }, "competence": { @@ -168,35 +174,34 @@ }, "arme": { "typearme": "", - "isdefense": false, "bonusmaniementoff": 0, - "bonusmaniementdef": 0, + "seuildefense": 0, + "onlevelonly": false, "degats": "", "deuxmains": false, + "percearmure": false, + "percearmurevalue": 0, "courte": 0, "moyenne": 0, "longue": 0, "tr": 0, - "rarete": 0, - "prix": 0, - "equipped": false, "templates": [ - "base" + "base", + "basequip" ] }, "protection": { - "typeprotection": "", "protection": 0, - "rarete": 0, - "prix": 0, - "equipped": false, + "adversitepoids" :0, "templates": [ - "base" + "base", + "basequip" ] }, "monnaie": { "templates": [ - "base" + "base", + "basequip" ] }, "artefact": { @@ -211,7 +216,8 @@ "avantages": "", "competences": "", "templates": [ - "base" + "base", + "basequip" ] } diff --git a/templates/item-arme-sheet.html b/templates/item-arme-sheet.html index 6a488ab..4297282 100644 --- a/templates/item-arme-sheet.html +++ b/templates/item-arme-sheet.html @@ -1,84 +1,94 @@