diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-19 02:32:59 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-19 02:32:59 +0000 |
commit | 6b01578aea5d2f44172181e9aacd65d068e21a58 (patch) | |
tree | 9113de232a208eba5b86e82b3874060203ffd118 /crawl-ref/source/decks.cc | |
parent | a0946957cc584681cae95fa525b0a965893b1404 (diff) | |
download | crawl-ref-6b01578aea5d2f44172181e9aacd65d068e21a58.tar.gz crawl-ref-6b01578aea5d2f44172181e9aacd65d068e21a58.zip |
Add various god gift-related cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5966 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r-- | crawl-ref/source/decks.cc | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 61eb11b43f..c7c31cc632 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -2487,31 +2487,25 @@ static void _crusade_card(int power, deck_rarity_type rarity) // (though not immunity) check. Specifically, // you can convert Killer Klowns this way. // Might be too good. - if ( monster->hit_dice * 35 < random2(power) ) + if (monster->hit_dice * 35 < random2(power)) { - bool converted = false; + simple_monster_message(monster, " is converted."); - if ( one_chance_in(5 - power_level) ) + if (one_chance_in(5 - power_level)) { - if (you.religion == GOD_BEOGH && - mons_species(monster->type) == MONS_ORC) - { - beogh_convert_orc(monster, false); - } - else + monster->attitude = ATT_FRIENDLY; + + // If you worship a god that lets you recruit + // permanent followers, count this as a recruitment. + if (you.religion == GOD_SHINING_ONE + || you.religion == GOD_BEOGH + && mons_species(monster->type) == MONS_ORC) { - monster->attitude = ATT_FRIENDLY; - converted = true; + mons_make_god_gift(monster); } } else - { monster->add_ench(ENCH_CHARM); - converted = true; - } - - if (converted) - simple_monster_message(monster, " is converted."); } } } |