Xp not in curriculum are now rounded up (down before)

This commit is contained in:
Vlyan
2021-01-19 10:11:04 +01:00
parent cbd5af8d02
commit 23db7ed2c2
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
- PC/NPC Sheet : - PC/NPC Sheet :
- Added a visual indicator for equipped / readied - 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 - 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 ## 1.0.0 - First public release
- Removed the 0ds if no skill point - Removed the 0ds if no skill point
@@ -42,7 +43,7 @@
- Pass for number and focus on click - Pass for number and focus on click
- Xp, added some parseInt - Xp, added some parseInt
- Fix for babele and properties - Fix for babele and properties
- Add type percularity in item entry - Add type peculiarity in item entry
- Fix for cross-loaded French compendium - Fix for cross-loaded French compendium
- 20Q : Scroll on top on next button - 20Q : Scroll on top on next button
- V-Align for Vlyan pleasure ! - V-Align for Vlyan pleasure !

View File

@@ -116,7 +116,7 @@ export class CharacterSheetL5r5e extends BaseSheetL5r5e {
// if not in curriculum, xp spent /2 for this item // if not in curriculum, xp spent /2 for this item
if (!item.data.in_curriculum && xp > 0) { 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); const rank = Math.max(0, item.data.bought_at_rank);