jsm
5fd015d6f6
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>.
2000-09-25 19:37:58 +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
ac1f171d5b
Correct spelling "dont" to "don't". From OpenBSD.
2000-09-24 09:46:57 +00:00
jsm
b40caee28a
Give a better message for trying to eat things it doesn't make sense
...
to eat. For something eatable, check first whether you're holding it,
then whether you have a knife, then whether you're stuffed (gives
better message for "eat coconuts" when you don't have any). From
OpenBSD.
2000-09-24 09:46:03 +00:00
jsm
1b39778596
Attempt to disambiguate BODY for kicking. Avoid crashing or nonsense
...
messages on "kick door" and "kick man". From OpenBSD.
2000-09-24 09:39:56 +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
05ca74ab1c
Don't say "Kicked." of an object not present; give sensible messages.
...
From OpenBSD.
2000-09-22 12:38:10 +00:00
jsm
016903dbdb
Check for an object being taken not being there before checking for
...
whether it is too heavy or too bulky; gives a better message for "take
viper" with the viper not present.
2000-09-22 12:37:32 +00:00
jsm
0f933d0d56
Remove all adjectives in parse(), since they are nowhere used. Fixes
...
crash on "carry old all" shown up by fuzz testing. Patch from Paul
Janzen <pjanzen@foatdi.harvard.edu>.
2000-09-22 08:19:21 +00:00
jsm
819ea9d1a6
Clean up formatting; partly from OpenBSD.
2000-09-17 23:04:17 +00:00
jsm
3e02203ec6
Wording, punctuation and line length improvements. Also adjust test
...
for killing nonsensical things to fix crash with "kill door". From
OpenBSD.
2000-09-10 10:51:16 +00:00
jsm
20e3305006
Fix -Wsign-compare warnings.
1999-09-18 19:38:46 +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