From 5a66e4e7410407149c57daf4b49397e0856a5daf Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 21 Mar 2023 22:00:24 +0100 Subject: [PATCH 1/5] Fix horloge aiguille des heures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L'aiguille des heures pointe sur l'heure au début de l'heure draconique, comme pour une montre. Début couronne, l'aiguille des heures et des minutes sont donc toutes les deux en haut. --- module/rdd-timestamp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-timestamp.js b/module/rdd-timestamp.js index f23c4151..0a5490ed 100644 --- a/module/rdd-timestamp.js +++ b/module/rdd-timestamp.js @@ -252,7 +252,7 @@ export class RdDTimestamp { get heure() { return Math.floor(this.indexMinute / RDD_MINUTES_PAR_HEURES) } get minute() { return this.indexMinute % RDD_MINUTES_PAR_HEURES } get round() { return ROUNDS_PAR_MINUTE * (this.indexMinute - Math.floor(this.indexMinute)) } - get angleHeure() { return this.indexMinute / RDD_MINUTES_PAR_JOUR * 360 - 60 } + get angleHeure() { return this.indexMinute / RDD_MINUTES_PAR_JOUR * 360 - 45 } get angleMinute() { return this.indexMinute / RDD_MINUTES_PAR_HEURES * 360 + 45} formatDate() { From 3344e20936447ef5a4002565398a4592cd9bea4c Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 23 Mar 2023 01:41:37 +0100 Subject: [PATCH 2/5] =?UTF-8?q?Fix:=20consommation=20potion=20enchant?= =?UTF-8?q?=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index 88a56b21..6749d6dc 100644 --- a/module/actor.js +++ b/module/actor.js @@ -3528,7 +3528,7 @@ export class RdDActor extends RdDBaseActor { /* -------------------------------------------- */ async buildPotionGuerisonList(pointsGuerison) { const pointsGuerisonInitial = pointsGuerison; - const blessures = this.filterItems(it => it.isLegere() || it.isGrave() || it.isCritique()).sort(Misc.descending(it => it.system.gravite)) + const blessures = this.filterItems(it => it.system.gravite > 0, 'blessure').sort(Misc.descending(it => it.system.gravite)) const ids = [] const guerisonData = { list: [], pointsConsommes: 0 } for (let blessure of blessures) { From 5e6ffc7846da602d9e7f0ac5abff2771990dbdf9 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 23 Mar 2023 01:42:48 +0100 Subject: [PATCH 3/5] =?UTF-8?q?Fix:=20bonus=20d'herbe=20de=20potion=20non?= =?UTF-8?q?=20enchant=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/actor.js b/module/actor.js index 6749d6dc..9d9426d4 100644 --- a/module/actor.js +++ b/module/actor.js @@ -3567,7 +3567,7 @@ export class RdDActor extends RdDBaseActor { } } if (!potionData.system.magique || potionData.rolled.isSuccess) { - await this.setBonusPotionSoin(potionData.system.herbeBonus); + await this.setBonusPotionSoin(potionData.system.herbebonus); } ChatMessage.create({ whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), @@ -3576,7 +3576,7 @@ export class RdDActor extends RdDBaseActor { } async setBonusPotionSoin(bonus) { - await this.update({ 'sante.bonusPotion': bonus }); + await this.update({ 'system.sante.bonusPotion': bonus }); } /* -------------------------------------------- */ @@ -3604,7 +3604,7 @@ export class RdDActor extends RdDBaseActor { } } if (!potionData.system.magique || potionData.rolled.isSuccess) { - this.bonusRepos = potionData.system.herbeBonus; + this.bonusRepos = potionData.system.herbebonus; } ChatMessage.create({ whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), From 55434762f44516287ba7e1021cb2e6a0436db801 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 23 Mar 2023 01:43:41 +0100 Subject: [PATCH 4/5] Masquer bonus premiers soins si soins complets --- templates/actor/blessure.hbs | 2 ++ templates/item-blessure-sheet.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/templates/actor/blessure.hbs b/templates/actor/blessure.hbs index 16d9bc12..056ea377 100644 --- a/templates/actor/blessure.hbs +++ b/templates/actor/blessure.hbs @@ -11,7 +11,9 @@ {{#if system.premierssoins.done}} + {{#unless system.soinscomplets.done}} + {{/unless}} {{else}} {{/if}} diff --git a/templates/item-blessure-sheet.html b/templates/item-blessure-sheet.html index 83037f2b..fec18247 100644 --- a/templates/item-blessure-sheet.html +++ b/templates/item-blessure-sheet.html @@ -28,7 +28,9 @@ {{#if system.premierssoins.done}} + {{#unless system.soinscomplets.done}} + {{/unless}} {{else}} From f9391523f8cc7986821302b03950f2764c5b8282 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 23 Mar 2023 01:44:35 +0100 Subject: [PATCH 5/5] Version 10.7.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les tisanes de Sémolosse --- system.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system.json b/system.json index e1cfc4aa..2e4c1715 100644 --- a/system.json +++ b/system.json @@ -1,8 +1,8 @@ { "id": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", - "version": "10.7.2", - "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.7.2.zip", + "version": "10.7.3", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.7.3.zip", "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json", "compatibility": { "minimum": "10",