1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Support for Tree of knowledge and minor changes.

This commit is contained in:
Michał W. Urbańczyk
2008-08-22 12:21:09 +00:00
parent 1c7e3718a7
commit 0607ec70cf
16 changed files with 256 additions and 81 deletions

View File

@ -930,7 +930,7 @@ void CGameState::init(StartInfo * si, Mapa * map, int Seed)
CGHeroInstance * vhi = (map->heroes[i]);
if(!vhi->type)
vhi->type = VLC->heroh->heroes[vhi->subID];
//vhi->subID = vhi->type->ID;
if (vhi->level<1)
{
vhi->exp=40+ran()%50;
@ -958,6 +958,8 @@ void CGameState::init(StartInfo * si, Mapa * map, int Seed)
if (vhi->portrait < 0)
vhi->portrait = vhi->type->ID;
vhi->artifWorn[16] = 3;
//initial army
if (!vhi->army.slots.size()) //standard army
{