mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
[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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user