Skip to content

Commit

Permalink
Allow to set CatchPokemon parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxRev committed Jul 25, 2016
1 parent 7392e5d commit dcd0a97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PokemonGo.RocketAPI/Rpc/Encounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ public async Task<UseItemCaptureResponse> UseCaptureItem(ulong encounterId, Item
return await PostProtoPayload<Request, UseItemCaptureResponse>(RequestType.UseItemCapture, message);
}

public async Task<CatchPokemonResponse> CatchPokemon(ulong encounterId, string spawnPointGuid, ItemId pokeballItemId)
public async Task<CatchPokemonResponse> CatchPokemon(ulong encounterId, string spawnPointGuid, ItemId pokeballItemId, double normalizedRecticleSize = 1.950, double spinModifier = 1, double normalizedHitPos = 1)
{
var message = new CatchPokemonMessage
{
EncounterId = encounterId,
Pokeball = pokeballItemId,
SpawnPointId = spawnPointGuid,
HitPokemon = true,
NormalizedReticleSize = 1.950,
SpinModifier = 1,
NormalizedHitPosition = 1
NormalizedReticleSize = normalizedRecticleSize,
SpinModifier = spinModifier,
NormalizedHitPosition = normalizedHitPos
};

return await PostProtoPayload<Request, CatchPokemonResponse>(RequestType.CatchPokemon, message);
Expand Down

0 comments on commit dcd0a97

Please sign in to comment.