mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
New quests implemented
This commit is contained in:
@@ -46,7 +46,8 @@ CQuest::CQuest():
|
||||
stackDirection(0),
|
||||
isCustomFirst(false),
|
||||
isCustomNext(false),
|
||||
isCustomComplete(false)
|
||||
isCustomComplete(false),
|
||||
repeatedQuest(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -444,6 +445,7 @@ void CQuest::serializeJson(JsonSerializeFormat & handler, const std::string & fi
|
||||
handler.serializeStruct("firstVisitText", firstVisitText);
|
||||
handler.serializeStruct("nextVisitText", nextVisitText);
|
||||
handler.serializeStruct("completedText", completedText);
|
||||
handler.serializeBool("repeatedQuest", repeatedQuest, false);
|
||||
|
||||
if(!handler.saving)
|
||||
{
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
Eprogress progress;
|
||||
si32 lastDay; //after this day (first day is 0) mission cannot be completed; if -1 - no limit
|
||||
int killTarget;
|
||||
bool repeatedQuest;
|
||||
|
||||
// following fields are used only for kill creature/hero missions, the original
|
||||
// objects became inaccessible after their removal, so we need to store info
|
||||
|
||||
Reference in New Issue
Block a user