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

Comparing deliantra/server/server/skill_util.C (file contents):
Revision 1.91 by root, Tue Apr 6 00:39:26 2010 UTC vs.
Revision 1.92 by root, Sat Apr 10 04:54:10 2010 UTC

406 { 406 {
407 found_cauldron = true; 407 found_cauldron = true;
408 408
409 if (tmp->skill != skill->skill) 409 if (tmp->skill != skill->skill)
410 { 410 {
411 op->failmsg (format ("You can't use the %s with the %s skill!", 411 op->failmsgf ("You can't use the %s with the %s skill!",
412 query_name (tmp), 412 query_name (tmp),
413 query_name (skill))); 413 query_name (skill));
414 break; 414 break;
415 } 415 }
416 416
417 attempt_do_alchemy (op, tmp, skill); 417 attempt_do_alchemy (op, tmp, skill);
418 418
775 break; 775 break;
776 } 776 }
777 777
778 if (!skop) 778 if (!skop)
779 { 779 {
780 op->failmsg (format ("Unable to find skill %s.", string)); 780 op->failmsgf ("Unable to find skill %s.", string);
781 return 0; 781 return 0;
782 } 782 }
783 783
784 if (!(skill_flags [skop->subtype] & SF_USE)) 784 if (!(skill_flags [skop->subtype] & SF_USE))
785 { 785 {
786 op->failmsg (format ( 786 op->failmsgf (
787 "You feel as if you wanted to do something funny, but you can't remember what. " 787 "You feel as if you wanted to do something funny, but you can't remember what. "
788 "H<The %s skill cannot be C<use_skill>'ed - maybe you need to C<ready_skill> it, " 788 "H<The %s skill cannot be C<use_skill>'ed - maybe you need to C<ready_skill> it, "
789 "use it with some item, or it's always active.>", 789 "use it with some item, or it's always active.>",
790 &skop->skill 790 &skop->skill
791 )); 791 );
792 return 0; 792 return 0;
793 } 793 }
794 794
795 len = strlen (skop->skill); 795 len = strlen (skop->skill);
796 796

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines