#4278
When wielding Sting, you should be able to untrap adjacent webs and monsters stuck in those webs with 100% success.
When wielding Sting, you should be able to untrap adjacent webs and monsters stuck in those webs with 100% success.
Make container traps deterministic (either as a hash of their object ID, or stored as a field on the object) rather than computing the trap when it’s triggered based on Luck. Untrapping them successfully can then yield an item related to the trap, which then gets deposited inside the container. The items for each type of trap are:
Make untrapping containers an occupation: always takes 5 turns, you either find a trap or you don’t, and you can’t try again on that container. This avoids having to type out #untrap multiple times for no apparent results.
This could also extend to untrap attempts on doors.
Ring of opening, which unlocks locked doors and boxes instantly while you are wearing it and try to unlock them. If blessed, it additionally untraps doors and boxes when you try to interact with them, but there is a fixed chance it unblesses in the process every time it untraps something.
While you are carrying the Master Key of Thievery, all door and container traps that you would have triggered are automatically removed without any triggers and probably not even any message indicating a trap was disarmed. If you actually want to trigger these traps for some reason, you can drop the Key or put it in a bag.
Possibly, these effects are suppressed when the Key is cursed (for rogues) or non-blessed (for non-rogues).
Untrapping a container, whether or not successful, silently reveals the locked/unlocked state of the container.
Since untrapping is more common than the rarely used “seetrap” command, remap the ^ key by default to perform an untrap. If you wish to use seetrap, you need to do #seetrap.
You can untrap falling rock traps. Unlike dart and arrow traps, this just dumps all the remaining rocks onto that space all at once with the message “The rocks clatter onto the ground”. If there is a monster on this space, it gets hit repeatedly by each rock.
When you attempt to interact with (or possibly explicitly search) a door or container, you get “There [are no traps / is a trap] on this [door / container].” which guarantees that there is not or is a trap, rather than an ambiguous “You find no traps”.
Implicitly untrap a chest when opening it (check it once for traps, not enough to guarantee there are no traps, but if one is found, prompt to attempt removing it.)