Always give a message when dipping an item into a fountain

This commit is contained in:
Pasi Kallinen
2022-07-12 21:10:19 +03:00
parent 5c7c9d10ae
commit 40b1e55801

View File

@@ -377,6 +377,8 @@ drinkfountain(void)
void void
dipfountain(register struct obj *obj) dipfountain(register struct obj *obj)
{ {
int er = ER_NOTHING;
if (Levitation) { if (Levitation) {
floating_above("fountain"); floating_above("fountain");
return; return;
@@ -425,7 +427,7 @@ dipfountain(register struct obj *obj)
(void) angry_guards(FALSE); (void) angry_guards(FALSE);
return; return;
} else { } else {
int er = water_damage(obj, NULL, TRUE); er = water_damage(obj, NULL, TRUE);
if (obj->otyp == POT_ACID if (obj->otyp == POT_ACID
&& er != ER_DESTROYED) { /* Acid and water don't mix */ && er != ER_DESTROYED) { /* Acid and water don't mix */
@@ -521,6 +523,10 @@ dipfountain(register struct obj *obj)
exercise(A_WIS, TRUE); exercise(A_WIS, TRUE);
newsym(u.ux, u.uy); newsym(u.ux, u.uy);
break; break;
default:
if (er == ER_NOTHING)
pline("Nothing seems to happen.");
break;
} }
update_inventory(); update_inventory();
dryup(u.ux, u.uy, TRUE); dryup(u.ux, u.uy, TRUE);