From 170cd49bfc99569f4bf004ec48ff60a04786d918 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 27 Nov 2020 04:00:27 +0100 Subject: [PATCH] Differentiate Spawner into ItemSpawner. --- plomrogue/things.py | 2 +- rogue_chat.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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']: -- 2.30.2