✨
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user