This commit is contained in:
2025-08-04 10:36:35 +02:00
parent 43ff4270ec
commit 1409ef1733
8 changed files with 66 additions and 4 deletions

View File

@@ -63,11 +63,20 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
effects: baseData.document.effects
};
context = this.calculateDerivated(context)
this.sheetContext = context;
return context;
}
calculateDerivated(context) {
context.system.armorClass = 10+context.system.stats.defense
context.system.speed = 30+5*context.system.stats.speed
return context
}
/** @override */
_onRender(context, options) {