version 1.72 | | version 1.73 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.72 2005/02/20 20:43:15 akirschbaum Exp $"; | | * "$Id: monster.c,v 1.73 2005/03/06 20:38:54 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (spell_item->type == SPELLBOOK) { | | if (spell_item->type == SPELLBOOK) { |
spell_item=spell_item->inv; | | spell_item=spell_item->inv; |
if (spell_item->inv) { | | if (spell_item->inv) { |
LOG(llevError,"spellbook %s does contain a spell?", spell_item->name); | | LOG(llevError,"spellbook %s does contain a spell?\n", spell_item->name); |
} else | | } else |
spell_item=spell_item->inv; | | spell_item=spell_item->inv; |
} | | } |
| | |
if((sk_hide = find_skill_by_number(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!\n"); |
make_visible(enemy); | | make_visible(enemy); |
radius=radius<MIN_MON_RADIUS?MIN_MON_RADIUS:radius; | | radius=radius<MIN_MON_RADIUS?MIN_MON_RADIUS:radius; |
} | | } |