From 68b016db5c659aca1519ad83206a597cb19503b0 Mon Sep 17 00:00:00 2001 From: "Herman S." Date: Fri, 21 Nov 2025 10:19:30 +0100 Subject: [PATCH 1/2] Add mas_before_game_quip as an opt-in --- Monika After Story/game/zz_games.rpy | 84 +++++++++++++++------------- 1 file changed, 46 insertions(+), 38 deletions(-) diff --git a/Monika After Story/game/zz_games.rpy b/Monika After Story/game/zz_games.rpy index d6f1af27a8..55423eb387 100644 --- a/Monika After Story/game/zz_games.rpy +++ b/Monika After Story/game/zz_games.rpy @@ -114,6 +114,8 @@ init 5 python: ) label mas_pong: + if not played_pong_this_session: + call mas_before_game_quip() call game_pong return @@ -138,6 +140,7 @@ init 5 python: label mas_chess: $ persistent._mas_chess_timed_disable = None + call mas_before_game_quip() call game_chess return @@ -153,6 +156,7 @@ init 5 python: ) label mas_hangman: + call mas_before_game_quip() call game_hangman return @@ -187,6 +191,7 @@ init 5 python: ) label mas_nou: + call mas_before_game_quip() call mas_nou_game_start return @@ -220,44 +225,6 @@ label mas_pick_a_game: if selected_game: show monika at t11 - if selected_game != "mas_piano" and not (selected_game == "mas_pong" and played_pong_this_session): - python: - if mas_isMoniUpset(lower=True): - begin_quips = [ - _("Okay, let's play."), - _("I guess we can play that."), - _("Let's begin."), - _("Sure."), - _("Fine."), - _("Alright."), - ] - - else: - begin_quips = [ - _("Let's do this!"), - _("Bring it on, [mas_get_player_nickname()]!"), - _("Ready to lose, [mas_get_player_nickname()]?"), - _("I'm ready when you are, [mas_get_player_nickname()]!"), - _("I hope you're ready, [mas_get_player_nickname()]~"), - _("Let's have some fun, [mas_get_player_nickname()]!"), - _("Don't expect me to go easy on you, [mas_get_player_nickname()]!~"), - _("Throwing down the gauntlet, are we?"), - _("It's time to duel!"), - _("Challenge accepted!"), - ] - - game_quip = renpy.substitute(renpy.random.choice(begin_quips)) - - - if mas_isMoniBroken(): - m 6ckc "..." - - elif mas_isMoniUpset(lower=True): - m 2ekd "[game_quip]" - - else: - m 3hub "[game_quip]" - $ MASEventList.push(selected_game, skipeval=True) if not renpy.showing("monika idle"): @@ -266,3 +233,44 @@ label mas_pick_a_game: $ mas_DropShield_dlg() jump ch30_loop + +# Common pre-game quip label to use in Player-vs-Monika games. +label mas_before_game_quip(): + python: + if mas_isMoniUpset(lower=True): + begin_quips = [ + _("Okay, let's play."), + _("I guess we can play that."), + _("Let's begin."), + _("Sure."), + _("Fine."), + _("Alright."), + ] + + else: + begin_quips = [ + _("Let's do this!"), + _("Bring it on, [mas_get_player_nickname()]!"), + _("Ready to lose, [mas_get_player_nickname()]?"), + _("I'm ready when you are, [mas_get_player_nickname()]!"), + _("I hope you're ready, [mas_get_player_nickname()]~"), + _("Let's have some fun, [mas_get_player_nickname()]!"), + _("Don't expect me to go easy on you, [mas_get_player_nickname()]!~"), + _("Throwing down the gauntlet, are we?"), + _("It's time to duel!"), + _("Challenge accepted!"), + ] + + game_quip = renpy.substitute(renpy.random.choice(begin_quips)) + + + if mas_isMoniBroken(): + m 6ckc "..." + + elif mas_isMoniUpset(lower=True): + m 2ekd "[game_quip]" + + else: + m 3hub "[game_quip]" + + return From 4ef2d10cab961b2cba5774266456416b155eab5a Mon Sep 17 00:00:00 2001 From: "Herman S." Date: Fri, 21 Nov 2025 10:24:43 +0100 Subject: [PATCH 2/2] Fix default argument set to empty list (use None) --- Monika After Story/game/zz_games.rpy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Monika After Story/game/zz_games.rpy b/Monika After Story/game/zz_games.rpy index 55423eb387..98054a1eb4 100644 --- a/Monika After Story/game/zz_games.rpy +++ b/Monika After Story/game/zz_games.rpy @@ -17,7 +17,7 @@ init -10 python in mas_games: return platform.system() == 'Windows' init 1 python in mas_games: - def _total_games_played(exclude_list=[]): + def _total_games_played(exclude_list=None): """ Returns the total number of games played by adding up the shown_count of each game @@ -27,6 +27,9 @@ init 1 python in mas_games: """ global game_db + if exclude_list is None: + exclude_list = [] + total_shown_count = 0 for ev in game_db.values(): if ev.eventlabel not in exclude_list: