PFCv1.824

- Fixed a bug with Temp hp that erroneously reset to max on triggered events.
- Added a 'blocked' image indicator over ACP and Max-Dex on the Defenses page to help show they are not applicable when encumbrance has been disabled from the settings page.
- Added a 'Death Threshold' macro-calculated field to the Hit Point calculations sub-section.
This commit is contained in:
Vince
2023-04-02 21:39:22 -07:00
parent c04c428fd7
commit 38c79bbbef
3 changed files with 385 additions and 247 deletions
+105 -46
View File
@@ -26,8 +26,8 @@
.charsheet details.table-cell,
.charsheet span.table-cell details {
margin: 4px 0 0 4px;
width: 90%;
margin: 4px 0 0 4px;
width: 90%;
}
.charsheet summary:hover,
@@ -221,6 +221,12 @@
margin-top: 0.1rem;
}
.charsheet .repeating-fields input[type=number] {
min-width: 2em;
max-width: 3em;
width: 85%;
}
.charsheet input[type="text"] {
width: 100%;
min-width: 3em;
@@ -339,12 +345,7 @@
margin-top: -1em;
}
.charsheet .abilities label.small-label2.linked-tablecell:focus-within::before {
height: 14px;
}
.charsheet .abilities .linked-tablecell:focus-within::before,
.charsheet .abilities .small-label2.entry-med:focus-within::before,
.charsheet .abilities .attack-damage .small-label2.entry-med:focus-within::before,
.charsheet .section-abilities div.small-label2.entry-med:focus-within::before,
.charsheet .section-abilities label.small-label2.entry-10p-shrink:focus-within::before,
.charsheet .attacks label.small-label2.entry-short.highlight:focus-within::before,
@@ -1107,33 +1108,39 @@ also need 1 more level in selector or base css will override border */
}
/* used to signify imperial/metric toggle */
.charsheet .pf-wrapper .distance-used::after,
.charsheet .pf-wrapper .weight-used::after,
.charsheet .use-metrics:checked ~ div .distance-used::after,
.charsheet .use-metrics:checked ~ div input.distance-used ~ span::before,
.charsheet input.distance-used ~ span::before {
font-family: monospace;
font-size: 1rem;
font-style: normal;
font-weight: bold;
}
.charsheet .pf-wrapper .distance-used::after,
.charsheet .use-metrics:checked ~ div .distance-used::after {
margin-right: -7px;
padding-left: 1px;
position: relative;
top: -3px;
}
.charsheet .weight-used::after {
content: '(lbs)';
margin-left: 5px;
font-weight: normal;
font-style: normal;
font-size: 1rem;
font-family: 'Roboto Mono', monospace;
}
.charsheet .use-metrics:checked ~ div .weight-used::after {
content: '(kgs)';
}
.charsheet .distance-used::after,
.charsheet input.distance-used ~ span::before {
.charsheet .pf-wrapper .distance-used::after {
content: '(ft)';
margin: 0 -5px 0 0;
padding-left: 1px;
position: relative;
top: -3px;
font-style: normal;
font-size: .85rem;
font-family: 'Roboto Mono', monospace;
}
.charsheet .use-metrics:checked ~ div .distance-used::after,
.charsheet .use-metrics:checked ~ div input.distance-used ~ span::before {
.charsheet .use-metrics:checked ~ div .distance-used::after {
content: '(m)';
}
@@ -1141,13 +1148,11 @@ also need 1 more level in selector or base css will override border */
.charsheet input.distance-used ~ span::before {
content: 'ft.';
margin: 1rem -.75em 0 -.75rem;
font-style: normal;
font-size: 1rem;
font-family: 'Roboto Mono', monospace;
}
.charsheet .use-metrics:checked ~ div input.distance-used ~ span::before {
content: 'm.';
content: '(m)';
margin: 1rem -.75em 0 -.75rem;
}
/* hide base-speed*/
@@ -1173,6 +1178,7 @@ also need 1 more level in selector or base css will override border */
.charsheet .nontable-name.secondary-table-name,
.charsheet .table-name.secondary-table-name {
background-color: #4a6486;
padding: 2px 5px 1px 5px;
}
.charsheet .section-spellclass .table-name,
@@ -1399,7 +1405,7 @@ also need 1 more level in selector or base css will override border */
}
.charsheet .small-label2 > select.select-small {
height: 2em;
margin-bottom: 2px;
}
/* color for disabled/sheet-calc */
@@ -1443,7 +1449,8 @@ also need 1 more level in selector or base css will override border */
white-space: nowrap;
overflow: visible;
}
/* macro-text column header */
/* macro-text column header */
.charsheet .table-header.super {
padding: 0 1.2rem 0 0;
}
@@ -1543,15 +1550,18 @@ also need 1 more level in selector or base css will override border */
}
.charsheet .text-tight {
font-size: .75em;
font-family: 'Roboto Mono', monospace;
position: absolute;
background-color: #9f9f9f;
display: inline-block;
padding: 0 2px 0 2px;
line-height: 12px;
margin: -5px 0 0 -5px;
background-color: #777;
border-radius: 2px;
color: white;
display: flex;
flex-direction: column;
font-family: 'Roboto Mono', monospace;
font-size: .75rem;
height: 23px;
line-height: 10px;
margin: -12px 0 0 -3px;
padding: 1px 2px 0 2px;
position: absolute;
z-index: 3;
}
@@ -3415,17 +3425,14 @@ also need 1 more level in selector or base css will override border */
.charsheet .small-label2 > select,
.charsheet .small-label2 > .calc {
display: block;
position: relative;
left: 0;
top: 0;
margin: auto;
line-height: 2rem;
margin: auto;
max-height: 2.5rem;
position: relative;
top: 0;
}
.charsheet .small-label2 > select {
padding-top: 0;
}
/* added for ability level basis inline formulas */
.charsheet .small-label2 > input.error-mshow {
@@ -3446,7 +3453,8 @@ also need 1 more level in selector or base css will override border */
box-shadow: none;
}
.charsheet .hit-points {
.charsheet .hit-points,
.charsheet .hit-points-calcs2 {
width: calc(30% - 4px);
display: inline-block;
min-height: 4em;
@@ -3456,6 +3464,12 @@ also need 1 more level in selector or base css will override border */
color: initial;
}
.charsheet .hit-points-calcs2 {
width: auto;
min-width: auto;
padding: 0 0 11px 0;
}
.charsheet .wound-threshold,
.charsheet .h2-section.wound-threshold {
display: inline-block;
@@ -3528,6 +3542,41 @@ also need 1 more level in selector or base css will override border */
display: inline-block;
}
.charsheet input[value="2"].max-dex-indicator:checked ~ div .max-dex-indicator::before,
.charsheet input[value="3"].max-dex-indicator:checked ~ div .max-dex-indicator::before {
font-family: "Pictos";
content: "d";
position: absolute;
font-size: 2.5em;
font-weight: normal;
margin: 5px 0 0 5px;
opacity: .75;
}
.charsheet input[value="2"].max-dex-indicator:checked ~ div .max-dex-indicator.custom-title-text:hover::after,
.charsheet input[value="3"].max-dex-indicator:checked ~ div .max-dex-indicator.custom-title-text:hover::after {
content: "n/a Encumbrance has been disabled in settings.";
display: block;
}
.charsheet .pf-wrapper span.custom-title-text::after {
background-color: #292a2d;
border: 1px solid lightgray;
color: lightgray;
display: none;
font-family: inherit;
font-weight: normal;
font-size: 1.1rem;
line-height: 1.2em;
margin: .25em 0 0 -2em;
padding: 2px;
position: absolute;
text-align: center;
white-space: pre-wrap;
max-width: 13em;
z-index: 4;
}
.charsheet .readonly-show:not(:checked) ~ .main .tab99:checked ~ .section .col .h2-section.ability-buttons {
width: calc(50% - 6px);
float: left;
@@ -4709,7 +4758,7 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_spell .sheet-roll-groupi .sheet-roll-row:first-child > *,
.sheet-rolltemplate-pf_attack .sheet-roll-groupc .sheet-roll-row:first-child > *,
.sheet-rolltemplate-pf_spell .sheet-roll-groupc .sheet-roll-row:first-child > * {
margin: 2px 0 2px 2px;
margin: 2px 0 2px 0;
}
.sheet-rolltemplate-pf_generic .sheet-roll-group2 .sheet-roll-row .sheet-roll-cell:last-child,
@@ -5617,6 +5666,15 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
max-height: 100%;
}
.sheet-rolltemplate-pf_generic .sheet-roll-description .sheet-roll-cell,
.sheet-rolltemplate-pf_ability .sheet-roll-description .sheet-roll-cell,
.sheet-rolltemplate-pf_defense .sheet-roll-description .sheet-roll-cell,
.sheet-rolltemplate-pf_attack .sheet-roll-description .sheet-roll-cell,
.sheet-rolltemplate-pf_spell .sheet-roll-description .sheet-roll-cell,
.sheet-rolltemplate-pf_block .sheet-roll-description .sheet-roll-cell {
padding: 5px 5px 5px 10px;
}
/*************************************************************************************/
.charsheet feats .table-header {
@@ -6680,8 +6738,9 @@ also if multiple repeating sects inside h2 they are 100% wide and only h2 is nar
.charsheet .skills .table-row .table-header:nth-of-type(7),
.charsheet .skills .table-row .table-cell:nth-of-type(7) {
width: 2em;
max-width: 1em;
padding: 0 .75em 0 .125em;
width: 2em;
}
.charsheet .readonly-show:not(:checked) ~ .main .skills .table-row .table-header:nth-of-type(7),
File diff suppressed because one or more lines are too long
+46 -4
View File
@@ -141,6 +141,7 @@
"armor-calculation-abbrv": "Armor calc",
"armor-check-penalty": "Armor Check Penalty",
"armor-check-penalty-abbrv": "ACP",
"armor-check-penalty-title": "Armor Check Penalty: Dex/Str-based skills may be affected by Armor/Shield and Encumbrance.",
"armor-class": "Armor Class",
"armor-class-abbrv": "AC",
"armor-class-abbrv-default": "•AC",
@@ -725,6 +726,9 @@
"dazzled": " Dazzled",
"dead": " Dead",
"deafened": " Deafened",
"death-threshold": "Death Threshold",
"death-threshold-title": "Death threshold calculation. Normally this is -@{CON}",
"death-threshold-total-title": "Point at which character death occurs.",
"debuff": "Debuff",
"debuff-title": "Negative buffs count as penalties",
"default": "Default",
@@ -944,10 +948,37 @@
"feat": "Feat",
"feat-name": "Feat Name",
"feat-type": "Feat Type",
"feats": "Feats",
"feats-achievement": "Achievement",
"feats-animalCompanion": "Animal Companion",
"feats-animalFamiliar": "Animal/Familiar",
"feats-available": "Feats Available",
"feats-betrayal": "Betrayal",
"feats-bloodHex": "Blood Hex",
"feats-by-level": "Feats by Level",
"feats-calculation": "Feat Calculations",
"feats-caravan": "Caravan",
"feats-channeling": "Channeling",
"feats-combat": "Combat",
"feats-conduit": "Conduit",
"feats-critical": "Critical",
"feats-damnation": "Damnation",
"feats-general": "General",
"feats-grit": "Grit",
"feats-itemCreation": "Item Creation",
"feats-itemMastery": "Item Mastery",
"feats-local": "Local",
"feats-metamagic": "Metamagic",
"feats-monster": "Monster",
"feats-mythic": "Mythic",
"feats-panache": "Panache",
"feats-performance": "Performance",
"feats-racialFeat": "Racial Feat",
"feats-stare": "Stare",
"feats-story": "Story",
"feats-style": "Style",
"feats-teamwork": "Teamwork",
"feats-weaponMastery": "Weapon Mastery",
"feats": "Feats",
"feature-list-default-values": "Features default values",
"feature-macros-v1": "Orig feature macros to v1",
"features": "Features",
@@ -1675,7 +1706,7 @@
"remove-young": "Remove Young",
"requires-training": "Requires Training",
"requires-training-abbrv": "RT",
"reset": "Reset",
"reset-hp": "Reset hp",
"resistance": " Resistance",
"resistance-abbrv": "Resist",
"resistances": "Resistances",
@@ -2008,12 +2039,23 @@
"touch-melee2": "Alt Touch (alt melee)",
"tower": "Tower",
"tower-shield": "Tower Shield",
"trait": "Trait",
"trait-name": "Trait Name",
"trait-type": "Trait Type",
"traits": "Traits",
"trait": "Trait",
"traits-and-racial-traits": "Traits and Racial Traits",
"traits-campaign": "Campaign",
"traits-combat": "Combat",
"traits-equipment": "Equipment",
"traits-faith": "Faith",
"traits-family": "Family",
"traits-magic": "Magic",
"traits-monster-rules": "Traits/MRules",
"traits-mount": "Mount",
"traits-race": "Race",
"traits-regional": "Regional",
"traits-religion": "Religion",
"traits-social": "Social",
"traits": "Traits",
"treasure": "Treasure",
"two-legged-default": "•Biped",
"two-weapon": "Two Weapon",