From 3b1deee4b8fc61f126fae54263b117e540f3b649 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 11 Oct 2009 01:37:41 +0200 Subject: Show racial AC on the mutations/innates screen. --- crawl-ref/source/mutation.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 += ""; if (beogh_water_walk()) -- cgit v1.2.3-54-g00ecf