generic objects refinement

Give generic objects a name as well as a description to avoid some
potential object formatting problems.  Also remove the 'unique' flag
from them to avoid confusion.  Not exhaustively tested.
This commit is contained in:
PatR
2023-02-07 16:47:42 -08:00
parent 57178b75ff
commit 042d40faac
4 changed files with 24 additions and 23 deletions

View File

@@ -67,8 +67,8 @@
#endif /* OBJECTS_DESCR_INIT || OBJECTS_INIT || OBJECTS_ENUM */
#define GENERIC(desc, class, gen_enum) \
OBJECT(OBJ(NoDes, desc), \
BITS(0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, P_NONE, 0), \
OBJECT(OBJ("generic " desc, desc), \
BITS(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, P_NONE, 0), \
0, class, 0, 0, 0, 0, 0, 0, 0, 0, 0, CLR_GRAY, gen_enum)
/* dummy object[0] -- description [2nd arg] *must* be NULL */