Standardize bicycle Strategy

This commit is contained in:
Kyle Coburn 2015-04-15 01:46:09 -07:00
parent 2222ef88dc
commit 87c4ae4b1b
3 changed files with 10 additions and 20 deletions

View File

@ -277,16 +277,6 @@ end
-- tweetVictoryRoad
strategyFunctions.bicycle = function()
if Memory.value("player", "bicycle") == 1 then
if Textbox.handle() then
return true
end
else
return Strategies.useItem({item="bicycle"})
end
end
-- Route
strategyFunctions.squirtleIChooseYou = function()

View File

@ -470,6 +470,16 @@ Strategies.functions = {
return true
end,
bicycle = function()
if Memory.value("player", "bicycle") == 1 then
if Menu.close() then
return true
end
else
return Strategies.useItem({item="bicycle"})
end
end,
startFrames = function()
Strategies.frames = 0
return true

View File

@ -134,16 +134,6 @@ local function takeCenter(pp, startMap, entranceX, entranceY, finishX)
Walk.step(px, py)
end
strategyFunctions.bicycle = function()
if Memory.value("battle", "menu") == 19 then
if Textbox.handle() then
return true
end
else
return Strategies.useItem({item="bicycle"})
end
end
function Strategies.requiresE4Center()
return Combat.hp() < 100
end