+# This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+# or any later version. For details on its copyright, license, and warranties,
+# see the file NOTICE in the root directory of the PlomRogue source package.
+
+
from server.commands import command_plugin, command_quit, command_ping, \
command_thingshere, command_makeworld, command_seedrandomness, setter, \
command_maplength, command_worldactive, setter_map, command_taid, \
to be called on it.
"""
commands_db = {
- "PLUGIN": (1, True, command_plugin),
+ "PLUGIN": (1, False, command_plugin),
"QUIT": (0, True, command_quit),
"PING": (0, True, command_ping),
"THINGS_HERE": (2, True, command_thingshere),
"T_POSX": (1, False, setter_tpos("X")),
"wait": (0, False, play_wait),
"move": (1, False, play_move),
- "pick_up": (0, False, play_pickup),
+ "pickup": (0, False, play_pickup),
"drop": (1, False, play_drop),
"use": (1, False, play_use),
"ai": (0, False, command_ai)
}
# TODO: Unhandled cases: (Un-)killing animates (esp. player!) with T_LIFEPOINTS.
+
+command_worldactive_test_hook = lambda: True
+play_move_attempt_hook = lambda x, y, z: False
+play_use_attempt_hook = lambda x, y: None
+play_pickup_attempt_hook = lambda x: True