halloween feature and death check fix

This commit is contained in:
Jake Funke 2018-10-03 18:53:49 +00:00
parent 6f7cddd5bb
commit 2212596e5e
3 changed files with 14 additions and 1 deletions

10
art/jackolantern.txt Normal file
View File

@ -0,0 +1,10 @@
/)) HAPPY
__(((__ HALLOWEEN
.' _`""`_`'. TILDE
/ /\\ /\\ \ TOWN
| /)_\\/)_\\ |
| _ _()_ _ |
| \\/\\/\\// |
\ \/\/\/\/ /
. , .'.___..___.' _ ., _ .
^ ' ` '

View File

@ -442,8 +442,8 @@ class DataManager(object):
this_plant.migrate_properties()
# get status since last login
is_dead = this_plant.dead_check()
is_watered = this_plant.water_check()
is_dead = this_plant.dead_check()
if not is_dead:
if is_watered:

View File

@ -11,6 +11,7 @@ import sqlite3
import string
import re
import completer
import datetime
class CursedMenu(object):
#TODO: name your plant
@ -176,6 +177,8 @@ class CursedMenu(object):
]
if this_plant.dead == True:
self.ascii_render('rip.txt', ypos, xpos)
elif datetime.date.today().month == 10 and datetime.date.today().day == 31:
self.ascii_render('jackolantern.txt', ypos, xpos)
elif this_plant.stage == 0:
self.ascii_render('seed.txt', ypos, xpos)
elif this_plant.stage == 1: