Add weapon count, as for arrows

This commit is contained in:
James Fleming
2022-01-04 17:03:26 -05:00
parent feeda27294
commit dfc072b931
2 changed files with 32 additions and 30 deletions
+5 -5
View File
@@ -349,10 +349,6 @@
text-transform: capitalize;
}
/* show the selected tab */
.sheet-tabstoggle[value="character"] ~ div.sheet-character,
.sheet-tabstoggle[value="journal"] ~ div.sheet-journal {
display: block;
@@ -448,6 +444,10 @@
background-color: blue;
}
.charsheet .sheet-nowrap {
white-space : nowrap;
}
/* Flex Stuff */
.charsheet .sheet-flex-section {
display: flex;
@@ -463,7 +463,7 @@
align-self: center;
width: 2rem;
}
.charsheet .sheet-flex-buttons-stub {
width: 6.2rem;
}
+27 -25
View File
@@ -13,24 +13,24 @@
<div> <!-- Always break -->
<span class=sheet-first-word>Name</span>
<input type=text style='width: 22em;' name="attr_cname"/>
<span style='white-space:nowrap'>
<span class=sheet-nowrap>
&nbsp;Age <input type=text style='width: 3em;'name="attr_age"/>
</span>
</div>
<span style='white-space:nowrap'>
<span class=sheet-nowrap>
&nbsp;Title/Rank <input type=text style='width: 7em;' name="attr_title"/>
</span>
<span style='white-space:nowrap'>
<span class=sheet-nowrap>
&nbsp;Race <input type=text style='width: 8em;'name="attr_race"/>
</span>
<span style='white-space:nowrap'>
<span class=sheet-nowrap>
&nbsp;Gender <input type=text style='width: 5em;' name="attr_gender"/>
</span>
</div>
</div>
<div class="sheet-stats sheet-block">
<div> <!-- To prevent them from vertically spreading out -->
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
<span class=sheet-stat-label title="Base Strength">ST</span>
<input class=sheet-stat-input-base type=text title="Base Strength" name="attr_ST_max" value="8"/>
<span class=sheet-stat-plus>+</span>
@@ -41,7 +41,7 @@
<button class=sheet-dice-button type="action" title="3d6 Strength Check" name="act_st_check3">3</button>
<button class=sheet-dice-button type="action" title="4d6 Strength Check" name="act_st_check4">4</button>
</div>
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
<span class=sheet-stat-label title="Base Dexterity">DX</span>
<input class=sheet-stat-input-base type=text title="Base Dexterity" name="attr_DX_max" value="8"/>
<span class=sheet-stat-plus>+</span>
@@ -52,7 +52,7 @@
<button class=sheet-dice-button type="action" title="3d6 Dexterity Check" name="act_dx_check3">3</button>
<button class=sheet-dice-button type="action" title="4d6 Strength Check" name="act_dx_check4">4</button>
</div>
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
<span class=sheet-stat-label title="Base IQ">IQ</span>
<input class=sheet-stat-input-base title="Base IQ" type=text name="attr_IQ_max" value="8"/>
<span class=sheet-stat-plus>+</span>
@@ -63,7 +63,7 @@
<button class=sheet-dice-button type="action" title="3d6 IQ Check" name="act_iq_check3">3</button>
<button class=sheet-dice-button type="action" title="4d6 IQ Check" name="act_iq_check4">4</button>
</div>
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
<span class=sheet-stat-label title="Movement Allowance.">MA</span>
<input class=sheet-stat-input-base type=text title="Movement Allowance." name="attr_MA_max" value="10"/>
<span class=sheet-stat-plus>+</span>
@@ -71,12 +71,12 @@
<span class=sheet-stat-equals>=</span>
<span class=sheet-stat-final title="Final Movement Allowance. Base plus Adjustments." name="attr_MA"/>
</div>
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
&nbsp;<span class=sheet-label title="Weight carried and penalty.">Carrying</span>
<span class=sheet-stat-final title="Total weight carried."name="attr_weightcarried"></span>
<span class=sheet-label title="Weight penalty, automatically applied." name="attr_mapenalty"></span>
</div>
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
<span class=sheet-stat-label title="Max Staff Mana.">Mana</span>
<input class=sheet-stat-input-base title="Max Staff Mana." type=text name="attr_mana_max" value="0"/>
<span class=sheet-stat-plus title="How much Mana spent.">-</span>
@@ -91,7 +91,7 @@
<div>
<button type=roll title="Add yourself to Turn Order." value="&{template:initiative} {{character_name=@{character_name}}} {{initiative=[[@{DX}[DEX] &{tracker}]]}}"><b style='font-size: .8em;'>Initiative</b></button>
</div>
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
<span class='sheet-label sheet-first-word' style='width: 5rem' title="Current Strength adjusted by Wounds and Fatigue.">Health </span>
<span class=sheet-stat-final name="attr_stcurrent"/>
<!--
@@ -100,22 +100,22 @@
<button class=sheet-dice-button type="action" title="4d6 Health Check" name="act_health_check4">4</button>
-->
</div>
<div>
<div class=sheet-nowrap>
<span class=sheet-label style='width: 5rem;' title="Damage done to your Health, must be healed.">Wounds </span>
<input type=number class=sheet-stat-input name="attr_Hits" value="0"/>
</div>
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
<span class=sheet-label style='width: 5rem;'title="Temporary damage done to your Health as for spellcasting.">Fatigue </span>
<input type=number class=sheet-stat-input name="attr_Fatigue" value="0"/>
</div>
<div style='white-space:nowrap'>
<div class=sheet-nowrap>
<span class=sheet-label style='width: 8rem' title="Subtract from enemy dex when attacking you.">Minus to Hit </span>
<span class=sheet-stat-final name="attr_minustohit"/>
</div style='white-space:nowrap'>
</div class=sheet-nowrap>
<div>
<span class=sheet-label style='width: 8rem' title="Hits blocked per attack by your armor/shields/abilities.">Hits Blocked </span>
<span class=sheet-stat-final name="attr_totalblock"/>
</div style='white-space:nowrap'>
</div class=sheet-nowrap>
</div>
</div>
<div class="sheet-talents sheet-block">
@@ -148,7 +148,7 @@
<textarea class=sheet-text-area name="attr_description"></textarea>
</div>
</fieldset>
<div sheet-fieldset-header style='white-space:nowrap'>
<div sheet-fieldset-header class=sheet-nowrap>
<span title="IQ you have to spend on Talents or Spells.">IQ Unspent </span>
<span class=sheet-stat-final name="attr_iqunspent"/>
</div>
@@ -157,7 +157,7 @@
<div class="sheet-attack sheet-block">
<div style='display: flex; flex-flow: row wrap; justify-content: space-between; align-items: center;' >
<span class="sheet-label sheet-first-word" title="Roll to attack with selected Weapon or cast Spell at a given to-hit value.">Attack/Cast&nbsp;</span>
<span style='white-space:nowrap'>
<span class=sheet-nowrap>
<button class=sheet-attack-button type="action" name="act_attack-6">-6</button>
<button class=sheet-attack-button type="action" name="act_attack-5">-5</button>
<button class=sheet-attack-button title="Ranged at Prone behind cover" type="action" name="act_attack-4">-4</button>
@@ -182,11 +182,12 @@
</div>
<div class="sheet-weapons sheet-block">
<div class='sheet-fieldset-header sheet-flex-section'>
<span class=sheet-first-word style='width: 12rem;'>Weapon</span>
<span class=sheet-first-word style='width: 15rem;'>Weapon</span>
<span style='width: 6rem;'>Damage</span>
<span style='width: 4rem;' title="Dex adjustment to hit an enemy.">To Hit</span>
<span class=sheet-flex>Notes</span>
<span style='width: 4rem;' title="Weapon weight.">Lbs</span>
<span style='width: 5rem;' title="Current projectile or weapon count.">Count</span>
<span style='width: 4rem;' title="Weapon or projectile weight per item.">Lbs</span>
<span style='width: 2rem;' title="Not carried, won't count as weight.">NC</span>
<span class=sheet-flex-buttons-stub />
</div>
@@ -194,10 +195,11 @@
<div class=sheet-flex-section>
<input type="checkbox" name="attr_selection-flag" class="sheet-select-radio" hidden>
<button title="Select this Weapon for Attack!" class=sheet-select-button title="Describe the weapon." type="action" name="act_select"/>
<input type=text name=attr_weaponname style='width: 10rem;'>
<input type=text name=attr_weaponname style='width: 13rem;'>
<input type=text name=attr_weapondamage style='width: 6rem;'>
<input type=text name=attr_tohit style='width: 4rem;'>
<input type=text name=attr_weaponnotes class=sheet-flex>
<input type=number name=attr_count value="1" style='width: 5rem;'>
<input type=text name=attr_weight style='width: 4rem;'>
<input type="checkbox" name="attr_notcarried" value="1" class=sheet-flex-checkbox>
&nbsp;
@@ -215,7 +217,7 @@
</div>
<div class="sheet-spells sheet-block">
<div class='sheet-fieldset-header sheet-flex-section'>
<span class=sheet-first-word style='width: 12rem;'>Spell</span>
<span class=sheet-first-word style='width: 15rem;'>Spell</span>
<span style='width: 6rem;'>Damage</span>
<span style='width: 4rem;' title="Dex adjustment to hit an enemy.">To Hit</span>
<span style='width: 7rem;' title="Strength cost when casting and after, e.g. '1 + 1/turn'.">ST Cost</span>
@@ -226,7 +228,7 @@
<div class=sheet-flex-section>
<input type="checkbox" name="attr_selection-flag" class="sheet-select-radio" hidden>
<button title="Select this Spell for casting." class=sheet-select-button type="action" name="act_select"/>
<input type=text name=attr_spellname style='width: 10rem;'>
<input type=text name=attr_spellname style='width: 13rem;'>
<input type=text name=attr_spelldamage style='width: 6rem;'>
<input type=text name=attr_tohit style='width: 4rem;'>
<input type=text name=attr_stcost style='width: 7rem;'>
@@ -260,7 +262,7 @@
</div>
<div class="sheet-armor sheet-block">
<div class='sheet-fieldset-header sheet-flex-section'>
<span class=sheet-first-word style='width: 13rem;'>Armor or Shield</span>
<span class=sheet-first-word style='width: 13rem;'>Armor/Shield</span>
<span style='width: 5rem;' title="Damage absorbed per attack.">Hits Blocked</span>
<span style='width: 5rem;' title="Subtracted from opponent's Dex when they attack.">Minus to Hit</span>
<span style='width: 5rem;' title="Subtracted from your Dex.">Dex Penalty</span>
@@ -1381,7 +1383,7 @@
}
}
getSectionIDs("weapons", function(v) {grabIds(v, 'weapons', 'weight', '', 'notcarried', idCallback);});
getSectionIDs("weapons", function(v) {grabIds(v, 'weapons', 'weight', 'count', 'notcarried', idCallback);});
getSectionIDs("armor", function(v) {grabIds(v, 'armor', 'weight', '', 'notcarried', idCallback);});
getSectionIDs("equipment", function(v) {grabIds(v, 'equipment', 'weight', 'count', 'notcarried', idCallback);});