Update tweet requirements
This commit is contained in:
parent
0c11edd40a
commit
55f13638d3
|
@ -90,7 +90,7 @@ function Strategies.reset(reason, explanation, extra, wait)
|
||||||
end
|
end
|
||||||
resetMessage = resetMessage..separator.." "..explanation.."."
|
resetMessage = resetMessage..separator.." "..explanation.."."
|
||||||
|
|
||||||
if not Data.yellow and (Strategies.updates.misty or Strategies.updates.surge) and Strategies.deepRun then
|
if Strategies.updates.victory and not Control.yolo then
|
||||||
Strategies.tweetProgress(Utils.capitalize(resetMessage))
|
Strategies.tweetProgress(Utils.capitalize(resetMessage))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -147,9 +147,7 @@ end
|
||||||
|
|
||||||
function Strategies.setYolo(name, forced)
|
function Strategies.setYolo(name, forced)
|
||||||
local minimumTime = Strategies.getTimeRequirement(name)
|
local minimumTime = Strategies.getTimeRequirement(name)
|
||||||
if not minimumTime or (not forced and not RESET_FOR_TIME) then
|
if minimumTime and (forced or RESET_FOR_TIME) then
|
||||||
return false
|
|
||||||
end
|
|
||||||
local shouldYolo = BEAST_MODE or Strategies.overMinute(minimumTime)
|
local shouldYolo = BEAST_MODE or Strategies.overMinute(minimumTime)
|
||||||
if Control.yolo ~= shouldYolo then
|
if Control.yolo ~= shouldYolo then
|
||||||
Control.yolo = shouldYolo
|
Control.yolo = shouldYolo
|
||||||
|
@ -162,9 +160,15 @@ function Strategies.setYolo(name, forced)
|
||||||
end
|
end
|
||||||
print("YOLO "..prefix.."abled at "..Control.areaName)
|
print("YOLO "..prefix.."abled at "..Control.areaName)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return Control.yolo
|
return Control.yolo
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Strategies.paceMessage(time)
|
||||||
|
Strategies.pbPace = not Strategies.overMinute(time)
|
||||||
|
return Utils.elapsedTime(), Strategies.pbPace and " (PB pace)" or ""
|
||||||
|
end
|
||||||
|
|
||||||
-- HELPERS
|
-- HELPERS
|
||||||
|
|
||||||
function Strategies.tweetProgress(message, progress)
|
function Strategies.tweetProgress(message, progress)
|
||||||
|
|
Loading…
Reference in New Issue