1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

First part of new Quest Log, including common quest interface.

This commit is contained in:
DjWarmonger
2012-07-06 19:12:04 +00:00
parent 10a2dfefd1
commit 12511d8fee
11 changed files with 146 additions and 2 deletions

View File

@ -4278,6 +4278,11 @@ void CGSeerHut::onHeroVisit( const CGHeroInstance * h ) const
isCustom = isCustomFirst;
text = firstVisitText;
cb->setObjProperty (id, 10, 1);
AddQuest aq;
aq.quest = QuestInfo (this, this, pos);
aq.player = h->tempOwner;
cb->sendAndApply (&aq); //TODO: merge with setObjProperty?
}
else if (failRequirements)
{
@ -6262,6 +6267,8 @@ void CGBorderGuard::onHeroVisit( const CGHeroInstance * h ) const
iw.soundID = soundBase::CAVEHEAD;
iw.text << std::pair<ui8,ui32>(11,18);
cb->showInfoDialog (&iw);
//TODO: implement QuestInfo
}
}