fix B10003 - GOLDOBJ: BUC gold; identification

Curse and bless status has no meaning for gold.  Likewise
for erosion and other object flags controlling whether an item is
considered to be fully identified.
This commit is contained in:
nethack.rankin
2002-09-24 03:20:22 +00:00
parent b0f2478b51
commit 4d251c6688
5 changed files with 36 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)mkobj.c 3.4 2002/08/02 */
/* SCCS Id: @(#)mkobj.c 3.4 2002/09/21 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -679,6 +679,9 @@ void
bless(otmp)
register struct obj *otmp;
{
#ifdef GOLDOBJ
if (otmp->oclass == COIN_CLASS) return;
#endif
otmp->cursed = 0;
otmp->blessed = 1;
if (otmp->otyp == LUCKSTONE
@@ -707,6 +710,9 @@ void
curse(otmp)
register struct obj *otmp;
{
#ifdef GOLDOBJ
if (otmp->oclass == COIN_CLASS) return;
#endif
otmp->blessed = 0;
otmp->cursed = 1;
/* welded two-handed weapon interferes with some armor removal */