fix: anchor trainer entrance and generate variable exits

This commit is contained in:
nyan404 committed 2026-11-17 16:44:04 +03:00
1 parent 30d012de80
commit 87a9a5934a
12 files changed
+117 -53

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# MEMORY
- 2026-11-17 owner correction: «вход всегда на клетке x1 y1, выход может быть в разных местах». This supersedes upstream-derived fixed transition positions. Entrance is now index 0; each field owns its exit. UI labels use one-based X right/Y down with x1 y1 top-left. Random selection from the other 59 cells is the implementation choice for variable exits, not a verified CatWar distribution. Keep 5/3 initial safe cells separate from transitions and keep scene/map synchronized after restart.
- 2026-11-17: CI Python 3.12 slim returns `(None, None)` for `mimetypes.guess_type("forest.webp")`; WebP is only in its non-strict common table without system MIME data. `Handler._file` now explicitly serves `.webp` as `image/webp`, independent of host MIME tables. HTTP regression coverage simulates an absent mapping; retain it when modifying static serving.
- 2026-11-17: owner renamed the trainer public page to `/trainer` (also `/trainer/`). Homepage navigation, Python/Nginx page aliases and browser entry URLs follow that address. Internal `web/lu-trainer.html` and `/lu-trainer/` asset URLs are unchanged; the prior `/lu-trainer` page address below is historical. No push/deployment.