Kelsidavis-WoWee/src
Kelsi 1a937fa69a Make city bell tolls mark real server time like actual clock towers
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!
2026-02-09 16:33:53 -08:00
..
audio Make city bell tolls mark real server time like actual clock towers 2026-02-09 16:33:53 -08:00
auth Upgrade to C++20 and fix all compilation warnings 2026-02-07 11:43:37 -08:00
core Add comprehensive NPC voice system with interaction and combat sounds 2026-02-09 16:03:51 -08:00
game Add comprehensive NPC voice system with interaction and combat sounds 2026-02-09 16:03:51 -08:00
network Add ambient sound system and eliminate log spam 2026-02-09 14:50:14 -08:00
pipeline Add ambient sound system and eliminate log spam 2026-02-09 14:50:14 -08:00
rendering Add comprehensive weather, water, and zone ambient audio systems 2026-02-09 16:12:06 -08:00
ui Fix action bar not clickable: remove NoInputs flag 2026-02-09 01:40:29 -08:00
main.cpp Add ambient sound system and eliminate log spam 2026-02-09 14:50:14 -08:00