You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with the EvolvePokemon method. When I tried to evolve a pokemon, I had an error regarding the id field, I fixed it thanks to the comment from in this issue : #194 .
Now, I have the same kind of error, but this time regarding the cp_multiplier : Error: Illegal wire type for field Message.Field .ResponseEnvelop.Pokemon.cp_multiplier: 5 (1 expected)
I tried to replace int32 cp_multiplier with float cp_multiplier but I had "Illegal buffer" error.
Any idea? thanks
The text was updated successfully, but these errors were encountered:
function evolve(pokemon){
var id = pokemon.id;
var cp = pokemon.cp;
var pokemon_id = pokemon.pokemon_id;
pokeAPI.EvolvePokemon(id, function(err, result){
if (err){
printError("evolve",err);
}else{
if(result.Result == 1){
var pokemon = result.EvolvedPokemon
console.log(chalk.blue("\tevolved to a "+monsters[pokemon.pokemon_type].name+" with the CP of "+pokemon.cp));
}else{
console.log(result);
}
}
});
}
I have an issue with the EvolvePokemon method. When I tried to evolve a pokemon, I had an error regarding the id field, I fixed it thanks to the comment from in this issue : #194 .
Now, I have the same kind of error, but this time regarding the cp_multiplier :
Error: Illegal wire type for field Message.Field .ResponseEnvelop.Pokemon.cp_multiplier: 5 (1 expected)
I tried to replace int32 cp_multiplier with float cp_multiplier but I had "Illegal buffer" error.
Any idea? thanks
The text was updated successfully, but these errors were encountered: