Skip to content

fix: parsing of boosted creature that is fictitious #440

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 3 commits into from
Feb 3, 2025

Conversation

tobiasehlert
Copy link
Member

@tobiasehlert tobiasehlert commented Feb 3, 2025

This pull request includes changes to improve the handling of boosted creatures in the TibiaCreaturesOverview module. The most important changes include adding a new regex for boosted creature races, updating the implementation to handle cases where the boosted creature is not in the creature list, and adding a new test case for fictitious boosted creatures.

Enhancements to boosted creature handling:

  • src/TibiaCreaturesOverview.go: Added BoostedCreatureRaceRegex to match boosted creature races from image URLs.
  • src/TibiaCreaturesOverview.go: Updated TibiaCreaturesOverviewImpl function to include a fallback mechanism for boosted creatures not present in the creature list, extracting the name and race using the new regex.

Testing improvements:

fix #438

@tobiasehlert tobiasehlert added the go Pull requests that update Go code label Feb 3, 2025
@tobiasehlert tobiasehlert self-assigned this Feb 3, 2025
@tobiasehlert tobiasehlert linked an issue Feb 3, 2025 that may be closed by this pull request
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.80%. Comparing base (8c63e47) to head (d7bf28c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #440      +/-   ##
==========================================
+ Coverage   79.76%   79.80%   +0.03%     
==========================================
  Files          22       22              
  Lines        3648     3654       +6     
==========================================
+ Hits         2910     2916       +6     
  Misses        600      600              
  Partials      138      138              

Copy link

sonarqubecloud bot commented Feb 3, 2025

@tobiasehlert tobiasehlert merged commit 92058bd into main Feb 3, 2025
8 checks passed
@tobiasehlert tobiasehlert deleted the fix-438-bootsted-creature-bug branch February 3, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

bug: boosted creature can be a creature not listed on creatures
1 participant