#include = safe_move_shift.txt #force_more_message += You encounter monster_alert += tough autopickup_exceptions += ".."OUCH! You took "..-diff.." damage"..". " elseif diff > 0 then return "".."You restored "..diff.." hp"..". " end return "" end local prev_hp = you.hp() local prev_mp = you.mp() local function color_str(color, msg) return "<"..color..">"..msg.."" end function ready() local curr_hp, max_hp = you.hp() if prev_hp ~= curr_hp then local diff = curr_hp - prev_hp local ratio = 100 * diff / max_hp if ratio < -10 then crawl.mpr( color_str("lightred", "OUCH! You took "..-diff.." damage. ") .. color_str("red", prev_hp.." -> "..curr_hp)) elseif diff > 3 then crawl.mpr( color_str("lightgreen", "Recovered "..diff.." HP. ") .. color_str("green", prev_hp.." -> "..curr_hp)) end end local curr_mp, max_mp = you.mp() if prev_mp ~= curr_mp then local diff = curr_mp - prev_mp if diff > 2 then crawl.mpr( color_str("lightblue", "Restored "..diff.." mp. ") .. color_str("blue", "Now at: "..curr_mp.."/"..max_mp)) end end prev_hp = curr_hp prev_mp = curr_mp end } : if you.race() == "Naga" or you.race() == "Armataur" then autopickup_exceptions +=