Advertisement
name8888less

L1/G10/G10 filter v3

Apr 5th, 2021 (edited)
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:function refreshPokemons(){if(shouldUpdate){for(var e=[],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 t,r=0;r<pokemons.length;++r){-1==(t=pokemons[r]).attack&&(t.attack=0);var o=(t.attack+t.defence+t.stamina)/45*100,n=markers[r],m=min_iv;0==min_iv&&(m=-100),m<=o&&t.attack<=1&&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 i=map.getBounds(),s=markers[r];i.contains(s.getLatLng())&&$(s._icon).find(".pokemon_icon_timer").html(timeToString(pokemons[r].remainingTime()))}}}function infoWindowString(e){var a="";0!=e.disguise&&-1!=e.disguise&&(a=" ("+getDisguisePokemonName(e)+")");var r=getGenderString(e),t=getFormString(e),o="",n="",m="",i="",i="<a href='faq.html#weather'><b>Weather boost</b>: ";switch(e.weather){case 0:i+="None<br /></a>";break;case 1:i+="Clear<br /></a>";break;case 2:i+="Rainy<br /></a>";break;case 3:i+="Partly Cloudy<br /></a>";break;case 4:i+="Cloudy<br /></a>";break;case 5:i+="Windy<br /></a>";break;case 6:i+="Snow<br /></a>";break;case 7:i+="Fog<br /></a>";break;default:i=""}return-1==e.attack&&(e.attack=0),-1!=e.attack&&-1!=e.defence&&-1!=e.stamina&&(o="<b>L30+ IV:</b> "+e.attack+" | "+e.defence+" | "+e.stamina+" ("+Math.floor((e.attack+e.defence+e.stamina)/45*100)+"%)<br />"),-1!=e.move1&&-1!=e.move2&&(n="<b>L30+ Moveset:</b><br />"+getMoveName(e.move1)+" | "+getMoveName(e.move2)+"<br />"),-1!=e.cp&&(m="<b>L30+ CP:</b> "+e.cp+" (Level: "+e.level+")<br /><br />"),"<b>"+getPokemonName(e)+a+r+t+"</b><br /><br />"+i+o+n+m+timeToString(e.remainingTime())+'<br /><br /><a target="_blank" href="https://maps.google.com/maps?q='+e.center.lat+","+e.center.lng+'">Maps</a><br /><br /><a href="faq.html#approximately_timer" target="_blank">(Approximately Despawn Time)</a>'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement