сейвы v2 + предметы + инвентарь
- движок: Inventory — контейнер Map<id, count> (add/remove/count/has/all,
  onChange), inventoryFromData; тесты;
- Game.inventory: сумка героя, сброс в новой игре;
- SaveData v2: поле version + items, normalizeSave дополняет сейвы v1;
- data/items.ts: реестр предметов (cloth, bellflower, salt, water_flask);
- сбор цветка кладёт bellflower в сумку; полотно выдаётся предметом
  после диалога Милы (флаг got_cloth остаётся меткой);
- InventoryScene: строки сумки из инвентаря (имя + ×N);
- тесты: 192/192.

Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 4921574 commit 6db2d381839e775a29e4682a1fa963d379895334
@root root authored 10 hours ago
Showing 9 changed files
View
apps/game/src/Game.ts
View
apps/game/src/data/items.ts 0 → 100644
View
apps/game/src/data/quests.ts
View
apps/game/src/scenes/InventoryScene.ts
View
apps/game/src/scenes/LocationScene.ts
View
apps/game/src/scenes/MenuScene.ts
View
packages/engine/src/index.ts
View
packages/engine/src/inventory/Inventory.ts 0 → 100644
View
packages/engine/src/inventory/__tests__/Inventory.test.ts 0 → 100644