forked from public/foundryvtt-reve-de-dragon
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			721 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			721 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
| <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>
 |