summaryrefslogtreecommitdiffstats
path: root/battlestar
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2000-09-23 19:45:07 +0000
committerjsm <jsm@NetBSD.org>2000-09-23 19:45:07 +0000
commit012b7f6e29c56a671e68fcb1515d68d5bab59cbc (patch)
treea66987ffc5c73878ae121442e1bd7a24a359d061 /battlestar
parented51e2ee8c47dbb4c8041637e215fab3dac5bc06 (diff)
downloadbsdgames-darwin-012b7f6e29c56a671e68fcb1515d68d5bab59cbc.tar.gz
bsdgames-darwin-012b7f6e29c56a671e68fcb1515d68d5bab59cbc.tar.zst
bsdgames-darwin-012b7f6e29c56a671e68fcb1515d68d5bab59cbc.zip
Allow for the bathing goddess in ravage(). From OpenBSD.
Diffstat (limited to 'battlestar')
-rw-r--r--battlestar/com2.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/battlestar/com2.c b/battlestar/com2.c
index 07634da4..c1bfd8cc 100644
--- a/battlestar/com2.c
+++ b/battlestar/com2.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com2.c,v 1.15 2000/09/23 19:23:57 jsm Exp $ */
+/* $NetBSD: com2.c,v 1.16 2000/09/23 19:45:07 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)com2.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: com2.c,v 1.15 2000/09/23 19:23:57 jsm Exp $");
+__RCSID("$NetBSD: com2.c,v 1.16 2000/09/23 19:45:07 jsm Exp $");
#endif
#endif /* not lint */
@@ -274,12 +274,16 @@ void
ravage()
{
while (wordtype[++wordnumber] != NOUNS && wordnumber <= wordcount);
- if (wordtype[wordnumber] == NOUNS && testbit(location[position].objects, wordvalue[wordnumber])) {
+ if (wordtype[wordnumber] == NOUNS && (testbit(location[position].objects, wordvalue[wordnumber])
+ || (wordvalue[wordnumber] == NORMGOD && testbit(location[position].objects, BATHGOD)))) {
ourtime++;
switch (wordvalue[wordnumber]) {
case NORMGOD:
puts("You attack the goddess, and she screams as you beat her. She falls down");
- puts("crying and tries to hold her torn and bloodied dress around her.");
+ if (testbit(location[position].objects, BATHGOD))
+ puts("crying and tries to cover her nakedness.");
+ else
+ puts("crying and tries to hold her torn and bloodied dress around her.");
power += 5;
pleasure += 8;
ego -= 10;