Reset starting health to be full

This commit is contained in:
Lief9100
2020-04-26 02:26:18 -07:00
committed by GitHub
parent d5effa5408
commit b3b5dc1790

View File

@@ -131,7 +131,7 @@ class Mob(arcade.Sprite):
super(Mob, self).__init__(*args, **kwargs)
self.max_health, self.max_armor = max_health, max_armor
self.health, self.armor = 60, max_armor
self.health, self.armor = max_health, max_armor
self.idle_textures = []
self.walking_textures = []
self.up_textures = []
@@ -270,4 +270,4 @@ class Enemy(Mob):
start, end = self.dungeon.grid.node(*start), self.dungeon.grid.node(*end)
paths, runs = self.dungeon.finder.find_path(start, end, self.dungeon.grid)
self.dungeon.grid.cleanup()
return paths
return paths