mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
- Add _module.mjs file to simplify imports - Update all import paths - Rename class for use the new acronym DH
11 lines
404 B
JavaScript
11 lines
404 B
JavaScript
export default class DHConsumable extends foundry.abstract.TypeDataModel {
|
|
/** @inheritDoc */
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
description: new fields.HTMLField({}),
|
|
quantity: new fields.NumberField({ initial: 1, integer: true }),
|
|
consumeOnUse: new fields.BooleanField({ initial: false })
|
|
};
|
|
}
|
|
}
|