mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
* Action Refactor Part #1 * Fixed Weapon/Armor features. Fixed Feature actions * f * Action Refactor Part #2 * Fixes * Remove ActionsField from Companion * Fixes * Localization fix * BaseDataItem hasActions false --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
19 lines
No EOL
693 B
JavaScript
19 lines
No EOL
693 B
JavaScript
const fields = foundry.data.fields;
|
|
|
|
export default class SaveField extends fields.SchemaField {
|
|
constructor(options={}, context={}) {
|
|
const saveFields = {
|
|
trait: new fields.StringField({
|
|
nullable: true,
|
|
initial: null,
|
|
choices: CONFIG.DH.ACTOR.abilities
|
|
}),
|
|
difficulty: new fields.NumberField({ nullable: true, initial: 10, integer: true, min: 0 }),
|
|
damageMod: new fields.StringField({
|
|
initial: CONFIG.DH.ACTIONS.damageOnSave.none.id,
|
|
choices: CONFIG.DH.ACTIONS.damageOnSave
|
|
})
|
|
};
|
|
super(saveFields, options, context);
|
|
}
|
|
} |