Various fixes
All checks were successful
Release Creation / build (release) Successful in 1m40s

This commit is contained in:
2025-06-15 09:37:08 +02:00
parent 1f2d82bd0b
commit d03c5f2c1e
8 changed files with 151 additions and 49 deletions

View File

@@ -707,6 +707,29 @@ i.fvtt-hellborn {
height: 24px;
margin: 4px 0 0 0;
}
.fvtt-hellborn .tab.character-biography .main-div .aliases {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 4px;
margin-left: 4px;
}
.fvtt-hellborn .tab.character-biography .main-div .aliases .form-group {
display: flex;
flex-direction: row;
align-items: center;
gap: 4px;
margin-left: 4px;
}
.fvtt-hellborn .tab.character-biography .main-div .aliases .form-group label {
min-width: 6rem;
max-width: 6rem;
}
.fvtt-hellborn .tab.character-biography .main-div .aliases input {
text-align: left;
min-width: 41rem;
max-width: 41rem;
}
.fvtt-hellborn .tab.character-biography .main-div .biodata {
display: grid;
grid-template-columns: repeat(3, 1fr);
@@ -2423,6 +2446,20 @@ i.fvtt-hellborn {
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 1);
}
.flavor-text-damage {
font-family: var(--font-secondary);
font-size: calc(var(--font-size-standard) * 1.2);
color: var(--color-dark-2);
margin-top: 5px;
}
.flavor-text-damage h2 {
margin-top: 10px;
margin-left: 10px;
margin-bottom: 4px;
font-family: var(--font-title);
font-size: calc(var(--font-size-standard) * 1.2);
color: var(--title-color);
}
.dice-roll {
flex-direction: column;
}
@@ -2445,6 +2482,14 @@ i.fvtt-hellborn {
display: flex;
flex-direction: row;
}
.dice-roll .intro-chat h2 {
margin-top: 10px;
margin-left: 10px;
margin-bottom: 4px;
font-family: var(--font-title);
font-size: calc(var(--font-size-standard) * 1.4);
color: var(--title-color);
}
.dice-roll .intro-chat .intro-img {
padding: 4px;
max-width: 80px;

View File

@@ -64,6 +64,9 @@
"age": {
"label": "Age"
},
"aliases": {
"label": "Aliases"
},
"birthplace": {
"label": "Birthplace"
},

View File

@@ -99,7 +99,7 @@ export default class HellbornRoll extends Roll {
let damageRoll = new Roll(formula)
await damageRoll.evaluate()
await damageRoll.toMessage({
flavor: `${options.rollItem.name} - Damage Roll - ${options.rollItem.system.damageType}`,
flavor: `<div class="flavor-text-damage"><h2>Damage Roll : ${options.rollItem.name}</h2><BR><strong> ${options.rollItem.system.damageType}</strong></div>`,
});
return
}

View File

@@ -591,6 +591,29 @@
}
}
}
.aliases {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 4px;
margin-left: 4px;
.form-group {
label {
min-width: 6rem;
max-width: 6rem;
}
display: flex;
flex-direction: row;
align-items: center;
gap: 4px;
margin-left: 4px;
}
input {
text-align: left;
min-width: 41rem;
max-width: 41rem;
}
}
.biodata {
display: grid;
grid-template-columns: repeat(3, 1fr);

View File

@@ -77,6 +77,21 @@
}
}
.flavor-text-damage {
font-family: var(--font-secondary);
font-size: calc(var(--font-size-standard) * 1.2);
color: var(--color-dark-2);
margin-top: 5px;
h2 {
margin-top: 10px;
margin-left: 10px;
margin-bottom: 4px;
font-family: var(--font-title);
font-size: calc(var(--font-size-standard) * 1.2);
color: var(--title-color);
}
}
&.dice-roll {
flex-direction: column;
@@ -98,6 +113,15 @@
border-radius: 20px;
display: flex;
flex-direction: row;
h2 {
margin-top: 10px;
margin-left: 10px;
margin-bottom: 4px;
font-family: var(--font-title);
font-size: calc(var(--font-size-standard) * 1.4);
color: var(--title-color);
}
.intro-img {
padding: 4px;
max-width: 80px;
@@ -158,6 +182,7 @@
}
}
}
.result {
display: flex;
flex-direction: column;

View File

@@ -17,8 +17,12 @@
</div>
</fieldset>
<fieldset class="biodata">
<fieldset >
<legend>{{localize "HELLBORN.Label.biodata"}}</legend>
<div class="aliases">
{{formField systemFields.biodata.fields.aliases value=system.biodata.aliases rootId=partId disabled=isPlayMode}}
</div>
<div class="biodata">
<div class="experience">
{{formField systemFields.biodata.fields.gender value=system.biodata.gender rootId=partId disabled=isPlayMode}}
</div>
@@ -48,7 +52,7 @@
{{formField systemFields.biodata.fields.dod value=system.biodata.dod rootId=partId
disabled=isPlayMode}}
</div>
</div>
</fieldset>
<fieldset>

View File

@@ -5,21 +5,23 @@
{{actorName}}
</div>
<div class="intro-right">
<ul>
{{#if (eq rollType "stat")}}
<li><strong>{{localize "HELLBORN.Label.statRoll"}}</strong></li>
<h2>{{localize "HELLBORN.Label.statRoll"}}</h2>
{{/if}}
{{#if weapon}}
<li><strong>Weapon : {{weapon.name}}</strong></li>
<li><strong>Properties :</strong> {{weapon.system.properties}}</li>
<h2>Weapon : {{weapon.name}}</strong></h2>
{{/if}}
<li><strong>{{localize rollItem.label}} : {{rollItem.value}}</strong></li>
<ul>
<li>{{localize "HELLBORN.Label.difficulty"}} : {{difficulty}}</li>
<li><strong>Properties :</strong> {{weapon.system.properties}}</li>
<li>
<span>
<span><strong>{{localize rollItem.label}} : {{rollItem.value}}</strong></span>
<span>{{localize "HELLBORN.Label.difficulty"}} : {{difficulty}}</span>
</span>
</li>
{{#if (gt nbAdvantages 0)}}
<li>With Advantage !</li>

View File

@@ -2,7 +2,7 @@
<div class="intro-chat">
<h2>{{name}}</h2>
<ul>
<li><strong>{{system.flavorText}}</strong></li>
<li><strong><i>{{system.flavorText}}</i></strong></li>
<li><strong>Role : </strong>{{upperFirst system.role}}</li>
<li><strong>Level : </strong>{{getRomanLevel system.level}}</li>
<li>{{{system.description}}}</li>