Этап 46: Аквариум — сцена коллекции на главном canvas (не локация, баланс не тронут). (1) Данные: save.aqFish[] {id,v,w} + save.aqSlots (старт AQ_BASE_SLOTS=6, макс AQ_MAX_SLOTS=12), AQ_SLOT_COSTS=[1500,4000,9000,20000,45000,100000]; миграция loadSave() — фильтр id по SPECIES, Number.isFinite(w)&&w>0, вариант→'normal', Math.trunc+клампы aqSlots, обрезка хвоста. (2) Модель C: catchFish() не изменён (пины/квесты/ачивки/реклама не тронуты); #btnKeep '🐠 В аквариум' на карточке — бесплатная КОПИЯ (cardSpec/syncKeepBtn, disabled+«Нет места» при лимите), persist+checkAchievements+тост+закрытие+tryInterstitial. (3) Сцена: секция АКВАРИУМ (aqOpen/aqFishRt/aqSel=-1/aqTank), initAquarium/updateAquarium/drawAquarium (вода hexLerp по nightMix, грунт/растения/пузыри, drawFishShape+подкраска варианта AQ_VARIANT_FX/HUE, свечение болотных drawGlowAura), точки frame/draw/onDown(px,py)/resize/syncDom; вход #btnGmAquarium из #gamemenu (openAquarium/closeAquarium, паттерн fromMenuShop), бар #aqBar (#btnAqBack/#aqCount/#btnAqSlot) с pointer-events:none+пилюли auto, поповер #aqPop (вес·редкость, без цены). (4) «Выпустить» #btnAqRelease→aqReleaseSel(): точечное удаление БЕЗ монет/earned/questHit (решение владельца: продажа из банки удалена — закрывает луп ×2 дохода модели C), без телепорта сцены (позиции остальных сохраняются); aqValue() удалён. (5) HUD под сценой: body.aq-open (syncDom+open/close) прячет #hud — клик по #coins/#btnShop из банки невозможен (находка ревью). (6) Слоты: #btnAqSlot по AQ_SLOT_COSTS, sfx('no')+not_enough, disabled на максимуме, гард Number.isFinite(cost). (7) Ачивки 36→38: aq_first 'Первый жилец'/aq_full 'Аквариум полон', обе bonus:{} — пин achBonus().coinPct=0.18 не сдвинут. (8) i18n: gm_aquarium/aq_title/aq_keep/aq_back/aq_slots/aq_buy_slot/aq_max/aq_release/aq_released/aq_no_room/aq_kept (RU/EN), setLang→renderAqBar. (9) Emoji: 🐠 U+1F420 во встроенный субсет (53 глифа, --check OK). (10) Тесты 204→218: блок 'Этап 46' (14 проверок: данные/миграция битых/keep id-v-w/модель C/лимит/сцена вход-выход/слот/выпуск без монет/телепорт), pин a22d 36→38+noCoinBonus. (11) Скриншоты: gen-screenshots.js +кадр aquarium (14→15 × 3 вьюпорта), RU+EN по 45 PNG (EN-набор приведён в синхрон: +swamp/aquarium). (12) Доки: AGENTS.md (пункт 'Аквариум', глобалы, 38 ачивок, 15 кадров, 218 тестов), KODA.md, README.md, DEVLOG (Этап 46), PLAN-AQUARIUM.md (статус 'реализован' + заметка о замене продажи на выпуск). Проверено: 218/218 PASS exit 0, check.mjs OK, emoji --check OK, balance.mjs — пины без изменений (Река 65.1/125.9 · Озёра 194.1/249.0 · Болото 240.3/328.9 · Море 297.3/476.7 · Океан 329.1/552.7), pack.mjs 5/5 + pack-smoke 6/6, ревью @oracle — все блокирующие находки закрыты.

This commit is contained in:
2026-09-22 21:34:10 +03:00
parent 5701685dd7
commit 3d7a67c957
98 changed files with 911 additions and 35 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 KiB

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 KiB

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 KiB

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 KiB

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 KiB

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 KiB

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 KiB

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 KiB

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 269 KiB

After

Width:  |  Height:  |  Size: 281 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 153 KiB