forked from GitHub-Mirrors/foundry-sw5e
Flesh out New Dice structure - Not complete
add structure for Hull, Shield, and Power Dice to allow for recharge, refitting, and regeneration. Not complete.
This commit is contained in:
parent
0607152f51
commit
cacc43740e
8 changed files with 546 additions and 88 deletions
38
templates/apps/recharge-rest.html
Normal file
38
templates/apps/recharge-rest.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<form id="recharge-rest-hd" class="dialog-content" onsubmit="event.preventDefault();">
|
||||
<p>{{ localize "SW5E.RechargeRestHint" }}</p>
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.RechargeRestSelect" }}</label>
|
||||
<div class="form-fields">
|
||||
<select name="hd">
|
||||
{{#select denomination}}
|
||||
{{#each availableHD as |num denom|}}
|
||||
<option value="{{denom}}">{{denom}} ({{num}} {{ localize "SW5E.available" }})</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<button id="roll-hulld" {{#unless canRoll}}disabled{{/unless}}>
|
||||
<i class="fas fa-dice-d20"></i> {{ localize "Roll" }}
|
||||
</button>
|
||||
</div>
|
||||
{{#unless canRoll}}
|
||||
<p class="notes">{{ localize "SW5E.RechargeRestNoHullD" }}</p>
|
||||
{{/unless}}
|
||||
</div>
|
||||
|
||||
{{#if promptNewDay}}
|
||||
<div class="form-group">
|
||||
<label>Is New Day?</label>
|
||||
<input type="checkbox" name="newDay" {{checked newDay}}/>
|
||||
<p class="hint">Recover limited use abilities which recharge "per day"?</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="dialog-buttons">
|
||||
{{#each buttons as |button id|}}
|
||||
<button class="dialog-button" data-button="{{id}}">
|
||||
{{{button.icon}}}
|
||||
{{{button.label}}}
|
||||
</button>
|
||||
{{/each}}
|
||||
</div>
|
||||
</form>
|
20
templates/apps/refitting-rest.html
Normal file
20
templates/apps/refitting-rest.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<form id="refitting-rest" class="dialog-content" onsubmit="event.preventDefault();">
|
||||
<p>Take a refitting rest? On a refitting rest you will recover hull points, your hull dice, and shields.</p>
|
||||
|
||||
{{#if promptNewDay}}
|
||||
<div class="form-group">
|
||||
<label>Is New Day?</label>
|
||||
<input type="checkbox" name="newDay" {{checked newDay}}/>
|
||||
<p class="hint">Recover limited use abilities which recharge "per day"?</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="dialog-buttons">
|
||||
{{#each buttons as |button id|}}
|
||||
<button class="dialog-button" data-button="{{id}}">
|
||||
{{{button.icon}}}
|
||||
{{{button.label}}}
|
||||
</button>
|
||||
{{/each}}
|
||||
</div>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue