more precise dipping prompt (trunk only)
Someone in the newsgroup accidentally dipped the wrong item into a fountain and wants the second prompt to be "Dip <obj> into the fountain?" instead of just "Dip _it_ into the fountain?", hoping that he would have noticed that he had selected the wrong object. I think he's fooling himself there, but this gives a brief object name for fountain, pool, and potion prompts.
This commit is contained in:
@@ -360,6 +360,7 @@ add `#vanquished' debug mode command
|
|||||||
C and #name commands are now same and use menu to choose monster vs object
|
C and #name commands are now same and use menu to choose monster vs object
|
||||||
hallucination provides partial protection against gaze attacks
|
hallucination provides partial protection against gaze attacks
|
||||||
attempting to read "dull" spellbook might cause hero to fall asleep
|
attempting to read "dull" spellbook might cause hero to fall asleep
|
||||||
|
dipping prompt is more precise
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific New Features
|
Platform- and/or Interface-Specific New Features
|
||||||
|
|||||||
+7
-5
@@ -1699,17 +1699,19 @@ dodip()
|
|||||||
return(0);
|
return(0);
|
||||||
if (inaccessible_equipment(obj, "dip", FALSE)) return 0;
|
if (inaccessible_equipment(obj, "dip", FALSE)) return 0;
|
||||||
|
|
||||||
|
Sprintf(qbuf, "dip %s into", thesimpleoname(obj));
|
||||||
here = levl[u.ux][u.uy].typ;
|
here = levl[u.ux][u.uy].typ;
|
||||||
/* Is there a fountain to dip into here? */
|
/* Is there a fountain to dip into here? */
|
||||||
if (IS_FOUNTAIN(here)) {
|
if (IS_FOUNTAIN(here)) {
|
||||||
if(yn("Dip it into the fountain?") == 'y') {
|
Strcat(qbuf, " the fountain?");
|
||||||
|
if (yn(upstart(qbuf)) == 'y') {
|
||||||
dipfountain(obj);
|
dipfountain(obj);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
} else if (is_pool(u.ux,u.uy)) {
|
} else if (is_pool(u.ux,u.uy)) {
|
||||||
tmp = waterbody_name(u.ux,u.uy);
|
tmp = waterbody_name(u.ux,u.uy);
|
||||||
Sprintf(qbuf, "Dip it into the %s?", tmp);
|
Sprintf(eos(qbuf), " the %s?", tmp);
|
||||||
if (yn(qbuf) == 'y') {
|
if (yn(upstart(qbuf)) == 'y') {
|
||||||
if (Levitation) {
|
if (Levitation) {
|
||||||
floating_above(tmp);
|
floating_above(tmp);
|
||||||
#ifdef STEED
|
#ifdef STEED
|
||||||
@@ -1726,8 +1728,8 @@ dodip()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(potion = getobj(beverages, "dip into")))
|
potion = getobj(beverages, qbuf); /* "dip into" */
|
||||||
return(0);
|
if (!potion) return 0;
|
||||||
if (potion == obj && potion->quan == 1L) {
|
if (potion == obj && potion->quan == 1L) {
|
||||||
pline("That is a potion bottle, not a Klein bottle!");
|
pline("That is a potion bottle, not a Klein bottle!");
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user