Commit Graph

2 Commits

Author SHA1 Message Date
177d05e942 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
2026-04-27 00:00:53 +02:00
325ed52479 neki bo 2026-04-26 23:25:37 +02:00