#visible travel speed when auto travel travel_delay = 2 explore_delay = 10 #highlights stabbable monsters stab_highlight = hi:blue may_stab_highlight = hi:brown runrest_ignore_message += blood default_manual_training = true show_more = false autofight_stop = 65 autofight_caught = true #tile_player_tile = playermons #tile_player_tile = tile:mons_ragged_hierophant #tile_player_tile = tile:mons_harold #tile_player_tile = tile:mons_Margery #tile_player_tile = tile:MONS_LERNAEAN_HYDRA #tile_player_tile = tile:mons_killer_klown_2 #tile_player_tile = tile:MONS_erica_swordless #tile_player_tile = tile:MONS_psyche #tile_player_tile = tile:MONS_BAI_SUZHEN #tile_player_tile = tile:MONS_diamond_obelisk ## Pickup aux armour you haven't found yet. ## Also picks up ego/artefact aux armour if you can wear it. ## Doesn't pick up shields or body armour. { local function autopickup(it, name) local class = it.class(true) if it.is_useless then return false end if class == "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 elseif st ~= "body" and st ~= "shield" and (it.artefact or it.branded) then return true end end return nil end add_autopickup_func(autopickup) } #fonts #tile_font_crt_family = Verdana #tile_font_stat_family = Verdana #tile_font_msg_family = Verdana #tile_font_lbl_family = Verdana : local dmg_old_hp = 0 if not randtile_options then randtile_options = { -- Change the tile every N turns turns_change = 5000, -- Which setting for tile_player_tile to use when disabling RandomTiles -- with toggle_random_tile(). Can set to e.g. "normal", "playermons", -- or a fixed mons/tile. disabled_setting = "normal", -- If true, print the what tile we're changing to as if it were a -- god message from our current god or the default_god below when we -- have no god. If false, print a more generic message. god_message = true, default_god = "You", -- Cute speech string templates. In these %g is replaced with the -- god name, %am with the monster's name with an article, and %m -- with the monster's name without an article. god_speech = {["You"] = "%g become %am!", -- Used when the god has no entry ["default"] = "%g says: Become %am!", ["Sif Muna"] = "%g whispers: Become %am.", ["Trog"] = "%g roars: Now %m!!!", ["Xom"] = "%g titters: I'd like %am!", ["Nemelex Xobeh"] = "%g says: Let's draw a card...%m!"}, -- Colour of tile change message. message_colour = "lightblue" } end #include += RandomTiles.rc macros += M + toggle_random_tile() macros += M new_random_tile() < function ready() DmgTrack() random_tile() toggle_random_tile() new_random_tile() end > : function DmgTrack() : local bot_hp, bot_mhp = you.hp() : local dmg_inturn = 0 : local huge_int = 0 : local percent_hp = 0 : local percent_old_hp = 0 : local percent_hp_txt = "--%" : if dmg_old_hp > 0 then : if bot_hp < dmg_old_hp then : dmg_inturn = dmg_old_hp - bot_hp : percent_old_hp = math.ceil((dmg_old_hp*100)/bot_mhp) : percent_hp = math.ceil((bot_hp*100)/bot_mhp) : percent_hp_txt = percent_hp .. "%" : if percent_hp < 30 then : percent_hp_txt = "" .. percent_hp_txt .. "" : elseif percent_hp < 55 then : percent_hp_txt = "" .. percent_hp_txt .. "" : elseif percent_hp < 75 then : percent_hp_txt = "" .. percent_hp_txt .. "" : end : percent_hp_txt = percent_hp_txt .. "(" .. bot_hp .. "hp)" : if dmg_inturn > (bot_hp*0.25) then : huge_dmg_note(dmg_inturn) : crawl.mpr("Huge Dmg: -" .. (percent_old_hp-percent_hp) .. "%(-" .. dmg_inturn .. "hp)" .. " hp: " .. percent_hp_txt) : dmg_old_hp = bot_hp : crawl.flush_prev_message() : crawl.more() : crawl.more_autoclear(true) : else : if dmg_inturn > (bot_hp*0.15) then : crawl.mpr("Damage: -" .. (percent_old_hp-percent_hp) .. "%(-" .. dmg_inturn .. "hp)" .. " hp: " .. percent_hp_txt) : else : crawl.mpr("Damage: -" .. (percent_old_hp-percent_hp) .. "%(-" .. dmg_inturn .. "hp)" .. " hp: " .. percent_hp_txt) : end : end : crawl.flush_prev_message() : end : end : dmg_old_hp = bot_hp : end : function huge_dmg_note(x) : crawl.take_note("Huge Dmg: " .. x .. " Dmg") : end #auxillary attack colors #message_colour += lightmagenta: punch message_colour += green: headbutt message_colour += orange: peck message_colour += light blue: tail-slap message_colour += blue: kick message_colour += light purple: bite message_colour += lightmagenta: lunge message_colour += lightmagenta: spin message_colour += cyan: riposte message_colour += cyan: touch message_colour += lightmagenta: block ####################################