Skip to content

Commit

Permalink
scroll usage; also spell of ID (trunk only)
Browse files Browse the repository at this point in the history
[I neglected to commit the invent.c part of previous patch.]
  • Loading branch information
nethack.rankin committed Feb 16, 2006
1 parent 73e9225 commit 7dd8224
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/invent.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* SCCS Id: @(#)invent.c 3.5 2005/11/05 */
/* SCCS Id: @(#)invent.c 3.5 2006/02/15 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */

Expand Down Expand Up @@ -1522,8 +1522,9 @@ int id_limit;

/* dialog with user to identify a given number of items; 0 means all */
void
identify_pack(id_limit)
identify_pack(id_limit, learning_id)
int id_limit;
boolean learning_id; /* true if we just read unknown identify scroll */
{
struct obj *obj, *the_obj;
int n, unid_cnt;
Expand All @@ -1534,7 +1535,8 @@ int id_limit;
if (not_fully_identified(obj)) ++unid_cnt, the_obj = obj;

if (!unid_cnt) {
You("have already identified all of your possessions.");
You("have already identified all %sof your possessions."
learning_id ? "the rest " : "");
} else if (!id_limit) {
/* identify everything */
if (unid_cnt == 1) {
Expand Down

0 comments on commit 7dd8224

Please sign in to comment.