summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-setup.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-16 17:39:50 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-16 20:24:22 -0700
commitf74bb73639c84ddaac5cee442cb169e6cc6eb89c (patch)
tree934f511beacff5178ec1230ff5ed3ef754528f8f /crawl-ref/source/ng-setup.cc
parent307182f3a50d96af8ead8e9b5135e2e5e232ebaf (diff)
downloadcrawl-ref-f74bb73639c84ddaac5cee442cb169e6cc6eb89c.tar.gz
crawl-ref-f74bb73639c84ddaac5cee442cb169e6cc6eb89c.zip
Pull some functions into species.cc
Diffstat (limited to 'crawl-ref/source/ng-setup.cc')
-rw-r--r--crawl-ref/source/ng-setup.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/ng-setup.cc b/crawl-ref/source/ng-setup.cc
index d4aa8c7cdd..d7f23f4a3b 100644
--- a/crawl-ref/source/ng-setup.cc
+++ b/crawl-ref/source/ng-setup.cc
@@ -259,7 +259,6 @@ void give_basic_mutations(species_type speci)
you.mutation[MUT_POISON_RESISTANCE] = 1;
you.mutation[MUT_COLD_RESISTANCE] = 1;
you.mutation[MUT_NEGATIVE_ENERGY_RESISTANCE] = 3;
- you.mutation[MUT_UNBREATHING] = 1;
break;
case SP_DEEP_DWARF:
you.mutation[MUT_SLOW_HEALING] = 3;
@@ -273,13 +272,11 @@ void give_basic_mutations(species_type speci)
you.mutation[MUT_SAPROVOROUS] = 3;
you.mutation[MUT_CARNIVOROUS] = 3;
you.mutation[MUT_SLOW_HEALING] = 1;
- you.mutation[MUT_UNBREATHING] = 1;
break;
case SP_GARGOYLE:
you.mutation[MUT_PETRIFICATION_RESISTANCE] = 1;
you.mutation[MUT_NEGATIVE_ENERGY_RESISTANCE] = 1;
you.mutation[MUT_SHOCK_RESISTANCE] = 1;
- you.mutation[MUT_UNBREATHING] = 1;
you.mutation[MUT_ROT_IMMUNITY] = 1;
break;
case SP_TENGU:
@@ -300,7 +297,6 @@ void give_basic_mutations(species_type speci)
case SP_VAMPIRE:
you.mutation[MUT_FANGS] = 3;
you.mutation[MUT_ACUTE_VISION] = 1;
- you.mutation[MUT_UNBREATHING] = 1;
break;
case SP_FELID:
you.mutation[MUT_FANGS] = 3;
@@ -338,6 +334,7 @@ void give_basic_mutations(species_type speci)
// Some mutations out-sourced because they're
// relevant during character choice.
you.mutation[MUT_CLAWS] = species_has_claws(speci, true);
+ you.mutation[MUT_UNBREATHING] = species_is_unbreathing(speci);
// Necessary mostly for wizmode race changing.
you.mutation[MUT_COLD_BLOODED] = species_genus(speci) == GENPC_DRACONIAN;