@@ -528,8 +528,7 @@ def walk_back_to_origin(self):
528528 def spin_nearest_fort (self ):
529529 map_cells = self .nearby_map_objects ()['responses' ].get ('GET_MAP_OBJECTS' , {}).get ('map_cells' , [])
530530 forts = PGoApi .flatmap (lambda c : c .get ('forts' , []), map_cells )
531- destinations = filtered_forts (self ._origPosF , self ._posf , forts , self .STAY_WITHIN_PROXIMITY , self .visited_forts ,
532- self .experimental )
531+ destinations = filtered_forts (self ._origPosF , self ._posf , forts , self .STAY_WITHIN_PROXIMITY , self .visited_forts )
533532 if destinations :
534533 nearest_fort = destinations [0 ][0 ]
535534 nearest_fort_dis = destinations [0 ][1 ]
@@ -590,8 +589,7 @@ def spin_all_forts_visible(self):
590589 res = self .nearby_map_objects ()
591590 map_cells = res ['responses' ].get ('GET_MAP_OBJECTS' , {}).get ('map_cells' , [])
592591 forts = PGoApi .flatmap (lambda c : c .get ('forts' , []), map_cells )
593- destinations = filtered_forts (self ._origPosF , self ._posf , forts , self .STAY_WITHIN_PROXIMITY , self .visited_forts ,
594- self .experimental )
592+ destinations = filtered_forts (self ._origPosF , self ._posf , forts , self .STAY_WITHIN_PROXIMITY , self .visited_forts )
595593 if not destinations :
596594 self .log .debug ("No fort to walk to! %s" , res )
597595 self .log .info ('No more spinnable forts within proximity. Or server error' )
@@ -623,8 +621,7 @@ def spin_near_fort(self):
623621 res = self .nearby_map_objects ()
624622 map_cells = res ['responses' ].get ('GET_MAP_OBJECTS' , {}).get ('map_cells' , [])
625623 forts = PGoApi .flatmap (lambda c : c .get ('forts' , []), map_cells )
626- destinations = filtered_forts (self ._origPosF , self ._posf , forts , self .STAY_WITHIN_PROXIMITY , self .visited_forts ,
627- self .experimental )
624+ destinations = filtered_forts (self ._origPosF , self ._posf , forts , self .STAY_WITHIN_PROXIMITY , self .visited_forts )
628625 if not destinations :
629626 self .log .debug ("No fort to walk to! %s" , res )
630627 self .log .info ('No more spinnable forts within proximity. Returning back to origin' )
0 commit comments