Mercurial > hg > early-roguelike
comparison arogue7/fight.c @ 126:b786053d2f37
arogue7: add missing header includes.
author | John "Elwin" Edwards |
---|---|
date | Fri, 08 May 2015 16:45:41 -0400 |
parents | adfa37e67084 |
children | 66b0263af424 |
comparison
equal
deleted
inserted
replaced
125:adfa37e67084 | 126:b786053d2f37 |
---|---|
17 * | 17 * |
18 */ | 18 */ |
19 | 19 |
20 #include "curses.h" | 20 #include "curses.h" |
21 #include <ctype.h> | 21 #include <ctype.h> |
22 #include <string.h> | |
22 #include "rogue.h" | 23 #include "rogue.h" |
23 | 24 |
24 int hit(struct object *weapon, bool see_att, bool see_def, char *er, char *ee, bool back_stab, bool thrown, bool short_msg); | 25 int hit(struct object *weapon, bool see_att, bool see_def, char *er, char *ee, bool back_stab, bool thrown, bool short_msg); |
25 #define CONF_DAMAGE -1 | 26 #define CONF_DAMAGE -1 |
26 #define PARAL_DAMAGE -2 | 27 #define PARAL_DAMAGE -2 |
333 register char *cp; | 334 register char *cp; |
334 register int ndice, nsides, nplus, def_arm; | 335 register int ndice, nsides, nplus, def_arm; |
335 bool did_hit = FALSE; | 336 bool did_hit = FALSE; |
336 int prop_hplus, prop_dplus; | 337 int prop_hplus, prop_dplus; |
337 int vampiric_damage; | 338 int vampiric_damage; |
338 char *strchr(); | |
339 | 339 |
340 /* Get statistics */ | 340 /* Get statistics */ |
341 att = &att_er->t_stats; | 341 att = &att_er->t_stats; |
342 def = &def_er->t_stats; | 342 def = &def_er->t_stats; |
343 | 343 |