From 46506fe96d3e9c826d332403342a5050e2c9346d Mon Sep 17 00:00:00 2001 From: He4eT Date: Fri, 27 Mar 2020 01:22:32 +0500 Subject: [PATCH] Random events --- experiment.t | 7 ++++--- src/item/_atmosphere.t | 15 +++++++++++++++ src/item/interior.t | 5 +++++ src/room/cyanRoom.t | 14 ++++++++++---- src/room/orangeRoom.t | 6 ------ 5 files changed, 34 insertions(+), 13 deletions(-) create mode 100644 src/item/_atmosphere.t diff --git a/experiment.t b/experiment.t index 9a31a1b..fe1a4bd 100644 --- a/experiment.t +++ b/experiment.t @@ -49,10 +49,11 @@ gameMain: GameMainDef #include "src/actor/pc.t" -#include "src/action/repair.t" - -#include "src/item/_bandage.t" #include "src/item/interior.t" +#include "src/item/_atmosphere.t" + +#include "src/action/repair.t" +#include "src/item/_bandage.t" /* rooms */ diff --git a/src/item/_atmosphere.t b/src/item/_atmosphere.t new file mode 100644 index 0000000..b091d4c --- /dev/null +++ b/src/item/_atmosphere.t @@ -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 + } +; diff --git a/src/item/interior.t b/src/item/interior.t index 3aa5029..ef01256 100644 --- a/src/item/interior.t +++ b/src/item/interior.t @@ -27,3 +27,8 @@ MultiLoc, Decoration pinkRoom ] ; + +Decoration + 'hidden speaker*speakers' + 'speakers' +; diff --git a/src/room/cyanRoom.t b/src/room/cyanRoom.t index dd92f0b..244bed5 100644 --- a/src/room/cyanRoom.t +++ b/src/room/cyanRoom.t @@ -20,9 +20,9 @@ cyanRoom: Room north = yellowRoom east = operatingRoomDoorOutside - west: FakeConnector {" - Striped safety tape blocks your way. - "} + west: FakeConnector { + "Striped safety tape blocks your way." + } ; + Decoration @@ -44,10 +44,16 @@ cyanRoom: Room -> operatingRoomDoor 'armored operating door*doors' 'armored door' - " Armored door marked Operating room + " It's an armored door marked Operating room and a massive mechanical locking device with a circle keyhole.
Next to the door is a sign Restricted area.
" keyList = [ labKey ] knownKeyList = [ labKey ] specialNominalRoomPartLocation = defaultEastWall ; + +++ Decoration + 'massive mechanical locking device' + 'locking device' + "It's a part of an armored door. " +; diff --git a/src/room/orangeRoom.t b/src/room/orangeRoom.t index 0da258e..2e7a364 100644 --- a/src/room/orangeRoom.t +++ b/src/room/orangeRoom.t @@ -54,12 +54,6 @@ orangeRoom: DarkRoom } ; -+ Decoration - 'neon lamp*lamps' - 'neon lamps' - "Ordinary neon lamps emit cold light. " -; - /* Content */ + RoomPartItem, Decoration