FEnigma/src/fenigma
Dominik Roth d6694b585b Fold COASTAL_BATTERY into HOSTILE_ARTILLERY, it's the same thing
Same pattern already established for AMMO_CACHE -> SUPPLY_CACHE: a
'Coastal Battery' is just a heavy fixed-emplacement HostileArtillery
under a different name in the game's own text, not a meaningfully
different unit type worth its own enum member. Removed the
TargetType.COASTAL_BATTERY member, added 'CoastalBattery' to
ocr.py's _TYPE_WORD_ALIASES (so 'Coastal Battery#2:' still parses,
now as a HostileArtillery), and a models.py migration entry so any
save file written before this change still loads correctly.

Verified the migration directly (COASTAL_BATTERY -> HOSTILE_ARTILLERY,
existing AMMO_CACHE -> SUPPLY_CACHE unaffected) and updated the one
test that asserted the old type.
2026-08-09 20:06:44 +02:00
..
__init__.py Rename package/app to FeNigma consistently 2026-08-08 20:20:43 +02:00
app.py Fix real zoom+square-cells bugs, add drag-to-pan, simplify popover buttons 2026-08-09 20:04:55 +02:00
ballistics.py Sweep em-dashes out of code, docstrings, and requirements.txt 2026-08-08 20:27:53 +02:00
coord_dialog.py Sweep em-dashes out of code, docstrings, and requirements.txt 2026-08-08 20:27:53 +02:00
firing_panel.py Map: square-cell toggle and scroll-wheel zoom 2026-08-09 19:43:35 +02:00
grid_widget.py Fix real zoom+square-cells bugs, add drag-to-pan, simplify popover buttons 2026-08-09 20:04:55 +02:00
icons.py Shell icon picker: fix real sizing bugs, crop icon padding, inline grid for Add Strike 2026-08-09 19:28:41 +02:00
models.py Fold COASTAL_BATTERY into HOSTILE_ARTILLERY, it's the same thing 2026-08-09 20:06:44 +02:00
ocr.py Fold COASTAL_BATTERY into HOSTILE_ARTILLERY, it's the same thing 2026-08-09 20:06:44 +02:00
shells.py Shell icon picker: fix real sizing bugs, crop icon padding, inline grid for Add Strike 2026-08-09 19:28:41 +02:00
solver.py Fix explain_unresolved() not excluding toleranced bearings like solve_location() does 2026-08-09 18:28:48 +02:00