mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Armor is buffed. Not Vampire-Slayer buffed.
This commit is contained in:
parent
e44823b6dd
commit
9064df9b05
5 changed files with 26 additions and 18 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import AttachableItem from './attachableItem.mjs';
|
||||
import { armorPriorityKeys } from "../../config/itemConfig.mjs";
|
||||
|
||||
export default class DHArmor extends AttachableItem {
|
||||
/** @inheritDoc */
|
||||
|
|
@ -37,8 +38,8 @@ export default class DHArmor extends AttachableItem {
|
|||
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]
|
||||
choices: armorPriorityKeys,
|
||||
initial: 'armor'
|
||||
})
|
||||
}),
|
||||
//End
|
||||
|
|
|
|||
|
|
@ -17,17 +17,6 @@ export default class DHLoot extends BaseDataItem {
|
|||
static defineSchema() {
|
||||
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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue