Slight improvement to handless pets' pickup changes

Allow one item to be taken out of a pile, and leave framework in place
for partial splits so that all monsters will take up to their capacity,
rather than leaving the whole pile if it's too big to take all at once.
This commit is contained in:
Derek S. Ray
2015-06-21 15:16:22 -04:00
parent 7f669de286
commit 2224df66f0
5 changed files with 50 additions and 30 deletions

View File

@@ -961,7 +961,7 @@ not_special:
&& !(otmp->otyp == CORPSE
&& touch_petrifies(&mons[otmp->corpsenm]))))
&& touch_artifact(otmp, mtmp)) {
if (can_carry(mtmp, otmp)
if (can_carry(mtmp, otmp) > 0
&& (throws_rocks(ptr)
|| !sobj_at(BOULDER, xx, yy))
&& (!is_unicorn(ptr)