Asciifarm/asciifarm/server/components/harvest.py

12 lines
221 B
Python

class Harvest:
def attach(self, obj, roomData):
self.owner = obj
def interact(self, obj):
self.owner.trigger("die") # loot component will register this
self.owner.remove()