2 Commits

Author SHA1 Message Date
fb5c408bbd Enhance CSS
All checks were successful
Release Creation / build (release) Successful in 54s
2025-06-17 00:40:51 +02:00
eea83aa10e Various fixes
All checks were successful
Release Creation / build (release) Successful in 51s
2025-06-15 16:32:47 +02:00
9 changed files with 85 additions and 26 deletions

View File

@@ -1965,6 +1965,9 @@ i.fvtt-hellborn {
.fvtt-hellborn .tarot-content fieldset {
margin-top: 8px;
}
.fvtt-hellborn .tarot-content fieldset legend {
margin-top: 1rem;
}
.fvtt-hellborn .tarot-content fieldset .form-group {
display: flex;
align-items: center;
@@ -2441,23 +2444,38 @@ i.fvtt-hellborn {
justify-content: center;
align-items: center;
}
.item-to-chat ul .tarot-spacing {
margin-top: 0.5rem;
}
.item-to-chat ul li {
margin: 0 10px;
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 1);
}
.item-to-chat ul li p {
margin: 0;
}
.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;
margin-top: 0px;
align-items: center;
}
.flavor-text-damage .chat-damage-type {
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 0.5rem;
}
.flavor-text-damage h2 {
margin-top: 10px;
margin-left: 10px;
margin-bottom: 4px;
text-align: center;
margin-top: 4px;
margin-left: 4px;
margin-bottom: 0px;
font-family: var(--font-title);
font-size: calc(var(--font-size-standard) * 1.2);
font-size: calc(var(--font-size-standard) * 1.1);
color: var(--title-color);
}
.dice-roll {
@@ -2513,6 +2531,12 @@ i.fvtt-hellborn {
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 1);
}
.dice-roll .intro-chat .intro-right ul .chat-roll-label {
margin-right: 2rem;
}
.dice-roll .intro-chat .intro-right ul .chat-results-spacing {
margin-bottom: 0.5rem;
}
.dice-roll .intro-chat .intro-right ul .nudge-roll {
font-size: calc(var(--font-size-standard) * 1);
margin-left: 4rem;

View File

@@ -30,6 +30,11 @@ Hooks.once("init", function () {
documents,
}
CONFIG.Combat.initiative = {
formula: '3d6 + @stats.mind.value',
decimals: 0
};
CONFIG.Actor.documentClass = documents.HellbornActor
CONFIG.Actor.dataModels = {
character: models.HellbornCharacter,

View File

@@ -53,24 +53,24 @@ export const CHOICE_ADVANTAGES_DISADVANTAGES ={
export const PERK_ROLES = {
"abbetor": { id: "abbetor", label: "Abbetor" },
"blade": { id: "blade", label: "Blade" },
"other": { id: "other", label: "Other" },
"gunslinger": { id: "gunslinger", label: "Gunslinger" },
"malefic": { id: "malefic", label: "Malefic" },
"mastermind": { id: "mastermind", label: "Mastermind" },
"sentinel": { id: "sentinel", label: "Sentinel" },
"slayer": { id: "slayer", label: "Slayer" },
"wretch": { id: "wretch", label: "Wretch" },
"other": { id: "other", label: "Other" },
}
export const MALEFICA_DOMAINS = {
"adfectus": { id: "adfectus", label: "Adfectus" },
"other": { id: "other", label: "Other" },
"divinus": { id: "divinus", label: "Divinus" },
"ignis": { id: "ignis", label: "Ignis" },
"iunctio": { id: "iunctio", label: "Iunctio" },
"speculo": { id: "speculo", label: "Speculo" },
"vinculum": { id: "vinculum", label: "Vinculum" },
"vita": { id: "vita", label: "Vita" },
"other": { id: "other", label: "Other" },
}
export const PERK_LEVELS = {

View File

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

View File

@@ -69,10 +69,16 @@
margin: 0;
justify-content: center;
align-items: center;
.tarot-spacing {
margin-top: 0.5rem;
}
li {
margin: 0 10px;
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 1);
p {
margin: 0;
}
}
}
}
@@ -81,13 +87,22 @@
font-family: var(--font-secondary);
font-size: calc(var(--font-size-standard) * 1.2);
color: var(--color-dark-2);
margin-top: 5px;
margin-top: 0px;
align-items: center;
.chat-damage-type {
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
margin-bottom:0.5rem;
}
h2 {
margin-top: 10px;
margin-left: 10px;
margin-bottom: 4px;
text-align: center;
margin-top: 4px;
margin-left: 4px;
margin-bottom: 0px;
font-family: var(--font-title);
font-size: calc(var(--font-size-standard) * 1.2);
font-size: calc(var(--font-size-standard) * 1.1);
color: var(--title-color);
}
}
@@ -143,6 +158,12 @@
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 1);
}
.chat-roll-label {
margin-right: 2rem;
}
.chat-results-spacing {
margin-bottom: 0.5rem;
}
.nudge-roll {
font-size: calc(var(--font-size-standard) * 1);
margin-left: 4rem;

View File

@@ -4,6 +4,9 @@
fieldset {
margin-top: 8px;
legend {
margin-top: 1rem;
}
.form-group {
display: flex;
align-items: center;

View File

@@ -12,7 +12,7 @@
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
<!--<img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />-->
<div class="name" data-action="toChat" data-item-uuid="{{item.uuid}}" data-roll-type="malefica" data-tooltip="{{{item.system.description}}}">
<div class="name" data-action="toChat" data-item-uuid="{{item.uuid}}" data-roll-type="malefica" data-tooltip="{{{item.system.description}}}<br>Time:{{item.system.time}}<br>Duration:{{item.system.duration}}<br>Range:{{item.system.range}}<br>Target:{{item.system.target}}">
<a>{{item.name}}</a>
</div>
<span class="domain" data-tooltip="Domain">{{upperFirst item.system.domain}}</span>

View File

@@ -10,7 +10,7 @@
<h2>{{localize "HELLBORN.Label.statRoll"}}</h2>
{{/if}}
{{#if weapon}}
<h2>Weapon : {{weapon.name}}</strong></h2>
<h2>{{weapon.name}}</strong></h2>
{{/if}}
<ul>
@@ -18,7 +18,7 @@
<li><strong>Properties :</strong> {{weapon.system.properties}}</li>
<li>
<span>
<span><strong>{{localize rollItem.label}} : {{rollItem.value}}</strong></span>
<span class="chat-roll-label"><strong>{{localize rollItem.label}} : {{rollItem.value}}</strong></span>
<span>{{localize "HELLBORN.Label.difficulty"}} : {{difficulty}}</span>
</span>
</li>
@@ -30,7 +30,7 @@
<li>With Disadvantages ! </li>
{{/if}}
<li>Results :
<li class="chat-results-spacing">Results :
{{#each results as |result|}}
{{result.result}}
{{/each}}
@@ -38,11 +38,11 @@
{{#if isSuccess}}
{{#if satanicSuccess}}
<li class="result-satanic-success">
<li class="chat-results-spacing result-satanic-success">
{{localize "HELLBORN.Label.satanicSuccess"}}
</li>
{{else}}
<li class="result-success">
<li class="chat-results-spacing result-success">
{{localize "HELLBORN.Label.success"}}
</li>
{{/if}}
@@ -51,18 +51,18 @@
{{#if isFailure}}
{{#if fiendishFailure}}
<li class="result-fiendish-failure">
<li class="chat-results-spacing result-fiendish-failure">
{{localize "HELLBORN.Label.fiendishFailure"}}
</li>
{{else}}
<li class="result-failure">
<li class="chat-results-spacing result-failure">
{{localize "HELLBORN.Label.failure"}}
</li>
{{/if}}
{{/if}}
{{#if (eq resultType "unknown")}}
<li class="result-unknown">
<li class="chat-results-spacing result-unknown">
{{localize "HELLBORN.Label.unknown"}}
</li>
{{/if}}

View File

@@ -2,7 +2,12 @@
<div class="intro-chat">
<h2>{{name}}</h2>
<ul>
<li><strong>Orientation : </strong>{{system.orientation}}</li>
{{#if (eq system.orientation "Upright")}}
<li><strong>Orientation : </strong>Upright</li>
{{else}}
<li><strong>Orientation : </strong>Reversed</li>
{{/if}}
<li><strong>Quote : </strong>{{system.quote}}</li>
{{#if (eq system.orientation "Upright")}}
@@ -11,12 +16,12 @@
<li><strong>Reversed XP Trigger : </strong>{{system.penalty}}</li>
{{/if}}
<li><strong>Description : </strong>{{{system.description}}}</li>
<li class="tarot-spacing"><strong>Description : </strong>{{{system.description}}}</li>
{{#if (eq system.orientation "Upright")}}
<li><strong>Positive Effect : </strong>{{{system.positiveEffect}}}</li>
<li class="tarot-spacing"><strong>Positive Effect : </strong>{{{system.positiveEffect}}}</li>
{{else}}
<li><strong>Negative Effect : </strong>{{{system.negativeEffect}}}</li>
<li class="tarot-spacing"><strong>Negative Effect : </strong>{{{system.negativeEffect}}}</li>
{{/if}}
</ul>