Sync effetcts + initiative

This commit is contained in:
2022-01-28 11:41:19 +01:00
parent 68d7344e90
commit c9261a713a
12 changed files with 34 additions and 102 deletions

View File

@@ -47,10 +47,6 @@
{{/if}}
{{/if}}
{{#if linkedRollId}}
<li><button class="chat-card-button apply-defense-roll" data-roll-score="{{finalScore}}" data-roll-id="{{@root.rollId}}" data-actor-id="{{actorId}}" data-defender-id="{{defenseAttackerId}}">Use this Roll as defense</button></li>
{{/if}}
</ul>
</div>

View File

@@ -1,6 +1,17 @@
<ul>
{{#each effectsList as |effect idx|}}
{{#if (eq effect.effect.data.stataffected "all")}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
{{#if effect.effect}}
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{/if}}
{{#if (eq @root.statKey effect.effect.data.stataffected)}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>

View File

@@ -23,9 +23,9 @@
{{#if specList}}
<div class="flexrow">
<span class="roll-dialog-label" >Specialisation : </span>
<span class="roll-dialog-label" >Spec Name : </span>
<select class="competence-base" id="specList" type="text" name="selectedSpec" value="{{selectedSpec}}" data-dtype="String">
{{#select selectedSpecIndex}}
{{#select selectedSpec}}
<option value="0">None</option>
{{#each specList as |spec idx|}}
<option value="{{spec._id}}">{{spec.name}}</option>

View File

@@ -1,29 +0,0 @@
<form class="skill-roll-dialog">
<header class="roll-dialog-header">
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="grid grid-2col">
<div class="floxrow">
<div class="flexrow">
<span class="roll-dialog-label" >{{stat.label}} : <span id="stat-dice">{{stat.dice}}</span> (+{{stat.mod}})</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label" >{{spec.name}} : {{spec.data.dice}}</span>
</div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-common-dices.html}}
</div>
<div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}}
</div>
</div>
</form>

View File

@@ -1,24 +0,0 @@
<form class="skill-roll-dialog">
<header class="roll-dialog-header">
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="grid grid-2col">
<div class="floxrow">
<div class="flexrow">
<span class="roll-dialog-label">{{stat.label}} : <span id="stat-dice">{{stat.dice}}</span> (+{{stat.mod}})</span>
</div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-common-dices.html}}
</div>
<div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}}
</div>
</div>
</form>

View File

@@ -1,25 +0,0 @@
<form class="skill-roll-dialog">
<header class="roll-dialog-header">
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="grid grid-2col">
<div class="floxrow">
<div class="flexrow">
<span class="roll-dialog-label">{{stat.label}} : <span id="stat-dice">{{stat.dice}}</span> (+{{stat.mod}})</span>
</div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-common-dices.html}}
</div>
<div>
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}}
</div>
</div>
</form>