more perm_invent handling

Keep permanent inventory window up to date when using charged items.
Also a status line bit for the #tip command.
This commit is contained in:
nethack.rankin
2003-05-24 04:07:14 +00:00
parent aace75a34d
commit 9a39064b8f
8 changed files with 45 additions and 40 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)detect.c 3.4 1999/12/06 */
/* SCCS Id: @(#)detect.c 3.4 2003/05/25 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -800,8 +800,7 @@ struct obj *obj;
losehp(rnd(30), "exploding crystal ball", KILLED_BY_AN);
break;
}
check_unpaid(obj);
obj->spe--;
consume_obj_charge(obj, TRUE);
return;
}
@@ -825,8 +824,7 @@ struct obj *obj;
default: pline("Oh wow... like a kaleidoscope!");
break;
}
check_unpaid(obj);
obj->spe--;
consume_obj_charge(obj, TRUE);
}
return;
}
@@ -848,8 +846,7 @@ struct obj *obj;
int ret = 0;
makeknown(CRYSTAL_BALL);
check_unpaid(obj);
obj->spe--;
consume_obj_charge(obj, TRUE);
if ((class = def_char_to_objclass(ch)) != MAXOCLASSES)
ret = object_detect((struct obj *)0, class);