there was no feedback when successfully hitting shock resistant monsters
with Mjollnir via hand-to-hand attack
unbought single-bite food eaten in shops was not billed properly
+charge for shop contents inside "no charge" containers
add wishing for "nothing" and genociding "none" to the conduct section
of the Guidebook
allow both wishing and genocide to accept either "none" or "nothing" when
-/* SCCS Id: @(#)pickup.c 3.4 2001/03/14 */
+/* SCCS Id: @(#)pickup.c 3.4 2002/03/30 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
struct obj *otmp;
{
obj_extract_self(otmp);
- if (otmp->no_charge) {
- /* this attribute only applies to objects outside invent */
- otmp->no_charge = 0;
- } else if (otmp != uball && costly_spot(otmp->ox, otmp->oy)) {
+ if (otmp != uball && costly_spot(otmp->ox, otmp->oy)) {
char saveushops[5], fakeshop[2];
/* addtobill cares about your location rather than the object's;
if (!index(u.ushops, *fakeshop))
remote_burglary(otmp->ox, otmp->oy);
}
+ if (otmp->no_charge) /* only applies to objects outside invent */
+ otmp->no_charge = 0;
if (Invisible) newsym(otmp->ox, otmp->oy);
return addinv(otmp); /* might merge it with other objects */
}