Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #118 from ForeverAndEverTeam/0.2.1
Browse files Browse the repository at this point in the history
0.2.1 Hotfix
  • Loading branch information
TRIDENT1313 authored Jun 8, 2023
2 parents 491762d + c189d18 commit 35a1b0a
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 15 deletions.
2 changes: 1 addition & 1 deletion game/additional/game-handler.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ init python in fae_games:

import store

mg_list = []
mg_list_redux = []

init python:
zorder_game = 4
Expand Down
22 changes: 22 additions & 0 deletions game/core/definitions.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ default persistent.gender = "M"
default persistent.last_playthrough = persistent.playthrough
default persistent.fae_sayori_closed = False
default persistent.fae_intro_complete = False
default persistent.games_reset = False

#########################
#NON-PERSISTENT DEFAULTS#
Expand Down Expand Up @@ -807,6 +808,7 @@ init -100 python:
return False

init python:
import store.fae_games as fae_games

def boop():
"""
Expand All @@ -819,6 +821,26 @@ init python:
Sayori.setInChat(False)
renpy.jump("ch30_loop")


def ResetGames():

if persistent.fae_bnc_unlocked:
bnc = minigame(_("Bows & Cows"), 'mg_bnc', bnc_prep)
fae_games.mg_list_redux.append(bnc)

get_chat("s_stopic_bulls_and_cows").lock()

if persistent.fae_reversi_unlocked:
reversi = minigame(_("Reversi"), 'mg_reversi', reversi_prep)

fae_games.mg_list_redux.append(reversi)

get_chat("s_topic_reversi").lock()

persistent.games_reset = True




PATH = renpy.config.basedir

Expand Down
2 changes: 1 addition & 1 deletion game/core/menu_events.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ screen minigame_ui():
vbox:
xcenter 250

for i in store.fae_games.mg_list:
for i in store.fae_games.mg_list_redux:
if i.available:
textbutton i.name action [Function(i), Hide("minigame_ui"), Jump("ch30_loop")]

Expand Down
2 changes: 1 addition & 1 deletion game/core/options.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ define config.name = "Forever & Ever"
define gui.show_name = True

# This controls the version number of your mod.
define config.version = "0.2.0"
define config.version = "0.2.1"

# This adds information about your mod in the About screen.
# DDLC does not have a 'About' screen so you can leave this blank.
Expand Down
8 changes: 7 additions & 1 deletion game/core/script-ch30.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ label ch30_autoload:
$ store.fae_utilities.makedirifnot("{0}/gifts/".format(renpy.config.basedir))

$ fae_set_pronouns()

if not persistent.games_reset:
$ ResetGames()

jump ch30_main

Expand Down Expand Up @@ -256,7 +259,10 @@ label ch30_init:
renpy.call("cnc", False)

else:
ats(fae_greetings.greet_sel())
try:
ats(fae_greetings.greet_sel())
except:
ats("s_greeting_5")
persistent.fae_mood_on_quit = None
persistent._fae_player_apology_type_on_quit = None
reveal()
Expand Down
8 changes: 0 additions & 8 deletions game/dialogs/script-farewells.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,6 @@ init 5 python:
label s_farewell_sleep:
s abhfaoa "Heading to bed, [player]?"
s abhfcaa "Hope you have a good night’s sleep!"
if Affection.isEnamoured():
s abhebob "...can I have a goodnight kiss? Ehehehe~"
menu:
"Sure, Sayori":
s abgcceb "Yay!"
call fae_kiss_short
"Another time":
s bbhfbaa "Alright then..."
s abfcaaa "Sweet dreams, [player]!"
return { "quit": None }

Expand Down
2 changes: 1 addition & 1 deletion game/dialogs/script-moods.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ init 5 python:
)

label s_mood_bored: #Bored player
$ random_mg = renpy.random.choice(store.fae_games.mg_list).name
$ random_mg = renpy.random.choice(store.fae_games.mg_list_redux).name
s abhfmja "Hmm…{w=0.5}{nw}"
extend abhfaaa " if you're bored, would you like to play [random_mg] with me?"
s abbbaoa "You can start a game in the {i}'Play'{/i} menu!"
Expand Down
4 changes: 2 additions & 2 deletions game/dialogs/script-topics.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ label s_stopic_bulls_and_cows:

$ bnc = minigame(_("Bows & Cows"), 'mg_bnc', bnc_prep)
#$ mg_list = []
$ store.fae_games.mg_list.append(bnc)
$ store.fae_games.mg_list_redux.append(bnc)

return

Expand Down Expand Up @@ -2426,7 +2426,7 @@ label s_topic_reversi:

$ reversi = minigame(_("Reversi"), 'mg_reversi', reversi_prep)
# $ mg_list = []
$ store.fae_games.mg_list.append(reversi)
$ store.fae_games.mg_list_redux.append(reversi)
return


Expand Down

0 comments on commit 35a1b0a

Please sign in to comment.