Skip to content
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.

Commit

Permalink
Range Extender Example
Browse files Browse the repository at this point in the history
Another example to add, allows increased viewing range of Pokemon
  • Loading branch information
iDigitalFlame committed Jul 28, 2016
1 parent ad6b382 commit c88ada8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions example.extendPokemonRange.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
###
Pokemon Go(c) MITM node proxy
Example by iDigitalFlame <idf@idfla.me>
This module allows you to see Pokemon in a wider range area.
You can see some far away Pokemon loaded, but not all are catchable.
The module also makes PokeStops and Gyms open from far away, but are not useable.
###

PokemonGoMITM = require './lib/pokemon-go-mitm'
changeCase = require 'change-case'
moment = require 'moment'
LatLon = require('geodesy').LatLonSpherical

server = new PokemonGoMITM port: 8081
.addResponseHandler "DownloadSettings", (data) ->
if data.settings
data.settings.map_settings.pokemon_visible_range = 1500
data.settings.map_settings.poke_nav_range_meters = 1500
data.settings.map_settings.encounter_range_meters = 1500
data.settings.fort_settings.interaction_range_meters = 1500
data.settings.fort_settings.max_total_deployed_pokemon = 50
data

1 comment on commit c88ada8

@Gravitary
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Range seems to be about 300 for encounter range so you can actually initiate a fight. Fort interaction seems to be much closer, as they kick you out from fights.

Please sign in to comment.