Update item data models
This commit is contained in:
parent
27c30b7eef
commit
5e2fb95c73
3 changed files with 21 additions and 10 deletions
|
|
@ -1,11 +1,12 @@
|
|||
export class AspectItemData extends foundry.abstract.TypeDataModel {
|
||||
import { DescribedItemData } from "./DescribedItemData.mjs";
|
||||
|
||||
export class AspectItemData extends DescribedItemData {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
return {
|
||||
used: new fields.BooleanField({ initial: false }),
|
||||
/** 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