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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user