1
0
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:
nordsoft
2023-10-09 15:54:14 +02:00
parent 3a17eeb330
commit 63bdfb8ff6
8 changed files with 1196 additions and 162 deletions

View File

@@ -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)
{

View File

@@ -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