worked once, let's press our luck: botl.c invent.c mkobj.c

This commit is contained in:
keni
2011-12-31 00:24:26 +00:00
parent 86e9b65d20
commit 21f9be37a7
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -650,9 +650,9 @@ bot()
mbot[k] += 'A' - 'a'; mbot[k] += 'A' - 'a';
k++; k++;
} }
Sprintf(nb = eos(nb), mbot); Sprintf1(nb = eos(nb), mbot);
} else } else
Sprintf(nb = eos(nb), rank()); Sprintf1(nb = eos(nb), rank());
Sprintf(blstats[idx][BL_TITLE].val, "%-29s", buf); Sprintf(blstats[idx][BL_TITLE].val, "%-29s", buf);
valset[BL_TITLE] = TRUE; /* indicate val already set */ valset[BL_TITLE] = TRUE; /* indicate val already set */
+8 -8
View File
@@ -1065,7 +1065,7 @@ register const char *let,*word;
} }
if(index(quitchars,ilet)) { if(index(quitchars,ilet)) {
if(flags.verbose) if(flags.verbose)
pline(Never_mind); pline1(Never_mind);
return((struct obj *)0); return((struct obj *)0);
} }
if(ilet == '-') { if(ilet == '-') {
@@ -1120,7 +1120,7 @@ register const char *let,*word;
} }
if(ilet == '\033') { if(ilet == '\033') {
if(flags.verbose) if(flags.verbose)
pline(Never_mind); pline1(Never_mind);
return((struct obj *)0); return((struct obj *)0);
} }
/* they typed a letter (not a space) at the prompt */ /* they typed a letter (not a space) at the prompt */
@@ -1651,7 +1651,7 @@ int id_limit;
pline("That was all."); pline("That was all.");
break; break;
} else if (!--tryct) { /* stop re-prompting */ } else if (!--tryct) { /* stop re-prompting */
pline(thats_enough_tries); pline1(thats_enough_tries);
break; break;
} else { /* try again */ } else { /* try again */
pline("Choose an item; use ESC to decline."); pline("Choose an item; use ESC to decline.");
@@ -2119,7 +2119,7 @@ dounpaid()
otmp = find_unpaid(invent, &marker); otmp = find_unpaid(invent, &marker);
cost = unpaid_cost(otmp, FALSE); cost = unpaid_cost(otmp, FALSE);
iflags.suppress_price++; /* suppress "(unpaid)" suffix */ iflags.suppress_price++; /* suppress "(unpaid)" suffix */
pline("%s", xprname(otmp, distant_name(otmp, doname), pline1(xprname(otmp, distant_name(otmp, doname),
carried(otmp) ? otmp->invlet : CONTAINED_SYM, carried(otmp) ? otmp->invlet : CONTAINED_SYM,
TRUE, cost, 0L)); TRUE, cost, 0L));
iflags.suppress_price--; iflags.suppress_price--;
@@ -2467,7 +2467,7 @@ boolean picked_some;
Sprintf(fbuf, "There is %s here.", an(dfeature)); Sprintf(fbuf, "There is %s here.", an(dfeature));
if (!otmp || is_lava(u.ux,u.uy) || (is_pool(u.ux,u.uy) && !Underwater)) { if (!otmp || is_lava(u.ux,u.uy) || (is_pool(u.ux,u.uy) && !Underwater)) {
if (dfeature) pline(fbuf); if (dfeature) pline1(fbuf);
read_engr_at(u.ux, u.uy); /* Eric Backus */ read_engr_at(u.ux, u.uy); /* Eric Backus */
if (!skip_objects && (Blind || !dfeature)) if (!skip_objects && (Blind || !dfeature))
You("%s no objects here.", verb); You("%s no objects here.", verb);
@@ -2476,7 +2476,7 @@ boolean picked_some;
/* we know there is something here */ /* we know there is something here */
if (skip_objects) { if (skip_objects) {
if (dfeature) pline(fbuf); if (dfeature) pline1(fbuf);
read_engr_at(u.ux, u.uy); /* Eric Backus */ read_engr_at(u.ux, u.uy); /* Eric Backus */
if (obj_cnt == 1 && otmp->quan == 1L) if (obj_cnt == 1 && otmp->quan == 1L)
There("is %s object here.", picked_some ? "another" : "an"); There("is %s object here.", picked_some ? "another" : "an");
@@ -2498,7 +2498,7 @@ boolean picked_some;
} }
} else if (!otmp->nexthere) { } else if (!otmp->nexthere) {
/* only one object */ /* only one object */
if (dfeature) pline(fbuf); if (dfeature) pline1(fbuf);
read_engr_at(u.ux, u.uy); /* Eric Backus */ read_engr_at(u.ux, u.uy); /* Eric Backus */
#ifdef INVISIBLE_OBJECTS #ifdef INVISIBLE_OBJECTS
if (otmp->oinvis && !See_invisible) verb = "feel"; if (otmp->oinvis && !See_invisible) verb = "feel";
@@ -3047,7 +3047,7 @@ doorganize() /* inventory organizer by Del Lamb */
(splitting && let == obj->invlet)) { (splitting && let == obj->invlet)) {
noadjust: noadjust:
if (splitting) (void) merged(&splitting, &obj); if (splitting) (void) merged(&splitting, &obj);
pline(Never_mind); pline1(Never_mind);
return 0; return 0;
} }
if ((letter(let) && let != '@') || index(buf, let)) if ((letter(let) && let != '@') || index(buf, let))
+1 -1
View File
@@ -1898,7 +1898,7 @@ boolean tipping; /* caller emptying entire contents; affects shop handling */
if (!horn || horn->otyp != HORN_OF_PLENTY) { if (!horn || horn->otyp != HORN_OF_PLENTY) {
impossible("bad horn o' plenty"); impossible("bad horn o' plenty");
} else if (horn->spe < 1) { } else if (horn->spe < 1) {
pline(nothing_happens); pline1(nothing_happens);
} else { } else {
struct obj *obj; struct obj *obj;
const char *what; const char *what;