Require a fast run to take the extra tree potion

This commit is contained in:
Kyle Coburn 2015-04-22 01:20:58 -07:00
parent 7e93f8815c
commit f506116aea
1 changed files with 12 additions and 1 deletions

View File

@ -41,6 +41,13 @@ local function timeForStats()
return timeBonus
end
local function timeSaveFor(pokemon)
if Pokemon.inParty(pokemon) then
return pokemon == "paras" and 0.75 or 0.5
end
return 0
end
Strategies.timeRequirements = {
bulbasaur = function()
@ -55,6 +62,10 @@ Strategies.timeRequirements = {
return timeLimit
end,
oldMan = function()
return 6.75 + timeSaveFor("spearow")
end,
brock = function()
local timeLimit = 11
if Pokemon.inParty("spearow") then
@ -421,7 +432,7 @@ end
strategyFunctions.grabTreePotion = function()
if Strategies.initialize() then
if Pokemon.info("squirtle", "hp") > 16 then
if Strategies.setYolo("oldMan") or Pokemon.info("squirtle", "hp") > 16 then
return true
end
end