mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
feat: polish some bugs (#7)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user