Advertisement
name8888less

L3/G10/G10 filter

Oct 3rd, 2022
630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:function%20refreshPokemons(){if(shouldUpdate){for(var%20e=[],a=Math.floor(Date.now()/1e3)-timeOffset,r=0;r<pokemons.length;++r)((t=pokemons[r]).despawn<a-10||!isPokemonChecked(t.id)&&!shouldTurnFilterOff())&&e.push(r);for(r=e.length-1;0<=r;--r)pokemons.splice(e[r],1),(n=markers[e[r]]).removeFrom(map),markers.splice(e[r],1);for(var%20t,r=0;r<pokemons.length;++r){-1==(t=pokemons[r]).attack&&(t.attack=0);var%20o=(t.attack+t.defence+t.stamina)/45*100,n=markers[r],m=min_iv;0==min_iv&&(m=-100),m<=o&&t.attack<=3&&10<=t.defence&&10<=t.stamina||shouldTurnFilterOff()?n._map||n.addTo(map):n._map&&n.removeFrom(map)}if(shouldShowTimers())for(r=0;r<markers.length;++r){var%20i=map.getBounds(),s=markers[r];i.contains(s.getLatLng())&&$(s._icon).find(".pokemon_icon_timer").html(timeToString(pokemons[r].remainingTime()))}}}function%20infoWindowString(e){var%20a="";0!=e.disguise&&-1!=e.disguise&&(a="%20("+getDisguisePokemonName(e)+")");var%20r=getGenderString(e),t=getFormString(e),o="",n="",m="",i="",i="<a%20href='faq.html#weather'><b>Weather%20boost</b>:%20";switch(e.weather){case%200:i+="None<br%20/></a>";break;case%201:i+="Clear<br%20/></a>";break;case%202:i+="Rainy<br%20/></a>";break;case%203:i+="Partly%20Cloudy<br%20/></a>";break;case%204:i+="Cloudy<br%20/></a>";break;case%205:i+="Windy<br%20/></a>";break;case%206:i+="Snow<br%20/></a>";break;case%207:i+="Fog<br%20/></a>";break;default:i=""}return-1==e.attack&&(e.attack=0),-1!=e.attack&&-1!=e.defence&&-1!=e.stamina&&(o="<b>L30+%20IV:</b>%20"+e.attack+"%20|%20"+e.defence+"%20|%20"+e.stamina+"%20("+Math.floor((e.attack+e.defence+e.stamina)/45*100)+"%)<br%20/>"),-1!=e.move1&&-1!=e.move2&&(n="<b>L30+%20Moveset:</b><br%20/>"+getMoveName(e.move1)+"%20|%20"+getMoveName(e.move2)+"<br%20/>"),-1!=e.cp&&(m="<b>L30+%20CP:</b>%20"+e.cp+"%20(Level:%20"+e.level+")<br%20/><br%20/>"),"<b>"+getPokemonName(e)+a+r+t+"</b><br%20/><br%20/>"+i+o+n+m+timeToString(e.remainingTime())+'<br%20/><br%20/><a%20target="_blank"%20href="https://maps.google.com/maps?q='+e.center.lat+","+e.center.lng+'">Maps</a><br%20/><br%20/><a%20href="faq.html#approximately_timer"%20target="_blank">(Approximately%20Despawn%20Time)</a>'}
Tags: sgpokemap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement