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

@ -609,7 +609,7 @@
}).call(this); }).call(this);
(function() { (function() {
var EventPokemon, INT_TO_GENERATION, checkMove, eeveelutions, getGenerationFromInt, getMinimumGeneration, loopLearnsets, mustLearnMove, self, switchableFormes, unportableGenerations, unsketchableMoves, _, _ref, var EventPokemon, INT_TO_GENERATION, checkMove, eeveelutions, getGenerationFromInt, getMinimumGeneration, levelLimit, loopLearnsets, mustLearnMove, self, switchableFormes, unportableGenerations, unsketchableMoves, _, _ref,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
self = (typeof module !== "undefined" && module !== null ? module.exports : void 0) || window; self = (typeof module !== "undefined" && module !== null ? module.exports : void 0) || window;
@ -630,6 +630,8 @@
return b - a; return b - a;
}); });
levelLimit = false;
switchableFormes = ["Deoxys", "Rotom", "Shaymin"]; switchableFormes = ["Deoxys", "Rotom", "Shaymin"];
unsketchableMoves = ["Chatter", "Hyperspace Hole", "Light of Ruin", "Steam Eruption", "Struggle", "Thousand Arrows", "Thousand Waves"]; unsketchableMoves = ["Chatter", "Hyperspace Hole", "Light of Ruin", "Steam Eruption", "Struggle", "Thousand Arrows", "Thousand Waves"];
@ -901,7 +903,10 @@
checkMove = function(looper, pokemon, move) { checkMove = function(looper, pokemon, move) {
var checksOut, level; var checksOut, level;
level = pokemon.level; level = pokemon.level;
level || (level = 120); level |= 120;
if (levelLimit = false) {
return true;
}
checksOut = looper(function(learnset) { checksOut = looper(function(learnset) {
var _ref1, _ref2, _ref3, _ref4; var _ref1, _ref2, _ref3, _ref4;
if (((_ref1 = learnset["level-up"]) != null ? _ref1[move] : void 0) <= level || ((_ref2 = learnset["machine"]) != null ? _ref2[move] : void 0) <= level || ((_ref3 = learnset["tutor"]) != null ? _ref3[move] : void 0) <= level) { if (((_ref1 = learnset["level-up"]) != null ? _ref1[move] : void 0) <= level || ((_ref2 = learnset["machine"]) != null ? _ref2[move] : void 0) <= level || ((_ref3 = learnset["tutor"]) != null ? _ref3[move] : void 0) <= level) {

View File

@ -609,7 +609,7 @@
}).call(this); }).call(this);
(function() { (function() {
var EventPokemon, INT_TO_GENERATION, checkMove, eeveelutions, getGenerationFromInt, getMinimumGeneration, loopLearnsets, mustLearnMove, self, switchableFormes, unportableGenerations, unsketchableMoves, _, _ref, var EventPokemon, INT_TO_GENERATION, checkMove, eeveelutions, getGenerationFromInt, getMinimumGeneration, levelLimit, loopLearnsets, mustLearnMove, self, switchableFormes, unportableGenerations, unsketchableMoves, _, _ref,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
self = (typeof module !== "undefined" && module !== null ? module.exports : void 0) || window; self = (typeof module !== "undefined" && module !== null ? module.exports : void 0) || window;
@ -630,6 +630,8 @@
return b - a; return b - a;
}); });
levelLimit = false;
switchableFormes = ["Deoxys", "Rotom", "Shaymin"]; switchableFormes = ["Deoxys", "Rotom", "Shaymin"];
unsketchableMoves = ["Chatter", "Hyperspace Hole", "Light of Ruin", "Steam Eruption", "Struggle", "Thousand Arrows", "Thousand Waves"]; unsketchableMoves = ["Chatter", "Hyperspace Hole", "Light of Ruin", "Steam Eruption", "Struggle", "Thousand Arrows", "Thousand Waves"];
@ -901,7 +903,10 @@
checkMove = function(looper, pokemon, move) { checkMove = function(looper, pokemon, move) {
var checksOut, level; var checksOut, level;
level = pokemon.level; level = pokemon.level;
level || (level = 120); level |= 120;
if (levelLimit = false) {
return true;
}
checksOut = looper(function(learnset) { checksOut = looper(function(learnset) {
var _ref1, _ref2, _ref3, _ref4; var _ref1, _ref2, _ref3, _ref4;
if (((_ref1 = learnset["level-up"]) != null ? _ref1[move] : void 0) <= level || ((_ref2 = learnset["machine"]) != null ? _ref2[move] : void 0) <= level || ((_ref3 = learnset["tutor"]) != null ? _ref3[move] : void 0) <= level) { if (((_ref1 = learnset["level-up"]) != null ? _ref1[move] : void 0) <= level || ((_ref2 = learnset["machine"]) != null ? _ref2[move] : void 0) <= level || ((_ref3 = learnset["tutor"]) != null ? _ref3[move] : void 0) <= level) {

View File

@ -12,6 +12,9 @@ else
unportableGenerations = [ 1, 3 ] unportableGenerations = [ 1, 3 ]
unportableGenerations.sort((a, b) -> b - a) # numeric, descending unportableGenerations.sort((a, b) -> b - a) # numeric, descending
#Setting this to false allows Pokemon to get all moves, regardless of level
levelLimit = false
switchableFormes = [ switchableFormes = [
"Deoxys" "Deoxys"
"Rotom" "Rotom"
@ -224,7 +227,10 @@ self.checkMoveset = (Generations, pokemon, generation, moves) ->
# tutors, machines, Sketch, or pre-evolutions. # tutors, machines, Sketch, or pre-evolutions.
checkMove = (looper, pokemon, move) -> checkMove = (looper, pokemon, move) ->
{level} = pokemon {level} = pokemon
level ||= 120 level |= 120
if levelLimit = false
return true
checksOut = looper (learnset) -> checksOut = looper (learnset) ->
# Check level-up, TM/HM, and tutors. # Check level-up, TM/HM, and tutors.