浏览代码

Thieves Guild: correct number of taverns to access information

ArseniyShestakov 10 年之前
父节点
当前提交
3b3c49420f
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      lib/CGameState.cpp

+ 8 - 8
lib/CGameState.cpp

@@ -2616,7 +2616,7 @@ void CGameState::obtainPlayersStats(SThievesGuildInfo & tgi, int level)
 				continue;
 				continue;
 			const CGHeroInstance * best = statsHLP::findBestHero(this, g->second.color);
 			const CGHeroInstance * best = statsHLP::findBestHero(this, g->second.color);
 			InfoAboutHero iah;
 			InfoAboutHero iah;
-			iah.initFromHero(best, level >= 8);
+			iah.initFromHero(best, level >= 2);
 			iah.army.clear();
 			iah.army.clear();
 			tgi.colorToBestHero[g->second.color] = iah;
 			tgi.colorToBestHero[g->second.color] = iah;
 		}
 		}
@@ -2633,27 +2633,27 @@ void CGameState::obtainPlayersStats(SThievesGuildInfo & tgi, int level)
 	{
 	{
 		FILL_FIELD(mercSulfCrystGems, g->second.resources[Res::MERCURY] + g->second.resources[Res::SULFUR] + g->second.resources[Res::CRYSTAL] + g->second.resources[Res::GEMS])
 		FILL_FIELD(mercSulfCrystGems, g->second.resources[Res::MERCURY] + g->second.resources[Res::SULFUR] + g->second.resources[Res::CRYSTAL] + g->second.resources[Res::GEMS])
 	}
 	}
-	if(level >= 4) //obelisks found
+	if(level >= 3) //obelisks found
 	{
 	{
 		FILL_FIELD(obelisks, CGObelisk::visited[gs->getPlayerTeam(g->second.color)->id])
 		FILL_FIELD(obelisks, CGObelisk::visited[gs->getPlayerTeam(g->second.color)->id])
 	}
 	}
-	if(level >= 5) //artifacts
+	if(level >= 4) //artifacts
 	{
 	{
 		FILL_FIELD(artifacts, statsHLP::getNumberOfArts(&g->second))
 		FILL_FIELD(artifacts, statsHLP::getNumberOfArts(&g->second))
 	}
 	}
-	if(level >= 6) //army strength
+	if(level >= 4) //army strength
 	{
 	{
 		FILL_FIELD(army, statsHLP::getArmyStrength(&g->second))
 		FILL_FIELD(army, statsHLP::getArmyStrength(&g->second))
 	}
 	}
-	if(level >= 7) //income
+	if(level >= 5) //income
 	{
 	{
 		FILL_FIELD(income, statsHLP::getIncome(&g->second))
 		FILL_FIELD(income, statsHLP::getIncome(&g->second))
 	}
 	}
-	if(level >= 8) //best hero's stats
+	if(level >= 2) //best hero's stats
 	{
 	{
 		//already set in  lvl 1 handling
 		//already set in  lvl 1 handling
 	}
 	}
-	if(level >= 9) //personality
+	if(level >= 3) //personality
 	{
 	{
 		for(auto g = players.cbegin(); g != players.cend(); ++g)
 		for(auto g = players.cbegin(); g != players.cend(); ++g)
 		{
 		{
@@ -2670,7 +2670,7 @@ void CGameState::obtainPlayersStats(SThievesGuildInfo & tgi, int level)
 
 
 		}
 		}
 	}
 	}
-	if(level >= 10) //best creature
+	if(level >= 4) //best creature
 	{
 	{
 		//best creatures belonging to player (highest AI value)
 		//best creatures belonging to player (highest AI value)
 		for(auto g = players.cbegin(); g != players.cend(); ++g)
 		for(auto g = players.cbegin(); g != players.cend(); ++g)