on_interaction method now removes the entity itself

This commit is contained in:
Marcin Kostrzewski 2020-05-13 19:45:52 +02:00
parent 28d9013983
commit a51661ae6e

View File

@ -6,3 +6,6 @@ class Pickupable(Interactable):
super().__init__(texture, size, pos, Statistics) super().__init__(texture, size, pos, Statistics)
self.is_pickupable = True self.is_pickupable = True
def on_interaction(self, Player):
super(Pickupable, self).on_interaction(Player)
self.kill()