mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 01:06:36 +00:00
[Quest API] Add IsRaining() and IsSnowing() to Perl/Lua. (#2477)
* [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. * Remove unnecessary quest manager stuff. * Added constants and cleaned up #weather command * Revert "Added constants and cleaned up #weather command" This reverts commit2ec85304b7. * Revert "Revert "Added constants and cleaned up #weather command"" This reverts commit76f4e411b6. * Delete settings.json * Update zone.cpp
This commit is contained in:
@@ -249,6 +249,9 @@ public:
|
||||
uint32 GetCurrencyID(uint32 item_id);
|
||||
uint32 GetCurrencyItemID(uint32 currency_id);
|
||||
|
||||
inline bool IsRaining() { return zone_weather == EQ::constants::WeatherTypes::Raining; }
|
||||
inline bool IsSnowing() { return zone_weather == EQ::constants::WeatherTypes::Snowing; }
|
||||
|
||||
std::string GetZoneDescription();
|
||||
void SendReloadMessage(std::string reload_type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user