add title on dice button and translations for chat successes/strives...

This commit is contained in:
Vlyan
2020-12-10 18:31:41 +01:00
parent 534a02a323
commit 88162a11c4
6 changed files with 48 additions and 15 deletions

View File

@@ -25,18 +25,22 @@
{{#l5r5e.summary}}
<ul>
<li>Successes: {{this.success}}</li>
<li>{{localize "l5r5e.chatdices.successes"}}: {{this.success}}</li>
{{#if explosive}}
<li>{{localize "l5r5e.chatdices.explosives"}}: {{this.explosive}}</li>
{{/if}}
{{#if opportunity}}
<li>Opportunities: {{this.opportunity}}</li>
<li>{{localize "l5r5e.chatdices.opportunities"}}: {{this.opportunity}}</li>
{{/if}}
{{#if strife}}
<li>Strife: {{this.strife}}</li>
<li>{{localize "l5r5e.chatdices.strives"}}: {{this.strife}}</li>
{{/if}}
{{#if difficulty}}
<li>Difficulty: {{this.difficulty}}</li>
<li>{{localize "l5r5e.chatdices.difficulty"}}: {{this.difficulty}}</li>
{{/if}}
</ul>
{{/l5r5e.summary}}

View File

@@ -21,23 +21,26 @@
{{/if}}
{{/each}}
<!-- TODO summary localization -->
{{#if chatData.l5r5e.dicesTypes.l5r}}
{{#if chatData.displaySummary}}
{{#chatData.l5r5e.summary}}
<ul>
<li>Successes: {{this.success}}</li>
<li>{{localize "l5r5e.chatdices.successes"}}: {{this.success}}</li>
{{#if explosive}}
<li>{{localize "l5r5e.chatdices.explosives"}}: {{this.explosive}}</li>
{{/if}}
{{#if opportunity}}
<li>Opportunities: {{this.opportunity}}</li>
<li>{{localize "l5r5e.chatdices.opportunities"}}: {{this.opportunity}}</li>
{{/if}}
{{#if strife}}
<li>Strife: {{this.strife}}</li>
<li>{{localize "l5r5e.chatdices.strives"}}: {{this.strife}}</li>
{{/if}}
{{#if difficulty}}
<li>Difficulty: {{this.difficulty}}</li>
<li>{{localize "l5r5e.chatdices.difficulty"}}: {{this.difficulty}}</li>
{{/if}}
</ul>
{{/chatData.l5r5e.summary}}