mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
8398265641
Extract the pre-casualty defender report block into a new private method collectReinforcementReport(): reset and rebuild the reinforcement unit totals ($DefenderEnf) and per-tribe hero totals from a fresh re-select, fold reinforcement heroes into the defender's hero count, build the "units sent" report rows (own troops + reinforcements and their masked variants), and (re)initialise the per-tribe dead-hero accumulator. The bundle is returned to the caller and the defender's folded hero count is reassigned at the call site. Pure behaviour-preserving extraction. Method name matches the maintainer's roadmap for #155. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>