]> granicus.if.org Git - nethack/commitdiff
generic objects refinement
authorPatR <rankin@nethack.org>
Wed, 8 Feb 2023 00:47:42 +0000 (16:47 -0800)
committerPatR <rankin@nethack.org>
Wed, 8 Feb 2023 00:47:42 +0000 (16:47 -0800)
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.

include/objects.h
win/share/monsters.txt
win/share/objects.txt
win/share/other.txt

index c605b90c1ebd5494bee720d5f26307338081019a..ddebbc9b2f45423f8f2b200ccb772790d4456b62 100644 (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 */
index eaad2c876aa17a1a4f300bc173b1b481394e5417..7825cd8112d2ce83614de740e5cd72b7eb6b59cd 100644 (file)
@@ -1,5 +1,5 @@
 # monsters.txt - tile defintions for monsters
-#  Note too: lines beginning with '# tile ' are not comments; other
+#  Note: lines beginning with '# tile ' are not comments; other
 #  lines beginning with '#' are.
 . = (71, 108, 108)
 A = (0, 0, 0)
index ed25ad1644e111eb5dcc954376b390ec06b1f716..318c99ee8cc30016fe9e89fbdd5aa525848d05f1 100644 (file)
@@ -1,5 +1,5 @@
 # objects.txt - tile defintions for objects
-#  Note too: lines beginning with '# tile ' are not comments; other
+#  Note: lines beginning with '# tile ' are not comments; other
 #  lines beginning with '#' are.
 . = (71, 108, 108)
 A = (0, 0, 0)
@@ -49,7 +49,8 @@ Z = (195, 195, 195)
   CKKKKKKKKKKJAA..
   .AAAAAAAAAAAA...
 }
-# tile 1 (strange)
+#_ after "strange object" come 17 generic objects, one for each object class
+# tile 1 (strange / generic strange)
 #_ right/close square bracket
 {
   ................
@@ -69,7 +70,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 2 (weapon)
+# tile 2 (weapon / generic weapon)
 #_ right/close parenthesis
 {
   ................
@@ -89,7 +90,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 3 (armor)
+# tile 3 (armor / generic armor)
 #_ left/open square bracket
 {
   ................
@@ -109,7 +110,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 4 (ring)
+# tile 4 (ring / generic ring)
 #_ circle rather than equal sign
 {
   ................
@@ -129,7 +130,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 5 (amulet)
+# tile 5 (amulet / generic amulet)
 #_ double quote
 {
   ................
@@ -149,7 +150,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 6 (tool)
+# tile 6 (tool / generic tool)
 #_ left/open parenthesis
 {
   ................
@@ -169,7 +170,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 7 (food)
+# tile 7 (food / generic food)
 #_ percent sign (almost)
 {
   ................
@@ -189,7 +190,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 8 (potion)
+# tile 8 (potion / generic potion)
 #_ exclamation point
 {
   ................
@@ -209,7 +210,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 9 (scroll)
+# tile 9 (scroll / generic scroll)
 #_ question mark (almost)
 {
   ................
@@ -229,7 +230,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 10 (spellbook)
+# tile 10 (spellbook / generic spellbook)
 #_ plus sign
 {
   ................
@@ -249,7 +250,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 11 (wand)
+# tile 11 (wand / generic wand)
 #_ slash
 {
   ................
@@ -269,7 +270,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 12 (coin)
+# tile 12 (coin / generic coin)
 #_ dollar sign
 {
   ................
@@ -289,7 +290,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 13 (gem)
+# tile 13 (gem / generic gem)
 #_ asterisk
 {
   ................
@@ -309,8 +310,8 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 14 (large rock)
-#_ backtick/grave accent
+# tile 14 (large rock / generic large rock)
+#_ backtick/grave accent [boulder and statue]
 {
   ................
   ................
@@ -329,7 +330,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 15 (iron ball)
+# tile 15 (iron ball / generic iron ball)
 #_ zero
 {
   ................
@@ -349,7 +350,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 16 (iron chain)
+# tile 16 (iron chain / generic iron chain)
 #_ underscore (ugh)
 {
   ................
@@ -369,7 +370,7 @@ Z = (195, 195, 195)
   ................
   ................
 }
-# tile 17 (venom)
+# tile 17 (venom / generic venom)
 #_ period
 {
   ................
index 4f04ed718fbf4c6a3754005ac82d1d70901a2b1d..55726672b4ebfeaf8fd29e48456066160004c03d 100644 (file)
@@ -1,5 +1,5 @@
 # other.txt - tile defintions for 'other' (walls, furniture, explosions)
-#  Note too: lines beginning with '# tile ' are not comments; other
+#  Note: lines beginning with '# tile ' are not comments; other
 #  lines beginning with '#' are.
 . = (71, 108, 108)
 A = (0, 0, 0)