vicawoo
Chieftain
- Joined
- Feb 12, 2007
- Messages
- 3,226
From said article
The value is floor(iXPValue*opponent_strength/your_strength), where iXPValue comes from the XML file. For all standard units, iXPValue is 4 for an attacking unit and 2 for a defending unit. The minimum number of experience points for a successful fight is 1, however.
I'm assuming you're attacking, so ixpvalue is 4. opponent strength is then 5*1.25=6.25, yours is 8.8. So the value is 2.84, which is a little odd. The floor should be 2.
If he's defending, it's 2*5/(8/(1+.5-.35))=1.43. Can't explain this...
The value is floor(iXPValue*opponent_strength/your_strength), where iXPValue comes from the XML file. For all standard units, iXPValue is 4 for an attacking unit and 2 for a defending unit. The minimum number of experience points for a successful fight is 1, however.
I'm assuming you're attacking, so ixpvalue is 4. opponent strength is then 5*1.25=6.25, yours is 8.8. So the value is 2.84, which is a little odd. The floor should be 2.
If he's defending, it's 2*5/(8/(1+.5-.35))=1.43. Can't explain this...