mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
@ -3271,14 +3271,19 @@ void CGSeerHut::initObj()
|
|||||||
seerName = VLC->generaltexth->seerNames[ran()%VLC->generaltexth->seerNames.size()];
|
seerName = VLC->generaltexth->seerNames[ran()%VLC->generaltexth->seerNames.size()];
|
||||||
textOption = ran()%3;
|
textOption = ran()%3;
|
||||||
progress = 0;
|
progress = 0;
|
||||||
if (missionType && !isCustom)
|
if (missionType)
|
||||||
{
|
{
|
||||||
|
if (!isCustom)
|
||||||
|
{
|
||||||
|
|
||||||
firstVisitText = VLC->generaltexth->quests[missionType-1][0][textOption];
|
firstVisitText = VLC->generaltexth->quests[missionType-1][0][textOption];
|
||||||
nextVisitText = VLC->generaltexth->quests[missionType-1][1][textOption];
|
nextVisitText = VLC->generaltexth->quests[missionType-1][1][textOption];
|
||||||
completedText = VLC->generaltexth->quests[missionType-1][2][textOption];
|
completedText = VLC->generaltexth->quests[missionType-1][2][textOption];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
firstVisitText = VLC->generaltexth->seerEmpty[textOption];
|
firstVisitText = VLC->generaltexth->seerEmpty[textOption];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string & CGSeerHut::getHoverText() const
|
const std::string & CGSeerHut::getHoverText() const
|
||||||
|
@ -1831,6 +1831,7 @@ void Mapa::readObjects( const unsigned char * bufor, int &i)
|
|||||||
nobj = new CGMagicWell();
|
nobj = new CGMagicWell();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 15: //Cover of darkness
|
||||||
case 58: //Redwood Observatory
|
case 58: //Redwood Observatory
|
||||||
case 60: //Pillar of Fire
|
case 60: //Pillar of Fire
|
||||||
{
|
{
|
||||||
@ -2094,9 +2095,9 @@ void Mapa::loadQuest(CQuest * guard, const unsigned char * bufor, int & i)
|
|||||||
guard->nextVisitText = readString(bufor,i);
|
guard->nextVisitText = readString(bufor,i);
|
||||||
guard->completedText = readString(bufor,i);
|
guard->completedText = readString(bufor,i);
|
||||||
if (guard->firstVisitText.size() && guard->nextVisitText.size() && guard->completedText.size())
|
if (guard->firstVisitText.size() && guard->nextVisitText.size() && guard->completedText.size())
|
||||||
guard->isCustom = false; //randomize all if any text is missing
|
|
||||||
else
|
|
||||||
guard->isCustom = true;
|
guard->isCustom = true;
|
||||||
|
else
|
||||||
|
guard->isCustom = false; //randomize all if any text is missing
|
||||||
}
|
}
|
||||||
|
|
||||||
TerrainTile & Mapa::getTile( int3 tile )
|
TerrainTile & Mapa::getTile( int3 tile )
|
||||||
|
Reference in New Issue
Block a user