mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-27 18:00:03 +00:00
Made pokemon learn all moves regardless of level, apparently people feel really strongly about this
This commit is contained in:
@@ -12,6 +12,9 @@ else
|
||||
unportableGenerations = [ 1, 3 ]
|
||||
unportableGenerations.sort((a, b) -> b - a) # numeric, descending
|
||||
|
||||
#Setting this to false allows Pokemon to get all moves, regardless of level
|
||||
levelLimit = false
|
||||
|
||||
switchableFormes = [
|
||||
"Deoxys"
|
||||
"Rotom"
|
||||
@@ -224,7 +227,10 @@ self.checkMoveset = (Generations, pokemon, generation, moves) ->
|
||||
# tutors, machines, Sketch, or pre-evolutions.
|
||||
checkMove = (looper, pokemon, move) ->
|
||||
{level} = pokemon
|
||||
level ||= 120
|
||||
level |= 120
|
||||
|
||||
if levelLimit = false
|
||||
return true
|
||||
|
||||
checksOut = looper (learnset) ->
|
||||
# Check level-up, TM/HM, and tutors.
|
||||
|
||||
Reference in New Issue
Block a user