diff options
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/skills.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc index d39635531a..66d6adb6c2 100644 --- a/crawl-ref/source/skills.cc +++ b/crawl-ref/source/skills.cc @@ -150,6 +150,13 @@ int exercise(int exsk, int deg) if (you.exp_available <= 0 || you.skills[exsk] >= 27) break; + // randomly deny skill excercise if not many points available + if (random2(you.exp_pool_cutoff()/10) >= you.exp_available) + { + deg--; + continue; + } + if (you.practise_skill[exsk] || one_chance_in(4)) ret += _exercise2( exsk ); |