Files
nethack/include
copperwater 277dcc05b5 Port the autounlock feature, hallucinatory trap names from UnNetHack
This adds a boolean option, autounlock, defaulting to true. When this is
set to TRUE, messages stating that some door or container is locked are
automatically followed by a prompt asking if you would like to unlock
it, if you are carrying an unlocking tool (key, lock pick, or credit
card).

Architecturally, this extends the pick_lock function to take three
additional arguments (door coordinates or a box on the ground you are
autounlocking).

The code that selects an unlocking tool will always look first for a
skeleton key, then a lock pick, then a credit card. Since curses, rust,
and other attributes don't really have an effect on the viability of the
unlocking device, it didn't seem to warrant making a more complex
function for that.

Add hallucinatory trap names

This adds many funny, realistic, and nonsensical traps to the game, to
be shown when the player is hallucinating.

Architecturally, the biggest change is merging the what_trap macro and
the "defsyms[trap_to_defsym(ttyp)].explanation" pattern into a single
function "trapname", which returns the name of the trap, handling the
hallucination case. There is also a second parameter used for overriding
hallucination in the occasional cases where the actual trap name should
always be returned.

In addition, the what_trap and random_trap macros are now obsolete and
not used anywhere, so they are removed.

reinstate anti-rng abuse bit on hallucination

updates to hallucinatory trap names and fixes37.0 entry
2019-12-19 18:52:23 -05:00
..
2018-11-11 10:29:52 -05:00
2019-11-27 09:53:40 -08:00
2019-11-06 18:43:20 +02:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:15 +09:00
2019-07-03 14:06:53 -07:00
2015-10-17 13:15:46 +03:00
2019-04-19 12:42:35 -07:00
2018-04-25 15:00:13 -04:00
2015-05-25 09:21:31 +09:00
2019-05-12 14:51:26 -04:00
2019-11-17 20:31:56 -05:00
2018-04-25 15:00:13 -04:00
2018-12-15 19:31:42 -05:00
2015-05-25 09:21:15 +09:00
2019-12-17 14:11:52 -05:00
2019-03-06 11:37:52 -08:00
2019-01-28 10:02:08 +01:00
2018-04-25 16:54:50 -04:00
2015-05-25 09:21:15 +09:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2015-10-17 13:15:46 +03:00
2019-05-11 11:10:00 +03:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2019-11-27 01:27:11 -05:00
2018-04-25 15:00:13 -04:00
2019-06-18 21:50:51 -04:00
2015-05-25 09:21:31 +09:00
2019-12-18 07:38:59 -05:00
2019-11-27 20:18:45 -05:00
2019-01-13 17:19:39 -08:00
2015-05-25 09:21:31 +09:00
2019-12-04 17:13:01 -05:00
2019-01-11 17:18:48 -08:00
2019-12-18 07:38:59 -05:00
2019-11-02 22:53:46 -04:00
2018-10-21 08:45:55 -04:00
2019-10-08 13:26:39 -07:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-10-17 18:47:31 +03:00
2019-11-16 18:27:50 -05:00
2019-01-11 17:18:48 -08:00
2019-11-06 18:43:20 +02:00
2019-12-18 07:38:59 -05:00
2019-11-29 17:40:58 -05:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2019-07-27 16:12:24 -07:00
2018-04-25 15:00:13 -04:00
2019-04-15 13:48:27 -07:00
2019-01-12 01:09:17 -05:00
2019-07-14 23:36:56 -07:00
2019-06-08 09:38:27 -04:00
2019-11-12 19:58:48 -05:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-10-05 16:49:34 -07:00
2019-02-04 16:46:04 -08:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-09-21 10:52:13 -04:00