]> granicus.if.org Git - nethack/commitdiff
When autopicking objects, you can count to two
authorPasi Kallinen <paxed@alt.org>
Mon, 11 Apr 2022 08:31:28 +0000 (11:31 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 11 Apr 2022 08:31:32 +0000 (11:31 +0300)
Show "two" instead of "a few" when autopicking up objects, and
there's some left you didn't pick up.

src/invent.c

index 447fb3ba61460172ede158fadd81632eea9ffcbf..be8fb8d731d4c965e197a719fce64c491e4977b9 100644 (file)
@@ -3939,11 +3939,10 @@ look_here(int obj_cnt, /* obj_cnt > 0 implies that autopickup is in progress */
             There("is %s object here.", picked_some ? "another" : "an");
         else
             There("are %s%s objects here.",
-                  (obj_cnt < 5)
-                      ? "a few"
-                      : (obj_cnt < 10)
-                          ? "several"
-                          : "many",
+                  (obj_cnt == 2) ? "two"
+                  : (obj_cnt < 5) ? "a few"
+                  : (obj_cnt < 10) ? "several"
+                  : "many",
                   picked_some ? " more" : "");
         for (; otmp; otmp = otmp->nexthere)
             if (otmp->otyp == CORPSE && will_feel_cockatrice(otmp, FALSE)) {