Remove unnecessary quest manager stuff.

This commit is contained in:
Kinglykrab
2022-10-10 19:35:16 -04:00
parent 78e6f86c33
commit a87a9b3532
3 changed files with 10 additions and 20 deletions
+10 -2
View File
@@ -3708,12 +3708,20 @@ bool Perl__hasrecipelearned(uint32 recipe_id)
bool Perl__IsRaining()
{
return quest_manager.IsRaining();
if (!zone) {
return false;
}
return zone->IsRaining();
}
bool Perl__IsSnowing()
{
return quest_manager.IsSnowing();
if (!zone) {
return false;
}
return zone->IsSnowing();
}
void perl_register_quest()
-16
View File
@@ -3723,19 +3723,3 @@ void QuestManager::LearnRecipe(uint32 recipe_id) {
initiator->LearnRecipe(recipe_id);
}
bool QuestManager::IsRaining() {
if (!zone) {
return false;
}
return zone->IsRaining();
}
bool QuestManager::IsSnowing() {
if (!zone) {
return false;
}
return zone->IsSnowing();
}
-2
View File
@@ -340,8 +340,6 @@ public:
int GetRecipeMadeCount(uint32 recipe_id);
std::string GetRecipeName(uint32 recipe_id);
bool HasRecipeLearned(uint32 recipe_id);
bool IsRaining();
bool IsSnowing();
Client *GetInitiator() const;
NPC *GetNPC() const;