feat: polish some bugs (#7)

This commit is contained in:
Corey Hickson
2024-10-16 22:58:41 -06:00
committed by GitHub
parent 3a041e7c63
commit e13aa10f6d
5 changed files with 11 additions and 17 deletions
+4 -4
View File
@@ -58,7 +58,7 @@ function calculateDice(values, rolling) {
// Check to half for beginners luck
if (isBeginnersLuck) {
rollValue = Math.floor(rollValue / 2);
rollValue = Math.ceil(rollValue / 2);
}
// Add traits, persona, channelled nature, conditions, etc.
@@ -79,15 +79,15 @@ function calculateDice(values, rolling) {
rollValue += parseInt(values['rolling_otherdice']);
if (values['injured'] > 0) {
if (values['injured'] == "on") {
rollValue -= 1;
}
if (values['sick'] > 0) {
if (values['sick'] == "on") {
rollValue -= 1;
}
if (values['fresh'] > 0) {
if (values['fresh'] == "on") {
rollValue += 1;
}
+1 -1
View File
@@ -34,7 +34,7 @@ include kit_mixin.pug
.sheet-kit-inventory-group
// Pouch
.sheet-kit-group
.sheet-kit-header Pouch
.sheet-kit-header Pocket
+kit_item("pocket1", "Pouch", "Trinkets")
// Torso
.sheet-kit-group
@@ -183,7 +183,7 @@
}
}
@for $i from 1 through 10 {
@for $i from 2 through 10 {
@for $j from 1 through $i - 1 {
.sheet-advancement-flag[value="#{$i}"]~.sheet-fail .sheet-#{$j} {
display: inline-block;
-6
View File
@@ -4064,12 +4064,6 @@
.ui-dialog .tab-content .charsheet .sheet-advancement-flag[value="10"] ~ .sheet-pass .sheet-10 {
display: inline-block;
}
.ui-dialog .tab-content .charsheet .sheet-advancement-flag[value="1"] ~ .sheet-fail .sheet-1 {
display: inline-block;
}
.ui-dialog .tab-content .charsheet .sheet-advancement-flag[value="1"] ~ .sheet-fail .sheet-0 {
display: inline-block;
}
.ui-dialog .tab-content .charsheet .sheet-advancement-flag[value="2"] ~ .sheet-fail .sheet-1 {
display: inline-block;
}
+5 -5
View File
@@ -2541,7 +2541,7 @@
<div class="sheet-kit-inventory-group">
<!-- Pouch-->
<div class="sheet-kit-group">
<div class="sheet-kit-header">Pouch</div>
<div class="sheet-kit-header">Pocket</div>
<div class="sheet-kit-item">
<div class="sheet-kit-item-prefix">Trinkets</div>
<input class="sheet-edit" name="attr_inventory_pocket1" type="text" placeholder="Pouch..."/><span class="sheet-play sheet-handwritten" name="attr_inventory_pocket1"></span>
@@ -5745,7 +5745,7 @@ function calculateDice(values, rolling) {
// Check to half for beginners luck
if (isBeginnersLuck) {
rollValue = Math.floor(rollValue / 2);
rollValue = Math.ceil(rollValue / 2);
}
// Add traits, persona, channelled nature, conditions, etc.
@@ -5766,15 +5766,15 @@ function calculateDice(values, rolling) {
rollValue += parseInt(values['rolling_otherdice']);
if (values['injured'] > 0) {
if (values['injured'] == "on") {
rollValue -= 1;
}
if (values['sick'] > 0) {
if (values['sick'] == "on") {
rollValue -= 1;
}
if (values['fresh'] > 0) {
if (values['fresh'] == "on") {
rollValue += 1;
}