← Alle PRs
#1256

PyramidLeech: chaining + LeechRange overlay + anchor details

sauber CI rot GitHub ↗

feat/leech-chaining · PurpleFuchs · 7 Dateien · +464 −21 · 2026-10-27

Zusammenfassung

Implements card b09805 (3 Kai-coordinated parts; analyst CONFIRMED with flags, all addressed).

1) Chaining — a leech now anchors to the nearest DarkPyramid A/B/C or an already-anchored PyramidLeech within PyramidLeechRadius:

2) Overlay — new LeechRangePreview layer (TowerRangePreview pattern, lists rebuilt per rebake so anchor relations read live; no Make/Add/Remove wiring needed): orange leech radii, purple pyramid anchor circles, yellow chain lines leech->anchor. While placing a PyramidLeech the ghost shows its radius — blue when anchorable, red when not. 'LeechRange' toggle in Overlays STANDARDTOGGLES; UpdateCanvas wired at TowerRangePreview's three call sites in Game.lua.

3) Details tab — PyramidLeech CW shows Wired status + Anchor name/kind (Pyramid|Leech) next to existing Target/Power/Skips; new locale keys EN+DE. Soft placement: unanchored leech stays legal and produces nothing.

Verified: luajit per-file + lovec .syntaxchk 4055 OK / 0 ERR.

Geänderte Dateien (7)
Source/Data/Locale/English.luageändert+6 −0
Source/Data/Locale/German.luageändert+6 −0
Source/GuiElements/ConfigWindows/PyramidLeech/DrawDetailsTab.luageändert+11 −0
Source/Objects/Gui/Overlays.luageändert+15 −0
Source/Objects/MapData/LeechRangePreview.luaneu+303 −0
Source/Objects/SolarClock.luageändert+117 −21
Source/Stages/Game.luageändert+6 −0