mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
db3953d825
Both branches of Hero() (single hero when !$all, full list when $all) computed the same five derived stats (atk/di/dc/ob/db) and assembled a byte-identical hero stat array from a getHero() entry plus its unit base data. Extract that into buildHeroStats($hero, $herodata) and call it from both branches. Behaviour-preserving. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>