## Display ## view_delay = 300 explore_delay=-1 travel_delay=-1 small_more = true ## Interface ## default_manual_training = true autofight_stop = 75 # explore_wall_bias = 1 warn_hatches = true rest_wait_both = true ai := autoinscribe ai += (bad|dangerous)_item.*potion:!q ai += (bad|dangerous)_item.*scroll:!r ai += potions? of berserk rage:!q ai += scrolls? of silence:!r ai += staff of (Wucad Mu|conjuration|energy|power|wizardry):!a ai += (large rock|throwing net|curare|of dispersal):=f ai += scrolls? of identify:@r1 ai += potions? of curing:@q1 ai += potions? of heal wounds:@q2 ai += potions? of haste:@q3 ai += scrolls? of teleportation:@r4 ae := autopickup_exceptions # Many of the following swiped from Yermak's rcfile ae += >ring of (poi|resist cor|fli|see) ae += >amulet of (the acr|fai|the gou|gua|har|mag|rag|ref|reg) ae += >ring of (protection from (mag|fire|cold)|mag|stealth|ice|fire|pos|wiz) ae += >wand of rand ae ^= 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 -- Autopickup found body armour of the same kind we're wearing, according -- to conditions (2) and (3) above used for aux slots. 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 add_autopickup_func(pickup_equipment) > < function smartfive() hp, mhp = you.hp() mp, mmp = you.mp() if hp ~= mhp or mp ~= mmp or crawl.yesno("Really wait when healed?", true, "N") then crawl.do_commands({"CMD_REST"}) end end >