Various enhancements

This commit is contained in:
2024-06-12 11:16:46 +02:00
parent dc4429f3e1
commit e92b2deacf
53 changed files with 207 additions and 151 deletions

View File

@@ -134,7 +134,7 @@
<span class="item-field-label-short">{{skill.system.bonus}}</span>
<span class="item-field-label-medium">{{skill.total}}%</span>
<label class="attribute-value checkbox"><input type="checkbox" class="skill-used-id" {{checked skill.system.used}}/></label>
<span class="item-field-label-short" data-tooltip="Start a cumulative task"><a class="start-cumulative-task"><i class="fa-solid fa-circle-plus"></i></a></span>
<span class="item-field-label-short" data-tooltip="Start an Extended Test"><a class="start-extended-test"><i class="fa-solid fa-circle-plus"></i></a></span>
<div class="item-controls item-controls-fixed">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
@@ -160,14 +160,14 @@
<label class="short-label">&nbsp;</label>
</span>
</li>
{{#each tasks as |task key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{task._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{task.img}}" />
{{#each extendedTests as |test key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{test._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{test.img}}" />
</a>
<span class="item-field-label-vlong2"><i class="fa-solid fa-dice-d10"></i><a class="roll-skill">{{task.name}}</a></span>
<span class="item-field-label-long">{{task.system.skill}}</span>
<span class="item-field-label-short">{{task.system.nbrolls}}</span>
<span class="item-field-label-short">{{task.system.cumulated}}</span>
<span class="item-field-label-vlong2"><i class="fa-solid fa-dice-d10"></i><a class="roll-extended-test">{{test.name}}</a></span>
<span class="item-field-label-long">{{test.system.skill}}</span>
<span class="item-field-label-short">{{test.system.nbrolls}}</span>
<span class="item-field-label-short">{{test.system.cumulated}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">

View File

@@ -20,7 +20,7 @@
</select>
</div>
{{/if}}
{{#if skill}}
<div class="flexrow">
<span class="roll-dialog-label">Skill : </span>

View File

@@ -41,16 +41,8 @@
<li>Target Number: {{percentValue}}% </li>
<li>Result: {{diceResult}} </li>
<li class="flexrow gm-actions">
<span>Degrees: {{degrees}}</span>
<a class="chat-roll-opposed">
<span data-tooltip="Opposed" class="roll-opposed-icon fa-stack fa-1x">
<i class="fa-thin fa-square fa-stack-1x"></i>
<i class="fa-solid fa-arrow-right-arrow-left fa-stack-1x "></i>
</span>
</a>
</li>
<li>Degrees: {{degrees}} </li>
{{#if taskId}}
<li>Task : {{taskName}}</li>
<li>Nb rolls : {{taskNbrolls}} </li>
@@ -89,9 +81,23 @@
<li>Penetration : {{mul weapon.system.penetrationmin damageMultiplier}} - {{mul weapon.system.penetrationmax damageMultiplier}}</li>
{{/if}}
{{#if (and (not isSuccess) rerolls)}}
<button class="chat-card-button chat-reroll">Reroll !</button>
{{/if}}
<li class="flex-group-left">
<a class="chat-roll-opposed gm-actions">
<span data-tooltip="Opposed" class="roll-opposed-icon fa-stack fa-1x">
<i class="fa-thin fa-square fa-stack-1x"></i>
<i class="fa-solid fa-arrow-right-arrow-left fa-stack-1x "></i>
</span>
</a>
<span>&nbsp;</span>
{{#if (and (not isSuccess) rerolls)}}
<a class="chat-reroll">
<span data-tooltip="Reroll" class="roll-opposed-icon fa-stack fa-1x">
<i class="fa-thin fa-square fa-stack-1x"></i>
<i class="fa-solid fa-arrows-rotate fa-stack-1x"></i>
</span>
</a>
{{/if}}
</li>
</ul>
</div>