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

Fix KeepMinDuplicatePokemon #107

Merged
merged 2 commits into from
Jul 23, 2016
Merged

Fix KeepMinDuplicatePokemon #107

merged 2 commits into from
Jul 23, 2016

Conversation

skupfer
Copy link
Contributor

@skupfer skupfer commented Jul 22, 2016

No description provided.

@skupfer
Copy link
Contributor Author

skupfer commented Jul 22, 2016

hopefully ... I tried it and it worked^^

@OverlordQ
Copy link
Contributor

OverlordQ commented Jul 22, 2016

Since you're already passing _client, you dont need to create an entire new object and pass it as well, in Inventory.cs you could reference _client.Settings or in the Inventory(Client) constructor initialize _clientSettings from client

Really just a stylistic choice /bikeshed

@@ -68,7 +70,7 @@ public Inventory(Client client)
p.Where(x => x.Favorite == 0)
.OrderByDescending(x => x.Cp)
.ThenBy(n => n.StaminaMax)
.Skip(1)
.Skip(_clientSettings.KeepMinDuplicatePokemon)
Copy link
Contributor

Choose a reason for hiding this comment

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

.Skip(_client.Settings.KeepMinDuplicatePokemon)

@NecronomiconCoding NecronomiconCoding merged commit 0cb553e into NecronomiconCoding:master Jul 23, 2016
@skupfer skupfer deleted the keepmindup_fix branch July 23, 2016 17:14
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.

4 participants