From 34d46bd7c9a25b8a0937c24989734b752a8c18a2 Mon Sep 17 00:00:00 2001 From: Ensis Date: Thu, 31 May 2018 11:11:19 +0200 Subject: [PATCH] Show the plant you're visiting --- menu_screen.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/menu_screen.py b/menu_screen.py index 177c2f7..23c8205 100644 --- a/menu_screen.py +++ b/menu_screen.py @@ -8,6 +8,7 @@ import random import getpass import json import sqlite3 +from data_manager import DataManager class CursedMenu(object): #TODO: name your plant @@ -621,10 +622,14 @@ class CursedMenu(object): if os.path.isfile(guest_visitor_file): self.water_on_visit(guest_visitor_file) self.screen.addstr(16, 2, "...you watered ~{}'s {}...".format(str(guest_garden), guest_plant_description)) + guest_dm = DataManager(guest_garden) + guest_plant = guest_dm.load_plant() + self.draw_plant_ascii(guest_plant) else: self.screen.addstr(16, 2, "i can't seem to find directions to {}...".format(guest_garden)) self.screen.getch() self.clear_info_pane() + self.draw_plant_ascii(self.this_plant) def water_on_visit(self, guest_visitor_file): visitor_data = {}