diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-28 16:37:05 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-28 16:37:05 +0000 |
commit | 59c34e3d62be55b928b8703eaa99fbfd13f30682 (patch) | |
tree | 200485828404121c390c6d3617f9257f83e70bf9 | |
parent | 343ba001ffb116ddadb275d23645861a60bbbdbc (diff) | |
download | crawl-ref-59c34e3d62be55b928b8703eaa99fbfd13f30682.tar.gz crawl-ref-59c34e3d62be55b928b8703eaa99fbfd13f30682.zip |
r6681 (runaway skill training) for 0.4.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6704 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/skills.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc index a48357f573..c30b8810c9 100644 --- a/crawl-ref/source/skills.cc +++ b/crawl-ref/source/skills.cc @@ -306,10 +306,10 @@ static int _exercise2(int exsk) { int fraction = (spending_limit * 10) / skill_change; - deg *= fraction; + deg = (deg * fraction) / 10; if (deg == 0) - bonus *= fraction; + bonus = (bonus * fraction) / 10; } else deg = ((skill_change / 2) > MAX_SPENDING_LIMIT) ? 5 : 10; |