Fixed old calls to tickerhandler from the tutorial_world. Also added a better error when this happens. This resolves #952.

This commit is contained in:
Griatch 2016-04-25 20:53:22 +02:00
parent 910d539d45
commit cce87a8399
3 changed files with 16 additions and 4 deletions

View file

@ -310,7 +310,7 @@ class WeatherRoom(TutorialRoom):
# "update_weather" on this object. The interval is randomized
# so as to not have all weather rooms update at the same time.
interval = random.randint(50, 70)
TICKER_HANDLER.add(self, interval, idstring="tutorial", hook_key="update_weather")
TICKER_HANDLER.add(interval=interval, callback=self.update_weather, idstring="tutorial")
# this is parsed by the 'tutorial' command on TutorialRooms.
self.db.tutorial_info = \
"This room has a Script running that has it echo a weather-related message at irregular intervals."