diff options
author | elliptic <hyperelliptical@gmail.com> | 2012-05-11 00:08:03 -0400 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2012-05-11 00:08:03 -0400 |
commit | bc7cee15cf30c614f3c34709d4c123ab5746b6ca (patch) | |
tree | ad66b7eaad4ed61fc255db93472ba3fe72c7e634 /crawl-ref/source/mutation.h | |
parent | a84fdaa7edbe77b30840fbbbd88468630db77e78 (diff) | |
download | crawl-ref-bc7cee15cf30c614f3c34709d4c123ab5746b6ca.tar.gz crawl-ref-bc7cee15cf30c614f3c34709d4c123ab5746b6ca.zip |
Demonspawn mutation ordering improvements.
The ordering of the 15 (or 18 if monstrous) mutations a demonspawn gets is
now determined as follows: each mutation is assigned a random number in some
subinterval (depending on which mutation it is) of [0,1000), and then the
mutations are sorted by these numbers. Mutations that we want to be given out
late (tier 3 facets, demonic guardian 2 and 3) are given later intervals and
mutations that we want to be given out earlier are given earlier intervals.
The most noticeable effects of this change should be the following:
* demonic guardian 2 will usually not be given until at least 1/3 of the
way through a player's mutations;
* demonic guardian 3 will usually not be given until at least 2/3 of the
way through a player's mutations;
* body-slot facets will usually finish before 2/3 of the way through a
player's mutations.
It should also be much more adjustable than the old system.
Diffstat (limited to 'crawl-ref/source/mutation.h')
-rw-r--r-- | crawl-ref/source/mutation.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/mutation.h b/crawl-ref/source/mutation.h index cafd7bdd99..14cf414800 100644 --- a/crawl-ref/source/mutation.h +++ b/crawl-ref/source/mutation.h @@ -30,17 +30,17 @@ struct facet_def { int tier; mutation_type muts[3]; - int tiers[3]; + int when[3]; }; struct demon_mutation_info { mutation_type mut; - int tier; + int when; int facet; - demon_mutation_info(mutation_type m, int t, int f) - : mut(m), tier(t), facet(f) { } + demon_mutation_info(mutation_type m, int w, int f) + : mut(m), when(w), facet(f) { } }; struct mutation_def |