summaryrefslogtreecommitdiffstats
path: root/games/battlestar/com5.c
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2000-10-08 03:24:30 +0000
committerbillf <billf@FreeBSD.org>2000-10-08 03:24:30 +0000
commit4ccc7578a7644c9c3f5255474c19ac7538a5ef0d (patch)
treece525ae63a69faf162cdf78e2e49428892bbaff0 /games/battlestar/com5.c
parent1d991e1b3c8277558eadc6388ebddeaf93625bc1 (diff)
downloadFreeBSD-src-4ccc7578a7644c9c3f5255474c19ac7538a5ef0d.zip
FreeBSD-src-4ccc7578a7644c9c3f5255474c19ac7538a5ef0d.tar.gz
Conform to BDECFLAGS
Diffstat (limited to 'games/battlestar/com5.c')
-rw-r--r--games/battlestar/com5.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/games/battlestar/com5.c b/games/battlestar/com5.c
index 0531f7f..873cf3e 100644
--- a/games/battlestar/com5.c
+++ b/games/battlestar/com5.c
@@ -41,6 +41,7 @@ static const char rcsid[] =
#include "externs.h"
+void
kiss()
{
while (wordtype[++wordnumber] != NOUNS && wordnumber <= wordcount);
@@ -80,6 +81,7 @@ kiss()
else puts("I'd prefer not to.");
}
+void
love()
{
int n;
@@ -125,6 +127,7 @@ love()
else puts("I't doesn't seem to work.");
}
+int
zzz()
{
int oldtime;
@@ -180,6 +183,7 @@ zzz()
return(1);
}
+void
chime()
{
if ((gtime / CYCLE + 1) % 2 && OUTSIDE)
@@ -234,9 +238,11 @@ chime()
puts("I can't tell the time in here.");
}
+int
give()
{
- int obj = -1, result = -1, person = 0, firstnumber, last1, last2;
+ int obj = -1, result = -1, person = 0, firstnumber;
+ int last1 = 0, last2 = 0;
firstnumber = wordnumber;
while (wordtype[++wordnumber] != OBJECT && wordvalue[wordnumber] != AMULET && wordvalue[wordnumber] != MEDALION && wordvalue[wordnumber] != TALISMAN && wordnumber <= wordcount);
@@ -293,10 +299,10 @@ give()
godready += 3;
}
if (obj == AMULET || obj == MEDALION || obj == TALISMAN){
- win++;
+ bs_win++;
ego += 5;
power -= 5;
- if (win >= 3){
+ if (bs_win >= 3){
puts("The powers of the earth are now legitimate. You have destroyed the Darkness");
puts("and restored the goddess to her thrown. The entire island celebrates with");
puts("dancing and spring feasts. As a measure of her gratitude, the goddess weds you");
OpenPOWER on IntegriCloud