Skip to content

Comments

Lucky Egg - Evolve All#742

Merged
solderzzc merged 4 commits intoPokemonGoF:devfrom
codybaldwin:dev
Jul 25, 2016
Merged

Lucky Egg - Evolve All#742
solderzzc merged 4 commits intoPokemonGoF:devfrom
codybaldwin:dev

Conversation

@codybaldwin
Copy link
Contributor

Short Description:
Provides the ability to use a lucky egg before evolve_all. This will maximize xp gain.
Fixes:

  • Provides option via config.json
  • If user has "use_lucky_egg" set to true and they have no lucky eggs, it will skip evolve_all

*note: this is my second pull request for this feature. Old repo became corrupt so had to delete/refork.

Provides the ability to use a lucky egg before evolve_all. This will
maximize xp gain.
@solderzzc
Copy link
Contributor

@douglascamata had commit a walk logic refactor. We are currently reviewing on it. this commit may need rebase after that commit merged.


# Pop lucky egg before evolving to maximize xp gain
if self.config.use_lucky_egg:
if self.item_inventory_count(Item.ITEM_LUCKY_EGG.value) > 0:
Copy link

@ProjectBarks ProjectBarks Jul 25, 2016

Choose a reason for hiding this comment

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

self.item_inventory_count(Item.ITEM_LUCKY_EGG.value)

Store this as a variable and then combined these two If statements into one.

@solderzzc
Copy link
Contributor

solderzzc commented Jul 25, 2016

👍

Approved with PullApprove

logger.log('[#] Using lucky egg ... you have {}'
.format(self.item_inventory_count(Item.ITEM_LUCKY_EGG.value)))
response_dict_lucky_egg = self.use_lucky_egg()
if response_dict_lucky_egg and \

Choose a reason for hiding this comment

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

this if statement doesnt have to be on multiple lines

@ProjectBarks
Copy link

@codybaldwin I reviewed your code please take a look

@solderzzc
Copy link
Contributor

Very glad to merge this one !

@solderzzc solderzzc merged commit 3ef918f into PokemonGoF:dev Jul 25, 2016
MFizz pushed a commit to MFizz/PokemonGo-Bot that referenced this pull request Jul 29, 2016
* Lucky Egg - Evolve All

Provides the ability to use a lucky egg before evolve_all. This will
maximize xp gain.

* Revert "Lucky Egg - Evolve All"

This reverts commit abfdb59.

* Lucky Egg - Evolve All

* Prepare the branch update. (PokemonGoF#750)
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this pull request Sep 28, 2016
* Added fields to pokéstop webhook data

* Added optional data (gyms + non-lured pokéstops) to webhooks.

* Typo in comments

* Fixed remaining "forts" reference + moved CLI to config

* Config args without CLI w/ configargparse...

* My implementation. Read PR comments for details.

fuckityolo that data needs to be sent somehow. even though i hate more env variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants