8000 fix: classic currency again by Mctalian · Pull Request #384 · Mctalian/RPGLootFeed · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: classic currency again #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 12, 2025
Merged

fix: classic currency again #384

merged 4 commits into from
Jun 12, 2025

Conversation

Mctalian
Copy link
Owner

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 10, 2025 18:50
Copilot

This comment was marked as outdated.

@Mctalian Mctalian requested a review from Copilot June 10, 2025 18:50
Copy link
github-actions bot commented Jun 10, 2025

Packaged ZIP files

RPGLootFeed ZIP (with libs) (377680 ➡️ 377602, -0.02%) 🟢
RPGLootFeed ZIP (nolib) (205192 ➡️ 205114, -0.04%) 🟢

Last Updated: 6/11/2025, 9:33:39 PM (UTC)

@Mctalian Mctalian force-pushed the hotfix-classic-currency branch from d42c0ce to a2472bc Compare June 10, 2025 18:52
Copilot

This comment was marked as outdated.

@Mctalian Mctalian requested a review from Copilot June 10, 2025 18:56
Copilot

This comment was marked as outdated.

@Mctalian Mctalian requested a review from Copilot June 11, 2025 15:49
Copilot

This comment was marked as outdated.

@Mctalian Mctalian force-pushed the hotfix-classic-currency branch from 546d01d to 77a7a28 Compare June 11, 2025 21:18
@Mctalian Mctalian requested a review from Copilot June 11, 2025 21:19
Copilot

This comment was marked as outdated.

@Mctalian Mctalian force-pushed the hotfix-classic-currency branch from 77a7a28 to b134a53 Compare June 11, 2025 21:21
@Mctalian Mctalian force-pushed the hotfix-classic-currency branch from b134a53 to a620c32 Compare June 11, 2025 21:32
@Mctalian Mctalian requested a review from Copilot June 12, 2025 04:38
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses classic currency display issues and updates key currency processing logic. It adds a new stub for GetCurrencyLink in the WoWGlobals mocks, refactors pattern extraction in AddonMethods, revises the Currency module’s logging and parsing behavior, and expands Makefile targets for testing.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
RPGLootFeed_spec/_mocks/WoWGlobals/Functions.lua Adds a stub for GetCurrencyLink for generating test currency links.
RPGLootFeed/utils/AddonMethods.lua Removes legacy fallback logic in pattern segment extraction.
RPGLootFeed/Features/_Internals/LootDisplayProperties.lua Adds debug logging for filtered elements.
RPGLootFeed/Features/Money.lua Adds a debug log branch for zero money change.
RPGLootFeed/Features/Currency/Currency.lua Refactors logging, pattern extraction, and processing of currency changes.
Makefile Introduces new targets to run tests on specific files or patterns.
Comments suppressed due to low confidence (4)

RPGLootFeed/utils/AddonMethods.lua:149

  • Ensure that the removal of the fallback branch for cases when midStart is nil does not adversely affect locale strings that do not contain a number.
midPattern = string.sub(localeString, preEnd + 1, midStart - 1)

RPGLootFeed/Features/Currency/Currency.lua:251

  • Update the function's documentation to reflect that it now returns only the quantityChange (a number) instead of a currency link and quantity pair.
function Currency:ParseCurrencyChangeMessage(msg)

RPGLootFeed/Features/Currency/Currency.lua:309

  • Confirm that overriding currencyInfo.quantity with the parsed quantityChange when it is zero is the intended behavior and does not inadvertently alter the expected currency state.
if currencyInfo.quantity == 0 then

RPGLootFeed/Features/Currency/Currency.lua:269

  • [nitpick] Verify that switching from G_RLF:LogDebug to self:LogDebug consistently throughout the module maintains the intended logging behavior and parameter order.
local currencyId = G_RLF:ExtractCurrencyID(msg)

8000 @Mctalian Mctalian merged commit cfe2262 into main Jun 12, 2025
7 checks passed
@Mctalian Mctalian deleted the hotfix-classic-currency branch June 12, 2025 14:24
@Mctalian
Copy link
Owner Author

🎉 This PR is included in version 1.24.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0