Merge branch 'v1.5-cacher-tache' into 'v1.5'

Cacher les points de tâche

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!314
This commit is contained in:
Leratier Bretonnien 2022-01-25 22:02:53 +00:00
commit 67b4070c27
4 changed files with 42 additions and 36 deletions

View File

@ -404,10 +404,12 @@ export class RdDItem extends Item {
`<b>Compétence</b>: ${tplData.competence}`,
`<b>Périodicité</b>: ${tplData.periodicite}`,
`<b>Fatigue</b>: ${tplData.fatigue}`,
`<b>Difficulté</b>: ${tplData.difficulte}`,
`<b>Points de Tâche</b>: ${tplData.points_de_tache}`,
`<b>Points de Tâche atteints</b>: ${tplData.points_de_tache_courant}`
]
`<b>Difficulté</b>: ${tplData.difficulte}`
].concat([
tplData.cacher_points_de_tache ? [] :`<b>Points de Tâche</b>: ${tplData.points_de_tache}`
]).concat([
`<b>Points de Tâche atteints</b>: ${tplData.points_de_tache_courant}`]
);
return properties;
}
/* -------------------------------------------- */

View File

@ -54,7 +54,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/competences.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "compétences" ]
},
{
@ -63,7 +63,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/arts-et-divertissements.db",
"entity": "Item",
"type": "Item",
"tags" : [ "recette", "cuisine", "danse", "musique", "chant", "jeux" ]
},
{
@ -72,7 +72,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/competences-creatures.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "compétences", "créatures" ]
},
{
@ -81,7 +81,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/competences-entites.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "compétences", "entités" ]
},
{
@ -90,7 +90,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/sorts-oniros.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "sorts" ]
},
{
@ -99,7 +99,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/sorts-hypnos.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "sorts" ]
},
{
@ -108,7 +108,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/sorts-narcos.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "sorts" ]
},
{
@ -117,7 +117,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/sorts-thanatos.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "sorts" ]
},
{
@ -126,7 +126,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/equipement.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "équipement", "objet" ]
},
{
@ -135,7 +135,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/maladies-et-poisons.db",
"entity": "Item",
"type": "Item",
"tags" : [ "maladie", "poison" ]
},
{
@ -144,7 +144,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/rappel-des-regles.db",
"entity": "JournalEntry",
"type": "JournalEntry",
"tags" : [ "journal", "règles" ]
},
{
@ -153,7 +153,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/queues-de-dragon.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "queue" ]
},
{
@ -162,7 +162,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/ombres-de-thanatos.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "ombre" ]
},
{
@ -171,7 +171,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/souffles-de-dragon.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "souffle" ]
},
{
@ -180,7 +180,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/tarot-draconique.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "tarot" ]
},
{
@ -189,7 +189,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/tetes-de-dragon-pour-haut-revants.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "tête" ]
},
{
@ -198,7 +198,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/tetes-de-dragon-pour-tous-personnages.db",
"entity": "Item",
"type": "Item",
"tags" : [ "item", "tête" ]
},
{
@ -207,7 +207,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/tables-diverses.db",
"entity": "RollTable",
"type": "RollTable",
"tags" : [ "table", "tables" ]
},
{
@ -216,7 +216,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/animaux.db",
"entity": "Actor",
"type": "Actor",
"tags" : [ "animaux", "creature" ]
},
{
@ -225,7 +225,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/voyageurs.db",
"entity": "Actor",
"type": "Actor",
"tags" : [ "voyageur", "profils" ]
},
{
@ -234,7 +234,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/vehicules.db",
"entity": "Actor",
"type": "Actor",
"tags" : [ "vehicule", "bateau", "charett", "chariot", "carriole", "barque" ]
},
{
@ -243,7 +243,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/archetypes.db",
"entity": "Actor",
"type": "Actor",
"tags" : [ "archetype", "pnj" ]
},
{
@ -252,7 +252,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/humanoides.db",
"entity": "Actor",
"type": "Actor",
"tags" : [ "humanoides", "pnj" ]
},
{
@ -261,7 +261,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/entites-de-cauchemar.db",
"entity": "Actor",
"type": "Actor",
"tags" : [ "entités", "entite", "cauchemar", "ecni", "eni" ]
},
{
@ -270,7 +270,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/invocations.db",
"entity": "Actor",
"type": "Actor",
"tags" : [ "hypnos", "invocation" ]
},
{
@ -279,7 +279,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/botanique.db",
"entity": "Item",
"type": "Item",
"tags" : [ "plantes", "champignons", "herbes" ]
},
{
@ -288,7 +288,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/taches-courantes.db",
"entity": "Item",
"type": "Item",
"tags" : [ "taches" ]
},
{
@ -297,7 +297,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/meditations-et-ecrits.db",
"entity": "Item",
"type": "Item",
"tags" : [ "meditations", "méditations", "livres", "livre", "méditation", "écrits", "écrit" ]
},
{
@ -306,7 +306,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/recettes-alchimiques.db",
"entity": "Item",
"type": "Item",
"tags" : [ "recettes", "recette", "alchimie", "alchimique", "potion" ]
},
{
@ -315,7 +315,7 @@
"system": "foundryvtt-reve-de-dragon",
"module": "foundryvtt-reve-de-dragon",
"path": "./packs/scenes-rdd.db",
"entity": "Scene",
"type": "Scene",
"tags" : [ "ecran", "scene" ]
}
],

View File

@ -381,7 +381,10 @@
<h3>Tâches</h3><a class='creer-tache'>Créer une nouvelle Tâche</a>
<ul class="item-list alterne-list">
{{#each taches as |tache id|}}
<li class="item flexrow list-item" data-item-id="{{tache._id}}"><span class="competence-title tache-label"><a>{{tache.name}} ({{tache.data.points_de_tache_courant}}/{{tache.data.points_de_tache}})</a></span>
<li class="item flexrow list-item" data-item-id="{{tache._id}}"><span class="competence-title tache-label"><a>{{tache.name}}
({{tache.data.points_de_tache_courant}}{{#if
(or @root.options.isGM (not tache.data.cacher_points_de_tache))
}}/{{tache.data.points_de_tache}}{{/if}})</a></span>
<div class="item-controls flex-shrink">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>

View File

@ -8,7 +8,8 @@
<div>
{{alias}} a obtenu {{rolled.ptTache}} point{{~#unless (eq rolled.ptTache 1)}}s{{/unless}} de tâche,
son avancement est de
<span class="rdd-roll-{{#if (gt tache.data.points_de_tache_courant 0)}}norm{{else}}etotal{{/if}}">{{tache.data.points_de_tache_courant}} sur {{tache.data.points_de_tache}}</span>
<span class="rdd-roll-{{#if (gt tache.data.points_de_tache_courant 0)}}norm{{else}}etotal{{/if}}">{{tache.data.points_de_tache_courant}}
{{#unless tache.data.cacher_points_de_tache}} sur {{tache.data.points_de_tache}}{{/unless}}</span>
point{{~#unless (eq tache.data.points_de_tache_courant 1)}}s{{/unless}} de tâche
({{~#unless (eq tache.data.tentatives 1)}}{{tache.data.tentatives}} tentatives{{else}}première tentative{{/unless~}}).
{{#if (and tache.data.fatigue appliquerFatigue)}}<br><span>Il s'est fatigué de {{tache.data.fatigue}} case{{~#if (gt tache.data.fatigue 1)}}s{{/if}}.</span>{{/if}}