From: Christian Heller Date: Mon, 14 Dec 2020 20:19:41 +0000 (+0100) Subject: Refactor THING_DOOR_CLOSED save command. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/ledger?a=commitdiff_plain;h=e34635f6def56d744a0abbff6fb227b46f9b9d1d;p=plomrogue2 Refactor THING_DOOR_CLOSED save command. --- 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):