This commit is contained in:
Kyle Coburn 2015-05-18 11:00:58 -07:00
parent bb050d7656
commit d7833e0eb6
2 changed files with 12 additions and 3 deletions

View File

@ -111,6 +111,9 @@ function Strategies.death(extra)
elseif Combat.isConfused() then
explanation = "Confusion'd"
reason = "confusion"
elseif Combat.isSleeping() then
explanation = "Slumbering"
reason = "sleep"
elseif Control.yolo then
explanation = "Yolo strats"
reason = "yolo"
@ -433,7 +436,7 @@ function Strategies.prepare(...)
end
function Strategies.getsSilphCarbosSpecially()
return Data.yellow and stats.nidoran.speedDV >= 11
return Data.yellow and Utils.match(stats.nidoran.speedDV, {11, 15})
end
function Strategies.needsCarbosAtLeast(count)
@ -444,7 +447,7 @@ function Strategies.needsCarbosAtLeast(count)
carbosRequired = 3
elseif speedDV <= 10 then
carbosRequired = 2
else
elseif Strategies.getsSilphCarbosSpecially() then
carbosRequired = 1
end
else

View File

@ -327,7 +327,13 @@ local function takeCenter(pp, startMap, entranceX, entranceY, finishX)
Walk.step(px, py)
end
function Strategies.requiresE4Center()
function Strategies.requiresE4Center(afterPP)
if afterPP then
local hornDrillPP = Battle.pp("horn_drill")
if hornDrillPP < 5 then
return true
end
end
if Control.areaName == "Elite Four" then
return not Strategies.hasHealthFor("LoreleiDewgong")
end