Item Browser v0.5

This commit is contained in:
Dapoolp 2025-08-05 01:15:16 +02:00
parent 8cfa88b1e3
commit 845d72e20c
16 changed files with 880 additions and 30 deletions

View file

@ -5,7 +5,8 @@ export default class RangeField extends fields.StringField {
const options = {
choices: CONFIG.DH.GENERAL.range,
required: false,
blank: true
blank: true,
label: "DAGGERHEART.GENERAL.range"
};
super(options, context);
}

View file

@ -5,7 +5,7 @@ export class DHActionRollData extends foundry.abstract.DataModel {
static defineSchema() {
return {
type: new fields.StringField({ nullable: true, initial: null, choices: CONFIG.DH.GENERAL.rollTypes }),
trait: new fields.StringField({ nullable: true, initial: null, choices: CONFIG.DH.ACTOR.abilities }),
trait: new fields.StringField({ nullable: true, initial: null, choices: CONFIG.DH.ACTOR.abilities, label: "DAGGERHEART.GENERAL.Trait.single" }),
difficulty: new fields.NumberField({ nullable: true, initial: null, integer: true, min: 0 }),
bonus: new fields.NumberField({ nullable: true, initial: null, integer: true }),
advState: new fields.StringField({