creating artifacts by naming shop gear (trunk only)
A cased missed by "alteration of shop-owned objects" patch in April. If Sting or Orcrist is created in a shop using an unpaid weapon, update the bill to reflect that weapon's increase in value. No new fixes entry needed.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* SCCS Id: @(#)do_name.c 3.5 2005/05/06 */
|
/* SCCS Id: @(#)do_name.c 3.5 2005/07/15 */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -453,6 +453,8 @@ const char *name;
|
|||||||
if (obj == uswapwep) untwoweapon();
|
if (obj == uswapwep) untwoweapon();
|
||||||
/* activate warning if you've just named your weapon "Sting" */
|
/* activate warning if you've just named your weapon "Sting" */
|
||||||
if (obj == uwep) set_artifact_intrinsic(obj, TRUE, W_WEP);
|
if (obj == uwep) set_artifact_intrinsic(obj, TRUE, W_WEP);
|
||||||
|
/* if obj is owned by a shop, increase your bill */
|
||||||
|
if (obj->unpaid) alter_cost(obj, 0L);
|
||||||
}
|
}
|
||||||
if (carried(obj)) update_inventory();
|
if (carried(obj)) update_inventory();
|
||||||
return obj;
|
return obj;
|
||||||
|
|||||||
Reference in New Issue
Block a user