From 32729fe38ebf414fe0f8048a5c12c699e2c45725 Mon Sep 17 00:00:00 2001 From: kvan7 Date: Sun, 19 Jan 2025 21:06:02 -0600 Subject: [PATCH] v0.6.1 Fixes: Uniques stat ranges broken again #329 minor oopsy --- README.md | 2 +- docs/.vitepress/config.js | 2 +- main/package-lock.json | 6 +++--- main/package.json | 2 +- renderer/src/parser/stat-translations.ts | 10 ++++++++-- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5eb61a8e..d78bf42b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ![Perfect Jewelers Orb](./renderer/public/images/jeweler.png) Exiled Exchange 2 -![GitHub Downloads (specific asset, latest release)](https://img.shields.io/github/downloads/kvan7/exiled-exchange-2/latest/Exiled-Exchange-2-Setup-0.6.0.exe?style=plastic&link=https%3A%2F%2Ftooomm.github.io%2Fgithub-release-stats%2F%3Fusername%3Dkvan7%26repository%3DExiled-Exchange-2) +![GitHub Downloads (specific asset, latest release)](https://img.shields.io/github/downloads/kvan7/exiled-exchange-2/latest/Exiled-Exchange-2-Setup-0.6.1.exe?style=plastic&link=https%3A%2F%2Ftooomm.github.io%2Fgithub-release-stats%2F%3Fusername%3Dkvan7%26repository%3DExiled-Exchange-2) ![GitHub Tag](https://img.shields.io/github/v/tag/kvan7/exiled-exchange-2?style=plastic&label=latest%20version) ![GitHub commits since latest release (branch)](https://img.shields.io/github/commits-since/kvan7/exiled-exchange-2/latest/dev?style=plastic) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 4b1f352d..adbd4bf2 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -20,7 +20,7 @@ export default defineConfig({ }, themeConfig: { // logo: 'TODO', https://github.com/vuejs/vitepress/issues/1401 - appVersion: '0.6.0', + appVersion: '0.6.1', github: { releasesUrl: 'https://github.com/Kvan7/Exiled-Exchange-2/releases' }, diff --git a/main/package-lock.json b/main/package-lock.json index a1a02769..eb5ecabf 100644 --- a/main/package-lock.json +++ b/main/package-lock.json @@ -1,12 +1,12 @@ { "name": "exiled-exchange-2", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "exiled-exchange-2", - "version": "0.6.0", + "version": "0.6.1", "dependencies": { "electron-overlay-window": "3.3.0", "uiohook-napi": "1.5.x" @@ -5754,4 +5754,4 @@ } } } -} +} \ No newline at end of file diff --git a/main/package.json b/main/package.json index 0e4345de..cd0a6283 100644 --- a/main/package.json +++ b/main/package.json @@ -1,6 +1,6 @@ { "name": "exiled-exchange-2", - "version": "0.6.0", + "version": "0.6.1", "private": true, "scripts": { "dev": "node build/script.mjs", diff --git a/renderer/src/parser/stat-translations.ts b/renderer/src/parser/stat-translations.ts index d05bf74e..0e4fa959 100644 --- a/renderer/src/parser/stat-translations.ts +++ b/renderer/src/parser/stat-translations.ts @@ -249,7 +249,10 @@ export function tryParseTranslation( (implicitTestString in item.info.unique.stats || negatedImplicitTestString in item.info.unique.stats) ) { - if (negatedImplicitTestString in item.info.unique.stats) { + if ( + negatedImplicitTestString !== implicitTestString && + negatedImplicitTestString in item.info.unique.stats + ) { const thisModValues = item.info.unique.stats[negatedImplicitTestString]; combination.values.forEach((stat, index) => { @@ -284,7 +287,10 @@ export function tryParseTranslation( refName in item.info.unique.stats || negatedRefName in item.info.unique.stats ) { - if (negatedRefName in item.info.unique.stats) { + if ( + negatedRefName !== refName && + negatedRefName in item.info.unique.stats + ) { const thisModValues = item.info.unique.stats[negatedRefName]; combination.values.forEach((stat, index) => { const tierBounds = thisModValues[index];