# TEAMCAPTAIN canine cloud_status = true easy_confirm = all note_chat_messages = true runrest_ignore_message -= Ru believes you are ready to make a new sacrifice runrest_ignore_message -= Ashenzari invites you to partake force_more_message += You feel your power leaking away. force_more_message += You feel you are being watched by something. force_more_message += You convulse! force_more_message += Your body is wracked with pain! force_more_message += goes berserk force_more_message += blood-rage explore_stop += greedy_pickup,stairs,shops,altars,portals,branches,runed_doors autofight_throw = false use_animations = beam, range, hp, monster_in_sight, pickup, monster, player show_more = false message_colour += mute:You hear a slurping noise message_colour += mute:You hear a distant slurping noise message_colour += mute:You hear a squelching noise autopickup_exceptions += 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("") else crawl.mpr("") 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") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You take " .. hp_difference .. " damage") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You take " .. hp_difference .. " damage") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You take " .. hp_difference .. " damage") else crawl.mpr("You take " .. hp_difference .. " 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") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You regained " .. health_inturn .. " hp") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You regained " .. health_inturn .. " hp") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You regained " .. health_inturn .. " hp") else crawl.mpr("You regained " .. health_inturn .. " hp") end end if (current_hp == max_hp) then 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") elseif current_mp < (max_mp * 0.50) then crawl.mpr("You regained " .. mp_inturn .. " mp") else crawl.mpr("You regained " .. mp_inturn .. " mp") end end if (current_mp == max_mp) then end end --On losing magic if current_mp < previous_mp then if current_mp <= (max_mp / 5) then crawl.mpr("") elseif current_mp <= (max_mp / 2) then crawl.mpr("") else crawl.mpr("") 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 } { function c_answer_prompt(prompt) if prompt:find("near your battlesphere") or prompt:find("near your fire vort") or prompt:find("near your spectral") or prompt:find("near your hellfire mortar") or prompt:find("near your spellspark servitor") or prompt:find("near your walking alembic") or prompt:find("near your lightning spire") or prompt:find("near your phalanx beetle") then return true end end } ######################################################## ## Autotravelling on the edges of shoals is bad ## ######################################################## { function shoals_check() if you.branch() == "Shoals" then crawl.setopt("travel_avoid_terrain = deep water") else crawl.setopt("travel_avoid_terrain = ") end end } ######################################################## ## No tabbing in bad clouds (missing some immunity ## ## exceptions) ## ######################################################## { function cloud_check() cloud_type = view.cloud_at(0, 0) crawl.setopt("autofight_stop = 50") if cloud_type then if (cloud_type == "poison gas" or cloud_type == "noxious fumes") and you.res_poison() == 0 then crawl.mpr("Standing in poison without rpois") crawl.setopt("autofight_stop = 101") end if (cloud_type == "calcifying dust") then crawl.mpr("Standing in calcifying dust") crawl.setopt("autofight_stop = 101") end if (cloud_type == "mutagenic fog") then crawl.mpr("Standing in mutagenic fog") crawl.setopt("autofight_stop = 101") end if (cloud_type == "miasma") then crawl.mpr("Standing in miasma") crawl.setopt("autofight_stop = 101") end end end } #####-- { turn_count = -1 function ready() if you.turns() ~= turn_count then cloud_check() shoals_check() AnnounceDamage() turn_count = you.turns() end end } # language = it # rest_wait_percent = 95 rest_wait_ignore_mp = true # tile_player_tile = tile:mons_TEST_SPAWNER