-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From a bug report: you can dip a worn item such as shirt or suit into a potion of polymorph and it will become unworn--but as of a couple of days ago, unworn only if the transformed object's new form can't be worn in the same slot--even if it is covered by a cursed worn item (suit or cloak). It didn't seem like trying to fix that special case would be very worthwhile; this fixes the more general situation of "you could dip worn items even though they were covered up by other worn items". In the same report: you could apply grease to rings while wearing cursed gloves. The code already prevented greasing a suit when it was covered by a cloak (regardless of whether that cloak was cursed), and a shirt when it was covered by a suit or cloak or both. This moves that code into a separate routine which is used for dipping as well as for applying grease, and now handles rings vs gloves. Since covered rings, shirt, or suit are no longer eligible to be dipped or greased, this also makes "?" for the pick-an-item prompt leave such things out of the list of likely candidates.
- Loading branch information
nethack.rankin
committed
Nov 30, 2006
1 parent
e80970d
commit 17f8482
Showing
6 changed files
with
68 additions
and
26 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
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
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