X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=rogue_chat.py;h=8aaf1a6a702cc658691141ad209a658f233dbc75;hb=7ef70c5adfd5f1b4a4736199c78ee8209b10805b;hp=93dee854977223b0bc9c07ea21b9f2aabf611fd6;hpb=06c3b773099e2264831d5f4b4650eadb9290b296;p=plomrogue2
diff --git a/rogue_chat.py b/rogue_chat.py
index 93dee85..8aaf1a6 100755
--- a/rogue_chat.py
+++ b/rogue_chat.py
@@ -7,10 +7,10 @@ from plomrogue.commands import (cmd_ALL, cmd_LOGIN, cmd_NICK, cmd_PING, cmd_THIN
cmd_ANNOTATE, cmd_PORTAL, cmd_GET_GAMESTATE,
cmd_TASKS, cmd_MAP_CONTROL_LINE, cmd_MAP_CONTROL_PW,
cmd_GOD_ANNOTATE, cmd_GOD_PORTAL, cmd_THING_TYPES,
- cmd_THING_NAME)
+ cmd_THING_NAME, cmd_TERRAINS)
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_Stone
+from plomrogue.things import Thing_Player, Thing_Item, Thing_Furniture
import sys
if len(sys.argv) != 2:
@@ -35,6 +35,7 @@ game.register_command(cmd_GOD_PORTAL)
game.register_command(cmd_GET_GAMESTATE)
game.register_command(cmd_TASKS)
game.register_command(cmd_THING_TYPES)
+game.register_command(cmd_TERRAINS)
game.register_command(cmd_THING)
game.register_command(cmd_THING_NAME)
game.register_task(Task_WAIT)
@@ -44,7 +45,8 @@ game.register_task(Task_FLATTEN_SURROUNDINGS)
game.register_task(Task_PICK_UP)
game.register_task(Task_DROP)
game.register_thing_type(Thing_Player)
-game.register_thing_type(Thing_Stone)
+game.register_thing_type(Thing_Item)
+game.register_thing_type(Thing_Furniture)
game.read_savefile()
game.io.start_loop()
game.io.start_server(8000, PlomWebSocketServer)