// 最低個体値とPLを判定 // 0:野生 1:リワード(交換不可) 2:リワード 3:伝説(交換不可) 4:伝説 function get_route(id){ var no_exchange = [512,1414,2607,4571,4572,4573,2606,4462,4463,4657,7379,7201,7514,7515,7516,7517,7377,7378,7801,7802,7803,12111,7373,7374,7797,7799,7800]; var pokemon = pokemon_list['p'+id]; if(!pokemon) return -1; other = pokemon.other ? pokemon.other.split(',') : new Array(); pokemon.id = parseInt(id); // メルタンorメルメタルor伝説でないor野生出現or限定野生出現なら if(id == 4832 || id == 4831 || (!pokemon.legend && !pokemon.ub) || pokemon.wild >= 1 || pokemon.wild == -4) return 0; if($.inArray('おさんぽおこう',other) != -1) return 0; if($.inArray('リワード',other) != -1) return $.inArray(pokemon.id, no_exchange) == -1 ? 2 : 1; if(pokemon.legend || $.inArray('UB',other) != -1) return $.inArray(pokemon.id, no_exchange) == -1 ? 4 : 3; return -1;//進化後のポケモンなど } function get_shadow_route(id){ var pokemon = pokemon_list['p'+id]; if(!pokemon) return -1; other = pokemon.other ? pokemon.other.split(',') : new Array(); pokemon.id = parseInt(id); // 伝説でないなら if(id == 505 || id == 506 || id == 507 || id == 1406 || id == 1407 || !pokemon.legend) return 0; // サカキ使用なら if($.inArray('サカキ使用',other) != -1) return 1; // 伝説シャドウレイドなら return 2; }