Rejiggered players to have a thing in the map, and made the inventory system better.
This commit is contained in:
parent
ed7d265b48
commit
5010042430
4 changed files with 347 additions and 287 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue