]> granicus.if.org Git - nethack/commitdiff
scroll usage; also spell of ID (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 16 Feb 2006 06:47:02 +0000 (06:47 +0000)
committernethack.rankin <nethack.rankin>
Thu, 16 Feb 2006 06:47:02 +0000 (06:47 +0000)
[I neglected to commit the invent.c part of previous patch.]

src/invent.c

index 00b17b0298bd1d0fe97985dfc25cec3b7001186a..a81b69b04b53d678f10075f987b800d03e6b0e56 100644 (file)
@@ -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. */
 
@@ -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;
@@ -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) {