autofight_stop = 75 show_more = false travel_delay = 11 spell_slot ^= Freeze:a spell_slot ^= Frozen Ramparts:b spell_slot ^= Ozocubu's Armour:c spell_slot ^= Hailstorm:e spell_slot ^= Blink:f spell_slot ^= Swiftness:f spell_slot ^= Ozocubu's Refrigeration:g spell_slot ^= Sublimation of Blood:h spell_slot ^= Borgnjor's Vile Clutch:h spell_slot ^= Dragon Form:j explore_greedy_visit = artefacts,glowing_items travel_key_stop = true hp_warning = 50 mp_warning = 33 { -- Equipment autopickup (by Medar and various others) local function pickup_equipment(it, name) if it.is_useless then return end local class = it.class(true) if class == "armour" then local good_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots"} st, _ = it.subtype() if good_slots[st] ~= nil then if good_slots[st] == "Gloves" and you.has_claws() > 0 then return end if it.artefact then return true end local cur = items.equipped_at(good_slots[st]) if cur == nil then return true end if cur.branded or cur.artefact then return end if it.branded then return true end elseif st == "body" then local cur = items.equipped_at("armour") if cur == nil then return end if cur.name("qual") ~= it.name("qual") then return end if it.artefact then return true end if cur.branded or cur.artefact then return end if it.branded then return true end end end return end -- Autopickup of stackable items -- Doesn't work properly at the moment, oops local function pickup_stackable(it, name) local class = it.class(true) local subtype = it.subtype() local ego = it.ego(true) if class == "miscellaneous" and (subtype == "fan of gales" or subtype == "lamp of fire" or subtype == "phial of floods" or subtype == "lightning rod" or subtype == "crystal ball of energy") then if it.stacks() then return false end elseif class == "potion" or class == "scroll" or class == "missile" or class == "miscellaneous" then if it.stacks() then return true end end return end clear_autopickup_funcs() add_autopickup_func(pickup_equipment) add_autopickup_func(pickup_stackable) }