home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove filter-TODO now fulfilled directly in parser.
[plomrogue2]
/
plomrogue
/
commands.py
diff --git
a/plomrogue/commands.py
b/plomrogue/commands.py
index dea4b63d4c4c69e0d42b8abc90a7c345c2945312..dc2e6ead099deb9c2a873f93e3309bd327d7d464 100644
(file)
--- a/
plomrogue/commands.py
+++ b/
plomrogue/commands.py
@@
-96,7
+96,7
@@
def cmd_THING_PROTECTION(game, thing_id, protection_char, connection_id):
if not t:
raise GameError('thing of ID %s not found' % thing_id)
t.protection = protection_char
if not t:
raise GameError('thing of ID %s not found' % thing_id)
t.protection = protection_char
- game.changed = True
+
#
game.changed = True
cmd_THING_PROTECTION.argtypes = 'int:pos char'
def cmd_SET_MAP_CONTROL_PASSWORD(game, tile_class, password, connection_id):
cmd_THING_PROTECTION.argtypes = 'int:pos char'
def cmd_SET_MAP_CONTROL_PASSWORD(game, tile_class, password, connection_id):
@@
-108,7
+108,7
@@
def cmd_SET_MAP_CONTROL_PASSWORD(game, tile_class, password, connection_id):
if tile_class == '.':
raise GameError('tile class "." must remain unprotected')
game.map_control_passwords[tile_class] = password
if tile_class == '.':
raise GameError('tile class "." must remain unprotected')
game.map_control_passwords[tile_class] = password
- game.changed = True
+
#
game.changed = True
cmd_SET_MAP_CONTROL_PASSWORD.argtypes = 'char string'
def cmd_NICK(game, nick, connection_id):
cmd_SET_MAP_CONTROL_PASSWORD.argtypes = 'char string'
def cmd_NICK(game, nick, connection_id):
@@
-312,5
+312,5
@@
def cmd_THING_BOTTLE_EMPTY(game, thing_id):
raise GameError('thing of ID %s not found' % thing_id)
if not t.type_ == 'Bottle':
raise GameError('thing of ID %s not bottle' % thing_id)
raise GameError('thing of ID %s not found' % thing_id)
if not t.type_ == 'Bottle':
raise GameError('thing of ID %s not bottle' % thing_id)
- t.
full = False
+ t.
empty()
cmd_THING_BOTTLE_EMPTY.argtypes = 'int:pos'
cmd_THING_BOTTLE_EMPTY.argtypes = 'int:pos'