{
function announce_damage(previous_HP)
local current_HP, max_HP = you.hp()
if previous_HP ~= current_HP then
local hp_diff = current_HP - previous_HP
local percent = math.abs(hp_diff) * 100 / max_HP
if hp_diff < 0 and percent > 20 then -- issue warning if hit by more than 20% of max hp
crawl.mpr("MASSIVE ("..math.abs(hp_diff)..") damage taken!", "danger")
crawl.more()
end
end
return current_HP
end
hp = you.hp()
function ready()
hp = announce_damage(hp)
end
}
show_more = false
explore_delay=-1
travel_delay=-1
show_travel_trail=false
travel_key_stop = false
easy_confirm = all
use_animations = false
tile_misc_anim = false
tile_realtime_anim = true
default_manual_training=true
autofight_caught = true
# warn_hatches = true
autofight_stop = 27
explore_auto_rest = true
rest_wait_percent = 100
ability_slot ^=Heroism:b
ability_slot ^=Finesse:d
#item_slot ^= (ration):e
item_slot ^= potions? of curing:q
item_slot ^= potions? of heal wounds:w
item_slot ^= potions? of haste:h
item_slot ^= potions? of might:d
item_slot ^= potions? of resistance:n
item_slot ^= scrolls? of identify:r
item_slot ^= scrolls? of remove curse:x
item_slot ^= scrolls? of teleportation:t
item_slot ^= scrolls? of blinking:z
item_slot ^= wand of digging:v
autopickup_exceptions -= dangerous_item
autopickup_exceptions += >amnesia
#autopickup_exceptions += >book
# autopickup_exceptions += >ring of fire
# autopickup_exceptions += >ring of protection from cold
autopickup_exceptions += >ring of ice
autopickup_exceptions += >ring of positive energy
autopickup_exceptions += >ring of magical power
autopickup_exceptions += >ring of wizardry
autopickup_exceptions += >ring of dexterity
autopickup_exceptions += >ring of intelligence
autopickup_exceptions += >ring of stealth
autopickup_exceptions += >potions? of stabbing
autopickup_exceptions += >potions? of brilliance
#autopickup_exceptions += >wand of disintegration
autopickup_exceptions += >wand of flame
# autopickup_exceptions += >wand of iceblast
#autopickup_exceptions += >wand of paralysis
autopickup_exceptions += >wand of polymorph
autopickup_exceptions += >wand of random effects
autopickup_exceptions += >scrolls? of torment
autopickup_exceptions += >scrolls? of vulnerability
autopickup_exceptions += >condenser vane
autopickup_exceptions += >tin of tremorstones
autopickup_exceptions +=