From bd540c26b93a50f6464eb408c752f504958d95a9 Mon Sep 17 00:00:00 2001 From: He4eT Date: Sat, 23 Nov 2019 03:13:28 +0500 Subject: [PATCH] Discoverable lab coat --- experiment.t | 1 + src/item/labCoat.t | 38 ++++++++++++++++++++++++++++++++++++++ src/room/pinkRoom.t | 26 ++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 src/item/labCoat.t diff --git a/experiment.t b/experiment.t index 1f4d497..3d2185c 100644 --- a/experiment.t +++ b/experiment.t @@ -53,5 +53,6 @@ gameMain: GameMainDef #include "src/item/tape.t" #include "src/room/pinkRoom.t" +#include "src/item/labCoat.t" #include "src/actor/pc.t" diff --git a/src/item/labCoat.t b/src/item/labCoat.t new file mode 100644 index 0000000..2a48c02 --- /dev/null +++ b/src/item/labCoat.t @@ -0,0 +1,38 @@ +labCoat: Container + 'bloody cloth' + 'bloody cloth' + @dumpster + " The lab coat labeled Dr. Smith. + Aside from the bloodstains, + you can see some sloppy cuts obviously made in a hurry. + << labKey.location == labCoat + ? '
Something heavy is hidden inside one of the pockets. ' + : ''>>" + + firstLook = nil + initDesc = " + <> + covered in blood.
+ You should take a closer look. + <>" + + dobjFor (Examine) { + action() { + if (!described) changeName(); + inherited(); + } + } + + changeName () { + name = 'lab coat'; + firstLook = true; + initializeVocabWith('cutted lab coat'); + "The bloody cloth turns out to be a cutted lab coat."; + } +; + ++ labKey: Key, Hidden + 'massive steel lab key*keys' + 'massive key' + "Key" +; diff --git a/src/room/pinkRoom.t b/src/room/pinkRoom.t index 8f07b06..a863d56 100644 --- a/src/room/pinkRoom.t +++ b/src/room/pinkRoom.t @@ -11,3 +11,29 @@ pinkRoom: Room "Small security device without any visible indicators." specialNominalRoomPartLocation = defaultSouthWall ; + ++ Decoration + 'label' + 'label' + "Label says CAUTION! Do Not Load Over Top of Container." +; + ++ dumpster: OpenableContainer + 'big garbage container/dumpster' + 'dumpster' + " A large metal container.
+ The label says + CAUTION! Do Not Load Over Top of Container. +
" +; + + +++ Decoration + 'construction waste/bricks/fragments/remains' + 'construction waste' + " Gray bricks, + fragments of the wall and + the remains of the nearest door. +
Nothing intresting." + isListed = true +;