feat(v0.97): Weather system, Master Clock save/load, Lang fix, Golden Statue 200d achievement

## 🌧️ WEATHER SYSTEM
- DayNightSystem: weather changes every morning at 06:00
- 30% chance of rain, calculated 1 day ahead
- Procedural rain visuals tied to actual weather state
- Radio [E] near tent shows tomorrow's forecast (Dark-Chibi Noir UI)

## 💧 WATER & FARMING
- WaterSystem: Rain Catcher capacity increased to 50L
- Auto-fill to 50L on rain days
- Auto-water all soilSlots on rain, auto-dry on sunny days

## 🌍 LOCALIZATION FIX
- Language button now switches instantly (no scene.restart() crash)
- All menu text (subtitle, tagline, settings) translates live
- localization.json: added menu_subtitle, menu_tagline, settings_info, settings_close for all 5 langs
- Settings button now opens real pop-up menu

## 🏆 GOLDEN STATUE (200 DAYS)
- _showAchievement() + _spawnGoldenStatue() methods
- Statue uses correct 2.5D physics: setOrigin(0.5,1.0), setDepth(y), collider
- _statueSpawned flag prevents duplicate spawns
- Post-load check: statue appears if save file has day >= 200

## 🗓️ MASTER CLOCK
- DayNightSystem: saveState()/loadState() via localStorage (key: nova_farma_time_save)
- Saves: day, year, hour, minute, todayWeather, tomorrowWeather
- Auto-save every in-game minute + on midnight + on sleep
- Year system: year increments every 120 days (Aging System hook)
- yearChanged event wired to UIScene + GrassScene

## 📊 HUD UPGRADE
- UIScene: yearText element (LETO 1) below dayText
- dayText uses i18n key, turns orange at day 190+ (pre-statue warning)
- gameState.year added

Build: v0.97 ALPHA - Master Clock Edition
This commit is contained in:
2026-04-27 00:00:53 +02:00
parent 325ed52479
commit 177d05e942
9 changed files with 487 additions and 52 deletions

View File

@@ -5902,3 +5902,16 @@ V tej seji smo se osredotočili na popravilo in izboljšanje `GameScene.js`, pre
- **Goal:** Build the 8x8 Safe Zone foundation first.
- **Removed:** Duplicate documentation and obsolete backup files.
## **UPDATE 26.4.2026: DEMO MEHANIKE & DOSTOPNOST**
- **Sistemi:**
- Avtomatski "Zero-State" Tloris za 8x8 kmetijo (fiksna postavitev Šotora, Ognja in Lovilca ob zagonu).
- Pametna "Anti-Cheat" kamera z miškino drsnico (Zoom) in Lookahead zamikom.
- Day/Night cikel (20 minut na dan, temen Noir filter ponoči, močnejši zombiji in Pass Out kazen ob 02:00).
- Globalna večjezična lokalizacija (SL, EN, DE, IT, CN) v `localization.json` z avtomatsko zaznavo.
- **Dostopnost (AccessibilityManager):**
- Vgrajen 7-gumbovni UI z 2 stolpcema.
- Vizualna opozorila (Deaf Mode) - utripanje zaslona.
- Senzorni & ADHD Mode - skrivanje UI in umiritev kamere.
- Enoročni način (One-Handed) - point & click sledenje samo z miško.
- Vidne Prilagoditve - povečana pisava, Visok Kontrast in Barvna slepota (Protanopia filtri).
- **Status:** Temeljne Demo Faza 1 mehanike so združene in stabilne, UI pripravljen!