Unit tests for tb_range added

This commit is contained in:
FlutterSprite 2017-10-29 21:39:11 -07:00
parent 1fe9bf3dce
commit 9bc3fcf486
2 changed files with 111 additions and 5 deletions

View file

@ -474,7 +474,10 @@ def combat_status_message(fighter):
distances to other fighters and objects. Called at turn
start and by the 'status' command.
"""
if not fighter.db.max_hp:
fighter.db.hp = 100
fighter.db.max_hp = 100
status_msg = ("HP Remaining: %i / %i" % (fighter.db.hp, fighter.db.max_hp))
if not is_in_combat(fighter):
@ -1326,7 +1329,6 @@ class CmdStatus(Command):
def func(self):
"This performs the actual command."
combat_status_message(self.caller)