popraven novi npc
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user