diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-16 13:33:32 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-16 13:33:32 +0000 |
commit | 1a6c94ae92a619e3612a0359d97d4498f2adeba8 (patch) | |
tree | 00bba720527cf6966d0d6a1cd0a4e96bb7e8cd29 /crawl-ref/source/makeitem.cc | |
parent | 3c8efd591ced0fbdad0da577af07011700df7562 (diff) | |
download | crawl-ref-1a6c94ae92a619e3612a0359d97d4498f2adeba8.tar.gz crawl-ref-1a6c94ae92a619e3612a0359d97d4498f2adeba8.zip |
Fix 1943303: Prevention of barding generation in monsters equipment.
And while I was at it... improved monster pickup handling.
* Ranged spellcasters won't pick up missiles anymore (except throwing nets).
* Allow monsters with behaviour != BEH_WANDER to pick up items again.
(Restricted to scrolls, potions, wands and weapons, since these could be
useful in a fight.)
* Restrict monster pickup to items they may actually use (3 types of
scrolls, six types of potions), though they may still pick up all types
of wands, if only to annoy the player.
As before, pickup only takes place if a monster happens to be on a square
with items and only the top items of stashes are checked - monsters won't
make a beeline for items or search stashes for goodies.
Also, neutrals and friendlies still won't pick up anything at all; this might
have to be changed.
Unrelated: fixed an ASSERT for divine retribution during penance.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4255 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 3093e091e3..096eac8612 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -3960,7 +3960,7 @@ void give_armour(monsters *mon, int level) if ( one_chance_in( mon->type == MONS_NAGA ? 800 : mon->type == MONS_NAGA_WARRIOR ? 300 : mon->type == MONS_NAGA_MAGE ? 200 - : 100)) + : 100 )) { mitm[bp].base_type = OBJ_ARMOUR; mitm[bp].sub_type = ARM_NAGA_BARDING; |