mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
Elevator
This commit is contained in:
parent
b9904b2dbc
commit
6264e881b8
8 changed files with 79 additions and 10 deletions
|
|
@ -64,7 +64,10 @@ gameMain: GameMainDef
|
||||||
#include "src/room/pinkRoom.t"
|
#include "src/room/pinkRoom.t"
|
||||||
#include "src/item/labCoat.t"
|
#include "src/item/labCoat.t"
|
||||||
#include "src/item/lockers.t"
|
#include "src/item/lockers.t"
|
||||||
|
#include "src/item/elevator.t"
|
||||||
|
|
||||||
#include "src/room/redRoom.t"
|
#include "src/room/redRoom.t"
|
||||||
#include "src/item/dataCable.t"
|
#include "src/item/dataCable.t"
|
||||||
#include "src/actor/surgeryAssistant.t"
|
#include "src/actor/surgeryAssistant.t"
|
||||||
|
|
||||||
|
#include "src/room/blackRoom.t"
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ surgeryAssistant: Person
|
||||||
specialDesc = "
|
specialDesc = "
|
||||||
The surgical assistant examines the room. "
|
The surgical assistant examines the room. "
|
||||||
stateDesc = "
|
stateDesc = "
|
||||||
<br>Cameras are scanning the room.
|
<br>Cameras are scanning the room,
|
||||||
various servos, units and cables make distinctive sounds,
|
various servos, units and cables make distinctive sounds,
|
||||||
the bulky arms slowly sway. "
|
the bulky arms slowly sway. "
|
||||||
;
|
;
|
||||||
|
|
|
||||||
43
src/item/elevator.t
Normal file
43
src/item/elevator.t
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
elevatorDoor: LockableWithKey, Door
|
||||||
|
-> blackElevatorDoor
|
||||||
|
'elevator door*doors'
|
||||||
|
'elevator'
|
||||||
|
@pinkRoom
|
||||||
|
" Steel doors marked <q>restricted access</q>.
|
||||||
|
<br>There is a card reader on the right. "
|
||||||
|
|
||||||
|
keyList = [ keycard ]
|
||||||
|
knownKeyList = [ keycard ]
|
||||||
|
specialNominalRoomPartLocation = defaultSouthWall
|
||||||
|
|
||||||
|
openStatus {
|
||||||
|
return '<br>The elevator doors are <<isOpen
|
||||||
|
? 'open'
|
||||||
|
: 'closed'>>';
|
||||||
|
}
|
||||||
|
|
||||||
|
dobjFor (UnlockWith) {
|
||||||
|
action () {
|
||||||
|
inherited;
|
||||||
|
self.makeOpen(true);
|
||||||
|
" A few seconds later
|
||||||
|
the elevator arrived on the floor. ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
noteTraversal (traveler) {
|
||||||
|
" There is no controls inside.
|
||||||
|
<br>After you entered, the doors closed,
|
||||||
|
and after a while the elevator
|
||||||
|
stopped on another floor. ";
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
|
+ Decoration, RoomPartItem
|
||||||
|
'keycard card reader'
|
||||||
|
'keycard reader'
|
||||||
|
" Small security device without any visible indicators.
|
||||||
|
<br>You can unlock the elevator doors
|
||||||
|
using a suitable key card. "
|
||||||
|
specialNominalRoomPartLocation = defaultSouthWall
|
||||||
|
;
|
||||||
|
|
@ -63,3 +63,12 @@ modify VerbRule(SetTo)
|
||||||
"The sign reads <q>Alice Dash</q>.\b"
|
"The sign reads <q>Alice Dash</q>.\b"
|
||||||
code = '1984'
|
code = '1984'
|
||||||
;
|
;
|
||||||
|
|
||||||
|
++ keycard: Key
|
||||||
|
'key/card/keycard'
|
||||||
|
'keycard'
|
||||||
|
" It's a standard format keycard.
|
||||||
|
<br>On the front side is the name
|
||||||
|
<q>Alice Dash</q> and a barcode.
|
||||||
|
<br>The reverse side is empty. "
|
||||||
|
;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
yellowRoom,
|
yellowRoom,
|
||||||
cyanRoom,
|
cyanRoom,
|
||||||
pinkRoom,
|
pinkRoom,
|
||||||
redRoom
|
redRoom,
|
||||||
|
blackRoom
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
|
|
||||||
16
src/room/blackRoom.t
Normal file
16
src/room/blackRoom.t
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
blackRoom: Room
|
||||||
|
'Long corridor'
|
||||||
|
" Long corridor.
|
||||||
|
|
||||||
|
<<blackElevatorDoor.makeOpen(nil)>>
|
||||||
|
<<blackElevatorDoor.makeLocked(true)>>"
|
||||||
|
;
|
||||||
|
|
||||||
|
+ blackElevatorDoor: IndirectLockable, Door, RoomPartItem
|
||||||
|
'elevator door*doors'
|
||||||
|
'elevator doors'
|
||||||
|
" Steel doors marked <q>restricted access</q>.
|
||||||
|
<br>There are no controls here."
|
||||||
|
|
||||||
|
specialNominalRoomPartLocation = defaultWestWall
|
||||||
|
;
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
pinkRoom: Room
|
pinkRoom: Room
|
||||||
'Changing room'
|
'Changing room'
|
||||||
" An elevator vestibule with a row of lockers,
|
" An elevator vestibule with a row of lockers,
|
||||||
a dumpster and posters with safety rules. "
|
a dumpster and posters with safety rules.
|
||||||
|
<br>You can see the elevator doors on the north wall. "
|
||||||
|
|
||||||
east = cyanRoom
|
east = cyanRoom
|
||||||
|
south = elevatorDoor
|
||||||
;
|
;
|
||||||
|
|
||||||
+ Decoration
|
+ Decoration
|
||||||
|
|
@ -21,13 +23,6 @@ pinkRoom: Room
|
||||||
]}
|
]}
|
||||||
;
|
;
|
||||||
|
|
||||||
+ Decoration, RoomPartItem
|
|
||||||
'keycard reader'
|
|
||||||
'keycard reader'
|
|
||||||
"Small security device without any visible indicators. "
|
|
||||||
specialNominalRoomPartLocation = defaultSouthWall
|
|
||||||
;
|
|
||||||
|
|
||||||
+ Decoration
|
+ Decoration
|
||||||
'dumpster label'
|
'dumpster label'
|
||||||
'dumpster label'
|
'dumpster label'
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,5 @@
|
||||||
>s
|
>s
|
||||||
>take tape
|
>take tape
|
||||||
>w
|
>w
|
||||||
|
>type 1984 on numpad
|
||||||
|
>take keycard
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue