From e5738aaca38af79c47bc5e8075e7962f326e1e16 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 21 Feb 2021 22:24:39 +0100 Subject: [PATCH] #161 Amenagement sur beaute --- module/actor-sheet.js | 1 + system.json | 2 +- templates/actor-sheet.html | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 13d5c932..b9d67299 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -66,6 +66,7 @@ export class RdDActorSheet extends ActorSheet { currentCarac.xpNext = RdDUtility.getCaracNextXp(currentCarac.value); currentCarac.isLevelUp = (currentCarac.xp >= currentCarac.xpNext); } + sum += (data.data.beaute >= 0) ? (data.data.beaute - 10) : 0; data.data.caracSum = sum; // Force empty arme, at least for Esquive diff --git a/system.json b/system.json index 594aab04..871d9a2e 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.3.22", + "version": "1.3.23", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9", diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 2ae3963d..4ce76665 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -155,6 +155,11 @@