# Crawl Init file # TEAMCAPTAIN zkyp rest_wait_both = true sort_menus = true : equipped, identified, basename, qualname, curse, qty autofight_stop = 50 automagic_enable = true automagic_slot = x show_inventory_weights = true default_manual_training = true view_delay = 300 show_more = false confirm_butcher = never easy_eat_chunks = true auto_eat_chunks = true auto_drop_chunks = true tile_map_pixels = 3 autopickup = $?!+"/%|\} autopickup_exceptions +== 0 or item.branded then if current == nil then return true end if item.branded then return true end if not special(current) and estimate_ac(item) > estimate_ac(current) then return true end end elseif subtype == "body" then if current ~= nil and current.name("qual") == item.name("qual") then if item.branded then return true end if not special(current) and estimate_ac(item) > estimate_ac(current) then return true end end elseif subtype == "shield" then if current ~= nil and base_ac(item) >= base_ac(current) then if item.branded then return true end if base_ac(item) == base_ac(current) then if not special(current) and estimate_ac(item) > estimate_ac(current) then return true end end end end end end add_autopickup_func(autopickup) function initialize() if you.genus() ~= "felid" then found["blowgun"] = false; if you.genus() == "troll" or you.genus() == "ogre" then found["shield"] = false; else found["buckler"] = false; end end for key, value in pairs(found) do if inventory_match(key, nil) or stash_search(key .. " && dropped") then found[key] = true end end end local function check_inventory() for key, value in pairs(found) do if value == false and inventory_match(key, nil) then found[key] = true end end end function c_assign_invletter() need_inventory_check = true end function ready() if not initialized then crawl.more_autoclear(true) initialize() crawl.more_autoclear(false) initialized = true else if need_inventory_check then check_inventory() end end end }