bol/templates/chat/rolls/default-roll-card.hbs

111 lines
3.4 KiB
Handlebars
Raw Normal View History

2022-03-10 21:05:53 +01:00
<div>
{{#if isSuccess}}
2022-05-11 22:05:35 +02:00
{{#if isLegendary}}
2023-03-29 23:04:02 +02:00
<h2 class="success critical"><i class="fas fa-check-double"></i> {{localize "BOL.ui.criticallegend"}}...
2022-03-10 21:05:53 +01:00
{{else}}
2022-05-11 22:05:35 +02:00
{{#if isCritical}}
2023-03-29 23:04:02 +02:00
<h2 class="success critical"><i class="fas fa-check-double"></i> {{localize "BOL.ui.critical"}}...
2022-05-11 22:05:35 +02:00
{{else}}
2023-03-29 23:04:02 +02:00
<h2 class="success"><i class="fas fa-check"></i> {{localize "BOL.ui.success"}}...
2022-05-11 22:05:35 +02:00
{{/if}}
2022-03-10 21:05:53 +01:00
{{/if}}
{{/if}}
{{#if isFailure}}
{{#if isFumble}}
2023-03-29 23:04:02 +02:00
<h2 class="failure fumble"><i class="fas fa-skull-crossbones"></i> {{localize "BOL.ui.fumble"}}...
2022-03-10 21:05:53 +01:00
{{else}}
2023-03-29 23:04:02 +02:00
<h2 class="failure"><i class="fas fa-times"></i> {{localize "BOL.ui.failure"}}...
2022-03-10 21:05:53 +01:00
{{/if}}
{{/if}}
2022-05-11 22:05:35 +02:00
<img class="chat-icon" src="{{img}}" alt="{{actor.name}}"/>
2022-03-10 21:05:53 +01:00
</h2>
</div>
2022-01-16 21:29:12 +01:00
2022-01-09 13:23:20 +01:00
<h3><strong>{{description}}</strong></h3>
2022-01-16 21:29:12 +01:00
2022-03-27 22:56:43 +02:00
<div class="actions-section">
2022-09-01 22:23:58 +02:00
{{#if isFumble}}
{{localize "BOL.chat.fumblemessage"}}
{{/if}}
2022-03-27 22:56:43 +02:00
{{#if fightOption}}
<div>
2022-05-11 19:29:32 +02:00
{{localize "BOL.chat.fightoption"}} : {{fightOption.name}}
2022-03-27 22:56:43 +02:00
</div>
2022-01-23 09:25:09 +01:00
{{/if}}
2022-01-17 23:50:57 +01:00
2022-11-30 20:58:27 +01:00
{{#if initiativeRank}}
<div>
{{localize "BOL.chat.initiative"}}: {{initiativeRank}}
</div>
{{/if}}
2022-11-29 15:23:05 +01:00
{{#if (eq mode "bougette")}}
<div>
{{localize "BOL.chat.rollbougette"}} :
{{#if isSuccess}}
{{localize "BOL.chat.bougettesuccess"}}
{{else}}
{{localize "BOL.chat.bougettefailure"}}
{{/if}}
</div>
{{/if}}
2022-03-27 22:56:43 +02:00
<div id="{{optionsId}}">
2023-01-04 09:57:13 +01:00
{{#if isCritical}}
<div>
{{#if isLegendary}}
{{localize "BOL.chat.criticallegendaryinfo"}}
{{else}}
{{localize "BOL.chat.criticalinfo"}}
{{/if}}
2023-01-04 09:57:13 +01:00
</div>
2022-09-01 21:26:10 +02:00
<div class="bol-margin-tb-2">
<a class="content-link" draggable="true" data-link="" data-uuid="Compendium.bol.aides-de-jeu.JournalEntry.Yl1RKQb0BjVUtilk" data-id="Yl1RKQb0BjVUtilk" data-type="JournalEntry" data-pack="bol.aides-de-jeu" data-tooltip="Journal Entry"><i class="fas fa-book-open"></i>{{localize "BOL.chat.criticalbuttonjournal"}}</a>
2022-09-01 21:26:10 +02:00
</div>
2023-04-29 21:48:51 +02:00
{{#if (and isCritical weapon)}}
<div>
{{#if isLegendary}}
{{{localize "BOL.chat.legendaryreminder"}}}
{{else}}
{{{localize "BOL.chat.heroicreminder"}}}
{{/if}}
2023-04-29 21:48:51 +02:00
</div>
{{/if}}
2022-09-01 21:26:10 +02:00
{{/if}}
2022-03-27 22:56:43 +02:00
{{#if (and isSuccess weapon)}}
{{> "systems/bol/templates/chat/rolls/attack-damage-card.hbs"}}
{{/if}}
2023-04-29 21:48:51 +02:00
2022-03-27 22:56:43 +02:00
{{#if (and isSuccess spell)}}
{{> "systems/bol/templates/chat/rolls/spell-roll-card.hbs"}}
{{/if}}
{{#if alchemy}}
{{> "systems/bol/templates/chat/rolls/alchemy-roll-card.hbs"}}
{{/if}}
2022-12-23 23:24:09 +01:00
{{#if (eq mode "horoscope")}}
{{> "systems/bol/templates/chat/rolls/horoscope-roll-card.hbs"}}
{{/if}}
2022-05-11 22:05:35 +02:00
2022-12-23 23:24:09 +01:00
{{#if (count selectedHoroscope)}}
{{> "systems/bol/templates/chat/rolls/selected-horoscope-roll-card.hbs"}}
{{/if}}
2022-03-27 22:56:43 +02:00
{{#if reroll}}
2023-03-29 23:04:02 +02:00
<button class="chat-button button hero-reroll bol-margin-tb-2" data-actor-id="{{actorId}}">{{localize "BOL.chat.reroll"}}</button>
2022-03-27 22:56:43 +02:00
{{/if}}
{{#if (and isSuccess (not isCritical))}}
2023-03-29 23:04:02 +02:00
<button class="chat-button button transform-heroic-roll bol-margin-tb-2" data-actor-id="{{actorId}}">{{localize "BOL.chat.toheroic"}}</button>
2022-03-27 22:56:43 +02:00
{{/if}}
{{#if isRealCritical}}
2023-03-29 23:04:02 +02:00
<button class="chat-button button transform-legendary-roll bol-margin-tb-2" data-actor-id="{{actorId}}">{{localize "BOL.chat.tolegend"}}</button>
2022-03-27 22:56:43 +02:00
{{/if}}
2022-09-01 21:26:10 +02:00
2022-03-27 22:56:43 +02:00
<br>
</div>
</div>
2022-09-01 21:26:10 +02:00