From 39301f51ad1adb1b7163f88438e94706a609a4fd Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Wed, 29 Jun 2022 22:28:06 +0100 Subject: [PATCH] Bug fixes * Fixed Snape's Office music not playing * Added map to dev start --- game/scripts/script.rpy | 1 + game/scripts/utility/common_labels.rpy | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/game/scripts/script.rpy b/game/scripts/script.rpy index eff1979d..cca4f815 100644 --- a/game/scripts/script.rpy +++ b/game/scripts/script.rpy @@ -24,6 +24,7 @@ label start_dev: game.difficulty = 2 game.cheats = True game.gold = 100000 + map_unlocked = True snape_unlocked = True tonks_unlocked = True hermione_unlocked = True diff --git a/game/scripts/utility/common_labels.rpy b/game/scripts/utility/common_labels.rpy index 501a09c0..2ee6dc6f 100644 --- a/game/scripts/utility/common_labels.rpy +++ b/game/scripts/utility/common_labels.rpy @@ -269,10 +269,13 @@ label play_music(music="", fadein=1.0, fadeout=1.0): # Play day/night theme label music_block: - if game.daytime: - call play_music("day") - else: - call play_music("night") + if current_room == "main_room": + if game.daytime: + call play_music("day") + else: + call play_music("night") + elif current_room == "snape_office": + call play_music("snape_office") return label unlock_clothing(text="", item="interface/icons/box_blue_1.webp"):