This commit is contained in:
He4eT 2020-03-21 03:02:50 +05:00
commit 6264e881b8
8 changed files with 79 additions and 10 deletions

View file

@ -64,7 +64,10 @@ gameMain: GameMainDef
#include "src/room/pinkRoom.t"
#include "src/item/labCoat.t"
#include "src/item/lockers.t"
#include "src/item/elevator.t"
#include "src/room/redRoom.t"
#include "src/item/dataCable.t"
#include "src/actor/surgeryAssistant.t"
#include "src/room/blackRoom.t"

View file

@ -52,7 +52,7 @@ surgeryAssistant: Person
specialDesc = "
The surgical assistant examines the room. "
stateDesc = "
<br>Cameras are scanning the room.
<br>Cameras are scanning the room,
various servos, units and cables make distinctive sounds,
the bulky arms slowly sway. "
;

43
src/item/elevator.t Normal file
View 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
;

View file

@ -63,3 +63,12 @@ modify VerbRule(SetTo)
"The sign reads <q>Alice Dash</q>.\b"
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. "
;

View file

@ -9,6 +9,7 @@
yellowRoom,
cyanRoom,
pinkRoom,
redRoom
redRoom,
blackRoom
]
;

16
src/room/blackRoom.t Normal file
View 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
;

View file

@ -1,9 +1,11 @@
pinkRoom: Room
'Changing room'
" 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
south = elevatorDoor
;
+ Decoration
@ -21,13 +23,6 @@ pinkRoom: Room
]}
;
+ Decoration, RoomPartItem
'keycard reader'
'keycard reader'
"Small security device without any visible indicators. "
specialNominalRoomPartLocation = defaultSouthWall
;
+ Decoration
'dumpster label'
'dumpster label'

View file

@ -7,3 +7,5 @@
>s
>take tape
>w
>type 1984 on numpad
>take keycard