Ugh!!! TickerHandler changes, more
This commit is contained in:
parent
0c8db01d56
commit
dc67f4b871
2 changed files with 2 additions and 2 deletions
|
|
@ -1307,7 +1307,7 @@ class TestTurnBattleFunc(EvenniaTest):
|
||||||
turnhandler.stop()
|
turnhandler.stop()
|
||||||
# Now time to test item stuff.
|
# Now time to test item stuff.
|
||||||
user = create_object(tb_items.TBItemsCharacter, key="User")
|
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")
|
testroom = create_object(DefaultRoom, key="Test Room")
|
||||||
user.location = testroom
|
user.location = testroom
|
||||||
test_healpotion = create_object(key="healing potion")
|
test_healpotion = create_object(key="healing potion")
|
||||||
|
|
|
||||||
|
|
@ -497,7 +497,7 @@ class TBItemsCharacter(DefaultCharacter):
|
||||||
self.db.hp = self.db.max_hp # Set current HP to maximum
|
self.db.hp = self.db.max_hp # Set current HP to maximum
|
||||||
self.db.conditions = {} # Set empty dict for conditions
|
self.db.conditions = {} # Set empty dict for conditions
|
||||||
# Subscribe character to the ticker handler
|
# 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.
|
Adds attributes for a character's current and maximum HP.
|
||||||
We're just going to set this value at '100' by default.
|
We're just going to set this value at '100' by default.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue