added "info" and "wear" use functions, and fixed many bugs related to storing things by ID.

This commit is contained in:
Patrick Marsee 2019-05-28 14:23:15 -04:00
parent 1b41c46105
commit 8355dccb33
4 changed files with 165 additions and 44 deletions

View file

@ -79,15 +79,17 @@ class ArriveEvent(GameEvent):
self.t = t
class UseEvent(GameEvent):
def __init__(self, thing):
def __init__(self, thing, args):
super(UseEvent, self).__init__('use')
self.thing = thing
self.args = args
class UseOnEvent(GameEvent):
def __init__(self, item, thing):
def __init__(self, item, thing, args):
super(UseOnEvent, self).__init__('useon')
self.thing = thing # thing can be a coordinate pair?
self.item = item
self.args = args
class TakeEvent(GameEvent):
def __init__(self, item):