diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-19 13:30:05 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-19 13:30:05 +0100 |
commit | 4e7bdb53a1c1eab51ee279819debf01b82e88188 (patch) | |
tree | 41b29b9aa0b5849973e45f0310e37453d7603d67 /crawl-ref/source | |
parent | 32548e507392703a0960b7281a285f18c9715f52 (diff) | |
download | crawl-ref-4e7bdb53a1c1eab51ee279819debf01b82e88188.tar.gz crawl-ref-4e7bdb53a1c1eab51ee279819debf01b82e88188.zip |
Auto-pickup things which that dirty son-of-a-hobbit Maurice got his grubby paws on.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/fight.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 0dedb5a2cc..a5b01f2b78 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -4723,6 +4723,8 @@ static void _steal_item_from_player(monsters *mon) // TODO: Allow stealing of the wielded weapon? // Needs to be unwielded properly and should never lead to // fatal stat loss. + // 1KB: I'd say no, weapon is being held, it's different from pulling + // a wand from your pocket. if (item_is_equipped(you.inv[m])) continue; @@ -4861,6 +4863,8 @@ static void _steal_item_from_player(monsters *mon) unlink_item(index); mon->inv[mslot] = index; new_item.set_holding_monster(mon->mindex()); + // You'll want to autopickup it after killing Maurice. + new_item.flags |= ISFLAG_THROWN; mon->equip(new_item, mslot, true); // Item is gone from player's inventory. |