summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-02 08:14:15 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-02 08:14:15 +0000
commitd6998c47fdd4ff96f59b234b063291ccdf546612 (patch)
tree5ee11481a2a015b32171255ce0be6d7be44e78d0 /crawl-ref/source
parentaeb8693fded3aa3d0810bd6af7caea46c7bcffbf (diff)
downloadcrawl-ref-d6998c47fdd4ff96f59b234b063291ccdf546612.tar.gz
crawl-ref-d6998c47fdd4ff96f59b234b063291ccdf546612.zip
Spellcasting, Evocations and Invocations are now displayed modified in the
'm' screen (peer pressure, peer pressure...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1715 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/skills2.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index ccd3a626b2..01160633ae 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -1821,7 +1821,7 @@ static void display_skill_table(bool show_aptitudes)
{
const int needed = skill_exp_needed(you.skills[x] + 2);
const int prev_needed = skill_exp_needed(you.skills[x] + 1);
- const int spec_abil = species_skills(x, you.species);
+ int spec_abil = species_skills(x, you.species);
int percent_done = ((you.skill_points[x] - (prev_needed * spec_abil) / 100) * 100) / (((needed - prev_needed) * spec_abil) / 100);
@@ -1841,6 +1841,20 @@ static void display_skill_table(bool show_aptitudes)
else
{
textcolor(RED);
+
+ // Modify Spellcasting, Evocations, Invocations for
+ // aptitude display.
+ if ( x == SK_SPELLCASTING )
+ {
+ spec_abil *= 10;
+ spec_abil /= 13;
+ }
+ else if ( x == SK_INVOCATIONS || x == SK_EVOCATIONS )
+ {
+ spec_abil *= 4;
+ spec_abil /= 3;
+ }
+
cprintf(" %3d ", spec_abil);
}
}