private static void DeStateBerry(PokemonProxy pm, PokemonState state) { if (pm.State == state) { pm.DeAbnormalState("ItemDe" + state.ToString(), pm.Pokemon.Item); pm.ConsumeItem(); } }
public string PokemonState(PokemonState state) { if (state == Game.PokemonState.Normal || PokemonStates == null) { return(null); } return(PokemonStates.ValueOrDefault((int)state - 1) ?? state.ToString()); }