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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user