Move the data that should not be stored in the DB into the Actor's prepareBaseData method
This commit is contained in:
parent
91c95da639
commit
718bd8398d
2 changed files with 12 additions and 13 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue