summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-10-24 22:12:10 -0700
committerStefan O'Rear <stefanor@cox.net>2009-10-24 22:38:26 -0700
commite5c35dd08e149f985c77be908cfc3e9c69f2d13e (patch)
tree67adba7b180a1908c7d960e97861740af162f8d3 /crawl-ref/source/newgame.cc
parent5bae81aab842d440e045a1fa061a9553589d9616 (diff)
downloadcrawl-ref-e5c35dd08e149f985c77be908cfc3e9c69f2d13e.tar.gz
crawl-ref-e5c35dd08e149f985c77be908cfc3e9c69f2d13e.zip
Roll demonspawn mutations at the start of the game.
All demonspawn mutations are now stored in the player data, and are determined at the same time. This makes a lot of things a lot simpler. On the other hand, it means that the influence of skills and gods on demonspawn mutations is now broken.
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r--crawl-ref/source/newgame.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index 50f46dcd31..2c8357438a 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -48,6 +48,7 @@
#include "macro.h"
#include "makeitem.h"
#include "menu.h"
+#include "mutation.h"
#include "misc.h"
#include "player.h"
#include "religion.h"
@@ -1011,6 +1012,9 @@ game_start:
_give_species_bonus_hp();
_give_species_bonus_mp();
+ if (you.species == SP_DEMONSPAWN)
+ roll_demonspawn_mutations();
+
// XXX: These need to be set above using functions!!! {dlb}
you.max_dex = you.dex;
you.max_strength = you.strength;