summaryrefslogtreecommitdiff
path: root/games/monop/spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/monop/spec.c')
-rw-r--r--games/monop/spec.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/games/monop/spec.c b/games/monop/spec.c
index 5b8f32e1425..1df305197ae 100644
--- a/games/monop/spec.c
+++ b/games/monop/spec.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: spec.c,v 1.2 1998/09/20 23:36:56 pjanzen Exp $ */
/* $NetBSD: spec.c,v 1.3 1995/03/23 08:35:16 cgd Exp $ */
/*
@@ -37,19 +38,20 @@
#if 0
static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: spec.c,v 1.3 1995/03/23 08:35:16 cgd Exp $";
+static char rcsid[] = "$OpenBSD: spec.c,v 1.2 1998/09/20 23:36:56 pjanzen Exp $";
#endif
#endif /* not lint */
-# include "monop.ext"
+#include "monop.ext"
static char *perc[] = {
"10%", "ten percent", "%", "$200", "200", 0
};
-inc_tax() { /* collect income tax */
-
- reg int worth, com_num;
+void
+inc_tax() /* collect income tax */
+{
+ int worth, com_num;
com_num = getinp("Do you wish to lose 10%% of your total worth or $200? ", perc);
worth = cur_p->money + prop_worth(cur_p);
@@ -73,20 +75,28 @@ inc_tax() { /* collect income tax */
if (worth == 200)
lucky("\nIt makes no difference! ");
}
-goto_jail() { /* move player to jail */
+void
+goto_jail() /* move player to jail */
+{
cur_p->loc = JAIL;
}
-lux_tax() { /* landing on luxury tax */
+void
+lux_tax() /* landing on luxury tax */
+{
printf("You lose $75\n");
cur_p->money -= 75;
}
-cc() { /* draw community chest card */
+void
+cc() /* draw community chest card */
+{
get_card(&CC_D);
}
-chance() { /* draw chance card */
+void
+chance() /* draw chance card */
+{
get_card(&CH_D);
}