From 23db7ed2c2d2a7fd625e023acee9958ff0a639eb Mon Sep 17 00:00:00 2001 From: Vlyan Date: Tue, 19 Jan 2021 10:11:04 +0100 Subject: [PATCH] Xp not in curriculum are now rounded up (down before) --- CHANGELOG.md | 3 ++- system/scripts/actors/character-sheet.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af90e23..db50129 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - PC/NPC Sheet : - Added a visual indicator for equipped / readied - Now only equipped armor / weapon will show in conflict tab, and all armors/weapons now show in inventory tab + - Xp not in curriculum are now rounded up (down before) ## 1.0.0 - First public release - Removed the 0ds if no skill point @@ -42,7 +43,7 @@ - Pass for number and focus on click - Xp, added some parseInt - Fix for babele and properties -- Add type percularity in item entry +- Add type peculiarity in item entry - Fix for cross-loaded French compendium - 20Q : Scroll on top on next button - V-Align for Vlyan pleasure ! diff --git a/system/scripts/actors/character-sheet.js b/system/scripts/actors/character-sheet.js index 6df3245..1102833 100644 --- a/system/scripts/actors/character-sheet.js +++ b/system/scripts/actors/character-sheet.js @@ -116,7 +116,7 @@ export class CharacterSheetL5r5e extends BaseSheetL5r5e { // if not in curriculum, xp spent /2 for this item if (!item.data.in_curriculum && xp > 0) { - xp = Math.floor(xp / 2); + xp = Math.ceil(xp / 2); } const rank = Math.max(0, item.data.bought_at_rank);