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

Comparing deliantra/server/server/spell_effect.C (file contents):
Revision 1.55 by root, Sat Jun 2 03:34:48 2007 UTC vs.
Revision 1.56 by root, Mon Jun 4 12:19:09 2007 UTC

597 if (is_dragon_pl (op)) 597 if (is_dragon_pl (op))
598 { 598 {
599 /* now grab the 'dragon_ability'-force from the player's inventory */ 599 /* now grab the 'dragon_ability'-force from the player's inventory */
600 for (tmp = op->inv; tmp != NULL; tmp = tmp->below) 600 for (tmp = op->inv; tmp != NULL; tmp = tmp->below)
601 { 601 {
602 if (tmp->type == FORCE && !strcmp (tmp->arch->name, "dragon_ability_force")) 602 if (tmp->type == FORCE && !strcmp (tmp->arch->archname, "dragon_ability_force"))
603 { 603 {
604 if (tmp->stats.exp == 0) 604 if (tmp->stats.exp == 0)
605 sprintf (buf, "Your metabolism isn't focused on anything."); 605 sprintf (buf, "Your metabolism isn't focused on anything.");
606 else 606 else
607 sprintf (buf, "Your metabolism is focused on %s.", change_resist_msg[tmp->stats.exp]); 607 sprintf (buf, "Your metabolism is focused on %s.", change_resist_msg[tmp->stats.exp]);
2036 if (!weapon) 2036 if (!weapon)
2037 { 2037 {
2038 new_draw_info (NDI_BLACK, 0, op, "You must mark a weapon to use with this spell!"); 2038 new_draw_info (NDI_BLACK, 0, op, "You must mark a weapon to use with this spell!");
2039 return 0; 2039 return 0;
2040 } 2040 }
2041 if (spell->race && strcmp (weapon->arch->name, spell->race)) 2041 if (spell->race && strcmp (weapon->arch->archname, spell->race))
2042 { 2042 {
2043 new_draw_info (NDI_UNIQUE, 0, op, "The spell fails to transform your weapon."); 2043 new_draw_info (NDI_UNIQUE, 0, op, "The spell fails to transform your weapon.");
2044 return 0; 2044 return 0;
2045 } 2045 }
2046 if (weapon->type != WEAPON) 2046 if (weapon->type != WEAPON)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines