1 Commits

Author SHA1 Message Date
28ec390020 Various fixes
All checks were successful
Release Creation / build (release) Successful in 59s
2025-05-26 18:26:55 +02:00
14 changed files with 67 additions and 30 deletions

View File

@@ -547,16 +547,16 @@ i.fvtt-hellborn {
max-width: 1.8rem;
}
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .properties {
min-width: 18rem;
max-width: 18rem;
min-width: 16.3rem;
max-width: 16.3rem;
}
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .range {
min-width: 4rem;
max-width: 4rem;
min-width: 4.5rem;
max-width: 4.5rem;
}
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .ammo {
min-width: 3rem;
max-width: 3rem;
min-width: 4.5rem;
max-width: 4.5rem;
}
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .type {
min-width: 3rem;
@@ -636,8 +636,12 @@ i.fvtt-hellborn {
max-width: 1.8rem;
}
.fvtt-hellborn .tab.character-equipment .main-div .equipments .equipment .name {
min-width: 12rem;
max-width: 12rem;
min-width: 10rem;
max-width: 10rem;
}
.fvtt-hellborn .tab.character-equipment .main-div .equipments .equipment .quantity {
min-width: 2rem;
max-width: 2rem;
}
.fvtt-hellborn .tab.character-equipment .main-div .equipments .equipment .item-img {
width: 24px;
@@ -2416,9 +2420,11 @@ i.fvtt-hellborn {
flex-direction: row;
}
.dice-roll .intro-chat .intro-img {
padding: 5px;
width: 80px;
align-self: center;
padding: 4px;
max-width: 80px;
min-width: 80px;
align-self: top;
text-align: center;
}
.dice-roll .intro-chat .intro-right {
display: flex;

View File

@@ -334,11 +334,8 @@
"description": {
"label": "Description"
},
"enc": {
"label": "Enc"
},
"techAge": {
"label": "Tech Age"
"quantity": {
"label": "Quantity"
}
}
},
@@ -476,6 +473,9 @@
},
"Malefica": {
"FIELDS": {
"duration": {
"label": "Duration"
},
"description": {
"label": "Description"
},

View File

@@ -214,6 +214,9 @@ export default class HellbornActorSheet extends HandlebarsApplicationMixin(found
if (item.type === "species-trait") {
content = await foundry.applications.handlebars.renderTemplate("systems/fvtt-hellborn/templates/chat-trait.hbs", item.toObject())
}
if (item.type === "tarot") {
content = await foundry.applications.handlebars.renderTemplate("systems/fvtt-hellborn/templates/chat-tarot.hbs", item.toObject())
}
const chatData = {
user: game.user.id,
speaker: ChatMessage.getSpeaker({ actor: this.actor }),

View File

@@ -8,6 +8,7 @@ export default class HellbornEquipment extends foundry.abstract.TypeDataModel {
schema.description = new fields.HTMLField({ required: true, textSearch: true })
schema.quantity = new fields.NumberField({ required: true, initial: 1, min: 0, integer: true })
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
return schema

View File

@@ -11,6 +11,7 @@ export default class HellbornMalefica extends foundry.abstract.TypeDataModel {
schema.domain = new fields.StringField({ required: true, nullable: false, choices: SYSTEM.MALEFICA_DOMAINS, initial: "adfectus" })
schema.level = new fields.StringField({ required: true, nullable: false, choices: SYSTEM.MALEFICA_LEVELS, initial: "1" })
schema.time = new fields.StringField({ required: true, initial : "" })
schema.duration = new fields.StringField({ required: true, initial : "" })
schema.hasDamage = new fields.BooleanField({ required: true, initial: false })
schema.damage = new fields.StringField({ required: false, initial : "" })
schema.damageType = new fields.StringField({ required: false, initial : "" })

View File

@@ -421,16 +421,16 @@
max-width: 1.8rem;
}
.properties {
min-width: 18rem;
max-width: 18rem;
min-width: 16.3rem;
max-width: 16.3rem;
}
.range {
min-width: 4rem;
max-width: 4rem;
min-width: 4.5rem;
max-width: 4.5rem;
}
.ammo {
min-width: 3rem;
max-width: 3rem;
min-width: 4.5rem;
max-width: 4.5rem;
}
.type {
min-width: 3rem;
@@ -512,8 +512,12 @@
max-width: 1.8rem;
}
.name {
min-width: 12rem;
max-width: 12rem;
min-width: 10rem;
max-width: 10rem;
}
.quantity {
min-width: 2rem;
max-width: 2rem;
}
.item-img {
width: 24px;

View File

@@ -99,9 +99,11 @@
display: flex;
flex-direction: row;
.intro-img {
padding: 5px;
width: 80px;
align-self: center;
padding: 4px;
max-width: 80px;
min-width : 80px;
align-self: top;
text-align: center;
}
.intro-right {
display: flex;

View File

@@ -76,6 +76,8 @@
<div class="name" data-tooltip="{{{item.system.description}}}">
{{item.name}}
</div>
<span class="quantity" data-tooltip="Quantity">{{item.system.quantity}}</span>
<div class="controls">
<a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>

View File

@@ -44,7 +44,7 @@
<div>
<div class="flexrow">
<div class="form-group">
<label>Upright</label>
<label><a data-action="toChat" data-item-uuid="{{upright.uuid}}">Upright</a></label>
<input class="trait" type="text" value="{{upright.name}}" disabled >
<div class="controls">
<a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{upright.id}}"
@@ -56,7 +56,7 @@
</div>
<div class="flexrow">
<div class="form-group">
<label>Reversed</label>
<label><a data-action="toChat" data-item-uuid="{{upright.uuid}}">Reversed</a></label>
<input class="trait" type="text" value="{{downright.name}}" disabled >
<div class="controls">
<a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{downright.id}}"

View File

@@ -6,6 +6,7 @@
<li><strong>Domain : </strong>{{upperFirst system.domain}}</li>
<li><strong>Level : </strong>{{getRomanLevel system.level}}</li>
<li><strong>Time : </strong>{{system.time}}</li>
<li><strong>Duration : </strong>{{system.duration}}</li>
<li><strong>Range : </strong>{{system.range}}</li>
<li><strong>Target : </strong>{{system.target}}</li>
<li>{{{system.description}}}</li>

View File

@@ -14,7 +14,7 @@
{{#if weapon}}
<li><strong>Weapon : {{weapon.name}}</strong></li>
<li><strong>Properties : {{weapon.system.properties}}</strong></li>
<li><strong>Properties :</strong> {{weapon.system.properties}}</li>
{{/if}}
<li><strong>{{localize rollItem.label}} : {{rollItem.value}}</strong></li>

15
templates/chat-tarot.hbs Normal file
View File

@@ -0,0 +1,15 @@
<div class="item-to-chat">
<div class="intro-chat">
<h2>{{name}}</h2>
<ul>
<li><strong>Orientation : </strong>{{system.orientation}}</li>
<li><strong>Quote : </strong>{{system.quote}}</li>
<li><strong>Bonus : </strong>{{system.bonus}}</li>
<li><strong>Penalty : </strong>{{system.penalty}}</li>
<li>{{{system.description}}}</li>
<li>{{{system.positiveEffect}}}</li>
<li>{{{system.negativeEffect}}}</li>
</ul>
</div>
</div>

View File

@@ -5,6 +5,7 @@
</div>
<fieldset>
{{formField systemFields.quantity value=system.quantity}}
{{formField systemFields.cost value=system.cost}}
</fieldset>

View File

@@ -8,6 +8,7 @@
{{formField systemFields.domain value=system.domain localize=true}}
{{formField systemFields.level value=system.level localize=true}}
{{formField systemFields.time value=system.time localize=true }}
{{formField systemFields.duration value=system.duration localize=true}}
{{formField systemFields.range value=system.range localize=true}}
{{formField systemFields.target value=system.target localize=true}}
{{formField systemFields.hasDamage value=system.hasDamage localize=true}}