Rejiggered players to have a thing in the map, and made the inventory system better.

This commit is contained in:
Patrick Marsee 2019-07-04 18:48:47 -04:00
parent ed7d265b48
commit 5010042430
4 changed files with 347 additions and 287 deletions

View file

@ -92,13 +92,15 @@ class UseOnEvent(GameEvent):
self.args = args
class TakeEvent(GameEvent):
def __init__(self, item):
def __init__(self, actor, item):
super(TakeEvent, self).__init__('take')
self.actor = actor
self.item = item
class DropEvent(GameEvent):
def __init__(self, item):
def __init__(self, actor, item):
super(DropEvent, self).__init__('drop')
self.actor = actor
self.item = item
class BehaveEvent(GameEvent):