diff --git a/DCC_Tabbed_Sheet/DCC_Tabbed_Sheet.css b/DCC_Tabbed_Sheet/DCC_Tabbed_Sheet.css
index a909d953c8..6d503e6a3a 100644
--- a/DCC_Tabbed_Sheet/DCC_Tabbed_Sheet.css
+++ b/DCC_Tabbed_Sheet/DCC_Tabbed_Sheet.css
@@ -1,5 +1,5 @@
/* Dungeon Crawl Classics: Tabbed Character Sheet CSS */
-/* Version 1.6.1 */
+/* Version 1.6.2 */
.sheet-rolltemplate-DccTabbed .sheet-RollTemp-hint-image {
background:url(https://raw.githubusercontent.com/rgould/dcc_tabbed_sheet/master/assets/images/hint.png) top center no-repeat;
@@ -513,6 +513,7 @@ label div
.charsheet input.sheet-tab1:checked ~ div.sheet-section-core,
.charsheet input.sheet-tab2:checked ~ div.sheet-section-background,
+ .charsheet input.sheet-tab-lankhmar:checked ~ div.sheet-section-lankhmar,
.charsheet input.sheet-tab3:checked ~ div.sheet-section-class,
.charsheet input.sheet-tab4:checked ~ div.sheet-section-weapons,
.charsheet input.sheet-tab5:checked ~ div.sheet-section-spellbook,
@@ -4374,4 +4375,27 @@ div[data-groupname^="repeating_mutations"] .repitem,
max-width: 100%;
}
+/* Handle Dark Mode */
+.sheet-rolltemplate-darkmode .sheet-RollTemp-wrapper {
+ background-color: white;
+ color: #404040;
+}
+
+.sheet-rolltemplate-darkmode .inlinerollresult {
+ background-color: #fef68e !important;
+ border: 2px solid #fef68e !important;
+}
+
+.sheet-rolltemplate-darkmode .inlinerollresult.fullcrit {
+ border: 2px solid #3fb315 !important;
+}
+
+.sheet-rolltemplate-darkmode .inlinerollresult.fullfail {
+ border: 2px solid #b31515 !important;
+}
+
+.sheet-rolltemplate-darkmode .inlinerollresult.importantroll {
+ border: 2px solid #4a57ed !important;
+}
+
/* End custom Pure grid css (24 cols) */
diff --git a/DCC_Tabbed_Sheet/DCC_Tabbed_Sheet.html b/DCC_Tabbed_Sheet/DCC_Tabbed_Sheet.html
index 3263a4e6c5..a709e71226 100644
--- a/DCC_Tabbed_Sheet/DCC_Tabbed_Sheet.html
+++ b/DCC_Tabbed_Sheet/DCC_Tabbed_Sheet.html
@@ -1,5 +1,5 @@
-
+
Core Classes
@@ -14793,7 +14852,7 @@ var TAS = TAS || (function(){
/* ---- END: TheAaronSheet.js ---- */
- var VERSION = '1.6.1'
+ var VERSION = '1.6.2'
var diceChain = [3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 30]
/**
@@ -14897,6 +14956,36 @@ on("change:str change:repeating_level0s:level0multi_str change:agi change:repeat
});
});
+/**
+ * Sets weapon backstab damage if it hasn't been set yet, after damage is changed
+ *
+ * Level0 weapons don't have backstab button so we don't need to worry about those
+ */
+on("change:repeating_meleeweapon:meleedmg", function(e) {
+ var attr = e.sourceAttribute;
+ var targetAttr = attr.replace("meleedmg", "meleebackstabdmg");
+ getAttrs([targetAttr], function(values) {
+ if (!values[targetAttr]) {
+ setAttrs({
+ [targetAttr]: e.newValue
+ });
+ }
+ });
+});
+
+on("change:repeating_rangedweapon:rangeddmg", function(e) {
+ var attr = e.sourceAttribute;
+ var targetAttr = attr.replace("rangeddmg", "rangedbackstabdmg");
+ getAttrs([targetAttr], function(values) {
+ if (!values[targetAttr]) {
+ setAttrs({
+ [targetAttr]: e.newValue
+ });
+ }
+ });
+});
+
+
calculateAbilityScore = function calculateAbilityScore(value) {
var mod;
if (value >= 24) {
diff --git a/DCC_Tabbed_Sheet/ReadMe b/DCC_Tabbed_Sheet/ReadMe
index ea87bf928a..e5506ca5bb 100644
--- a/DCC_Tabbed_Sheet/ReadMe
+++ b/DCC_Tabbed_Sheet/ReadMe
@@ -11,10 +11,15 @@ You can follow development here: https://trello.com/b/jfLKA3e6/dcc-tabbed-sheet-
1: https://github.com/rgould/dcc_tabbed_sheet
## Current Version
-1.6.1
+1.6.2
### Changelog
+#### 1.6.2
+
+* Bug fix: Fixed display of roll templates in dark mode (Thanks DBendit!)
+* Feature: Automatically fill backstab damage value if it's not already set
+
#### 1.6.1
* Bug fix: Fixed issue where some level0 characters' rolls weren't being shown correctly (Thanks GrapeApe!)
diff --git a/DCC_Tabbed_Sheet/sheet.json b/DCC_Tabbed_Sheet/sheet.json
index 0781410c66..ff059b6dfa 100644
--- a/DCC_Tabbed_Sheet/sheet.json
+++ b/DCC_Tabbed_Sheet/sheet.json
@@ -4,6 +4,6 @@
"authors": "Amanda the Amazon, Richard Gould",
"roll20userid": "565956, 375203",
"preview": "DCC_Tabbed_Sheet.png",
- "instructions": "# Dungeon Crawl Classics (DCC) Tabbed Character Sheet\rThis sheet has a pared down 0-level player sheet, a sheet for multiple Level 0s, a Level 1+ player sheet and a monster sheet for the Judge that are switchable via a tab at the top left of the sheet.\r\r* If you are currently using the original DCC sheet, it is recommended to make a copy of the campaign before switching to the new sheet. You can then press the import button on the options section to import the data from the original sheet.\r\r## Player Sheets\r\r* **NEW**: Supports multiple level 0 characters in one sheet\r* Most rolls should have Roll Templates.\r* Includes Core, Crawl and Crawling Under a Broken Moon classes.\r* For Thieves, you can use the old Beta % based rolls (per Claytonian JP's request)\r* Lucky rolls are included within rolls automatically whenever possible.\r* Roll Template Backgrounds based on the kind of rolls you are making.\r* Criticals and Fumbles are rolled automatically based on the d20 roll.\r\r## Monster Sheet\r\r* Monster Rolls have Roll Templates.\r* Certain rolls only go to GM\r* Melee and Ranged Attacks include Special attack ability\r* Criticals and Fumbles are rolled automatically based on the d20 roll.\r\r## Discord\r We have a discord server for using DCC RPG on Roll20. [Join us on Discord!](https://discord.gg/eGtnAGqGzj) Joining will help motivate us to continue working on the sheet :)\r\r## Bug Reports/Feature Requests\rBug reports and feature requests are welcome. For best results send an email to rgould@u2622.ca, or join our discord server. Contributions are always welcome!\r## Known Issues\r* Two characters with same name not supported as wrong attributes are used. (Roll20 issue, reported on 2022-01-08. Thanks GrapeApe!)\r\r## Roadmap\r\rThe following major features are planned for version 2.0.0:\r\r * Multiple level 0 characters in one sheet (**DONE!**)\r * Lankhmar support\r * Translations / i18n (into French, German, etc)\r * Importing generated characters from Purple Sorcerer\r * Upgrade character sheet from legacy to CSE (new version)\r\r## Current Version: 1.6.1",
+ "instructions": "# Dungeon Crawl Classics (DCC) Tabbed Character Sheet\rThis sheet has a pared down 0-level player sheet, a sheet for multiple Level 0s, a Level 1+ player sheet and a monster sheet for the Judge that are switchable via a tab at the top left of the sheet.\r\r* If you are currently using the original DCC sheet, it is recommended to make a copy of the campaign before switching to the new sheet. You can then press the import button on the options section to import the data from the original sheet.\r\r## Player Sheets\r\r* **NEW**: Supports multiple level 0 characters in one sheet\r* Most rolls should have Roll Templates.\r* Includes Core, Crawl and Crawling Under a Broken Moon classes.\r* For Thieves, you can use the old Beta % based rolls (per Claytonian JP's request)\r* Lucky rolls are included within rolls automatically whenever possible.\r* Roll Template Backgrounds based on the kind of rolls you are making.\r* Criticals and Fumbles are rolled automatically based on the d20 roll.\r\r## Monster Sheet\r\r* Monster Rolls have Roll Templates.\r* Certain rolls only go to GM\r* Melee and Ranged Attacks include Special attack ability\r* Criticals and Fumbles are rolled automatically based on the d20 roll.\r\r## Discord\r We have a discord server for using DCC RPG on Roll20. [Join us on Discord!](https://discord.gg/eGtnAGqGzj) Joining will help motivate us to continue working on the sheet :)\r\r## Bug Reports/Feature Requests\rBug reports and feature requests are welcome. For best results send an email to rgould@u2622.ca, or join our discord server. Contributions are always welcome!\r## Known Issues\r* Two characters with same name not supported as wrong attributes are used. (Roll20 issue, reported on 2022-01-08. Thanks GrapeApe!)\r\r## Roadmap\r\rThe following major features are planned for version 2.0.0:\r\r * Multiple level 0 characters in one sheet (**DONE!**)\r * Lankhmar support\r * Translations / i18n (into French, German, etc)\r * Importing generated characters from Purple Sorcerer\r * Upgrade character sheet from legacy to CSE (new version)\r\r## Current Version: 1.6.2",
"legacy": true
}