mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Fixes for Seer Huts.
This commit is contained in:
@@ -387,6 +387,14 @@ void CQuest::getCompletionText (MetaString &iwText, std::vector<Component> &comp
|
||||
}
|
||||
}
|
||||
|
||||
CGSeerHut::CGSeerHut() : IQuestObject()
|
||||
{
|
||||
obj->quest->lastDay = -1;
|
||||
obj->quest->isCustomFirst = false;
|
||||
obj->quest->isCustomNext = false;
|
||||
obj->quest->isCustomComplete = false;
|
||||
}
|
||||
|
||||
void CGSeerHut::setObjToKill()
|
||||
{
|
||||
if (quest->missionType == CQuest::MISSION_KILL_CREATURE)
|
||||
|
@@ -95,7 +95,7 @@ public:
|
||||
si32 rVal; //reward value
|
||||
std::string seerName;
|
||||
|
||||
CGSeerHut() : IQuestObject(){};
|
||||
CGSeerHut();
|
||||
void initObj() override;
|
||||
std::string getHoverText(PlayerColor player) const override;
|
||||
void newTurn() const override;
|
||||
|
@@ -2311,10 +2311,7 @@ void CRmgTemplateZone::addAllPossibleObjects(CMapGenerator* gen)
|
||||
ArtifactID artid = *RandomGeneratorUtil::nextItem(gen->getQuestArtsRemaning(), gen->rand);
|
||||
obj->quest->m5arts.push_back(artid);
|
||||
gen->banQuestArt(artid);
|
||||
obj->quest->lastDay = -1;
|
||||
obj->quest->isCustomFirst = false;
|
||||
obj->quest->isCustomNext = false;
|
||||
obj->quest->isCustomComplete = false;
|
||||
gen->map->addQuest(obj);
|
||||
|
||||
return obj;
|
||||
//TODO: place required artifact in next zone
|
||||
|
Reference in New Issue
Block a user