Some ActiveEffect shenanigans with training levels
This commit is contained in:
parent
cfaed0d230
commit
c466e0e539
3 changed files with 19 additions and 6 deletions
|
|
@ -1,8 +1,17 @@
|
|||
import { DotDungeonActor } from "./GenericActor.mjs";
|
||||
import { DotDungeonItem } from "../Item/GenericItem.mjs";
|
||||
|
||||
export class Player extends DotDungeonActor {
|
||||
|
||||
applyActiveEffects() {
|
||||
super.applyActiveEffects();
|
||||
|
||||
// These are the (groups of) fields that ActiveEffects may modify safely
|
||||
// and remain editable in the sheet. This needs to be done because of default
|
||||
// Foundry behaviour that otherwise prevents these fields from being edited
|
||||
delete this.overrides.system.stats;
|
||||
delete this.overrides.system.skills;
|
||||
};
|
||||
|
||||
async createCustomPet() {
|
||||
const body = new URLSearchParams({
|
||||
number: 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue