Merge branch 'entities_branch' into MapNew

# Conflicts:
#	src/entities/Collidable.py
This commit is contained in:
jonspacz 2020-04-05 20:25:46 +02:00
commit 78929e44c3

View File

@ -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