New religions, minor bugfixes for religious bonuses, added shillings (#5123)

This commit is contained in:
Daniel Stack
2019-05-28 07:24:53 -05:00
committed by Cassie Levett
parent 332d4dafae
commit 33894580d2
3 changed files with 82 additions and 24 deletions
+67 -24
View File
@@ -24,10 +24,12 @@
<br/>
<label style='display:inline-block; width:87px;'>Religion</label>
<select name="attr_religion" class="sheet-long" style='display:inline; width:140px;'>
<option value="1">Pagan</option>
<option value="1">British Pagan</option>
<option value="2">Roman Christian</option>
<option value="3">British Christian</option>
<option value="4">Wotanic</option>
<option value="4">Germanic Pagan/Wotanic</option>
<option value="5">Arianic Christian</option>
<option value="6">Pict Heathen</option>
</select>
<br/>
<!-- religious bonus, values > 0 only if right religion selected !-->
@@ -37,6 +39,9 @@
<input type="hidden" name="attr_BR-Ro" disabled="disabled" value="@{BR-Ro-formule}*6" />
<input type="hidden" name="attr_BR-Br-formule" disabled="disabled" value="(floor(@{TCha}/16)*floor(@{TEne}/16)*floor(@{TGen}/16)*floor(@{TMod}/16)*floor(@{TTem}/16)*floor(@{religion}/3)*floor(3/@{religion}))" />
<input type="hidden" name="attr_BR-Wo-formule" disabled="disabled" value="(floor(@{TGen}/16)*floor(@{TPro}/16)*floor(@{TRec}/16)*floor(@{TWor}/16)*floor(@{TInd}/16)*floor(@{religion}/4)*floor(4/@{religion}))" />
<input type="hidden" name="attr_BR-Ar-formule" disabled="disabled" value="(floor(@{TCha}/16)*floor(@{THon}/16)*floor(@{TMer}/16)*floor(@{TJus}/16)*floor(@{TTem}/16)*floor(@{religion}/5)*floor(5/@{religion}))" />
<input type="hidden" name="attr_BR-He-formule" disabled="disabled" value="(floor((20 - @{TFor})/16)*floor(@{THon}/16)*floor((20 - @{TJus})/16)*floor((20 - @{TMod})/16)*floor((20 - @{TPio})/16)*floor(@{religion}/6)*floor(6/@{religion}))" />
<!-- enemy religious bonus, values > 0 only if right religion selected !-->
<input type="hidden" name="attr_EBR-Pa-formule" disabled="disabled" value="(floor((@{ETLus})/16)*floor(@{ETEne}/16)*floor(@{ETGen}/16)*floor(@{ETHon}/16)*floor((@{ETPro})/16)*floor(@{Ereligion}/1)*floor(1/@{Ereligion}))" />
<input type="hidden" name="attr_EBR-Pa" disabled="disabled" value="@{EBR-Pa-formule}*2" />
@@ -44,6 +49,9 @@
<input type="hidden" name="attr_EBR-Ro" disabled="disabled" value="@{EBR-Ro-formule}*6" />
<input type="hidden" name="attr_EBR-Br-formule" disabled="disabled" value="(floor(@{ETCha}/16)*floor(@{ETEne}/16)*floor(@{ETGen}/16)*floor(@{ETMod}/16)*floor(@{ETTem}/16)*floor(@{Ereligion}/3)*floor(3/@{Ereligion}))" />
<input type="hidden" name="attr_EBR-Wo-formule" disabled="disabled" value="(floor(@{ETGen}/16)*floor(@{ETPro}/16)*floor(@{ETRec}/16)*floor(@{ETWor}/16)*floor(@{ETInd}/16)*floor(@{Ereligion}/4)*floor(4/@{Ereligion}))" />
<input type="hidden" name="attr_EBR-Ar-formule" disabled="disabled" value="(floor(@{ETCha}/16)*floor(@{ETHon}/16)*floor(@{ETMer}/16)*floor(@{ETJus}/16)*floor(@{ETTem}/16)*floor(@{Ereligion}/5)*floor(5/@{Ereligion}))" />
<input type="hidden" name="attr_EBR-He-formule" disabled="disabled" value="(floor((20 - @{ETFor})/16)*floor(@{ETHon}/16)*floor((20 - @{ETJus})/16)*floor((20 - @{ETMod})/16)*floor((20 - @{ETPio})/16)*floor(@{Ereligion}/6)*floor(6/@{Ereligion}))" />
<!-- Breton1 : HP +3 -->
<input type="hidden" name="attr_BR-Br1" disabled="disabled" value="(@{BR-Br-formule}*3)" />
<!-- Enemy Breton1 : HP +3 -->
@@ -54,14 +62,36 @@
<!-- Enemy Breton2 : Damage +2-->
<input type="hidden" name="attr_EBR-Br2" disabled="disabled" value="(@{EBR-Br-formule}*2)" />
<input type="hidden" name="attr_EBR-Sa" disabled="disabled" value="0" />
<!-- Wotanic : Damage +1 -->
<!-- Arianic : HP +2-->
<input type="hidden" name="attr_BR-Ar1" disabled="disabled" value="(@{BR-Ar-formule}*2)" />
<!-- Enemy Arianic : HP +2 -->
<input type="hidden" name="attr_EBR-Ar1" disabled="disabled" value="(@{EBR-Ar-formule}*2)" />
<!-- Arianic2 : Damage +3-->
<input type="hidden" name="attr_BR-Ar2" disabled="disabled" value="(@{BR-Ar-formule}*3)" />
<input type="hidden" name="attr_BR-ASa" disabled="disabled" value="0" />
<!-- Enemy Arianic2 : Damage +3-->
<input type="hidden" name="attr_EBR-Ar2" disabled="disabled" value="(@{EBR-Ar-formule}*2)" />
<input type="hidden" name="attr_EBR-ASa" disabled="disabled" value="0" />
<!-- Wotanic : Damage +1d6 -->
<input type="hidden" name="attr_BR-Wo" disabled="disabled" value="(@{BR-Wo-formule}*1)" />
<!-- Enemy Wotanic : Damage +1 -->
<!-- Enemy Wotanic : Damage +1d6 -->
<input type="hidden" name="attr_EBR-Wo" disabled="disabled" value="(@{EBR-Wo-formule}*1)" />
<!-- Heathen : Movement +2 -->
<input type="hidden" name="attr_BR-He1" disabled="disabled" value="(@{BR-He-formule}*2)" />
<!-- Enemy Heathen : Movement +2 -->
<input type="hidden" name="attr_EBR-He1" disabled="disabled" value="(@{EBR-He-formule}*2)" />
<!-- Heathen2 : Heal +1 -->
<input type="hidden" name="attr_BR-He2" disabled="disabled" value="(@{BR-He-formule}*1)" />
<!-- Enemy Heathen2 : Heal +1 -->
<input type="hidden" name="attr_EBR-He2" disabled="disabled" value="(@{EBR-He-formule}*1)" />
<!--- flat religious damage bonus-->
<input type="hidden" name="attr_BR-FlatDmg" disabled="disabled" value="@{BR-Br2}+@{BR-Ar2}" />
<input type="hidden" name="attr_EBR-FlatDmg" disabled="disabled" value="(@{BR-EBr2}+@{BR-EAr2})" />
<!-- flag for religious bonus : 1 if yes, 0 otherwise -->
<input type="hidden" name="attr_flag-bonus" disabled="disabled" value="@{BR-Pa-formule}+@{BR-Ro-formule}+@{BR-Br-formule}+@{BR-Wo-formule}" />
<input type="hidden" name="attr_flag-bonus" disabled="disabled" value="@{BR-Pa-formule}+@{BR-Ro-formule}+@{BR-Br-formule}+@{BR-Wo-formule}+@{BR-Ar-formule}+@{BR-He-formule}" />
<!-- enemy flag for religious bonus : 1 if yes, 0 otherwise -->
<input type="hidden" name="attr_Eflag-bonus" disabled="disabled" value="@{EBR-Pa-formule}+@{EBR-Ro-formule}+@{EBR-Br-formule}+@{EBR-Wo-formule}" />
<input type="hidden" name="attr_Eflag-bonus" disabled="disabled" value="@{EBR-Pa-formule}+@{EBR-Ro-formule}+@{EBR-Br-formule}+@{EBR-Wo-formule}+@{EBR-Ar-formule}+@{EBR-He-formule}" />
<label style='display:inline-block; width:90px;'>Age</label>
<input style='display:inline;' type="number" name="attr_age" class="sheet-carac" value="21" />
<br/>
@@ -94,7 +124,7 @@
<label style='display:inline'>Current HP</label>
<input style='display:inline; width:30px; font-color:red;' type="text" name="attr_HP-current" value="@{PV}-@{W1}-@{W2}-@{W3}-@{W4}-@{W5}-@{W6}-@{W7}-@{W8}-@{W9}}-@{W10}-@{W11}-@{W12}" disabled="true" />
<label style='display:inline'>/</label>
<input style='display:inline;' type="text" name="attr_PV" class="sheet-carac3" value="(@{CON}+@{SIZ}+@{BR-Ro}+@{BR-Br1})" disabled="true" />
<input style='display:inline;' type="text" name="attr_PV" class="sheet-carac3" value="(@{CON}+@{SIZ}+@{BR-Ro}+@{BR-Br1}+@{BR-Ar1})" disabled="true" />
<br/>
</p>
<label style='display:inline'>Unconscious</label>
@@ -201,10 +231,10 @@
<button style='display:inline;' type='roll' name='roll_TestAPP' value="/em @{MYNAME} rolls APPEARENCE with a modifier of ?{modif|0} : \n/roll 1d20+[[{{@{APP}+?{modif|0},0}>21}*(@{APP}+?{modif|0}-20) + 0]]<[[@{APP}+?{modif|0}]] \ APPEARENCE roll @{APP} modif. ?{modif|0}"></button>
<br />
<h3 style="margin-bottom: 10px;">DERIVED STATISTICS</h3>
<input type="hidden" name="attr_DEG-dice" value="[[(round(((@{STR} + @{SIZ} + @{MDam}) / 6) + @{BR-Br2} + @{BR-Wo}))]]" disabled="true" />
<input type="hidden" name="attr_DEG-dice" value="[[(round(((@{STR} + @{SIZ} + @{MDam}) / 6) + @{BR-Wo}))]]" disabled="true" />
<label style='display:inline-block; width:120px;'>Damage</label>
<input type="text" name="attr_DAM" class="sheet-carac3" value="(round((@{STR}+@{SIZ}) / 6)+@{BR-Br2}+@{BR-Wo})" disabled="true" />
<button style='margin-right:10px;' type='roll' name='roll_TestAttack2' value='/em @{MYNAME} hits the enemy! \n/r @{DEG-dice}d6[basic damage] \n damage points '></button>
<input type="text" name="attr_DAM" class="sheet-carac3" value="(round((@{STR}+@{SIZ}) / 6)+@{BR-Wo})" disabled="true" />
<button style='margin-right:10px;' type='roll' name='roll_TestAttack2' value='/em @{MYNAME} hits the enemy! \n/r @{DEG-dice}d6 [basic damage] \n damage points '></button>
<select name="attr_MDam" style='display:inline; width:120px;'>
<option value="0" selected: "selected">Normal</option>
<option value="6">Great Weapon</option>
@@ -225,11 +255,14 @@
<label style='display:inline;'>Critical</label>
<button style='display:inline;' type='roll' name='roll_TestAttackBow' value='/em @{MYNAME} hits perfectly ! \n/roll 1d6 + @{BDAM} + 1d6 + @{BDAM} [critical hit] \n damage points'></button>
<br />
<label style='display:inline-block; width:120px;'>Rel Dmg Bonus</label>
<input style='display:inline;' type="text" name="attr_RDAM" class="sheet-carac3" value="@{BR-Ar2}+@{BR-Br2}" disabled="true" />
<br />
<label style='display:inline-block; width:120px;'>Mvt Rate</label>
<input style='display:inline;' type="text" name="attr_MOV" class="sheet-carac3" value="round((@{STR}+@{DEX})/10)" disabled="true" />
<input style='display:inline;' type="text" name="attr_MOV" class="sheet-carac3" value="round((@{STR}+@{DEX})/10) + @{BR-He1}" disabled="true" />
<br />
<label style='display:inline-block; width:120px;'>Healing Rate</label>
<input style='display:inline;' type="text" name="attr_HR" class="sheet-carac3" value="round((@{CON}+@{STR})/10)+@{BR-Pa}" disabled="true" />
<input style='display:inline;' type="text" name="attr_HR" class="sheet-carac3" value="round((@{CON}+@{STR})/10)+@{BR-Pa}+@{BR-He2}" disabled="true" />
<br />
</p>
</div>
@@ -920,8 +953,12 @@
<h2 style="margin: 10px;">Wealth</h2>
<div>
Libra (&pound;):
<input style='display:inline;' type="number" name="attr_money_libra" value="0" /> Denari (d):
<input style='display:inline;' type="number" name="attr_money_denari" value="0" /> Money on Hand:
<input style='display:inline;' type="number" name="attr_money_libra" value="0" /> Shilling (s):
<input style='display:inline;' type="number" name="attr_money_shilling" value="0" /> Denari (d):
<input style='display:inline;' type="number" name="attr_money_denari" value="0" />
</div>
<div>
Money on Hand:
<input style='display:inline;text-align:left;width:78px' type="text" name="attr_money_in_hand" />
</div>
<br/>
@@ -3706,11 +3743,13 @@
<br/>
<label style='display:inline-block; width:87px;'>Religion</label>
<select name="attr_Ereligion" class="sheet-long" style='display:inline; width:140px;'>
<option value="1">Pagan</option>
<option value="1">British Pagan</option>
<option value="2">Roman Christian</option>
<option value="3">British Christian</option>
<option value="4">Wotanic</option>
<option value="5" selected: "selected">None</option>
<option value="4">Germanic Pagan/Wotanic</option>
<option value="5">Arianic Christian</option>
<option value="6">Pict Heathen</option>
<option value="7" selected: "selected">None</option>
</select>
<br/>
<label style='display:inline-block; width:90px;'>Age</label>
@@ -3743,7 +3782,7 @@
<label style='display:inline'>Current HP</label>
<input style='display:inline; width:40px; font-color:red;' type="text" name="attr_EHP-current" value="@{EPV}-@{EW1}-@{EW2}-@{EW3}-@{EW4}-@{EW5}-@{EW6}-@{EW7}-@{EW8}-@{EW9}}-@{EW10}-@{EW11}-@{EW12}" disabled="true" />
<label style='display:inline'>/</label>
<input style='display:inline; width:40px;' type="text" name="attr_EPV" class="sheet-carac3" value="(@{ECON}+@{ESIZ}+@{EBR-Ro}+@{EBR-Br1})" disabled="true" />
<input style='display:inline; width:40px;' type="text" name="attr_EPV" class="sheet-carac3" value="(@{ECON}+@{ESIZ}+@{EBR-Ro}+@{EBR-Br1}+@{BR-Ar1})" disabled="true" />
<br/>
</p>
<label style='display:inline'>Unconscious</label>
@@ -3855,9 +3894,9 @@
<button style='display:inline;' type='roll' name='roll_TestEAPP' value="/em @{EMYNAME} rolls APPEARENCE with a modifier of ?{modif|0} : \n/roll 1d20+[[{{@{EAPP}+?{modif|0},0}>21}*(@{EAPP}+?{modif|0}-20) + 0]]<[[@{EAPP}+?{modif|0}]] \ APPEARENCE roll @{EAPP} modif. ?{modif|0}"></button>
<br />
<h3 style="margin-bottom: 10px;">DERIVED STATISTICS</h3>
<input type="hidden" name="attr_EDEG-dice" value="[[(round(((@{ESTR} + @{ESIZ} + @{EMDam} + @{prefix}@{Enemy}@{dama}}) / 6) + @{EBR-Br2} + @{EBR-Wo}))]]" disabled="true" />
<input type="hidden" name="attr_EDEG-dice" value="[[(round(((@{ESTR} + @{ESIZ} + @{EMDam} + @{prefix}@{Enemy}@{dama}}) / 6) + @{EBR-Wo}))]]" disabled="true" />
<label style='display:inline-block; width:120px;'>Damage</label>
<input type="text" name="attr_EDAM" class="sheet-carac3" value="(round((@{ESTR}+@{ESIZ} + @{prefix}@{Enemy}@{dama}}) / 6) + @{EBR-Br2}+@{EBR-Wo})" disabled="true" />
<input type="text" name="attr_EDAM" class="sheet-carac3" value="(round((@{ESTR}+@{ESIZ} + @{prefix}@{Enemy}@{dama}}) / 6) + @{EBR-Wo})" disabled="true" />
<button style='margin-right:10px;' type='roll' name='roll_ETestAttack2' value='/em @{EMYNAME} hits the enemy! \n/r @{EDEG-dice}d6[basic damage] \n damage points '></button>
<select name="attr_EMDam" style='display:inline; width:120px;'>
<option value="0" selected: "selected">Normal</option>
@@ -3880,10 +3919,10 @@
<button style='display:inline;' type='roll' name='roll_ETestAttackBow' value='/em @{EMYNAME} hits perfectly ! \n/roll 1d6 + @{EBDAM} + 1d6 + @{EBDAM} [critical hit] \n damage points'></button>
<br />
<label style='display:inline-block; width:120px;'>Mvt Rate</label>
<input style='display:inline;' type="text" name="attr_EMOV" class="sheet-carac3" value="round((@{ESTR}+@{EDEX})/10) + @{prefix}@{Enemy}@{move}}" disabled="true" />
<input style='display:inline;' type="text" name="attr_EMOV" class="sheet-carac3" value="round((@{ESTR}+@{EDEX})/10) + @{EBR-He1} + @{prefix}@{Enemy}@{move}}" disabled="true" />
<br />
<label style='display:inline-block; width:120px;'>Healing Rate</label>
<input style='display:inline;' type="text" name="attr_EHR" class="sheet-carac3" value="round((@{ECON}+@{ESTR})/10)+@{EBR-Pa} + @{prefix}@{Enemy}@{heal}}" disabled="true" />
<input style='display:inline;' type="text" name="attr_EHR" class="sheet-carac3" value="round((@{ECON}+@{ESTR})/10)+@{EBR-Pa} + @{EBR-He2} + @{prefix}@{Enemy}@{heal}}" disabled="true" />
<br />
</p>
</div>
@@ -4663,8 +4702,12 @@
<h2 style="margin: 10px;">Wealth</h2>
<div>
Libra (&pound;):
<input style='display:inline;' type="number" name="attr_Emoney_libra" value="0" /> Denari (d):
<input style='display:inline;' type="number" name="attr_Emoney_denari" value="0" /> Money on Hand:
<input style='display:inline;' type="number" name="attr_Emoney_libra" value="0" /> Shilling (s):
<input style='display:inline;' type="number" name="attr_Emoney_shilling" value="0" /> Denari (d):
<input style='display:inline;' type="number" name="attr_Emoney_denari" value="0" />
</div>
<div>
Money on Hand:
<input style='display:inline;text-align:left;width:78px' type="text" name="attr_Emoney_in_hand" />
</div>
<br/>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 611 KiB

+15
View File
@@ -15,3 +15,18 @@ Religious bonus are actives, except for wotanic religion.
Have fun !
## May 2019 Update
### author - @dstack1776
Getting ready for a Pendragon campaign, I made a few adjustments to this sheet. Specifics:
- Options for Pict Heathen and Arian Christians added (both in religion dropdown and possible trait bonuses)
- Previous versions of the sheet made part of the British Christian religious bonus include +2d6 bonus to damage. That was an error - they should get a straight +2 to damage (like the Arian Christian bonus includes +3 to damage). The Wotanic/German Pagan Religious Knight __does__ get +1d6 to damage (as indicated in the _Book of Knights and Ladies_.
- I renamed the religions slightly to match the _Book of Knights and Ladies_.
- Getting the +2 or +3 religious damage bonus for British or Arian Christian Knights added to damage rolls added a ton of intermediate output so I did not include them in damage dice rolls. I instead added a box indicating "Rel Dmg Bonus" which should be mentally added to any damage roll. (This is clearly an area for enhancement - if your html skills are greater than mine, feel free to - I'm more an html dabbler with a background in software development).
- Under wealth, I added a box for shillings.
- The html code had a lot of references to "enemy" attributes. I maintained consistency with that code but in all honesty I could not find it being used - I'm guessing the intent was for there to be an "enemy" tab.
Potential enhancements:
- Fix religious damage for Arian and British Christian religious bonuses.
- The current sheet expects a fairly wide window - it could probably be made a bit more flexible.