USE_OLDARGS update (2 of 2)
Files modified: include/extern.h src/pline.c, priest.c, potion.c, mkobj.c A bunch of calls to pline() in pline.c started triggering warnings either as-is or possibly after the changes to tradstdc.h. Fixing them in place would include intrusive VA_PASSx() like in lev_main.c. Moving them to other files is much simpler (and they didn't particularly belong in pline.c in the first place, although I didn't actually find any better place for them....). The probing/stethoscope feedback went to priest.c, where there's a comment stating that it should move to wherever englightenment ends up once that is moved out of its completely inappropriate current home in cmd.c. (Holdover from when ^X was wizard-mode only but even the other wizard mode commands don't really belong with the command processing code.)
This commit is contained in:
33
src/mkobj.c
33
src/mkobj.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 mkobj.c $NHDT-Date: 1462067745 2016/05/01 01:55:45 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.122 $ */
|
||||
/* NetHack 3.6 mkobj.c $NHDT-Date: 1501725405 2017/08/03 01:56:45 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.124 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -2720,4 +2720,35 @@ struct obj **obj1, **obj2;
|
||||
return (struct obj *) 0;
|
||||
}
|
||||
|
||||
/* give a message if hero notices two globs merging [used to be in pline.c] */
|
||||
void
|
||||
pudding_merge_message(otmp, otmp2)
|
||||
struct obj *otmp;
|
||||
struct obj *otmp2;
|
||||
{
|
||||
boolean visible = (cansee(otmp->ox, otmp->oy)
|
||||
|| cansee(otmp2->ox, otmp2->oy)),
|
||||
onfloor = (otmp->where == OBJ_FLOOR || otmp2->where == OBJ_FLOOR),
|
||||
inpack = (carried(otmp) || carried(otmp2));
|
||||
|
||||
/* the player will know something happened inside his own inventory */
|
||||
if ((!Blind && visible) || inpack) {
|
||||
if (Hallucination) {
|
||||
if (onfloor) {
|
||||
You_see("parts of the floor melting!");
|
||||
} else if (inpack) {
|
||||
Your("pack reaches out and grabs something!");
|
||||
}
|
||||
/* even though we can see where they should be,
|
||||
* they'll be out of our view (minvent or container)
|
||||
* so don't actually show anything */
|
||||
} else if (onfloor || inpack) {
|
||||
pline("The %s coalesce%s.", makeplural(obj_typename(otmp->otyp)),
|
||||
inpack ? " inside your pack" : "");
|
||||
}
|
||||
} else {
|
||||
You_hear("a faint sloshing sound.");
|
||||
}
|
||||
}
|
||||
|
||||
/*mkobj.c*/
|
||||
|
||||
Reference in New Issue
Block a user