Some ActiveEffect shenanigans with training levels

This commit is contained in:
Oliver-Akins 2024-04-20 23:12:38 -06:00
parent cfaed0d230
commit c466e0e539
3 changed files with 19 additions and 6 deletions

View file

@ -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,