]> granicus.if.org Git - nethack/commit
lost ball and chain (trunk only)
authornethack.allison <nethack.allison>
Sat, 3 Jun 2006 17:55:24 +0000 (17:55 +0000)
committernethack.allison <nethack.allison>
Sat, 3 Jun 2006 17:55:24 +0000 (17:55 +0000)
commit9ca2d7c030ecb85a1184db8ae0fe45e8f0f0cfc9
treec7df4067cf8e838112cf30342aed81a6b26f28f9
parentd046be66bc587e8e2dd905a3f36241a540d9a785
lost ball and chain (trunk only)

Saving the game while punished, not carrying the attached ball,
and while swallowed by a purple worm resulted in losing the
ball and chain.

Since the required information was not being written to the
save file at all, I couldn't come up with a clean way to do this
for the branch, and preserve save file format. I could think
of lots of kludgy ways to do it (insert ball and chain into
the hero's inventory prior to saving, and remove it on restore, etc.)
src/save.c