[DCC_Tabbed_Sheet] Release v1.6.2

This commit is contained in:
rgould
2022-08-22 18:03:13 +02:00
parent 9e397ed4e1
commit e9daf91d7e
4 changed files with 123 additions and 5 deletions
+25 -1
View File
@@ -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) */
+91 -2
View File
@@ -1,5 +1,5 @@
<!-- Dungeon Crawl Classics: Tabbed Character Sheet -->
<!-- Version 1.6.1 -->
<!-- Version 1.6.2 -->
<div class="sheet-overall-wrapper">
@@ -59,6 +59,8 @@
<span class="sheet-subtab sheet-tab1">Core Stats</span>
<input type="radio" name="attr_tab" class="sheet-subtab sheet-tab2" value="2">
<span class="sheet-subtab sheet-tab2">Background</span>
<input type="radio" name="attr_tab" class="sheet-subtab sheet-tab-lankhmar" value="lankhmar">
<span class="sheet-subtab sheet-tab-lankhmar">Lankhmar</span>
<input type="radio" name="attr_tab" class="sheet-subtab sheet-tab3" value="3">
<span class="sheet-subtab sheet-tab3">Class</span>
<input type="radio" name="attr_tab" class="sheet-subtab sheet-tab4" value="4">
@@ -879,6 +881,63 @@
</div>
<div class="sheet-section-lankhmar">
<div class="sheet-row">
<div class="sheet-col-1">
<h4 class="sheet-center">Lankhmar</h4>
<p class="sheet-small-note">Lankhmar stuff goes here</p>
</div>
</div>
<div class="sheet-row">
<div class="sheet-col-1-5 sheet-right sheet-padr sheet-hd-row">
Place of Origin
</div>
<div class="sheet-col-1-4 sheet-right">
<input class="sheet-center" type="text" name="attr_lankhmar_place_of_origin" placeholder="Place of Origin">
</div>
</div>
<div class="sheet-row">
<div class="sheet-col-1-5 sheet-right sheet-padr sheet-hd-row">
Neighbourhood / Quarter
</div>
<div class="sheet-col-1-4 sheet-right">
<input class="sheet-center" type="text" name="attr_neighbourhood" placeholder="Neighbourhood">
</div>
</div>
<div class="sheet-row">
<div class="sheet-col-1-5 sheet-right sheet-padr sheet-hd-row">
Hangout
</div>
<div class="sheet-col-1-4 sheet-right">
<input class="sheet-center" type="text" name="attr_hangout" placeholder="Hangout">
</div>
</div>
<div class="sheet-row">
<div class="sheet-col-1-5 sheet-right sheet-padr sheet-hd-row">
Path
</div>
<div class="sheet-col-1-4 sheet-right">
<input class="sheet-center" type="text" name="attr_path" placeholder="Thief/Spell Path">
</div>
</div>
<div class="sheet-row">
<div class="sheet-col-1-5 sheet-right sheet-padr sheet-hd-row">
Patron Die
</div>
<div class="sheet-col-1-4 sheet-right">
<button class="sheet-center" type="action" name="act_lankhmar-patron-die">
Patron Die
</button>
</div>
</div>
</div>
<div class="sheet-section-class">
<div class="sheet-col-1-1 sheet-left sheet-class-label">Core Classes</div>
@@ -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) {
+6 -1
View File
@@ -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!)
+1 -1
View File
@@ -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
}