Files
roll20-character-sheets/Shadowrun6th-German/views/attributeshort.ejs
T
Valanor c50d4f399f Correkt Wilddicemode
Wilddice Reacts noch Correktly to 5 and 1
2021-03-26 12:08:23 +01:00

23 lines
1.8 KiB
Plaintext

<% if (!(typeof hide === "undefined")) { %>
<input class="toggle-hide" name="attr_<%= hide %>" type="checkbox" value="1" checked/>
<% } %>
<div class="flexcontainer togglesection">
<div class="flex--1">
<span class="red" data-i18n="display_<%= name %>"><%= name %></span>
</div>
<div class="flex-center flex--1">
<input class="smallinput first" type="number" name="attr_<%= name %>_modifier" value="0" placeholder="0" />
<input class="smallinput last" type="number" name="attr_display_<%= name %>" value="2" placeholder="2" readonly/>
</div>
<div class="flex-center flex--half pd15--right">
<button class="iconbutton" type="roll" name="roll_<%= name %>" value="@{gm_toggle} &{template:roll}{{mainattribute=^{<%= name %>}}}{{wilddieprop=[[@{wilddieprop}d6]]}}<%- include('dicetemplate.ejs', {pool: "(@{display_" + name +"}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})"}); %>">
</button>
<button class="iconbutton" type="roll" name="roll_<%= name %>2" value="@{gm_toggle} &{template:roll}{{mainattribute=^{<%= name %>}}}{{secondattribute=^{<%= name %>}}}{{wilddieprop=[[@{wilddieprop}d6]]}}<%- include('dicetemplate.ejs', {pool: "(@{display_" + name +"}+@{display_" + name +"}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})"}); %>">
<span class="red" data-i18n="double">x2</span>
</button>
</div>
</div>