1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Stack experience more or less handled. Neutrals get 10K xp every day.

This commit is contained in:
DjWarmonger
2011-02-13 13:11:09 +00:00
parent 252cee96f5
commit a5a493bfc1
4 changed files with 14 additions and 3 deletions

View File

@ -910,6 +910,14 @@ void BattleResult::applyGs( CGameState *gs )
if(h)
h->bonuses.remove_if(Bonus::OneBattle);
if (STACK_EXP)
{
if (exp[0]) //checking local array is easier than dereferencing this crap twice
gs->curB->belligerents[0]->giveStackExp(exp[0]);
if (exp[1])
gs->curB->belligerents[1]->giveStackExp(exp[1]);
}
gs->curB->belligerents[0]->battle = gs->curB->belligerents[1]->battle = NULL;
gs->curB.dellNull();
}