Skip to content

Commit

Permalink
Merge pull request #476 from mrnitrate/berry-patch-2
Browse files Browse the repository at this point in the history
Fix: Decrement cached berry inventory count when using a berry
  • Loading branch information
NecronomiconCoding authored Jul 25, 2016
2 parents a1c9596 + ad199ec commit f52359b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PokemonGo.RocketAPI.Logic/Logic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ public async Task UseBerry(ulong encounterId, string spawnPointId)
return;

await _client.UseCaptureItem(encounterId, ItemId.ItemRazzBerry, spawnPointId);
berry.Count--;
Logger.Write($"Used, remaining: {berry.Count}", LogLevel.Berry);
await Task.Delay(3000);
}
Expand Down

0 comments on commit f52359b

Please sign in to comment.