-/* $NetBSD: ring.c,v 1.8 2008/01/14 00:23:52 dholland Exp $ */
+/* $NetBSD: ring.c,v 1.9 2008/01/14 03:50:02 dholland Exp $ */
/*
* Copyright (c) 1988, 1993
#if 0
static char sccsid[] = "@(#)ring.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: ring.c,v 1.8 2008/01/14 00:23:52 dholland Exp $");
+__RCSID("$NetBSD: ring.c,v 1.9 2008/01/14 03:50:02 dholland Exp $");
#endif
#endif /* not lint */
#include "rogue.h"
-const char *left_or_right = "left or right hand?";
-const char *no_ring = "there's no ring on that hand";
+static const char left_or_right[] = "left or right hand?";
+static const char no_ring[] = "there's no ring on that hand";
+
short stealthy;
short r_rings;
short add_strength;
boolean maintain_armor;
void
-put_on_ring()
+put_on_ring(void)
{
short ch;
char desc[DCOLS];
*/
void
-do_put_on(ring, on_left)
- object *ring;
- boolean on_left;
+do_put_on(object *ring, boolean on_left)
{
if (on_left) {
ring->in_use_flags |= ON_LEFT_HAND;
}
void
-remove_ring()
+remove_ring(void)
{
boolean left = 0, right = 0;
short ch;
}
void
-un_put_on(ring)
- object *ring;
+un_put_on(object *ring)
{
if (ring && (ring->in_use_flags & ON_LEFT_HAND)) {
ring->in_use_flags &= (~ON_LEFT_HAND);
- rogue.left_ring = 0;
+ rogue.left_ring = NULL;
} else if (ring && (ring->in_use_flags & ON_RIGHT_HAND)) {
ring->in_use_flags &= (~ON_RIGHT_HAND);
- rogue.right_ring = 0;
+ rogue.right_ring = NULL;
}
ring_stats(1);
}
void
-gr_ring(ring, assign_wk)
- object *ring;
- boolean assign_wk;
+gr_ring(object *ring, boolean assign_wk)
{
ring->what_is = RING;
if (assign_wk) {
}
void
-inv_rings()
+inv_rings(void)
{
char buf[DCOLS];
}
void
-ring_stats(pr)
- boolean pr;
+ring_stats(boolean pr)
{
short i;
object *ring;