# TEAMCAPTAIN n1000 # currently, most recent version should be at CBRO, then CSZO # 2014 Aug 11 # TODO: new spells?, autopickup: neg armour, shields include += hugedmg.rc # Crawl Init file ##### 1- Starting Screen ############################################ # restart_after_game = true default_manual_training = true ##### 2- File System ############################################### # ##### 3- Interface ################################################# # ##### 3-a Picking up and Dropping ############### # autopickup = $?!:"/%\ ae := autopickup_exceptions ae += armour_plus(cur) then return true end else if armour_plus(cur) < 0 then return true end end elseif st == "body" then local cur = items.equipped_at("armour") if cur == nil then return false end if cur.name("qual") ~= it.name("qual") then return false end if it.branded then return true end if cur.branded or cur.artefact then return false end if armour_plus(it) ~= nil then if armour_plus(it) > armour_plus(cur) then return true end else if armour_plus(cur) < 0 then return true end end end end if class == "missile" then if name:find("curare") then return true end end return false end add_autopickup_func(autopickup) } # Skill menu at game start by rwbarton # needs to preserve ready for hugedmg (rchandra) # now includes autodump from qw { local dump_count = you.turns() local need_skills_opened = true local oldready = ready function ready() if you.turns() == 0 and need_skills_opened then need_skills_opened = false crawl.sendkeys("m") end if you.turns() >= dump_count then dump_count = dump_count+1000 crawl.dump_char() end oldready() end } #I bind the following functions to shift-tab and tab, respectively. #assisted by |amethyst { function autofight_throw() AUTOFIGHT_THROW = true hit_closest_nomove() end function autofight_nothrow() AUTOFIGHT_THROW = false hit_closest_nomove() end } { function testing_lua() crawl.mpr(dgnlvl.level_name()) end }