diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 14:11:36 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 14:11:36 +0000 |
commit | aa33a11b5b0e71d4822ae93b6f1410d4d5f61205 (patch) | |
tree | 20a364a7f6bcb62149ac157bc58b10d315196bbd | |
parent | f283025623b4a8f83f2768fd886ba5a85956f471 (diff) | |
download | crawl-ref-aa33a11b5b0e71d4822ae93b6f1410d4d5f61205.tar.gz crawl-ref-aa33a11b5b0e71d4822ae93b6f1410d4d5f61205.zip |
Fix [1948787]: Let Xom mutate engorged vampires.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4471 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/xom.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index 2427a2b680..42a64431c8 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -626,8 +626,11 @@ static bool xom_is_good(int sever) } else if (random2(sever) <= 9) { - if (you.is_undead) + if (you.is_undead + && (you.species != SP_VAMPIRE || you.hunger_state != HS_ENGORGED)) + { goto try_again; + } god_speaks(GOD_XOM, _get_xom_speech("good mutations")); mpr("Your body is suffused with distortional energy."); @@ -758,8 +761,13 @@ static bool xom_is_bad(int sever) } else if (random2(sever) <= 6) { - if (you.is_undead) + if (you.is_undead + && (you.species != SP_VAMPIRE + || you.hunger_state != HS_ENGORGED)) + { goto try_again; + } + god_speaks(GOD_XOM, _get_xom_speech("random mutations")); mpr("Your body is suffused with distortional energy."); |