Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
master
Breadcrumbs
scripts
/
cannibalism.lua
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
16 lines (15 loc) · 615 Bytes
master
Breadcrumbs
scripts
/
cannibalism.lua
Copy path
Top
File metadata and controls
Code
Blame
16 lines (15 loc) · 615 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function unmark_inventory(inventory)
for _, entry in ipairs(inventory) do
entry.item.flags.dead_dwarf = false
end
end
local scrn = dfhack.gui.getCurViewscreen()
if df.viewscreen_itemst:is_instance(scrn) then
scrn.item.flags.dead_dwarf = false --hint:df.viewscreen_itemst
elseif df.viewscreen_dungeon_monsterstatusst:is_instance(scrn) then
unmark_inventory(scrn.inventory) --hint:df.viewscreen_dungeon_monsterstatusst
elseif df.global.adventure.menu == df.ui_advmode_menu.Inventory then
unmark_inventory(dfhack.world.getAdventurer().inventory)
else
qerror('Unsupported context')
end
You can’t perform that action at this time.