mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Changed bell tolls from random intervals to proper timekeeping mechanism: How it works: - Bells now toll at the top of every hour (minute == 0) - Number of tolls indicates the hour in 12-hour format: * 1 AM/PM = 1 toll * 2 AM/PM = 2 tolls * 12 AM/PM = 12 tolls - 1.5 second delay between individual tolls - Uses system time (server time for single-player mode) Technical details: - Detects hour changes via std::chrono and localtime() - Tracks lastHourTolled_ to prevent duplicate tolling - remainingTolls_ counter for sequential toll playback - bellTollDelay_ for 1.5s spacing between tolls - Only tolls when currentCity_ is set (in a city) - Resets bell state when changing cities - Converts 24-hour to 12-hour format (0 and 12 both become 12) Example: At 3:00 PM in Stormwind, the Alliance bell will toll 3 times with 1.5s between each toll, marking the hour like a real clock tower. This makes bells actually useful for tracking real time while playing! |
||
|---|---|---|
| .. | ||
| activity_sound_manager.hpp | ||
| ambient_sound_manager.hpp | ||
| audio_engine.hpp | ||
| footstep_manager.hpp | ||
| mount_sound_manager.hpp | ||
| music_manager.hpp | ||
| npc_voice_manager.hpp | ||
| ui_sound_manager.hpp | ||