tab on 20q and Hide rank 0 (initial) on progession

This commit is contained in:
Vlyan
2020-12-30 17:34:14 +01:00
parent 2074caa125
commit 05354e9c6b
5 changed files with 583 additions and 572 deletions

View File

@@ -73,10 +73,14 @@ export class CharacterSheetL5r5e extends BaseSheetL5r5e {
xp = Math.floor(xp / 2);
}
const rank = Math.max(0, item.data.bought_at_rank - 1);
const rank = Math.max(0, item.data.bought_at_rank);
if (rank < 1) {
// Ignore starting comp/items
return;
}
if (!adv[rank]) {
adv[rank] = {
rank: rank + 1,
rank: rank,
spent: 0,
goal: CONFIG.l5r5e.xp.costPerRank[rank] || null,
list: [],