diff options
author | metamuffin <metamuffin@disroot.org> | 2025-06-07 18:34:10 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-06-07 18:34:10 +0200 |
commit | bd054a7a894d03c34ff22fc697cf4deed70f6d64 (patch) | |
tree | 66e108aa6f3a45c8cfb0b5faf8e6a4f7aa1f2d34 /test-client | |
parent | f8882c85ae75f6a72c59768148e27ac103e6fedf (diff) | |
download | hurrycurry-bd054a7a894d03c34ff22fc697cf4deed70f6d64.tar hurrycurry-bd054a7a894d03c34ff22fc697cf4deed70f6d64.tar.bz2 hurrycurry-bd054a7a894d03c34ff22fc697cf4deed70f6d64.tar.zst |
test-client: consider non-interactable tiles with item for interact target
Diffstat (limited to 'test-client')
-rw-r--r-- | test-client/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/main.ts b/test-client/main.ts index 66e3e989..8d19be51 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -394,7 +394,7 @@ export function get_interact_target(): V2 | undefined { for (let ox = -1; ox <= 1; ox++) for (let oy = -1; oy <= 1; oy++) { const t = tiles.get([bx + ox, by + oy] + "") if (!t) continue - if (data.tile_interact[t.kind]) { + if (data.tile_interact[t.kind] || t.item) { const cx = (bx + ox + 0.5) const cy = (by + oy + 0.5) const dx = rx - cx |