From 7f6f813734e6faf210396a6ce0f8591c9ef36727 Mon Sep 17 00:00:00 2001 From: ZigmundKreud <63199460+ZigmundKreud@users.noreply.github.com> Date: Fri, 24 Dec 2021 16:06:26 +0100 Subject: [PATCH] =?UTF-8?q?Support=20des=20propri=C3=A9t=C3=A9s=20d'items?= =?UTF-8?q?=20Am=C3=A9lioration=20de=20l'interface=20d'=C3=A9dition=20d'it?= =?UTF-8?q?ems?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/bol.css | 3 + lang/en.json | 43 ++- lang/fr.json | 50 ++- module/actor/actor-sheet.js | 81 ++++- module/actor/actor.js | 41 ++- module/controllers/bol-rolls.js | 12 +- module/system/config.js | 46 ++- module/system/templates.js | 2 + styles/global/forms.less | 8 +- template.json | 1 + templates/actor/actor-sheet.hbs | 5 +- templates/actor/parts/tabs/actor-actions.hbs | 7 + templates/actor/parts/tabs/actor-combat.hbs | 5 +- .../actor/parts/tabs/actor-equipment.hbs | 324 +++++++++++++++++- templates/actor/parts/tabs/actor-features.hbs | 22 +- templates/item/item-armor-sheet.hbs | 97 ------ templates/item/item-feature-sheet.hbs | 65 ---- templates/item/item-item-sheet.hbs | 57 --- templates/item/item-weapon-sheet.hbs | 111 ------ .../item/parts/properties/item-properties.hbs | 25 +- .../properties/item/equipment-properties.hbs | 69 +++- .../properties/item/magical-properties.hbs | 2 +- .../properties/item/protection-properties.hbs | 2 +- .../properties/item/vehicle-properties.hbs | 28 ++ .../properties/item/weapon-properties.hbs | 16 +- 25 files changed, 680 insertions(+), 442 deletions(-) create mode 100644 templates/actor/parts/tabs/actor-actions.hbs delete mode 100644 templates/item/item-armor-sheet.hbs delete mode 100644 templates/item/item-feature-sheet.hbs delete mode 100644 templates/item/item-item-sheet.hbs delete mode 100644 templates/item/item-weapon-sheet.hbs create mode 100644 templates/item/parts/properties/item/vehicle-properties.hbs diff --git a/css/bol.css b/css/bol.css index df00110..fd34d57 100644 --- a/css/bol.css +++ b/css/bol.css @@ -427,6 +427,9 @@ a:hover { .bol .property { margin-top: 2px; } +.bol .inc-dec-btns { + color: #4b4a44; +} /* Items List */ .items-list { list-style: none; diff --git a/lang/en.json b/lang/en.json index e06034b..9e34162 100644 --- a/lang/en.json +++ b/lang/en.json @@ -24,21 +24,22 @@ "BOL.ui.tab.stats": "Attributs", "BOL.ui.tab.combat": "Combat", + "BOL.ui.tab.actions": "Actions", "BOL.ui.tab.features": "Traits", "BOL.ui.tab.equipment": "Equipement", "BOL.ui.tab.description": "Description", "BOL.ui.tab.details": "Details", - "BOL.ui.properties": "Proprietes", + "BOL.ui.properties": "Propriétés", "BOL.ui.description": "Description", "BOL.ui.actions": "Actions", + "BOL.ui.capacities": "Capacités", "BOL.ui.damages": "Dommages", "BOL.ui.details": "Détails", "BOL.ui.category": "Catégorie", "BOL.ui.subcategory": "Sous-catégorie", "BOL.ui.type": "Type", "BOL.ui.subtype": "Sous-type", - "BOL.ui.properties": "Propriétés", "BOL.ui.attribute" : "Attribut", "BOL.ui.aptitude" : "Aptitude", "BOL.ui.advantages" : "Avantages/Désavantages", @@ -46,11 +47,16 @@ "BOL.ui.item": "Objet", "BOL.ui.edit": "Editer", "BOL.ui.unequip": "Déséquiper", - "BOL.ui.equip": "Equiper", + "BOL.ui.equip": "Équiper", "BOL.ui.delete": "Supprimer", "BOL.ui.roll" : "Utiliser", "BOL.ui.equipment" : "Équipement", + "BOL.ui.equipmentProperties" : "Propiétés d'équipement", + "BOL.ui.weaponProperties" : "Propiétés offensives", + "BOL.ui.protectionProperties" : "Protection", + "BOL.ui.magicalProperties" : "Propriétés magiques", "BOL.ui.armor" : "Armure", + "BOL.ui.reach" : "Allonge", "BOL.ui.weapon" : "Arme", "BOL.ui.melee" : "Arme de contact", "BOL.ui.ranged" : "Arme à distance", @@ -59,6 +65,8 @@ "BOL.ui.blocking" : "Blocage", "BOL.ui.range" : "Portée", "BOL.ui.quantity" : "Quantité", + "BOL.ui.qty" : "Qté", + "BOL.ui.slot" : "Empl.", "BOL.ui.weight" : "Poids", "BOL.ui.price": "Prix", "BOL.ui.cancel": "Annuler", @@ -77,6 +85,13 @@ "BOL.ui.critical" : "Succès critique", "BOL.ui.maneuvers" : "Actions de combat", "BOL.ui.stacksize" : "Taille de pile (max)", + "BOL.ui.weapons" : "Armes", + "BOL.ui.protections" : "Protections", + "BOL.ui.ammos" : "Munitions", + "BOL.ui.containers" : "Conteneurs", + "BOL.ui.treasure" : "Trésor", + "BOL.ui.vehicles" : "Véhicules/Montures", + "BOL.ui.misc" : "Divers", "BOL.featureCategory.origins": "Origines", "BOL.featureCategory.races": "Races", @@ -140,7 +155,7 @@ "BOL.itemProperty.bashing": "Dégâts non létaux", "BOL.itemProperty.stackable": "Empilable", "BOL.itemProperty.ranged": "A distance", - "BOL.itemProperty.weapon": "Arme", + "BOL.itemProperty.weapon": "Offensive", "BOL.itemProperty.reloadable": "Rechargeable", "BOL.itemProperty.worn": "Équipé", "BOL.itemProperty.spell" : "Sort", @@ -169,7 +184,8 @@ "BOL.itemProperty.blockingAttacksBlocked" : "Attaques bloquée", "BOL.itemProperty.blocking1Attack" : "Bloque 1 attaque", "BOL.itemProperty.blockingAllAttacks" : "Bloque toutes les attaques", - + "BOL.itemProperty.slot" : "Emplacement utilisé", + "BOL.itemProperty.reload": "Rechargement (Actions)", "BOL.itemStat.quantity": "Quantité", "BOL.itemStat.weight": "Poids", @@ -208,6 +224,23 @@ "BOL.armorQuality.heavySup" : "Lourde Supérieure", "BOL.armorQuality.heavyLeg" : "Lourde Légendaire", + "BOL.equipmentSlots.none" : "-", + "BOL.equipmentSlots.head" : "Tête", + "BOL.equipmentSlots.neck" : "Cou", + "BOL.equipmentSlots.shoulders" : "Épaules", + "BOL.equipmentSlots.body" : "Corps", + "BOL.equipmentSlots.rhand" : "Main droite", + "BOL.equipmentSlots.lhand" : "Main gauche", + "BOL.equipmentSlots.2hands" : "2 mains", + "BOL.equipmentSlots.rarm" : "Bras droit", + "BOL.equipmentSlots.larm" : "Bras gauche", + "BOL.equipmentSlots.chest" : "Torse", + "BOL.equipmentSlots.belt" : "Ceinture", + "BOL.equipmentSlots.legs" : "Jambes", + "BOL.equipmentSlots.feet" : "Pieds", + "BOL.equipmentSlots.finder" : "Doigt", + "BOL.equipmentSlots.ear" : "Oreille", + "BOL.range.PointBlank": "Bout portant", "BOL.range.Short": "Courte", diff --git a/lang/fr.json b/lang/fr.json index e06034b..b7a7dd7 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -24,21 +24,22 @@ "BOL.ui.tab.stats": "Attributs", "BOL.ui.tab.combat": "Combat", + "BOL.ui.tab.actions": "Actions", "BOL.ui.tab.features": "Traits", "BOL.ui.tab.equipment": "Equipement", "BOL.ui.tab.description": "Description", "BOL.ui.tab.details": "Details", - "BOL.ui.properties": "Proprietes", + "BOL.ui.properties": "Propriétés", "BOL.ui.description": "Description", "BOL.ui.actions": "Actions", + "BOL.ui.capacities": "Capacités", "BOL.ui.damages": "Dommages", "BOL.ui.details": "Détails", "BOL.ui.category": "Catégorie", "BOL.ui.subcategory": "Sous-catégorie", "BOL.ui.type": "Type", "BOL.ui.subtype": "Sous-type", - "BOL.ui.properties": "Propriétés", "BOL.ui.attribute" : "Attribut", "BOL.ui.aptitude" : "Aptitude", "BOL.ui.advantages" : "Avantages/Désavantages", @@ -46,11 +47,16 @@ "BOL.ui.item": "Objet", "BOL.ui.edit": "Editer", "BOL.ui.unequip": "Déséquiper", - "BOL.ui.equip": "Equiper", + "BOL.ui.equip": "Équiper", "BOL.ui.delete": "Supprimer", "BOL.ui.roll" : "Utiliser", "BOL.ui.equipment" : "Équipement", + "BOL.ui.equipmentProperties" : "Propiétés d'équipement", + "BOL.ui.weaponProperties" : "Propiétés offensives", + "BOL.ui.protectionProperties" : "Protection", + "BOL.ui.magicalProperties" : "Propriétés magiques", "BOL.ui.armor" : "Armure", + "BOL.ui.reach" : "Allonge", "BOL.ui.weapon" : "Arme", "BOL.ui.melee" : "Arme de contact", "BOL.ui.ranged" : "Arme à distance", @@ -59,6 +65,8 @@ "BOL.ui.blocking" : "Blocage", "BOL.ui.range" : "Portée", "BOL.ui.quantity" : "Quantité", + "BOL.ui.qty" : "Qté", + "BOL.ui.slot" : "Empl.", "BOL.ui.weight" : "Poids", "BOL.ui.price": "Prix", "BOL.ui.cancel": "Annuler", @@ -77,6 +85,15 @@ "BOL.ui.critical" : "Succès critique", "BOL.ui.maneuvers" : "Actions de combat", "BOL.ui.stacksize" : "Taille de pile (max)", + "BOL.ui.weapons" : "Armes", + "BOL.ui.protections" : "Protections", + "BOL.ui.ammos" : "Munitions", + "BOL.ui.containers" : "Conteneurs", + "BOL.ui.treasure" : "Trésor", + "BOL.ui.vehicles" : "Véhicules/Montures", + "BOL.ui.misc" : "Divers", + "BOL.ui.vehicleProperties" : " Propriétés de véhicule", + "BOL.ui.speed" : "Vitesse", "BOL.featureCategory.origins": "Origines", "BOL.featureCategory.races": "Races", @@ -140,7 +157,7 @@ "BOL.itemProperty.bashing": "Dégâts non létaux", "BOL.itemProperty.stackable": "Empilable", "BOL.itemProperty.ranged": "A distance", - "BOL.itemProperty.weapon": "Arme", + "BOL.itemProperty.weapon": "Offensive", "BOL.itemProperty.reloadable": "Rechargeable", "BOL.itemProperty.worn": "Équipé", "BOL.itemProperty.spell" : "Sort", @@ -169,7 +186,8 @@ "BOL.itemProperty.blockingAttacksBlocked" : "Attaques bloquée", "BOL.itemProperty.blocking1Attack" : "Bloque 1 attaque", "BOL.itemProperty.blockingAllAttacks" : "Bloque toutes les attaques", - + "BOL.itemProperty.slot" : "Emplacement utilisé", + "BOL.itemProperty.reload": "Rechargement (Actions)", "BOL.itemStat.quantity": "Quantité", "BOL.itemStat.weight": "Poids", @@ -208,6 +226,28 @@ "BOL.armorQuality.heavySup" : "Lourde Supérieure", "BOL.armorQuality.heavyLeg" : "Lourde Légendaire", + "BOL.equipmentSlots.none" : "-", + "BOL.equipmentSlots.head" : "Tête", + "BOL.equipmentSlots.neck" : "Cou", + "BOL.equipmentSlots.shoulders" : "Épaules", + "BOL.equipmentSlots.body" : "Corps", + "BOL.equipmentSlots.rhand" : "Main droite", + "BOL.equipmentSlots.lhand" : "Main gauche", + "BOL.equipmentSlots.2hands" : "2 mains", + "BOL.equipmentSlots.rarm" : "Bras droit", + "BOL.equipmentSlots.larm" : "Bras gauche", + "BOL.equipmentSlots.chest" : "Torse", + "BOL.equipmentSlots.belt" : "Ceinture", + "BOL.equipmentSlots.legs" : "Jambes", + "BOL.equipmentSlots.feet" : "Pieds", + "BOL.equipmentSlots.finder" : "Doigt", + "BOL.equipmentSlots.ear" : "Oreille", + + "BOL.vehicleCategory.mount" : "Monture terrestre", + "BOL.vehicleCategory.flying" : "Monture volante", + "BOL.vehicleCategory.boat" : "Bateau", + "BOL.vehicleCategory.other" : "Autre", + "BOL.range.PointBlank": "Bout portant", "BOL.range.Short": "Courte", diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 6c10e70..bd1357c 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -38,11 +38,53 @@ export class BoLActorSheet extends ActorSheet { // Equip/Unequip item html.find('.item-equip').click(this._onToggleEquip.bind(this)); + // Incr./Decr. career ranks + html.find(".inc-dec-btns").click((ev) => { + const li = $(ev.currentTarget).parents(".item"); + if(li){ + const item = this.actor.items.get(li.data("itemId")); + if(item){ + const dataset = ev.currentTarget.dataset; + const operator = dataset.operator; + const target = dataset.target; + const incr = parseInt(dataset.incr); + const min = parseInt(dataset.min); + const max = parseInt(dataset.max); + const itemData = item.data; + let value = eval("itemData."+target); + if(operator === "minus"){ + if(value >= min + incr) value -= incr; + else value = min; + } + if(operator === "plus"){ + if(value <= max - incr) value += incr; + else value = max; + } + let update = {}; + update[target] = value; + item.update(update); + } + } + // const input = html.find("#" + type); + // let value = parseInt(input.val(), 10) || 0; + // value += operator === "plus" ? 1 : -1; + // input.val(value > 0 ? value : 0); + }); + + // Delete Inventory Item html.find('.item-delete').click(ev => { - const li = $(ev.currentTarget).parents(".item"); - this.actor.deleteEmbeddedDocuments("Item", [li.data("itemId")]) - li.slideUp(200, () => this.render(false)); + Dialog.confirm({ + title: "Suppression", + content: `Vous êtes sûr de vouloir supprimer cet item ?`, + yes: () => { + const li = $(ev.currentTarget).parents(".item"); + this.actor.deleteEmbeddedDocuments("Item", [li.data("itemId")]) + li.slideUp(200, () => this.render(false)); + }, + no: () => {}, + defaultYes: false, + }); }); // Rollable abilities. @@ -65,17 +107,28 @@ export class BoLActorSheet extends ActorSheet { /** @override */ getData(options) { - const actorData = super.getData(options); - actorData.data = { - details : this.actor.details, - attributes : this.actor.attributes, - aptitudes : this.actor.aptitudes, - resources : this.actor.resources, - equipment : this.actor.equipment, - combat : this.actor.buildCombat(), - features : this.actor.buildFeatures() - }; - return actorData; + const data = super.getData(options); + const actorData = data.data; + data.config = game.bol.config; + data.data = actorData.data; + data.details = this.actor.details; + data.attributes = this.actor.attributes; + data.aptitudes = this.actor.aptitudes; + data.resources = this.actor.resources; + data.equipment = this.actor.equipment; + data.weapons = this.actor.weapons; + data.protections = this.actor.protections; + data.containers = this.actor.containers; + data.treasure = this.actor.treasure; + data.vehicles = this.actor.vehicles; + data.ammos = this.actor.ammos; + data.misc = this.actor.misc; + data.combat = this.actor.buildCombat(); + data.features = this.actor.buildFeatures(); + data.isGM = game.user.isGM; + + console.log("ACTORDATA", data); + return data; } /* -------------------------------------------- */ diff --git a/module/actor/actor.js b/module/actor/actor.js index 4314aea..c6f617e 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -68,27 +68,50 @@ export class BoLActor extends Actor { get equipment() { return this.itemData.filter(i => i.type === "item"); } - get weapons() { - return this.itemData.filter(i => i.type === "item" && i.data.subtype === "weapon"); - } get armors() { - return this.itemData.filter(i => i.type === "item" && i.data.subtype === "armor" && i.data.worn === true); + return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && i.data.subtype === "armor"); } get helms() { - return this.itemData.filter(i => i.type === "item" && i.data.subtype === "helm" && i.data.worn === true); + return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && i.data.subtype === "helm"); } get shields() { - return this.itemData.filter(i => i.type === "item" && i.data.subtype === "shield" && i.data.worn === true); + return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && i.data.subtype === "shield"); + } + + get weapons() { + return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && i.data.subtype === "weapon"); } get protections() { - return this.armors.concat(this.helms) + return this.armors.concat(this.helms).concat(this.shields) } + get melee() { - return this.weapons.filter(i => i.data.properties.melee === true && i.data.worn === true); + return this.weapons.filter(i => i.data.properties.melee === true); } get ranged() { - return this.weapons.filter(i => i.data.properties.ranged === true && i.data.worn === true); + return this.weapons.filter(i => i.data.properties.ranged === true); } + + get containers() { + return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && i.data.subtype === "container"); + } + + get treasure() { + return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && i.data.subtype === "currency"); + } + + get vehicles() { + return this.itemData.filter(i => i.type === "item" && i.data.category === "vehicle"); + } + + get ammos() { + return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && i.data.subtype === "ammunition"); + } + + get misc() { + return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && (i.data.subtype === "other" ||i.data.subtype === "container" ||i.data.subtype === "scroll" || i.data.subtype === "jewel")); + } + buildFeatures(){ return { "careers": { diff --git a/module/controllers/bol-rolls.js b/module/controllers/bol-rolls.js index 0c0122c..ea10d0d 100644 --- a/module/controllers/bol-rolls.js +++ b/module/controllers/bol-rolls.js @@ -34,9 +34,9 @@ export class BoLRoll { adv:adv, mod: mod, attr:attribute, - careers:actorData.data.features.careers, - boons:actorData.data.features.boons, - flaws:actorData.data.features.flaws + careers:actorData.features.careers, + boons:actorData.features.boons, + flaws:actorData.features.flaws }; const rollOptionContent = await renderTemplate(rollOptionTpl, dialogData); let d = new Dialog({ @@ -80,9 +80,9 @@ export class BoLRoll { adv:adv, mod: mod, apt:aptitude, - careers:actorData.data.features.careers, - boons:actorData.data.features.boons, - flaws:actorData.data.features.flaws + careers:actorData.features.careers, + boons:actorData.features.boons, + flaws:actorData.features.flaws }; const rollOptionContent = await renderTemplate(rollOptionTpl, dialogData); let d = new Dialog({ diff --git a/module/system/config.js b/module/system/config.js index 77a899b..9bebed8 100644 --- a/module/system/config.js +++ b/module/system/config.js @@ -17,6 +17,25 @@ BOL.damageValues = { "d6BB" : "d6B + dé bonus", } +BOL.equipmentSlots = { + "none" : "BOL.equipmentSlots.none", + "head" : "BOL.equipmentSlots.head", + "neck" : "BOL.equipmentSlots.neck", + "shoulders" : "BOL.equipmentSlots.shoulders", + "body" : "BOL.equipmentSlots.body", + "rhand" : "BOL.equipmentSlots.rhand", + "lhand" : "BOL.equipmentSlots.lhand", + "2hands" : "BOL.equipmentSlots.2hands", + "rarm" : "BOL.equipmentSlots.rarm", + "larm" : "BOL.equipmentSlots.larm", + "chest" : "BOL.equipmentSlots.chest", + "belt" : "BOL.equipmentSlots.belt", + "legs" : "BOL.equipmentSlots.legs", + "feet" : "BOL.equipmentSlots.feet", + "finder" : "BOL.equipmentSlots.finder", + "ear" : "BOL.equipmentSlots.ear" +} + BOL.armorQualities = { "none" : "BOL.armorQuality.none", "light" : "BOL.armorQuality.light", @@ -83,13 +102,6 @@ BOL.itemCategories = { } BOL.itemSubtypes = { - "equipment" : "BOL.equipmentCategory.equipment", - "protection" : "BOL.equipmentCategory.protection", - "weapon" : "BOL.equipmentCategory.weapon", - "magical" : "BOL.equipmentCategory.magical" -} - -BOL.equipmentCategories = { "armor" : "BOL.equipmentCategory.armor", "weapon" : "BOL.equipmentCategory.weapon", "shield" : "BOL.equipmentCategory.shield", @@ -102,6 +114,26 @@ BOL.equipmentCategories = { "other" : "BOL.equipmentCategory.other" } +BOL.vehicleSubtypes = { + "mount" : "BOL.vehicleCategory.mount", + "flying" : "BOL.vehicleCategory.flying", + "boat" : "BOL.vehicleCategory.boat", + "other" : "BOL.vehicleCategory.other" +} + +// BOL.equipmentCategories = { +// "armor" : "BOL.equipmentCategory.armor", +// "weapon" : "BOL.equipmentCategory.weapon", +// "shield" : "BOL.equipmentCategory.shield", +// "helm" : "BOL.equipmentCategory.helm", +// "jewel" : "BOL.equipmentCategory.jewel", +// "scroll" : "BOL.equipmentCategory.scroll", +// "container" : "BOL.equipmentCategory.container", +// "ammunition" : "BOL.equipmentCategory.ammunition", +// "currency" : "BOL.equipmentCategory.currency", +// "other" : "BOL.equipmentCategory.other" +// } + BOL.protectionCategories = { "armor" : "BOL.protectionCategory.armor", "shield" : "BOL.protectionCategory.shield", diff --git a/module/system/templates.js b/module/system/templates.js index 45f12b7..47fbd47 100644 --- a/module/system/templates.js +++ b/module/system/templates.js @@ -11,6 +11,7 @@ export const preloadHandlebarsTemplates = async function () { "systems/bol/templates/actor/parts/actor-header.hbs", "systems/bol/templates/actor/parts/tabs/actor-stats.hbs", "systems/bol/templates/actor/parts/tabs/actor-combat.hbs", + "systems/bol/templates/actor/parts/tabs/actor-actions.hbs", "systems/bol/templates/actor/parts/tabs/actor-features.hbs", "systems/bol/templates/actor/parts/tabs/actor-equipment.hbs", // ITEMS @@ -18,6 +19,7 @@ export const preloadHandlebarsTemplates = async function () { "systems/bol/templates/item/parts/properties/feature-properties.hbs", "systems/bol/templates/item/parts/properties/item-properties.hbs", "systems/bol/templates/item/parts/properties/item/equipment-properties.hbs", + "systems/bol/templates/item/parts/properties/item/vehicle-properties.hbs", "systems/bol/templates/item/parts/properties/item/protection-properties.hbs", "systems/bol/templates/item/parts/properties/item/weapon-properties.hbs", "systems/bol/templates/item/parts/properties/item/magical-properties.hbs", diff --git a/styles/global/forms.less b/styles/global/forms.less index 0af2e2c..293583d 100644 --- a/styles/global/forms.less +++ b/styles/global/forms.less @@ -238,11 +238,11 @@ } :-ms-input-placeholder { /* Internet Explorer 10-11 */ - color: lightgray;; + color: lightgray; } ::-ms-input-placeholder { /* Microsoft Edge */ - color: lightgray;; + color: lightgray; } input::placeholder { @@ -252,4 +252,8 @@ .property { margin-top: 2px; } + + .inc-dec-btns { + color:@colorOlive; + } } \ No newline at end of file diff --git a/template.json b/template.json index 36e1716..8d590c2 100644 --- a/template.json +++ b/template.json @@ -140,6 +140,7 @@ "quantity": 1, "weight": 0, "price": 0, + "worn": false, "properties" : { "ranged": false, "melee": false, diff --git a/templates/actor/actor-sheet.hbs b/templates/actor/actor-sheet.hbs index 9fcca72..9bd8a7a 100644 --- a/templates/actor/actor-sheet.hbs +++ b/templates/actor/actor-sheet.hbs @@ -9,7 +9,7 @@ {{!-- Sheet Tab Navigation --}}