missing altar drop messages

Most callers of dropx did not check for altars, but should have.  Rather
than add such checks, I moved the check from drop to dropx.  I also found
several callers of dropx that could generate out-of-order messages for some
cases (not new) and fixed them. FYI - callers of dropy don't seem to want
altar checks or already do them.
This commit is contained in:
cohrs
2002-12-17 03:36:42 +00:00
parent 137bd330e4
commit bcf47b7663
4 changed files with 11 additions and 8 deletions

View File

@@ -1768,9 +1768,9 @@ struct obj *obj;
char buf[BUFSZ];
if (Glib) {
dropx(obj);
pline("%s from your %s.", Tobjnam(obj, "slip"),
makeplural(body_part(FINGER)));
dropx(obj);
return;
}
@@ -1778,9 +1778,9 @@ struct obj *obj;
if ((obj->cursed || Fumbling) && !rn2(2)) {
check_unpaid(obj);
obj->spe--;
dropx(obj);
pline("%s from your %s.", Tobjnam(obj, "slip"),
makeplural(body_part(FINGER)));
dropx(obj);
return;
}
otmp = getobj(lubricables, "grease");