Merge remote-tracking branch 'origin/entities_branch' into EntityCreator
# Conflicts: # src/entities/Collidable.py
This commit is contained in:
commit
b386eca2f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user