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 */
|
||||
/* ----------------------------------------- */
|
||||
}
|
||||
.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 {
|
||||
top: -15px;
|
||||
right: 3px;
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
"ACKS.Retainer": "Retainer",
|
||||
"ACKS.RetainerWage": "Wage",
|
||||
"ACKS.RetainerUpkeep": "Upkeep",
|
||||
"ACKS.Loyalty": "Henchmen Morale",
|
||||
"ACKS.LoyaltyShort": "MOR",
|
||||
"ACKS.Loyalty": "Loyalty",
|
||||
"ACKS.LoyaltyShort": "LYL",
|
||||
|
||||
"ACKS.scores.str.long": "Strength",
|
||||
"ACKS.scores.str.short": "STR",
|
||||
|
|
|
@ -140,6 +140,11 @@ export class AcksActorSheetCharacter extends AcksActorSheet {
|
|||
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) => {
|
||||
let actorObject = this.actor;
|
||||
let element = event.currentTarget;
|
||||
|
|
|
@ -57,17 +57,6 @@
|
|||
data-dtype="Number" />
|
||||
</div>
|
||||
</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>
|
||||
</div>
|
||||
{{!-- Resource Tracking --}}
|
||||
|
|
|
@ -22,6 +22,21 @@
|
|||
/>
|
||||
<label>{{localize 'ACKS.details.alignment'}}</label>
|
||||
</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 class="summary flexrow">
|
||||
<li class="flex3">
|
||||
|
|
Loading…
Reference in New Issue