home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c9475a
)
Refactor THING_DOOR_CLOSED save command.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 14 Dec 2020 20:19:41 +0000
(21:19 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 14 Dec 2020 20:19:41 +0000
(21:19 +0100)
plomrogue/commands.py
patch
|
blob
|
history
diff --git
a/plomrogue/commands.py
b/plomrogue/commands.py
index 3a727ad4885333527e114f0a019b57d5abc5c9e6..5b8bb28293fbff0b5baa5a37a69f6b14fc499e68 100644
(file)
--- 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):