diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-17 21:55:31 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-17 21:55:31 +0000 |
commit | bcd3e391a7c63905b95527de38a92b34f535ddd0 (patch) | |
tree | de07bfa61d804a27acafb685056f880c69cacc45 /crawl-ref/source/monstuff.cc | |
parent | 44f56edce815f5ff8fb4124829523439f1cc8ad2 (diff) | |
download | crawl-ref-bcd3e391a7c63905b95527de38a92b34f535ddd0.tar.gz crawl-ref-bcd3e391a7c63905b95527de38a92b34f535ddd0.zip |
Some more cards and bugfixes.
Still not implemented:
Shuffle, trowel, minefield, spade, blade.
Partially implemented:
Battlelust, helm, shadow, damage cards.
Breaks savefiles.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1595 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index f51cbc4ba4..b7a03ead8c 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -193,14 +193,8 @@ int get_mimic_colour( const monsters *mimic ) } // monster curses a random player inventory item: -bool curse_an_item( char which, char power ) +bool curse_an_item( bool decay_potions ) { - UNUSED( power ); - - /* use which later, if I want to curse weapon/gloves whatever - which, for now: 0 = non-mummy, 1 = mummy (potions as well) - don't change mitm.special of !odecay */ - int count = 0; int item = ENDOFPACK; @@ -218,7 +212,7 @@ bool curse_an_item( char which, char power ) continue; if (you.inv[i].base_type == OBJ_POTIONS - && (which != 1 || you.inv[i].sub_type == POT_DECAY)) + && (!decay_potions || you.inv[i].sub_type == POT_DECAY)) { continue; } @@ -745,7 +739,7 @@ void monster_die(monsters *monster, char killer, int i, bool silent) { if (YOU_KILL(killer)) { - if (curse_an_item(1, 0)) + if (curse_an_item(true)) mpr("You feel nervous for a moment...", MSGCH_MONSTER_SPELL); } } |