version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_move_c = | | * static char *rcsid_move_c = |
* "$Id: move.c,v 1.17 2001/11/27 04:33:46 michtoen Exp $"; | | * "$Id: move.c,v 1.18 2001/11/28 04:44:42 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return 1; | | return 1; |
} | | } |
| | |
/* returns 0 if a monster was pushed and 1 if not - however */ | | /* returns 1 if pushing invokes a attack, 0 when not */ |
int push_ob(object *who, int dir, object *pusher) { | | int push_ob(object *who, int dir, object *pusher) { |
int str1, str2; | | int str1, str2; |
object *owner; | | object *owner; |
| | |
{ | | { |
new_draw_info_format(NDI_UNIQUE, 0, pusher, | | new_draw_info_format(NDI_UNIQUE, 0, pusher, |
"You start to attack %s !!",who->name); | | "You start to attack %s !!",who->name); |
// CLEAR_FLAG(who,FLAG_UNAGGRESSIVE); /* the sucker don't like you anymore */ | | CLEAR_FLAG(who,FLAG_UNAGGRESSIVE); /* the sucker don't like you anymore */ |
who->enemy = pusher; | | who->enemy = pusher; |
| | return 1; |
} | | } |
else | | else |
{ | | { |
| | |
{ | | { |
new_draw_info_format(NDI_UNIQUE, 0, pusher, | | new_draw_info_format(NDI_UNIQUE, 0, pusher, |
"You can't push %s.",who->name); | | "You can't push %s.",who->name); |
return 1; | | return 0; |
} | | } |
| | |
/* ok, now we are here. I only allow player pushing */ | | /* ok, now we are here. I only allow player pushing */ |