mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
Elevator key check
This commit is contained in:
parent
709931441b
commit
73093d97e7
2 changed files with 20 additions and 4 deletions
|
|
@ -18,10 +18,13 @@ elevatorDoor: LockableWithKey, Door
|
|||
|
||||
dobjFor (UnlockWith) {
|
||||
action () {
|
||||
inherited;
|
||||
self.makeOpen(true);
|
||||
" A few seconds later
|
||||
the elevator arrived on the floor. ";
|
||||
if (keyFitsLock(gIobj)) {
|
||||
self.makeOpen(true);
|
||||
" A few seconds later
|
||||
the elevator arrived on the floor. ";
|
||||
} else {
|
||||
" You can't apply this to a card reader. ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue