-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrollCentralHallway.t
55 lines (50 loc) · 1.77 KB
/
TrollCentralHallway.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#charset "us-ascii"
#include <adv3.h>
#include <en_us.h>
//
// CENTRAL HALLWAY
//
trollCentralHallway: TrollRoom 'Central Hallway' 'the central hallway'
"This narrow hallway is approximately the center point of Troll Base. The walls
here are made of painted plywood while the floor is covered with linoleum. There
is a door labelled <i>Gym</i> to the north and a door labelled <i>Kitchen</i> to
the south. There are more doors down the hallway to the west, while the base
entrance is to the east. "
west = trollWestHallway
east = trollEastHallway
north = doorTrollCentralHallwayNorth
south = doorTrollCentralHallwaySouth
;
+ trollCentralHallwayDoors: CollectiveGroup, SecretFixture '*doors' 'doors'
desc() {
"There is a door labelled <i>Gym</i> to the north and a door labelled
<i>Kitchen</i> to the south. ";
if(doorTrollCentralHallwayNorth.isOpen && doorTrollCentralHallwaySouth.isOpen) {
"Both doors are currently open. ";
} else if (doorTrollCentralHallwayNorth.isOpen) {
"The north door is open. ";
} else if (doorTrollCentralHallwaySouth.isOpen) {
"The south door is open. ";
} else {
"Both doors are currently closed. ";
}
}
;
+ doorTrollCentralHallwayNorth: TrollDoor 'north door*doors' 'north door'
customDesc() {
inherited;
"This door is labelled <i>Gym</i>. ";
}
masterObject = doorTrollGymSouth
specialNominalRoomPartLocation = trollNorthWall
collectiveGroups = [trollCentralHallwayDoors]
;
+ doorTrollCentralHallwaySouth: TrollDoor 'south door*doors' 'south door'
customDesc() {
inherited;
"This door is labelled <i>Kitchen</i>. ";
}
masterObject = doorTrollKitchenNorth
specialNominalRoomPartLocation = trollSouthWall
collectiveGroups = [trollCentralHallwayDoors]
;