Last fixes from tests
This commit is contained in:
@@ -212,6 +212,10 @@ i.fvtt-hellborn {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
|
.fvtt-hellborn .character-main .character-pc .character-right .character-definition .character-definition-pronouns input {
|
||||||
|
min-width: 21.2rem;
|
||||||
|
max-width: 21.2rem;
|
||||||
|
}
|
||||||
.fvtt-hellborn .character-main .character-pc .character-right .character-definition .form-group {
|
.fvtt-hellborn .character-main .character-pc .character-right .character-definition .form-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -76,6 +76,9 @@
|
|||||||
"hair": {
|
"hair": {
|
||||||
"label": "Hair"
|
"label": "Hair"
|
||||||
},
|
},
|
||||||
|
"dod": {
|
||||||
|
"label": "Date of Death"
|
||||||
|
},
|
||||||
"height": {
|
"height": {
|
||||||
"label": "Height"
|
"label": "Height"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ export default class HellbornRoll extends Roll {
|
|||||||
case "damage":
|
case "damage":
|
||||||
{
|
{
|
||||||
let formula = options.rollItem.system.damage
|
let formula = options.rollItem.system.damage
|
||||||
if (options.rollItem.system.damageStat !== "none") {
|
if (options.rollItem?.system?.damageStat && options.rollItem.system.damageStat !== "none" && options.rollItem.system.damageStat !== "") {
|
||||||
let statKey = options.rollItem.system.damageStat.toLowerCase()
|
let statKey = options.rollItem.system?.damageStat.toLowerCase()
|
||||||
let statValue = actor.system.stats[statKey].value
|
let statValue = actor.system.stats[statKey].value
|
||||||
formula = `${formula} + ${statValue}`
|
formula = `${formula} + ${statValue}`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,16 +112,16 @@ export default class HellbornActor extends foundry.abstract.TypeDataModel {
|
|||||||
})
|
})
|
||||||
|
|
||||||
schema.biodata = new fields.SchemaField({
|
schema.biodata = new fields.SchemaField({
|
||||||
age: new fields.NumberField({ ...requiredInteger, initial: 15, min: 6 }),
|
age: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
gender: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
gender: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
height: new fields.NumberField({ ...requiredInteger, initial: 170, min: 50 }),
|
height: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
eyes: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
eyes: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
birthplace: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
birthplace: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
hair: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
hair: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
home: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
home: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
weight: new fields.NumberField({ ...requiredInteger, initial: 70, min: 1 }),
|
weight: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
apparentAge: new fields.NumberField({ ...requiredInteger, initial: 20, min: 1 }),
|
apparentAge: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
chronologicalAge: new fields.NumberField({ ...requiredInteger, initial: 20, min: 1 }),
|
chronologicalAge: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
dod: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
dod: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
soul: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
soul: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
aliases: new fields.StringField({ required: true, nullable: false, initial: "" })
|
aliases: new fields.StringField({ required: true, nullable: false, initial: "" })
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export default class HellbornTarot extends foundry.abstract.TypeDataModel {
|
|||||||
schema.bonus = new fields.StringField({ required: true, nullable: false, initial: "" });
|
schema.bonus = new fields.StringField({ required: true, nullable: false, initial: "" });
|
||||||
schema.penalty = new fields.StringField({ required: true, nullable: false, initial: "" });
|
schema.penalty = new fields.StringField({ required: true, nullable: false, initial: "" });
|
||||||
|
|
||||||
schema.orientation = new fields.StringField({ required: true, initial: "Upright", choices: {"Upright": {label: "Upright"}, "Downright": {label: "Downright"}} });
|
schema.orientation = new fields.StringField({ required: true, initial: "Upright", choices: {"Upright": {label: "Upright"}, "Downright": {label: "Reversed"}} });
|
||||||
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
schema.positiveEffect = new fields.HTMLField({ required: true, textSearch: true })
|
schema.positiveEffect = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
schema.negativeEffect = new fields.HTMLField({ required: true, textSearch: true })
|
schema.negativeEffect = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
|
|||||||
@@ -65,6 +65,12 @@
|
|||||||
gap: 5px;
|
gap: 5px;
|
||||||
|
|
||||||
.character-definition {
|
.character-definition {
|
||||||
|
.character-definition-pronouns {
|
||||||
|
input {
|
||||||
|
min-width: 21.2rem;
|
||||||
|
max-width: 21.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
.form-group {
|
.form-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -44,6 +44,10 @@
|
|||||||
{{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace rootId=partId
|
{{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace rootId=partId
|
||||||
disabled=isPlayMode}}
|
disabled=isPlayMode}}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="experience">
|
||||||
|
{{formField systemFields.biodata.fields.dod value=system.biodata.dod rootId=partId
|
||||||
|
disabled=isPlayMode}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|||||||
@@ -19,11 +19,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<fieldset class="character-definition">
|
<fieldset class="character-definition">
|
||||||
|
<div class="flexcol character-definition-pronouns">
|
||||||
|
{{formField systemFields.pronouns value=system.pronouns rootId=partId disabled=isPlayMode}}
|
||||||
|
</div>
|
||||||
<div class="splitted">
|
<div class="splitted">
|
||||||
<div>
|
<div>
|
||||||
<div class="flexcol">
|
|
||||||
{{formField systemFields.pronouns value=system.pronouns rootId=partId disabled=isPlayMode}}
|
|
||||||
</div>
|
|
||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
{{formField systemFields.species value=system.species rootId=partId disabled=isPlayMode}}
|
{{formField systemFields.species value=system.species rootId=partId disabled=isPlayMode}}
|
||||||
</div>
|
</div>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><a data-action="toChat" data-item-uuid="{{upright.uuid}}">Reversed</a></label>
|
<label><a data-action="toChat" data-item-uuid="{{downright.uuid}}">Reversed</a></label>
|
||||||
<input class="trait" type="text" value="{{downright.name}}" disabled >
|
<input class="trait" type="text" value="{{downright.name}}" disabled >
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{downright.id}}"
|
<a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{downright.id}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user