Support taking the center in Cerulean either pass

This commit is contained in:
Kyle Coburn 2015-04-11 10:36:56 -07:00
parent b70ce99a0b
commit b4d1c9dc32
1 changed files with 21 additions and 12 deletions

View File

@ -291,21 +291,23 @@ strategyFunctions.centerMoon = function()
return takeCenter(5, 15, 11, 5, 12) return takeCenter(5, 15, 11, 5, 12)
end end
strategyFunctions.centerCerulean = function() strategyFunctions.centerCerulean = function(data)
local currentMap = Memory.value("game", "map") local ppRequired = 150
local ppRequired = 15 if data.first then
if currentMap == 3 then local currentMap = Memory.value("game", "map")
if Pokemon.pp(0, "horn_attack") > ppRequired then if currentMap == 3 then
local px, py = Player.position() if Pokemon.pp(0, "horn_attack") > ppRequired then
if py > 8 then local px, py = Player.position()
return strategyFunctions.dodgeCerulean({left=true}) if py > 8 then
return strategyFunctions.dodgeCerulean({left=true})
end
end
if not strategyFunctions.dodgeCerulean({}) then
return false
end end
end end
if not strategyFunctions.dodgeCerulean({}) then
return false
end
end end
takeCenter(ppRequired, 3, 19, 17, 16) takeCenter(ppRequired, 3, 19, 17, 19)
end end
-- reportMtMoon -- reportMtMoon
@ -364,11 +366,18 @@ function Strategies.initGame(midGame)
if not STREAMING_MODE then if not STREAMING_MODE then
-- Strategies.setYolo("") -- Strategies.setYolo("")
if Pokemon.inParty("nidoking") then if Pokemon.inParty("nidoking") then
local attDv, defDV, spdDv, sclDV = Pokemon.getDVs("nidoking")
p(attDv, defDV, spdDv, sclDV)
stats.nidoran = { stats.nidoran = {
attack = 55, attack = 55,
defense = 45, defense = 45,
speed = 50, speed = 50,
special = 45, special = 45,
level4 = true,
attackDV = attDv,
defenseDV = defDV,
speedDV = spdDv,
specialDV = sclDV,
} }
else else
stats.nidoran = { stats.nidoran = {