diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-20 16:48:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-20 16:48:08 -0300 |
commit | b979228ca08cb6c5ce67298f471673568c3b607b (patch) | |
tree | 56559246a00fa0268d53bb16881d9a43b9fe5e0e | |
parent | 826af4e92f2880f2aa599f5d3e05ac079b8c97c4 (diff) | |
download | client-b979228ca08cb6c5ce67298f471673568c3b607b.tar.gz client-b979228ca08cb6c5ce67298f471673568c3b607b.tar.bz2 client-b979228ca08cb6c5ce67298f471673568c3b607b.tar.xz client-b979228ca08cb6c5ce67298f471673568c3b607b.zip |
Update client for laterâ„¢ patch for multiple worlds.
But for time begin, only "Main" world is supported.
-rw-r--r-- | game/battle.rpy | 3 | ||||
-rw-r--r-- | game/quest.rpy | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/game/battle.rpy b/game/battle.rpy index c5600f0..28f3c26 100644 --- a/game/battle.rpy +++ b/game/battle.rpy @@ -122,7 +122,7 @@ label results: # TODO: Use small icons python: # Save current quest to 'quest' variable (wasn't it set before?) - quest=dl_search(allquests, "quest_id", Battle["quest_id"]) + quest=dl_search(allquests[Battle["world"]], "quest_id", Battle["quest_id"]) if (quest == ERR_INVALID): raise Exception("ERROR, QUEST NOT FOUND, %d" % Battle["quest_id"]) @@ -169,6 +169,7 @@ label results: qid=Battle["quest_id"] # WAIT THERE! Perhaps we have some sort of history to show?! + # TODO: Memory if Player["quest"] < qid: story=dl_search(allstory, "quest_id", qid) diff --git a/game/quest.rpy b/game/quest.rpy index de01117..d5d65a0 100644 --- a/game/quest.rpy +++ b/game/quest.rpy @@ -66,7 +66,7 @@ label quest_select: qid=quest["quest_id"] # We also want to show cost and requeriments - entry=dl_search(allquests, "quest_id", qid) + entry=dl_search(allquests["Main"], "quest_id", qid) if entry != ERR_INVALID: cost=entry["cost"] req=entry["requeriment"] @@ -94,12 +94,12 @@ label quest_select: label quest_selected: # Get quest data python: - quest=dl_search(allquests, "quest_id", qid) + quest=dl_search(allquests["Main"], "quest_id", qid) # Uhm, how did this happen? Means client-data is not fully updated! if (quest == ERR_INVALID): renpy.call_screen("msgbox", "ERROR:\n\nRequested Quest does not exist client-side\nAn update is required. We'll now close the app.") - raise KeyboardInterrupt() + renpy.quit(relaunch=True) # Confirm the quest cost $apmsg=_("Quest cost: %d/%d AP" % (quest["cost"], Player["ap"])) |