diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-11 14:33:01 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-11 14:33:01 +0000 |
commit | fca3584d0ded2c75c458daf4635672004ba41716 (patch) | |
tree | c15e0c954023d191453a2324742bc89a22e751f8 /crawl-ref/source/mutation.h | |
parent | 79a6889bb573ec0dfc937c78ea1259c6ff1aa482 (diff) | |
download | crawl-ref-fca3584d0ded2c75c458daf4635672004ba41716.tar.gz crawl-ref-fca3584d0ded2c75c458daf4635672004ba41716.zip |
[1809728] Fixed bug where you could get multiple levels of a single-level mutation (such as torment resistance).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2425 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mutation.h')
-rw-r--r-- | crawl-ref/source/mutation.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/mutation.h b/crawl-ref/source/mutation.h index 91d1f37995..ab63d452d1 100644 --- a/crawl-ref/source/mutation.h +++ b/crawl-ref/source/mutation.h @@ -17,6 +17,13 @@ // for formatted_string class formatted_string; +struct mutation_def +{ + mutation_type mutation; + short rarity; // Rarity of the mutation. + short levels; // The number of levels of the mutation. +}; + // last updated 12may2000 {dlb} /* *********************************************************************** * called from: acr - decks - effects - fight - food - it_use2 - items - @@ -70,4 +77,8 @@ void demonspawn(void); bool perma_mutate(mutation_type which_mut, int how_much); +#ifdef DEBUG_DIAGNOSTICS +void sanity_check_mutation_defs(); +#endif + #endif |