projects
/
koperkapel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Play weapon sounds when firing.
[koperkapel.git]
/
koperkapel
/
gamelib
/
keypad.py
diff --git
a/koperkapel/gamelib/keypad.py
b/koperkapel/gamelib/keypad.py
index 4667fcde95924490158653a8cc3355a61e19a6c7..b328f3965e54b3af1ed0b4997ae5bd739c246f3a 100644
(file)
--- a/
koperkapel/gamelib/keypad.py
+++ b/
koperkapel/gamelib/keypad.py
@@
-14,7
+14,10
@@
class Keypad(SurfActor):
surf = images.load(os.path.join('fixtures', 'keypad'))
super().__init__(surf, anchor=(0, 0))
surf = images.load(os.path.join('fixtures', 'keypad'))
super().__init__(surf, anchor=(0, 0))
- def activate(self):
+ def activate(self
, roaches
):
# FIXME: Check stats
for door in self._doors:
# FIXME: Check stats
for door in self._doors:
- door.open()
+ if door.is_closed():
+ door.open()
+ else:
+ door.close()