Skip to content
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

Fix(DB): Loot Adamantite Ore #17923

Conversation

The-GhostRider
Copy link
Contributor

@The-GhostRider The-GhostRider commented Dec 2, 2023

Changes Proposed:

I noticed that a small calculation error was made.
the Error was not due to loot %, but to a missing reference.
In essence, (I don't know if due to inaccuracy or laziness), a double reference was made in reference to the fact that a gem must always be guaranteed. (See screenshot below).

Wrong Reference

wrong loot

Consequently, this double reference led to a double loot with MaxCount "2", one given at 100% chance and the other given at 15% chance, giving rise to an "alteration" of the loot %. (See screenshots below).

Test 1 of 1000 Adamantite (Wrong Loot)

Prosp

Test 2 of 1000 Adamantite (Wrong Loot)

Prosp2

Test 3 of 1000 Adamantite (Wrong Loot)

Prosp3

So I created an appropriate reference for guaranteed gems. (See screenshot below).

Fixed Reference

fixed loot

In fact, with this change, the loot now comes close to the expectations of the sources cited below

Test 1 of 1000 Adamantite (Fixed Loot)

Prosp-Fixed

Test 2 of 1000 Adamantite (Fixed Loot)

Prosp-Fixed2

Test 3 of 1000 Adamantite (Fixed Loot)

Prosp-Fixed3

These are the percentages and the tests I did.

Test Percentages

calcs

This PR proposes changes to:

  • Core (units, players, creatures, game systems).
  • Scripts (bosses, spell scripts, creature scripts).
  • Database (SAI, creatures, etc).

Issues Addressed:

SOURCE:

The changes have been validated through:

Tests Performed:

This PR has been:

  • Tested in-game by the author.
  • Tested in-game by other community members/someone else other than the author/has been live on production servers.
  • This pull request requires further testing and may have edge cases to be tested.

How to Test the Changes:

  • This pull request can be tested by following the reproduction steps provided in the linked issue
  • This pull request requires further testing. Provide steps to test your changes. If it requires any specific setup e.g multiple players please specify it as well.
.learn all recipes jewelcrafting
.additem 23425 1000

macro:

/cast Prospecting
/use Adamantite Ore

Known Issues and TODO List:

  • [ ]
  • [ ]

How to Test AzerothCore PRs

When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).

For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.

@github-actions github-actions bot added the DB related to the SQL database label Dec 2, 2023
@balleny
Copy link
Contributor

balleny commented Dec 7, 2023

the same fix with the same but halfed rates for rare gems could be applied to fel iron ore to close pending tickets.

@pangolp
Copy link
Contributor

pangolp commented May 2, 2024

What status is this pull request in?

@Nyeriah Nyeriah closed this Jul 27, 2024
@Nyeriah Nyeriah added the PR Abandoned Original author stopped working on this PR. Feel free to take over. label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DB related to the SQL database PR Abandoned Original author stopped working on this PR. Feel free to take over. Ready to be Reviewed
Projects
None yet
6 participants