From da0c410b4e68f294e89df0838df0775142bfc2b8 Mon Sep 17 00:00:00 2001 From: Brett Nash Date: Tue, 2 Sep 2025 21:48:13 -0700 Subject: [PATCH] RolemasterUnified Official: Bugfix: Add statuspercent_max at 100 - Force statuspercent_max to be 100. --- .../rolemasterunified.html | 27 +++++-------------- RolemasterUnified_Official/sheet.json | 2 +- RolemasterUnified_Official/updates.md | 4 +++ 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/RolemasterUnified_Official/rolemasterunified.html b/RolemasterUnified_Official/rolemasterunified.html index 954a8ce254..a963a68413 100644 --- a/RolemasterUnified_Official/rolemasterunified.html +++ b/RolemasterUnified_Official/rolemasterunified.html @@ -6505,7 +6505,7 @@ Sheet Version:
-Revision 3f4f65f66d31a7dd01eba8307046fe96920ab909 +Revision 24b4044016fe6b68384182bb154b2a67a5c9abb2
@@ -18749,10 +18749,15 @@ function doVersionCheck(version, sheettype) { } if (version == 11) { - setAttrs({allpenalties: 0, statuspercent: 0}); + // Hoised to 13 version = 12; } + if (version == 12) { + setAttrs({allpenalties: 0, statuspercent: 0, statuspercent_max: 100 }); + version = 13; + } + if (oldversion != version) { addPendingFunction(`Version update to ${version}`, () => { setAttrsPending({version: version}); @@ -18760,24 +18765,6 @@ function doVersionCheck(version, sheettype) { } checkPending(); - - addPendingFunction("Set default Token", () => { - setDefaultToken({ - cd_bar1_l: 'hp', - bar1_link:'hp', - cd_bar2_l: 'pp', - bar2_link: 'pp', - cd_bar3_l: 'allpenalties', - bar3_link: 'allpenalties', - cd_bar4_l: 'aptrack', - bar4_link: 'aptrack', - showname: true, - showplayers_name: true, - width: 70, - height: 70 - }); - }); - } /** diff --git a/RolemasterUnified_Official/sheet.json b/RolemasterUnified_Official/sheet.json index 00bad705ee..0fb9fb9460 100644 --- a/RolemasterUnified_Official/sheet.json +++ b/RolemasterUnified_Official/sheet.json @@ -19,5 +19,5 @@ "descriptiontranslationkey": "DefaultCurrency" } ], - "version": "1756790389" + "version": "1756874859" } diff --git a/RolemasterUnified_Official/updates.md b/RolemasterUnified_Official/updates.md index 418a3a96f6..adff7acfc2 100644 --- a/RolemasterUnified_Official/updates.md +++ b/RolemasterUnified_Official/updates.md @@ -1,3 +1,7 @@ +# 2025-09-04 + +- Force statuspercent_max to be 100. + # 2025-09-02 - Allow Injury strings to start with "Injury: " to make pasting easier