diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-28 08:47:30 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-28 08:47:30 +0000 |
commit | 20a6609453ee2b51c388c296516c1abc1beab1d2 (patch) | |
tree | 201d735a3a4d66471005cb763078a6c05056752c /crawl-ref/source/food.cc | |
parent | 7aed4c41d7fa0f9d70df56a82abbe69061e56269 (diff) | |
download | crawl-ref-20a6609453ee2b51c388c296516c1abc1beab1d2.tar.gz crawl-ref-20a6609453ee2b51c388c296516c1abc1beab1d2.zip |
Preliminary integration of Zooko's Xom patch (untested).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1489 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index aa765649c9..dfb90d4591 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -739,27 +739,32 @@ static void eat_chunk( int chunk_effect ) case CE_MUTAGEN_RANDOM: mpr("This meat tastes really weird."); mutate(100); + xom_is_stimulated(100); break; case CE_MUTAGEN_BAD: mpr("This meat tastes *really* weird."); give_bad_mutation(); + xom_is_stimulated(random2(200)); break; case CE_HCL: rot_player( 10 + random2(10) ); - disease_player( 50 + random2(100) ); + if (disease_player( 50 + random2(100) )) + xom_is_stimulated(random2(100)); break; case CE_POISONOUS: mpr("Yeeuch - this meat is poisonous!"); - poison_player( 3 + random2(4) ); + if (poison_player( 3 + random2(4) )) + xom_is_stimulated(random2(128)); break; case CE_ROTTEN: case CE_CONTAMINATED: mpr("There is something wrong with this meat."); - disease_player( 50 + random2(100) ); + if (disease_player( 50 + random2(100) )) + xom_is_stimulated(random2(100)); break; // note that this is the only case that takes time and forces redraw |