mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
7ec51902fd
Move the attacker/defender total-population computation (and the two getProfileVillages() lookups that feed it) out of the per-attack loop into a dedicated private method. Behaviour-preserving: the method takes the initial $defpop/$attpop (0 for villages, 500 for the oasis branch) and accumulates onto them exactly as before, and returns the village lists ($varray/$varray1) used later for the can-destroy check and handleConquest(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>