From f5e0b096368bc52475dd402637ddfe10d6de45bf Mon Sep 17 00:00:00 2001 From: finderski Date: Mon, 22 Mar 2021 05:42:39 -0400 Subject: [PATCH] Official Savage Worlds v1.00.11 Update Fixed the following bugs: * Encumbrance not applying to Agility linked skills * Avatar URL missing, causing the target-pic macro to fail --- .../SavageWorldsCharSheet.css | 2 +- .../SavageWorldsCharSheet.html | 46 +++++++++++++++---- Official Savage Worlds/sheet.json | 2 +- Official Savage Worlds/translation.json | 6 ++- 4 files changed, 44 insertions(+), 12 deletions(-) diff --git a/Official Savage Worlds/SavageWorldsCharSheet.css b/Official Savage Worlds/SavageWorldsCharSheet.css index 9b6250449c..12138b9d38 100644 --- a/Official Savage Worlds/SavageWorldsCharSheet.css +++ b/Official Savage Worlds/SavageWorldsCharSheet.css @@ -4098,7 +4098,7 @@ div.sheet-vehicleCrewBox { } .sheet-miscconfig { - height: 230px; + height: 235px; } .sheet-fnconfig { diff --git a/Official Savage Worlds/SavageWorldsCharSheet.html b/Official Savage Worlds/SavageWorldsCharSheet.html index 28c54c80a5..a7c262c2af 100644 --- a/Official Savage Worlds/SavageWorldsCharSheet.html +++ b/Official Savage Worlds/SavageWorldsCharSheet.html @@ -1,4 +1,4 @@ - + @@ -135,7 +135,7 @@ } //Force a change in a field to trigger a sheet worker and then reset the
- //This may be needed when an existing field is modified that's used in a roll button (e.g. Trademark Weapon modified how the skill formula is called, resulting in each we) + //This may be needed when an existing field is modified that's used in a roll button (e.g. Trademark Weapon modified how the skill formula is called, resulting in each we) const stepwiseFaux = function(section,field) { //only for repeating Sections //section = the repeating section @@ -200,7 +200,7 @@ /* ---- Begin Sheet Version Validation & Update ---- */ const sheetVersionPrefix = "Official Savage Worlds v"; - const sheetVersion = "1.00.10"; + const sheetVersion = "1.00.11"; const upgradeSheet = function(version, versionone, versiontwo, versionthree,characterName) { //version format 1.00.01 (string) @@ -256,6 +256,9 @@ if(versionthree < 0.10) { setattrvals["newcontent"] = "unread"; } + if(versionthree < 0.11) { + setattrvals["newcontent"] = "unread"; + } else { log("Upgrade",`Sheet already updgraded (${characterName})`,"lime"); } @@ -1512,7 +1515,7 @@ let button = `${field}button`; let formula = `${field}formula`; let sattrs = {}; - if(v[field] === "(AGL)" || v[field] === "(STR)" || v[field] === "1") { + if(v[field] === "(AGL)" || v[field] === "agl-u" || v[field] === "str-u" || v[field] === "(STR)" || v[field] === "1") { console.log(`Need to set trait (${field}) to use Encumbrance`); sattrs[button] = `@{setmodsenc}`; sattrs[formula] = `@{ModSumEnc}[Distracted, Wounds, Fatigue, Encumbrance]`; @@ -3113,8 +3116,9 @@ let finalCharacterDetails = {}; //set Pace typeof monsterObj.pace !== "undefined" ? finalCharacterDetails["pace"] = monsterObj.pace : log("Pace","Not found",r20color); - //set Token URL + //set Token and Avatar URLs typeof monsterObj.Token !== "undefined" ? finalCharacterDetails["tokenURL"] = monsterObj.Token : log("Token URL","Not found",r20color); + typeof monsterObj.avatarURL !== "undefined" ? finalCharacterDetails["avatarURL"] = monsterObj.avatarURL : typeof monsterObj.Token !== "undefined" ? finalCharacterDetails["avatarURL"] = monsterObj.Token : log("Avatar URL","Not found",r20color); //set description typeof monsterObj.biography !== "undefined" ? finalCharacterDetails["physdescription"] = monsterObj.biography : log("Biography","Not found",r20color); //set Edges @@ -5577,7 +5581,7 @@ - +
@@ -7959,6 +7963,9 @@ +
@@ -8011,6 +8018,27 @@

Release Notes

+ + + +
+

Bug Fix Release

+

+ This release focuses on Bug Fixes +

+

Bugs Fixed

+
    +
  • Fixed the issue of the missing avatar URL for the target-pic macro included with the the Savage Worlds Core Rules Bundle Compendium.
  • +
  • Fixed an issue where some Agility linked skills (and all Agility-linked custom skills) weren't applying the encumbrance penalty.
  • +
+

Things to be aware of

+
    +
  • Pace currently doesn't take into account penalties due to encumbrance; this is being worked on and will be corrected soon.
  • +
  • The condensed view of the character sheet has problems if you are using skill specialization. In most situations it should be fine, however, you may experience odd display issues if specializations are used.
  • +
+
Using character sheet: -
- ACCEPTING DROP FROM COMPENDIUM -
+ +