version 1.66 | | version 1.67 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.66 2003/09/13 05:02:11 mwedel Exp $"; | | * "$Id: monster.c,v 1.67 2003/10/26 06:56:57 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
int bonus = (op->level/2) + (op->stats.Int/5); | | int bonus = (op->level/2) + (op->stats.Int/5); |
| | |
if(enemy->type==PLAYER) { | | if(enemy->type==PLAYER) { |
if((sk_hide = find_skill(enemy,SK_HIDING))) | | if((sk_hide = find_skill_by_number(enemy,SK_HIDING))) |
bonus -= sk_hide->level; | | bonus -= sk_hide->level; |
else { | | else { |
LOG(llevError,"can_detect_enemy() got hidden player w/o hiding skill!"); | | LOG(llevError,"can_detect_enemy() got hidden player w/o hiding skill!"); |