From: Christian Heller Date: Fri, 27 Nov 2020 03:00:27 +0000 (+0100) Subject: Differentiate Spawner into ItemSpawner. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/condition?a=commitdiff_plain;h=170cd49bfc99569f4bf004ec48ff60a04786d918;p=plomrogue2 Differentiate Spawner into ItemSpawner. --- diff --git a/plomrogue/things.py b/plomrogue/things.py index ca53e87..98dff00 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -43,7 +43,7 @@ class Thing_Item(Thing): -class Thing_Spawner(Thing): +class Thing_ItemSpawner(Thing): symbol_hint = 'S' def proceed(self): diff --git a/rogue_chat.py b/rogue_chat.py index 1d9e4cb..1f9228f 100755 --- a/rogue_chat.py +++ b/rogue_chat.py @@ -12,7 +12,7 @@ from plomrogue.commands import (cmd_ALL, cmd_LOGIN, cmd_NICK, cmd_PING, cmd_THIN cmd_SET_MAP_CONTROL_PASSWORD, cmd_SPAWN_POINT) from plomrogue.tasks import (Task_WAIT, Task_MOVE, Task_WRITE, Task_PICK_UP, Task_DROP, Task_FLATTEN_SURROUNDINGS) -from plomrogue.things import Thing_Player, Thing_Item, Thing_Spawner +from plomrogue.things import Thing_Player, Thing_Item, Thing_ItemSpawner from plomrogue.config import config game = Game(config['savefile']) @@ -52,7 +52,7 @@ game.register_task(Task_PICK_UP) game.register_task(Task_DROP) game.register_thing_type(Thing_Player) game.register_thing_type(Thing_Item) -game.register_thing_type(Thing_Spawner) +game.register_thing_type(Thing_ItemSpawner) game.read_savefile() game.io.start_loop() for port in config['servers']: