mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-09 14:05:20 -06:00
Reset starting health to be full
This commit is contained in:
@@ -131,7 +131,7 @@ class Mob(arcade.Sprite):
|
|||||||
super(Mob, self).__init__(*args, **kwargs)
|
super(Mob, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.max_health, self.max_armor = max_health, max_armor
|
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.idle_textures = []
|
||||||
self.walking_textures = []
|
self.walking_textures = []
|
||||||
self.up_textures = []
|
self.up_textures = []
|
||||||
@@ -270,4 +270,4 @@ class Enemy(Mob):
|
|||||||
start, end = self.dungeon.grid.node(*start), self.dungeon.grid.node(*end)
|
start, end = self.dungeon.grid.node(*start), self.dungeon.grid.node(*end)
|
||||||
paths, runs = self.dungeon.finder.find_path(start, end, self.dungeon.grid)
|
paths, runs = self.dungeon.finder.find_path(start, end, self.dungeon.grid)
|
||||||
self.dungeon.grid.cleanup()
|
self.dungeon.grid.cleanup()
|
||||||
return paths
|
return paths
|
||||||
|
|||||||
Reference in New Issue
Block a user