jsm
ca0c4d77e3
Add new flags OBJ_PERSON and OBJ_NONOBJ to the objflags array.
2000-09-25 14:44:59 +00:00
jsm
e2872de219
Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately in
...
messages; avoids "a amulet", "a Elf". Define and use macros to use
"a", "an", "the", "is", "are" appropriately. Partly based on OpenBSD.
2000-09-25 14:08:08 +00:00
jsm
579d7e283b
Make hash table static in parse.c.
2000-09-24 14:11:09 +00:00
jsm
91d0e30d01
Use NULL instead of 0 (from OpenBSD). Also add or adjust comments.
2000-09-24 09:47:22 +00:00
jsm
d3579258c9
Use a lookup table to identify whether objects are plural or singular,
...
instead of testing the final character against 's' in each place.
Avoids oddities about "pot of jewels" and "compass".
2000-09-23 19:23:57 +00:00
jsm
1fc5d09e80
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.
2000-09-21 17:44:34 +00:00
jsm
31b523eee5
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".
2000-09-17 23:03:43 +00:00
jsm
c6bbb5288d
Store copy of username with strdup rather than using a fixed length
...
buffer. Also make initialization functions and arrays static.
2000-09-09 09:37:58 +00:00
jsm
a7c82eea02
Spelling and punctuation corrections or improvements from OpenBSD.
2000-09-08 17:25:31 +00:00
jsm
5e8cc984ee
Declare variables in extern.h as extern, and add non-extern
...
declarations to globals.c.
1999-09-14 19:54:47 +00:00
hubertf
12a0758a42
From PR 7987 by Joseph Myers <jsm28@cam.ac.uk>:
...
More battlestar(6) spelling and punctuation fixes for battlestar(6).
These ones come from OpenBSD.
1999-07-14 17:42:13 +00:00
hubertf
bd8be7848a
Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>
1999-02-10 01:36:50 +00:00
lukem
31c7a7bec5
KNFify (with indent)
1997-10-11 02:06:55 +00:00
lukem
b6068ea04b
WARNSify
1997-10-10 11:39:08 +00:00
tls
34cd8f5bdf
Sync to 4.4BSD-Lite2
1997-01-07 11:56:32 +00:00
cgd
101657d110
clean up import
1995-03-21 15:03:38 +00:00
mycroft
8542364e07
Add RCS identifiers.
1993-08-01 18:49:50 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00