#tipping shop containers (trunk only)
Using #tip (post-3.4.3 code) on a container that's on a shop floor
didn't handle ownership correctly. Bag of tricks could be emptied for
free, and contents of other containers were being sold to the shop even
when the shop already owned them. This fixes bag of tricks and makes a
first cut at doing so for regular containers.
Message handling when #tipping any bag of tricks was also suboptimal
since the decision about message delivery was made again as each charge
released something instead of waiting until the whole bag was emptied.
So you could get inappropriate "nothing seems to happen" before or after
a monster visibily popped up if something unseen was also produced.
This commit is contained in:
@@ -1038,7 +1038,7 @@ E void FDECL(mimic_hit_msg, (struct monst *, SHORT_P));
|
||||
#ifdef GOLDOBJ
|
||||
E void FDECL(mkmonmoney, (struct monst *, long));
|
||||
#endif
|
||||
E int FDECL(bagotricks, (struct obj *,BOOLEAN_P));
|
||||
E int FDECL(bagotricks, (struct obj *,BOOLEAN_P,int *));
|
||||
E boolean FDECL(propagate, (int, BOOLEAN_P,BOOLEAN_P));
|
||||
E boolean FDECL(usmellmon, (struct permonst *));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user