Move the data that should not be stored in the DB into the Actor's prepareBaseData method

This commit is contained in:
Oliver-Akins 2024-05-05 16:39:25 -06:00
parent 91c95da639
commit 718bd8398d
2 changed files with 12 additions and 13 deletions

View file

@ -2,6 +2,17 @@ import { DotDungeonActor } from "./GenericActor.mjs";
export class Player extends DotDungeonActor {
/*
These are special data properties that will be used by ActiveEffects to modify
certain limits within the actor, allowing for neat hacks that change these and
possible configuration of them.
*/
prepareBaseData() {
this.system.weapon_slots = 2;
this.system.inventory_slots = 0;
this.system.respawn_limit = 3;
};
applyActiveEffects() {
super.applyActiveEffects();