Monsters never try to pick up ball or chain

Apparently my m_move reorg made it possible for monsters to
pick up the chain attached to hero; explicitly prevent that.
This commit is contained in:
Pasi Kallinen
2023-02-01 21:38:26 +02:00
parent b45895c01d
commit 6af26751e6

View File

@@ -849,6 +849,8 @@ mon_would_take_item(struct monst *mtmp, struct obj *otmp)
{
int pctload = (curr_mon_load(mtmp) * 100) / max_mon_load(mtmp);
if (otmp == uball || otmp == uchain)
return FALSE;
if (is_unicorn(mtmp->data) && objects[otmp->otyp].oc_material != GEMSTONE)
return FALSE;
if (!mindless(mtmp->data) && !is_animal(mtmp->data) && pctload < 75