Add Controls for Yellow

This commit is contained in:
Kyle Coburn 2015-04-07 05:01:40 -07:00
parent 364fa72221
commit d735fb8008
1 changed files with 19 additions and 1 deletions

View File

@ -20,6 +20,8 @@ local shouldCatch, attackIdx
local extraEncounter, maxEncounters local extraEncounter, maxEncounters
local battleYolo local battleYolo
local yellow = YELLOW
Control.areaName = "Unknown" Control.areaName = "Unknown"
Control.moonEncounters = nil Control.moonEncounters = nil
Control.yolo = false Control.yolo = false
@ -117,6 +119,22 @@ local controlFunctions = {
shouldCatch = {{name="oddish",alt="paras",hp=26}} shouldCatch = {{name="oddish",alt="paras",hp=26}}
end, end,
-- YELLOW
catchNidoranYellow = function()
shouldCatch = {{name="nidoran",lvl={6}}}
end,
moonExpYellow = function()
minExp = 2704 --TODO
shouldFight = {{name="geodude"}, {name="clefairy",lvl={12,13}}}
oneHits = true
end,
catchSandshrew = function()
shouldCatch = {{name="sandshrew"}}
end,
} }
-- COMBAT -- COMBAT
@ -166,7 +184,7 @@ function Control.canCatch(partySize)
partySize = Memory.value("player", "party_size") partySize = Memory.value("player", "party_size")
end end
local pokeballs = Inventory.count("pokeball") local pokeballs = Inventory.count("pokeball")
local minimumCount = 4 - partySize local minimumCount = (yellow and 3 or 4) - partySize
if pokeballs < minimumCount then if pokeballs < minimumCount then
Strategies.reset("Not enough PokeBalls", pokeballs) Strategies.reset("Not enough PokeBalls", pokeballs)
return false return false