Skip to content

Commit

Permalink
Merge pull request #256 from FoxLee/main
Browse files Browse the repository at this point in the history
Changes to chat card generation for NPC powers
  • Loading branch information
EndlesNights authored Feb 4, 2023
2 parents 134d666 + 8d7da90 commit bc6f15f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/chat/item-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ <h3 class="item-name ability-usage--">{{item.name}}</h3>
</header>

<div class="card-content" style="display: block;">
{{#if (eq actor.type "NPC")}}
{{#if item.system.autoGenChatPowerCard}}
{{#if item.system.chatFlavor}}<p class="chat-flavour">{{item.system.chatFlavor}}</p>{{/if}}
{{else}}
{{{system.description.value}}}
{{/if}}
{{else}}
{{#if item.system.chatFlavor}}<p class="chat-flavour">{{/if}}{{{system.description.value}}}{{#if item.system.chatFlavor}}</p>{{/if}}
{{#if data.materials.value}}
<p><strong>{{ localize "DND4EBETA.RequiredMaterials" }}.</strong> {{data.materials.value}}</p>
{{/if}}
{{/if}}
</div>
<div class="item-summary">
<div class="item-details">
Expand Down

0 comments on commit bc6f15f

Please sign in to comment.