Customize potion before Surge
This commit is contained in:
parent
bf42c278a7
commit
2be19cea00
|
@ -1098,6 +1098,23 @@ strategyFunctions.trashcans = function()
|
|||
end
|
||||
end
|
||||
|
||||
strategyFunctions.potionBeforeSurge = function()
|
||||
local yoloHp = 5
|
||||
if Strategies.initialize() then
|
||||
if Control.yolo then
|
||||
local curr_hp = Combat.hp()
|
||||
if curr_hp > yoloHp and curr_hp <= 21 then
|
||||
Bridge.chat("Attempting to keep red-bar through Surge", curr_hp)
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
if Inventory.contains("potion") then
|
||||
return Strategies.functions.potion({hp=20, yolo=yoloHp, forced="potion", chain=true})
|
||||
end
|
||||
return Strategies.functions.potion({hp=8, yolo=yoloHp, chain=true})
|
||||
end
|
||||
|
||||
strategyFunctions.fightSurge = function()
|
||||
if Battle.isActive() then
|
||||
status.canProgress = true
|
||||
|
|
|
@ -158,7 +158,7 @@ local Paths = {
|
|||
-- Departure
|
||||
{94, {14,2}},
|
||||
-- To Surge
|
||||
{5, {18,29}, {18,26}, {30,26}, {30,14}, {15,14}, {15,17}, {s="potion",hp=20,yolo=5,forced="potion",chain=true}, {s="potion",hp=8,yolo=5,chain=true}, {s="teach",move="cut",poke="oddish",alt="paras",chain=true}, {s="skill",move="cut",done=0x0D4D}, {15,20}, {12,20}, {12,19}},
|
||||
{5, {18,29}, {18,26}, {30,26}, {30,14}, {15,14}, {15,17}, {s="potionBeforeSurge"}, {s="teach",move="cut",poke="oddish",alt="paras",chain=true}, {s="skill",move="cut",done=0x0D4D}, {15,20}, {12,20}, {12,19}},
|
||||
-- Trashcans
|
||||
{92, {4,17}, {c="a",a="Surge's Gym"}, {4,16}, {2,16}, {2,11}, {s="trashcans"}, {4,6}, {4,3}, {5,3}, {5,2}, {s="interact",dir="Up"}, {s="fightSurge"}, {s="split"}, {4,2}, {4,13}, {5,13}, {5,18}},
|
||||
|
||||
|
|
Loading…
Reference in New Issue