Improve support for disabling reset for time mode
This commit is contained in:
parent
6a4824084e
commit
f4ceb8e8e5
|
@ -107,6 +107,7 @@ local timeRequirements = {
|
||||||
blue = function()
|
blue = function()
|
||||||
return 108.2
|
return 108.2
|
||||||
end,
|
end,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- RISK/RESET
|
-- RISK/RESET
|
||||||
|
@ -179,6 +180,9 @@ local function getTimeRequirement(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function setYolo(name)
|
local function setYolo(name)
|
||||||
|
if not RESET_FOR_TIME then
|
||||||
|
return false
|
||||||
|
end
|
||||||
local minimumTime = getTimeRequirement(name)
|
local minimumTime = getTimeRequirement(name)
|
||||||
local shouldYolo = overMinute(minimumTime)
|
local shouldYolo = overMinute(minimumTime)
|
||||||
if yolo ~= shouldYolo then
|
if yolo ~= shouldYolo then
|
||||||
|
|
4
main.lua
4
main.lua
|
@ -99,10 +99,10 @@ end
|
||||||
|
|
||||||
print("Welcome to PokeBot "..GAME_NAME.." version "..VERSION)
|
print("Welcome to PokeBot "..GAME_NAME.." version "..VERSION)
|
||||||
STREAMING_MODE = not walk.init()
|
STREAMING_MODE = not walk.init()
|
||||||
if STREAMING_MODE then
|
if INTERNAL and STREAMING_MODE then
|
||||||
RESET_FOR_TIME = true
|
RESET_FOR_TIME = true
|
||||||
end
|
end
|
||||||
-- STREAMING_MODE = false --TODO disable
|
|
||||||
if CUSTOM_SEED then
|
if CUSTOM_SEED then
|
||||||
client.reboot_core()
|
client.reboot_core()
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue