some reformatting (2 of 4)

This commit is contained in:
PatR
2024-09-05 14:51:21 -07:00
parent 50412ba53b
commit aa043f0ddf
17 changed files with 253 additions and 179 deletions

View File

@@ -200,7 +200,8 @@ kick_monster(struct monst *mon, coordxy x, coordxy y)
continue;
kickdieroll = rnd(20);
specialdmg = special_dmgval(&gy.youmonst, mon, W_ARMF, (long *) 0);
specialdmg = special_dmgval(&gy.youmonst, mon, W_ARMF,
(long *) 0);
if (mon->data == &mons[PM_SHADE] && !specialdmg) {
/* doesn't matter whether it would have hit or missed,
and shades have no passive counterattack */
@@ -493,8 +494,9 @@ kick_object(coordxy x, coordxy y, char *kickobjnam)
/* if a pile, the "top" object gets kicked */
gk.kickedobj = svl.level.objects[x][y];
if (gk.kickedobj) {
/* kick object; if doing is fatal, done() will clean up gk.kickedobj */
Strcpy(kickobjnam, killer_xname(gk.kickedobj)); /* matters iff res==0 */
/* formatted object name matters iff res==0 */
Strcpy(kickobjnam, killer_xname(gk.kickedobj));
/* kick object; if fatal, done() will clean up kickedobj */
res = really_kick_object(x, y);
gk.kickedobj = (struct obj *) 0;
}
@@ -924,7 +926,8 @@ kick_door(coordxy x, coordxy y, int avrg_attrib)
exercise(A_DEX, TRUE);
doorbuster = Upolyd && is_giant(gy.youmonst.data);
/* door is known to be CLOSED or LOCKED */
if (doorbuster || (rnl(35) < avrg_attrib + (!martial() ? 0 : ACURR(A_DEX)))) {
if (doorbuster
|| (rnl(35) < avrg_attrib + (!martial() ? 0 : ACURR(A_DEX)))) {
boolean shopdoor = *in_rooms(x, y, SHOPBASE) ? TRUE : FALSE;
/* break the door */