From 250c8a7b452394b19be9db4bd251656142fde8d9 Mon Sep 17 00:00:00 2001 From: Bryan Turner Date: Sun, 5 Feb 2023 12:24:04 -0500 Subject: [PATCH 1/2] Don't float items onto monsters. Recordings will be incompatible. --- src/brogue/Items.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/brogue/Items.c b/src/brogue/Items.c index bf6c8836..31642570 100644 --- a/src/brogue/Items.c +++ b/src/brogue/Items.c @@ -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) { From 0e78f0d73e957b907fafce50277eecfc7798688f Mon Sep 17 00:00:00 2001 From: Bryan Turner Date: Fri, 24 Feb 2023 21:24:18 -0500 Subject: [PATCH 2/2] Changelog --- changes/issue-412.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changes/issue-412.md diff --git a/changes/issue-412.md b/changes/issue-412.md new file mode 100644 index 00000000..5f9ab0a7 --- /dev/null +++ b/changes/issue-412.md @@ -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.