Begin working on Aspect items

This commit is contained in:
Oliver-Akins 2023-11-29 22:41:43 -07:00
parent 58facf1490
commit 25e3fa1bb8
14 changed files with 204 additions and 80 deletions

View file

@ -0,0 +1,12 @@
export class AspectItemData extends foundry.abstract.DataModel {
static defineSchema() {
const fields = foundry.data.fields;
return {
name: new fields.HTMLField({ nullable: true, blank: false, trim: true }),
used: new fields.BooleanField(),
/** The number of seconds that the effect of the aspect stays */
deactivateAfter: new fields.NumberField({ nullable: true }),
info: new fields.HTMLField({ nullable: true, blank: false, trim: true }),
};
};
};