Ugh!!! TickerHandler changes, more

This commit is contained in:
BattleJenkins 2017-11-29 15:37:40 -08:00
parent 0c8db01d56
commit dc67f4b871
2 changed files with 2 additions and 2 deletions

View file

@ -1307,7 +1307,7 @@ class TestTurnBattleFunc(EvenniaTest):
turnhandler.stop()
# Now time to test item stuff.
user = create_object(tb_items.TBItemsCharacter, key="User")
tb_items.tickerhandler.remove(interval=30, callback=user.at_update)
tb_items.tickerhandler.remove(interval=30, callback=user.at_update, idstring="update")
testroom = create_object(DefaultRoom, key="Test Room")
user.location = testroom
test_healpotion = create_object(key="healing potion")

View file

@ -497,7 +497,7 @@ class TBItemsCharacter(DefaultCharacter):
self.db.hp = self.db.max_hp # Set current HP to maximum
self.db.conditions = {} # Set empty dict for conditions
# Subscribe character to the ticker handler
tickerhandler.add(NONCOMBAT_TURN_TIME, self.at_update)
tickerhandler.add(NONCOMBAT_TURN_TIME, self.at_update, idstring="update")
"""
Adds attributes for a character's current and maximum HP.
We're just going to set this value at '100' by default.