some shk.c formatting
This commit is contained in:
@@ -1154,7 +1154,7 @@ angry_shk_exists(void)
|
||||
|
||||
/* 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) {
|
||||
@@ -1172,7 +1172,7 @@ pacify_shk(register struct monst* shkp, boolean clear_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) {
|
||||
@@ -1204,7 +1204,7 @@ rouse_shk(struct monst* shkp, boolean verbosely)
|
||||
}
|
||||
|
||||
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);
|
||||
@@ -1273,7 +1273,9 @@ hot_pursuit(register struct monst* shkp)
|
||||
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)
|
||||
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);
|
||||
@@ -1298,7 +1300,7 @@ static const char
|
||||
|
||||
/* 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;
|
||||
@@ -4123,8 +4125,7 @@ shk_move(struct monst *shkp)
|
||||
} else {
|
||||
uondoor = u_at(eshkp->shd.x, eshkp->shd.y);
|
||||
if (uondoor) {
|
||||
badinv =
|
||||
(carrying(PICK_AXE) || carrying(DWARVISH_MATTOCK)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user