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

fixed berry recycling #255

Merged
merged 1 commit into from
Aug 1, 2016
Merged

Conversation

myrahz
Copy link
Contributor

@myrahz myrahz commented Aug 1, 2016

No description provided.

@rrelict
Copy link

rrelict commented Aug 1, 2016

There is the _pokeballs var in the GetBerriesToRecycle method.
Is it ok?

b5a8898#diff-a0255ed74a3b722e9094acb8eb7471f3R315

@DurtyFree
Copy link
Member

Did you test that? Need confirmation:)

@myrahz
Copy link
Contributor Author

myrahz commented Aug 1, 2016

Should clearly be :
private List GetBerriesToRecycle(ISession session, IReadOnlyList myItems)
{
var amountOfBerriesToKeep = _logicSettings.TotalAmountOfBerriesToKeep;
if (amountOfBerriesToKeep < 1)
{
Logger.Write(session.Translation.GetTranslation(TranslationString.BerriesToKeepIncorrect),
LogLevel.Error, ConsoleColor.Red);
return new List();
}

        var allBerries = myItems.Where(s => _berries.Contains(s.ItemId)).ToList();


        return TakeAmountOfItems(allBerries, amountOfBerriesToKeep).ToList();
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants