revisit #H4083 - glob ID and merging
commitb632247a74175ebadf9572c7e3e10c4f022b6f2a
authorPatR <rankin@nethack.org>
Fri, 29 Jan 2016 02:13:25 +0000 (28 18:13 -0800)
committerPatR <rankin@nethack.org>
Fri, 29 Jan 2016 02:13:25 +0000 (28 18:13 -0800)
treef8da1eb7123db9f180364dc527cffac3a6608c91
parenta309e076e0f95380ed555f6d3ab355994c7826bf
revisit #H4083 - glob ID and merging

Globs on the floor used different criteria (anything goes) than globs
in inventory (mostly requiring same ownership when in shops and same
curse/bless state--other stuff generally isn't applicable) when
deciding whether two globs should merge.  That was okay as long as
the globs on the floor were from being left behind when a pudding or
ooze was killed, but not if the player had picked some up, dipped
them in holy or unholy water, and dropped them again.  This changes
things so that globs on the floor use the same criteria as globs in
inventory when deciding whether to coallesce.

Also, my earlier fix was modifying globs in the mergeable() test (to
make bknown and rknown match) rather than during actual merge, which
would be a problem if the merger didn't take place for some reason.
include/extern.h
src/do.c
src/invent.c
src/mkobj.c