First alpha release

This commit is contained in:
2025-05-20 20:09:03 +02:00
parent 995d61e1c6
commit fc423c921a
13 changed files with 95 additions and 8 deletions

BIN
assets/icons/armor.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@@ -1823,6 +1823,11 @@ i.fvtt-ftl-nomad {
display: flex; display: flex;
align-items: center; 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 { .fvtt-hellborn .weapon-content fieldset .form-group input {
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;
@@ -2088,6 +2093,11 @@ i.fvtt-ftl-nomad {
display: flex; display: flex;
align-items: center; 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 { .fvtt-hellborn .ritual-content fieldset .form-group input {
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;
@@ -2179,6 +2189,11 @@ i.fvtt-ftl-nomad {
display: flex; display: flex;
align-items: center; 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 { .fvtt-hellborn .perk-content fieldset .form-group input {
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;
@@ -2274,6 +2289,10 @@ i.fvtt-ftl-nomad {
min-width: 12rem; min-width: 12rem;
max-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 { .fvtt-hellborn .malefica-content fieldset .form-group select {
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;

View File

@@ -297,11 +297,20 @@
"description": { "description": {
"label": "Description" "label": "Description"
}, },
"enc": { "difficulty": {
"label": "Enc" "label": "Difficulty"
}, },
"techAge": { "threshold": {
"label": "Tech Age" "label": "Threshold"
},
"limit": {
"label": "Limit"
},
"nbAttempts": {
"label": "Nb Attempts"
},
"ingredients": {
"label": "Ingredients"
} }
} }
}, },
@@ -441,6 +450,9 @@
"role": { "role": {
"label": "Role" "label": "Role"
}, },
"flavorText": {
"label": "Flavor Text"
},
"description": { "description": {
"label": "Description" "label": "Description"
} }

View File

@@ -5,7 +5,7 @@ export default class HellbornPerkSheet extends HellbornItemSheet {
static DEFAULT_OPTIONS = { static DEFAULT_OPTIONS = {
classes: ["perk"], classes: ["perk"],
position: { position: {
width: 500, width: 600,
}, },
window: { window: {
contentClasses: ["perk-content"], contentClasses: ["perk-content"],

View File

@@ -6,6 +6,7 @@ export default class HellbornPerk extends foundry.abstract.TypeDataModel {
const schema = {} const schema = {}
const requiredInteger = { required: true, nullable: false, integer: true } 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.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" }) schema.level = new fields.StringField({ required: true, nullable: false, choices: SYSTEM.PERK_LEVELS, initial: "1" })

View File

@@ -5,12 +5,42 @@ export default class HellbornRitual extends foundry.abstract.TypeDataModel {
const requiredInteger = { required: true, nullable: false, integer: true } const requiredInteger = { required: true, nullable: false, integer: true }
const schema = {} 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({ schema.description = new fields.HTMLField({
required: false, required: false,
blank: true, blank: true,
initial: "", initial: "",
textSearch: true, textSearch: true,
}) })
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
return schema return schema
} }

View File

@@ -15,6 +15,10 @@
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;
} }
.form-group .long-input input {
min-width: 24rem;
max-width: 24rem;
}
.form-group select { .form-group select {
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;

View File

@@ -11,6 +11,11 @@
} }
.form-group label { .form-group label {
} }
.form-group.long-input input {
min-width: 24rem;
max-width: 24rem;
text-align: left;
}
.form-group input { .form-group input {
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;

View File

@@ -11,6 +11,11 @@
} }
.form-group label { .form-group label {
} }
.form-group.long-input input {
min-width: 24rem;
max-width: 24rem;
text-align: left;
}
.form-group input { .form-group input {
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;

View File

@@ -20,6 +20,11 @@
} }
.form-group label { .form-group label {
} }
.form-group.long-input input {
min-width: 24rem;
max-width: 24rem;
text-align: left;
}
.form-group input { .form-group input {
min-width: 12rem; min-width: 12rem;
max-width: 12rem; max-width: 12rem;

View File

@@ -5,6 +5,7 @@
</div> </div>
<fieldset> <fieldset>
{{formField systemFields.flavorText value=system.flavorText localize=true classes="long-input"}}
{{formField systemFields.role value=system.role localize=true }} {{formField systemFields.role value=system.role localize=true }}
{{formField systemFields.level value=system.level localize=true}} {{formField systemFields.level value=system.level localize=true}}
</fieldset> </fieldset>

View File

@@ -5,8 +5,13 @@
</div> </div>
<fieldset> <fieldset>
{{formField systemFields.techAge value=system.techAge localize=true}} {{formField systemFields.difficulty value=system.difficulty localize=true }}
{{formField systemFields.enc value=system.enc}}
{{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}} {{formField systemFields.cost value=system.cost}}
</fieldset> </fieldset>

View File

@@ -12,7 +12,7 @@
{{formField systemFields.ammo value=system.ammo localize=true}} {{formField systemFields.ammo value=system.ammo localize=true}}
{{/if}} {{/if}}
{{formField systemFields.properties value=system.properties}} {{formField systemFields.properties value=system.properties classes="long-input"}}
{{formField systemFields.damage value=system.damage}} {{formField systemFields.damage value=system.damage}}
{{formField systemFields.cost value=system.cost}} {{formField systemFields.cost value=system.cost}}