diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-04 12:15:34 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-04 12:15:34 -0600 |
commit | 17571e019939a719da91fda064c12cc1542db98a (patch) | |
tree | a552af94a6b2831322e9d9a3e0586bc2e998663b /crawl-ref/source/mutation.cc | |
parent | 7660cd4286c71f2d607930320e1fb93301ec54d6 (diff) | |
download | crawl-ref-17571e019939a719da91fda064c12cc1542db98a.tar.gz crawl-ref-17571e019939a719da91fda064c12cc1542db98a.zip |
Add minor cosmetic fixes.
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 40d90203cd..3e8c10536f 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -2791,7 +2791,7 @@ try_again: int elemental = 0; int metabolism = 0; - // Check for conflicting mutations + // Check for conflicting mutations. for (int i = 0; i < 6; ++i) { mutation_type m = muts[i]; @@ -2855,12 +2855,15 @@ try_again: int first_facet; + // At or above 12 all mutations are available. if (level >= 12) - first_facet = 0; // At or above 12 all mutations are available + first_facet = 0; + // The awesome mutation does not show up before 12. else if (level >= 6) - first_facet = 1; // The awesome mutation does not show up before 12 + first_facet = 1; + // Only body and good mutations are eligible at start. else - first_facet = 3; // Only body and good mutations are eligible at start + first_facet = 3; for (int i = first_facet; i < 6; ++i) if (given[i] != 3) @@ -2874,7 +2877,7 @@ 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; + you.demon_trait[level - 2] = newmut; ++given[which_facet]; ++ngiven; |