mapa
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user