https://github.com/crawl/crawl/blob/master/crawl-ref/docs/options_guide.txt #species += Ds #background += random #weapon += random #combo += OpSh #combo += OpWn ############# # Autofight # ############# show_more = false autofight_stop = 60 tile_viewport_scale = 1.0 tile_map_scale = 0.7 note_chat_messages=true dump_message_count = 100 ########### #INTERFASE# ########### #tile_font_crt_family = DejaVu Sans Mono #tile_font_stat_family = DejaVu Sans Mono #tile_font_msg_family = DejaVu Sans Mono #tile_font_lbl_family = DejaVu Sans Mono tile_font_crt_family = Lucida Console tile_font_stat_family = Lucida Console tile_font_msg_family = Lucida Console tile_font_lbl_family = Lucida Console #tile_map_pixels = 4 #always_show_zot = true warn_hatches = true allow_extended_colours=false no_dark_brand=false bold_brightens_foreground=true blink_brightens_background=false best_effort_brighten_background=false tile_web_mouse_control = false #tile_menu_icons = false #language = ru display_char = wall:x2588, floor x2022 display_char = floor_magic : xb7, door_closed : x25b2 display_char = door_open : x2206, wall_magic : x2593, arch : x2229 display_char = grate : x2261, tree : x2663, altar : x2302, fountain : x03a8 display_char = rune : x03c6 #mon_glyph = player : cyan @ #monster_list_colour += friendly:green,neutral:brown #monster_list_colour += good_neutral:brown,strict_neutral:brown #monster_list_colour += trivial:darkgrey,easy:lightgrey #monster_list_colour += tough:yellow,nasty:lightred ########## # Travel # ########## travel_delay = -1 explore_delay = -1 show_travel_trail = true view_delay = 300 allow_self_target = no easy_confirm = all #confirm_butcher = never ##################################################################### autofight_throw_nomove = true #жми шифт+таб чтобы бросить камень или любую другую бросаемую хрень ##################################################################### autofight_caught = true autofight_wait = true rest_wait_both = true explore_auto_rest = true allow_self_target = no #Переключатель time/turn #show_game_time = false animate_equip_bar = true #explore_stop += stairs,shops,altars,gates runrest_ignore_poison = 2:10 hp_colour = 100:green, 75:yellow, 50:red, 25:lightred mp_colour = 100:green, 75:yellow, 50:red, 25:lightred equip_unequip = true default_manual_training = true auto_butcher = true easy_eat_chunks = true auto_eat_chunks = true show_god_gift = yes assign_item_slot = backward cloud_status = true #не нашел справку по этой строке, может она вообще не работает #pickup_mode = multi stat_colour = 7:red, 3:lightred skill_fokus = true hp_warning = 45 auto_sacrifice=true #тоже не помню уже зачем оно, но пусть так останется пока #interrupt_memorise -= hp_loss ######### #ALIASES# ######### ae := autopickup_exceptions ai := autoinscribe as := ability_slot item := item_glyph is := item_slot menu := menu_colour more := force_more_message ss := spell_slot stop := runrest_stop_message msc := message_colour ai += curing:@q1 ai += potion of heal wounds:@q2 ai += potion of haste:@q3, ai += potion of might:@q4 ai += potion of resistance:@q5 ai += identify:@r1 ai += scrolls of teleportation:!r, @r2 ai += scrolls of blinking:!r, @r3 ai += distortion:!w ai += of faith:!P ai += mutation:!q ai += potion berserk rage:!q ai += large rock:!d, @Q4 ai += throwing net: !d , @Q1 ai += boomerangs: @Q3 ai += javelins: @Q3 ai += scroll of silence:!r ai += scroll of revelation:!r ai += wand of flame:@v1 ai += wand of paralysis:@v3 ai += wand of digging:@v2 ae += dangerous_item ae += ############### # Damage Calc # ############### < local previous_hp = 0 local previous_mp = 0 local previous_form = "" local was_berserk_last_turn = false function AnnounceDamage() local current_hp, max_hp = you.hp() local current_mp, max_mp = you.mp() --Things that increase hp/mp temporarily really mess with this local current_form = you.transform() local you_are_berserk = you.berserk() local max_hp_increased = false local max_hp_decreased = false if (current_form ~= previous_form) then if (previous_form:find("dragon") or previous_form:find("statue") or previous_form:find("tree") or previous_form:find("ice")) then max_hp_decreased = true elseif (current_form:find("dragon") or current_form:find("statue") or current_form:find("tree") or current_form:find("ice")) then max_hp_increased = true end end if (was_berserk_last_turn and not you_are_berserk) then max_hp_decreased = true elseif (you_are_berserk and not was_berserk_last_turn) then max_hp_increased = true end --crawl.mpr(string.format("previous_form is: %s", previous_form)) --crawl.mpr(string.format("current_form is: %s", current_form)) --crawl.mpr(string.format("max_hp_increased is: %s", max_hp_increased and "True" or "False")) --crawl.mpr(string.format("max_hp_decreased is: %s", max_hp_decreased and "True" or "False")) --crawl.mpr(string:format("you_are_berserk is: %s", you_are_berserk and "True" or "False")) --crawl.mpr(string:format("was_berserk_last_turn is: %s", was_berserk_last_turn and "True" or "False")) --Skips message on initializing game if previous_hp > 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("You now have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You now have " .. current_hp .. "/" .. max_hp .. " hp.") 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, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") end if hp_difference > (max_hp * 0.20) then crawl.mpr("o_OOPS!! MASSIVE 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, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") end end if (current_hp == max_hp) then crawl.mpr("Health restored: " .. current_hp .. "") 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, and now have " .. current_mp .. "/" .. max_mp .. " mp.") elseif current_mp < (max_mp * 0.50) then crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") else crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") end end if (current_mp == max_mp) then crawl.mpr("MP restored: " .. current_mp .. "") end end --On losing magic if current_mp < previous_mp then if current_mp <= (max_mp / 5) then crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") elseif current_mp <= (max_mp / 2) then crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") else crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") 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 > #################### #AUTOPIKUP FUNCTION# #################### { add_autopickup_func(function(it, name) if it.is_useless then return false end if name:find("curare") then return true end if name:find("dispersal") and (name:find("dart") or name:find("tomahawk")) then return true end if name:find("throwing net") then return true end local class = it.class(true) local armour_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots", body="Armour", shield="Shield"} if (class == "armour") then sub_type = it.subtype() equipped_item = items.equipped_at(armour_slots[sub_type]) if (sub_type == "cloak") or (sub_type == "helmet") or (sub_type == "gloves") or (sub_type == "boots") then if not equipped_item then return true else return it.artefact or it.branded or it.ego end end if (sub_type == "body") then if equipped_item then local armourname = equipped_item.name() if equipped_item.artefact or equipped_item.branded or equipped_item.ego or (equipped_item.plus > 2) or armourname:find("dragon") or armourname:find("troll") then return it.artefact else return it.artefact or it.branded or it.ego end end return true end if (sub_type == "shield") then if equipped_item then return it.artefact or it.branded or it.ego end end end end) }