Tweak lategame redbar strategies

This commit is contained in:
Kyle Coburn 2015-04-12 11:31:45 -07:00
parent 1ae370ec22
commit 5b987785b6
1 changed files with 3 additions and 3 deletions

View File

@ -1673,7 +1673,7 @@ strategyFunctions.fightKoga = function()
local curr_hp = Combat.hp() local curr_hp = Combat.hp()
if Pokemon.isOpponent("weezing") then if Pokemon.isOpponent("weezing") then
local drillHp = (Pokemon.index(0, "level") > 40) and 12 or 9 local drillHp = (Pokemon.index(0, "level") > 40) and 12 or 9
if curr_hp > 0 and curr_hp < drillHp + 10 and Battle.pp("horn_drill") > 0 then if curr_hp > 0 and curr_hp < drillHp and Battle.pp("horn_drill") > 0 then
forced = "horn_drill" forced = "horn_drill"
if not status.drilling then if not status.drilling then
status.drilling = true status.drilling = true
@ -1860,7 +1860,7 @@ end
strategyFunctions.fightGiovanni = function() strategyFunctions.fightGiovanni = function()
if Battle.isActive() then if Battle.isActive() then
if Strategies.initialize() then if Strategies.initialize() then
status.needsXSpecial = Battle.pp("earthquake") <= (riskGiovanni and 4 or 2) status.needsXSpecial = not Combat.inRedBar() or Battle.pp("earthquake") <= (riskGiovanni and 4 or 2)
status.canProgress = true status.canProgress = true
end end
local forced local forced
@ -2287,7 +2287,7 @@ strategyFunctions.champion = function()
print("v"..VERSION..": "..Utils.frames().." frames, with seed "..Strategies.seed) print("v"..VERSION..": "..Utils.frames().." frames, with seed "..Strategies.seed)
print("Please save this seed number to share, if you would like proof of your run!") print("Please save this seed number to share, if you would like proof of your run!")
end end
elseif status.tries == 1000 then elseif status.tries == 500 then
Bridge.chat("beat the game in "..status.canProgress.." !") Bridge.chat("beat the game in "..status.canProgress.." !")
end end
status.tries = status.tries + 1 status.tries = status.tries + 1