Support automatic rod switching

This commit is contained in:
BruceChen 2022-09-12 18:02:46 +08:00
parent 949126c9cb
commit cb22387008
4 changed files with 98 additions and 92 deletions

View file

@ -208,6 +208,8 @@ namespace MinecraftClient
public static double AutoFishing_FishingTimeout = 600.0;
public static double AutoFishing_FishingHookThreshold = 0.2;
public static double AutoFishing_FishingCastDelay = 0.4;
public static double AutoFishing_DurabilityLimit = 2;
public static bool AutoFishing_AutoRodSwitch = true;
public static double[,]? AutoFishing_Location = null;
//Auto Eating
@ -721,8 +723,10 @@ namespace MinecraftClient
case "fishing_timeout": AutoFishing_FishingTimeout = str2double(argValue); return true;
case "fishing_hook_threshold": AutoFishing_FishingHookThreshold = str2double(argValue); return true;
case "fishing_cast_delay": AutoFishing_FishingCastDelay = str2double(argValue); return true;
case "durability_limit": AutoFishing_DurabilityLimit = str2int(argValue); return true;
case "auto_rod_switch": AutoFishing_AutoRodSwitch = str2bool(argValue); return true;
case "location": AutoFishing_Location = str2locationList(argValue); return true;
}
}
break;
case Section.AutoEat: