[Quest API] Add IsRaining() and IsSnowing() to Perl/Lua.

- Add quest::IsRaining() to Perl.
- Add quest::IsSnowing() to Perl.
- Add eq.is_raining() to Lua.
- Add eq.is_snowing() to Lua.

This will allow server operators to tell if a zone is currently raining, snowing, or neither.
This commit is contained in:
Kinglykrab
2022-10-10 19:31:40 -04:00
parent 832bffa811
commit 78e6f86c33
5 changed files with 51 additions and 0 deletions
+16
View File
@@ -3723,3 +3723,19 @@ 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();
}