home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add toilets, and terrain type tags.
[plomrogue2]
/
plomrogue
/
commands.py
diff --git
a/plomrogue/commands.py
b/plomrogue/commands.py
index 50445e7f9c62f557b098d7e4781723679c11c74d..49312eeff129006a7755bee3ed4645088eaacf5e 100644
(file)
--- a/
plomrogue/commands.py
+++ b/
plomrogue/commands.py
@@
-28,6
+28,12
@@
def cmd_TERRAIN(game, character, description,
blocks_sound, blocks_movement)
cmd_TERRAIN.argtypes = 'char string bool bool bool'
blocks_sound, blocks_movement)
cmd_TERRAIN.argtypes = 'char string bool bool bool'
+def cmd_TERRAIN_TAG(game, character, tag):
+ if not character in game.terrains:
+ raise GameError('terrain does not exist: %s' % character)
+ game.terrains[character].tags.add(tag)
+cmd_TERRAIN_TAG.argtypes = 'char string'
+
def cmd_ALL(game, msg, connection_id):
speaker = game.get_player(connection_id)
if not speaker:
def cmd_ALL(game, msg, connection_id):
speaker = game.get_player(connection_id)
if not speaker: