]> granicus.if.org Git - nethack/commitdiff
silver dragon colour
authornethack.allison <nethack.allison>
Sat, 4 Jan 2003 17:37:09 +0000 (17:37 +0000)
committernethack.allison <nethack.allison>
Sat, 4 Jan 2003 17:37:09 +0000 (17:37 +0000)
Back in 2000 "Pat Rankin" wrote:
>      From a user (in a message which had several unrelated things):
>
> > I think the colour of silver dragon scales / scale mail should not be
> > SILVER (which is not a colour), but HI_SILVER. Of course the colour of
> > silver dragons would have to be adjusted to match this.
>
> I don't normally have access to a color display, so I hadn't noticed
> that silver dragons are CLR_BRIGHT_CYAN.  It is pure coincidence
> that material SILVER happens to have the same numeric value as that.
> Is bright cyan intentional, to make them distinguishable from gray
> dragons (since color HI_SILVER is defined to be the same as CLR_GRAY)?
> Or was it done for the monsters just because the corresponding objects
> accidentally had the wrong value?  It seems to me that they ought to
> be the same shade of silver (ie, gray) as other silver things, even
> if that makes them look identical to gray dragons.

Using the material value SILVER in the "color"
field was wrong, no matter what the reason. I
suspect it was probably a mistake originally.

This patch does not alter the displayed colour for the
bug-fix release, but does correct the misuse of the
material.

include/color.h
src/monst.c
src/objects.c

index f791ffadc1ac9416e63cb01828e2df2a157ea5da..2fe85d11c6b47038ffeb52d29a16fa15ee5983ec 100644 (file)
@@ -46,6 +46,7 @@
 #define HI_PAPER       CLR_WHITE
 #define HI_GLASS       CLR_BRIGHT_CYAN
 #define HI_MINERAL     CLR_GRAY
+#define DRAGON_SILVER  CLR_BRIGHT_CYAN
 #define HI_ZAP         CLR_BRIGHT_BLUE
 
 #endif /* COLOR_H */
index 40f004351cb27382aed5cb7c1ed71e460097d2d9..22e99d7d44aea66588b46841817ad25c64e8aa7a 100644 (file)
@@ -1194,7 +1194,7 @@ NEARDATA struct permonst mons[] = {
          NO_ATTK, NO_ATTK, NO_ATTK, NO_ATTK, NO_ATTK),
        SIZ(1500, 500, 0, MS_ROAR, MZ_HUGE), 0, 0,
        M1_FLY|M1_THICK_HIDE|M1_NOHANDS|M1_CARNIVORE,
-       M2_HOSTILE|M2_STRONG|M2_GREEDY|M2_JEWELS, 0, CLR_BRIGHT_CYAN),
+       M2_HOSTILE|M2_STRONG|M2_GREEDY|M2_JEWELS, 0, DRAGON_SILVER),
 #if 0  /* DEFERRED */
     MON("baby shimmering dragon", S_DRAGON,
        LVL(12, 9, 2, 10, 0), G_GENO,
@@ -1202,7 +1202,7 @@ NEARDATA struct permonst mons[] = {
          NO_ATTK, NO_ATTK, NO_ATTK, NO_ATTK, NO_ATTK),
        SIZ(1500, 500, 0, MS_ROAR, MZ_HUGE), 0, 0,
        M1_FLY|M1_THICK_HIDE|M1_NOHANDS|M1_CARNIVORE,
-       M2_HOSTILE|M2_STRONG|M2_GREEDY|M2_JEWELS, 0, CLR_CYAN),
+       M2_HOSTILE|M2_STRONG|M2_GREEDY|M2_JEWELS, 0, DRAGON_SILVER),
 #endif
     MON("baby red dragon", S_DRAGON,
        LVL(12, 9, 2, 10, 0), G_GENO,
@@ -1271,7 +1271,7 @@ NEARDATA struct permonst mons[] = {
        M1_FLY|M1_THICK_HIDE|M1_NOHANDS|M1_SEE_INVIS|M1_OVIPAROUS|
          M1_CARNIVORE,
        M2_HOSTILE|M2_STRONG|M2_NASTY|M2_GREEDY|M2_JEWELS|M2_MAGIC,
-       0, CLR_BRIGHT_CYAN),
+       0, DRAGON_SILVER),
 #if 0  /* DEFERRED */
     MON("shimmering dragon", S_DRAGON,
        LVL(15, 9, -1, 20, 4), (G_GENO|1),
index de69a05be96e14537b496512cfd43ba08ff8a24e..1b18a3d527d6d146aeef55f755c4a6cf6b6bb9d7 100644 (file)
@@ -332,7 +332,7 @@ HELM("helm of telepathy", "visored helmet",
 /* 3.4.1: dragon scale mail reclassified as "magic" since magic is
    needed to create them */
 DRGN_ARMR("gray dragon scale mail",   1, ANTIMAGIC,  1200, 1, CLR_GRAY),
-DRGN_ARMR("silver dragon scale mail", 1, REFLECTING, 1200, 1, SILVER),
+DRGN_ARMR("silver dragon scale mail", 1, REFLECTING, 1200, 1, DRAGON_SILVER),
 #if 0  /* DEFERRED */
 DRGN_ARMR("shimmering dragon scale mail", 1, DISPLACED, 1200, 1, CLR_CYAN),
 #endif
@@ -348,7 +348,7 @@ DRGN_ARMR("yellow dragon scale mail", 1, ACID_RES,    900, 1, CLR_YELLOW),
 /* 3.4.1: dragon scales left classified as "non-magic"; they confer
    magical properties but are produced "naturally" */
 DRGN_ARMR("gray dragon scales",   0, ANTIMAGIC,  700, 7, CLR_GRAY),
-DRGN_ARMR("silver dragon scales", 0, REFLECTING, 700, 7, SILVER),
+DRGN_ARMR("silver dragon scales", 0, REFLECTING, 700, 7, DRAGON_SILVER),
 #if 0  /* DEFERRED */
 DRGN_ARMR("shimmering dragon scales", 0, DISPLACED,  700, 7, CLR_CYAN),
 #endif