From 8fd35a5927a156f79fa4093f9b016cf168912103 Mon Sep 17 00:00:00 2001 From: Jake Funke Date: Thu, 28 Feb 2019 00:41:15 +0000 Subject: [PATCH] logic tweak --- menu_screen.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/menu_screen.py b/menu_screen.py index cae9419..0722e2f 100644 --- a/menu_screen.py +++ b/menu_screen.py @@ -79,16 +79,12 @@ class CursedMenu(object): def update_options(self): # Makes sure you can get a new plant if it dies - if self.plant.dead: + if self.plant.dead or self.plant.stage == 5: if "harvest" not in self.options: self.options.insert(-1,"harvest") else: - if self.plant.stage == 5: - if "harvest" not in self.options: - self.options.insert(-1,"harvest") - else: - if "harvest" in self.options: - self.options.remove("harvest") + if "harvest" in self.options: + self.options.remove("harvest") def set_options(self, options): # Validates that the last option is "exit"