/* remove previously applied surcharge from all billed items */
static void
-pacify_shk(register struct monst* shkp, boolean clear_surcharge)
+pacify_shk(struct monst *shkp, boolean clear_surcharge)
{
NOTANGRY(shkp) = TRUE; /* make peaceful */
if (clear_surcharge && ESHK(shkp)->surcharge) {
/* add aggravation surcharge to all billed items */
static void
-rile_shk(register struct monst* shkp)
+rile_shk(struct monst *shkp)
{
NOTANGRY(shkp) = FALSE; /* make angry */
if (!ESHK(shkp)->surcharge) {
/* wakeup and/or unparalyze shopkeeper */
static void
-rouse_shk(struct monst* shkp, boolean verbosely)
+rouse_shk(struct monst *shkp, boolean verbosely)
{
if (helpless(shkp)) {
/* greed induced recovery... */
}
void
-make_happy_shk(register struct monst* shkp, register boolean silentkops)
+make_happy_shk(struct monst *shkp, boolean silentkops)
{
boolean wasmad = ANGRY(shkp);
struct eshk *eshkp = ESHK(shkp);
}
void
-hot_pursuit(register struct monst* shkp)
+hot_pursuit(register struct monst *shkp)
{
if (!shkp->isshk)
return;
the shop. These conditions must be checked by the calling function. */
/*ARGSUSED*/
void
-make_angry_shk(struct monst* shkp, coordxy ox UNUSED, coordxy oy UNUSED)
-/* <ox,oy> predate 'noit_Monnam()', let alone Shknam() */
+make_angry_shk(
+ struct monst *shkp,
+ coordxy ox UNUSED, coordxy oy UNUSED)
+ /* <ox,oy> predate 'noit_Monnam()', let alone Shknam() */
{
struct eshk *eshkp = ESHK(shkp);
/* delivers the cheapest item on the list */
static long
-cheapest_item(register struct monst* shkp)
+cheapest_item(struct monst *shkp)
{
register int ct = ESHK(shkp)->billct;
register struct bill_x *bp = ESHK(shkp)->bill_p;
} else {
uondoor = u_at(eshkp->shd.x, eshkp->shd.y);
if (uondoor) {
- badinv =
- (carrying(PICK_AXE) || carrying(DWARVISH_MATTOCK)
- || (Fast && (sobj_at(PICK_AXE, u.ux, u.uy)
+ badinv = (carrying(PICK_AXE) || carrying(DWARVISH_MATTOCK)
+ || (Fast && (sobj_at(PICK_AXE, u.ux, u.uy)
|| sobj_at(DWARVISH_MATTOCK, u.ux, u.uy))));
if (satdoor && badinv)
return 0;
}
z = move_special(shkp, inhishop(shkp), appr, uondoor, avoid, omx, omy,
- gtx, gty);
+ gtx, gty);
if (z > 0)
after_shk_move(shkp);
/* called after shopkeeper moves, in case themove causes re-entry into shop */
void
-after_shk_move(struct monst* shkp)
+after_shk_move(struct monst *shkp)
{
struct eshk *eshkp = ESHK(shkp);