1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 09:17:57 +00:00

festive lights

This commit is contained in:
Zeno Rogue
2024-12-22 12:52:51 +01:00
parent 155053c9fb
commit 64f68e636a
6 changed files with 127 additions and 15 deletions

View File

@@ -846,6 +846,15 @@ EX bool showHalloween() {
return false;
}
EX bool showFestive() {
time_t t = time(NULL);
struct tm tm = *localtime(&t);
int month = tm.tm_mon + 1;
int day = tm.tm_mday;
if(month == 12 && day >= 24 && day <= 26) return true;
return false;
}
int daily_mode;
void announce_random() {