1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

* fixed problem with levelling above 15 lvl (Zamolxis #2 bug)

* probably fixed reported problems with battles (Zamolxis #3 - #7) - needs further testing
This commit is contained in:
mateuszb
2008-11-14 18:18:13 +00:00
parent 0cc5571604
commit 73cd282bbe
5 changed files with 61 additions and 11 deletions

View File

@ -618,11 +618,15 @@ void CGHeroInstance::initHero()
name = type->name;
if (!biography.length())
biography = type->biography;
if (level<1)
if (exp == -1)
{
exp=40+ (ran()) % 50;
level = 1;
}
else
{
level = VLC->heroh->level(exp);
}
if (!army.slots.size()) //standard army//initial army
{