You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,13 @@ optional arguments:
52
52
*`BIG_EGGS_FIRST` incubate big eggs (most km) first (default: true)
53
53
*`RELEASE_DUPLICATES` The bot seems to have a bad habit of hoarding pokemon. Enabling this feature (disabled by default) will have the bot automatically transfer pokemon that are duplicates. To determine which pokemon to transfer when duplicates exist, the lvl's of the pokemon are compared. A pokemon's lvl is an arbitrary and configurable parameter that can either be representative of a pokemon's CP, IV, CPxIV, or CP+IV. The bot will transfer the lowest lvl pokemon, maintaining` MIN_SIMILAR_POKEMON` of each type. To be completely confident that the bot will not transfer your high lvl pokemon, when this feature is enabled only pokemon with a lvl below `RELEASE_DUPLICATES_MAX_LVL`. If you have multiple pokemon that are close to the same lvl the bot can be configured to not transfer them by using `RELEASE_DUPLICATES_SCALER`. The value of this config is multiplied by the highest lvl pokemon of a type and only those pokemon that are less than the scaled lvl are transfered.
54
54
* EXAMPlES: If you set lvl to "IV" while having two Snorlaxs, one with stats CP:14 IV:95 and the other with CP:1800 IV:30 the bot will transfer the Snorlax with CP of 1800 and keep the CP 14 Snorlax because you have indicated you only care about a pokemon's IV. It must be fully understood why this happens to avoid unwanted transfer of pokemon. If not used correctly this feature can very easily transfer a large ammount of your pokemon so please make sure you fully understand it's mechanics before attempting use!
55
-
55
+
*`NEEDY_ITEM_FARMING`[Experimental] will cease trying to catch pokemon and roam around to collect more pokeballs when inventory is low
56
+
*`ENABLE` : `Boolean`, whether or not this feature is enabled
57
+
*`POKEBALL_FARM_THRESHOLD` : `Integer`, when the observed pokeball count drops on or below this number, skip catching pokemon and begin collecting.
58
+
*`POKEBALL_CONTINUE_THRESHOLD`: `Integer`, when the observed pokeball count reaches this amount, stop farming and go back to catching pokemon.
59
+
*`FARM_IGNORE_POKEBALL_COUNT`: `Boolean`, Whether to include this ball in counting. Same goes for `GREATBALL`, `ULTRABALL`, and `MASTERBALL`. Masterball is ignored by default.
60
+
*`FARM_OVERRIDE_STEP_SIZE`: `Integer`, When it goes into farming mode, the bot assumes this step size to potentially speed up resource gathering. _This might lead to softbans._ Setting to `-1` disables this feature. Disabled by default for safety.
61
+
* If `EXPERIMENTAL` OR `CATCH_POKEMON` are false, this configuration will disable itself.
self.FARM_ITEMS_ENABLED=config.get("NEEDY_ITEM_FARMING", {}).get("ENABLE", Trueandself.experimental) # be concious of pokeball/item limits
120
+
self.POKEBALL_CONTINUE_THRESHOLD=config.get("NEEDY_ITEM_FARMING", {}).get("POKEBALL_CONTINUE_THRESHOLD", 50) # keep at least 10 pokeballs of any assortment, otherwise go farming
121
+
self.POKEBALL_FARM_THRESHOLD=config.get("NEEDY_ITEM_FARMING", {}).get("POKEBALL_FARM_THRESHOLD", 10) # at this point, go collect pokeballs
122
+
self.FARM_IGNORE_POKEBALL_COUNT=config.get("NEEDY_ITEM_FARMING", {}).get("FARM_IGNORE_POKEBALL_COUNT", False) # ignore pokeballs in the continue tally
123
+
self.FARM_IGNORE_GREATBALL_COUNT=config.get("NEEDY_ITEM_FARMING", {}).get("FARM_IGNORE_GREATBALL_COUNT", False) # ignore greatballs in the continue tally
124
+
self.FARM_IGNORE_ULTRABALL_COUNT=config.get("NEEDY_ITEM_FARMING", {}).get("FARM_IGNORE_ULTRABALL_COUNT", False) # ignore ultraballs in the continue tally
125
+
self.FARM_IGNORE_MASTERBALL_COUNT=config.get("NEEDY_ITEM_FARMING", {}).get("FARM_IGNORE_MASTERBALL_COUNT", True) # ignore masterballs in the continue tally
126
+
self.FARM_OVERRIDE_STEP_SIZE=config.get("NEEDY_ITEM_FARMING", {}).get("FARM_OVERRIDE_STEP_SIZE", -1) # should the step size be overriden when looking for more inventory, -1 to disable
127
+
# OVERRIDE STEP SIZE could be softbannable. No data to suggest either way.
self.RELEASE_DUPLICATES_SCALER=config.get("RELEAES_DUPLICATES_SCALER", 1.0) # when comparing two pokemon's lvl, multiply larger by this
124
139
self.DEFINE_POKEMON_LV=config.get("DEFINE_POKEMON_LV", "CP") # define a pokemon's lvl, options are CP, IV, CP*IV, CP+IV
125
140
141
+
# Sanity checking
142
+
self.FARM_ITEMS_ENABLED=self.FARM_ITEMS_ENABLEDandself.experimentalandself.should_catch_pokemon# Experimental, and we needn't do this if we're farming anyway
143
+
if ( self.FARM_ITEMS_ENABLED
144
+
andself.FARM_IGNORE_POKEBALL_COUNT
145
+
andself.FARM_IGNORE_GREATBALL_COUNT
146
+
andself.FARM_IGNORE_ULTRABALL_COUNT
147
+
andself.FARM_IGNORE_MASTERBALL_COUNT ):
148
+
self.FARM_ITEMS_ENABLED=False
149
+
self.log.warn("FARM_ITEMS has been disabled due to all Pokeball counts being ignored.")
self.log.warn("FARM_ITEMS has been disabled due to farming threshold being below the continue. Set 'CATCH_POKEMON' to 'false' to enable captureless traveling.")
0 commit comments