summaryrefslogtreecommitdiffstats
path: root/crawl-ref/settings/pickup_butcher_tool.txt
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/settings/pickup_butcher_tool.txt')
-rw-r--r--crawl-ref/settings/pickup_butcher_tool.txt33
1 files changed, 0 insertions, 33 deletions
diff --git a/crawl-ref/settings/pickup_butcher_tool.txt b/crawl-ref/settings/pickup_butcher_tool.txt
deleted file mode 100644
index d6408811d1..0000000000
--- a/crawl-ref/settings/pickup_butcher_tool.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-# Pick up a butchering weapon if we don't already have one
-< do
-local function can_butcher(it, name)
- if not item.can_cut_meat(it) then
- return false
- end
- if item.cursed(it) then
- return false
- end
- if name:find("distort", 0, true) then
- return false
- end
- return true
-end
-function pickup_butcher(it, name)
- if you.has_claws() > 0 then
- return false
- end
- if not you.can_consume_corpses() and not you.god_likes_butchery() then
- return false
- end
- if not can_butcher(it, name) then
- return false
- end
- for _, inv_it in pairs(item.inventory()) do
- if can_butcher(inv_it, item.name(inv_it)) then
- return false
- end
- end
- return true
-end
-add_autopickup_func(pickup_butcher)
-end >