Nouvelle fenêtre de jets de dés

This commit is contained in:
2025-09-05 01:09:32 +02:00
parent 652c435833
commit 1ff32697f4
134 changed files with 4025 additions and 400 deletions

View File

@@ -0,0 +1,22 @@
{{log 'roll-table' carac diff this}}
<table class='table-resolution'>
<tr>
<th></th>
{{#each (roll-centered-array diff 2) as |col|}}
<th class="table-resolution-level" data-col="{{col}}">{{plusMoins col}}</th>
{{/each}}
</tr>
{{#each (roll-centered-array carac 2) as |row|}}
<tr data-row="{{row}}">
<td class="table-resolution-carac" data-col="{{col}}">{{computeResolutionScore row -8}}</td>
{{#each (roll-centered-array ../diff 2) as |col|}}
<td
{{#if (and (eq row ../../carac) (eq col ../../diff))}}class="table-resolution-target"{{/if}}
data-row="{{row}}" data-col="{{col}}"
>
{{computeResolutionScore row col}}
</td>
{{/each}}
</tr>
{{/each}}
</table>