diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-07-03 05:23:47 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-07-03 05:23:47 +0000 |
commit | 07fa35ce134f0db4619e4f6f624a73f734592b00 (patch) | |
tree | a244e6f77987cb2dd58051e6465abe2a52fcac17 /games/battlestar/com6.c | |
parent | eb9c0ff585d2e7d471d66b411a6de67434fb6a82 (diff) |
Finding bugs in battlestar is like shooting fish in a barrel.
Don't overflow beenthere[]. Add "verbose" option.
Fix spelling (including embedded hyphens in descriptions) and grammar.
"Kill" will now use the laser if you have no cutting implements.
Formatting.
You can do more things to the bathing goddess.
A little less guess-the-word. Occasionally better error messages,
particularly with "all" when nothing applies.
"kick door" no longer segfaults. Nor does "kill door".
More bugs remain...
Diffstat (limited to 'games/battlestar/com6.c')
-rw-r--r-- | games/battlestar/com6.c | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c index 7b9f9eebfc1..6f197443d31 100644 --- a/games/battlestar/com6.c +++ b/games/battlestar/com6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com6.c,v 1.11 1999/09/25 20:30:45 pjanzen Exp $ */ +/* $OpenBSD: com6.c,v 1.12 2000/07/03 05:23:44 pjanzen Exp $ */ /* $NetBSD: com6.c,v 1.5 1995/04/27 21:30:23 mycroft Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: com6.c,v 1.11 1999/09/25 20:30:45 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: com6.c,v 1.12 2000/07/03 05:23:44 pjanzen Exp $"; #endif #endif /* not lint */ @@ -227,3 +227,37 @@ light() } else puts("You're out of matches."); } + +void +dooropen() +{ /* synonyms = {open, unlock} */ + while(wordtype[++wordnumber] == ADJS) + ; + if (wordnumber <= wordcount && wordtype[wordnumber] == NOUNS + && wordvalue[wordnumber] == DOOR) { + switch(position) { + case 189: + case 231: + if (location[189].north == 231) + puts("The door is already open."); + else + puts("The door does not budge."); + break; + case 30: + if (location[30].west == 25) + puts("The door is gone."); + else + puts("The door is locked tight."); + break; + case 31: + puts("That's one immovable door."); + break; + case 20: + puts("The door is already ajar."); + break; + default: + puts("What door?"); + } + } else + puts("That doesn't open."); +} |