Files
nethack/include
PatR 85c908cb03 displaying generic objects
Add 17 fake objects to objects[], one for each object class.  All
specific color as gray.  They're grouped at the start--actually near
the start since "strange object" is still objects[0]--rather than
being among the objects for each class.  init_object() knows to start
at [MAXOCLASSES] instead of [0]; other code that loops through every
object might need adjusting.

For potions, non-stone gems, and non-novel/non-Book_of_the_Dead
spellbooks that don't have obj->dknown set, display the corresponding
generic object rather the object itself.  Fixes the longstanding bug
of seeing color for not-yet-seen objects whose primary distinguishing
characteristic is their color.  Walking next to a generic object
while able to see its spot will set dknown and redraw as specific.
It's slightly disconcerting to have objects change as you reach them;
I hope it's just a matter of becoming used to that.  (If there is any
code still changing the hero's location manually instead of using
u_on_newpos(), it should be changed to use that routine.)

Most of the new tiles are just a big rendering of punctuation
characters.  The potion, gem, and spellbook ones could be cloned from
a specific object in their class and then have the color removed.  I
started out that way but wasn't happy with the result.  I'm not
artisticly inclined; hopefully someone else will do better.  Each of
them is preceded by a comment beginning with "#_"; the underscore
isn't required, just being used to make the comments stand out a bit.

Invalidates existing save and bones files.
2023-01-10 14:33:21 -08:00
..
2022-02-04 11:01:20 -05:00
2022-03-13 13:58:56 -07:00
2022-11-29 21:53:21 -05:00
2022-07-19 21:23:26 +03:00
2022-07-19 21:23:26 +03:00
2022-11-29 21:53:21 -05:00
2022-10-30 16:08:14 -04:00
2022-12-07 16:45:35 -08:00
2022-06-30 23:48:18 -04:00
2023-01-10 14:33:21 -08:00
2022-11-10 15:44:53 -08:00
2022-10-26 14:21:23 -04:00
2023-01-10 14:33:21 -08:00
2021-01-26 21:06:16 -05:00
2022-11-29 21:53:21 -05:00
2023-01-10 14:33:21 -08:00
2022-12-26 14:56:12 -08:00
2022-08-23 23:27:21 +03:00
2022-11-29 21:53:21 -05:00
2022-07-01 08:36:03 -04:00
2022-03-11 07:33:28 -05:00
2022-06-19 02:30:45 -07:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2022-10-26 14:21:23 -04:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2023-01-10 14:33:21 -08:00
2023-01-10 14:33:21 -08:00
2023-01-10 14:33:21 -08:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-07-23 23:11:13 -07:00
2022-10-26 14:21:23 -04:00
2022-11-29 21:53:21 -05:00
2022-12-10 12:27:18 -05:00
2022-12-10 12:27:18 -05:00
2020-08-12 16:15:28 -07:00
2022-10-26 14:21:23 -04:00
2022-12-06 00:49:52 -08:00
2022-10-29 10:54:25 -04:00
2022-11-29 21:53:21 -05:00
2023-01-06 15:53:06 +02:00
2022-06-30 23:48:18 -04:00
2023-01-09 23:34:32 -08:00
2022-12-12 15:20:22 -05:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00