Switch and lights

This commit is contained in:
He4eT 2019-10-30 04:04:08 +05:00
commit da76e65857

View file

@ -1,4 +1,4 @@
orangeRoom: Room orangeRoom: DarkRoom
'Orange room' 'Orange room'
" You're standing in the large room. " You're standing in the large room.
<br>The walls, floors and ceiling are <br>The walls, floors and ceiling are
@ -14,6 +14,34 @@ orangeRoom: Room
and a desk against the east wall." and a desk against the east wall."
; ;
+ OnOffControl, Fixture
'small luminous switch/light/lights'
'small luminous switch'
"It's a small luminous switch on the wall"
isListed = true
brightness = 1
dobjFor (TurnOn) {
preCond = inherited + actorStanding
action () { inherited(); }
}
makeOn (val) {
inherited(val);
location.brightness = val ? 3 : 0;
val
? "You hear slight hum of neon lamps, followed with bright light."
: "Darkness filled the room.";
}
;
+ Decoration
'neon lamp/lamps'
'neon lamps'
"Ordinary neon lamps emit cold light."
;
+ Decoration + Decoration
'orange digits/number' 'orange digits/number'
'orange number' 'orange number'
@ -21,7 +49,7 @@ orangeRoom: Room
without additional explanation." without additional explanation."
; ;
+ bed: Bed, Heavy + orangeBed: Bed, Heavy
'ascetic bed' 'ascetic bed'
'ascetic bed' 'ascetic bed'
"It has a plastic frame and an unsprung mattress." "It has a plastic frame and an unsprung mattress."