This commit is contained in:
@@ -547,16 +547,16 @@ i.fvtt-hellborn {
|
|||||||
max-width: 1.8rem;
|
max-width: 1.8rem;
|
||||||
}
|
}
|
||||||
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .properties {
|
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .properties {
|
||||||
min-width: 18rem;
|
min-width: 16.3rem;
|
||||||
max-width: 18rem;
|
max-width: 16.3rem;
|
||||||
}
|
}
|
||||||
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .range {
|
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .range {
|
||||||
min-width: 4rem;
|
min-width: 4.5rem;
|
||||||
max-width: 4rem;
|
max-width: 4.5rem;
|
||||||
}
|
}
|
||||||
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .ammo {
|
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .ammo {
|
||||||
min-width: 3rem;
|
min-width: 4.5rem;
|
||||||
max-width: 3rem;
|
max-width: 4.5rem;
|
||||||
}
|
}
|
||||||
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .type {
|
.fvtt-hellborn .tab.character-equipment .main-div .weapons .weapon .type {
|
||||||
min-width: 3rem;
|
min-width: 3rem;
|
||||||
@@ -636,8 +636,12 @@ i.fvtt-hellborn {
|
|||||||
max-width: 1.8rem;
|
max-width: 1.8rem;
|
||||||
}
|
}
|
||||||
.fvtt-hellborn .tab.character-equipment .main-div .equipments .equipment .name {
|
.fvtt-hellborn .tab.character-equipment .main-div .equipments .equipment .name {
|
||||||
min-width: 12rem;
|
min-width: 10rem;
|
||||||
max-width: 12rem;
|
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 {
|
.fvtt-hellborn .tab.character-equipment .main-div .equipments .equipment .item-img {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
@@ -2416,9 +2420,11 @@ i.fvtt-hellborn {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
.dice-roll .intro-chat .intro-img {
|
.dice-roll .intro-chat .intro-img {
|
||||||
padding: 5px;
|
padding: 4px;
|
||||||
width: 80px;
|
max-width: 80px;
|
||||||
align-self: center;
|
min-width: 80px;
|
||||||
|
align-self: top;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.dice-roll .intro-chat .intro-right {
|
.dice-roll .intro-chat .intro-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
10
lang/en.json
10
lang/en.json
@@ -334,11 +334,8 @@
|
|||||||
"description": {
|
"description": {
|
||||||
"label": "Description"
|
"label": "Description"
|
||||||
},
|
},
|
||||||
"enc": {
|
"quantity": {
|
||||||
"label": "Enc"
|
"label": "Quantity"
|
||||||
},
|
|
||||||
"techAge": {
|
|
||||||
"label": "Tech Age"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -476,6 +473,9 @@
|
|||||||
},
|
},
|
||||||
"Malefica": {
|
"Malefica": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
|
"duration": {
|
||||||
|
"label": "Duration"
|
||||||
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"label": "Description"
|
"label": "Description"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -214,6 +214,9 @@ export default class HellbornActorSheet extends HandlebarsApplicationMixin(found
|
|||||||
if (item.type === "species-trait") {
|
if (item.type === "species-trait") {
|
||||||
content = await foundry.applications.handlebars.renderTemplate("systems/fvtt-hellborn/templates/chat-trait.hbs", item.toObject())
|
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 = {
|
const chatData = {
|
||||||
user: game.user.id,
|
user: game.user.id,
|
||||||
speaker: ChatMessage.getSpeaker({ actor: this.actor }),
|
speaker: ChatMessage.getSpeaker({ actor: this.actor }),
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ export default class HellbornEquipment extends foundry.abstract.TypeDataModel {
|
|||||||
|
|
||||||
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
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 })
|
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
|
|
||||||
return schema
|
return schema
|
||||||
|
|||||||
@@ -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.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.level = new fields.StringField({ required: true, nullable: false, choices: SYSTEM.MALEFICA_LEVELS, initial: "1" })
|
||||||
schema.time = new fields.StringField({ required: true, initial : "" })
|
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.hasDamage = new fields.BooleanField({ required: true, initial: false })
|
||||||
schema.damage = new fields.StringField({ required: false, initial : "" })
|
schema.damage = new fields.StringField({ required: false, initial : "" })
|
||||||
schema.damageType = new fields.StringField({ required: false, initial : "" })
|
schema.damageType = new fields.StringField({ required: false, initial : "" })
|
||||||
|
|||||||
@@ -421,16 +421,16 @@
|
|||||||
max-width: 1.8rem;
|
max-width: 1.8rem;
|
||||||
}
|
}
|
||||||
.properties {
|
.properties {
|
||||||
min-width: 18rem;
|
min-width: 16.3rem;
|
||||||
max-width: 18rem;
|
max-width: 16.3rem;
|
||||||
}
|
}
|
||||||
.range {
|
.range {
|
||||||
min-width: 4rem;
|
min-width: 4.5rem;
|
||||||
max-width: 4rem;
|
max-width: 4.5rem;
|
||||||
}
|
}
|
||||||
.ammo {
|
.ammo {
|
||||||
min-width: 3rem;
|
min-width: 4.5rem;
|
||||||
max-width: 3rem;
|
max-width: 4.5rem;
|
||||||
}
|
}
|
||||||
.type {
|
.type {
|
||||||
min-width: 3rem;
|
min-width: 3rem;
|
||||||
@@ -512,8 +512,12 @@
|
|||||||
max-width: 1.8rem;
|
max-width: 1.8rem;
|
||||||
}
|
}
|
||||||
.name {
|
.name {
|
||||||
min-width: 12rem;
|
min-width: 10rem;
|
||||||
max-width: 12rem;
|
max-width: 10rem;
|
||||||
|
}
|
||||||
|
.quantity {
|
||||||
|
min-width: 2rem;
|
||||||
|
max-width: 2rem;
|
||||||
}
|
}
|
||||||
.item-img {
|
.item-img {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
|
|||||||
@@ -99,9 +99,11 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
.intro-img {
|
.intro-img {
|
||||||
padding: 5px;
|
padding: 4px;
|
||||||
width: 80px;
|
max-width: 80px;
|
||||||
align-self: center;
|
min-width : 80px;
|
||||||
|
align-self: top;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.intro-right {
|
.intro-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -76,6 +76,8 @@
|
|||||||
<div class="name" data-tooltip="{{{item.system.description}}}">
|
<div class="name" data-tooltip="{{{item.system.description}}}">
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
</div>
|
</div>
|
||||||
|
<span class="quantity" data-tooltip="Quantity">{{item.system.quantity}}</span>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
|
<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>
|
data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="form-group">
|
<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 >
|
<input class="trait" type="text" value="{{upright.name}}" disabled >
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{upright.id}}"
|
<a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{upright.id}}"
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="form-group">
|
<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 >
|
<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}}"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
<li><strong>Domain : </strong>{{upperFirst system.domain}}</li>
|
<li><strong>Domain : </strong>{{upperFirst system.domain}}</li>
|
||||||
<li><strong>Level : </strong>{{getRomanLevel system.level}}</li>
|
<li><strong>Level : </strong>{{getRomanLevel system.level}}</li>
|
||||||
<li><strong>Time : </strong>{{system.time}}</li>
|
<li><strong>Time : </strong>{{system.time}}</li>
|
||||||
|
<li><strong>Duration : </strong>{{system.duration}}</li>
|
||||||
<li><strong>Range : </strong>{{system.range}}</li>
|
<li><strong>Range : </strong>{{system.range}}</li>
|
||||||
<li><strong>Target : </strong>{{system.target}}</li>
|
<li><strong>Target : </strong>{{system.target}}</li>
|
||||||
<li>{{{system.description}}}</li>
|
<li>{{{system.description}}}</li>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
{{#if weapon}}
|
{{#if weapon}}
|
||||||
<li><strong>Weapon : {{weapon.name}}</strong></li>
|
<li><strong>Weapon : {{weapon.name}}</strong></li>
|
||||||
<li><strong>Properties : {{weapon.system.properties}}</strong></li>
|
<li><strong>Properties :</strong> {{weapon.system.properties}}</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<li><strong>{{localize rollItem.label}} : {{rollItem.value}}</strong></li>
|
<li><strong>{{localize rollItem.label}} : {{rollItem.value}}</strong></li>
|
||||||
|
|||||||
15
templates/chat-tarot.hbs
Normal file
15
templates/chat-tarot.hbs
Normal 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>
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{{formField systemFields.quantity value=system.quantity}}
|
||||||
{{formField systemFields.cost value=system.cost}}
|
{{formField systemFields.cost value=system.cost}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
{{formField systemFields.domain value=system.domain localize=true}}
|
{{formField systemFields.domain value=system.domain localize=true}}
|
||||||
{{formField systemFields.level value=system.level localize=true}}
|
{{formField systemFields.level value=system.level localize=true}}
|
||||||
{{formField systemFields.time value=system.time 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.range value=system.range localize=true}}
|
||||||
{{formField systemFields.target value=system.target localize=true}}
|
{{formField systemFields.target value=system.target localize=true}}
|
||||||
{{formField systemFields.hasDamage value=system.hasDamage localize=true}}
|
{{formField systemFields.hasDamage value=system.hasDamage localize=true}}
|
||||||
|
|||||||
Reference in New Issue
Block a user