-/* $NetBSD: hack.wizard.c,v 1.8 2009/06/07 18:30:39 dholland Exp $ */
+/* $NetBSD: hack.wizard.c,v 1.10 2011/08/07 06:03:45 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.wizard.c,v 1.8 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: hack.wizard.c,v 1.10 2011/08/07 06:03:45 dholland Exp $");
#endif /* not lint */
/* wizard code - inspired by rogue code from Merlyn Leroy (digi-g!brian) */
#define BOLT_LIM 8 /* from this distance D and 1 will try to hit
* you */
-const char wizapp[] = "@DNPTUVXcemntx";
+static const char wizapp[] = "@DNPTUVXcemntx";
+
+static void aggravate(void);
+static void clonewiz(struct monst *);
+
/* If he has found the Amulet, make the wizard appear after some time */
void
pline("\"Destroy the thief, my pets!\"");
aggravate(); /* aggravate all the
* monsters */
- /* fall into next case */
+ /* FALLTHROUGH */
case 2:
if (flags.no_of_wizards == 1 && rnd(5) == 0)
/*