1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-05 23:28:14 +02:00

Fixed #427 (custom quest messages).

This commit is contained in:
yupsi
2011-10-16 19:24:05 +00:00
parent e43ac3fa06
commit 828a3f0776
3 changed files with 47 additions and 38 deletions

View File

@@ -72,7 +72,7 @@ public:
std::vector<ui32> m7resources;
std::string firstVisitText, nextVisitText, completedText;
bool isCustom;
bool isCustomFirst, isCustomNext, isCustomComplete;
bool checkQuest (const CGHeroInstance * h) const; //determines whether the quest is complete or not
virtual void completeQuest (const CGHeroInstance * h) const {};
@@ -80,7 +80,7 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & missionType & progress & lastDay & m13489val & m2stats & m5arts & m6creatures & m7resources
& firstVisitText & nextVisitText & completedText & isCustom;
& firstVisitText & nextVisitText & completedText & isCustomFirst & isCustomNext & isCustomComplete;
}
};