This commit is contained in:
2025-08-03 12:52:59 +02:00
parent b2bdd60666
commit 1ce944b270
5 changed files with 24 additions and 1 deletions

View File

@@ -29,6 +29,22 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
return this.actor.name;
}
/** @override */
getData() {
const data = super.getData();
data.dtypes = ['String', 'Number', 'Boolean'];
// // Prepare items.
// if (this.actor.type == 'character') {
// this._prepareCharacterItems(data);
// }
// data['totalWealth'] = this.actor.itemTypes.item.reduce((total, item) => total + (!isNaN(item.system.cost) ? item.system.cost * (item.system.quantity ?? 0) : 0), this.actor.system.money);
data.data = this.actor.system;
// data['origins'] = this.actor.origins;
return data;
}
/** @override */
_configureRenderOptions(options) {
super._configureRenderOptions(options);