diff --git a/src/entities/Pickupable.py b/src/entities/Pickupable.py index b59b728..cb7e7d6 100644 --- a/src/entities/Pickupable.py +++ b/src/entities/Pickupable.py @@ -1,5 +1,16 @@ import src.entities.Interactable as Interactable +from src.entities import Statistics, Player class Pickupable(Interactable): - pass + def __init__(self, texture, pos, id): + super().__init__(texture, pos, id) + self.is_pickupable = True + + def on_pickup(self, Player, Statistics): + Player.statistics.set_hp(Statistics.hp) + Player.statistics.set_stamina(Statistics.stamina) + Player.statistics.set_thirst(Statistics.thirst) + Player.statistics.set_hunger(Statistics.hunger) + + # TODO delete pickupable object from map