ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/monster.C
(Generate patch)

Comparing deliantra/server/server/monster.C (file contents):
Revision 1.87 by root, Thu Apr 29 07:32:34 2010 UTC vs.
Revision 1.88 by root, Fri Apr 30 20:49:45 2010 UTC

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 (llevTrace, "Found correct bow for arrows.\n");
599 return; /* nothing more to do for arrows */ 598 return; /* nothing more to do for arrows */
600 } 599 }
601 } 600 }
602 601
603 if (item->type == TREASURE && mon->will_apply & WILL_APPLY_TREASURE) 602 if (item->type == TREASURE && mon->will_apply & WILL_APPLY_TREASURE)
941 */ 940 */
942 if (head->spellitem == NULL) 941 if (head->spellitem == NULL)
943 { 942 {
944 if ((spell_item = monster_choose_random_spell (head)) == NULL) 943 if ((spell_item = monster_choose_random_spell (head)) == NULL)
945 { 944 {
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 */ 945 head->clr_flag (FLAG_CAST_SPELL); /* Will be turned on when picking up book */
948 return 0; 946 return 0;
949 } 947 }
950 948
951 if (spell_item->type == SPELLBOOK) 949 if (spell_item->type == SPELLBOOK)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines