< function ready() AnnounceDamage() end > macros += M 1 za macros += M 2 Zb macros += M 3 zc macros += M 4 zd macros += M p \{9} macros += M - x tile_web_mouse_control = false view_delay = 300 tile_runrest_rate = 700 runrest_ignore_message += (chunks|rotten|transformation|contamination|poison|restored|exhausted|revert|hungry) show_more = false small_more = true bindkey = [;] CMD_TARGET_OBJ_CYCLE_FORWARD #bindkey = [backspace] CMD_AUTOFIGHT wall_jump_move = true hp_warning = 55 hp_colour = 100:green, 99:lightgray, 75:yellow, 50:lightred, 30:red mp_colour = 100:green, 99:lightgray, 75:yellow, 50:lightred, 25:red mp_warning = 45 monster_list_colour = monster_list_colour += friendly:green,neutral:brown,good_neutral:brown monster_list_colour += trivial:darkgrey,easy:lightgrey,tough:yellow monster_list_colour += nasty:lightred # Highlight monsters that have specific dangerous wands/brands monster_list_colour += distortion:lightmagenta monster_list_colour += paralysis:lightmagenta monster_list_colour += banishment:lightmagenta autofight_stop = 66 autofight_wait = true default_manual_training = true explore_stop += (doom|fragile|rotten|petrifying|sluggish|weak|drained) # --- 0.34 DOOM, BANE & DANGEROUS STATUSES --- force_more_message += You feel a sense of doom force_more_message += banes? you force_more_message += It carries a curse of doom force_more_message += You are slowing down force_more_message += You are engulfed in.*(mutagenic|calcifying) force_more_message += You feel.*(dopey|clumsy|weak) force_more_message += You are mesmerised force_more_message += You are enveloped in silence force_more_message += Your surroundings flicker for a moment force_more_message += You feel a wave of despair force_more_message += your magical effects are unravelling force_more_message += take massive damage force_more_message += is.*carrying a wand of force_more_message += (Strange energies|genetic|evolve) force_more_message += (distant|very nearby) force_more_message += You miscast force_more_message += lose consciousness force_more_message += A sentinel's mark forms upon you force_more_message += mighty Pandemonium lord .* resides here force_more_message += hell_effect: tile_show_demon_tier = true force_more_message += (orb of fire|tormentor|fiend|tzitz|hell sentinel|iron golem|cacodemon|neqoxec|ghost moth).*(into view) force_more_message += (27-headed|Agnes|Aizul|Antaeus|Arachne|Asmodeus|Asterion|Azrael|Blork the orc|Boris|Cerebov|Crazy Yiuf|Dispater|Dissolution|Donald|Dowan|Duvessa|Edmund|Ereshkigal|Erica|Erolcha|Eustachio|Fannar|Frances|Francis|Frederick|Gastronok|Geryon|Gloorx Vloq|Grinder|Grum|Harold|Ignacio|Ijyb|Ilsuiw|Jessica|Jorgrun|Jory|Joseph|Josephine|Jozef|Khufu|Kirke|Lamia|Lom Lobon|Louise|Mara|Margery|Maud|Maurice|Menkaure|Mennas|Mnoleg|Murray|Natasha|Nergalle|Nessos|Nikola|Norris|Pikel|Polyphemus|Prince Ribbit|Psyche|Purgy|Roxanne|Rupert|Saint Roka|Sigmund|Snorg|Sojobo|Sonja|Terence|The Lernaean hydra|The royal jelly|The Serpent of Hell|Tiamat|Urug|Vashnia|Wiglaf|Xtahua|'s ghost).*(comes? into view|opens the) ################################ ####### MINI MAP COLORS tile_upstairs_col = #99ff33 tile_downstairs_col = #ff1a1a tile_branchstairs_col = #ff1a1a tile_portal_col = #ff1a1a tile_door_col = #cb6d4d tile_wall_col = #595959 tile_explore_horizon_col = #bfbfbf tile_floor_col = #262626 tile_item_col = #262626 tile_feature_col = #d4be21 tile_plant_col = #5c8745 tile_water_col = #0086b3 tile_deep_water_col = #1f1fed tile_trap_col = #d24dff tile_transporter_col = #ff80bf tile_transporter_landing_col = #59ff89 tile_lava_col = #6f0b00 ################################ # 0.34 INVENTORY UPDATE: # item_slot is deprecated. Use gear_slot for wearables/tools and consumable_shortcut for potions/scrolls. gear_slot ^= identify:+i gear_slot ^= remove curse:+r consumable_shortcut ^= ration:+f consumable_shortcut ^= curing:+q # Talismans (New Shapeshifting System) gear_slot ^= talisman:+T autopickup = $?!+/ autopickup_exceptions ^= 0 then local hp_difference = previous_hp - current_hp -- Only calculate if max HP didn't fluctuate (e.g. changing forms) if not (max_hp_increased or max_hp_decreased) then -- PLAYER TOOK DAMAGE if (current_hp < previous_hp) then -- Color code the damage message 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.") else crawl.mpr("You take " .. hp_difference .. " damage.") end -- DANGER TRIGGER 1: Massive Damage in one hit (>20% max HP) if hp_difference > (max_hp * 0.20) then crawl.mpr("You take massive damage!!") crawl.more() -- PAUSE GAME end -- DANGER TRIGGER 2: Critical HP Threshold (<30% max HP) -- Only force more if we weren't ALREADY critical last turn (prevents spam looping) if current_hp <= (max_hp * 0.30) and previous_hp > (max_hp * 0.30) then crawl.mpr("*** CRITICAL HP WARNING ***") crawl.more() -- PAUSE GAME end end -- PLAYER HEALED if (current_hp > previous_hp) then if (current_hp == max_hp) then crawl.mpr("Full health restored: " .. current_hp .. "") end end -- PLAYER MANA RESTORED if (current_mp > previous_mp) then if (current_mp == max_mp) then crawl.mpr("Full mana restored: " .. current_mp .. "") end end end end previous_hp = current_hp previous_mp = current_mp previous_form = current_form was_berserk_last_turn = you_are_berserk end }