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.1.1.1 by root, Fri Feb 3 07:14:33 2006 UTC vs.
Revision 1.1.1.2 by elmex, Wed Mar 15 14:05:37 2006 UTC

1/* 1/*
2 * static char *rcsid_monster_c = 2 * static char *rcsid_monster_c =
3 * "$Id: monster.c,v 1.1.1.1 2006/02/03 07:14:33 root Exp $"; 3 * "$Id: monster.c,v 1.1.1.2 2006/03/15 14:05:37 elmex Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
1244 1244
1245 if (item->type == TREASURE && mon->will_apply & WILL_APPLY_TREASURE) flag=1; 1245 if (item->type == TREASURE && mon->will_apply & WILL_APPLY_TREASURE) flag=1;
1246 /* Eating food gets hp back */ 1246 /* Eating food gets hp back */
1247 else if (item->type == FOOD && mon->will_apply & WILL_APPLY_FOOD) flag=1; 1247 else if (item->type == FOOD && mon->will_apply & WILL_APPLY_FOOD) flag=1;
1248 else if (item->type == SCROLL && QUERY_FLAG(mon, FLAG_USE_SCROLL)) { 1248 else if (item->type == SCROLL && QUERY_FLAG(mon, FLAG_USE_SCROLL)) {
1249 if (!item->inv)
1250 LOG(llevDebug,"Monster %d having scroll %d with empty inventory!", mon->count, item->count);
1249 if (monster_should_cast_spell(mon, item->inv)) 1251 else if (monster_should_cast_spell(mon, item->inv))
1250 SET_FLAG(mon, FLAG_READY_SCROLL); 1252 SET_FLAG(mon, FLAG_READY_SCROLL);
1251 /* Don't use it right now */ 1253 /* Don't use it right now */
1252 return; 1254 return;
1253 } 1255 }
1254 else if (item->type == WEAPON) flag = check_good_weapon(mon,item); 1256 else if (item->type == WEAPON) flag = check_good_weapon(mon,item);
1255 else if (IS_ARMOR(item)) flag = check_good_armour(mon,item); 1257 else if (IS_ARMOR(item)) flag = check_good_armour(mon,item);
1256 /* Should do something more, like make sure this is a better item */ 1258 /* Should do something more, like make sure this is a better item */
1257 else if (item->type == RING) 1259 else if (item->type == RING)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines