feat/area-demolish-wire · PurpleFuchs · 2 Dateien · +73 −47 · 2026-10-28
Zusammenfassung
Card f851f8 — Kabel unter Maschinen-Footprint bleibt stehen
With the wire layer visible, a tile carries both Type.Machine and Type.Wire — but getHoverTargetType returned only the priority winner and FILE_MarkMap deduped by position alone, so wires under every footprint cell (not just the anchor) survived demolish.
Changes (Option B, Kai-agreed)
getHoverTargetTypes()— collects all layers passing their own gate (pyramid,WireLayerActive,PlayerCraftedWall, foundation), old priority order.FILE_MarkMapflat composite keys"Type:X,Y"— all writers atomically converted, incl. the swap-move re-registration inremoveMarkByIndex.tryMarkTile— one reach-check per tile, then per-type marks; conveyor refund gate only skips the conveyor (wire under a non-refundable belt now marks — flagged improvement).drawCenteredIcon+DrawGatheringProgress— optionalTargetTypeparam: wire marks center on their tile, machine marks on the anchor (back-compat for the 3 existing callers).
Verified: luajit per-file + lovec .syntaxchk 4056/0.
Geänderte Dateien (2)
| Source/GuiElements/DrawGatheringProgress.lua | geändert | +11 −5 |
| Source/Objects/AreaDemolishManager.lua | geändert | +62 −42 |