############################################################ # 1. MAXIMIZE THE COMBAT VIEWPORT (TILES & WEBTILES) ############################################################ tile_viewport_scale = 1.35 view_lock = true center_on_scroll = true view_max_width = 41 view_max_height = 25 ############################################################ # 2. MINIMIZE / STREAMLINE SIDEBAR & SECONDARY PANELS ############################################################ tile_layout_priority = monster, spell, minimap tile_map_pixels = 3 tile_sidebar_pixels = 24 tile_min_stat_width_characters = 36 ############################################################ # 3. COMPACT TEXT, FONTS & MESSAGE LOG ############################################################ tile_font_stat_size = 14 tile_font_msg_size = 13 tile_font_tip_size = 14 tile_font_lbl_size = 13 msg_min_height = 5 msg_max_height = 6 msg_condense_repeats = true msg_condense_short = true tile_force_overlay = false ############################################################ # 4. XOM & MUTATION COLORING + RAINBOW LUA HOOK ############################################################ menu_colour ^= notes:lightmagenta:Xom message_colour += darkgrey:god:.* message_colour += darkgrey:mutation:.* { local rainbow_cols = {"lightred", "yellow", "lightgreen", "lightcyan", "lightblue", "lightmagenta"} local function rainbowify(str) local clean = str:gsub("<[^>]+>", "") local out = {} local idx = 1 for i = 1, #clean do local ch = clean:sub(i, i) if ch:match("%s") then out[#out + 1] = ch else local col = rainbow_cols[idx] out[#out + 1] = "<" .. col .. ">" .. ch .. "" idx = (idx % #rainbow_cols) + 1 end end return table.concat(out) end local in_xom_hook = false function c_message(text, channel) if in_xom_hook then return end local plain = text:gsub("<[^>]+>", "") local is_xom_god = (you.god() == "Xom") local is_xom_msg = (channel == "god" and is_xom_god) or plain:find("Xom") or plain:find("Chaos Blessing") or plain:find("aspiring flesh") local is_mut_msg = (channel == "mutation") or plain:find("You feel") or plain:find("Your body") or plain:find("You mutate") or plain:find("genetic") or plain:find("mutation") or plain:find("unstable") if is_xom_msg or is_mut_msg then in_xom_hook = true crawl.formatted_mpr(rainbowify(plain), "plain") in_xom_hook = false end end }