From dca9dab577dd7b944d683d5d636874a499d62807 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 1 Jun 2022 22:37:33 +0200 Subject: [PATCH] Enhance interface --- modules/mournblade-actor-sheet.js | 9 +-- modules/mournblade-actor.js | 9 ++- modules/mournblade-item.js | 12 ++++ modules/mournblade-main.js | 10 +-- packs/equipement.db | 55 ++++++++++++++++ packs/protections.db | 0 packs/skills.db | 15 +++++ packs/weapons.db | 0 styles/simple.css | 7 ++ system.json | 10 +-- template.json | 2 +- templates/actor-sheet.html | 102 +++--------------------------- 12 files changed, 120 insertions(+), 111 deletions(-) create mode 100644 packs/equipement.db create mode 100644 packs/protections.db create mode 100644 packs/skills.db create mode 100644 packs/weapons.db diff --git a/modules/mournblade-actor-sheet.js b/modules/mournblade-actor-sheet.js index 172f070..5fefb8f 100644 --- a/modules/mournblade-actor-sheet.js +++ b/modules/mournblade-actor-sheet.js @@ -40,6 +40,7 @@ export class MournbladeActorSheet extends ActorSheet { data: actorData, effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)), limited: this.object.limited, + skills: duplicate(this.actor.getSkills()), weapons: duplicate(this.actor.getWeapons()), armors: duplicate(this.actor.getArmors()), //equipments: duplicate(this.actor.getEquipments()), @@ -69,10 +70,10 @@ export class MournbladeActorSheet extends ActorSheet { // Update Inventory Item html.find('.item-edit').click(ev => { - const li = $(ev.currentTarget).parents(".item"); - let itemId = li.data("item-id"); - const item = this.actor.items.get( itemId ); - item.sheet.render(true); + const li = $(ev.currentTarget).parents(".item") + let itemId = li.data("item-id") + const item = this.actor.items.get( itemId ) + item.sheet.render(true) }); // Delete Inventory Item html.find('.item-delete').click(ev => { diff --git a/modules/mournblade-actor.js b/modules/mournblade-actor.js index a9ece2d..0c4c236 100644 --- a/modules/mournblade-actor.js +++ b/modules/mournblade-actor.js @@ -34,11 +34,11 @@ export class MournbladeActor extends Actor { return actor; } - if (data.type == 'character') { + if (data.type == 'personnage') { const skills = await MournbladeUtility.loadCompendium("fvtt-mournblade.skills") data.items = skills.map(i => i.toObject()); } - if (data.type == 'npc') { + if (data.type == 'pnj') { } return super.create(data, options); @@ -52,6 +52,11 @@ export class MournbladeActor extends Actor { getArmors() { return this.data.items.filter(item => item.type == "protection" ) } + /* -------------------------------------------- */ + getSkills() { + return this.data.items.filter(item => item.type == "competence" ) + } + /* -------------------------------------------- */ prepareBaseData() { } diff --git a/modules/mournblade-item.js b/modules/mournblade-item.js index 8ad754e..2c875bb 100644 --- a/modules/mournblade-item.js +++ b/modules/mournblade-item.js @@ -1,6 +1,18 @@ import { MournbladeUtility } from "./mournblade-utility.js"; export const defaultItemImg = { + competence: "systems/fvtt-mournblade/assets/icons/competence.webp", + arme: "systems/fvtt-mournblade/assets/icons/arme.webp", + capacite: "systems/fvtt-mournblade/assets/icons/capacite.webp", + don: "systems/fvtt-mournblade/assets/icons/don.webp", + equipement: "systems/fvtt-mournblade/assets/icons/equipement.webp", + monnaie: "systems/fvtt-mournblade/assets/icons/monnaie.webp", + pacte: "systems/fvtt-mournblade/assets/icons/pacte.webp", + predilection: "systems/fvtt-mournblade/assets/icons/predilection.webp", + protection: "systems/fvtt-mournblade/assets/icons/protection.webp", + rune: "systems/fvtt-mournblade/assets/icons/rune.webp", + tendance: "systems/fvtt-mournblade/assets/icons/tendance.webp", + traitchaotique: "systems/fvtt-mournblade/assets/icons/traitchaotique.webp", } /** diff --git a/modules/mournblade-main.js b/modules/mournblade-main.js index 1676cc5..1b94e5f 100644 --- a/modules/mournblade-main.js +++ b/modules/mournblade-main.js @@ -50,11 +50,11 @@ Hooks.once("init", async function () { /* -------------------------------------------- */ // Register sheet application classes Actors.unregisterSheet("core", ActorSheet); - Actors.registerSheet("fvtt-mournblade", MournbladeActorSheet, { types: ["character"], makeDefault: true }); + Actors.registerSheet("fvtt-mournblade", MournbladeActorSheet, { types: ["personnage"], makeDefault: true }) //Actors.registerSheet("fvtt-mournblade", MournbladeNPCSheet, { types: ["npc"], makeDefault: false }); Items.unregisterSheet("core", ItemSheet); - Items.registerSheet("fvtt-mournblade", MournbladeItemSheet, { makeDefault: true }); + Items.registerSheet("fvtt-mournblade", MournbladeItemSheet, { makeDefault: true }) MournbladeUtility.init(); @@ -66,7 +66,7 @@ function welcomeMessage() { user: game.user.id, whisper: [game.user.id], content: `
- Welcome to Mournblade RPG. + Bienvenue dans les Jeunes Royaumes de Mournblade ! ` }); } @@ -78,9 +78,9 @@ Hooks.once("ready", function () { MournbladeUtility.ready(); // User warning if (!game.user.isGM && game.user.character == undefined) { - ui.notifications.info("Warning ! No character linked to your user !"); + ui.notifications.info("Attention ! Aucun personnage n'est relié au joueur !"); ChatMessage.create({ - content: "WARNING The player " + game.user.name + " is not linked to a character !", + content: "ATTENTION Le joueur " + game.user.name + " n'est relié à aucun personnage !", user: game.user._id }); } diff --git a/packs/equipement.db b/packs/equipement.db new file mode 100644 index 0000000..34fe605 --- /dev/null +++ b/packs/equipement.db @@ -0,0 +1,55 @@ +{"name":"Chapeau fatigué","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":0,"prix":2},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.D26fUtZxrzcTR07B"}},"_id":"1cZd2hlTV9tykDED"} +{"name":"Bœuf","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":50},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.whAhz9pO1NUt8Pjm"}},"_id":"3pvWKiyXhc9mmg70"} +{"name":"Manteau","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":4},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.FZztAyGbF2cL9wyc"}},"_id":"40P9lOUYI16gEGZS"} +{"name":"Poney","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":30},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.VKZrNcrCm9Ju7ayv"}},"_id":"7MdI99vLmaytPNKE"} +{"name":"Tenue complète d’homme fortuné","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

(pantalons de coton, chemise de drap fi n, pourpoint de velours, chapeau, bottes montantes ou chaussures à boucles)

","rarete":7,"prix":6},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.dw6wLsNmwmEW79ei"}},"_id":"82fzHPjxUkGMCVUX"} +{"name":"Laboratoire d’Alchimiste","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Permet de mettre au point les objets les plus complexes (difficulté de 25 et au-delà)

","rarete":10,"prix":2000},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.eq0FJtwQd2jHbdvv"}},"_id":"8GK1Hn6le3JlsT6T"} +{"name":"Vieille carne","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Modificateur de Monte -2

","rarete":2,"prix":50},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.iikcWs26aEjtXDKo"}},"_id":"8NPElVs0cYrGbmXO"} +{"name":"Nuit d’auberge à l’étable","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":3,"prix":1},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.uo464pRDCNIPsUvW"}},"_id":"9dEaZklkBs1GgdD7"} +{"name":"Coursier","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Modificateur de Monte +2

","rarete":7,"prix":120},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.t4PPYVE2B6B9tUy1"}},"_id":"AZDTSEUo52dnf37U"} +{"name":"Papier, plume et encre","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":6,"prix":20},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.545S2qajtz6DSzzq"}},"_id":"Bg8jNqGusEdHxV00"} +{"name":"Chariot couvert ou bâché","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":3,"prix":100},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.GRhCO7lW7NaHThqU"}},"_id":"FlK49ZIVnceUTy1P"} +{"name":"Tenue complète bourgeoise","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

 (chausses, chemise, pourpoint, chapeau, bottes)

","rarete":6,"prix":30},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.XZSiLPhbhlj1Wil1"}},"_id":"HdlqqXJ393Pf3GxA"} +{"name":"Nuit d’auberge dans une chambre particulière","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":5,"prix":5},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.xtlOL4VOsTDvyUvR"}},"_id":"LnKDtuhsacvcet7B"} +{"name":"Louer une petite maison de ville pour un mois","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Se paie généralement d’avance…

","rarete":0,"prix":40},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.Tfu7ywqXoXzXgP6H"}},"_id":"NZ28hyteLgOxlXC7"} +{"name":"Repas de fête","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":5,"prix":4},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.gTCljExvFFpG7K1s"}},"_id":"OyRix5REF10GPbSp"} +{"name":"Cheval d’attelage","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":4,"prix":80},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.KDfgGmQ4tUj765MN"}},"_id":"QHPoow1iDYEdExgs"} +{"name":"Repas chaud","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":0,"prix":1},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.ErKXhChAfgugKU1a"}},"_id":"QojR7XS4mGjbMq5w"} +{"name":"Charrette","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":70},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.4HRLU67Ipd1PFqUV"}},"_id":"RXMBJNKXfy3S3yck"} +{"name":"Onguent de soin","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

10 tours de jeu sont nécessaires pour l’appliquer. Permet de récupérer [[/roll 1D4]] points de Santé après (10 – Trempe) heures

","rarete":5,"prix":20},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.RdqMNJzemUcCYO1H"}},"_id":"RyNJqjQvDbMixok0"} +{"name":"Barge","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":5,"prix":300},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.l7tiShWweGQ8fzDp"}},"_id":"TyeTRm4FxLeRNDTU"} +{"name":"Pommade à frotter pour faire circuler le sang","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Protège des effets du froid (+ 5 aux tests de Trempe)

","rarete":4,"prix":2},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.BbzFc96y1QHi0Old"}},"_id":"VPkZxH3bkTR8WqXQ"} +{"name":"Cape","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":2},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.HZkgEeG4apx4I4Tn"}},"_id":"WL0809BYVR9JxaMM"} +{"name":"Poudre blanche","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

(à inhaler pour se sentir en forme)

\n

S’inhale le temps d’une action (à inhaler pour se sentir en forme) simple. Permet de récupérer immédiatement [[/roll 1D4]] cases de Santé (dégâts non létaux). À chaque inhalation, lancez un [[/roll 1d20]]. Sur un 1 ou un 11, celui qui vient de priser la poudre s’eff ondre et reste inconscient durant (10 – Trempe) heures.

\n

 

","rarete":7,"prix":5},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.axOu6tHgHC7kYnG3"}},"_id":"WntSrr0j00DLntZV"} +{"name":"Lanterne","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":10},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.OKydo5obAtmOVNup"}},"_id":"Wo0tplt93X9wemlV"} +{"name":"Chien dressé","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":10},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.5jFTzXfwTgkVvjv7"}},"_id":"Wus5fIYO731eLG0i"} +{"name":"Pain de route (rations pour une semaine)","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":0,"prix":10},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.18Hb7BDncVyHgyeM"}},"_id":"X4nIqFrjWy0hCVbZ"} +{"name":"Matériel de survie","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

(sac, gourde, couverture, tente)

","rarete":2,"prix":5},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.wv6tWbuJjnZ7jiXH"}},"_id":"e8ZbG2WQCzJTRzBK"} +{"name":"Herbes à infuser contre les fièvres légères","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":1},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.iL0fjlODZ4JnNpwN"}},"_id":"eH4V6AlAZNEuwlrw"} +{"name":"Barque à rames, canoë","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":60},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.HKxNf2i5EEu5wAN5"}},"_id":"eXP5rck0IJK4Az8c"} +{"name":"Petit atelier et son outillage","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Permet de fabriquer les objets les plus simples (jusqu’à une difficulté de 20)

","rarete":8,"prix":50},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.TD0bN2tEIG8VqnbD"}},"_id":"fc2fReiW3mV6jekF"} +{"name":"Antipoison","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Confère un bonus de + 5 au test de Soins pour arrêter les pertes de points de Santé. Note : tous les poisons n’ont pas d’antipoison connu.

","rarete":7,"prix":50},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.7NDLIEeS4WVyXDqo"}},"_id":"fkleifA7qbOzRZCy"} +{"name":"Fonderie","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":10,"prix":10000},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.Y14CMXm2avlCnqPC"}},"_id":"frS3jj7bs0l9zMGi"} +{"name":"Roulotte","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":5,"prix":150},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.X5GxbvOMqQ8aHh49"}},"_id":"g5rDtYzyQ4IxUWXu"} +{"name":"Forge","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":4,"prix":100},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.cma6u26NRsZL1awt"}},"_id":"gJStREuVAaaBuwXR"} +{"name":"Miroir et peigne","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":10},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.IzlENy0Oxg82cke0"}},"_id":"hRlPFzsoUjbu3Noj"} +{"name":"Tenue complète citadine","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

(chausses et chemise de coton, chapeau, chaussures)

","rarete":3,"prix":7},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.1ldZnq4lDPHOeVba"}},"_id":"hTLeVLn5yUd2etoS"} +{"name":"Nuit d’auberge dans la salle commune","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":3,"prix":3},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.D7HcsRBK8uH6NBi4"}},"_id":"hc4w2PBpYLMQKsXS"} +{"name":"Matériel de cuisine","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":0,"prix":2},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.lJafSILU0LtNMONn"}},"_id":"i8BBr1WjfphuLTLI"} +{"name":"Chapeau à la mode","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":6,"prix":10},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.lmlWH96vjfTMN2OO"}},"_id":"kkNZoJdG86Dqci2b"} +{"name":"Herbes à mâcher les lendemains de beuverie","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":1},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.STMfa8tVupqJPllD"}},"_id":"muCWd5AKL21AbTg8"} +{"name":"Tenue complète paysanne","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

(chausses et chemise de jute, grand foulard, sandales)

","rarete":0,"prix":4},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.4WIrBhrpn4AlSnh3"}},"_id":"nJKLD6BqEHbBHmOY"} +{"name":"Selle et fontes","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":20},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.J1HAwhIBjgkBZ3FH"}},"_id":"oIZv9KxLVQUOfi5d"} +{"name":"Destrier","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":8,"prix":800},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.MF74kXfkiwLOwWNS"}},"_id":"oIob9qCttaQw7Aea"} +{"name":"Vêtements rapiécés, nippes","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":0,"prix":2},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.rPYf2u8b3qizxxFk"}},"_id":"sLZgByw2rA2PvQms"} +{"name":"Petit voilier","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":6,"prix":50},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.tuAI18GrGFkqVHpQ"}},"_id":"tAFXmBLUXcSUKZRL"} +{"name":"Matériel hivernal","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

(piolets, raquettes, manteau et graisses)

","rarete":4,"prix":20},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.LpdplcMj4j7dWnZU"}},"_id":"tRSk0np2smLpdixK"} +{"name":"Herbes parfumées contre les mauvaises odeurs","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":1},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.y6G9LprDaOAoVn9v"}},"_id":"tXYzLGS6SFolD8k4"} +{"name":"Barque de pêcheur avec voile","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":3,"prix":100},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.ZXEq8059S3YlFhN0"}},"_id":"vUFnyal2islmmpZF"} +{"name":"Torche","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

 (lot de 3)

","rarete":1,"prix":5},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.aVBCMdM69vwfrSMW"}},"_id":"vahvt9QGYjnRlY4p"} +{"name":"Verre de vin ou de bière","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":0,"prix":1},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.5yA9UC3kExUx6CqN"}},"_id":"vmSrygoMxy6G87EO"} +{"name":"Matériel d’escalade","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

(marteau, cordes, pitons)

","rarete":3,"prix":8},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.TXj9b73MGGI6L9Av"}},"_id":"vtpjGFTYO7fiKXwE"} +{"name":"Longue-vue","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":8,"prix":250},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.n1UQvGJ8Zq6dGuEY"}},"_id":"wHU6MvZuBMmN9xfG"} +{"name":"Dose de poison violent","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Voir le chapitre « Le Combat et la santé » pour connaître les eff ets des principaux poisons

","rarete":6,"prix":3},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.EuGLW5D5SIP58uaa"}},"_id":"wQ8cgwazhlIF6WG7"} +{"name":"Louer une grange pour un mois","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"

Se paie généralement d’avance...

","rarete":0,"prix":10},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.8utWpkdD1FvHSYfv"}},"_id":"xy356PaIZisHJdUR"} +{"name":"Grande écharpe","type":"equipement","img":"systems/fvtt-mournblade/assets/icons/equipement.webp","data":{"description":"","rarete":2,"prix":2},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"RiMAsQHaUMojde7N":3},"flags":{"core":{"sourceId":"Item.j5Hei6F2XN5nrh7t"}},"_id":"y47dBO3Mf5Pn7tOd"} diff --git a/packs/protections.db b/packs/protections.db new file mode 100644 index 0000000..e69de29 diff --git a/packs/skills.db b/packs/skills.db new file mode 100644 index 0000000..3a6edd2 --- /dev/null +++ b/packs/skills.db @@ -0,0 +1,15 @@ +{"name":"Coercition","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente la capacité de forcer quelqu’un à agir contre son gré, à révéler des secrets ou à obéir aveuglément. Plus cette compétence est élevée, plus le personnage sait se montrer intimidant et jouer sur l’autorité qu’il inspire pour briser la volonté de ses interlocuteurs.

\n
\n
\n
\n
","niveau":0,"attribut1":"pre","attribut2":"none","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.TKynUVrQwS2bDMUx"}},"_id":"0LlzDyCurJedqeyG"} +{"name":"Soins","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente le savoir médical pratique, l’habileté à arrêter une hémorragie et la connaissance des remèdes communs. Plus cette compétence est élevée, plus le personnage est apte à diagnostiquer et traiter les blessures, maladies et empoisonnements. Entre les créatures féroces qui infestent les terres sauvages, les maladies étranges et l’austérité de la vie dans certains des Jeunes Royaumes, il va sans dire que cette compé- tence précieuse pour les aventuriers est partout appréciée. Toutefois, les connaissances dans ce domaine sont assez primitives.

\n
\n
\n
\n
","niveau":0,"attribut1":"adr","attribut2":"cla","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.WQPsPvY4jPBc9Z8A"}},"_id":"7JsIAew6eBKNzgIg"} +{"name":"Nage","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente la vitesse (Adresse), mais aussi l’endurance du nageur (Puissance)

\n
\n
\n
\n
","niveau":0,"attribut1":"adr","attribut2":"pui","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.D9YEUSVKMNKflI2W"}},"_id":"HC53TDbPonxJODLx"} +{"name":"Monte","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente l’aptitude à éduquer, soi- gner, calmer ou maîtriser les bêtes de monte et d’attelage. Elle indique aussi la plus ou moins grande aptitude du cavalier. Plus cette compétence est élevée, plus le personnage est à l’aise à cheval. Enfin, cette compétence sert également dans les cas, peu fréquents, d’interaction avec des créatures ailées.

\n
\n
\n
\n
","niveau":0,"attribut1":"cla","attribut2":"tre","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.lnjxMbn6z6dd9flw"}},"_id":"OfF1zThKE48v9luh"} +{"name":"Perception","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente à la fois la conscience de son environnement, la capacité à remarquer les détails incongrus et l’aptitude à lire le langage corporel. Plus cette compétence est élevée, plus les sens du personnage sont affûtés.

\n
\n
\n
\n
","niveau":0,"attribut1":"cla","attribut2":"none","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.9YOOuPyW3FODejth"}},"_id":"PVCmDH5V2HbPwzEr"} +{"name":"Discrétion","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente la capacité à ne pas se faire remarquer, qu’il s’agisse de se fondre dans la foule, de se faire passer pour quelqu’un d’autre, de se cacher dans l’ombre ou encore de se déplacer en silence. Plus cette compétence est élevée, plus le personnage est apte à passer inaperçu.

\n
\n
\n
\n
","niveau":0,"attribut1":"adr","attribut2":"tre","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.GkZ2UA9TXUw7zpO5"}},"_id":"Pgpk3zkcd429FQBY"} +{"name":"Navigation","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente la capacité à diriger un navire et à commander son équipage, mais aussi à garder le cap et à manœuvrer dans le cadre d’une bataille navale.

\n
\n
\n
\n
","niveau":0,"attribut1":"cla","attribut2":"none","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.puj0NKiXVOFnLxbx"}},"_id":"PuTn3oXXU78pdwzq"} +{"name":"Armes à distance","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

Représente l’habileté au lancer ou avec une arme à distance. Plus cette compétence est élevée, plus les tirs du personnage sont précis.

\n
\n
\n
\n
","niveau":0,"attribut1":"adr","attribut2":"none","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.L7dsgeFMi5kZ8R7s"}},"_id":"RmbD9JBQGAAtw693"} +{"name":"Savoir","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

Savoir est une compétence un peu particulière. En effet, comme elle représente la maîtrise d’une connaissance théorique ou d’un savoir-faire donnés, il existe autant de compétences Savoir différentes que de domaines de connaissance. Cela peut aussi bien être un domaine artistique (peinture, sculpture, danse, musique, etc.) qu’une science (logique, astronomie, etc.), un artisanat, une connaissance académique (histoire et mythes, cultes, etc.) ou encore un dialecte. Chacun de ces domaines de connaissance correspond à une unique compétence, notée « Savoir : Domaine de connaissance ».
En outre, si la plupart des compétences de savoir sont utilisées avec l’attribut Clairvoyance, d’autres s’emploient avec des attributs différents. D’une manière générale, l’Adresse est utilisée lorsqu’il s’agit d’exécuter une œuvre, de réparer ou fabriquer un objet, ou de construire une invention. Présence est employée dans de rares cas, pour déclamer un poème ou jouer une pièce de théâtre par exemple. Dans les autres cas, c’est la Clairvoyance qui est utilisée

\n
\n
\n
\n
","niveau":0,"attribut1":"adr","attribut2":"cla","attribut3":"pre","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.2yfKdSUpBKsofLBq"}},"_id":"UP53jBXQ6FcEXezE"} +{"name":"Survie","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente la capacité à trouver de quoi subsister dans la nature, à établir un campement, à faire du feu avec les moyens du bord, à se repérer. Avec Clairvoyance, cette compétence permet de trouver des baies comestibles, de poser tous les types de pièges, de pister, de trouver le meilleur emplacement pour un campement. Avec Adresse, elle permet de chasser, de pêcher, de faire du feu et de confectionner des pièges. Les prédilections représentent quant à elles les différents milieux ou climats.

\n
\n
\n
\n
","niveau":0,"attribut1":"adr","attribut2":"cla","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.RsvKX3YzelWCmfeO"}},"_id":"dZcltsDZ9sN5HXdn"} +{"name":"Mouvements","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

indique la capacité du personnage à se déplacer rapidement et longtemps. Cette compétence représente aussi bien la souplesse et la vivacité des gestes que l’endurance physique et la résistance à l’effort. Plus cette compétence est élevée, plus le personnage est en forme et peut courir, grimper ou sauter longtemps et rapidement sans se fatiguer.

\n
\n
\n
\n
","niveau":0,"attribut1":"adr","attribut2":"pui","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.oCKVEn9FtDQma5hc"}},"_id":"fXGEKvJZwcizK4Jc"} +{"name":"Filouterie","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

regroupe les activités illégales telles que le vol à la tire ou le cambriolage. Cette compétence représente également la capacité à assommer efficacement un garde ou à détourner l’attention. Plus elle est élevée, plus le personnage est rapide et discret dans ces activités.

\n
\n
\n
\n
","niveau":0,"attribut1":"adr","attribut2":"none","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.EQxK7oGydocgndVF"}},"_id":"kC1104OJrxKPg4ae"} +{"name":"Persuasion","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente la capacité à gagner un interlocuteur à sa cause, que ce soit par un savant mélange de vérités et de mensonges, par la rhétorique ou encore par la force de son charisme. Plus cette compétence est élevée, plus il est difficile de remettre en cause les paroles du personnage.

\n
\n
\n
\n
","niveau":0,"attribut1":"pre","attribut2":"none","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.5gZBcjmqKGJ0EmTb"}},"_id":"lCg85IeGOT5GACeT"} +{"name":"Mêlée","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente la maîtrise martiale et l’habi- leté au combat rapproché, avec ou sans arme. Plus cette compétence est élevée, plus le personnage est à même de passer la garde de ses adversaires en combat au corps à corps.

\n
\n
\n
\n
","niveau":0,"attribut1":"pui","attribut2":"none","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.pa6EBQlHPizxvmY1"}},"_id":"rWAWk9HFKiXaHOWf"} +{"name":"Commerce","type":"competence","img":"systems/fvtt-mournblade/assets/icons/competence.webp","data":{"description":"
\n
\n
\n
\n

représente la capacité à discuter les prix, à se procurer un article rare ou illégal, à évaluer la valeur d’un objet, mais aussi à connaître les routes de commerce, les péages, les seigneurs impliqués dans des négoces, des noms de trafiquants ou d’intendants, etc. Plus cette compétence est élevée, plus le personnage est susceptible de faire de bonnes affaires.

\n
\n
\n
\n
","niveau":0,"attribut1":"cla","attribut2":"pre","attribut3":"none","type":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"xLCohqWYqWL3nwTN":3},"flags":{"core":{"sourceId":"Item.NGskFce8PPFAGUyp"}},"_id":"tq6mEgXog7h4VyWk"} diff --git a/packs/weapons.db b/packs/weapons.db new file mode 100644 index 0000000..e69de29 diff --git a/styles/simple.css b/styles/simple.css index d8c123b..3ce9224 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -1181,6 +1181,13 @@ ul, li { border: 2px ridge #846109; } +/*************************************************************/ +.item-name-img { + flex-grow:1; + max-width: 2rem; + min-width: 2rem; +} + /*************************************************************/ #pause { diff --git a/system.json b/system.json index 74ecc90..de3e9ce 100644 --- a/system.json +++ b/system.json @@ -17,7 +17,7 @@ "library": false, "license": "LICENSE.txt", "manifest": "https://www.uberwald.me/gitea/public/fvtt-mournblade/raw/branch/main/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-0.0.4.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-0.0.5.zip", "manifestPlusVersion": "1.0.0", "media": [], "minimumCoreVersion": "0.8.0", @@ -56,8 +56,8 @@ { "type": "Item", "label": "Equipement", - "name": "equipment", - "path": "./packs/equipment.db", + "name": "equipement", + "path": "./packs/equipement.db", "system": "fvtt-mournblade", "tags": [ "equipement" @@ -70,9 +70,9 @@ "styles": [ "styles/simple.css" ], - "templateVersion": 3, + "templateVersion": 4, "title": "Mournblade", "url": "", - "version": "0.0.4", + "version": "0.0.5", "background": "./images/ui/mournblade_welcome.webp" } \ No newline at end of file diff --git a/template.json b/template.json index e3899db..0ed5bca 100644 --- a/template.json +++ b/template.json @@ -1,6 +1,6 @@ { "Actor": { - "types": ["character", "npc"], + "types": ["personnage", "pnj"], "templates": { "biodata": { "biodata": { diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 83a19b2..2fe1bd1 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -81,17 +81,18 @@
  • -

    +

    - + +
     
  • - {{#each equipements as |equip key|}} -
  • - - {{equip.name}} - {{equip.data.value}} + {{#each skills as |skill key|}} +
  • + + {{skill.name}} + {{skill.data.niveau}}
     
    @@ -103,93 +104,6 @@
-
- -
- - - -
- -
-
    -
  • - -

    -
    - - - -
  • - {{#each singularites as |singul key|}} -
  • - - {{singul.name}} - {{singul.data.value}} - -
     
    -
    - - -
    -
  • - {{/each}} -
-
- -
-
    -
  • - -

    -
    - - - -
  • - {{#each contacts as |contact key|}} -
  • - - {{contact.name}} - {{contact.data.value}} - -
     
    -
    - - -
    -
  • - {{/each}} -
-
- -