fix forgotten xp

This commit is contained in:
Vlyan
2020-12-18 16:52:46 +01:00
parent 003bcc1761
commit 341df867fc
3 changed files with 4 additions and 4 deletions

View File

@@ -44,9 +44,9 @@ export class CharacterSheetL5r5e extends BaseSheetL5r5e {
sheetData.items.sort((a, b) => {
return (a.data.bought_at_rank || 0) - (b.data.bought_at_rank || 0);
});
console.log(sheetData);
// Xp spent only in current rank
sheetData.data.advancement.xp_spent_rank = this.getXpSpentInThisRank();
sheetData.data.xp_spent_rank = this.getXpSpentInThisRank();
return sheetData;
}

View File

@@ -100,7 +100,7 @@
}
},
"character": {
"templates": ["identity", "rings", "social", "skills", "techniques", "conflict", "xp"],
"templates": ["identity", "rings", "social", "skills", "techniques", "conflict", "advancement"],
"zeni": 0,
"notes": "",
"twenty_questions": {}

View File

@@ -15,7 +15,7 @@
<label class="attribute-label">
Total dépensé dans ce rang:
{{ data.advancement.xp_spent_rank }}
{{ data.xp_spent_rank }}
</label>
</fieldset>