This commit is contained in:
2025-07-28 14:57:27 +02:00
parent 48eb799861
commit 6ab0cab5a0
18 changed files with 437 additions and 34 deletions

View File

@@ -0,0 +1,34 @@
export default class pokemonActor extends Actor {
preparedata() {
// In case some steps need to be overwritten later
super.preparedata();
}
prepareDerivedData() {
const actorData = this.system;
this._preparePlayerCharacterData(actorData);
}
_preparePlayerCharacterData(actorData) {
this._setCharacterValues(actorData);
}
async _setCharacterValues(data) {
// Calculations of values here
}
setNote(note) {
this.update({"system.note ": note});
}
addLogEntry(entry) {
// Add a log entry to the character event log
let log = this.system.log;
log.push(entry);
this.update({"system.log": log})
}
}