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