home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In web client, fix study mode explorer positioning bug.
[plomrogue2]
/
rogue_chat.py
diff --git
a/rogue_chat.py
b/rogue_chat.py
index e15ee242e92d71e9c9e3a637e7e989f65f75ac13..18fc91bf2b7a0f707b8b65640054ac1ecfb0ca27 100755
(executable)
--- a/
rogue_chat.py
+++ b/
rogue_chat.py
@@
-6,10
+6,13
@@
from plomrogue.commands import (cmd_ALL, cmd_LOGIN, cmd_NICK, cmd_PING, cmd_THIN
cmd_MAP, cmd_TURN, cmd_MAP_LINE, cmd_GET_ANNOTATION,
cmd_ANNOTATE, cmd_PORTAL, cmd_GET_GAMESTATE,
cmd_TASKS, cmd_MAP_CONTROL_LINE, cmd_MAP_CONTROL_PW,
cmd_MAP, cmd_TURN, cmd_MAP_LINE, cmd_GET_ANNOTATION,
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_GOD_ANNOTATE, cmd_GOD_PORTAL, cmd_THING_TYPES,
+ cmd_THING_NAME, cmd_TERRAINS, cmd_ADMIN_PASSWORD,
+ cmd_BECOME_ADMIN, cmd_SET_TILE_CONTROL,
+ cmd_SET_MAP_CONTROL_PASSWORD)
from plomrogue.tasks import (Task_WAIT, Task_MOVE, Task_WRITE, Task_PICK_UP,
Task_DROP, Task_FLATTEN_SURROUNDINGS)
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_
Ston
e
+from plomrogue.things import Thing_Player, Thing_
Item, Thing_Furnitur
e
import sys
if len(sys.argv) != 2:
import sys
if len(sys.argv) != 2:
@@
-34,7
+37,13
@@
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_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)
+game.register_command(cmd_THING_NAME)
+game.register_command(cmd_ADMIN_PASSWORD)
+game.register_command(cmd_SET_TILE_CONTROL)
+game.register_command(cmd_SET_MAP_CONTROL_PASSWORD)
+game.register_command(cmd_BECOME_ADMIN)
game.register_task(Task_WAIT)
game.register_task(Task_MOVE)
game.register_task(Task_WRITE)
game.register_task(Task_WAIT)
game.register_task(Task_MOVE)
game.register_task(Task_WRITE)
@@
-42,7
+51,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_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)
game.read_savefile()
game.io.start_loop()
game.io.start_server(8000, PlomWebSocketServer)