Define engulfing_u, making clearer code

This commit is contained in:
Pasi Kallinen
2021-12-31 21:12:12 +02:00
parent 776064933a
commit 8db18275a6
16 changed files with 37 additions and 36 deletions

View File

@@ -1678,7 +1678,7 @@ thitmonst(register struct monst *mon,
register int tmp; /* Base chance to hit */
register int disttmp; /* distance modifier */
int otyp = obj->otyp, hmode;
boolean guaranteed_hit = (u.uswallow && mon == u.ustuck);
boolean guaranteed_hit = engulfing_u(mon);
int dieroll;
hmode = (obj == uwep) ? HMON_APPLIED