c04195355ed618058e13d35c8eac7d4a8c418f5e
[homeland.git] / src / objects / intro / frontporch.inf
1 ! Copyright (C) 2019, 2020 Jason Self <j@jxself.org>
2 !
3 ! This file is free software: you may copy, redistribute and/or
4 ! modify it under the terms of the GNU Affero General Public License
5 ! as published by the Free Software Foundation, either version 3 of
6 ! the License, or (at your option) any later version.
7 !
8 ! This file is distributed in the hope that it will be useful, but
9 ! WITHOUT ANY WARRANTY; without even the implied warranty of
10 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 ! Affero General Public License for more details.
12 !
13 ! You should have received a copy of the GNU Affero General Public
14 ! License along with this file. If not, see https://gnu.org/licenses/
15
16 Object  frontporch "Front Porch"
17   with  description 
18             "You are on your neighbor's front porch. It consists of a 
19             coffee brown wooden floor connected to and surrounded a 
20             parchment white wooden fence. The fence is obviously new 
21             and looks great. It's tall enough to make climbing it 
22             impossible. The design of the porch places the focus on 
23             the front door. A deep red color, the door is large, high 
24             quality and has no window. It has a shiny brass handle, 
25             which appears very sturdy. There's an opening to the 
26             southwest toward the sidewalk. Their front door is to the 
27             west.",
28         cant_go "That parchment white wooden fence is too high to get over.",
29         se_to sidewalk,
30         w_to neighbordoor,
31   has   light;
32
33 Object  neighbordoor "front door" frontporch
34   with  name 'door' 'front' 'red',
35         description "The door is large and high quality. A deep red 
36                     color it has no window and a shiny brass handle, 
37                     which appears to be very sturdy.",
38         found_in frontporch neighborlivingroom,
39         door_dir [;
40             if (location == frontporch)
41                 return w_to;
42             else
43                 return e_to;
44         ],
45         door_to [;
46             if (location == frontporch)
47                 return neighborlivingroom;
48             else
49                 return frontporch;
50         ],
51   has   scenery door openable;
52
53 Object  brasshandle "brass door handle" frontporch
54   with  name 'brass' 'handle',
55         found_in frontporch neighborlivingroom,
56   has   scenery;
57
58 Object  fence "wooden fence" frontporch
59   with  name 'fence' 'wooden' 'wood',
60         found_in backyard frontporch,
61   has   scenery;