-/* $NetBSD: hit.c,v 1.4 1997/10/12 11:45:05 lukem Exp $ */
+/* $NetBSD: hit.c,v 1.5 1998/11/10 13:01:31 hubertf Exp $ */
/*
* Copyright (c) 1988, 1993
#if 0
static char sccsid[] = "@(#)hit.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: hit.c,v 1.4 1997/10/12 11:45:05 lukem Exp $");
+__RCSID("$NetBSD: hit.c,v 1.5 1998/11/10 13:01:31 hubertf Exp $");
#endif
#endif /* not lint */
object *monster;
{
short damage, hit_chance;
- char *mn;
+ const char *mn;
float minus;
if (fight_monster && (monster != fight_monster)) {
int
get_damage(ds, r)
- char *ds;
+ const char *ds;
boolean r;
{
int i = 0, j, n, d, total = 0;
int
get_w_damage(obj)
- object *obj;
+ const object *obj;
{
char new_damage[12];
int to_hit, damage;
int
get_number(s)
- char *s;
+ const char *s;
{
int i = 0;
int total = 0;
long
lget_number(s)
- char *s;
+ const char *s;
{
short i = 0;
long total = 0;
int
to_hit(obj)
- object *obj;
+ const object *obj;
{
if (!obj) {
return(1);
object *monster;
short damage;
{
- char *mn;
+ const char *mn;
short row, col;
monster->hp_to_kill -= damage;
int
get_hit_chance(weapon)
- object *weapon;
+ const object *weapon;
{
short hit_chance;
int
get_weapon_damage(weapon)
- object *weapon;
+ const object *weapon;
{
short damage;