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/player.h | |
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/player.h')
-rw-r--r-- | crawl-ref/source/player.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index ff225c1105..e7cca6269b 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -12,6 +12,8 @@ #include "itemprop.h" #include "species.h" +#include <vector> + #ifdef USE_TILE // This used to be in tiles.h. (jpeg) #include "tiledef-main.h" @@ -221,9 +223,15 @@ public: FixedVector<unsigned char, NUM_MUTATIONS> mutation; FixedVector<unsigned char, NUM_MUTATIONS> demon_pow; - // demon_trait[i] is the mutation increased at the i'th - // levellup, or NUM_MUTATIONS - FixedVector<mutation_type, 26> demon_trait; + + struct demon_trait + { + int level_gained; + mutation_type mutation; + }; + + std::vector<demon_trait> demonic_traits; + unsigned char magic_contamination; FixedVector<bool, NUM_FIXED_BOOKS> had_book; |