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