diff --git a/assets/icons/armor.webp b/assets/icons/armor.webp new file mode 100644 index 0000000..7fc4ddd Binary files /dev/null and b/assets/icons/armor.webp differ diff --git a/css/fvtt-hellborn.css b/css/fvtt-hellborn.css index a3cca8d..ba8b36f 100644 --- a/css/fvtt-hellborn.css +++ b/css/fvtt-hellborn.css @@ -1823,6 +1823,11 @@ i.fvtt-ftl-nomad { display: flex; align-items: center; } +.fvtt-hellborn .weapon-content fieldset .form-group.long-input input { + min-width: 24rem; + max-width: 24rem; + text-align: left; +} .fvtt-hellborn .weapon-content fieldset .form-group input { min-width: 12rem; max-width: 12rem; @@ -2088,6 +2093,11 @@ i.fvtt-ftl-nomad { display: flex; align-items: center; } +.fvtt-hellborn .ritual-content fieldset .form-group.long-input input { + min-width: 24rem; + max-width: 24rem; + text-align: left; +} .fvtt-hellborn .ritual-content fieldset .form-group input { min-width: 12rem; max-width: 12rem; @@ -2179,6 +2189,11 @@ i.fvtt-ftl-nomad { display: flex; align-items: center; } +.fvtt-hellborn .perk-content fieldset .form-group.long-input input { + min-width: 24rem; + max-width: 24rem; + text-align: left; +} .fvtt-hellborn .perk-content fieldset .form-group input { min-width: 12rem; max-width: 12rem; @@ -2274,6 +2289,10 @@ i.fvtt-ftl-nomad { min-width: 12rem; max-width: 12rem; } +.fvtt-hellborn .malefica-content fieldset .form-group .long-input input { + min-width: 24rem; + max-width: 24rem; +} .fvtt-hellborn .malefica-content fieldset .form-group select { min-width: 12rem; max-width: 12rem; diff --git a/lang/en.json b/lang/en.json index 871b6b8..78cf050 100644 --- a/lang/en.json +++ b/lang/en.json @@ -297,11 +297,20 @@ "description": { "label": "Description" }, - "enc": { - "label": "Enc" + "difficulty": { + "label": "Difficulty" }, - "techAge": { - "label": "Tech Age" + "threshold": { + "label": "Threshold" + }, + "limit": { + "label": "Limit" + }, + "nbAttempts": { + "label": "Nb Attempts" + }, + "ingredients": { + "label": "Ingredients" } } }, @@ -441,6 +450,9 @@ "role": { "label": "Role" }, + "flavorText": { + "label": "Flavor Text" + }, "description": { "label": "Description" } diff --git a/module/applications/sheets/perk-sheet.mjs b/module/applications/sheets/perk-sheet.mjs index 83d3fd4..748a0f0 100644 --- a/module/applications/sheets/perk-sheet.mjs +++ b/module/applications/sheets/perk-sheet.mjs @@ -5,7 +5,7 @@ export default class HellbornPerkSheet extends HellbornItemSheet { static DEFAULT_OPTIONS = { classes: ["perk"], position: { - width: 500, + width: 600, }, window: { contentClasses: ["perk-content"], diff --git a/module/models/perk.mjs b/module/models/perk.mjs index 033a1a9..748aefb 100644 --- a/module/models/perk.mjs +++ b/module/models/perk.mjs @@ -6,6 +6,7 @@ export default class HellbornPerk extends foundry.abstract.TypeDataModel { const schema = {} const requiredInteger = { required: true, nullable: false, integer: true } + schema.flavorText = new fields.StringField({required: true, initial: "", textSearch: true}) schema.role = new fields.StringField({ required: true, nullable: false, choices: SYSTEM.PERK_ROLES, initial: "abbetor" }) schema.level = new fields.StringField({ required: true, nullable: false, choices: SYSTEM.PERK_LEVELS, initial: "1" }) diff --git a/module/models/ritual.mjs b/module/models/ritual.mjs index 415975e..eac0937 100644 --- a/module/models/ritual.mjs +++ b/module/models/ritual.mjs @@ -5,12 +5,42 @@ export default class HellbornRitual extends foundry.abstract.TypeDataModel { const requiredInteger = { required: true, nullable: false, integer: true } const schema = {} + schema.ingredients = new fields.StringField({ + required: true, + initial: "", + textSearch: true, + }) + schema.difficulty = new fields.NumberField({ + required: true, + initial: 1, + min: 1, + ...requiredInteger, + }) + schema.nbAttempts = new fields.NumberField({ + required: true, + initial: 0, + min: 0, + ...requiredInteger, + }) + schema.threshold = new fields.NumberField({ + required: true, + initial: 0, + min: 0, + ...requiredInteger, + }) + schema.limit = new fields.NumberField({ + required: false, + initial: 0, + min: 0, + ...requiredInteger, + }) schema.description = new fields.HTMLField({ required: false, blank: true, initial: "", textSearch: true, }) + schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 }) return schema } diff --git a/styles/malefica.less b/styles/malefica.less index e87238c..3887bad 100644 --- a/styles/malefica.less +++ b/styles/malefica.less @@ -15,6 +15,10 @@ min-width: 12rem; max-width: 12rem; } + .form-group .long-input input { + min-width: 24rem; + max-width: 24rem; + } .form-group select { min-width: 12rem; max-width: 12rem; diff --git a/styles/perk.less b/styles/perk.less index 14cdef5..9763e3d 100644 --- a/styles/perk.less +++ b/styles/perk.less @@ -11,6 +11,11 @@ } .form-group label { } + .form-group.long-input input { + min-width: 24rem; + max-width: 24rem; + text-align: left; + } .form-group input { min-width: 12rem; max-width: 12rem; diff --git a/styles/ritual.less b/styles/ritual.less index d01663d..30d39c8 100644 --- a/styles/ritual.less +++ b/styles/ritual.less @@ -11,6 +11,11 @@ } .form-group label { } + .form-group.long-input input { + min-width: 24rem; + max-width: 24rem; + text-align: left; + } .form-group input { min-width: 12rem; max-width: 12rem; diff --git a/styles/weapon.less b/styles/weapon.less index 2e98623..23e48e9 100644 --- a/styles/weapon.less +++ b/styles/weapon.less @@ -20,6 +20,11 @@ } .form-group label { } + .form-group.long-input input { + min-width: 24rem; + max-width: 24rem; + text-align: left; + } .form-group input { min-width: 12rem; max-width: 12rem; diff --git a/templates/perk.hbs b/templates/perk.hbs index df5a96c..7aa4e31 100644 --- a/templates/perk.hbs +++ b/templates/perk.hbs @@ -5,6 +5,7 @@
+ {{formField systemFields.flavorText value=system.flavorText localize=true classes="long-input"}} {{formField systemFields.role value=system.role localize=true }} {{formField systemFields.level value=system.level localize=true}}
diff --git a/templates/ritual.hbs b/templates/ritual.hbs index fabf591..0f18fe8 100644 --- a/templates/ritual.hbs +++ b/templates/ritual.hbs @@ -5,8 +5,13 @@
- {{formField systemFields.techAge value=system.techAge localize=true}} - {{formField systemFields.enc value=system.enc}} + {{formField systemFields.difficulty value=system.difficulty localize=true }} + + {{formField systemFields.threshold value=system.threshold}} + {{formField systemFields.limit value=system.limit localize=true}} + {{formField systemFields.nbAttempts value=system.nbAttempts localize=true}} + {{formField systemFields.ingredients value=system.ingredients localize=true classes="long-input"}} + {{formField systemFields.cost value=system.cost}}
diff --git a/templates/weapon.hbs b/templates/weapon.hbs index 6196dc9..9d80e4e 100644 --- a/templates/weapon.hbs +++ b/templates/weapon.hbs @@ -12,7 +12,7 @@ {{formField systemFields.ammo value=system.ammo localize=true}} {{/if}} - {{formField systemFields.properties value=system.properties}} + {{formField systemFields.properties value=system.properties classes="long-input"}} {{formField systemFields.damage value=system.damage}} {{formField systemFields.cost value=system.cost}}