Merge remote-tracking branch 'origin/entities_branch' into EntityCreator

# Conflicts:
#	src/entities/Collidable.py
This commit is contained in:
Marcin Kostrzewski 2020-04-05 22:18:06 +02:00
commit b386eca2f4

View File

@ -1,5 +1,16 @@
import src.entities.Interactable as Interactable import src.entities.Interactable as Interactable
from src.entities import Statistics, Player
class Pickupable(Interactable): 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