diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-09-26 04:42:57 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-09-26 04:42:57 +0000 |
commit | 081be079b82a2b9dcf1d7c705032e009184290b4 (patch) | |
tree | 7ec64cfd94c4f374f423a2d1639f6ed60b6ea28a /games/battlestar/com3.c | |
parent | 1b52f89e205c620c377b41287725ba817dcd34bb (diff) |
Improve handling of multiple commands on one line. Tidy fight parser.
Handle "all" in one place (almost). Add AUXVERB category and OBJ_PERSON/
OBJ_NONOBJ flags. Most was discussed with jsm@netbsd.org, and some is from
him.
Diffstat (limited to 'games/battlestar/com3.c')
-rw-r--r-- | games/battlestar/com3.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/games/battlestar/com3.c b/games/battlestar/com3.c index a0390686826..ff2f27711c4 100644 --- a/games/battlestar/com3.c +++ b/games/battlestar/com3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com3.c,v 1.9 2000/09/24 21:55:23 pjanzen Exp $ */ +/* $OpenBSD: com3.c,v 1.10 2000/09/26 04:42:55 pjanzen Exp $ */ /* $NetBSD: com3.c,v 1.3 1995/03/21 15:07:00 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)com3.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: com3.c,v 1.9 2000/09/24 21:55:23 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: com3.c,v 1.10 2000/09/26 04:42:55 pjanzen Exp $"; #endif #endif /* not lint */ @@ -208,7 +208,7 @@ shoot() ClearBit(location[position].objects, value); ourtime++; printf("The %s explode%s\n", objsht[value], - (IsPluralObject(value) ? "." : "s.")); + (IS_PLURAL(value) ? "." : "s.")); if (value == BOMB) die(0); } else @@ -251,6 +251,7 @@ shoot() break; case NORMGOD: + case BATHGOD: if (TestBit(location[position].objects, BATHGOD)) { puts("The goddess is hit in the chest and splashes back against the rocks."); puts("Dark blood oozes from the charred blast hole. Her naked body floats in the"); |