popraven novi npc

This commit is contained in:
2025-12-08 17:09:52 +01:00
parent 81a7895c10
commit abc536fea1
17 changed files with 149 additions and 58 deletions

View File

@@ -18,6 +18,12 @@ class WeatherSystem {
this.currentSeason = 'spring';
this.daysPerSeason = 7; // Vsak letni čas traja 7 dni
// --- TEMPERATURE System ---
this.baseTemp = 20; // Celsius
this.currentTemp = 20;
this.tempCheckTimer = 0;
this.tempDamageInterval = 5000; // Damage every 5 seconds
// --- State ---
this.currentPhase = 'day';
@@ -44,6 +50,9 @@ class WeatherSystem {
// 2. Update Weather Logic (Durations, Changes)
this.updateWeatherLogic(delta);
// 2.5. Update Temperature System
this.updateTemperature(delta);
// 3. Update Physics (Rain drops)
this.updateWeatherPhysics(delta);