From 8e9c98d49b3c011aa48ed0fbb24ced71979165e5 Mon Sep 17 00:00:00 2001 From: He4eT Date: Tue, 10 Dec 2024 08:38:08 +0100 Subject: [PATCH] Add the fruitBox --- index.t | 1 + items/fruitBox.t | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 items/fruitBox.t diff --git a/index.t b/index.t index de7b241..c826ce3 100644 --- a/index.t +++ b/index.t @@ -31,3 +31,4 @@ gameMain: GameMainDef #include "locations/secondRoom.t" #include "items/note.t" +#include "items/fruitBox.t" diff --git a/items/fruitBox.t b/items/fruitBox.t new file mode 100644 index 0000000..ca992b3 --- /dev/null +++ b/items/fruitBox.t @@ -0,0 +1,36 @@ +Fruit: Food + desc = "Looks like a fruit. " + tasteDesc = "It's distinctly fruit-flavoured. " + smellDesc = "It has a kind of faint, fruity smell. " + feelDesc = "The fruit skin feels firm but smooth. " + soundDesc = "The fruit is strangely silent. " +; + +/* */ + +fruitBox: OpenableContainer, Heavy + 'wooden box' + 'wooden box' + "A huge wooden box with a sticker on the lid. " + isListed = true + location = startingRoom +; + ++ Decoration 'lid' 'lid' + "The lid is made of wood and decorated with a sticker. " +; + +++ Decoration 'sticker' 'sticker' + "It's just a sticker with a silly face. " +; + ++ apple: Fruit 'apple' 'apple'; ++ mango: Fruit 'mango' 'mango'; ++ orange: Fruit 'orange' 'orange'; ++ banana: Fruit + 'banana' + 'banana' + "It's yellow, about six inches long, and slightly curved.\n + This banana looks reasonably fresh. " + tasteDesc = "It's distinctly banana-flavoured. " +;