]> granicus.if.org Git - nethack/commitdiff
Candelabrum now reads "(n of 7 candles attached)"
authorPatric Mueller <bhaak@gmx.net>
Sat, 4 Jan 2020 12:08:08 +0000 (13:08 +0100)
committerPatric Mueller <bhaak@gmx.net>
Sat, 4 Jan 2020 21:54:14 +0000 (22:54 +0100)
It wasn't obvious enough before that the Candelabrum has seven candle
slots. This makes it show it clearly.

doc/fixes37.0
src/objnam.c

index bab5ec03b6cea086d9072a07dd615dd63b0efbd6..2fd6b1503a2db0fc9cb5ff1494cb2a91d4e8158a 100644 (file)
@@ -78,6 +78,7 @@ NetHack Community Patches (or Variation) Included
 hallucinatory trap names from github pull request #174
 autounlock feature originally from unnethack in github pull request #228
 applying a candelabrum with no candles gives a tip (github #265)
+candelabrum now reads "(n of 7 candles attached)" (github #265)
 
 
 Code Cleanup and Reorganization
index 50f64ebb78b12e98e1bca893473c495191c1df73..6da47e52d1917322aefda08913dfc283d9c58c8b 100644 (file)
@@ -1096,11 +1096,7 @@ unsigned doname_flags;
             break;
         }
         if (obj->otyp == CANDELABRUM_OF_INVOCATION) {
-            if (!obj->spe)
-                Strcpy(tmpbuf, "no");
-            else
-                Sprintf(tmpbuf, "%d", obj->spe);
-            Sprintf(eos(bp), " (%s candle%s%s)", tmpbuf, plur(obj->spe),
+            Sprintf(eos(bp), " (%d of 7 candle%s%s)", obj->spe, plur(obj->spe),
                     !obj->lamplit ? " attached" : ", lit");
             break;
         } else if (obj->otyp == OIL_LAMP || obj->otyp == MAGIC_LAMP