diff --git a/Cyberrats/Cyberrats.css b/Cyberrats/Cyberrats.css index 0b27e6e889..ce88d9cc60 100644 --- a/Cyberrats/Cyberrats.css +++ b/Cyberrats/Cyberrats.css @@ -1229,6 +1229,12 @@ z-index: -1; color: white; } +/* Hide Briny Bastards and Cyberrats in Space checkboxes on campaign tracker page */ +.tabstoggle[value="campaignsheet"] ~ section span.briny-setting, +.tabstoggle[value="campaignsheet"] ~ section span.space-setting { + display: none; +} + /* Tab switching for base sub sheets (e.g. submarine) */ @@ -2748,6 +2754,67 @@ body.sheet-darkmode .threatlabel::before { height: 20px; left: calc((50% - 1em) - 2px); position: absolute; +} + +/* Dark Mode - Mech Section Fixes */ +/* Fix labels in mech abilities section */ +body.sheet-darkmode .mech-ability-section label { + color: var(--colorLight) !important; + background: transparent; +} + +/* Fix disabled M-Shop textarea - better visibility when disabled */ +body.sheet-darkmode .mech-ability-section:has(input[type="checkbox"]:not(:checked)) textarea { + opacity: 0.7; + background-color: color-mix(in srgb, var(--backgroundDarkOffset) 80%, var(--gentleOrange) 20%) !important; + color: var(--colorLight) !important; + border-color: var(--gentleOrange) !important; +} + +/* Fix subsystems labels and section */ +body.sheet-darkmode .subsystems h3, +body.sheet-darkmode .subsystems label { + color: var(--colorLight) !important; +} + +body.sheet-darkmode span.subspan label { + color: var(--colorLight) !important; + background: transparent; +} + +/* Fix munitions labels and section */ +body.sheet-darkmode h3:contains("Munitions"), +body.sheet-darkmode .Munholder label, +body.sheet-darkmode .repeating_Muns label { + color: var(--colorLight) !important; +} + +/* Fix armaments labels */ +body.sheet-darkmode h3:contains("Armaments"), +body.sheet-darkmode .repeating_arm label, +body.sheet-darkmode .armament-checkboxes label { + color: var(--colorLight) !important; +} + +/* Fix "equipped" text and counters */ +body.sheet-darkmode span:contains("equipped"), +body.sheet-darkmode span:contains("You've equipped") { + color: var(--colorLight) !important; +} + +/* Fix general mech section labels and text */ +body.sheet-darkmode .mech label, +body.sheet-darkmode .mechStuff label, +body.sheet-darkmode .perks label { + color: var(--colorLight) !important; + background: transparent; +} + +/* Fix mech section headers */ +body.sheet-darkmode .mech h3, +body.sheet-darkmode .mechStuff h3, +body.sheet-darkmode .perks h3 { + color: var(--colorLight) !important; width: 20px; z-index: 9; margin-left: 6px; diff --git a/Cyberrats/Cyberrats.html b/Cyberrats/Cyberrats.html index 7388684ec1..a9120d6253 100644 --- a/Cyberrats/Cyberrats.html +++ b/Cyberrats/Cyberrats.html @@ -507,6 +507,9 @@ +
+ upgrades, blows a fuse if second-highest die is or less. +

@@ -575,14 +578,14 @@ - - - - + + + + @@ -620,6 +623,9 @@ +
+ upgrades, blows a fuse if second-highest die is or less. +

@@ -1493,7 +1499,7 @@
-

Generate Drops

+

Generate Drops (Cyberrats base game)

@@ -1880,7 +1886,7 @@
-

Generate Drops

+

Generate Drops (Cyberrats in Space)

@@ -3597,6 +3603,15 @@ on("change:repeating_arm:equipped", function(eventInfo) { }); }); +on("change:repeating_arm:upgrades", function(eventInfo) { + const upgrades = parseInt(eventInfo.newValue) || 0; + const upgradesPlusOne = upgrades + 1; + + setAttrs({ + [`${eventInfo.sourceAttribute.replace("upgrades", "upgrades_plus_one")}`]: upgradesPlusOne + }); +}); + on("change:buildingnameroom1 change:buildingnameroom2 change:buildingnameroom3 change:buildingnameroom4 change:buildingnameroom5 change:buildingnameroom6 change:buildingnameroom7 change:buildingnameroom8 change:buildingnameroom9 change:buildingnameroom10 change:buildingnameroom11 change:buildingnameroom12 change:buildingnameroom13 change:buildingnameroom14 change:buildingnameroom15 change:buildingnameroom16 ", function(eventInfo){ const roomNumber = eventInfo.sourceAttribute.match(/\d+/).shift(); // regex to grab the number from a string. Relies on naming scheme. const room = eventInfo.newValue;