Dont discard unless last o_count
This commit is contained in:
@@ -306,7 +306,7 @@ attack(struct rogue_state *rs,THING *mp)
|
|||||||
{
|
{
|
||||||
remove_mon(rs,&mp->t_pos, moat(mp->t_pos.y, mp->t_pos.x), FALSE);
|
remove_mon(rs,&mp->t_pos, moat(mp->t_pos.y, mp->t_pos.x), FALSE);
|
||||||
mp=NULL;
|
mp=NULL;
|
||||||
leave_pack(rs,steal, FALSE, TRUE);//FALSE);
|
leave_pack(rs,steal, FALSE, FALSE);
|
||||||
msg(rs,"she stole %s!", inv_name(steal, TRUE));
|
msg(rs,"she stole %s!", inv_name(steal, TRUE));
|
||||||
discard(steal);
|
discard(steal);
|
||||||
}
|
}
|
||||||
@@ -600,7 +600,7 @@ remove_mon(struct rogue_state *rs,coord *mp, THING *tp, bool waskill)
|
|||||||
detach(tp->t_pack, obj);
|
detach(tp->t_pack, obj);
|
||||||
if (waskill)
|
if (waskill)
|
||||||
fall(rs,obj, FALSE);
|
fall(rs,obj, FALSE);
|
||||||
else
|
else if ( obj->o_count <= 0 )
|
||||||
discard(obj);
|
discard(obj);
|
||||||
}
|
}
|
||||||
moat(mp->y, mp->x) = NULL;
|
moat(mp->y, mp->x) = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user