RollV2, tchat et appel chance

gestion des appels à la chance pour tout jet V2

correction de soucis forçage du jet

continuation des messages de défense
This commit is contained in:
2025-09-27 23:48:17 +02:00
parent a7e14736e4
commit faca73b0a1
23 changed files with 240 additions and 153 deletions

View File

@@ -1,3 +1,4 @@
{{log this}}
<div class="roll-chat">
<div class="chat-img">

View File

@@ -1,9 +1,9 @@
{{#if show.encaissement}}
<a class='chat-card-button encaisser-button'
data-actorId='{{ids.actorId}}'
<a class='chat-card-button button-encaisser'
{{!-- data-actorId='{{ids.actorId}}'
data-actorTokenId='{{ids.actorTokenId}}'
data-opponentId='{{ids.opponentId}}'
data-opponentTokenId='{{ids.opponentTokenId}}'
data-opponentTokenId='{{ids.opponentTokenId}}' --}}
data-tooltip="Encaisser à {{plusMoins attackerRoll.dmg.total}} {{#if (eq attackerRoll.dmg.mortalite 'non-mortel')~}}(non-mortel){{/if}}"
>
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/encaisser.svg"/> Encaisser à {{plusMoins attackerRoll.dmg.total}}

View File

@@ -1,4 +1,6 @@
<input name="{{code}}" type="checkbox" {{#if current.checked}}checked{{/if}}/>
<input name="{{code}}" type="checkbox"
{{#if current.checked}}checked{{/if}}
{{#if rollData.type.retry}}disabled{{/if}}/>
<label for="{{code}}" data-tooltip="Moral: {{plusMoins refs.moral}}">
{{#if current.icon}}{{{current.icon}}}{{/if}}{{refs.label}}
</label>

View File

@@ -1,2 +1,4 @@
<input name="{{code}}" type="checkbox" {{#if current.checked}}checked{{/if}}/>
<input name="{{code}}" type="checkbox"
{{#if current.checked}}checked{{/if}}
{{#if rollData.type.retry}}disabled{{/if}}/>
<label for="{{code}}">{{refs.label}}</label>

View File

@@ -1,3 +1,5 @@
<input name="{{code}}" type="checkbox" {{#if current.checked}}checked{{/if}}/>
<input name="{{code}}" type="checkbox"
{{#if current.checked}}checked{{/if}}
{{#if rollData.type.retry}}disabled{{/if}}/>
{{#if current.icon}}{{{current.icon}}}{{/if}}
<label for="{{code}}">{{either current.label refs.label}} : {{plusMoins current.value}}</label>

View File

@@ -1,4 +1,6 @@
<input name="{{code}}" type="checkbox" {{#if current.checked}}checked{{/if}}/>
<input name="{{code}}" type="checkbox"
{{#if current.checked}}checked{{/if}}
{{#if rollData.type.retry}}disabled{{/if}}/>
<label for="{{code}}">
{{#if current.icon}}{{{current.icon}}}{{/if}}
{{current.label}}

View File

@@ -1 +0,0 @@
<span>: {{current.item.name}}</span>