mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-15 04:10:00 -06:00
added kill list display and removed kill tracking in player
This commit is contained in:
@@ -168,19 +168,6 @@ class Player(Mob):
|
||||
self.cur_recipe = None
|
||||
self.speed = 14
|
||||
|
||||
def add_kill(self, creature) -> int:
|
||||
# Adds a kill to kill_list. If 3 or more check the recipe then give a power up if it matches.
|
||||
self.kill_list.append(creature)
|
||||
print(self.kill_list)
|
||||
print(self.cur_recipe)
|
||||
if len(self.kill_list) >= 3:
|
||||
if self.cur_recipe == self.kill_list:
|
||||
print("+++++++++++++++++++++++++++++++++++++++++++++++++++++++")
|
||||
self.kill_list = []
|
||||
return 1
|
||||
self.kill_list = []
|
||||
return 0
|
||||
|
||||
def heal(self):
|
||||
self.health+=Config.HEAL_AMOUNT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user