From 95daff59ef49699a2655846f77b448d75d3dc24a Mon Sep 17 00:00:00 2001
From: William Barker <87542055+WilliamBarkerCoC@users.noreply.github.com>
Date: Sun, 3 Aug 2025 22:35:47 -0400
Subject: [PATCH] [Thorgal] New Feature: Rollable Athleticism, new records and
Notes
Player requested changes to make Athleticism rollable, to change the number of records to match the rulebook, as opposed to the quickstart, and to add Notes ability to record special features and abilities
---
Thorgal/Thorgal.css | 16 ++++
Thorgal/Thorgal.html | 167 ++++++++++++++++++++++++++++++++++++---
Thorgal/translation.json | 3 +-
3 files changed, 173 insertions(+), 13 deletions(-)
diff --git a/Thorgal/Thorgal.css b/Thorgal/Thorgal.css
index f403fd1e6c..ce87bd7dc2 100644
--- a/Thorgal/Thorgal.css
+++ b/Thorgal/Thorgal.css
@@ -1016,6 +1016,22 @@ body.sheet-darkmode .sheet-rolltemplate-check button {
width:268px;
}
+/* Show/Hide from CSS Wizardry */
+
+.sheet-toggle-show {
+ height: 22px;
+ width: 16px;
+ margin:0;
+ padding: 8px 0px 0px 0px;
+ border: 1px solid Black;
+ background-color: Green;
+}
+
+input[type="checkbox"].sheet-toggle-show:not(:checked) ~ div.sheet-body {
+ display: none;
+}
+
+
/* Buttons Styling */
.charsheet button[type=action].sheet-textButton,
diff --git a/Thorgal/Thorgal.html b/Thorgal/Thorgal.html
index 02e5357376..e0d68fd670 100644
--- a/Thorgal/Thorgal.html
+++ b/Thorgal/Thorgal.html
@@ -62,7 +62,10 @@
-
+
+
+
@@ -429,6 +449,7 @@
+
@@ -901,7 +1041,7 @@ on("change:coordination_base change:wit_base ", function(eventInfo) {
});
- on('clicked:bruteForce-action clicked:intimidate-action clicked:toughness-action clicked:crafting-action clicked:generalKnowledge-action clicked:arcaneKnowledge-action clicked:vehicleHandling-action clicked:reflex-action clicked:finesse-action clicked:stealth-action clicked:contacts-action clicked:trickery-action clicked:survival-action clicked:rangedCombat-action clicked:sharpSenses-action clicked:charisma-action clicked:starHeritage-action clicked:willpower-action', async (eventInfo) => {
+ on('clicked:bruteForce-action clicked:intimidate-action clicked:toughness-action clicked:crafting-action clicked:generalKnowledge-action clicked:arcaneKnowledge-action clicked:vehicleHandling-action clicked:reflex-action clicked:finesse-action clicked:stealth-action clicked:contacts-action clicked:trickery-action clicked:survival-action clicked:rangedCombat-action clicked:sharpSenses-action clicked:charisma-action clicked:starHeritage-action clicked:willpower-action clicked:athleticism-action', async (eventInfo) => {
console.log(" Clicked ---action");
console.log(" triggerName " + eventInfo.triggerName);
@@ -928,6 +1068,7 @@ on("change:coordination_base change:wit_base ", function(eventInfo) {
case "clicked:charisma-action": Attribute = "charisma"; AttributeName = "Charisma"; AttributeBase = "charismaBase"; break;
case "clicked:starheritage-action": Attribute = "starHeritage"; AttributeName = "Star Heritage"; AttributeBase = "starHeritageBase"; break;
case "clicked:willpower-action": Attribute = "willpower"; AttributeName = "Willpower"; AttributeBase = "willpowerBase"; break;
+ case "clicked:athleticism-action": Attribute = "athleticismBase"; AttributeName = "Athleticism"; AttributeBase = "athleticismBase"; break;
default:
Attribute = "None";
}
@@ -988,7 +1129,7 @@ on("change:coordination_base change:wit_base ", function(eventInfo) {
- on('clicked:melee1-action clicked:melee2-action clicked:range1-action clicked:range2-action clicked:power1-action clicked:power2-action clicked:power3-action clicked:power4-action', async (eventInfo) => {
+ on('clicked:melee1-action clicked:melee2-action clicked:melee3-action clicked:range1-action clicked:range2-action clicked:power1-action clicked:power2-action clicked:power3-action clicked:power4-action clicked:power5-action', async (eventInfo) => {
console.log(" Clicked Melee|Range|Powers-action");
console.log(" triggerName " + eventInfo.triggerName);
@@ -1003,12 +1144,14 @@ on("change:coordination_base change:wit_base ", function(eventInfo) {
switch (eventInfo.triggerName) {
case "clicked:melee1-action": WeaponName = "@{mWeaponName1}"; Skill = "@{mBFFUc1}"; Bonus = "@{mAccuracy1}"; Damage = "mDamage1"; DLrequest = " {{DL=[[?{Difficulty Level|10}]]}} "; break;
case "clicked:melee2-action": WeaponName = "@{mWeaponName2}"; Skill = "@{mBFFUc2}"; Bonus = "@{mAccuracy2}"; Damage = "mDamage2"; DLrequest = " {{DL=[[?{Difficulty Level|10}]]}} "; break;
+ case "clicked:melee3-action": WeaponName = "@{mWeaponName3}"; Skill = "@{mBFFUc3}"; Bonus = "@{mAccuracy3}"; Damage = "mDamage3"; DLrequest = " {{DL=[[?{Difficulty Level|10}]]}} "; break;
case "clicked:range1-action": WeaponName = "@{rWeaponName1}"; Skill = "@{rRangedCombat1}"; Bonus = "0" ; Damage = "rDamage1"; DLrequest = " {{DL=[[?{Difficulty Level|10}]]}} "; break;
case "clicked:range2-action": WeaponName = "@{rWeaponName2}"; Skill = "@{rRangedCombat2}"; Bonus = "0" ; Damage = "rDamage2"; DLrequest = " {{DL=[[?{Difficulty Level|10}]]}} "; break;
case "clicked:power1-action": WeaponName = "@{pName1}"; Skill = "@{starHeritage}"; Bonus = "0"; Damage = "starHeritage"; DLrequest = " {{DL=[[@{pDL1}]]}}"; break;
case "clicked:power2-action": WeaponName = "@{pName2}"; Skill = "@{starHeritage}"; Bonus = "0"; Damage = "starHeritage"; DLrequest = " {{DL=[[@{pDL2}]]}}"; break;
case "clicked:power3-action": WeaponName = "@{pName3}"; Skill = "@{starHeritage}"; Bonus = "0"; Damage = "starHeritage"; DLrequest = " {{DL=[[@{pDL3}]]}}"; break;
case "clicked:power4-action": WeaponName = "@{pName4}"; Skill = "@{starHeritage}"; Bonus = "0"; Damage = "starHeritage"; DLrequest = " {{DL=[[@{pDL4}]]}}"; break;
+ case "clicked:power5-action": WeaponName = "@{pName5}"; Skill = "@{starHeritage}"; Bonus = "0"; Damage = "starHeritage"; DLrequest = " {{DL=[[@{pDL5}]]}}"; break;
default:
WeaponName = "None";
}
diff --git a/Thorgal/translation.json b/Thorgal/translation.json
index fd44151188..49e2b7e151 100644
--- a/Thorgal/translation.json
+++ b/Thorgal/translation.json
@@ -62,7 +62,8 @@
"weaponName-u":"WEAPON NAME",
"type-u":"TYPE",
"attacks-u":"ATTACKS",
- "bFFUc-u":"BF/F/UC",
+ "bFF-u":"BF/F",
+ "bruteForceOrFinesse-c":"Brute Force or Finesse",
"accuracy-u":"ACCURACY",
"hit-u":"HIT",
"damage-u":"DAMAGE",