# TEAMCAPTAIN candlesan # New race uses zot clock, this makes it visible. Normally it is only visible when it is running low. always_show_zot = true # turn off autotraining of skills default_manual_training = true # Zoom around the map, but leave a trail to reduce confusion travel_delay = 0 explore_delay = -1 explore_stop -= stairs greedy_visited_item_stack = false autofight_stop = 50 # Turn off annoying show more, there are pauses for everything important though. show_more = false # autofight_throw = true # Don't rest to full before autoexploring # explore_auto_rest = false ## Show exact damage taken each turn ##include = HDamage.rc # Skill menu at game start { local need_skills_opened = true function ready() if you.turns() == 0 and need_skills_opened then need_skills_opened = false crawl.sendkeys("m") end if crawl.messages(5):find("You enter a gauntlet") and (you.god()=="Lugonu" or you.god()=="Fedhas") then crawl.mpr("Remember to use Corruption!") end AnnounceDamage() end } # pickup armor you haven't seen yet { 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) } ae := autopickup_exceptions # nullifying the effect of the most annoying 0.24 commit: ae += >ring of (poi|resist cor|fli|see) ae += >amulet of (the acr|fai|the gou|gua|har|mag|rag|ref|reg) ae += >scrolls? of (amn|vuln|noise) ae += >potions? of ligni ae += >wand of rand ae += >ring of (protection from (mag|fire|cold)|mag|stealth|ice|fire|pos|wiz) ae ^= staff of as := ability_slot as ^= End Transfo: h as ^= Evoke Invis: i as ^= Turn Visibl: j as ^= Evoke Fligh: l as ^= Fly: l as ^= Stop Flying: m as ^= Evoke Telep: t as ^= Spit: q as ^= Breath: q is := item_slot #taken: cfglmoqrstuvwxyzABDEFGHIJMNOPQRSTUVWXYZ is ^= (^|[0-9] )boomerang:t is ^= silver boomerang:u is ^= (^|[0-9] )javelin:v is ^= large rock:w is ^= silver javelin:x is ^= curare:F is ^= datura:G is ^= atropa:J is ^= dispersal:K is ^= ring of protection from fire:f is ^= ring of protection from cold:c is ^= ring of protection from magic:m is ^= ring of poison resistance:o is ^= ring of see invisible:s is ^= ring of slaying:y is ^= of resist corrosion:g is ^= amulet of regeneration:r is ^= blowgun:q is ^= throwing net:Z is ^= scroll of remove curse:W is ^= scroll of identify:R is ^= scroll of teleportation:T is ^= scroll of blinking:B is ^= scroll of magic map:M is ^= potion of flight:l is ^= potion of curing:Q is ^= potion of haste:H is ^= wand of acid:A is ^= wand of digg:D is ^= wand of ensl:E is ^= wand of iceb:I is ^= wand of clou:O is ^= wand of para:P is ^= wand of scat:S is ^= wand of flam:V is ^= food:z is ^= box:X is ^= sack:N is ^= phial:U is ^= lamp:Y is ^= tin of t:Y # pickup ammos of all types ae += 0 then local hp_difference = previous_hp - current_hp local mp_difference = previous_mp - current_mp if max_hp_increased or max_hp_decreased then if max_hp_increased then crawl.mpr("You now have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You now have " .. current_hp .. "/" .. max_hp .. " hp.") end else --On losing health if (current_hp < previous_hp) then if current_hp <= (max_hp * 0.30) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") end if hp_difference > (max_hp * 0.20) then crawl.mpr("MASSIVE DAMAGE!!") end end --On gaining more than 1 health if (current_hp > previous_hp) then --Removes the negative sign local health_inturn = (0 - hp_difference) if (health_inturn > 1) and not (current_hp == max_hp) then if current_hp <= (max_hp * 0.30) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") end end if (current_hp == max_hp) then crawl.mpr("Health restored: " .. current_hp .. "") end end --On gaining more than 1 magic if (current_mp > previous_mp) then --Removes the negative sign local mp_inturn = (0 - mp_difference) if (mp_inturn > 1) and not (current_mp == max_mp) then if current_mp < (max_mp * 0.25) then crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") elseif current_mp < (max_mp * 0.50) then crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") else crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") end end if (current_mp == max_mp) then crawl.mpr("MP restored: " .. current_mp .. "") end end --On losing magic if current_mp < previous_mp then if current_mp <= (max_mp / 5) then crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") elseif current_mp <= (max_mp / 2) then crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") else crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") end end end end --Set previous hp/mp and form at end of turn previous_hp = current_hp previous_mp = current_mp previous_form = current_form was_berserk_last_turn = you_are_berserk end >