//configuration parameters are explained at https://hustlecastlebot.com/

//configuration order determines execution order. 

// Bot Settings ////////////////////////////////////////
emulator_pid = 0					//0: auto (bot finds the emulator), or process id from windows task manager to use multi-instances of the emulators. Nox, Memu, or My.Games are supported.
telegram_id = 0 					//0: no telegram, or id from the Telegram ChatBOT: HCZCBOT (search HCZCBOT in Telegram and start chat)
alarm_suspicious_activity = 1
emulator_in_background = 1
max_screen_sleep_time = 400
other_device_sleep_time = 120
maintenance_sleep_time = 600
auto_start = 0
ad_duration = 10
////////////////////////////////////////////////////////

// General Configurations //////////////////////////////
repeat_all = 10
max_new_loop_sleep_time = 5
low_health_sleep_time = 30
collect_balloons = 1
collect_resources = 1
take_tool = 1
quick_attack = 1
////////////////////////////////////////////////////////

// Invasions Mode Configurations ///////////////////////
invasions = 1
invasions_low_health_battle = 1
invasions_max_reattack_defeated = 3
////////////////////////////////////////////////////////

// Gem Bay Mode Configurations /////////////////////////
gem_bay = 1
gem_bay_use_food = 1
gem_bay_deploy_previous_squad = 0
gem_bay_collect_reward = 1
gem_bay_max_reattack_defeated = 3
////////////////////////////////////////////////////////

// PvP Mode Configurations /////////////////////////////
repeat_pvp = 10
pvp_max_squad_power_scale = 100
pvp_low_health_battle = 1
change_opponent = 1
pvp_reattack_defeated = 1
pvp_min_gold = 100000
pvp_min_mana = 999999999
pvp_min_wood = 999999999
pvp_min_iron = 999999999
pvp_min_mithril = 4000
////////////////////////////////////////////////////////

// Portal Mode Configurations //////////////////////////
repeat_portal = 10
max_portal_level = 125
force_max_level = 0
portal_low_health_battle = 1
use_portal_spells = 1
////////////////////////////////////////////////////////

// Colosseum Mode Configurations ///////////////////////
colosseum = 1
colosseum_max_squad_power_scale = 100
colosseum_max_reattack_defeated = 1
colosseum_deploy_previous_squad = 0
////////////////////////////////////////////////////////

// Lighthouse Mode Configurations //////////////////////
lighthouse = 1
lighthouse_max_squad_power_scale = 100
lighthouse_low_health_battle = 1
lighthouse_max_reattack_defeated = 1
////////////////////////////////////////////////////////

// Tournament Mode Configurations //////////////////////
tournament_repeat_ticket = 10
tournament_repeat_food = 10
use_ticket_first = 1
tournament_strategy = 7
max_squad_power_scale = 100
tournament_collect_reward = 1
tournament_deploy_previous_squad = 0
max_new_tournament_sleep_time = 10
////////////////////////////////////////////////////////

// Dark Cathedral Configurations ///////////////////////
dark_cathedral_repeat_key = 10
dark_cathedral_repeat_food = 10
use_key_first = 1
difficulty = 1				// 1: Normal, 2: Hard, 3: Nightmare
dark_cathedral_deploy_previous_squad = 0
blessing_priority = cmwa	// c: Common, w: Warrior, m: Mage, a: Archer, must be 4 letter, no spaces
altar_sacrifice = 3			// 0: move on, 1,2,3: No. of fighters to sacrifice 
altar_max_sacrifice = 8		
game_risk = 1				// 0: move on, 1: take risk
camp = 2					// 1: heal, 2: resurrect, 3: reward
max_new_dark_cathedral_sleep_time = 10
dark_cathedral_max_reattack_defeated = 3
////////////////////////////////////////////////////////

// Dungeon Mode Configurations /////////////////////////
dungeon_repeat_torch = 10
dungeon_repeat_food = 10
use_torch_first = 1
dungeon_deploy_previous_squad = 0
teammate = 1				// 1: random, 2: send invite, 3: accept invite
friend_squad_power = 0
combat_deploy_right = 0
time_limit = 5
max_new_dungeon_sleep_time = 10
dungeon_max_reattack_defeated = 3
////////////////////////////////////////////////////////

// Tower Mode Configurations ///////////////////////////
tower = 1
tower_deploy_previous_squad = 1
////////////////////////////////////////////////////////

// Island Event Mode Configurations ////////////////////
island_event = 1
island_diamond_reset = 0
island_low_health_battle = 1
island_max_reattack_defeated = 3
////////////////////////////////////////////////////////