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

Comparing deliantra/server/common/loader.C (file contents):
Revision 1.119 by elmex, Mon Sep 1 22:29:17 2008 UTC vs.
Revision 1.120 by root, Thu Sep 11 12:43:17 2008 UTC

385 if (ip > 2 * item_power && ip > (item_power + 3)) 385 if (ip > 2 * item_power && ip > (item_power + 3))
386 LOG (llevDebug, "Object %s seems to have too low item power? %d > %d\n", debug_desc (), ip, item_power); 386 LOG (llevDebug, "Object %s seems to have too low item power? %d > %d\n", debug_desc (), ip, item_power);
387#endif 387#endif
388 } 388 }
389 389
390 /* Old spellcasting object - need to load in the appropiate object */ 390 /* old style spellcasting object (pretty common) - need to load in the appropiate object */
391 /* (schmorp) old really doesn't mean old, imho, just a more compact way to store such objects */
391 if ((type == ROD 392 if ((type == ROD
392 || type == WAND 393 || type == WAND
393 || type == SCROLL 394 || type == SCROLL
394 || type == HORN 395 || type == HORN
395 || type == FIREWALL 396 || type == FIREWALL
396 /* POTIONS and ALTARS don't always cast spells, but if they do, update them */ 397 /* POTIONS and ALTARS don't always cast spells, but if they do, update them */
397 || ((type == POTION || type == ALTAR) && stats.sp)) // watchout: sp = 0 is still magic bullet. 398 || ((type == POTION || type == ALTAR) && stats.sp)) // watchout: sp = 0 is still magic bullet.
398 && !inv 399 && !inv
399 && !loading_arch 400 && !loading_arch
400 && stats.sp) // watchout: old magic bullet stuff directly on the map is going to break here! 401 && stats.sp) // watchout: old magic bullet stuff directly on the map is going to break here!
402 // TODO: at least one watchout-comments is redundant - investigate/remove
401 { 403 {
404 // TODO: fix firewall object on map
402 /* Firewall is bizarre in that spell type was stored in dam. Rest are 'normal' 405 /* Firewall is bizarre in that spell type was stored in dam. Rest are 'normal'
403 * in that spell was stored in sp. 406 * in that spell was stored in sp.
404 */ 407 */
405 LOG (llevError, "old spellcasting object found: %s", debug_desc ()); 408 //LOG (llevError, "old spellcasting object found: %s", debug_desc ());
406 object *tmp = get_archetype (spell_mapping[type == FIREWALL ? stats.dam : stats.sp]); 409 object *tmp = get_archetype (spell_mapping[type == FIREWALL ? stats.dam : stats.sp]);
407 insert_ob_in_ob (tmp, this); 410 insert_ob_in_ob (tmp, this);
408 randomitems = 0; 411 randomitems = 0;
409 } 412 }
410 413

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines