MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / printPokemon

Function printPokemon

pogom/customLog.py:15–30  ·  view source on GitHub ↗
(id, lat, lng, itime)

Source from the content-addressed store, hash-verified

13
14
15def printPokemon(id, lat, lng, itime):
16 if args.display_in_console:
17 pokemon_name = get_pokemon_name(id).lower()
18 pokemon_rarity = get_pokemon_rarity(id).lower()
19 pokemon_id = str(id)
20 doPrint = True
21 # if args.ignore:
22 # if pokemon_name in IGNORE or pokemon_id in IGNORE:
23 # doPrint = False
24 # elif args.only:
25 # if pokemon_name not in ONLY and pokemon_id not in ONLY:
26 # doPrint = False
27 if doPrint:
28 timeLeft = itime - datetime.utcnow()
29 print("======================================\n Name: %s\n Rarity: %s\n Coord: (%f,%f)\n ID: %s \n Remaining Time: %s\n======================================" % (
30 pokemon_name.encode('utf-8'), pokemon_rarity.encode('utf-8'), lat, lng, pokemon_id, str(timeLeft)))

Callers 1

parse_mapFunction · 0.85

Calls 2

get_pokemon_nameFunction · 0.85
get_pokemon_rarityFunction · 0.85

Tested by

no test coverage detected