From f4ceb8e8e5cbb35892ec42e4c30703bec2d20e52 Mon Sep 17 00:00:00 2001 From: Kyle Coburn Date: Fri, 3 Apr 2015 22:38:48 -0700 Subject: [PATCH] Improve support for disabling reset for time mode --- ai/strategies.lua | 4 ++++ main.lua | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ai/strategies.lua b/ai/strategies.lua index 3b681b6..9df11c0 100644 --- a/ai/strategies.lua +++ b/ai/strategies.lua @@ -107,6 +107,7 @@ local timeRequirements = { blue = function() return 108.2 end, + } -- RISK/RESET @@ -179,6 +180,9 @@ local function getTimeRequirement(name) end local function setYolo(name) + if not RESET_FOR_TIME then + return false + end local minimumTime = getTimeRequirement(name) local shouldYolo = overMinute(minimumTime) if yolo ~= shouldYolo then diff --git a/main.lua b/main.lua index 275a3ab..5d83df9 100644 --- a/main.lua +++ b/main.lua @@ -99,10 +99,10 @@ end print("Welcome to PokeBot "..GAME_NAME.." version "..VERSION) STREAMING_MODE = not walk.init() -if STREAMING_MODE then +if INTERNAL and STREAMING_MODE then RESET_FOR_TIME = true end --- STREAMING_MODE = false --TODO disable + if CUSTOM_SEED then client.reboot_core() else