# TEAMCAPTAIN ProzacElf # currently, most recent version should be at CKO or CBRO # 2021 Aug 07 # TODO: change player colour in ready() based on HP. include += arcee.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 return 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 + 500 crawl.dump_char() end AnnounceDamage() -- target_skill() --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 }