diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-04 21:24:13 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-04 21:24:13 +0000 |
commit | f86bc5241c35f8a12e3f8f9bec6c2b4bd6f91c88 (patch) | |
tree | e03a86ce547b060a222762a39a498ecdbcceef7d | |
parent | a6ed54f4d646157c90186c4d423fa0820c5748c0 (diff) | |
download | crawl-ref-f86bc5241c35f8a12e3f8f9bec6c2b4bd6f91c88.tar.gz crawl-ref-f86bc5241c35f8a12e3f8f9bec6c2b4bd6f91c88.zip |
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6398 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/mutation.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 18a2c6d022..af0d204581 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -1289,8 +1289,10 @@ formatted_string describe_mutations() { continue; } + if (you.species == SP_TROLL && i == MUT_CLAWS) continue; + if (you.species == SP_CENTAUR && i == MUT_DEFORMED) continue; @@ -1374,6 +1376,7 @@ formatted_string describe_mutations() { continue; } + if (you.species == SP_TROLL && i == MUT_CLAWS) continue; @@ -2052,7 +2055,7 @@ bool mutate(mutation_type which_mutation, bool failMsg, case MUT_CLAWS: mpr((you.species == SP_TROLL ? troll_claw_gain - : gain_mutation[mutat])[you.mutation[mutat]], + : gain_mutation[mutat])[you.mutation[mutat]], MSGCH_MUTATION); // Gloves aren't prevented until level 3. We don't have the @@ -2486,11 +2489,8 @@ const char *mutation_name(mutation_type which_mutat, int level) return (mut_string); } - if (which_mutat == MUT_CLAWS - && (you.species == SP_TROLL || you.species == SP_GHOUL)) - { + if (which_mutat == MUT_CLAWS && you.species == SP_TROLL) return (troll_claw_descrip[level]); - } if (which_mutat == MUT_FAST && you.species == SP_NAGA) return (naga_speed_descrip[level]); |