Finally remembered to remove some debug statements. Added a finish level fanfare for the skeleton, complete with wicked laugh. Work on level 8, it used to be a tiny level, now it's better and has a ghost boss.
This commit is contained in:
@@ -133,8 +133,11 @@ class Player:
|
||||
self._jack_o_lantern_count += 1
|
||||
|
||||
def add_guts(self):
|
||||
"""Apply guts, increase max_health by 2"""
|
||||
self._maxHealth += 2
|
||||
"""Apply guts, increase max_health by 2 if less than 20 else restore health"""
|
||||
if self._maxHealth < 20:
|
||||
self._maxHealth += 2
|
||||
else:
|
||||
self._health = self._maxHealth
|
||||
|
||||
def throw_projectile(self):
|
||||
"""Throw a jack o'lantern if we have any"""
|
||||
|
Reference in New Issue
Block a user