mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 09:07: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
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
|
||||
;
|
||||
Loading…
Add table
Add a link
Reference in a new issue