Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Egg incubation #726

Merged
merged 2 commits into from
Jul 27, 2016
Merged

Egg incubation #726

merged 2 commits into from
Jul 27, 2016

Conversation

patrikwlund
Copy link
Contributor

Automatic use of egg incubators before every farming run, with setting for enabling (default=on).

Currently not executed in-between pokestops, but that would be a good next step. Simply add up the distances between stops and when enough of a distance (1km+) has been traveled, check incubators.

continue;

var response = await ctx.Client.Inventory.UseItemEggIncubator(incubator.Id, egg.Id);
Logger.Write($"Putting egg in incubator ({response.EggIncubator.TargetKmWalked - kmWalked:0.00}km left)");
Copy link
Contributor

Choose a reason for hiding this comment

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

No Logger calls here.
Use machine.Fire and create a new event for incubators

@patrikwlund
Copy link
Contributor Author

Updated with an incubation event

@maximegmd maximegmd merged commit 6f8110b into NecronomiconCoding:master Jul 27, 2016
@patrikwlund patrikwlund deleted the Incubation branch July 27, 2016 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants