From e34635f6def56d744a0abbff6fb227b46f9b9d1d Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 14 Dec 2020 21:19:41 +0100 Subject: [PATCH] Refactor THING_DOOR_CLOSED save command. --- plomrogue/commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plomrogue/commands.py b/plomrogue/commands.py index 3a727ad..5b8bb28 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -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): -- 2.30.2