mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
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()
|
||||
# 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")
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue