diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-10-11 01:37:41 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-10-11 01:37:41 +0200 |
commit | 3b1deee4b8fc61f126fae54263b117e540f3b649 (patch) | |
tree | 4e220a4fdd7dd424a498e4966732b6983dbe7651 /crawl-ref/source/mutation.cc | |
parent | 544a01058590972552e8d66a0641e7128e50ff02 (diff) | |
download | crawl-ref-3b1deee4b8fc61f126fae54263b117e540f3b649.tar.gz crawl-ref-3b1deee4b8fc61f126fae54263b117e540f3b649.zip |
Show racial AC on the mutations/innates screen.
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 0f2ccb288b..6b92ff0b32 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -1307,6 +1307,12 @@ formatted_string describe_mutations() // Breathe poison replaces spit poison. if (!you.mutation[MUT_BREATHE_POISON]) result += "You can spit poison." EOL; + if (you.experience_level > 2) + { + std::ostringstream num; + num << you.experience_level/3; + result += "Your serpentine skin is tough (AC +" + num.str() + ")." EOL; + } have_any = true; break; @@ -1467,6 +1473,17 @@ formatted_string describe_mutations() have_any = true; } + if (player_genus(GENPC_DRACONIAN)) + { + int ac = (you.experience_level < 8) ? 2 : + (you.species == SP_GREY_DRACONIAN) + ? (you.experience_level - 4) / 2 + 1 : + you.experience_level / 4 + 1; + std::ostringstream num; + num << ac; + result += "Your scales are hard (AC +" + num.str() + ")." EOL; + } + result += "</lightblue>"; if (beogh_water_walk()) |