diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-08 05:13:41 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-08 05:14:12 -0800 |
commit | 5562dfc2a3dd500be1a98a02703eb37496b5fb8e (patch) | |
tree | 9d77c45ff9b2c0040d8c669bfff05a86966b29d7 /crawl-ref/source/mutation.cc | |
parent | 5d78f4fbac5120ebee12c73624ded022abc3c933 (diff) | |
download | crawl-ref-5562dfc2a3dd500be1a98a02703eb37496b5fb8e.tar.gz crawl-ref-5562dfc2a3dd500be1a98a02703eb37496b5fb8e.zip |
Relax the one mutation per level rule for DS
Breaks saves.
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index c105cb585a..b6d1409ccc 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -2823,7 +2823,8 @@ try_again: } } - you.demon_trait.init(NUM_MUTATIONS); + you.demonic_traits.clear(); + player::demon_trait dt; // Now give mutations from the facets in some order, consistent // with the internal order of the facets. @@ -2871,7 +2872,9 @@ try_again: mprf(MSGCH_DIAGNOSTICS, "Demonspawn will gain %s at level %d", get_mutation_def(newmut).wizname, level); #endif - you.demon_trait[level - 2] = newmut; + dt.level_gained = level; + dt.mutation = newmut; + you.demonic_traits.push_back(dt); ++given[which_facet]; ++ngiven; |