Standardize bicycle Strategy
This commit is contained in:
parent
2222ef88dc
commit
87c4ae4b1b
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue