I always thought it meant if you kill it while attacking you get the top XP points, but if you kill it while defending you the bottom. Sadly that doesn't seem to be what's happening at all.
Suppose MyAttackUnit attacks HisDefenseUnit and kills it. Then HisDefenseUnit's iXPValueAttack is the base Experience that MyAttackUnit can gain from this combat. This base experience is modified by
where DefenderStrength and AttackerStrength are the combat strengths of the units before the combat took place. Finally, this experience is restricted to the range [MIN_EXPERIENCE_PER_COMBAT, MAX_EXPERIENCE_PER_COMBAT] where these are specified in GlobalDefines.xml.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.