diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c46435..de91061 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ ## Release/Patch Notes -### Version 1.0.2 - 2021-11- +### Version 1.0.3 - 2022-02-04 +* Other - Update compatible version to v9 +* Fix - The new system option to hide SAN score was not also hiding Ritual proficiency, making it trivial to back-calculate the SAN score for players that know the formula for the Ritual skill. +* Fix - In Foundry v9, seems like the sections below the nav were anchored to the bottom of the window, so as the window got bigger the section would float away from the nav leaving a big gap. Attempted to fix CSS for this. + +### Version 1.0.2 - 2021-11-04 * Fix - Pregen Agents were getting duplicated Unarmed Strike items added on creation. * Fix - Unarmed Strike item in the compendium was using 'Melee Combat' instead of 'Unarmed Combat' as its skill. * Enhancment - Added system option for a world to make SAN target and skill rolls hidden from non-GM players. SAN tests change to blind rolls for players who are not GM. diff --git a/css/deltagreen.css b/css/deltagreen.css index 50f2b15..cdf5c19 100644 --- a/css/deltagreen.css +++ b/css/deltagreen.css @@ -255,6 +255,7 @@ section.window-content{ .deltagreen .sheet-body .tab, .deltagreen .sheet-body .tab .editor { height: 100%; + flex: auto; } .deltagreen .resource-label { diff --git a/module/deltagreen.js b/module/deltagreen.js index 37f218c..b11d2fe 100644 --- a/module/deltagreen.js +++ b/module/deltagreen.js @@ -77,6 +77,11 @@ Hooks.once('init', async function() { } }); + Handlebars.registerHelper('if_not_eq', function(a, b, opts) { + if (a != b) { return opts.fn(this); } + return opts.inverse(this); + }); + Handlebars.registerHelper('if_gt', function(a, b, trueVal, falseVal) { if (a > b) { return trueVal; diff --git a/module/roll/roll.js b/module/roll/roll.js index 9f00852..b37c37b 100644 --- a/module/roll/roll.js +++ b/module/roll/roll.js @@ -23,7 +23,7 @@ export async function sendPercentileTestToChat(actor, skill, target, rollMode){ setting = game.settings.get("deltagreen", "keepSanityPrivate"); - if(setting === true && skill === 'SAN' && !game.user.isGM){ + if(setting === true && (skill === 'SAN' || skill === 'RITUAL') && !game.user.isGM){ rollMode = 'blindroll'; } @@ -278,7 +278,7 @@ export async function showModifyPercentileTestDialogue(actor, label, originalTar let isSanCheck = false; let hideSanTarget = false; - if(label === 'SAN'){ + if(label === 'SAN' || label === 'RITUAL'){ isSanCheck = true; diff --git a/system.json b/system.json index 0f328ac..dcbb218 100644 --- a/system.json +++ b/system.json @@ -7,9 +7,9 @@ "url": "https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial", "license": "LICENSE.txt", "flags": {}, - "version": "1.0.2", + "version": "1.0.3", "minimumCoreVersion": "0.8.6", - "compatibleCoreVersion": "0.8.9", + "compatibleCoreVersion": "9", "scripts": [], "esmodules": [ "module/deltagreen.js" @@ -100,7 +100,7 @@ "dependencies": [], "socket": false, "manifest": "https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/raw/master/system.json", - "download": "https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/archive/v1.0.2.zip", + "download": "https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/archive/v1.0.3.zip", "protected": false, "gridDistance": 1, "gridUnits": "m", diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index 8a9f73d..ac0a9e1 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -93,7 +93,9 @@ {{!-- Skills Tab --}}