mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Checking it out. May not work. Not a Telegram.
This commit is contained in:
parent
09141053c9
commit
e44823b6dd
6 changed files with 64 additions and 1 deletions
|
|
@ -18,6 +18,17 @@ export default class DHConsumable extends BaseDataItem {
|
|||
const fields = foundry.data.fields;
|
||||
return {
|
||||
...super.defineSchema(),
|
||||
//Testing new armor schema
|
||||
armor: new fields.SchemaField({
|
||||
value: new fields.NumberField({integer: true, min: 0, initial: 0}),
|
||||
max: new fields.NumberField({ required: true, integer: true, min: 0, initial: 0}),
|
||||
priority: new fields.StringField({
|
||||
required: true,
|
||||
choices: CONFIG.DH.ITEM.allArmorKeys,
|
||||
initial: CONFIG.DH.ITEM.armorPriorityKeys[0]
|
||||
})
|
||||
}),
|
||||
//End
|
||||
consumeOnUse: new fields.BooleanField({ initial: true }),
|
||||
destroyOnEmpty: new fields.BooleanField({ initial: true })
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue