Simplify Max Ether and add failsafe
This commit is contained in:
parent
2de15155a1
commit
ee8ed15734
|
@ -1971,25 +1971,21 @@ strategyFunctions.ether = function(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
strategyFunctions.pickMaxEther = function()
|
strategyFunctions.pickMaxEther = function()
|
||||||
if not status.canProgress then
|
if Strategies.initialize() then
|
||||||
if maxEtherSkip then
|
if maxEtherSkip or Inventory.isFull() then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
if Memory.value("player", "moving") == 0 then
|
|
||||||
if Player.isFacing("Right") then
|
|
||||||
status.canProgress = true
|
|
||||||
end
|
|
||||||
status.tempDir = not status.tempDir
|
|
||||||
if status.tempDir then
|
|
||||||
Input.press("Right", 1)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
if Inventory.contains("max_ether") then
|
if Inventory.contains("max_ether") then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
Player.interact("Right")
|
local px, py = Player.position()
|
||||||
|
if px > 7 then
|
||||||
|
return Strategies.reset("Accidentally walked on the island :(", px, true)
|
||||||
|
end
|
||||||
|
if Memory.value("player", "moving") == 0 then
|
||||||
|
Player.interact("Right")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- push
|
-- push
|
||||||
|
|
Loading…
Reference in New Issue