Improve the description of the backyard
[homeland.git] / src / objects / intro / backyard.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  backyard "Back Yard"
17   with  description 
18             "You are in your neighbor's back yard. It is barely cloudy 
19             and already hot this morning. Some shade from the sun 
20             would be nice but the closest tree is at the sidewalk, on 
21             the other side of the building and the sun is causing all 
22             of the shadows to go in the wrong direction. The healthy, 
23             dark green grass is well manicured. It looks like a nice 
24             place. You hear some dogs barking in the distance. A high 
25             wooden fence encompasses the area, painted a burnt umber. 
26             Their back door is to the east. Your kitchen window is to 
27             the south.",
28         before [;
29           Go:
30             if (noun == s_obj) {
31                 print 
32                     "Climbing over the fence you squeeze back through 
33                     your kitchen window.^";
34             }
35         ],
36         s_to window,
37         n_to "Their fence is too high to climb over in that direction.",
38         e_to backdoor,
39         w_to "Their fence is too high to climb over in that direction.",
40   has   light;
41
42 Object  grass "grass" backyard
43   with  name 'green' 'grass' 'meadow' 'sod' 'turf' 'lawn',
44         found_in backyard campsite,
45   has   scenery;
46
47 Object  sky "sky" backyard
48   with  name 'sky',
49         found_in backyard frontporch kitchen sidewalk,
50   has   scenery;
51
52 Object  leaves "leaves" backyard
53   with  name 'leaf' 'leaves',
54         found_in backyard sidewalk,
55   has   scenery;
56
57 Object  scratches "scratches" backyard
58   with  name 'scratch' 'scratches' 'mark' 'marks' 'marking' 'markings',
59         found_in backyard neighborkitchen,
60   has   scenery;
61
62 Object  house "neighbor's house" backyard
63   with  name 'neighbor' 'neighbors' 'house' 'home' 'building',
64         found_in backyard frontporch kitchen sidewalk,
65   has   scenery;
66
67 Object  backdoor "back door" backyard
68   with  name 'door' 'back' 'backdoor',
69         description 
70             "Burgundy in color it seems a solid and hefty door. It 
71             has scratches along the bottom, as if from a pet long 
72             forgotten.",
73         short_name [;
74             if (location == backyard)
75                 print "door to your neighbor's house";
76             else
77                 print "door to the back yard";
78             return true;
79         ],
80         found_in backyard neighborkitchen,
81         door_dir [;
82             if (location == backyard)
83                 return e_to;
84             else
85                 return w_to;
86         ],
87         door_to [;
88             if (location == backyard)
89                 return neighborkitchen;
90             else
91                 return backyard;
92         ],
93   has   scenery door openable;