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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user