Finished up for version 0.0.6
This commit is contained in:
47
templates/dice/ritual-roll.html
Normal file
47
templates/dice/ritual-roll.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<div class="kopparhavet roll-item">
|
||||
<div class="border">
|
||||
<h3>{{localize name}}</h3>
|
||||
|
||||
{{#if closed}}
|
||||
<div style="text-align: center; margin-bottom: 0.5rem;">
|
||||
{{localize "ROLL.CLOSED"}}: {{closed}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if opened}}
|
||||
<div style="text-align: center; margin-bottom: 0.5rem;">
|
||||
{{localize "ROLL.OPENED"}}: {{opened}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="roll" style="padding-bottom: 10px; border-bottom: 1px solid #782e22; margin-bottom: 5px;">
|
||||
|
||||
{{#each res as |res1 key|}}
|
||||
<div class="dice-roll">
|
||||
<div class="dice-result">
|
||||
{{#if showFormula}}
|
||||
<div class="dice-formula-kh">{{res1.result.formula}}</div>
|
||||
{{/if}}
|
||||
{{#if res1.success}}
|
||||
<div style="border: none; text-align: center; width: 100%; font-weight: bold; color: limegreen;">
|
||||
{{res1.name}}: {{res1.result.total}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if res1.failure}}
|
||||
<div style="border: none; text-align: center; width: 100%; font-weight: bold; color: darkred;">
|
||||
{{res1.name}}: {{res1.result.total}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
</div>
|
||||
<h2 style="border: none; text-align: center; width: 100%; font-weight: bold;">
|
||||
{{#iff result '==' "0"}}{{localize "ROLL.SUBPAR"}}{{/iff}}
|
||||
{{#iff result '==' "1"}}{{localize "ROLL.LOW"}}{{/iff}}
|
||||
{{#iff result '==' "2"}}{{localize "ROLL.LIMITED"}}{{/iff}}
|
||||
{{#iff result '==' "3"}}{{localize "ROLL.GOOD"}}{{/iff}}
|
||||
{{#iff result '==' "4"}}{{localize "ROLL.SUPERIOR"}}{{/iff}}
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
@@ -21,6 +21,11 @@
|
||||
<h2>{{res.total}}</h2>
|
||||
</div>
|
||||
</div>
|
||||
{{#if opposite}}
|
||||
<div class="dice-roll" style="text-align: center; margin-bottom: 0.5rem;">
|
||||
{{localize "ROLL.OPPOSITE"}}: {{opposite}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if success}}
|
||||
<h2 style="border: none; text-align: center; width: 100%; font-weight: bold; color: limegreen;">
|
||||
|
||||
@@ -35,16 +35,107 @@
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div style="grid-column-start: 1; grid-column-end: 3;">
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.skill">
|
||||
{{#select data.roll.skill}}
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{#iff data.roll.value '==' "opposite" }}
|
||||
<div>
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.skill">
|
||||
{{#select data.roll.skill}}
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.oppositeskill">
|
||||
{{#select data.roll.oppositeskill}}
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div> </div>
|
||||
<div>
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.oppositeskilltwo">
|
||||
{{#select data.roll.oppositeskilltwo}}
|
||||
<option value="">{{localize "SKILL.NONE"}}</option>
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{else iff data.roll.value '==' "ritual" }}
|
||||
<div>
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.ritual.skillone">
|
||||
{{#select data.roll.ritual.skillone}}
|
||||
<option value="">{{localize "SKILL.NONE"}}</option>
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.ritual.skilltwo">
|
||||
{{#select data.roll.ritual.skilltwo}}
|
||||
<option value="">{{localize "SKILL.NONE"}}</option>
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.ritual.skillthree">
|
||||
{{#select data.roll.ritual.skillthree}}
|
||||
<option value="">{{localize "SKILL.NONE"}}</option>
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.ritual.skillfour">
|
||||
{{#select data.roll.ritual.skillfour}}
|
||||
<option value="">{{localize "SKILL.NONE"}}</option>
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.ritual.skillfive">
|
||||
{{#select data.roll.ritual.skillfive}}
|
||||
<option value="">{{localize "SKILL.NONE"}}</option>
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{else}}
|
||||
<div style="grid-column-start: 1; grid-column-end: 3;">
|
||||
<label>{{localize "ITEM.SKILL"}}</label>
|
||||
<select class="item-weapon-skill-select" name="data.roll.skill">
|
||||
{{#select data.roll.skill}}
|
||||
{{#each this.khskills as |t|}}
|
||||
<option value="{{t.name}}">{{t.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{/iff}}
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="description">
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<div id="{{id}}" class="roll-dialog">
|
||||
{{#if skillName}}
|
||||
<h1 style="text-align: center;">{{localize skillName}} ({{skillValue}})</h1>
|
||||
{{else}}
|
||||
<h1 style="text-align: center;">{{name}}</h1>
|
||||
{{/if}}
|
||||
<div class="flexrow" style="margin-bottom: 10px;">
|
||||
<label style="margin: auto;">{{localize "ROLL.OPENCLOSE"}}</label>
|
||||
<input type="button" name="openclosed" min="0" value="{{startopen}}" style="min-height: 30px; min-width: 45px;" />
|
||||
|
||||
Reference in New Issue
Block a user