[Bug Fix] Fix Item Discovery (#4663)

* [Bug Fix] Fix Item Discovery for Pickups, Evolving, Fishing, and Forage

* Push

* Caching

* Update tradeskills.cpp

* Update task_client_state.cpp
This commit is contained in:
Alex King
2025-02-09 22:25:43 -05:00
committed by GitHub
parent 9e07d90664
commit f3a2f97155
10 changed files with 66 additions and 81 deletions
+4
View File
@@ -393,6 +393,8 @@ void Client::GoFish(bool guarantee, bool use_bait)
RecordPlayerEventLog(PlayerEvent::FISH_SUCCESS, e);
}
CheckItemDiscoverability(inst->GetID());
if (parse->PlayerHasQuestSub(EVENT_FISH_SUCCESS)) {
std::vector<std::any> args = {inst};
parse->EventPlayer(EVENT_FISH_SUCCESS, this, "", inst->GetID(), &args);
@@ -531,6 +533,8 @@ void Client::ForageItem(bool guarantee) {
RecordPlayerEventLog(PlayerEvent::FORAGE_SUCCESS, e);
}
CheckItemDiscoverability(inst->GetID());
if (parse->PlayerHasQuestSub(EVENT_FORAGE_SUCCESS)) {
std::vector<std::any> args = { inst };
parse->EventPlayer(EVENT_FORAGE_SUCCESS, this, "", inst->GetID(), &args);