We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0895834 commit eb1cd89Copy full SHA for eb1cd89
1 file changed
deathcause.lua
@@ -6,6 +6,7 @@ local DEATH_TYPES = reqscript('gui/unit-info-viewer').DEATH_TYPES
6
-- Gets the first corpse item at the given location
7
local function getItemAtPosition(pos)
8
for _, item in ipairs(df.global.world.items.other.ANY_CORPSE) do
9
+ -- could this maybe be `if same_xyz(pos, item.pos) then`?
10
if item.pos.x == pos.x and item.pos.y == pos.y and item.pos.z == pos.z then
11
print("Automatically chose first corpse at the selected location.")
12
return item
0 commit comments