daggerheart/module/data/fields/action/usesField.mjs
Dapoolp 479e147640 f
2025-07-24 15:28:43 +02:00

16 lines
No EOL
566 B
JavaScript

const fields = foundry.data.fields;
export default class UsesField extends fields.SchemaField {
constructor(options={}, context={}) {
const usesFields = {
value: new fields.NumberField({ nullable: true, initial: null }),
max: new fields.NumberField({ nullable: true, initial: null }),
recovery: new fields.StringField({
choices: CONFIG.DH.GENERAL.refreshTypes,
initial: null,
nullable: true
})
};
super(usesFields, options, context);
}
}