diff --git a/lang/en.json b/lang/en.json
index b1be93cd..826d654f 100755
--- a/lang/en.json
+++ b/lang/en.json
@@ -64,6 +64,14 @@
"exactHint": "The Character's Tier is used if empty",
"label": "Beastform"
},
+ "damage": {
+ "multiplier": "Multiplier",
+ "flatMultiplier": "Flat Multiplier"
+ },
+ "general": {
+ "customFormula": "Custom Formula",
+ "formula": "Formula"
+ },
"displayInChat": "Display in chat"
},
"RollField": {
diff --git a/module/data/fields/action/damageField.mjs b/module/data/fields/action/damageField.mjs
index cf327204..7f1b61e9 100644
--- a/module/data/fields/action/damageField.mjs
+++ b/module/data/fields/action/damageField.mjs
@@ -23,14 +23,14 @@ export class DHActionDiceData extends foundry.abstract.DataModel {
multiplier: new fields.StringField({
choices: CONFIG.DH.GENERAL.multiplierTypes,
initial: 'prof',
- label: 'Multiplier'
+ label: "DAGGERHEART.ACTIONS.Config.damage.multiplier"
}),
- flatMultiplier: new fields.NumberField({ nullable: true, initial: 1, label: 'Flat Multiplier' }),
- dice: new fields.StringField({ choices: CONFIG.DH.GENERAL.diceTypes, initial: 'd6', label: 'Dice' }),
- bonus: new fields.NumberField({ nullable: true, initial: null, label: 'Bonus' }),
+ flatMultiplier: new fields.NumberField({ nullable: true, initial: 1, label: "DAGGERHEART.ACTIONS.Config.damage.flatMultiplier" }),
+ dice: new fields.StringField({ choices: CONFIG.DH.GENERAL.diceTypes, initial: 'd6', label: "DAGGERHEART.GENERAL.Dice.single" }),
+ bonus: new fields.NumberField({ nullable: true, initial: null, label: "DAGGERHEART.GENERAL.bonus" }),
custom: new fields.SchemaField({
- enabled: new fields.BooleanField({ label: 'Custom Formula' }),
- formula: new FormulaField({ label: 'Formula', initial: '' })
+ enabled: new fields.BooleanField({ label: "DAGGERHEART.ACTIONS.Config.general.customFormula" }),
+ formula: new FormulaField({ label: "DAGGERHEART.ACTIONS.Config.general.formula", initial: '' })
})
};
}
diff --git a/templates/sheets/items/weapon/settings.hbs b/templates/sheets/items/weapon/settings.hbs
index 021fc627..f83ee2a4 100644
--- a/templates/sheets/items/weapon/settings.hbs
+++ b/templates/sheets/items/weapon/settings.hbs
@@ -21,10 +21,17 @@
{{#with systemFields.attack.fields.damage.fields.parts.element.fields as | fields | }}
{{#with (lookup ../document.system.attack.damage.parts 0) as | source | }}
- {{localize "DAGGERHEART.GENERAL.Dice.single"}}
- {{formInput fields.value.fields.dice value=source.value.dice name="system.attack.damage.parts.0.value.dice"}}
- {{localize "DAGGERHEART.GENERAL.bonus"}}
- {{formInput fields.value.fields.bonus value=source.value.bonus name="system.attack.damage.parts.0.value.bonus" localize=true}}
+ {{localize "DAGGERHEART.ACTIONS.Config.general.customFormula"}}
+ {{formInput fields.value.fields.custom.fields.enabled value=source.value.custom.enabled name="system.attack.damage.parts.0.value.custom.enabled"}}
+ {{#if source.value.custom.enabled}}
+ {{localize "DAGGERHEART.ACTIONS.Config.general.formula"}}
+ {{formInput fields.value.fields.custom.fields.formula value=source.value.custom.formula name="system.attack.damage.parts.0.value.custom.formula"}}
+ {{else}}
+ {{localize "DAGGERHEART.GENERAL.Dice.single"}}
+ {{formInput fields.value.fields.dice value=source.value.dice name="system.attack.damage.parts.0.value.dice"}}
+ {{localize "DAGGERHEART.GENERAL.bonus"}}
+ {{formInput fields.value.fields.bonus value=source.value.bonus name="system.attack.damage.parts.0.value.bonus" localize=true}}
+ {{/if}}
{{localize "DAGGERHEART.GENERAL.type"}}
{{formInput fields.type value=source.type name="system.attack.damage.parts.0.type" localize=true}}