From 7ea3d64c82df706b5c0d25e64a41f6974e4abf07 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Sun, 9 Jan 2022 23:28:56 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Adding=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes.inf | 17 ++++++++++++++++- Items.inf | 4 ++++ Rooms.inf | 5 +++-- remontel.inf | 1 + 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 Items.inf diff --git a/Classes.inf b/Classes.inf index 5a856f0..61fbeec 100644 --- a/Classes.inf +++ b/Classes.inf @@ -5,4 +5,19 @@ Class Set Examine: return false; default: print_ret "You can't do that with ", (the) self, "."; ], - has scenery; \ No newline at end of file + has scenery; + +Class Decoration + with before [; + Take,Pull,Push,PushDir: + print_ret "You can't do that with ", (the) self, "."; + ], + has static; + +Class Furniture + class Decoration, + with before [; + Take,Pull,Push,PushDir: + print_ret (the) self, " is too heavy for that."; + ], + has supporter; diff --git a/Items.inf b/Items.inf new file mode 100644 index 0000000..eb0fe6e --- /dev/null +++ b/Items.inf @@ -0,0 +1,4 @@ +Decoration poster "Starfleet recruitment poster" bunk + with name 'poster' 'recruitment', + description "A poster is attached to the roof of your bunk.^ + This poster is what inspired you to join Starfleet."; \ No newline at end of file diff --git a/Rooms.inf b/Rooms.inf index 08fb610..1d17ecd 100644 --- a/Rooms.inf +++ b/Rooms.inf @@ -1,3 +1,4 @@ +! @todo fix "You stand" when in bunk Room lower_decks "Lower Decks Corridor" with description "You stand in a lower decks corridor. This corridor contains several bunks @@ -5,8 +6,8 @@ Room lower_decks "Lower Decks Corridor" sleep."; ! @todo fix "in the Your bunk" -Object bunk "Your bunk" lower_decks - with name "bunk" "bunks", +Room bunk "Your bunk" lower_decks + with name 'bunk' 'bunks', description "Your bunk is like every other bunk on the lower decks.^ It's barely big enough to fit you. But it's home." has enterable container openable; diff --git a/remontel.inf b/remontel.inf index 21757da..e65d48a 100644 --- a/remontel.inf +++ b/remontel.inf @@ -9,6 +9,7 @@ Include "VerbLib"; Include "Globals.inf"; Include "Classes.inf"; Include "Rooms.inf"; +Include "Items.inf"; [ Initialise ; location = bunk;