Add items

This commit is contained in:
2021-02-17 20:45:52 +01:00
parent 5790525c82
commit f57e5030c5
5 changed files with 61 additions and 18 deletions

View File

@@ -5,14 +5,15 @@
<div class="flexrow">
<div class="flexcol">
{{#if (eq mode 'stat')}}
<h3 class="skill-label" id="flipSubTitle">
Stat Only Flip : {{localize stat.label}} : {{stat.value}} - <img class="cardsuit-img" src="systems/foundryvtt-shadows-over-sol/img/cards/{{stat.cardsuit}}.webp"/>
</h3>
<label class="dialog-label" id="flipSubTitle">Stat Only Flip :</label>
<label class="dialog-label">
{{localize stat.label}} : {{stat.value}} - <img class="cardsuit-img" src="systems/foundryvtt-shadows-over-sol/img/cards/{{stat.cardsuit}}.webp"/>
</label>
<span>
<h3 class="skill-label" id="flipSubTitle">Final Score : <span id='score-base'>0</span> </h3>
<label class="dialog-label" id="flipSubTitle">Final Score : <span id='score-base'>0</span> </h3>
</span>
{{else}}
<h3 class="skill-label" id="flipSubTitle">Select Stat</h3>
<label class="dialog-label" id="flipSubTitle">Select Stat</h3>
<select name="stat" id="statSelect" data-dtype="String">
{{#select statList}}
{{#each statList as |stat key|}}
@@ -21,8 +22,8 @@
{{/select}}
</select>
<span>
<h3 class="skill-label" id="flipSubTitle">Skill Flip : {{skill.name}} ({{skill.data.value}}) </h3>
<h3 class="skill-label" id="flipSubTitle">Final Score : <span id='score-base'>0</span> </h3>
<h3 class="dialog-label" id="flipSubTitle">Skill Flip : {{skill.name}} ({{skill.data.value}}) </h3>
<h3 class="dialog-label" id="flipSubTitle">Final Score : <span id='score-base'>0</span> </h3>
</span>
{{/if}}
</div>
@@ -35,7 +36,7 @@
{{/each}}
{{/select}}
</select>
<h3 class="skill-label" id="flipConsequenceMalus">Consequences Malus : <span id='consequence-malus'>0</span> </h3>
<h3 class="dialog-label" id="flipConsequenceMalus">Consequences Malus : <span id='consequence-malus'>0</span> </h3>
</div>
</div>
<div class="flexcol">
@@ -47,9 +48,24 @@
{{/each}}
{{/select}}
</select>
<h3 class="skill-label" id="flipConsequenceMalus">Consequences Bonus : <span id='consequence-bonus'>0</span> </h3>
<h3 class="dialog-label" id="flipConsequenceBonus">Consequences Bonus : <span id='consequence-bonus'>0</span> </h3>
</div>
</div>
<div class="flexcol">
{{#if (gt wounds.light 0)}}
<span><label class="dialog-label">Apply Light Wound Malus:</label><input type="checkbox" name="wound-light-checkbox" id="wound-light-checkbox"></span>
{{/if}}
{{#if (gt wounds.moderate 0)}}
<span><label class="dialog-label">Apply Moderate Wound Malus:</label><input type="checkbox" name="wound-moderate-checkbox" id="wound-moderate-checkbox"></span>
{{/if}}
{{#if (gt wounds.severe 0)}}
<span><label class="dialog-label">Apply Severe Wound Malus:</label><input type="checkbox" name="wound-severe-checkbox" id="wound-severe-checkbox"></span>
{{/if}}
{{#if (gt wounds.critical 0)}}
<span><label class="dialog-label">Apply Critical Wound Malus:</label><input type="checkbox" name="wound-critical-checkbox" id="wound-critical-checkbox"></span>
{{/if}}
<h3 class="dialog-label" id="flipWoundMalus">Wounds Malus : <span id='wound-malus'>0</span> </h3>
</div>
</div>
</div>
<hr>
@@ -62,9 +78,9 @@
<section class="sheet-body">
<div class="tab" data-group="primary">
<div class="flexrow">
<label for="categorie" class="generic-label">Target Number (TN) : </label>
<label for="categorie" class="dialog-label">Target Number (TN) : </label>
{{#if target}}
<label for="categorie" class="generic-label"> {{target.actor.data.data.scores.defense.value}} </label>
<label for="categorie" class="dialog-label"> {{target.actor.data.data.scores.defense.value}} </label>
{{else}}
<select name="tn" id="tn" data-dtype="number">
{{#select tn}}
@@ -74,7 +90,7 @@
{{/select}}
</select>
{{/if}}
<label for="categorie" class="generic-label"> Flip Modifier (GM bonus/malus)</label>
<label for="categorie" class="dialog-label"> Flip Modifier (GM bonus/malus)</label>
<select name="modifier" id="modifier" data-dtype="number">
{{#select modifier}}
{{#each modifierList as |key|}}
@@ -86,9 +102,9 @@
</div>
<hr>
<div class="flexcol">
<label class="generic-label">Click on deck to flip from deck, or click on the relevant Edge card to flip from it!</label>
<label class="dialog-label">Click on deck to flip from deck, or click on the relevant Edge card to flip from it!</label>
<label class="generic-label flexrow">Discard Edge for Luck (ie force Trump) when clicking :
<label class="dialog-label flexrow">Discard Edge for Luck (ie force Trump) when clicking :
<span class="attribute-value checkbox"><input type="checkbox" name="edge-luck" id="edge-luck"/></span>
</label>
</div>
@@ -97,7 +113,7 @@
<span class="class-view-edge" id="view-edge"></span>
</div>
<div class="flexrow">
<label class="generic-label"></label>
<label class="dialog-label"></label>
</div>
</section>