From b94ecede0355be29e9f36b07e7b054ecc9c9acff Mon Sep 17 00:00:00 2001
From: Villain1nGlasses <85969638+Villain1nGlasses@users.noreply.github.com>
Date: Mon, 30 May 2022 21:03:54 -0600
Subject: [PATCH] CSS display of large point totals. EXP handling.
---
HeroSystem6eHeroic/HeroSystem6eHeroic.css | 25 ++++++++++++++++------
HeroSystem6eHeroic/HeroSystem6eHeroic.html | 14 ++++++++++--
2 files changed, 30 insertions(+), 9 deletions(-)
diff --git a/HeroSystem6eHeroic/HeroSystem6eHeroic.css b/HeroSystem6eHeroic/HeroSystem6eHeroic.css
index bef461d99d..77703bbf8b 100644
--- a/HeroSystem6eHeroic/HeroSystem6eHeroic.css
+++ b/HeroSystem6eHeroic/HeroSystem6eHeroic.css
@@ -319,12 +319,14 @@ select:focus + .focus {
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
- width: 674px;
+ width: 668px;
height: 36px;
border: 3px solid #fff990;
border-radius: 5px;
background: royalblue;
margin: 0px;
+ padding-left: 3px;
+ padding-right: 3px;
}
.sheet-flex-tallybar span {
@@ -333,11 +335,11 @@ select:focus + .focus {
.sheet-flex-tallybar span:nth-child(1) {
color: white;
- margin-left: 5px;
+
}
-.sheet-flex-tallybar input {
- max-width: 40px;
+.sheet-flex-tallybar input[type=number] {
+ min-width: 52px;
text-align: right;
padding-right: 0px;
}
@@ -350,6 +352,8 @@ select:focus + .focus {
.sheet-flex-tallybar input[readonly]{
background: #fff990;
padding-right: 0px;
+ min-width: 36px;
+ max-width: 40px;
text-align: center;
}
@@ -535,11 +539,17 @@ select:focus + .focus {
line-height: 1.3;
}
+.item-characteristics-earnings-experience input {
+ min-width: 54px;
+ padding-right: 0px;
+ padding-top: 0px;
+}
+
.item-characteristics-earnings input[type=number] {
text-align: right;
- padding-right: 1px;
+ padding-right: 0px;
border: solid 1px palegoldenrod;
- padding-top: 2px;
+ padding-top: 0px;
margin-bottom: 5px;
}
@@ -2249,9 +2259,10 @@ select:focus + .focus {
flex-direction: column;
border-radius: 5px;
max-width: 333px;
- padding: 2px;
+ padding-top: 1px;
padding-left: 4px;
padding-right: 4px;
+ padding-bottom: 2px;
margin: 0px;
height: 797px;
}
diff --git a/HeroSystem6eHeroic/HeroSystem6eHeroic.html b/HeroSystem6eHeroic/HeroSystem6eHeroic.html
index 244edf706c..bdc9c5c5e5 100644
--- a/HeroSystem6eHeroic/HeroSystem6eHeroic.html
+++ b/HeroSystem6eHeroic/HeroSystem6eHeroic.html
@@ -2957,6 +2957,7 @@
+
@@ -2969,6 +2970,7 @@
+
@@ -2983,6 +2985,7 @@
+
@@ -2996,6 +2999,7 @@
+
@@ -3009,6 +3013,7 @@
+
@@ -3022,6 +3027,7 @@
+
@@ -3035,6 +3041,7 @@
+
@@ -5887,7 +5894,6 @@
// Update point totals when option: useCharacteristicMaximums checked or unchecked.
on("change:useCharacteristicMaximums", function () {
sumCharacteristicPoints();
-
});
@@ -5914,7 +5920,7 @@
const experienceCP = parseInt(values.experienceBenefit)||0;
let totalSkillsCP = set1SkillsCP+set2SkillsCP+set3SkillsCP+combatSkillsCP+languageSkillsCP+enhancerSkillsCP+martialSkillsCP;
- let totalCP = characteristicsCP+totalSkillsCP+powersPerksTalentsCP-complicationsCP-bonusCP+experienceCP;
+ let totalCP = characteristicsCP+totalSkillsCP+powersPerksTalentsCP-complicationsCP-bonusCP-experienceCP;
setAttrs({
"skillsCost":totalSkillsCP,
@@ -8702,6 +8708,10 @@
skillBaseCost = 0;
break;
+ case "CSL8": skillLevelCost=8;
+ skillBaseCost = 0;
+ break;
+
case "PSL1": skillLevelCost=1;
skillBaseCost = 0;
break;