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

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.72 by root, Mon Mar 5 02:27:22 2007 UTC vs.
Revision 1.73 by root, Wed Mar 7 01:44:33 2007 UTC

1737 return; 1737 return;
1738 } 1738 }
1739 1739
1740 if (skop->level < int (sqrtf (spell->level) * 1.5f)) 1740 if (skop->level < int (sqrtf (spell->level) * 1.5f))
1741 { 1741 {
1742 new_draw_info (NDI_UNIQUE, 0, op, "It is too hard to read at your level: You are unable to decipher the strange symbols."); 1742 new_draw_info (NDI_UNIQUE, 0, op, "You are unable to decipher the strange symbols. [Your literacy level is too low]");
1743 return; 1743 return;
1744 } 1744 }
1745 1745
1746 new_draw_info_format (NDI_UNIQUE, 0, op, "The spellbook contains the %s level spell %s.", get_levelnumber (spell->level), &spell->name); 1746 new_draw_info_format (NDI_UNIQUE, 0, op, "The spellbook contains the %s level spell %s.", get_levelnumber (spell->level), &spell->name);
1747 1747
1770 { 1770 {
1771 spell_skill = find_skill_by_name (op, spell->skill); 1771 spell_skill = find_skill_by_name (op, spell->skill);
1772 1772
1773 if (!spell_skill) 1773 if (!spell_skill)
1774 { 1774 {
1775 new_draw_info_format (NDI_UNIQUE, 0, op, "You lack the skill %s to use this spell", &spell->skill); 1775 new_draw_info_format (NDI_UNIQUE, 0, op, "You lack the skill %s to use this spell.", &spell->skill);
1776 return; 1776 return;
1777 } 1777 }
1778 1778
1779 if (spell_skill->level < spell->level) 1779 if (spell_skill->level < spell->level)
1780 { 1780 {
1814 else 1814 else
1815 { 1815 {
1816 play_sound_player_only (op->contr, SOUND_FUMBLE_SPELL, 0, 0); 1816 play_sound_player_only (op->contr, SOUND_FUMBLE_SPELL, 0, 0);
1817 new_draw_info (NDI_UNIQUE, 0, op, "You fail to learn the spell.\n"); 1817 new_draw_info (NDI_UNIQUE, 0, op, "You fail to learn the spell.\n");
1818 } 1818 }
1819
1819 decrease_ob (tmp); 1820 decrease_ob (tmp);
1820} 1821}
1821 1822
1822/** 1823/**
1823 * Handles applying a spell scroll. 1824 * Handles applying a spell scroll.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines