public DamageBuff(PokeAPI.Move movetype, PokeAPI.Pokemon pokemontype) { MoveType = movetype; PokemonType = pokemontype; DamageModifier = 1; TypeWeaknessMap BattleTypes = new TypeWeaknessMap(); TypeComparison(BattleTypes); }
public void TypeComparison(TypeWeaknessMap battletypes) { List <string> value = new List <string>(); if (battletypes.TypeMapSuper.TryGetValue(MoveType.Type.ToString(), out value)) { if (value.Contains(PokemonType.Types.ToString())) { SuperEffectiveDamage(); } } else if (battletypes.TypeMapNotVery.TryGetValue(MoveType.Type.ToString(), out value)) { if (value.Contains(PokemonType.Types.ToString())) { NotVeryEffectiveDamage(); } } }