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) => { sheetData.items.sort((a, b) => {
return (a.data.bought_at_rank || 0) - (b.data.bought_at_rank || 0); return (a.data.bought_at_rank || 0) - (b.data.bought_at_rank || 0);
}); });
console.log(sheetData);
// Xp spent only in current rank // Xp spent only in current rank
sheetData.data.advancement.xp_spent_rank = this.getXpSpentInThisRank(); sheetData.data.xp_spent_rank = this.getXpSpentInThisRank();
return sheetData; return sheetData;
} }

View File

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

View File

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