diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-07 19:54:05 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-07 19:54:05 +0000 |
commit | 88143ee1e80e2182bb92c6ce686278f38736bf0e (patch) | |
tree | f0e92facfb07179efcaa8862ab13cfed4b395d70 /crawl-ref/source/mutation.cc | |
parent | 4257d4e4ef09a35e6b31bdfb91b6146452d1bcef (diff) | |
download | crawl-ref-88143ee1e80e2182bb92c6ce686278f38736bf0e.tar.gz crawl-ref-88143ee1e80e2182bb92c6ce686278f38736bf0e.zip |
Enable the stinger mutation for nagas and draconians.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9369 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 5a888c37a3..2f784129c0 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -856,7 +856,7 @@ mutation_def mutation_defs[] = { "breathe poison" }, - // Naga and Draconian only - FIXME: unused! + // Naga and Draconian only { MUT_STINGER, 0, 3, false, true, {"Your tail ends in a poisonous barb.", "Your tail ends in a sharp poisonous barb.", @@ -1239,9 +1239,16 @@ const mutation_def& get_mutation_def(mutation_type mut) void fixup_mutations() { if (player_genus(GENPC_DRACONIAN)) + { for (unsigned i = 0; i < ARRAYSZ(mutation_defs); ++i) - if (mutation_defs[i].mutation == MUT_BIG_WINGS) + { + if (mutation_defs[i].mutation == MUT_STINGER + || mutation_defs[i].mutation == MUT_BIG_WINGS) + { mutation_defs[i].rarity = 1; + } + } + } if (you.species == SP_TROLL) { @@ -1259,10 +1266,18 @@ void fixup_mutations() } if (you.species == SP_NAGA) + { for (unsigned i = 0; i < ARRAYSZ(mutation_defs); ++i) + { if (mutation_defs[i].mutation == MUT_DEFORMED) + { for (int j = 0; j < 3; ++j) mutation_defs[i].have[j] = naga_deformed_descrip[j]; + } + else if (mutation_defs[i].mutation == MUT_STINGER) + mutation_defs[i].rarity = 1; + } + } if (you.species == SP_CENTAUR) for (unsigned i = 0; i < ARRAYSZ(mutation_defs); ++i) |