Mercurial > skaapsteker
diff skaapsteker/sprites/items.py @ 383:87246b84a851
Notification text.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 16:02:51 +0200 |
parents | b37dbc557ae0 |
children | de71c3fa5626 |
line wrap: on
line diff
--- a/skaapsteker/sprites/items.py Sat Apr 09 15:57:47 2011 +0200 +++ b/skaapsteker/sprites/items.py Sat Apr 09 16:02:51 2011 +0200 @@ -1,4 +1,5 @@ -from base import Item +from .. import engine +from .base import Item class BreakableItem(Item): @@ -73,6 +74,7 @@ if player.has_item('tealeaf'): self._me.brewed = True player.discard_item() + engine.OpenNotification.post(text="A nice cup of tea is brewing.") return if player.has_item('teacup'): if self._me.brewed: @@ -81,6 +83,8 @@ self._me.brewed = False else: print "Sadly, the teapot is empty." + return + engine.OpenNotification.post(text="A proper tea ceremony requires a cup.")