Mercurial > hg > early-roguelike
comparison arogue7/effects.c @ 225:4f6e056438eb
Merge the GCC5 and build fix branches.
author | John "Elwin" Edwards |
---|---|
date | Wed, 02 Mar 2016 21:28:34 -0500 |
parents | f9ef86cf22b2 |
children | e1cd27c5464f |
comparison
equal
deleted
inserted
replaced
224:4d0f53998e8a | 225:4f6e056438eb |
---|---|
19 /* | 19 /* |
20 * effect: | 20 * effect: |
21 * Check for effects of one thing hitting another thing. Return | 21 * Check for effects of one thing hitting another thing. Return |
22 * the reason code if the defender is killed. Otherwise return 0. | 22 * the reason code if the defender is killed. Otherwise return 0. |
23 */ | 23 */ |
24 effect(att, def, weap, thrown, see_att, see_def) | 24 int |
25 register struct thing *att, *def; | 25 effect(struct thing *att, struct thing *def, struct object *weap, bool thrown, |
26 struct object *weap; | 26 bool see_att, bool see_def) |
27 bool thrown; | |
28 register bool see_att, see_def; | |
29 { | 27 { |
30 register bool att_player, def_player; | 28 register bool att_player, def_player; |
31 char attname[LINELEN+1], defname[LINELEN+1]; | 29 char attname[LINELEN+1], defname[LINELEN+1]; |
32 | 30 |
33 /* See if the attacker or defender is the player */ | 31 /* See if the attacker or defender is the player */ |