Fix IV display in PokemonForm
Brian [2016-08-17 13:14:59]
Fix IV display in PokemonForm
diff --git a/PokemonGo.RocketBot.Logic/Utils/WebUtils.cs b/PokemonGo.RocketBot.Logic/Utils/WebUtils.cs
index 4878814..e28a299 100644
--- a/PokemonGo.RocketBot.Logic/Utils/WebUtils.cs
+++ b/PokemonGo.RocketBot.Logic/Utils/WebUtils.cs
@@ -51,7 +51,6 @@ namespace PokemonGo.RocketBot.Logic.Utils
"The server returned data in an unknown encoding: " + charsetName,
ex);
*/
- var a = 1;
return null;
}
}
diff --git a/PokemonGo.RocketBot.Window/Forms/MainForm.designer.cs b/PokemonGo.RocketBot.Window/Forms/MainForm.designer.cs
index 3d8f6f5..4f154ca 100644
--- a/PokemonGo.RocketBot.Window/Forms/MainForm.designer.cs
+++ b/PokemonGo.RocketBot.Window/Forms/MainForm.designer.cs
@@ -264,7 +264,7 @@ namespace PokemonGo.RocketBot.Window.Forms
this.pkmnIV.AspectName = "GetIV";
this.pkmnIV.AspectToStringFormat = "{0:P2}";
this.pkmnIV.Text = "IV %";
- this.pkmnIV.Width = 51;
+ this.pkmnIV.Width = 52;
//
// pkmnCandy
//
diff --git a/PokemonGo.RocketBot.Window/PokemomObject.cs b/PokemonGo.RocketBot.Window/PokemomObject.cs
index aaf8eba..75c100d 100644
--- a/PokemonGo.RocketBot.Window/PokemomObject.cs
+++ b/PokemonGo.RocketBot.Window/PokemomObject.cs
@@ -51,7 +51,7 @@ namespace PokemonGo.RocketBot.Window
public double GetIV
{
- get { return Math.Round(PokemonInfo.CalculatePokemonPerfection(PokemonData), 2); }
+ get { return Math.Round(PokemonInfo.CalculatePokemonPerfection(PokemonData) / 100, 2); }
}
public double GetLv
@@ -84,7 +84,7 @@ namespace PokemonGo.RocketBot.Window
{
if (CandyToEvolve > 0)
{
- return Candy/CandyToEvolve;
+ return Candy / CandyToEvolve;
}
return 0;
}
You may download the files in Public Git.