1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Common changes (ours):

* Improvements for console
* Speed bonus support
* Minor improvements
This commit is contained in:
mateuszb
2009-04-04 19:26:41 +00:00
parent 1983aee1b2
commit 47bc007d8c
12 changed files with 269 additions and 209 deletions

View File

@@ -39,7 +39,7 @@ struct CMP_stack2
{
inline bool operator ()(const CStack& a, const CStack& b)
{
return (a.speed())>(b.speed());
return (a.Speed())>(b.Speed());
}
} cmpst2 ;
@@ -1759,6 +1759,7 @@ void CBattleInterface::battleStacksEffectsSet(const SetStackEffect & sse)
{
displayEffect(spellToEffect[sse.effect.id], LOCPLINT->cb->battleGetStackByID(*ci)->position);
}
redrawBackgroundWithHexes(activeStack);
}
void CBattleInterface::castThisSpell(int spellID)
@@ -2433,7 +2434,7 @@ void CBattleHex::clickRight(boost::logic::tribool down)
pom->defenseBonus = h->getPrimSkillLevel(1);
pom->luck = myst.Luck();
pom->morale = myst.Morale();
pom->speedBonus = myst.speed() - myst.creature->speed;
pom->speedBonus = myst.Speed() - myst.creature->speed;
}
pom->shotsLeft = myst.shots;