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.13 by root, Sat Sep 16 22:24:13 2006 UTC vs.
Revision 1.14 by root, Sun Dec 3 20:26:35 2006 UTC

691 691
692 /* player already knows it */ 692 /* player already knows it */
693 if (tmp && QUERY_FLAG (tmp, FLAG_CAN_USE_SKILL)) 693 if (tmp && QUERY_FLAG (tmp, FLAG_CAN_USE_SKILL))
694 return 0; 694 return 0;
695 695
696
697
698 /* now a random change to learn, based on player Int. 696 /* now a random change to learn, based on player Int.
699 * give bonus based on level - otherwise stupid characters 697 * give bonus based on level - otherwise stupid characters
700 * might never be able to learn anything. 698 * might never be able to learn anything.
701 */ 699 */
702 if (random_roll (0, 99, pl, PREFER_LOW) > (learn_spell[pl->stats.Int] + (pl->level / 5))) 700 if (random_roll (0, 99, pl, PREFER_LOW) > (learn_spell[pl->stats.Int] + (pl->level / 5)))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines