Skip to content

Commit

Permalink
Merge pull request Monika-After-Story#416 from Backdash/issue408-fix
Browse files Browse the repository at this point in the history
Fixed no more topics issue
  • Loading branch information
ThePotatoGuy authored Dec 12, 2017
2 parents a90e0b0 + 4a30410 commit f4d96b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Monika After Story/game/script-ch30.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,10 @@ label ch30_loop:
# Pick a random Monika topic
label pick_random_topic:
python:
if monika_random_topics: # If we're out of random topics, just stay in the loop
if len(monika_random_topics) > 0: # still have topics
pushEvent(renpy.random.choice(monika_random_topics))
else: # no topics left
monika_random_topics = list(all_random_topics)
pushEvent(renpy.random.choice(monika_random_topics))

$_return = None
Expand Down
4 changes: 2 additions & 2 deletions Monika After Story/game/script-topics.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ init -1 python:

init 11 python:
#List of all random topics
all_random_topics = monika_random_topics
all_random_topics = list(monika_random_topics)

#Remove all previously seen random topics.
remove_seen_topics()

#If there are no unseen topics, you can repeat seen ones
if len(monika_random_topics) == 0:
monika_random_topics=all_random_topics
monika_random_topics=list(all_random_topics)

#BEGIN ORIGINAL TOPICS

Expand Down

0 comments on commit f4d96b0

Please sign in to comment.