deepaksj commited on
Commit
2ed9444
·
verified ·
1 Parent(s): f2fb78e

Upload 2 files

Browse files
Files changed (2) hide show
  1. quest.py +2 -1
  2. story.py +2 -0
quest.py CHANGED
@@ -51,7 +51,8 @@ class Quest:
51
  images = []
52
  else:
53
  self.stories.pop(self.current_story)
54
- display_message, hints, images = self.start_quest() #The story has been popped, should be an updated list
 
55
  self.current_story = None
56
 
57
  return self.quest_complete, display_message, hints, images, codex
 
51
  images = []
52
  else:
53
  self.stories.pop(self.current_story)
54
+ start_quest_msg, hints, images = self.start_quest() #The story has been popped, should be an updated list
55
+ display_message += start_quest_msg
56
  self.current_story = None
57
 
58
  return self.quest_complete, display_message, hints, images, codex
story.py CHANGED
@@ -72,6 +72,8 @@ class Story:
72
  for image in self.images[str(stage)]:
73
  image_paths.append(self.story_dict["path"] + "/images/" + image)
74
 
 
 
75
  return image_paths
76
  else:
77
  return []
 
72
  for image in self.images[str(stage)]:
73
  image_paths.append(self.story_dict["path"] + "/images/" + image)
74
 
75
+ #pop the images for that stage so you don't repeat the image if you are in the same stage for multiple interactions
76
+ self.images.pop(str(stage))
77
  return image_paths
78
  else:
79
  return []