Random events

This commit is contained in:
He4eT 2020-03-27 01:22:32 +05:00
commit 46506fe96d
5 changed files with 33 additions and 12 deletions

View file

@ -49,10 +49,11 @@ gameMain: GameMainDef
#include "src/actor/pc.t" #include "src/actor/pc.t"
#include "src/action/repair.t"
#include "src/item/_bandage.t"
#include "src/item/interior.t" #include "src/item/interior.t"
#include "src/item/_atmosphere.t"
#include "src/action/repair.t"
#include "src/item/_bandage.t"
/* rooms */ /* rooms */

15
src/item/_atmosphere.t Normal file
View file

@ -0,0 +1,15 @@
modify Room
atmosphereList : ShuffledEventList {
[
'The lamps blinked several times in a row.\n',
'The walls vibrated slightly, but it was quickly over.\n',
'There was a noise under the floor.\n',
'Suddenly there was a series of clicks behind the panels.\n',
' Illegible voices came from
hidden speakers and soon died away.\n',
' Snatches of conversation came from the speakers,
but the words were indecipherable.\n'
]
eventPercent = 30
}
;

View file

@ -27,3 +27,8 @@ MultiLoc, Decoration
pinkRoom pinkRoom
] ]
; ;
Decoration
'hidden speaker*speakers'
'speakers'
;

View file

@ -20,9 +20,9 @@ cyanRoom: Room
north = yellowRoom north = yellowRoom
east = operatingRoomDoorOutside east = operatingRoomDoorOutside
west: FakeConnector {" west: FakeConnector {
Striped safety tape blocks your way. "Striped safety tape blocks your way."
"} }
; ;
+ Decoration + Decoration
@ -44,10 +44,16 @@ cyanRoom: Room
-> operatingRoomDoor -> operatingRoomDoor
'armored operating door*doors' 'armored operating door*doors'
'armored door' 'armored door'
" Armored door marked <q>Operating room</q> " It's an armored door marked <q>Operating room</q>
and a massive mechanical locking device with a circle keyhole. and a massive mechanical locking device with a circle keyhole.
<br>Next to the door is a sign <q>Restricted area</q>.<br>" <br>Next to the door is a sign <q>Restricted area</q>.<br>"
keyList = [ labKey ] keyList = [ labKey ]
knownKeyList = [ labKey ] knownKeyList = [ labKey ]
specialNominalRoomPartLocation = defaultEastWall specialNominalRoomPartLocation = defaultEastWall
; ;
++ Decoration
'massive mechanical locking device'
'locking device'
"It's a part of an armored door. "
;

View file

@ -54,12 +54,6 @@ orangeRoom: DarkRoom
} }
; ;
+ Decoration
'neon lamp*lamps'
'neon lamps'
"Ordinary neon lamps emit cold light. "
;
/* Content */ /* Content */
+ RoomPartItem, Decoration + RoomPartItem, Decoration