… | |
… | |
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) |