Candelabrum now reads "(n of 7 candles attached)"

It wasn't obvious enough before that the Candelabrum has seven candle
slots. This makes it show it clearly.
This commit is contained in:
Patric Mueller
2020-01-04 22:54:14 +01:00
parent 18b46449f0
commit 1acd631766
2 changed files with 2 additions and 5 deletions
+1
View File
@@ -78,6 +78,7 @@ NetHack Community Patches (or Variation) Included
hallucinatory trap names from github pull request #174 hallucinatory trap names from github pull request #174
autounlock feature originally from unnethack in github pull request #228 autounlock feature originally from unnethack in github pull request #228
applying a candelabrum with no candles gives a tip (github #265) 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 Code Cleanup and Reorganization
+1 -5
View File
@@ -1096,11 +1096,7 @@ unsigned doname_flags;
break; break;
} }
if (obj->otyp == CANDELABRUM_OF_INVOCATION) { if (obj->otyp == CANDELABRUM_OF_INVOCATION) {
if (!obj->spe) Sprintf(eos(bp), " (%d of 7 candle%s%s)", obj->spe, plur(obj->spe),
Strcpy(tmpbuf, "no");
else
Sprintf(tmpbuf, "%d", obj->spe);
Sprintf(eos(bp), " (%s candle%s%s)", tmpbuf, plur(obj->spe),
!obj->lamplit ? " attached" : ", lit"); !obj->lamplit ? " attached" : ", lit");
break; break;
} else if (obj->otyp == OIL_LAMP || obj->otyp == MAGIC_LAMP } else if (obj->otyp == OIL_LAMP || obj->otyp == MAGIC_LAMP