]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - battlestar/words.c
Allow for the bathing goddess in ravage(). From OpenBSD.
[bsdgames-darwin.git] / battlestar / words.c
1 /* $NetBSD: words.c,v 1.9 2000/09/21 17:44:34 jsm Exp $ */
2
3 /*
4 * Copyright (c) 1983, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 * must display the following acknowledgement:
17 * This product includes software developed by the University of
18 * California, Berkeley and its contributors.
19 * 4. Neither the name of the University nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 */
35
36 #include <sys/cdefs.h>
37 #ifndef lint
38 #if 0
39 static char sccsid[] = "@(#)words.c 8.2 (Berkeley) 4/28/95";
40 #else
41 __RCSID("$NetBSD: words.c,v 1.9 2000/09/21 17:44:34 jsm Exp $");
42 #endif
43 #endif /* not lint */
44
45 #include "extern.h"
46
47 struct wlist wlist[] = {
48 { "knife", KNIFE, OBJECT, NULL },
49 { "sword", SWORD, NOUNS, NULL },
50 { "scabbard", SWORD, OBJECT, NULL },
51 { "fine", SWORD, OBJECT, NULL },
52 { "two-handed", TWO_HANDED, OBJECT, NULL },
53 { "cleaver", CLEAVER, OBJECT, NULL },
54 { "broadsword", BROAD, OBJECT, NULL },
55 { "mail", MAIL, OBJECT, NULL },
56 { "coat", MAIL, OBJECT, NULL },
57 { "helmet", HELM, OBJECT, NULL },
58 { "shield", SHIELD, OBJECT, NULL },
59 { "maid", MAID, OBJECT, NULL },
60 { "maid's", MAID, OBJECT, NULL },
61 { "body", BODY, NOUNS, NULL },
62 { "viper", VIPER, OBJECT, NULL },
63 { "lamp", LAMPON, OBJECT, NULL },
64 { "lantern", LAMPON, OBJECT, NULL },
65 { "shoes", SHOES, OBJECT, NULL },
66 { "pajamas", PAJAMAS, OBJECT, NULL },
67 { "robe", ROBE, OBJECT, NULL },
68 { "amulet", AMULET, NOUNS, NULL },
69 { "medallion", MEDALION, NOUNS, NULL },
70 { "talisman", TALISMAN, NOUNS, NULL },
71 { "woodsman", DEADWOOD, OBJECT, NULL },
72 { "woodsman's", DEADWOOD, OBJECT, NULL },
73 { "mallet", MALLET, OBJECT, NULL },
74 { "laser", LASER, OBJECT, NULL },
75 { "pistol", LASER, OBJECT, NULL },
76 { "blaster", LASER, OBJECT, NULL },
77 { "gun", LASER, OBJECT, NULL },
78 { "goddess", NORMGOD, NOUNS, NULL },
79 { "grenade", GRENADE, OBJECT, NULL },
80 { "chain", CHAIN, OBJECT, NULL },
81 { "rope", ROPE, OBJECT, NULL },
82 { "levis", LEVIS, OBJECT, NULL },
83 { "pants", LEVIS, OBJECT, NULL },
84 { "mace", MACE, OBJECT, NULL },
85 { "shovel", SHOVEL, OBJECT, NULL },
86 { "halberd", HALBERD, OBJECT, NULL },
87 { "compass", COMPASS, OBJECT, NULL },
88 { "elf", ELF, OBJECT, NULL },
89 { "coins", COINS, OBJECT, NULL },
90 { "matches", MATCHES, OBJECT, NULL },
91 { "match", MATCHES, OBJECT, NULL },
92 { "book", MATCHES, OBJECT, NULL },
93 { "man", MAN, NOUNS, NULL },
94 { "papaya", PAPAYAS, OBJECT, NULL },
95 { "papayas", PAPAYAS, OBJECT, NULL },
96 { "pineapple", PINEAPPLE, OBJECT, NULL },
97 { "kiwi", KIWI, OBJECT, NULL },
98 { "coconut", COCONUTS, OBJECT, NULL },
99 { "coconuts", COCONUTS, OBJECT, NULL },
100 { "mango", MANGO, OBJECT, NULL },
101 { "ring", RING, OBJECT, NULL },
102 { "potion", POTION, OBJECT, NULL },
103 { "bracelet", BRACELET, OBJECT, NULL },
104 { "timer", TIMER, NOUNS, NULL },
105 { "bomb", BOMB, OBJECT, NULL },
106 { "warhead", BOMB, OBJECT, NULL },
107 { "girl", NATIVE, NOUNS, NULL },
108 { "native", NATIVE, NOUNS, NULL },
109 { "horse", HORSE, OBJECT, NULL },
110 { "stallion", HORSE, OBJECT, NULL },
111 { "car", CAR, OBJECT, NULL },
112 { "volare", CAR, OBJECT, NULL },
113 { "pot", POT, OBJECT, NULL },
114 { "jewels", POT, OBJECT, NULL },
115 { "bar", BAR, OBJECT, NULL },
116 { "diamond", BLOCK, OBJECT, NULL },
117 { "block", BLOCK, OBJECT, NULL },
118 { "up", UP, VERB, NULL },
119 { "u", UP, VERB, NULL },
120 { "down", DOWN, VERB, NULL },
121 { "d", DOWN, VERB, NULL },
122 { "ahead", AHEAD, VERB, NULL },
123 { "a", AHEAD, VERB, NULL },
124 { "back", BACK, VERB, NULL },
125 { "b", BACK, VERB, NULL },
126 { "right", RIGHT, VERB, NULL },
127 { "r", RIGHT, VERB, NULL },
128 { "left", LEFT, VERB, NULL },
129 { "l", LEFT, VERB, NULL },
130 { "take", TAKE, VERB, NULL },
131 { "get", TAKE, VERB, NULL },
132 { "use", USE, VERB, NULL },
133 { "look", LOOK, VERB, NULL },
134 { "lo", LOOK, VERB, NULL },
135 { "quit", QUIT, VERB, NULL },
136 { "q", QUIT, VERB, NULL },
137 { "su", SU, VERB, NULL },
138 { "drop", DROP, VERB, NULL },
139 { "draw", DRAW, VERB, NULL },
140 { "pull", DRAW, VERB, NULL },
141 { "carry", DRAW, VERB, NULL },
142 { "wear", WEARIT, VERB, NULL },
143 { "sheathe", WEARIT, VERB, NULL },
144 { "put", PUT, VERB, NULL },
145 { "buckle", PUT, VERB, NULL },
146 { "strap", PUT, VERB, NULL },
147 { "tie", PUT, VERB, NULL },
148 { "inven", INVEN, VERB, NULL },
149 { "i", INVEN, VERB, NULL },
150 { "everything", EVERYTHING, OBJECT, NULL },
151 { "all", EVERYTHING, OBJECT, NULL },
152 { "and", AND, CONJ, NULL },
153 { ",", AND, CONJ, NULL },
154 { "kill", KILL, VERB, NULL },
155 { "fight", KILL, VERB, NULL },
156 { "ravage", RAVAGE, VERB, NULL },
157 { "rape", RAVAGE, VERB, NULL },
158 { "undress", UNDRESS, VERB, NULL },
159 { "throw", THROW, VERB, NULL },
160 { "launch", LAUNCH, VERB, NULL },
161 { "land", LANDIT, VERB, NULL },
162 { "light", LIGHT, VERB, NULL },
163 { "strike", LIGHT, VERB, NULL },
164 { "follow", FOLLOW, VERB, NULL },
165 { "chase", FOLLOW, VERB, NULL },
166 { "kiss", KISS, VERB, NULL },
167 { "love", LOVE, VERB, NULL },
168 { "fuck", LOVE, VERB, NULL },
169 { "give", GIVE, VERB, NULL },
170 { "smite", SMITE, VERB, NULL },
171 { "attack", SMITE, VERB, NULL },
172 { "swing", SMITE, VERB, NULL },
173 { "stab", SMITE, VERB, NULL },
174 { "slice", SMITE, VERB, NULL },
175 { "cut", SMITE, VERB, NULL },
176 { "hack", SMITE, VERB, NULL },
177 { "shoot", SHOOT, VERB, NULL },
178 { "blast", SHOOT, VERB, NULL },
179 { "open", OPEN, VERB, NULL },
180 { "unlock", OPEN, VERB, NULL },
181 { "on", ON, PREPS, NULL },
182 { "off", OFF, PREPS, NULL },
183 { "time", TIME, VERB, NULL },
184 { "sleep", SLEEP, VERB, NULL },
185 { "dig", DIG, VERB, NULL },
186 { "eat", EAT, VERB, NULL },
187 { "swim", SWIM, VERB, NULL },
188 { "drink", DRINK, VERB, NULL },
189 { "door", DOOR, NOUNS, NULL },
190 { "verbose", VERBOSE, VERB, NULL },
191 { "brief", BRIEF, VERB, NULL },
192 { "save", SAVE, VERB, NULL },
193 { "ride", RIDE, VERB, NULL },
194 { "mount", RIDE, VERB, NULL },
195 { "drive", DRIVE, VERB, NULL },
196 { "start", DRIVE, VERB, NULL },
197 { "score", SCORE, VERB, NULL },
198 { "points", SCORE, VERB, NULL },
199 { "bury", BURY, VERB, NULL },
200 { "jump", JUMP, VERB, NULL },
201 { "kick", KICK, VERB, NULL },
202 { "kerosene", 0, ADJS, NULL },
203 { "plumed", 0, ADJS, NULL },
204 { "ancient", 0, ADJS, NULL },
205 { "golden", 0, ADJS, NULL },
206 { "gold", 0, ADJS, NULL },
207 { "ostrich", 0, ADJS, NULL },
208 { "rusty", 0, ADJS, NULL },
209 { "old", 0, ADJS, NULL },
210 { "dented", 0, ADJS, NULL },
211 { "blue", 0, ADJS, NULL },
212 { "purple", 0, ADJS, NULL },
213 { "kingly", 0, ADJS, NULL },
214 { "the", 0, ADJS, NULL },
215 { "climb", 0, ADJS, NULL },
216 { "move", 0, ADJS, NULL },
217 { "make", 0, ADJS, NULL },
218 { "to", 0, ADJS, NULL },
219 { NULL, 0, 0, NULL }
220 };