1
0
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:
Deukhoofd
2016-03-08 12:54:26 +01:00
parent 60db98d9f8
commit 4fd8a73c72
3 changed files with 21 additions and 5 deletions

View File

@@ -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.