# ============================================================ # Crownlay.rc — Multi-build DCSS RC # Builds supportés : # - MuNe^Yred (Mummy Necromancer of Yredelemnul) # - GrFi^TSO (Gargoyle Fighter of The Shining One) # - SpHu (Spriggan Hunter) # Détection automatique via Lua # ============================================================ # ------------------------------------ # INCLUDES (modules externes xtahua) # ------------------------------------ include += HDamage.rc # ------------------------------------ # INTERFACE GÉNÉRALE # ------------------------------------ show_more = false auto_more = false default_target = true travel_delay = -1 auto_exclude = true # ------------------------------------ # EXPLORATION # ------------------------------------ explore_auto_rest = false explore_stop = items, stairs, shops, altars, branches, portals, greedy_pickup # ------------------------------------ # SÉCURITÉ GÉNÉRALE # ------------------------------------ autofight_stop = 70 hp_warning = 50 mp_warning = 25 rest_wait_percent = 80 rest_wait_both = false # ------------------------------------ # DÉTECTION AUTOMATIQUE DU BUILD (Lua) # ------------------------------------ -- Récupère la race et le dieu du personnage local function get_build() local race = you.race() or "" local god = you.god() or "" local bg = you.class() or "" return race, god, bg end -- Applique les options selon le build détecté local function apply_build_options() local race, god, bg = get_build() -- MuNe^Yred : Mummy Necromancer of Yredelemnul if string.find(race, "Mummy") then crawl.setopt("autofight_stop = 70") crawl.setopt("hp_warning = 50") crawl.setopt("mp_warning = 30") -- Mummy ne peut pas boire de potions → pas de ramassage auto crawl.setopt("autopickup_exceptions += [RC] Skills MuNe : Necro*, Spell+, Fight+, Dodge-, Stealth-") else crawl.mpr("[RC] RAPPEL MuNe : désactive Dodging+Stealth, active Fighting via 'm'") end crawl.mpr("[RC] Build MuNe^Yred — seuils prudents activés, potions ignorées") -- GrFi^TSO : Gargoyle Fighter of The Shining One elseif string.find(race, "Gargoyle") then crawl.setopt("autofight_stop = 50") crawl.setopt("hp_warning = 40") crawl.setopt("mp_warning = 20") crawl.mpr("[RC] Build détecté : GrFi^TSO — seuils tank activés") -- SpHu : Spriggan Hunter elseif string.find(race, "Spriggan") then crawl.setopt("autofight_stop = 80") crawl.setopt("hp_warning = 60") crawl.setopt("mp_warning = 20") crawl.mpr("[RC] Build détecté : SpHu — seuils fuite activés") else crawl.mpr("[RC] Build non reconnu — options par défaut") end end -- Exécution au chargement apply_build_options() > # ------------------------------------ # AUTOPICKUP # ------------------------------------ autopickup = $?!/%=+ # Exclut les items inutiles autopickup_exceptions += chunks autopickup_exceptions +=