Skip to content

Commit

Permalink
Cloaks with the oilskin property also let you pass through tight diag…
Browse files Browse the repository at this point in the history
…onals.
  • Loading branch information
elunna committed Oct 12, 2023
1 parent 2205bd3 commit c873316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hack.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@ struct monst *mon;
return 1;

/* Greased cloaks let us pass through tight spots */
if (!Sokoban && uarmc && (uarmc->otyp == OILSKIN_CLOAK || uarmc->greased))
if (!Sokoban && uarmc
&& (uarmc->otyp == OILSKIN_CLOAK || uarmc->oprops & ITEM_OILSKIN
|| uarmc->greased))
return 0;

/* lugging too much junk? */
Expand Down

0 comments on commit c873316

Please sign in to comment.