ENhance actor sheet with roll messages
This commit is contained in:
@@ -45,6 +45,11 @@
|
||||
{{#if (gt knowledgeBonus 0)}}+ {{knowledgeBonus}}{{else if (lt knowledgeBonus 0)}}− {{abs knowledgeBonus}}{{/if}}
|
||||
</span>
|
||||
{{/if}}
|
||||
{{#if conditionBonus}}
|
||||
<span class="roll-mod condition">
|
||||
{{#if (gt conditionBonus 0)}}+ {{conditionBonus}}{{else if (lt conditionBonus 0)}}− {{abs conditionBonus}}{{/if}}
|
||||
</span>
|
||||
{{/if}}
|
||||
<span class="roll-equals">=</span>
|
||||
<span class="roll-total">{{total}}</span>
|
||||
{{#if dc}}<span class="roll-dc">/ DC {{dc}}</span>{{/if}}
|
||||
@@ -80,6 +85,22 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Damage roll button (shown on weapon attacks where damage wasn't auto-rolled) --}}
|
||||
{{#if damageFormula}}
|
||||
{{#unless damageResult}}
|
||||
<div class="chat-damage-action">
|
||||
<button type="button" class="roll-damage-btn"
|
||||
data-actor-id="{{actorId}}"
|
||||
data-damage-formula="{{damageFormula}}"
|
||||
data-damage-type="{{damageType}}"
|
||||
data-item-name="{{sourceItemName}}"
|
||||
data-item-img="{{sourceItemImg}}">
|
||||
<i class="fas fa-burst"></i> {{localize "AWEMMY.Weapon.DamageRoll"}}
|
||||
</button>
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
|
||||
{{else}}
|
||||
<div class="private-result">
|
||||
<i class="fa-solid fa-eye-slash"></i> {{localize "AWEMMY.Roll.Private"}}
|
||||
|
||||
Reference in New Issue
Block a user