Begin working on Aspect items
This commit is contained in:
parent
58facf1490
commit
25e3fa1bb8
14 changed files with 204 additions and 80 deletions
12
module/models/AspectItemData.mjs
Normal file
12
module/models/AspectItemData.mjs
Normal 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 }),
|
||||
};
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue