Changeset 388:de71c3fa5626


Ignore:
Timestamp:
04/09/11 14:09:32 (12 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Tea notification stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/items.py

    r383 r388  
    11from .. import engine
    22from .base import Item
     3
     4
     5def notify(text):
     6    engine.OpenNotification.post(text=text)
    37
    48
     
    7579            self._me.brewed = True
    7680            player.discard_item()
    77             engine.OpenNotification.post(text="A nice cup of tea is brewing.")
     81            notify("A nice cup of tea is brewing.")
    7882            return
    7983        if player.has_item('teacup'):
     
    8286                player.take_item_by_name('teacupfull')
    8387                self._me.brewed = False
     88                notify("You have tea now.")
    8489            else:
    85                 print "Sadly, the teapot is empty."
     90                notify("Sadly, the teapot is empty.")
    8691            return
    87         engine.OpenNotification.post(text="A proper tea ceremony requires a cup.")
     92        notify("A proper tea ceremony requires a cup.")
    8893
    8994
Note: See TracChangeset for help on using the changeset viewer.