From 11ec553b801969b1508405bfe2300243b1741c52 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Sep 2016 14:04:01 +0200 Subject: [PATCH] Hide 'end the night' keypress option behind DEBUG --- tabakrolletjie/scenes/night.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabakrolletjie/scenes/night.py b/tabakrolletjie/scenes/night.py index 6d4e2bc..6b42f6b 100644 --- a/tabakrolletjie/scenes/night.py +++ b/tabakrolletjie/scenes/night.py @@ -13,7 +13,7 @@ from ..utils import debug_timer from ..loader import loader from ..transforms import Overlay from ..turnip import Turnip -from ..constants import NIGHT_LENGTH +from ..constants import NIGHT_LENGTH, DEBUG class NightScene(BaseScene): @@ -56,7 +56,7 @@ class NightScene(BaseScene): if ev.key in (pgl.K_q, pgl.K_ESCAPE): from .menu import MenuScene SceneChangeEvent.post(scene=MenuScene()) - if ev.key == pgl.K_e: + if ev.key == pgl.K_e and DEBUG: self._to_day() elif ev.type == pgl.MOUSEBUTTONDOWN: if ev.button == 1: -- 2.34.1