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

Comparing deliantra/server/server/skills.C (file contents):
Revision 1.46 by root, Sat Apr 19 19:59:52 2008 UTC vs.
Revision 1.47 by root, Mon Apr 21 06:35:26 2008 UTC

1257 if (len < sizeof (buf) - 2) 1257 if (len < sizeof (buf) - 2)
1258 { 1258 {
1259 snprintf (buf, sizeof (buf), "%s\n", msg); 1259 snprintf (buf, sizeof (buf), "%s\n", msg);
1260 1260
1261 object *newbook = arch_to_object (item->other_arch); 1261 object *newbook = arch_to_object (item->other_arch);
1262 decrease_ob (item); 1262 item->decrease ();
1263 esrv_send_item (pl, item); 1263 esrv_send_item (pl, item);
1264 newbook->nrof = 1; 1264 newbook->nrof = 1;
1265 newbook->msg = buf; 1265 newbook->msg = buf;
1266 newbook->flag [FLAG_IDENTIFIED] = true; 1266 newbook->flag [FLAG_IDENTIFIED] = true;
1267 1267
1324 pl->stats.sp -= SP_level_spellpoint_cost (pl, chosen_spell, SPELL_MANA); 1324 pl->stats.sp -= SP_level_spellpoint_cost (pl, chosen_spell, SPELL_MANA);
1325 1325
1326 if (random_roll (0, chosen_spell->level * 4 - 1, pl, PREFER_LOW) < skill->level) 1326 if (random_roll (0, chosen_spell->level * 4 - 1, pl, PREFER_LOW) < skill->level)
1327 { 1327 {
1328 object *newscroll = arch_to_object (scroll->other_arch); 1328 object *newscroll = arch_to_object (scroll->other_arch);
1329 decrease_ob (scroll); 1329 scroll->decrease ();
1330 newscroll->nrof = 1; 1330 newscroll->nrof = 1;
1331 1331
1332 pl->contr->play_sound (sound_find ("inscribe_success")); 1332 pl->contr->play_sound (sound_find ("inscribe_success"));
1333 1333
1334 if (!confused) 1334 if (!confused)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines