This commit is contained in:
2025-12-07 21:31:44 +01:00
parent 4a0ca267ea
commit 974141c08c
52 changed files with 2485 additions and 397 deletions

View File

@@ -233,6 +233,11 @@ class WeatherSystem {
// Depth just above overlay (-1000)
this.rainEmitter.setDepth(-990);
// Play Sound
if (this.scene.soundManager) {
this.scene.soundManager.playRainSound();
}
}
clearWeather() {
@@ -240,6 +245,11 @@ class WeatherSystem {
this.rainEmitter.destroy();
this.rainEmitter = null;
}
// Stop Sound
if (this.scene.soundManager) {
this.scene.soundManager.stopRainSound();
}
}
// --- Getters for Other Systems ---
@@ -260,4 +270,9 @@ class WeatherSystem {
const hour = this.gameTime;
return hour >= 7 && hour < 18;
}
isHordeNight() {
// Every 3rd night is a Horde Night
return this.dayCount > 0 && this.dayCount % 3 === 0;
}
}