… | |
… | |
593 | |
593 | |
594 | for (bow = mon->inv; bow; bow = bow->below) |
594 | for (bow = mon->inv; bow; bow = bow->below) |
595 | if (bow->type == BOW && bow->race == item->race) |
595 | if (bow->type == BOW && bow->race == item->race) |
596 | { |
596 | { |
597 | mon->set_flag (FLAG_READY_BOW); |
597 | mon->set_flag (FLAG_READY_BOW); |
598 | LOG (llevMonster, "Found correct bow for arrows.\n"); |
598 | LOG (llevTrace, "Found correct bow for arrows.\n"); |
599 | return; /* nothing more to do for arrows */ |
599 | return; /* nothing more to do for arrows */ |
600 | } |
600 | } |
601 | } |
601 | } |
602 | |
602 | |
603 | if (item->type == TREASURE && mon->will_apply & WILL_APPLY_TREASURE) |
603 | if (item->type == TREASURE && mon->will_apply & WILL_APPLY_TREASURE) |
… | |
… | |
941 | */ |
941 | */ |
942 | if (head->spellitem == NULL) |
942 | if (head->spellitem == NULL) |
943 | { |
943 | { |
944 | if ((spell_item = monster_choose_random_spell (head)) == NULL) |
944 | if ((spell_item = monster_choose_random_spell (head)) == NULL) |
945 | { |
945 | { |
946 | LOG (llevMonster, "Turned off spells in %s\n", &head->name); |
946 | LOG (llevTrace, "Turned off spells in %s\n", &head->name); |
947 | head->clr_flag (FLAG_CAST_SPELL); /* Will be turned on when picking up book */ |
947 | head->clr_flag (FLAG_CAST_SPELL); /* Will be turned on when picking up book */ |
948 | return 0; |
948 | return 0; |
949 | } |
949 | } |
950 | |
950 | |
951 | if (spell_item->type == SPELLBOOK) |
951 | if (spell_item->type == SPELLBOOK) |