Fixed negative remainder closes #170 fixed steeltype numType, ref #169

This commit is contained in:
Master Kwoth 2016-04-01 16:20:58 +02:00
parent 22ac84f28a
commit 28368ec205
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ namespace NadekoBot.Modules.Pokemon
return PokemonTypesMain.IntToPokeType(setTypes[(long)id]);
}
int remainder = (int)id % 16;
int remainder = Math.Abs((int)(id % 16));
return PokemonTypesMain.IntToPokeType(remainder);
}

View File

@ -6,7 +6,7 @@ namespace NadekoBot.Modules.Pokemon.PokemonTypes
class SteelType : PokeType
{
static readonly string name = "STEEL";
public static int numType = -1;
public static int numType = 16;
public double Multiplier(PokeType target)
{