Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changes/issue-412.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-
Items floating in deep water will not be deposited under monsters, such as a
mirrored totem, from which they cannot be retrieved.
2 changes: 1 addition & 1 deletion src/brogue/Items.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ void updateFloorItems() {
}
if (cellHasTerrainFlag(x, y, T_MOVES_ITEMS)) {
pos loc;
getQualifyingLocNear(&loc, x, y, true, 0, (T_OBSTRUCTS_ITEMS | T_OBSTRUCTS_PASSABILITY), (HAS_ITEM), false, false);
getQualifyingLocNear(&loc, x, y, true, 0, (T_OBSTRUCTS_ITEMS | T_OBSTRUCTS_PASSABILITY), (HAS_ITEM | HAS_MONSTER), false, false);
removeItemFrom(x, y);
pmap[loc.x][loc.y].flags |= HAS_ITEM;
if (pmap[x][y].flags & ITEM_DETECTED) {
Expand Down