Fix actor sheet modifications/updates
This commit is contained in:
@@ -57,6 +57,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Item.RollBonus"}}</label>
|
||||
{{formInput systemFields.rollBonus value=system.rollBonus placeholder="e.g. 2 to Recall Knowledge"}}
|
||||
</div>
|
||||
|
||||
<div class="form-group-tags">
|
||||
<label>{{localize "AWEMMY.Ability.Traits"}}</label>
|
||||
<div class="tags-list">
|
||||
|
||||
@@ -6,10 +6,22 @@
|
||||
<label>{{localize "AWEMMY.Character.Pronouns"}}</label>
|
||||
{{formInput systemFields.pronouns value=system.pronouns disabled=isPlayMode}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Character.Specialization"}}</label>
|
||||
{{formInput systemFields.specialization value=system.specialization disabled=isPlayMode}}
|
||||
</fieldset>
|
||||
|
||||
<!-- Background (max 1) -->
|
||||
<fieldset class="items-list-fieldset">
|
||||
<legend>{{localize "AWEMMY.Item.Background"}}</legend>
|
||||
{{#each backgrounds}}
|
||||
<div class="item-row" data-item-id="{{id}}" data-item-uuid="{{uuid}}" data-drag="true" data-tooltip="{{itemTooltip this}}">
|
||||
<img src="{{img}}" class="item-img" alt="{{name}}" />
|
||||
<span class="item-name">{{name}}</span>
|
||||
<div class="item-controls">
|
||||
<a class="item-control" data-action="edit" data-item-id="{{id}}" data-item-uuid="{{uuid}}" data-tooltip="{{localize 'AWEMMY.Sheet.EditItem'}}"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control" data-action="delete" data-item-id="{{id}}" data-item-uuid="{{uuid}}" data-tooltip="{{localize 'AWEMMY.Sheet.DeleteItem'}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#unless backgrounds.length}}<div class="item-row item-empty"><em>{{localize "AWEMMY.Character.DropBackground"}}</em></div>{{/unless}}
|
||||
</fieldset>
|
||||
|
||||
<!-- Field (max 1) -->
|
||||
@@ -81,22 +93,6 @@
|
||||
{{#unless archetypes.length}}<div class="item-row item-empty"><em>{{localize "AWEMMY.Character.DropArchetype"}}</em></div>{{/unless}}
|
||||
</fieldset>
|
||||
|
||||
<!-- Background (max 1) -->
|
||||
<fieldset class="items-list-fieldset">
|
||||
<legend>{{localize "AWEMMY.Item.Background"}}</legend>
|
||||
{{#each backgrounds}}
|
||||
<div class="item-row" data-item-id="{{id}}" data-item-uuid="{{uuid}}" data-drag="true" data-tooltip="{{itemTooltip this}}">
|
||||
<img src="{{img}}" class="item-img" alt="{{name}}" />
|
||||
<span class="item-name">{{name}}</span>
|
||||
<div class="item-controls">
|
||||
<a class="item-control" data-action="edit" data-item-id="{{id}}" data-item-uuid="{{uuid}}" data-tooltip="{{localize 'AWEMMY.Sheet.EditItem'}}"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control" data-action="delete" data-item-id="{{id}}" data-item-uuid="{{uuid}}" data-tooltip="{{localize 'AWEMMY.Sheet.DeleteItem'}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#unless backgrounds.length}}<div class="item-row item-empty"><em>{{localize "AWEMMY.Character.DropBackground"}}</em></div>{{/unless}}
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "AWEMMY.Character.Description"}}</legend>
|
||||
{{formInput
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
{{!-- Abilities --}}
|
||||
<fieldset>
|
||||
<legend>{{localize "AWEMMY.Item.Ability"}}</legend>
|
||||
<legend>{{localize "AWEMMY.Character.Repertoire"}}</legend>
|
||||
<div class="item-list">
|
||||
{{#each abilities as |item|}}
|
||||
<div class="item-row {{#if item.usedToday}}ability-used{{/if}}" data-drag="true" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-tooltip="{{itemTooltip item}}">
|
||||
@@ -95,6 +95,22 @@
|
||||
</a>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{#if hasConditionPenalties}}
|
||||
<div class="condition-penalties">
|
||||
{{#if inhibitedActive}}
|
||||
<div class="condition-penalty-row">
|
||||
<label>{{localize "AWEMMY.Condition.Inhibited"}} {{localize "AWEMMY.Condition.Penalty"}}</label>
|
||||
{{formInput systemFields.inhibitedPenalty value=inhibitedPenalty classes="condition-penalty-input"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if vulnerableActive}}
|
||||
<div class="condition-penalty-row">
|
||||
<label>{{localize "AWEMMY.Condition.Vulnerable"}} {{localize "AWEMMY.Condition.DCPenalty"}}</label>
|
||||
{{formInput systemFields.vulnerablePenalty value=vulnerablePenalty classes="condition-penalty-input"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="roll-breakdown">
|
||||
{{#each dice}}
|
||||
{{#each results}}
|
||||
<span class="die-result {{#if (eq result ../faces)}}max{{else if (eq result 1)}}min{{/if}}">
|
||||
<span class="die-result {{#unless active}}discarded{{else}}{{#if (eq result ../faces)}}max{{else if (eq result 1)}}min{{/if}}{{/unless}}">
|
||||
<i class="fa-solid fa-dice-d{{../faces}}"></i> {{result}}
|
||||
</span>
|
||||
{{/each}}
|
||||
@@ -55,6 +55,15 @@
|
||||
{{#if dc}}<span class="roll-dc">/ DC {{dc}}</span>{{/if}}
|
||||
</div>
|
||||
|
||||
{{!-- Roll-twice mode badge --}}
|
||||
{{#if rollTwice}}
|
||||
<div class="roll-twice-badge">
|
||||
{{#if (eq rollTwice "higher")}}<i class="fas fa-angles-up"></i> {{localize "AWEMMY.Roll.TakeHigher"}}
|
||||
{{else}}<i class="fas fa-angles-down"></i> {{localize "AWEMMY.Roll.TakeLower"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Outcome badge --}}
|
||||
{{#if outcome}}
|
||||
<div class="outcome-badge {{outcome}}">
|
||||
|
||||
@@ -16,6 +16,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Item.RollBonus"}}</label>
|
||||
{{formInput systemFields.rollBonus value=system.rollBonus placeholder="e.g. 2 to Recall Knowledge"}}
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "AWEMMY.Item.Description"}}</legend>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="roll-header">
|
||||
<span class="roll-attr-name">{{attrLabel}}</span>
|
||||
<span class="roll-formula-summary">
|
||||
1d20
|
||||
<span id="awe-dice-expr">1d20</span>
|
||||
{{#if (gt modifier 0)}} + {{modifier}}{{else if (lt modifier 0)}} − {{abs modifier}}{{/if}}
|
||||
{{#if (gt attributeBonus 0)}} + <em>{{attributeBonus}}</em>{{else if (lt attributeBonus 0)}} − <em>{{abs attributeBonus}}</em>{{/if}}
|
||||
</span>
|
||||
@@ -20,6 +20,16 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Roll twice --}}
|
||||
<div class="dialog-row">
|
||||
<label for="awe-roll-twice">{{localize "AWEMMY.Roll.RollTwice"}}</label>
|
||||
<select id="awe-roll-twice" name="rollTwice">
|
||||
<option value="">{{localize "AWEMMY.Roll.Normal"}}</option>
|
||||
<option value="higher">{{localize "AWEMMY.Roll.TakeHigher"}}</option>
|
||||
<option value="lower">{{localize "AWEMMY.Roll.TakeLower"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{!-- Situational bonus / penalty --}}
|
||||
<div class="dialog-row">
|
||||
<label for="awe-bonus">{{localize "AWEMMY.Roll.SituationalBonus"}}</label>
|
||||
|
||||
@@ -31,6 +31,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "AWEMMY.Item.RollBonus"}}</label>
|
||||
{{formInput systemFields.rollBonus value=system.rollBonus placeholder="e.g. 2 to Recall Knowledge"}}
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "AWEMMY.Item.Description"}}</legend>
|
||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
|
||||
|
||||
Reference in New Issue
Block a user