From 3fe1a8283c06e3d2fc0fde1124315c1f9fdb2e8c Mon Sep 17 00:00:00 2001 From: Jake Funke Date: Mon, 22 May 2017 19:06:57 +0000 Subject: [PATCH] Plant death is now sadder --- .gitignore | 5 +++++ art/rip.txt | 10 ++++++++++ menu_screen.py | 4 +++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 art/rip.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..36926df --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +garden_db.sqlite +*.pyc +garden_file.dat +garden_file.json +sqlite/ diff --git a/art/rip.txt b/art/rip.txt new file mode 100644 index 0000000..c2bad84 --- /dev/null +++ b/art/rip.txt @@ -0,0 +1,10 @@ + ______________ + / \ + | | + | | + | R.I.P. | + | | + | | + | | +. |, _\/ .. \. \ /,|_ . + ^ ' ` ' diff --git a/menu_screen.py b/menu_screen.py index d3b6f08..bf92ba1 100644 --- a/menu_screen.py +++ b/menu_screen.py @@ -146,7 +146,9 @@ class CursedMenu(object): 20: 'palm', } - if this_plant.stage == 0: + if this_plant.dead == True: + self.ascii_render('rip.txt', ypos, xpos) + elif this_plant.stage == 0: self.ascii_render('seed.txt', ypos, xpos) elif this_plant.stage == 1: self.ascii_render('seedling.txt', ypos, xpos)