mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +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
|
|
@ -699,6 +699,12 @@
|
|||
"loot": "Loot",
|
||||
"feature": "Feature"
|
||||
},
|
||||
"ItemArmor":{
|
||||
"title":"Armor Properties",
|
||||
"value":"Value",
|
||||
"max":"Max",
|
||||
"priority":"Priority"
|
||||
},
|
||||
"ArmorFeature": {
|
||||
"burning": {
|
||||
"name": "Burning",
|
||||
|
|
|
|||
|
|
@ -490,11 +490,11 @@ export const orderedArmorFeatures = () => {
|
|||
};
|
||||
|
||||
export const armorPriorityKeys = {
|
||||
armor: {label: 'DAGGERHEART.CONFIG.ArmorKeys.armor'},
|
||||
weapon: {label: 'DAGGERHEART.CONFIG.ArmorKeys.weapon'},
|
||||
consumable: {label: 'DAGGERHEART.CONFIG.ArmorKeys.consumable'},
|
||||
loot: {label: 'DAGGERHEART.CONFIG.ArmorKeys.loot'},
|
||||
features: {label: 'DAGGERHEART.CONFIG.ArmorKeys.features'}
|
||||
armor: 'DAGGERHEART.CONFIG.ArmorKeys.armor',
|
||||
weapon: 'DAGGERHEART.CONFIG.ArmorKeys.weapon',
|
||||
consumable: 'DAGGERHEART.CONFIG.ArmorKeys.consumable',
|
||||
loot: 'DAGGERHEART.CONFIG.ArmorKeys.loot',
|
||||
feature: 'DAGGERHEART.CONFIG.ArmorKeys.feature'
|
||||
}
|
||||
|
||||
export const allArmorKeys = () => {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,18 @@
|
|||
<span>{{localize "TYPES.Item.feature"}}</span>
|
||||
<input type="text" class="features-input" value="{{features}}" />
|
||||
|
||||
<span>{{localize "DAGGERHEART.CONFIG.ItemArmor.title"}}</span>
|
||||
<div class="nest-inputs">
|
||||
{{formField systemFields.armor.fields.value value=source.system.armor.value label=(localize "DAGGERHEART.CONFIG.ItemArmor.value")}}
|
||||
{{formField systemFields.armor.fields.max value=source.system.armor.max label=(localize "DAGGERHEART.CONFIG.ItemArmor.max")}}
|
||||
{{formField
|
||||
systemFields.armor.fields.priority
|
||||
value=source.system.armor.priority
|
||||
label=(localize "DAGGERHEART.CONFIG.ItemArmor.priority")
|
||||
localize=true
|
||||
}}
|
||||
</div>
|
||||
|
||||
<span>{{localize "DAGGERHEART.ITEMS.Armor.baseThresholds.base"}}</span>
|
||||
<div class="nest-inputs">
|
||||
{{ formField systemFields.baseThresholds.fields.major value=source.system.baseThresholds.major label=(localize "DAGGERHEART.ITEMS.Armor.baseThresholds.major") }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue