From 3ec1c65d62277c6bff8b014da191b140398d6869 Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 10:54:37 -0700 Subject: [PATCH 01/11] WFRP4e Fix NPC Issues --- .../src/pug/layout/npc.pug | 9 +- .../src/scss/layout/_npc.scss | 2 +- .../translation.json | 34 +++- .../wfrp4.css | 2 +- .../wfrp4.html | 151 ++++++++++++------ 5 files changed, 140 insertions(+), 58 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/npc.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/npc.pug index 43101bfec8..c42258caa8 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/npc.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/npc.pug @@ -39,14 +39,21 @@ return 1; } }); + each skill in skill_list - const attr = skill.name.toLowerCase().replace(/ /g,"-"); - console.log(attr); if (skill.grouped !== true) .wfrp-npcsettings__skill .wfrp-npcsettings__label(data-i18n=skill.name) input.wfrp-npcsettings__input(name=`attr_${attr}`, type="number") + + if (skill.name === "Melee" || skill.name === "Ranged" || skill.name === "Channelling") + each specialism in skill.specialisations + .wfrp-npcsettings__skill + .wfrp-npcsettings__label(data-i18n=`${skill.name} (${specialism})`) + input.wfrp-npcsettings__input(name=`attr_${specialism}`, type="number") + h2(data-i18n="Settings") .wfrp-npcsettings__settings diff --git a/Warhammer Fantasy Roleplay 4e Official/src/scss/layout/_npc.scss b/Warhammer Fantasy Roleplay 4e Official/src/scss/layout/_npc.scss index ca7de092f5..f7db0f53ef 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/scss/layout/_npc.scss +++ b/Warhammer Fantasy Roleplay 4e Official/src/scss/layout/_npc.scss @@ -106,7 +106,7 @@ &__skill { display: grid; - grid-template-columns: 1fr .25fr; + grid-template-columns: 1fr 1.5em; } &__settings { diff --git a/Warhammer Fantasy Roleplay 4e Official/translation.json b/Warhammer Fantasy Roleplay 4e Official/translation.json index bafc6aa7a6..a32246c9b2 100644 --- a/Warhammer Fantasy Roleplay 4e Official/translation.json +++ b/Warhammer Fantasy Roleplay 4e Official/translation.json @@ -254,10 +254,10 @@ "Notes":"Notes", "Characteristic Advances":"Characteristic Advances", "Current Career":"Current Career", - "Level 1":"Level 1", - "Level 2":"Level 2", - "Level 3":"Level 3", - "Level 4":"Level 4", + "Tier 1":"Tier 1", + "Tier 2":"Tier 2", + "Tier 3":"Tier 3", + "Tier 4":"Tier 4", "Skill 1":"Skill 1", "Skill 2":"Skill 2", "Skill 3":"Skill 3", @@ -341,5 +341,29 @@ "Show Trappings":"Show Trappings", "Worn":"Worn", "TB":"TB", - "Combat":"Combat" + "Combat":"Combat", + "Channelling (Aqshy)":"Channelling (Aqshy)", + "Channelling (Chamon)":"Channelling (Chamon)", + "Channelling (Dhar)":"Channelling (Dhar)", + "Channelling (Ghur)":"Channelling (Ghur)", + "Channelling (Ghyran)":"Channelling (Ghyran)", + "Channelling (Hysh)":"Channelling (Hysh)", + "Channelling (Shyish)":"Channelling (Shyish)", + "Channelling (Ulgu)":"Channelling (Ulgu)", + "Melee (Basic)":"Melee (Basic)", + "Melee (Brawling)":"Melee (Brawling)", + "Melee (Cavalry)":"Melee (Cavalry)", + "Melee (Fencing)":"Melee (Fencing)", + "Melee (Flail)":"Melee (Flail)", + "Melee (Parry)":"Melee (Parry)", + "Melee (Pole-Arm)":"Melee (Pole-Arm)", + "Melee (Two-Handed)":"Melee (Two-Handed)", + "Ranged (Blackpowder)":"Ranged (Blackpowder)", + "Ranged (Bow)":"Ranged (Bow)", + "Ranged (Crossbow)":"Ranged (Crossbow)", + "Ranged (Engineering)":"Ranged (Engineering)", + "Ranged (Entangling)":"Ranged (Entangling)", + "Ranged (Explosives)":"Ranged (Explosives)", + "Ranged (Sling)":"Ranged (Sling)", + "Ranged (Throwing)":"Ranged (Throwing)" } \ No newline at end of file diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.css b/Warhammer Fantasy Roleplay 4e Official/wfrp4.css index 1429a7d99c..e16d2e44de 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.css +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.css @@ -1518,7 +1518,7 @@ input[type=hidden][name=attr_npc][value=on] ~ * .sheet-wfrp-npc, input[type=hidd } .sheet-wfrp-npcsettings__skill { display: grid; - grid-template-columns: 1fr 0.25fr; + grid-template-columns: 1fr 1.5em; } .sheet-wfrp-npcsettings__settings { display: grid; diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html index 0954c88821..b363419cba 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html @@ -382,7 +382,6 @@
-
@@ -442,7 +441,6 @@
-
@@ -501,7 +499,6 @@
-
@@ -560,7 +557,6 @@
-
@@ -619,7 +615,6 @@
-
@@ -678,7 +673,6 @@
-
@@ -737,7 +731,6 @@
-
@@ -796,7 +789,6 @@
-
@@ -855,7 +847,6 @@
-
@@ -914,7 +905,6 @@
-
@@ -973,7 +963,6 @@
-
@@ -1032,7 +1021,6 @@
-
@@ -1092,7 +1080,6 @@
-
@@ -1151,7 +1138,6 @@
-
@@ -1210,7 +1196,6 @@
-
@@ -1269,7 +1254,6 @@
-
@@ -1328,7 +1312,6 @@
-
@@ -1387,7 +1370,6 @@
-
@@ -1446,7 +1428,6 @@
-
@@ -2110,7 +2091,6 @@
-
@@ -2169,7 +2149,6 @@
-
@@ -2228,7 +2207,6 @@
-
@@ -2287,7 +2265,6 @@
-
@@ -2347,7 +2324,6 @@
-
@@ -2406,7 +2382,6 @@
-
@@ -2477,7 +2452,6 @@
-
@@ -2536,7 +2510,6 @@
-
@@ -2596,7 +2569,6 @@
-
@@ -3260,7 +3232,6 @@
-
@@ -3319,7 +3290,6 @@
-
@@ -3378,7 +3348,6 @@
-
@@ -3525,7 +3494,6 @@
-
@@ -3585,7 +3553,6 @@
-
@@ -3645,7 +3612,6 @@
-
@@ -3704,7 +3670,6 @@
-
@@ -3764,7 +3729,6 @@
-
@@ -3823,7 +3787,6 @@
-
@@ -4487,7 +4450,6 @@
-
@@ -4546,7 +4508,6 @@
-
@@ -4606,7 +4567,6 @@
-
@@ -4666,7 +4626,6 @@
-
@@ -4725,7 +4684,6 @@
-
@@ -4784,7 +4742,6 @@
-
@@ -4843,7 +4800,6 @@
-
@@ -4902,7 +4858,6 @@
-
@@ -5351,7 +5306,7 @@
-

+

@@ -5461,7 +5416,7 @@
-

+

@@ -5554,7 +5509,7 @@
-

+

@@ -5647,7 +5602,7 @@
-

+

@@ -5740,7 +5695,7 @@
-

+

@@ -6634,6 +6589,38 @@
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
@@ -6698,6 +6685,38 @@
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
@@ -6718,6 +6737,38 @@
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
From b3759b2b30ce20a42607a73654b79cd2f8869ea1 Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 10:54:51 -0700 Subject: [PATCH 02/11] WFRP4e - Change Level to Tier --- .../src/pug/components/repeating/careers-row.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/components/repeating/careers-row.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/components/repeating/careers-row.pug index e2e90fe21b..4cd9889bae 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/components/repeating/careers-row.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/components/repeating/careers-row.pug @@ -4,7 +4,7 @@ mixin career-level(level, first) input(name=`attr_career_level_current`, type="hidden", value="1") button(data-i18n="Switch", name=`act_newcareerlevel-${level}`, type="action") span(data-i18n="Current" class=`wfrp-current_level--${level}`) - h2(data-i18n=`Level ${level}`) + h2(data-i18n=`Tier ${level}`) .wfrp-settings__row--invert .wfrp-settings__label(data-i18n=`Name`) From e8d5bc47f090566575767df336fd6a6d1288c0f6 Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 10:55:03 -0700 Subject: [PATCH 03/11] WFRP4e - Remove console logs --- Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug | 2 -- 1 file changed, 2 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug index 9e9ad01f3f..c421e68302 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug @@ -63,7 +63,6 @@ input(name="attr_setting_button_hide", type="hidden") .wfrp-skilltable__cell(data-i18n="Adv.") .wfrp-skilltable__cell--last(data-i18n="Total") each skill in skills.basic - console.log(skill) if skill.grouped === true +skill-grouped(skill) else @@ -78,7 +77,6 @@ input(name="attr_setting_button_hide", type="hidden") .wfrp-skilltable__cell(data-i18n="Adv.") .wfrp-skilltable__cell--last(data-i18n="Total") each skill in skills.advanced - console.log(skill) if skill.grouped === true +skill-grouped(skill) else From a843efbb64474b6e4790d15e1079b103ac94ee3b Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 11:00:25 -0700 Subject: [PATCH 04/11] WFRP4e - Adjust NPC characteristic & skill calculations --- .../src/js/sheetworkers.js | 94 +++++++++++-------- .../wfrp4.html | 94 +++++++++++-------- 2 files changed, 112 insertions(+), 76 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js b/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js index 0cce6b4b7c..0daeb4160a 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js +++ b/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js @@ -381,26 +381,38 @@ const wfrpModule = ( () => { // Characteristic Functions const calculateCharacteristic = (characteristic) => { - - getAttrs(["npc"], check => { - - if (check["npc"] === "on") return; - const attrs = [ - `${characteristic}_initial`, - `${characteristic}_advances`, - `${characteristic}_modifier`, - `${characteristic}_custom_mod`, - `${characteristic}_bonusmod`, - ]; + const attrs = [ + `npc`, + `${characteristic}`, + `${characteristic}_initial`, + `${characteristic}_advances`, + `${characteristic}_modifier`, + `${characteristic}_custom_mod`, + `${characteristic}_bonusmod`, + ]; + + getAttrs(attrs, values => { + const base = parseInt(values[`${characteristic}`]) || 0; + const initial = parseInt(values[`${characteristic}_initial`]) || 0; + const advances = parseInt(values[`${characteristic}_advances`]) || 0; + const modifier = parseInt(values[`${characteristic}_modifier`]) || 0; + const custom_mod = parseInt(values[`${characteristic}_custom_mod`]) || 0; + const bonusmod = parseInt(values[`${characteristic}_bonusmod`]) || 0; + + if (values["npc"] === "on") { - getAttrs(attrs, values => { - const initial = parseInt(values[`${characteristic}_initial`]) || 0; - const advances = parseInt(values[`${characteristic}_advances`]) || 0; - const modifier = parseInt(values[`${characteristic}_modifier`]) || 0; - const custom_mod = parseInt(values[`${characteristic}_custom_mod`]) || 0; - const bonusmod = parseInt(values[`${characteristic}_bonusmod`]) || 0; + const updateAttrs = {}; + + const bonus = Math.floor(base / 10) + bonusmod; + + updateAttrs[`${characteristic}_bonus`] = bonus; + setAttrs(updateAttrs); + + return; + } else { + const current = initial + advances + modifier + custom_mod; const bonus = Math.floor(current / 10) + bonusmod; @@ -411,8 +423,8 @@ const wfrpModule = ( () => { updateAttrs[`${characteristic}_bonus`] = bonus; setAttrs(updateAttrs); - - }); + + } }); } @@ -514,35 +526,41 @@ const wfrpModule = ( () => { } const calculateSpecialisation = (specialisation) => { + + getAttrs(["npc"], check => { + + if (check["npc"] === "on") return; - const attrs = [ - `${specialisation}_characteristic` - ]; - - getAttrs(attrs, values => { - const base = values[`${specialisation}_characteristic`]; - const attrs = [ - `${base}`, - `${specialisation}_advances`, - `${specialisation}_modifier`, - `${specialisation}_bonus` + `${specialisation}_characteristic`, + `npc` ]; getAttrs(attrs, values => { - const characteristic = parseInt(values[`${base}`]) || 0; - const advances = parseInt(values[`${specialisation}_advances`]) || 0; - const modifier = parseInt(values[`${specialisation}_modifier`]) || 0; - const bonus = parseInt(values[`${specialisation}_bonus`]) || 0; + const base = values[`${specialisation}_characteristic`]; - const total = characteristic + advances + modifier + bonus; + const attrs = [ + `${base}`, + `${specialisation}_advances`, + `${specialisation}_modifier`, + `${specialisation}_bonus` + ]; - const updateAttrs = {}; + getAttrs(attrs, values => { + const characteristic = parseInt(values[`${base}`]) || 0; + const advances = parseInt(values[`${specialisation}_advances`]) || 0; + const modifier = parseInt(values[`${specialisation}_modifier`]) || 0; + const bonus = parseInt(values[`${specialisation}_bonus`]) || 0; - updateAttrs[`${specialisation}`] = total; + const total = characteristic + advances + modifier + bonus; - setAttrs(updateAttrs); + const updateAttrs = {}; + updateAttrs[`${specialisation}`] = total; + + setAttrs(updateAttrs); + + }); }); }); } diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html index b363419cba..c4a4539249 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html @@ -8744,26 +8744,38 @@ // Characteristic Functions const calculateCharacteristic = (characteristic) => { - - getAttrs(["npc"], check => { - - if (check["npc"] === "on") return; - const attrs = [ - `${characteristic}_initial`, - `${characteristic}_advances`, - `${characteristic}_modifier`, - `${characteristic}_custom_mod`, - `${characteristic}_bonusmod`, - ]; + const attrs = [ + `npc`, + `${characteristic}`, + `${characteristic}_initial`, + `${characteristic}_advances`, + `${characteristic}_modifier`, + `${characteristic}_custom_mod`, + `${characteristic}_bonusmod`, + ]; + + getAttrs(attrs, values => { + const base = parseInt(values[`${characteristic}`]) || 0; + const initial = parseInt(values[`${characteristic}_initial`]) || 0; + const advances = parseInt(values[`${characteristic}_advances`]) || 0; + const modifier = parseInt(values[`${characteristic}_modifier`]) || 0; + const custom_mod = parseInt(values[`${characteristic}_custom_mod`]) || 0; + const bonusmod = parseInt(values[`${characteristic}_bonusmod`]) || 0; + + if (values["npc"] === "on") { - getAttrs(attrs, values => { - const initial = parseInt(values[`${characteristic}_initial`]) || 0; - const advances = parseInt(values[`${characteristic}_advances`]) || 0; - const modifier = parseInt(values[`${characteristic}_modifier`]) || 0; - const custom_mod = parseInt(values[`${characteristic}_custom_mod`]) || 0; - const bonusmod = parseInt(values[`${characteristic}_bonusmod`]) || 0; + const updateAttrs = {}; + + const bonus = Math.floor(base / 10) + bonusmod; + + updateAttrs[`${characteristic}_bonus`] = bonus; + setAttrs(updateAttrs); + + return; + } else { + const current = initial + advances + modifier + custom_mod; const bonus = Math.floor(current / 10) + bonusmod; @@ -8774,8 +8786,8 @@ updateAttrs[`${characteristic}_bonus`] = bonus; setAttrs(updateAttrs); - - }); + + } }); } @@ -8877,35 +8889,41 @@ } const calculateSpecialisation = (specialisation) => { + + getAttrs(["npc"], check => { + + if (check["npc"] === "on") return; - const attrs = [ - `${specialisation}_characteristic` - ]; - - getAttrs(attrs, values => { - const base = values[`${specialisation}_characteristic`]; - const attrs = [ - `${base}`, - `${specialisation}_advances`, - `${specialisation}_modifier`, - `${specialisation}_bonus` + `${specialisation}_characteristic`, + `npc` ]; getAttrs(attrs, values => { - const characteristic = parseInt(values[`${base}`]) || 0; - const advances = parseInt(values[`${specialisation}_advances`]) || 0; - const modifier = parseInt(values[`${specialisation}_modifier`]) || 0; - const bonus = parseInt(values[`${specialisation}_bonus`]) || 0; + const base = values[`${specialisation}_characteristic`]; - const total = characteristic + advances + modifier + bonus; + const attrs = [ + `${base}`, + `${specialisation}_advances`, + `${specialisation}_modifier`, + `${specialisation}_bonus` + ]; - const updateAttrs = {}; + getAttrs(attrs, values => { + const characteristic = parseInt(values[`${base}`]) || 0; + const advances = parseInt(values[`${specialisation}_advances`]) || 0; + const modifier = parseInt(values[`${specialisation}_modifier`]) || 0; + const bonus = parseInt(values[`${specialisation}_bonus`]) || 0; - updateAttrs[`${specialisation}`] = total; + const total = characteristic + advances + modifier + bonus; - setAttrs(updateAttrs); + const updateAttrs = {}; + updateAttrs[`${specialisation}`] = total; + + setAttrs(updateAttrs); + + }); }); }); } From 1a223e13fde656735b1f9b4decdb7306cc297655 Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 11:03:51 -0700 Subject: [PATCH 05/11] WFRP4e - Updating Polearm --- .../src/pug/abstracts.pug | 2 +- .../src/scss/_abstracts.scss | 2 +- .../translation.json | 6 +-- .../wfrp4.css | 4 +- .../wfrp4.html | 38 +++++++++---------- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/abstracts.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/abstracts.pug index fc255fcc6f..01ed585e58 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/abstracts.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/abstracts.pug @@ -425,7 +425,7 @@ "characteristic":"weapon skill", "type":"basic", "grouped":true, - "specialisations":["Basic","Brawling","Cavalry","Fencing","Flail","Parry","Pole-Arm","Two-Handed"], + "specialisations":["Basic","Brawling","Cavalry","Fencing","Flail","Parry","Polearm","Two-Handed"], }, { "name":"Navigation", diff --git a/Warhammer Fantasy Roleplay 4e Official/src/scss/_abstracts.scss b/Warhammer Fantasy Roleplay 4e Official/src/scss/_abstracts.scss index 20fb41f13e..18522630ed 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/scss/_abstracts.scss +++ b/Warhammer Fantasy Roleplay 4e Official/src/scss/_abstracts.scss @@ -83,7 +83,7 @@ $specialisations: "fencing", "flail", "parry", - "pole-arm", + "polearm", "two-handed", "blackpowder", "bow", diff --git a/Warhammer Fantasy Roleplay 4e Official/translation.json b/Warhammer Fantasy Roleplay 4e Official/translation.json index a32246c9b2..884060b675 100644 --- a/Warhammer Fantasy Roleplay 4e Official/translation.json +++ b/Warhammer Fantasy Roleplay 4e Official/translation.json @@ -104,7 +104,7 @@ "attr_Fencing":"attr_Fencing", "attr_Flail":"attr_Flail", "attr_Parry":"attr_Parry", - "attr_Pole-Arm":"attr_Pole-Arm", + "attr_Polearm":"attr_Polearm", "attr_Two-Handed":"attr_Two-Handed", "Navigation":"Navigation", "Outdoor Survival":"Outdoor Survival", @@ -197,7 +197,7 @@ "Basic":"Basic", "Cavalry":"Cavalry", "Flail":"Flail", - "Pole-Arm":"Pole-Arm", + "Polearm":"Polearm", "Brawling":"Brawling", "Fencing":"Fencing", "Parry":"Parry", @@ -356,7 +356,7 @@ "Melee (Fencing)":"Melee (Fencing)", "Melee (Flail)":"Melee (Flail)", "Melee (Parry)":"Melee (Parry)", - "Melee (Pole-Arm)":"Melee (Pole-Arm)", + "Melee (Polearm)":"Melee (Polearm)", "Melee (Two-Handed)":"Melee (Two-Handed)", "Ranged (Blackpowder)":"Ranged (Blackpowder)", "Ranged (Bow)":"Ranged (Bow)", diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.css b/Warhammer Fantasy Roleplay 4e Official/wfrp4.css index e16d2e44de..a77eb43306 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.css +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.css @@ -1258,7 +1258,7 @@ button.sheet-pictos[type=action]:hover { border-bottom: 1px solid black; } -.sheet-wfrp-npcsettings__wrapper, .sheet-control__hide--npctrait_settings, .sheet-control__hide--npcattack_settings, .sheet-control__hide--Custom, .sheet-control__hide--Prayer, .sheet-control__hide--Spell, .sheet-control__hide--skill, .sheet-control__hide--characteristic, .sheet-wfrp-criticaltable__row .sheet-wfrp-criticaltable__cell--description, .sheet-wfrp-corruptiontable__row .sheet-wfrp-corruptiontable__cell--description, .sheet-wfrp-psychologytable__row .sheet-wfrp-psychologytable__cell--description, .sheet-wfrp-conditiontable__row .sheet-wfrp-conditiontable__cell--description, .sheet-wfrp-talenttable__row .sheet-wfrp-talenttable__cell--description, .sheet-control__hide--spell_settings, .sheet-control__hide--weapon_settings, .sheet-control__hide--armour_settings, .sheet-control__hide--trappings_settings, .sheet-control__hide--critical_settings, .sheet-control__hide--corruption_settings, .sheet-control__hide--psychology_settings, .sheet-control__hide--condition_settings, .sheet-control__hide--talent_settings, .sheet-control__hide--magick, .sheet-control__hide--ulgu, .sheet-control__hide--shyish, .sheet-control__hide--hysh, .sheet-control__hide--ghyran, .sheet-control__hide--ghur, .sheet-control__hide--dhar, .sheet-control__hide--chamon, .sheet-control__hide--aqshy, .sheet-control__hide--throwing, .sheet-control__hide--sling, .sheet-control__hide--explosives, .sheet-control__hide--entangling, .sheet-control__hide--engineering, .sheet-control__hide--crossbow, .sheet-control__hide--bow, .sheet-control__hide--blackpowder, .sheet-control__hide--two-handed, .sheet-control__hide--pole-arm, .sheet-control__hide--parry, .sheet-control__hide--flail, .sheet-control__hide--fencing, .sheet-control__hide--cavalry, .sheet-control__hide--brawling, .sheet-control__hide--basic, .sheet-control__hide--magick_settings, .sheet-control__hide--ulgu_settings, .sheet-control__hide--shyish_settings, .sheet-control__hide--hysh_settings, .sheet-control__hide--ghyran_settings, .sheet-control__hide--ghur_settings, .sheet-control__hide--dhar_settings, .sheet-control__hide--chamon_settings, .sheet-control__hide--aqshy_settings, .sheet-control__hide--throwing_settings, .sheet-control__hide--sling_settings, .sheet-control__hide--explosives_settings, .sheet-control__hide--entangling_settings, .sheet-control__hide--engineering_settings, .sheet-control__hide--crossbow_settings, .sheet-control__hide--bow_settings, .sheet-control__hide--blackpowder_settings, .sheet-control__hide--two-handed_settings, .sheet-control__hide--pole-arm_settings, .sheet-control__hide--parry_settings, .sheet-control__hide--flail_settings, .sheet-control__hide--fencing_settings, .sheet-control__hide--cavalry_settings, .sheet-control__hide--brawling_settings, .sheet-control__hide--basic_settings, .sheet-control__hide--stealth_settings, .sheet-control__hide--row_settings, .sheet-control__hide--ride_settings, .sheet-control__hide--perception_settings, .sheet-control__hide--outdoor-survival_settings, .sheet-control__hide--navigation_settings, .sheet-control__hide--melee_settings, .sheet-control__hide--leadership_settings, .sheet-control__hide--intuition_settings, .sheet-control__hide--intimidate_settings, .sheet-control__hide--haggle_settings, .sheet-control__hide--gossip_settings, .sheet-control__hide--gamble_settings, .sheet-control__hide--entertain_settings, .sheet-control__hide--endurance_settings, .sheet-control__hide--drive_settings, .sheet-control__hide--dodge_settings, .sheet-control__hide--cool_settings, .sheet-control__hide--consume-alcohol_settings, .sheet-control__hide--climb_settings, .sheet-control__hide--charm-animal_settings, .sheet-control__hide--charm_settings, .sheet-control__hide--bribery_settings, .sheet-control__hide--athletics_settings, .sheet-control__hide--art_settings, .sheet-control__hide--trade_settings, .sheet-control__hide--track_settings, .sheet-control__hide--swim_settings, .sheet-control__hide--sleight-of-hand_settings, .sheet-control__hide--set-trap_settings, .sheet-control__hide--secret-signs_settings, .sheet-control__hide--sail_settings, .sheet-control__hide--research_settings, .sheet-control__hide--ranged_settings, .sheet-control__hide--pray_settings, .sheet-control__hide--play_settings, .sheet-control__hide--pick-lock_settings, .sheet-control__hide--perform_settings, .sheet-control__hide--lore_settings, .sheet-control__hide--language_settings, .sheet-control__hide--heal_settings, .sheet-control__hide--eva1uate_settings, .sheet-control__hide--channelling_settings, .sheet-control__hide--animal-training_settings, .sheet-control__hide--settings, .sheet-control__hide--animal-care_settings, .sheet-control__hide--fellowship, .sheet-control__hide--willpower, .sheet-control__hide--intelligence, .sheet-control__hide--dexterity, .sheet-control__hide--agility, .sheet-control__hide--initiative, .sheet-control__hide--toughness, .sheet-control__hide--strength, .sheet-control__hide--ballistic_skill, .sheet-control__hide--weapon_skill { +.sheet-wfrp-npcsettings__wrapper, .sheet-control__hide--npctrait_settings, .sheet-control__hide--npcattack_settings, .sheet-control__hide--Custom, .sheet-control__hide--Prayer, .sheet-control__hide--Spell, .sheet-control__hide--skill, .sheet-control__hide--characteristic, .sheet-wfrp-criticaltable__row .sheet-wfrp-criticaltable__cell--description, .sheet-wfrp-corruptiontable__row .sheet-wfrp-corruptiontable__cell--description, .sheet-wfrp-psychologytable__row .sheet-wfrp-psychologytable__cell--description, .sheet-wfrp-conditiontable__row .sheet-wfrp-conditiontable__cell--description, .sheet-wfrp-talenttable__row .sheet-wfrp-talenttable__cell--description, .sheet-control__hide--spell_settings, .sheet-control__hide--weapon_settings, .sheet-control__hide--armour_settings, .sheet-control__hide--trappings_settings, .sheet-control__hide--critical_settings, .sheet-control__hide--corruption_settings, .sheet-control__hide--psychology_settings, .sheet-control__hide--condition_settings, .sheet-control__hide--talent_settings, .sheet-control__hide--magick, .sheet-control__hide--ulgu, .sheet-control__hide--shyish, .sheet-control__hide--hysh, .sheet-control__hide--ghyran, .sheet-control__hide--ghur, .sheet-control__hide--dhar, .sheet-control__hide--chamon, .sheet-control__hide--aqshy, .sheet-control__hide--throwing, .sheet-control__hide--sling, .sheet-control__hide--explosives, .sheet-control__hide--entangling, .sheet-control__hide--engineering, .sheet-control__hide--crossbow, .sheet-control__hide--bow, .sheet-control__hide--blackpowder, .sheet-control__hide--two-handed, .sheet-control__hide--polearm, .sheet-control__hide--parry, .sheet-control__hide--flail, .sheet-control__hide--fencing, .sheet-control__hide--cavalry, .sheet-control__hide--brawling, .sheet-control__hide--basic, .sheet-control__hide--magick_settings, .sheet-control__hide--ulgu_settings, .sheet-control__hide--shyish_settings, .sheet-control__hide--hysh_settings, .sheet-control__hide--ghyran_settings, .sheet-control__hide--ghur_settings, .sheet-control__hide--dhar_settings, .sheet-control__hide--chamon_settings, .sheet-control__hide--aqshy_settings, .sheet-control__hide--throwing_settings, .sheet-control__hide--sling_settings, .sheet-control__hide--explosives_settings, .sheet-control__hide--entangling_settings, .sheet-control__hide--engineering_settings, .sheet-control__hide--crossbow_settings, .sheet-control__hide--bow_settings, .sheet-control__hide--blackpowder_settings, .sheet-control__hide--two-handed_settings, .sheet-control__hide--polearm_settings, .sheet-control__hide--parry_settings, .sheet-control__hide--flail_settings, .sheet-control__hide--fencing_settings, .sheet-control__hide--cavalry_settings, .sheet-control__hide--brawling_settings, .sheet-control__hide--basic_settings, .sheet-control__hide--stealth_settings, .sheet-control__hide--row_settings, .sheet-control__hide--ride_settings, .sheet-control__hide--perception_settings, .sheet-control__hide--outdoor-survival_settings, .sheet-control__hide--navigation_settings, .sheet-control__hide--melee_settings, .sheet-control__hide--leadership_settings, .sheet-control__hide--intuition_settings, .sheet-control__hide--intimidate_settings, .sheet-control__hide--haggle_settings, .sheet-control__hide--gossip_settings, .sheet-control__hide--gamble_settings, .sheet-control__hide--entertain_settings, .sheet-control__hide--endurance_settings, .sheet-control__hide--drive_settings, .sheet-control__hide--dodge_settings, .sheet-control__hide--cool_settings, .sheet-control__hide--consume-alcohol_settings, .sheet-control__hide--climb_settings, .sheet-control__hide--charm-animal_settings, .sheet-control__hide--charm_settings, .sheet-control__hide--bribery_settings, .sheet-control__hide--athletics_settings, .sheet-control__hide--art_settings, .sheet-control__hide--trade_settings, .sheet-control__hide--track_settings, .sheet-control__hide--swim_settings, .sheet-control__hide--sleight-of-hand_settings, .sheet-control__hide--set-trap_settings, .sheet-control__hide--secret-signs_settings, .sheet-control__hide--sail_settings, .sheet-control__hide--research_settings, .sheet-control__hide--ranged_settings, .sheet-control__hide--pray_settings, .sheet-control__hide--play_settings, .sheet-control__hide--pick-lock_settings, .sheet-control__hide--perform_settings, .sheet-control__hide--lore_settings, .sheet-control__hide--language_settings, .sheet-control__hide--heal_settings, .sheet-control__hide--eva1uate_settings, .sheet-control__hide--channelling_settings, .sheet-control__hide--animal-training_settings, .sheet-control__hide--settings, .sheet-control__hide--animal-care_settings, .sheet-control__hide--fellowship, .sheet-control__hide--willpower, .sheet-control__hide--intelligence, .sheet-control__hide--dexterity, .sheet-control__hide--agility, .sheet-control__hide--initiative, .sheet-control__hide--toughness, .sheet-control__hide--strength, .sheet-control__hide--ballistic_skill, .sheet-control__hide--weapon_skill { display: none; } @@ -1266,7 +1266,7 @@ input[name*=characteristic][value=fellowship] ~ .sheet-control__hide--fellowship display: block; } -input[name*=npc_settings][value=on] + .sheet-wfrp-npcsettings__wrapper, input[name*=settings][value="1"] + div > .sheet-control__hide--npctrait_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--npcattack_settings, input[name*=type][value=Custom] ~ .sheet-control__hide--Custom, input[name*=type][value=Prayer] ~ .sheet-control__hide--Prayer, input[name*=type][value=Spell] ~ .sheet-control__hide--Spell, input[name=attr_talent_test_type][value=skill] ~ .sheet-control__hide--skill, input[name=attr_talent_test_type][value=characteristic] ~ .sheet-control__hide--characteristic, .sheet-wfrp-criticaltable__row input[name=attr_critical_toggle][value="1"] + .sheet-wfrp-criticaltable__cell--description, .sheet-wfrp-corruptiontable__row input[name=attr_corruption_toggle][value="1"] + .sheet-wfrp-corruptiontable__cell--description, .sheet-wfrp-psychologytable__row input[name=attr_psychology_toggle][value="1"] + .sheet-wfrp-psychologytable__cell--description, .sheet-wfrp-conditiontable__row input[name=attr_condition_toggle][value="1"] + .sheet-wfrp-conditiontable__cell--description, .sheet-wfrp-talenttable__row input[name=attr_talent_toggle][value="1"] + .sheet-wfrp-talenttable__cell--description, input[name*=settings][value="1"] + div > .sheet-control__hide--spell_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--weapon_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--armour_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--trappings_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--critical_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--corruption_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--psychology_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--condition_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--talent_settings, input[name*=control][value=on] + .sheet-control__hide--magick, input[name*=control][value=on] + .sheet-control__hide--ulgu, input[name*=control][value=on] + .sheet-control__hide--shyish, input[name*=control][value=on] + .sheet-control__hide--hysh, input[name*=control][value=on] + .sheet-control__hide--ghyran, input[name*=control][value=on] + .sheet-control__hide--ghur, input[name*=control][value=on] + .sheet-control__hide--dhar, input[name*=control][value=on] + .sheet-control__hide--chamon, input[name*=control][value=on] + .sheet-control__hide--aqshy, input[name*=control][value=on] + .sheet-control__hide--throwing, input[name*=control][value=on] + .sheet-control__hide--sling, input[name*=control][value=on] + .sheet-control__hide--explosives, input[name*=control][value=on] + .sheet-control__hide--entangling, input[name*=control][value=on] + .sheet-control__hide--engineering, input[name*=control][value=on] + .sheet-control__hide--crossbow, input[name*=control][value=on] + .sheet-control__hide--bow, input[name*=control][value=on] + .sheet-control__hide--blackpowder, input[name*=control][value=on] + .sheet-control__hide--two-handed, input[name*=control][value=on] + .sheet-control__hide--pole-arm, input[name*=control][value=on] + .sheet-control__hide--parry, input[name*=control][value=on] + .sheet-control__hide--flail, input[name*=control][value=on] + .sheet-control__hide--fencing, input[name*=control][value=on] + .sheet-control__hide--cavalry, input[name*=control][value=on] + .sheet-control__hide--brawling, input[name*=control][value=on] + .sheet-control__hide--basic, input[name*=settings][value="1"] ~ div > .sheet-control__hide--magick_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ulgu_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--shyish_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--hysh_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ghyran_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ghur_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--dhar_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--chamon_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--aqshy_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--throwing_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--sling_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--explosives_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--entangling_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--engineering_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--crossbow_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--bow_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--blackpowder_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--two-handed_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--pole-arm_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--parry_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--flail_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--fencing_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--cavalry_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--brawling_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--basic_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--stealth_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--row_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ride_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--perception_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--outdoor-survival_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--navigation_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--melee_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--leadership_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--intuition_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--intimidate_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--haggle_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--gossip_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--gamble_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--entertain_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--endurance_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--drive_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--dodge_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--cool_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--consume-alcohol_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--climb_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--charm-animal_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--charm_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--bribery_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--athletics_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--art_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--trade_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--track_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--swim_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--sleight-of-hand_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--set-trap_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--secret-signs_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--sail_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--research_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ranged_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--pray_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--play_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--pick-lock_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--perform_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--lore_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--language_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--heal_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--eva1uate_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--channelling_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--animal-training_settings, input[name*=settings][value="1"] ~ div > div[class*=settings], input[name*=settings][value="1"] ~ div > .sheet-control__hide--animal-care_settings { +input[name*=npc_settings][value=on] + .sheet-wfrp-npcsettings__wrapper, input[name*=settings][value="1"] + div > .sheet-control__hide--npctrait_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--npcattack_settings, input[name*=type][value=Custom] ~ .sheet-control__hide--Custom, input[name*=type][value=Prayer] ~ .sheet-control__hide--Prayer, input[name*=type][value=Spell] ~ .sheet-control__hide--Spell, input[name=attr_talent_test_type][value=skill] ~ .sheet-control__hide--skill, input[name=attr_talent_test_type][value=characteristic] ~ .sheet-control__hide--characteristic, .sheet-wfrp-criticaltable__row input[name=attr_critical_toggle][value="1"] + .sheet-wfrp-criticaltable__cell--description, .sheet-wfrp-corruptiontable__row input[name=attr_corruption_toggle][value="1"] + .sheet-wfrp-corruptiontable__cell--description, .sheet-wfrp-psychologytable__row input[name=attr_psychology_toggle][value="1"] + .sheet-wfrp-psychologytable__cell--description, .sheet-wfrp-conditiontable__row input[name=attr_condition_toggle][value="1"] + .sheet-wfrp-conditiontable__cell--description, .sheet-wfrp-talenttable__row input[name=attr_talent_toggle][value="1"] + .sheet-wfrp-talenttable__cell--description, input[name*=settings][value="1"] + div > .sheet-control__hide--spell_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--weapon_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--armour_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--trappings_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--critical_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--corruption_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--psychology_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--condition_settings, input[name*=settings][value="1"] + div > .sheet-control__hide--talent_settings, input[name*=control][value=on] + .sheet-control__hide--magick, input[name*=control][value=on] + .sheet-control__hide--ulgu, input[name*=control][value=on] + .sheet-control__hide--shyish, input[name*=control][value=on] + .sheet-control__hide--hysh, input[name*=control][value=on] + .sheet-control__hide--ghyran, input[name*=control][value=on] + .sheet-control__hide--ghur, input[name*=control][value=on] + .sheet-control__hide--dhar, input[name*=control][value=on] + .sheet-control__hide--chamon, input[name*=control][value=on] + .sheet-control__hide--aqshy, input[name*=control][value=on] + .sheet-control__hide--throwing, input[name*=control][value=on] + .sheet-control__hide--sling, input[name*=control][value=on] + .sheet-control__hide--explosives, input[name*=control][value=on] + .sheet-control__hide--entangling, input[name*=control][value=on] + .sheet-control__hide--engineering, input[name*=control][value=on] + .sheet-control__hide--crossbow, input[name*=control][value=on] + .sheet-control__hide--bow, input[name*=control][value=on] + .sheet-control__hide--blackpowder, input[name*=control][value=on] + .sheet-control__hide--two-handed, input[name*=control][value=on] + .sheet-control__hide--polearm, input[name*=control][value=on] + .sheet-control__hide--parry, input[name*=control][value=on] + .sheet-control__hide--flail, input[name*=control][value=on] + .sheet-control__hide--fencing, input[name*=control][value=on] + .sheet-control__hide--cavalry, input[name*=control][value=on] + .sheet-control__hide--brawling, input[name*=control][value=on] + .sheet-control__hide--basic, input[name*=settings][value="1"] ~ div > .sheet-control__hide--magick_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ulgu_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--shyish_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--hysh_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ghyran_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ghur_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--dhar_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--chamon_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--aqshy_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--throwing_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--sling_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--explosives_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--entangling_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--engineering_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--crossbow_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--bow_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--blackpowder_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--two-handed_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--polearm_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--parry_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--flail_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--fencing_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--cavalry_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--brawling_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--basic_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--stealth_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--row_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ride_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--perception_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--outdoor-survival_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--navigation_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--melee_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--leadership_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--intuition_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--intimidate_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--haggle_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--gossip_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--gamble_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--entertain_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--endurance_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--drive_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--dodge_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--cool_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--consume-alcohol_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--climb_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--charm-animal_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--charm_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--bribery_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--athletics_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--art_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--trade_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--track_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--swim_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--sleight-of-hand_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--set-trap_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--secret-signs_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--sail_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--research_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--ranged_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--pray_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--play_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--pick-lock_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--perform_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--lore_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--language_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--heal_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--eva1uate_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--channelling_settings, input[name*=settings][value="1"] ~ div > .sheet-control__hide--animal-training_settings, input[name*=settings][value="1"] ~ div > div[class*=settings], input[name*=settings][value="1"] ~ div > .sheet-control__hide--animal-care_settings { display: grid; } diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html index c4a4539249..598a1029bb 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html @@ -1465,8 +1465,8 @@
-
- +
+
@@ -1938,20 +1938,20 @@
- - -
- + + +
+
- +
- @@ -1995,21 +1995,21 @@
- +
-
-
+
+
-
- +
+
- +
- +
@@ -6170,7 +6170,7 @@ - + @@ -6710,8 +6710,8 @@
-
- +
+
From 9f8ad7ccfe8924c0fd03af8ca3e30c7ed1509ca7 Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 11:07:23 -0700 Subject: [PATCH 06/11] WFRP4e - Fixing Personal/Party Goals --- .../src/pug/abstracts.pug | 12 ++++++++---- .../src/pug/components/generic/generic-textarea.pug | 3 +-- .../src/pug/layout/pc.pug | 6 +++--- Warhammer Fantasy Roleplay 4e Official/wfrp4.html | 8 ++++---- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/abstracts.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/abstracts.pug index 01ed585e58..83083fa94e 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/abstracts.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/abstracts.pug @@ -468,10 +468,12 @@ const ambitions = [ { - "name": "Short-term" + "name": "Short-term", + "attr": "short-personal" }, { - "name": "Long-term" + "name": "Long-term", + "attr": "long-personal" } ] @@ -481,10 +483,12 @@ "field": "text" }, { - "name": "Short-term" + "name": "Short-term", + "attr": "short-party" }, { - "name": "Long-term" + "name": "Long-term", + "attr": "long-party" }, { "name": "Members" diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/components/generic/generic-textarea.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/components/generic/generic-textarea.pug index a854e51a3a..c91619eb6c 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/components/generic/generic-textarea.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/components/generic/generic-textarea.pug @@ -1,6 +1,5 @@ -mixin generic-textarea(name, box_type="flex") +mixin generic-textarea(name, box_type="flex", attr= name.toLowerCase().replace(/ /g,"_")) - - const attr = name.toLowerCase().replace(/ /g,"_"); const box = (box_type === "flex") ? "wfrp-textarea" : `wfrp-textarea--grid${box_type}`; div(class=box) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug index c421e68302..21791ce47d 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/layout/pc.pug @@ -120,15 +120,15 @@ input(name="attr_setting_button_hide", type="hidden") .wfrp-ambitions.wfrp-panel.page__main h1.wfrp-panel__header(data-i18n="Ambitions") each ambition in ambitions - +generic-textarea(ambition.name, "1-25") + +generic-textarea(ambition.name, "1-25", ambition.attr) .wfrp-party.wfrp-panel.page__main h1.wfrp-panel__header(data-i18n="Party") each ambition in party if (ambition.field === "text") - +generic-field(ambition, "text", "1-25") + +generic-field(ambition, "text", "1-25", ambition.attr) else - +generic-textarea(ambition.name, "1-25") + +generic-textarea(ambition.name, "1-25", ambition.attr) .wfrp-careers.wfrp-panel.page__careers input(name="attr_control_hide--characteristics", type="hidden") diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html index 598a1029bb..ae3a2adfa3 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html @@ -5172,10 +5172,10 @@

- +
- +
@@ -5184,10 +5184,10 @@
- +
- +
From ade1c5fd5148621206627e9f68b71b6653e93d14 Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 11:15:44 -0700 Subject: [PATCH 07/11] WFRP4e - Fixing Magick Rolls --- Warhammer Fantasy Roleplay 4e Official/src/pug/rolls.pug | 2 +- Warhammer Fantasy Roleplay 4e Official/wfrp4.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/rolls.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/rolls.pug index 494b550d62..9cfa13a9ff 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/rolls.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/rolls.pug @@ -74,7 +74,7 @@ }); - [skills.basic[18], skills.advanced[2], skills.advanced[11]].forEach(skill => { + [skills.basic[18], skills.advanced[2], skills.advanced[5], skills.advanced[11]].forEach(skill => { skill.specialisations.forEach(specialisation => { const attr = specialisation.toLowerCase().replace(/ /g,"_"); diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html index ae3a2adfa3..a79c1ea6fb 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html @@ -3378,7 +3378,7 @@
- +
+
+
+ +
@@ -7172,6 +7176,22 @@
@@ -9857,21 +9877,48 @@ const request = [ `${repeating_id}_attack_type`, - `weapon_skill`, - `ballistic_skill` + "weapon_skill", + "ballistic_skill", + "basic", + "brawling", + "cavalry", + "fencing", + "flail", + "parry", + "polearm", + "two-handed", + "blackpowder", + "bow", + "crossbow", + "engineering", + "entangling", + "explosives", + "sling", + "throwing" ]; getAttrs(request, values => { - const { - [`${repeating_id}_attack_type`]:type, - weapon_skill, - ballistic_skill - } = values; + const type = values[`${repeating_id}_attack_type`]; - if (type.toLowerCase() === "weapon skill") { - setAttrs({[`${repeating_id}_attack_target`]:weapon_skill}); - } else { - setAttrs({[`${repeating_id}_attack_target`]:ballistic_skill}); + if (type.toLowerCase() === "custom") { + setAttrs({[`${repeating_id}_attack_target`]:0}); + } else { + const type_parsed = (!type.match(/\(/)) ? type.replace(/ /, "_") + .toLowerCase() : + type.split("(")[1] + .replace(/\)/g, "") + .replace(/ /, "_") + .toLowerCase(); + + const value = values[type_parsed]; + + const update = {}; + + update[`${repeating_id}_attack_target`] = value; + + console.log(update) + + setAttrs(update); } }); } @@ -9881,7 +9928,23 @@ getSectionIDs("attacks", ids => { const attrs = [ "weapon_skill", - "ballistic_skill" + "ballistic_skill", + "basic", + "brawling", + "cavalry", + "fencing", + "flail", + "parry", + "polearm", + "two-handed", + "blackpowder", + "bow", + "crossbow", + "engineering", + "entangling", + "explosives", + "sling", + "throwing" ]; for (const id of ids) { @@ -9891,14 +9954,18 @@ getAttrs(attrs, values => { const update = []; - const {weapon_skill, ballistic_skill} = values; - for (const id of ids) { - const type = values[`repeating_attacks_${id}_attack_type`].toLowerCase(); + const type = values[`repeating_attacks_${id}_attack_type`].toLowerCase(); + const type_parsed = (!type.match(/\(/)) ? type.replace(/ /, "_") + .toLowerCase() : + type.split("(")[1] + .replace(/\)/g, "") + .replace(/ /, "_") + .toLowerCase(); const target = `repeating_attacks_${id}_attack_target`; - if (type === "ranged") update[target] = ballistic_skill; - if (type === "melee") update[target] = weapon_skill; + if (type_parsed === "custom") return; + else update[target] = values[type_parsed]; } setAttrs(update); @@ -10030,7 +10097,10 @@ wfrpModule.wfrp.skills.forEach(skill => { }); wfrpModule.wfrp.specialisations.forEach(specialisation => { - on(`change:${specialisation} change:${specialisation}_advances change:${specialisation}_bonus change:${specialisation}_characteristic`, eventInfo => {wfrpModule.calculateSpecialisation(specialisation)}); + on(`change:${specialisation} change:${specialisation}_advances change:${specialisation}_bonus change:${specialisation}_characteristic`, eventInfo => { + wfrpModule.calculateSpecialisation(specialisation); + wfrpModule.cascadeNPCAttacks(); + }); }); wfrpModule.wfrp.repeating_skills.forEach(section => { @@ -10597,13 +10667,13 @@ const wfrpDragAndDrop = ( () => { const trait = compendium_pages; - if (trait.name.match(/(weapon|ranged|tentacle|bite|horn|tail|tongue)/gi)) { + if (trait.name.match(/(weapon|ranged|tentacle|bite|horn|tail|tongue|claw)/gi)) { const attack = parseAttack(name, trait.data.Description); updateAttrs = {...updateAttrs, ...attack}; - } else { + } else if (trait) { const repeating_id = generateRowID(); const row = `repeating_traits_${repeating_id}`; From 87ba0b13f0f46397462e2d794d31290fa7c557b3 Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 12:45:30 -0700 Subject: [PATCH 10/11] WFRP4e - Fixing Encumbrance Issues --- .../src/js/sheetworkers.js | 10 ++++++---- Warhammer Fantasy Roleplay 4e Official/wfrp4.html | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js b/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js index 9857d47a3f..989a7da265 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js +++ b/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js @@ -86,7 +86,7 @@ const wfrpModule = ( () => { "fencing", "flail", "parry", - "pole-arm", + "polearm", "two-handed", "blackpowder", "bow", @@ -1253,7 +1253,7 @@ const wfrpModule = ( () => { } const calculateMaxEncumbrance = () => { - const attrs = ["strength_bonus", "toughness_bonus", "encumbrance_bonus"]; + const attrs = ["strength_bonus", "toughness_bonus", "encumbrance_bonus", "encumbrance_mod"]; getAttrs(attrs, values => { const strength_bonus = parseInt(values["strength_bonus"]) || 0; @@ -1296,6 +1296,8 @@ const wfrpModule = ( () => { getAttrs(attrs, values => { + console.log(values); + let total_enc = 0; armour_array.forEach(id => { @@ -1315,10 +1317,10 @@ const wfrpModule = ( () => { trappings_array.forEach(id => { const enc = parseInt(values[`repeating_trappings_${id}_trappings_enc`]) || 0; const amount = parseInt(values[`repeating_trappings_${id}_trappings_amount`]) || 1; - const worn = parseInt(values[`repeating_trappings_${id}_trappings_worn`]) || false; + const worn = values[`repeating_trappings_${id}_trappings_worn`] || false; const inenc = values[`repeating_trappings_${id}_trappings_inenc`] || "0"; - const total = (worn === "on") ? (enc -1) * amount : enc * amount; + const total = (worn === "on") ? (enc - 1) * amount : enc * amount; if (inenc === "on") total_enc += total; }); diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html index 3c71d914fd..49b517e542 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html @@ -8469,7 +8469,7 @@ "fencing", "flail", "parry", - "pole-arm", + "polearm", "two-handed", "blackpowder", "bow", @@ -9636,7 +9636,7 @@ } const calculateMaxEncumbrance = () => { - const attrs = ["strength_bonus", "toughness_bonus", "encumbrance_bonus"]; + const attrs = ["strength_bonus", "toughness_bonus", "encumbrance_bonus", "encumbrance_mod"]; getAttrs(attrs, values => { const strength_bonus = parseInt(values["strength_bonus"]) || 0; @@ -9679,6 +9679,8 @@ getAttrs(attrs, values => { + console.log(values); + let total_enc = 0; armour_array.forEach(id => { @@ -9698,10 +9700,10 @@ trappings_array.forEach(id => { const enc = parseInt(values[`repeating_trappings_${id}_trappings_enc`]) || 0; const amount = parseInt(values[`repeating_trappings_${id}_trappings_amount`]) || 1; - const worn = parseInt(values[`repeating_trappings_${id}_trappings_worn`]) || false; + const worn = values[`repeating_trappings_${id}_trappings_worn`] || false; const inenc = values[`repeating_trappings_${id}_trappings_inenc`] || "0"; - const total = (worn === "on") ? (enc -1) * amount : enc * amount; + const total = (worn === "on") ? (enc - 1) * amount : enc * amount; if (inenc === "on") total_enc += total; }); From 2aa25ae86790fba27486fb8cee6dc567066f0528 Mon Sep 17 00:00:00 2001 From: Nic Bradley Date: Mon, 26 Oct 2020 12:47:06 -0700 Subject: [PATCH 11/11] WFRP4e - Updating Sheet Version --- Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js | 2 -- Warhammer Fantasy Roleplay 4e Official/src/pug/wfrp4.pug | 2 +- Warhammer Fantasy Roleplay 4e Official/wfrp4.html | 4 +--- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js b/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js index 989a7da265..2883da6f57 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js +++ b/Warhammer Fantasy Roleplay 4e Official/src/js/sheetworkers.js @@ -1296,8 +1296,6 @@ const wfrpModule = ( () => { getAttrs(attrs, values => { - console.log(values); - let total_enc = 0; armour_array.forEach(id => { diff --git a/Warhammer Fantasy Roleplay 4e Official/src/pug/wfrp4.pug b/Warhammer Fantasy Roleplay 4e Official/src/pug/wfrp4.pug index b305d1d11b..b11916587e 100644 --- a/Warhammer Fantasy Roleplay 4e Official/src/pug/wfrp4.pug +++ b/Warhammer Fantasy Roleplay 4e Official/src/pug/wfrp4.pug @@ -3,7 +3,7 @@ include rolls.pug include components/_component-index.pug -input(name="attr_sheet_version", type="hidden", value="1.0.0") +input(name="attr_sheet_version", type="hidden", value="1.0.1") input(name="attr_npc", type="hidden", value="0") input(name="attr_nav", type="hidden", value="main") input(name="attr_difficulty_query", type="hidden", value="?{Difficulty|Average (+20), 20|Very Easy (+60), 60|Easy (+40), 40|Average (+20), 20|Challenging (0), 0|Difficult (-10), -10|Hard (-20), -20|Very Hard (-30), -30}") diff --git a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html index 49b517e542..4cc486046f 100644 --- a/Warhammer Fantasy Roleplay 4e Official/wfrp4.html +++ b/Warhammer Fantasy Roleplay 4e Official/wfrp4.html @@ -1,5 +1,5 @@ - + @@ -9679,8 +9679,6 @@ getAttrs(attrs, values => { - console.log(values); - let total_enc = 0; armour_array.forEach(id => {