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

@@ -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);