Update 1ESheet.html

- fixed carrried coin weight
- updated title text
- added modifier query to saves
This commit is contained in:
Vince
2019-02-03 23:39:45 -08:00
parent 0ac4cb6bdf
commit 23c67512f6
+18 -18
View File
@@ -18,13 +18,13 @@
</tr>
<tr>
<td class="sheet-right">Alignment:</td>
<td colspan="3"><input type="text" class="sheet-input-large" name="attr_Alignment" title="@{character_Alignment}" placeholder="Description" /></td>
<td colspan="3"><input type="text" class="sheet-input-large" name="attr_Alignment" title="@{Alignment}" placeholder="Description" /></td>
</tr>
<tr>
<td class="sheet-right">Class 1:</td>
<td><input type="text" class="sheet-input-large" name="attr_Class" title="@{character_Class}" placeholder="Class" /></td>
<td><input type="text" class="sheet-input-large" name="attr_Class" title="@{Class}" placeholder="Class" /></td>
<td class="sheet-right">Lvl:</td>
<td><input type="text" class="sheet-input-small" name="attr_Level" title="@{character_Level}" value="0" /></td>
<td><input type="text" class="sheet-input-small" name="attr_Level" title="@{Level}" value="0" /></td>
</tr>
<tr>
<td class="sheet-right">Class 2:</td>
@@ -252,11 +252,11 @@
<input type="checkbox" class="sheet-sect-show" title="@{saves-info-show}" name="attr_saves-info-show" value="1" style="opacity: 0;width: 90px;height: 20px; position: relative; top: 0; left: 0;margin: 0 -20px 0 -60px; cursor: pointer; z-index: 1" checked="checked" /><span></span>
<table class="sheet-sect sheet-center">
<tr>
<td colspan="2">Paralysis, Poison, and Death<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Paralysis, Poison, Death=[[1d20cs>@{SaveParalysisPoisonDeath}cf<@{SaveParalysisPoisonDeath}]]}}" name="roll_SaveParalysisPoisonDeath" title="%{selected|SaveParalysisPoisonDeath}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SaveParalysisPoisonDeath" title="@{SaveParalysisPoisonDeath}" value="0" /></td>
<td colspan="2">Petrification, Polymorph<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Petrification, Polymorph=[[1d20cs>@{SavePetrificationPolymorph}cf<@{SavePetrificationPolymorph}]]}}" name="roll_SavePetrificationPolymorph" title="%{selected|SavePetrificationPolymorph}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SavePetrificationPolymorph" title="@{SavePetrificationPolymorph}" value="0" /></td>
<td colspan="2">Rods, Staves, and Wands<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Rods, Staves, Wands=[[1d20cs>@{SaveRodsStavesWands}cf<@{SaveRodsStavesWands}]]}}" name="roll_SaveRodsStavesWands" title="%{selected|SaveRodsStavesWands}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SaveRodsStavesWands" title="@{SaveRodsStavesWands}" value="0" /></td>
<td colspan="2">Breath Weapon<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Breath Weapons=[[1d20cs>@{SaveBreathWeapons}cf<@{SaveBreathWeapons}]]}}" name="roll_SaveBreathWeapons" title="%{selected|SaveBreathWeapons}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SaveBreathWeapons" title="@{SaveBreathWeapons}" value="0" /></td>
<td colspan="2">Spells<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Spells=[[1d20cs>@{SaveSpells}cf<@{SaveSpells}]]}}" name="roll_SaveSpells" title="%{selected|SaveSpells}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SaveSpells" title="@{SaveSpells}" value="0" /></td>
<td colspan="2">Paralysis, Poison, and Death<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Paralysis, Poison, Death=[[?{Mod?|0}+1d20cs>@{SaveParalysisPoisonDeath}cf<@{SaveParalysisPoisonDeath}]]}} {{Mod Applied=?{Mod?|0}}}" name="roll_SaveParalysisPoisonDeath" title="%{selected|SaveParalysisPoisonDeath}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SaveParalysisPoisonDeath" title="@{SaveParalysisPoisonDeath}" value="0" /></td>
<td colspan="2">Petrification, Polymorph<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Petrification, Polymorph=[[?{Mod?|0}1d20cs>@{SavePetrificationPolymorph}cf<@{SavePetrificationPolymorph}]]}} {{Mod Applied=?{Mod?|0}}}" name="roll_SavePetrificationPolymorph" title="%{selected|SavePetrificationPolymorph}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SavePetrificationPolymorph" title="@{SavePetrificationPolymorph}" value="0" /></td>
<td colspan="2">Rods, Staves, and Wands<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Rods, Staves, Wands=[[?{Mod?|0}1d20cs>@{SaveRodsStavesWands}cf<@{SaveRodsStavesWands}]]}} {{Mod Applied=?{Mod?|0}}}" name="roll_SaveRodsStavesWands" title="%{selected|SaveRodsStavesWands}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SaveRodsStavesWands" title="@{SaveRodsStavesWands}" value="0" /></td>
<td colspan="2">Breath Weapon<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Breath Weapons=[[?{Mod?|0}1d20cs>@{SaveBreathWeapons}cf<@{SaveBreathWeapons}]]}} {{Mod Applied=?{Mod?|0}}}" name="roll_SaveBreathWeapons" title="%{selected|SaveBreathWeapons}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SaveBreathWeapons" title="@{SaveBreathWeapons}" value="0" /></td>
<td colspan="2">Spells<br><button class="sheet-button" type="roll" value="/me must make a saving throw!&#x00A;&{template:general} {{name=@{character_name}}} {{subtag=Saving Throw}} {{Spells=[[?{Mod?|0}1d20cs>@{SaveSpells}cf<@{SaveSpells}]]}} {{Mod Applied=?{Mod?|0}}}" name="roll_SaveSpells" title="%{selected|SaveSpells}"> Roll</button><input type="text" class="sheet-input-small" name="attr_SaveSpells" title="@{SaveSpells}" value="0" /></td>
</tr>
</table>
<hr>
@@ -284,8 +284,8 @@
<td><textarea name="attr_macro-text" title="@{repeating_weapon_$X_macro-text}" class="sheet-macro-text" style="width:96%; margin:5px 0 0 0;">&{template:attacks} {{name=@{character_name}}} {{subtag=@{WeaponName}}} {{attack1=[[1d20 + @{ToHitBonus}[BON] + @{MagicBonus}[MAG] + ?{To Hit Modifier?|0}[MOD]) ]]}} {{damage1vsSM=[[@{DamageSmallMedium} + @{AttackDmgBonus}[BON] + @{MagicBonus}[MAG] + ?{Damage Modifier?|0}[MOD] ]]}} {{damage1vsL=[[@{DamageLarge} + @{AttackDmgBonus}[BON] + @{MagicBonus}[MAG] + ?{Damage Modifier?|0}[MOD] ]]}} {{WeaponNotes=@{WeaponNotes}}} @{whisper_to-hit}</textarea><br>Macro-Text</td>
</tr>
<tr>
<td><input type="text" class="sheet-input-small" name="attr_DamageSmallMedium" title="@{repeating_weapon_$X_DamageSmallMedium}" value="0" /><br>DMG vs S/M</td>
<td><input type="text" class="sheet-input-small" name="attr_DamageLarge" title="@{repeating_weapon_$X_DamageLarge}" value="0" /><br>DMG vs L</td>
<td><input type="text" class="sheet-input-small" name="attr_DamageSmallMedium" title="@{repeating_weapon_$X_DamageSmallMedium} e.g. '1d4'" value="0" /><br>DMG vs S/M</td>
<td><input type="text" class="sheet-input-small" name="attr_DamageLarge" title="@{repeating_weapon_$X_DamageLarge} e.g. '1d4+1'" value="0" /><br>DMG vs L</td>
<td><input type="text" class="sheet-input-small" name="attr_RateOfFire" title="@{repeating_weapon_$X_RateOfFire}" value="0" /><br>Rate of Fire</td>
<td><input type="text" class="sheet-input-medium" name="attr_Range" title="@{repeating_weapon_$X_Range}" value="0" /><br>Range S/M/L</td>
<td><input type="text" class="sheet-input-small" name="attr_quantity" title="@{repeating_weapon_$X_quantity}" min="0" value="0" /><br>Qty</td>
@@ -490,13 +490,13 @@
<table class="sheet-sect sheet-center">
<tr>
<td><b class="sheet-text-large">Carrying Capacity:</b></td>
<td><input type="text" class="sheet-input-medium" name="attr_normal_load" title="@{normal_load} Enter the maximum amount for a normal load(default values based off of STR 8-11)." value="350" /><br>Normal&nbsp;
<td><input type="text" class="sheet-input-medium" name="attr_normal_load" title="@{normal_load} Enter the maximum amount for a 'Normal load'(default 350gp based on STR 8-11. Add STR bonus if applicable.)" value="350" /><br>Normal&nbsp;
<input type="checkbox" name="attr_current_encumbrance" value="0" checked="checked" readonly="readonly" /></td>
<td><input type="text" class="sheet-input-medium" name="attr_heavy_load" title="@{heavy_load} Enter the maximum amount for a heavy load(default values based off of STR 8-11)." value="700" /><br>Heavy&nbsp;
<td><input type="text" class="sheet-input-medium" name="attr_heavy_load" title="@{heavy_load} Enter the maximum amount for a 'Heavy load'(default 700gp based on STR 8-11. Add STR bonus if applicable.)" value="700" /><br>Heavy&nbsp;
<input type="checkbox" name="attr_current_encumbrance" value="1" readonly="readonly" /></td>
<td><input type="text" class="sheet-input-medium" name="attr_very_heavy_load" title="@{very_heavy_load} Enter the maximum amount for a very heavy load(default values based off of STR 8-11)." value="1050" /><br>Very Heavy&nbsp;
<td><input type="text" class="sheet-input-medium" name="attr_very_heavy_load" title="@{very_heavy_load} Enter the maximum amount for a 'Very heavy load'(default 1050gp based on STR 8-11. Add STR bonus if applicable.)" value="1050" /><br>Very Heavy&nbsp;
<input type="checkbox" name="attr_current_encumbrance" value="2" readonly="readonly" /></td>
<td><input type="text" class="sheet-input-medium" name="attr_max_load" title="@{max_load} Minimum amount for a max/encumbered load(default values based off of STR 8-11)." value="(@{very_heavy_load}+1)" disabled /><b class="sheet-text-large">+</b><br>Max&nbsp;
<td><input type="text" class="sheet-input-medium" name="attr_max_load" title="@{max_load} Minimum amount for a max/encumbered load(defaults to 'Very heavy load' + 1)." value="(@{very_heavy_load}+1)" disabled /><b class="sheet-text-large">+</b><br>Max&nbsp;
<input type="checkbox" name="attr_current_encumbrance" value="3" readonly="readonly" /></td>
</tr>
</table>
@@ -517,7 +517,7 @@
</tr>
<tr>
<td class="sheet-right">Coins:</td>
<td><input type="text" style="width:100%;" name="attr_total_coin_weight" title="@{total_coin_weight}" value="0" readonly="readonly" /></td>
<td><input type="text" style="width:100%;" name="attr_total_coin_weight" title="@{total_coin_weight} 10 coins=1lbs" value="0" readonly="readonly" /></td>
<td class="sheet-center"><b>&nbsp;-&nbsp;-&nbsp;-&nbsp;</b></td>
</tr>
<tr>
@@ -711,12 +711,12 @@
<div class="sheet-table sheet-text-small">
<div class="sheet-table-row">
<span class="sheet-data sheet-center">Original Author: Adam Ness | Contributions by: Vince, &amp; Roll20 Community. | sheet ver. <input name="attr_sheet_version" type="text" value="0" class="sheet-version" readonly="">
&nbsp;<i>9.08.18</i>&nbsp;
&nbsp;<i>2.03.19</i>&nbsp;
Recalc: <input name="attr_recalc1" type="checkbox" title="RECALC" style="width: 1.25em;">
</span>
</div>
<div class="sheet-table-row">
<span class="sheet-data sheet-center">Questions/feedback? Please use the Character Sheets forum:<input type="text" style="border:none; line-height:12px; width:256px;" value="https://app.roll20.net/forum/category/277980" /></span>
<span class="sheet-data sheet-center">Questions/feedback? Please use the Character Sheets forum:<input type="text" style="border:none; line-height:12px; width:256px;" value="https://app.roll20.net/forum/category/277980" /></span>
</div>
</div>
<div class="sheet-options sheet-text-small">
@@ -1484,7 +1484,7 @@
on('change:pp change:gp change:ep change:sp change:cp change:armor_weight change:armor_cost', function(){
getAttrs(['pp','gp','ep','sp','cp','armor_weight','armor_cost'], function(values){
setAttrs({
total_coin_weight: (parseFloat(values.pp) + parseFloat(values.gp) + parseFloat(values.ep) + parseFloat(values.sp) + parseFloat(values.cp)),
total_coin_weight: Math.round(((parseFloat(values.pp) + parseFloat(values.gp) + parseFloat(values.ep) + parseFloat(values.sp) + parseFloat(values.cp)))/10),
total_armor_weight: (parseFloat(values.armor_weight)),
total_armor_cost: (parseFloat(values["armor_cost"],10)).toFixed(2)
});