mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 05:31:07 +01:00
Covering up bases. Not for murder purposes.
This commit is contained in:
parent
9064df9b05
commit
5e8c462477
7 changed files with 89 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import BaseDataItem from './base.mjs';
|
||||
import { armorPriorityKeys } from "../../config/itemConfig.mjs";
|
||||
|
||||
export default class DHLoot extends BaseDataItem {
|
||||
/** @inheritDoc */
|
||||
|
|
@ -15,8 +16,21 @@ export default class DHLoot extends BaseDataItem {
|
|||
|
||||
/** @inheritDoc */
|
||||
static defineSchema() {
|
||||
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: armorPriorityKeys,
|
||||
initial: 'armor'
|
||||
}),
|
||||
armorResourceToggle: new fields.BooleanField({initial: false})
|
||||
}),
|
||||
//End
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue