home · contact · privacy
Refactor THING_DOOR_CLOSED save command.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 20:19:41 +0000 (21:19 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 20:19:41 +0000 (21:19 +0100)
plomrogue/commands.py

index 3a727ad4885333527e114f0a019b57d5abc5c9e6..5b8bb28293fbff0b5baa5a37a69f6b14fc499e68 100644 (file)
@@ -287,9 +287,7 @@ def cmd_THING_DOOR_CLOSED(game, thing_id):
         raise GameError('thing of ID %s not found' % thing_id)
     if not t.type_ == 'Door':
         raise GameError('thing of ID %s not door' % thing_id)
-    t.blocking = True
-    t.portable = False
-    t.thing_char = '#'
+    t.close()
 cmd_THING_DOOR_CLOSED.argtypes = 'int:pos'
 
 def cmd_THING_MUSICPLAYER_SETTINGS(game, thing_id, playing, index, repeat):