Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempting to loot while suffering from confusion and not on top of a container will drop gold if hero is carrying some, but it behaved differently for GOLDOBJ config (gold dropped over a hole or down stairs always stayed on current level) than for !GOLDOBJ (gold had a chance to fall to lower level) when done at some location other than a throne. This makes GOLDOBJ use dropx() instead of dropy(), same as !GOLDOBJ. And with access to a throne it can be used to repeatedly summon monsters until they're extinct. This makes it check for confusion before finding containers, but the chest/exchequer code doesn't always kick in so can't be attempted as many times before confusion expires, throttling summoning a little. Also, when placing hero's gold into a chest, it now clears the contents-known flag and relocks the chest.
- Loading branch information
nethack.rankin
committed
Jan 25, 2007
1 parent
e93303e
commit 0bd89ff
Showing
2 changed files
with
90 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters