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
24 lines
1 KiB
JavaScript
24 lines
1 KiB
JavaScript
import DaggerheartAction from "../action.mjs";
|
|
|
|
export default class DHDomainCard extends foundry.abstract.TypeDataModel {
|
|
/** @inheritDoc */
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
domain: new fields.StringField(
|
|
{ choices: SYSTEM.DOMAIN.domains, integer: false },
|
|
{ required: true, initial: [] }
|
|
),
|
|
level: new fields.NumberField({ initial: 1, integer: true }),
|
|
recallCost: new fields.NumberField({ initial: 0, integer: true }),
|
|
type: new fields.StringField(
|
|
{ choices: SYSTEM.DOMAIN.cardTypes, integer: false },
|
|
{ required: true, initial: [] }
|
|
),
|
|
foundation: new fields.BooleanField({ initial: false }),
|
|
effect: new fields.HTMLField({}),
|
|
inVault: new fields.BooleanField({ initial: false }),
|
|
actions: new fields.ArrayField(new fields.EmbeddedDataField(DaggerheartAction))
|
|
};
|
|
}
|
|
}
|