mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
- it is possible to read json file with vector
- town configuration: - - all town-related texts are now in TownHandler - - alignments are now part of faction - - removed CTown::bonus field
This commit is contained in:
@ -389,7 +389,7 @@ CGHeroInstance * CGameState::HeroesPool::pickHeroFor(bool native, TPlayerColor p
|
||||
|
||||
if(player>=GameConstants::PLAYER_LIMIT)
|
||||
{
|
||||
tlog1 << "Cannot pick hero for " << town->Name() << ". Wrong owner!\n";
|
||||
tlog1 << "Cannot pick hero for " << town->typeID << ". Wrong owner!\n";
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -1323,7 +1323,7 @@ void CGameState::init(StartInfo * si)
|
||||
if(!vti->town)
|
||||
vti->town = &VLC->townh->towns[vti->subID];
|
||||
if (vti->name.length()==0) // if town hasn't name we draw it
|
||||
vti->name = vti->town->Names()[ran()%vti->town->Names().size()];
|
||||
vti->name = vti->town->names[ran()%vti->town->names.size()];
|
||||
|
||||
//init buildings
|
||||
if(vti->builtBuildings.find(-50)!=vti->builtBuildings.end()) //give standard set of buildings
|
||||
|
Reference in New Issue
Block a user