mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
Switch and lights
This commit is contained in:
parent
b02b3b4339
commit
da76e65857
1 changed files with 30 additions and 2 deletions
|
|
@ -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."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue