A little hacky coin calculation but solves the need to pick the type of coin twice

This commit is contained in:
Peter Bjerg Mogensen
2020-10-16 09:05:23 +02:00
parent 20fabc0821
commit 3f2c1cc143
+3 -1
View File
@@ -17,6 +17,8 @@
<li>Optimized old spell sheet workers to only listen on relevant fields changing instead of all fields changing</li>
<li>Optimized Gear Carried and Gear Stored sheet workers to only listen on relevant fields changing instead of all fields changing</li>
<li>Changed Rogue standard skills to use sheet workers instead of auto-calc fields to reduce lag in character sheet. Please change any value to make it update</li>
<li>Reorder the 2Espell rolltemplate fields to be aligned with the PHB.</li>
<li>Made calculate currency only ask for type of coins once</li>
</ul>
<p style="font-size:10pt;font-style:normal;margin-bottom:9px;">
To view the full change log and sheet documentation, please visit the wiki page!
@@ -8781,7 +8783,7 @@
<h4><b>EP:</b></h4><input type="text" name="attr_electrum" title="@{electrum}" value="0" class="sheet-short">&nbsp;
<h4><b>SP:</b></h4><input type="text" name="attr_silver" title="@{silver}" value="0" class="sheet-short">&nbsp;
<h4><b>CP:</b></h4><input type="text" name="attr_copper" title="@{copper}" value="0" class="sheet-short">&nbsp;
<button type="roll" name="roll_add-currency1" title="%{add-currency1}" value="/w @{character_name} Calculates [[?{How many coins are you moving?|0}]] ?{Which type of coins?|Copper,Copper|Silver,Silver|Electrum,Electrum|Gold,Gold|Platinum,Platinum} to your previous total of [[?{Pull from which value?|Copper,@{copper}|Silver,@{silver}|Electrum,@{electrum}|Gold,@{gold}|Platinum,@{platinum}}]] ?{Which type of coins?|Copper,Copper|Silver,Silver|Electrum,Electrum|Gold,Gold|Platinum,Platinum} bringing your total to [[?{How many coins are you moving?|0}+?{Pull from which value?|Copper,@{copper}|Silver,@{silver}|Electrum,@{electrum}|Gold,@{gold}|Platinum,@{platinum}}]] ?{Which type of coins?|Copper,Copper|Silver,Silver|Electrum,Electrum|Gold,Gold|Platinum,Platinum}.">Calculator</button>
<button type="roll" name="roll_add-currency1" title="%{add-currency1}" value="/w @{character_name} Calculates [[ [[?{How many coins are you moving??|0} + [[ [[ [[?{Which type of coins?|Copper,@{copper}]] ]] Copper|Silver,@{silver}]] ]] Silver|Electrum,@{electrum}]] ]] Electrum|Gold,@{gold}]] ]] Gold|Platinum,@{platinum}]] ]] Platinum}]]-?{Which type of coins?} to your previous total of [[ [[?{Which type of coins?} bringing your total to [[?{How many coins are you moving??}+[[?{Which type of coins?}.">Calculator</button>
<br>
<br>
<h4><b>Total Currency Weight:</b></h4><input type="text" name="attr_curweight" title="@{curweight}" value="(((@{copper})+(@{silver})+(@{electrum})+(@{gold})+(@{platinum}))/50)*@{click-to-add-weight1}" class="sheet-short" disabled>&nbsp;&nbsp;<input type="checkbox" name="attr_click-to-add-weight1" title="@{click-to-add-weight1}" value="1"/><span></span><br>