Initial Character Sheet changes for Morale and Loyalty fields.
parent
e8d80f7096
commit
63509e310e
13
src/acks.css
13
src/acks.css
|
@ -701,6 +701,19 @@
|
||||||
/* Item Controls */
|
/* Item Controls */
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
}
|
}
|
||||||
|
.acks.sheet.actor.character .sheet-header .header-details .summary .check-field:hover .check {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.acks.sheet.actor.character .sheet-header .header-details .summary .check-field .check {
|
||||||
|
display: none;
|
||||||
|
line-height: 35px;
|
||||||
|
flex: 0 0 20px;
|
||||||
|
position: absolute;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.acks.sheet.actor.character .sheet-header .header-details .summary .check-field .check:hover {
|
||||||
|
color: rgba(0, 0, 0, 0.9);
|
||||||
|
}
|
||||||
.acks.sheet.actor.character .sheet-header .xp-bonus {
|
.acks.sheet.actor.character .sheet-header .xp-bonus {
|
||||||
top: -15px;
|
top: -15px;
|
||||||
right: 3px;
|
right: 3px;
|
||||||
|
|
|
@ -69,8 +69,8 @@
|
||||||
"ACKS.Retainer": "Retainer",
|
"ACKS.Retainer": "Retainer",
|
||||||
"ACKS.RetainerWage": "Wage",
|
"ACKS.RetainerWage": "Wage",
|
||||||
"ACKS.RetainerUpkeep": "Upkeep",
|
"ACKS.RetainerUpkeep": "Upkeep",
|
||||||
"ACKS.Loyalty": "Henchmen Morale",
|
"ACKS.Loyalty": "Loyalty",
|
||||||
"ACKS.LoyaltyShort": "MOR",
|
"ACKS.LoyaltyShort": "LYL",
|
||||||
|
|
||||||
"ACKS.scores.str.long": "Strength",
|
"ACKS.scores.str.long": "Strength",
|
||||||
"ACKS.scores.str.short": "STR",
|
"ACKS.scores.str.short": "STR",
|
||||||
|
|
|
@ -140,6 +140,11 @@ export class AcksActorSheetCharacter extends AcksActorSheet {
|
||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
super.activateListeners(html);
|
super.activateListeners(html);
|
||||||
|
|
||||||
|
html.find(".morale-check a").click((ev) => {
|
||||||
|
let actorObject = this.actor;
|
||||||
|
actorObject.rollMorale({ event: event });
|
||||||
|
});
|
||||||
|
|
||||||
html.find(".ability-score .attribute-name a").click((ev) => {
|
html.find(".ability-score .attribute-name a").click((ev) => {
|
||||||
let actorObject = this.actor;
|
let actorObject = this.actor;
|
||||||
let element = event.currentTarget;
|
let element = event.currentTarget;
|
||||||
|
|
|
@ -57,17 +57,6 @@
|
||||||
data-dtype="Number" />
|
data-dtype="Number" />
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{{#if data.retainer.enabled}}
|
|
||||||
<li class="attribute ability-score" data-stat="lr">
|
|
||||||
<h4 class="attribute-name box-title" title="{{ localize 'ACKS.Loyalty' }}">
|
|
||||||
<a>{{ localize "ACKS.LoyaltyShort" }}</a>
|
|
||||||
</h4>
|
|
||||||
<div class="attribute-value">
|
|
||||||
<input name="data.retainer.loyalty" type="text" value="{{data.retainer.loyalty}}" placeholder="0"
|
|
||||||
data-dtype="Number" />
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{!-- Resource Tracking --}}
|
{{!-- Resource Tracking --}}
|
||||||
|
|
|
@ -22,6 +22,21 @@
|
||||||
/>
|
/>
|
||||||
<label>{{localize 'ACKS.details.alignment'}}</label>
|
<label>{{localize 'ACKS.details.alignment'}}</label>
|
||||||
</li>
|
</li>
|
||||||
|
{{#if data.retainer.enabled}}
|
||||||
|
<li class="flexrow check-field">
|
||||||
|
<div class="check morale-check" title="{{localize 'ACKS.roll.morale'}}"><a><i class="fas fa-dice"></i></a></div>
|
||||||
|
<div>
|
||||||
|
<input type="text" name="data.details.morale" value="{{data.details.morale}}" />
|
||||||
|
<label>{{localize 'ACKS.details.morale'}}</label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="attribute ability-score" data-stat="lr">
|
||||||
|
<div class="attribute-value">
|
||||||
|
<input name="data.retainer.loyalty" type="text" value="{{data.retainer.loyalty}}" placeholder="Loyal" data-dtype="String" />
|
||||||
|
<label>{{localize 'ACKS.Loyalty'}}</label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="summary flexrow">
|
<ul class="summary flexrow">
|
||||||
<li class="flex3">
|
<li class="flex3">
|
||||||
|
|
Loading…
Reference in New Issue