mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 16:44:24 +00:00
4beb386dfc
Phase B — pure behaviour-preserving extraction (issue #155). buildScoutReport(): extracts the scout-report (info_spy) HTML assembly (~25 lines) into a helper returning the info_spy string. Handles both spy modes: resources (spy=1) and defence/buildings (spy=2). The block's body is moved verbatim (multi-line strings with their exact embedded whitespace preserved). The reassigned $walllevel/$residencelevel/ $palacelevel were local to this block and never read downstream. No logic change. Co-authored-by: TravianZ Patcher <patcher@localhost> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Catalin Novgorodschi <cata7007@gmail.com>