# TEAMCAPTAIN tasonir ##### Crawl Init file ############################################### # For descriptions of all options, as well as some more in-depth information # on setting them, consult the file # https://github.com/crawl/crawl/blob/master/crawl-ref/docs/options_guide.txt ##### Starting Screen ############################################### default_manual_training = true ##### Picking up and Dropping ####################################### autopickup = $?!:"/%(\} autopickup_exceptions += useless_item, qty autofight_stop = 50 autofight_fire_stop = true ##### Messages and Display Enhancements ############################# hp_warning = 25 mp_warning = 25 show_game_turns = false more := force_more_message more += finished your manual more += is wielding a.* of distortion more += You are starting to lose your buoyancy more += is no longer charmed more += skill increases to more += You don't know any spells flash_screen_message += is wielding a.* of distortion ##### Items and Kill List ########################################### dump_book_spells = false # Opens skill menu at the beginning of the game < local need_skills_opened = true function OpenSkills() if you.turns() == 0 and need_skills_opened then need_skills_opened = false crawl.sendkeys("m") end end > < function ready() OpenSkills() end > < local LOS = 7 function initialize_monster_array() if not monster_array_init then monster_array = {} local x for x = -LOS, LOS do monster_array[x] = {} end monster_array_init = true end end function update_monster_array() initialize_monster_array() local x,y for x = -LOS, LOS do for y = -LOS, LOS do monster_array[x][y] = monster.get_monster_at(x, y) end end end function shimmer_inrange() for x = -LOS, LOS do for y = -LOS, LOS do if view.invisible_monster(x, y) then return true, x, y end end end return false end function danger() if not options.autopick_on then return true end update_monster_array() local danger = false for x = -LOS, LOS do for y = -LOS, LOS do local m = monster_array[x][y] if m and not m:is_safe() then danger = true end end end if (shimmer_inrange()) then return true end return danger end function autoPlay() if false then hit_closest() else crawl.sendkeys("o") end end > { add_autopickup_func(function(it, name) if it.is_useless then return end if it.class(true) == "armour" then local good_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots"} st, _ = it.subtype() if good_slots[st] ~= nil and items.equipped_at(good_slots[st]) == nil then return true end end end) }