# TEAMCAPTAIN Ge0ff ################################## ##### Travel and Exploration ##### ################################## travel_delay = -1 explore_delay = -1 rest_delay = -1 view_delay = 500 show_travel_trail = true travel_key_stop = true runrest_safe_poison = 2:10 runrest_ignore_monster += ^butterfly$:1 runrest_ignore_message += contamination has completely runrest_ignore_message += rod.*has recharged runrest_ignore_message += your breath back runrest_ignore_message += Your transformation is almost over runrest_ignore_message += Your transformation has ended runrest_ignore_message += are no longer poisoned runrest_ignore_message += feel a strong urge runrest_ignore_message += finish eating runrest_ignore_message += feel your anger subside runrest_ignore_message += feel yourself speed up runrest_ignore_message += feel less exhausted runrest_stop_message += starting to lose your buoyancy runrest_stop_message += back to life runrest_stop_message += is no longer charmed runrest_stop_message += (starving|devoid of blood) runrest_stop_message += wrath finds you runrest_stop_message += lose consciousness runrest_stop_message += hell_effect: : if you.god() == "Xom" then runrest_stop_message += god: : else runrest_ignore_message += god: : end rest_wait_both = true auto_sacrifice = true ############################ ##### General Gameplay ##### ############################ default_manual_training = true show_uncursed = true easy_confirm = all confirm_butcher = auto allow_self_target = prompt easy_eat_chunks = true auto_eat_chunks = true : if you.race() == "Deep Dwarf" then autofight_stop = 0 : else autofight_stop = 30 : end autofight_warning = 50 easy_door = true warn_hatches = true ################### ##### Colours ##### ################### # These should match the item_glyph colours exactly when possible. # For menu_colour, the first match ignores subsequent matches. menu := menu_colour menu = # Many of the entries below come from dat/defaults/menu_colours.txt, # which we have to duplicate here since we want only some of the # entries from that file. menu += notes:white:Reached XP level ### General Inventory ### # Items currently not affecting you. menu += darkgrey:(melded) # Items disliked by your god. menu += red:forbidden # Useless items, comes here to override artefacts etc. menu += darkgrey:.*useless.* # Handle cursed and equipped items early to override other colour settings. menu += lightred:.*equipped.* cursed menu += red: (a|the) cursed menu += inventory:lightgreen:.*equipped.* # Colouring of autoinscribed god gifts menu += pickup:lightred:god gift # Highlight (partly) selected items menu_colour += inventory:white:\w \+\s menu_colour += inventory:white:\w \#\s ### Food ### # Color chunks, put ordinary ones on lightgrey. menu += red:evil_eating.*chunk menu += blue:mutagenic.*chunk menu += darkgrey:inedible menu += lightgrey: +(chunks?$|chunks? +) # These are analogous to chunks : if you.race() == "Vampire" then menu += lightgrey:potions? of blood : end # Other food menu += brown:fruit menu += yellow:(pizza|jerky|jerkies) menu += green:royal jell menu += lightgreen:bread ration menu += lightred:meat ration ### Potions ### # Generally harmful menu += blue:potions? of.*(lignification|(?" .. msg .. "") end end function init_force_mores() for i,v in ipairs(fm_patterns) do active_fm[#active_fm + 1] = false end end function update_force_mores() local activated = {} local deactivated = {} local hp, maxhp = you.hp() for i,v in ipairs(fm_patterns) do local msg = "(" .. v.pattern .. ").*into view" local action = nil local fm_name = v.pattern if v.name then fm_name = v.name end if not v.cond and not active_fm[i] then action = "+" elseif v.cond == "xl" then if active_fm[i] and you.xl() >= v.cutoff then action = "-" elseif not active_fm[i] and you.xl() < v.cutoff then action = "+" end elseif v.cond == "maxhp" then if active_fm[i] and maxhp >= v.cutoff then action = "-" elseif not active_fm[i] and maxhp < v.cutoff then action = "+" end end if action == "+" then activated[#activated + 1] = fm_name elseif action == "-" then deactivated[#deactivated + 1] = fm_name end if action ~= nil then local opt = "force_more_message " .. action .. "= " .. msg crawl.setopt(opt) active_fm[i] = not active_fm[i] end end if #activated > 0 and notify_fm then mpr("Activating force_mores: " .. table.concat(activated, ", ")) end if #deactivated > 0 and notify_fm then mpr("Deactivating force_mores: " .. table.concat(deactivated, ", ")) end end local last_turn = nil function force_mores() if last_turn ~= you.turns() then update_force_mores() last_turn = you.turns() end end init_force_mores() ------------------------- ---- End force_mores ---- ------------------------- } { function ready() -- Taken from github.com/gammafunk/dcss-rc force_mores() end }