mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
Tape wall and parts
This commit is contained in:
parent
0305d24d74
commit
dd1407a707
3 changed files with 69 additions and 12 deletions
|
|
@ -50,6 +50,7 @@ gameMain: GameMainDef
|
||||||
#include "src/item/advertisingDisplay.t"
|
#include "src/item/advertisingDisplay.t"
|
||||||
|
|
||||||
#include "src/room/cyanRoom.t"
|
#include "src/room/cyanRoom.t"
|
||||||
|
#include "src/item/tape.t"
|
||||||
|
|
||||||
#include "src/room/pinkRoom.t"
|
#include "src/room/pinkRoom.t"
|
||||||
|
|
||||||
|
|
|
||||||
58
src/item/tape.t
Normal file
58
src/item/tape.t
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
tapeWall: Thing, RoomPartItem
|
||||||
|
'striped safety tape*tapes'
|
||||||
|
'safety tape'
|
||||||
|
" Many layers of strips of
|
||||||
|
two-tone safety tape obscure the doorway.
|
||||||
|
<br>Looks like the black and yellow wall."
|
||||||
|
|
||||||
|
location = cyanRoom
|
||||||
|
specialNominalRoomPartLocation = defaultWestWall
|
||||||
|
|
||||||
|
isListed = nil
|
||||||
|
isRagged = nil
|
||||||
|
|
||||||
|
dobjFor (Remove) {
|
||||||
|
action () {
|
||||||
|
" After a while, you clear the doorway
|
||||||
|
and make a mess on the floor.";
|
||||||
|
|
||||||
|
isRagged = true;
|
||||||
|
|
||||||
|
location.west = pinkRoom;
|
||||||
|
|
||||||
|
pieceOfTape.makePresent();
|
||||||
|
uselessTape.makePresent();
|
||||||
|
|
||||||
|
self.moveInto(nil);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dobjFor (Break) remapTo(Remove, self)
|
||||||
|
dobjFor (Pull) remapTo(Remove, self)
|
||||||
|
|
||||||
|
dobjFor (Take) {
|
||||||
|
action () {
|
||||||
|
tryImplicitAction(Remove, self);
|
||||||
|
|
||||||
|
"You take one strip.";
|
||||||
|
pieceOfTape.moveInto(me);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
|
pieceOfTape: PresentLater, Thing
|
||||||
|
'long safety tape/strip/piece'
|
||||||
|
'long strip of tape'
|
||||||
|
@cyanRoom
|
||||||
|
" Quite a long piece of safety tape.
|
||||||
|
It can serve as a rope."
|
||||||
|
;
|
||||||
|
|
||||||
|
uselessTape: PresentLater, Decoration
|
||||||
|
'useless mess/tape'
|
||||||
|
'useless mess'
|
||||||
|
@cyanRoom
|
||||||
|
" Small pieces of black and yellow tape,
|
||||||
|
stuck together and crumpled."
|
||||||
|
isListed = true
|
||||||
|
;
|
||||||
|
|
@ -11,13 +11,18 @@ cyanRoom: Room
|
||||||
living units.
|
living units.
|
||||||
<br>On the east wall you can see
|
<br>On the east wall you can see
|
||||||
the armored door that says <q>Operating room</q>.
|
the armored door that says <q>Operating room</q>.
|
||||||
<br>Enclosed by safety tape,
|
<br><<tapeWall.isRagged
|
||||||
the doorway in the west wall
|
? 'The'
|
||||||
|
: 'Enclosed by safety tape, the'>>
|
||||||
|
doorway in the west wall
|
||||||
looks damaged and corrupted.
|
looks damaged and corrupted.
|
||||||
<.p>"
|
<.p>"
|
||||||
|
|
||||||
north = yellowRoom
|
north = yellowRoom
|
||||||
east = operatingRoomDoorOutside
|
east = operatingRoomDoorOutside
|
||||||
|
west: FakeConnector {"
|
||||||
|
Striped safety tape blocks your way.
|
||||||
|
"}
|
||||||
;
|
;
|
||||||
|
|
||||||
+ Decoration, Fixture
|
+ Decoration, Fixture
|
||||||
|
|
@ -31,15 +36,8 @@ cyanRoom: Room
|
||||||
+ operatingRoomDoorOutside: LockableWithKey, Door, RoomPartItem
|
+ operatingRoomDoorOutside: LockableWithKey, Door, RoomPartItem
|
||||||
'armored operating door*doors'
|
'armored operating door*doors'
|
||||||
'armored door'
|
'armored door'
|
||||||
" Armored door marked <q>Operating room</q>.
|
" Armored door marked <q>Operating room</q>
|
||||||
<br>Next to the door is a keycard reader
|
and a massive mechanical locking device with a keyhole.
|
||||||
and a sign <q>Restricted area</q>.<br>"
|
<br>Next to the door is a sign <q>Restricted area</q>.<br>"
|
||||||
specialNominalRoomPartLocation = defaultEastWall
|
|
||||||
;
|
|
||||||
|
|
||||||
+ Decoration, Fixture, RoomPartItem
|
|
||||||
'keycard reader'
|
|
||||||
'keycard reader'
|
|
||||||
"Small security device without any visible indicators."
|
|
||||||
specialNominalRoomPartLocation = defaultEastWall
|
specialNominalRoomPartLocation = defaultEastWall
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue