Skip to content

Commit eb1cd89

Browse files
write down a note for someone more skilled in lua
1 parent 0895834 commit eb1cd89

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

deathcause.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ local DEATH_TYPES = reqscript('gui/unit-info-viewer').DEATH_TYPES
66
-- Gets the first corpse item at the given location
77
local function getItemAtPosition(pos)
88
for _, item in ipairs(df.global.world.items.other.ANY_CORPSE) do
9+
-- could this maybe be `if same_xyz(pos, item.pos) then`?
910
if item.pos.x == pos.x and item.pos.y == pos.y and item.pos.z == pos.z then
1011
print("Automatically chose first corpse at the selected location.")
1112
return item

0 commit comments

Comments
 (0)