added kill list display and removed kill tracking in player

This commit is contained in:
Lief9100
2020-04-24 19:53:57 -07:00
parent 5642174af5
commit bf87c8196c
3 changed files with 33 additions and 34 deletions

View File

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