#
5fd015d6 |
| 25-Sep-2000 |
jsm <jsm@NetBSD.org> |
In cypher(), don't attempt to make sense of words other than VERBs or KNIFE when a verb is required. Add AUXVERB for "make", "move", "climb" (as in "make love", "climb up") and ignore AUXVERB as a v
In cypher(), don't attempt to make sense of words other than VERBs or KNIFE when a verb is required. Add AUXVERB for "make", "move", "climb" (as in "make love", "climb up") and ignore AUXVERB as a verb, going on to the next word, instead of treating these words as adjectives. When creating new verbs from "put on", "put down", "take off", mark them as type VERB. Mostly from Paul Janzen <pjanzen@foatdi.harvard.edu>.
show more ...
|
#
1fc5d09e |
| 21-Sep-2000 |
jsm <jsm@NetBSD.org> |
Various improvements to parsing in battlestar, mostly from OpenBSD.
Define a constant WORDLEN. Always use this constant and NWORD where appropriate.
Use NWORD - 1 in battlestar.c to avoid off-by-o
Various improvements to parsing in battlestar, mostly from OpenBSD.
Define a constant WORDLEN. Always use this constant and NWORD where appropriate.
Use NWORD - 1 in battlestar.c to avoid off-by-one error.
Increment wordnumber after the INVEN verb to allow it to be followed by a comma and other actions.
Avoid overflowing elements of the words array if input words are too long.
Parse "," as AND except when followed by a verb, to allow such constructions as "take foo, bar, and baz". Trim AND AND which may occur from the ", and" in such a list.
Avoid crashes from EVERYTHING in the wrong place by moving it to the start of OBJECT AND EVERYTHING and NOUNS AND EVERYTHING sequences, and trimming EVERYTHING AND EVERYTHING.
show more ...
|
#
31b523ee |
| 17-Sep-2000 |
jsm <jsm@NetBSD.org> |
Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op), and "verbose"/"brief" (in verbose mode, always show long room descriptions), and synonyms "papaya" for "papayas" and "coconut" f
Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op), and "verbose"/"brief" (in verbose mode, always show long room descriptions), and synonyms "papaya" for "papayas" and "coconut" for "coconuts".
show more ...
|