Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reformat one entry for vertical space. | 2000-12-17 | 1 | -34/+19 | |
| | |||||
* | Yes, it's about damn time fortune(6) got some new material. | 2000-12-17 | 1 | -0/+92 | |
| | |||||
* | CNN, BSD declare Bush winner. | 2000-12-14 | 1 | -1/+4 | |
| | |||||
* | Fix warning. | 2000-11-30 | 1 | -3/+3 | |
| | |||||
* | Use random() instead of rand(), and seed from time(3) instead of from getpid(). | 2000-11-30 | 2 | -5/+5 | |
| | |||||
* | Change the macro to roll a six-sided die from die() to dieroll() (for | 2000-11-30 | 8 | -33/+32 | |
| | | | obvious reasons of convention). | ||||
* | ANSIfy in preparation for changes. | 2000-11-30 | 1 | -99/+99 | |
| | |||||
* | Use getopt(3) for flag processing. | 2000-11-30 | 1 | -5/+11 | |
| | |||||
* | Fix style nit. | 2000-11-30 | 1 | -3/+3 | |
| | |||||
* | ANSIfy in preparation for other changes. | 2000-11-30 | 1 | -6/+4 | |
| | |||||
* | Just print basename in usage string. | 2000-11-21 | 1 | -2/+2 | |
| | |||||
* | remove unnecessary command name after .Nm | 2000-11-07 | 5 | -17/+17 | |
| | |||||
* | use lowercase with .Nm to match actual command name | 2000-11-07 | 1 | -2/+2 | |
| | |||||
* | fix a bug in the call to srandom(): xor time() with getpid(), don't add them! | 2000-10-31 | 1 | -3/+3 | |
| | | | | now fortune(6) run in an unending loop does not appear to show the same fortunes over and over and over. | ||||
* | NetBSD will put hair on a UNIX admin's chest | 2000-10-09 | 1 | -0/+3 | |
| | | | -- Jason R. Fink | ||||
* | Removed duplicate entry. Fixes FreeBSD PR/21629. | 2000-09-29 | 1 | -3/+0 | |
| | |||||
* | In cypher(), don't attempt to make sense of words other than VERBs or | 2000-09-25 | 5 | -12/+31 | |
| | | | | | | | | 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>. | ||||
* | Add new flags OBJ_PERSON and OBJ_NONOBJ to the objflags array. | 2000-09-25 | 2 | -12/+29 | |
| | |||||
* | Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately in | 2000-09-25 | 4 | -30/+38 | |
| | | | | messages; avoids "a amulet", "a Elf". Define and use macros to use "a", "an", "the", "is", "are" appropriately. Partly based on OpenBSD. | ||||
* | Remove excess blank lines. From OpenBSD. | 2000-09-25 | 1 | -14/+2 | |
| | |||||
* | Fix loving already loved goddess; avoid fallthrough after loving | 2000-09-25 | 1 | -3/+10 | |
| | | | goddess; give error on "love amulet". From OpenBSD. | ||||
* | Use defined constant FINAL instead of hardcoded 275. From OpenBSD. | 2000-09-25 | 1 | -3/+3 | |
| | |||||
* | Fix logic error in use of n and wordnumber in murder() when using | 2000-09-25 | 1 | -7/+7 | |
| | | | laser. From OpenBSD. | ||||
* | Discard any part of a line of input that goes beyond our buffer rather | 2000-09-24 | 1 | -2/+8 | |
| | | | than treating it as our next line of input. From OpenBSD. | ||||
* | Give less cryptic messages than "-1%" when WEIGHT or CUMBER are zero. | 2000-09-24 | 1 | -5/+17 | |
| | |||||
* | Add explicit no-ops to empty loops following the NetBSD style guide. | 2000-09-24 | 4 | -14/+20 | |
| | |||||
* | Make hash table static in parse.c. | 2000-09-24 | 3 | -11/+11 | |
| | |||||
* | Use NULL instead of 0 (from OpenBSD). Also add or adjust comments. | 2000-09-24 | 1 | -18/+18 | |
| | |||||
* | Correct spelling "dont" to "don't". From OpenBSD. | 2000-09-24 | 3 | -9/+9 | |
| | |||||
* | Make functions local to parse.c static. | 2000-09-24 | 2 | -9/+10 | |
| | |||||
* | Give a better message for trying to eat things it doesn't make sense | 2000-09-24 | 1 | -7/+11 | |
| | | | | | | 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. | ||||
* | Clean up fly.c by making local variables and functions static and | 2000-09-24 | 2 | -23/+23 | |
| | | | removing abs() macro. | ||||
* | Prevent CUMBER from going negative; avoid division by zero if it is | 2000-09-24 | 2 | -7/+14 | |
| | | | zero. | ||||
* | Attempt to disambiguate BODY for kicking. Avoid crashing or nonsense | 2000-09-24 | 1 | -30/+55 | |
| | | | messages on "kick door" and "kick man". From OpenBSD. | ||||
* | Allow for bathing goddess in love(); give better message for a lover | 2000-09-23 | 1 | -13/+24 | |
| | | | that isn't present and for certain choices of lover. From OpenBSD. | ||||
* | Allow for the bathing goddess in ravage(). From OpenBSD. | 2000-09-23 | 1 | -4/+8 | |
| | |||||
* | Use a lookup table to identify whether objects are plural or singular, | 2000-09-23 | 5 | -26/+41 | |
| | | | | instead of testing the final character against 's' in each place. Avoids oddities about "pot of jewels" and "compass". | ||||
* | Use ${COPY} instead of -c for ${INSTALL} commands. | 2000-09-23 | 1 | -3/+3 | |
| | |||||
* | Correct descriptions of "marked" vs. "ignored" -- they were swapped. | 2000-09-23 | 1 | -4/+5 | |
| | |||||
* | Don't say "Kicked." of an object not present; give sensible messages. | 2000-09-22 | 1 | -3/+7 | |
| | | | From OpenBSD. | ||||
* | Check for an object being taken not being there before checking for | 2000-09-22 | 1 | -5/+5 | |
| | | | | whether it is too heavy or too bulky; gives a better message for "take viper" with the viper not present. | ||||
* | Give appropriate messages (rather than saying nothing) if an verb is | 2000-09-22 | 1 | -2/+48 | |
| | | | used with "all" and nothing relevant is present. From OpenBSD. | ||||
* | Remove all adjectives in parse(), since they are nowhere used. Fixes | 2000-09-22 | 6 | -28/+33 | |
| | | | | crash on "carry old all" shown up by fuzz testing. Patch from Paul Janzen <pjanzen@foatdi.harvard.edu>. | ||||
* | Give an appropriate error on "kill all" rather than a crash or | 2000-09-22 | 1 | -3/+4 | |
| | | | nonsense message. From OpenBSD. | ||||
* | Various improvements to parsing in battlestar, mostly from OpenBSD. | 2000-09-21 | 7 | -24/+99 | |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Don't try to wear anything that isn't OBJECT or NOUNS. Don't try to | 2000-09-21 | 1 | -3/+6 | |
| | | | | | | wear DOOR or anything without a short description. Fixes crashes on "wear knfo" (bug reported by Peter Maydell <pmaydell@chiark.greenend.org.uk>), "wear wear", "wear kick", "wear door" and "wear goddess". Partly from OpenBSD. | ||||
* | If no hand-to-hand weapons are available, try using the laser to kill | 2000-09-21 | 1 | -5/+31 | |
| | | | in murder(). From OpenBSD. | ||||
* | die() on EOF; based on OpenBSD. | 2000-09-21 | 1 | -2/+4 | |
| | |||||
* | From OpenBSD: in kiss(), "take" the bathing goddess if required, and | 2000-09-21 | 1 | -30/+39 | |
| | | | give a better error message if the person to kiss is not present. | ||||
* | Add missing initialisers (avoid gcc -W warnings) and comments giving | 2000-09-18 | 2 | -556/+1106 | |
| | | | room numbers. |