version 1.91 | | version 1.92 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.91 2005/10/05 22:07:38 akirschbaum Exp $"; | | * "$Id: monster.c,v 1.92 2005/10/07 19:38:49 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
object *tmp; | | object *tmp; |
for (tmp = get_map_ob(m, x, y); tmp!=NULL; tmp=tmp->above) { | | for (tmp = get_map_ob(m, x, y); tmp!=NULL; tmp=tmp->above) { |
if (tmp->type == EARTHWALL) { | | if (tmp->type == EARTHWALL) { |
hit_player(tmp,op->stats.dam,op,AT_PHYSICAL); | | hit_player(tmp,op->stats.dam,op,AT_PHYSICAL,1); |
return; | | return; |
} | | } |
} | | } |
| | |
object *tmp; | | object *tmp; |
for (tmp = get_map_ob(m, x, y); tmp!=NULL; tmp=tmp->above) { | | for (tmp = get_map_ob(m, x, y); tmp!=NULL; tmp=tmp->above) { |
if (tmp->type == DOOR) { | | if (tmp->type == DOOR) { |
hit_player(tmp,1000,op,AT_PHYSICAL); | | hit_player(tmp,1000,op,AT_PHYSICAL,1); |
return; | | return; |
} | | } |
} | | } |