f883ca59b52694a8b4bb01ad744584872be904df
[homeland.git] / src / objects / frontporch.inf
1 ! Copyright (C) 2019 Jason Self <j@jxself.org>
2 !
3 ! This file is free software: you may copy, redistribute gand/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 by a 
20             parchment white wooden fence, with an opening to the 
21             sidewalk in the southeast. Their front door is to the 
22             west.",
23         cant_go "That parchment white wooden fence is too high to get over.",
24         se_to sidewalk,
25         w_to neighbordoor,
26   has   light;
27
28 Object  neighbordoor "front door" frontporch
29   with  name 'door' 'front' 'red',
30         description "A deep red color it has no window and a shiny 
31                     brass handle.",
32         found_in frontporch neighborlivingroom,
33         door_dir [;
34             if (location == frontporch)
35                 return w_to;
36             else
37                 return e_to;
38         ],
39         door_to [;
40             if (location == frontporch)
41                 return neighborlivingroom;
42             else
43                 return frontporch;
44         ],
45   has   scenery door openable;
46
47 Object  brasshandle "brass door handle" frontporch
48   with  name 'brass' 'handle',
49         found_in frontporch neighborlivingroom,
50   has   scenery;
51
52 Object  fence "wooden fence" frontporch
53   with  name 'fence' 'wooden' 'wood',
54         found_in backyard frontporch,
55   has   scenery;