public static bool Reset7D(PokemonProxy pm) { Simple6D lvs = (Simple6D)pm.OnboardPokemon.Lv5D; bool raise = false; if (lvs.Atk < 0) { lvs.Atk = 0; raise = true; } if (lvs.Def < 0) { lvs.Def = 0; raise = true; } if (lvs.SpAtk < 0) { lvs.SpAtk = 0; raise = true; } if (lvs.SpDef < 0) { lvs.SpDef = 0; raise = true; } if (lvs.Speed < 0) { lvs.Speed = 0; raise = true; } if (pm.OnboardPokemon.AccuracyLv < 0) { pm.OnboardPokemon.AccuracyLv = 0; raise = true; } if (pm.OnboardPokemon.EvasionLv < 0) { pm.OnboardPokemon.EvasionLv = 0; raise = true; } return(raise); }
internal OnboardPokemon(Pokemon pokemon, int x) { Pokemon = pokemon; FiveD = new Simple6D(); ChangeForm(pokemon.Form); Gender = pokemon.Gender; lv5D = new Simple6D(); X = x; //CoordY 默认值 Type1 = pokemon.Form.Type1; Type2 = pokemon.Form.Type2; }
public static void WhiteHerb(PokemonProxy pm) { if (pm.ItemE(Is.WHITE_HERB)) { Simple6D lvs = (Simple6D)pm.OnboardPokemon.Lv5D; bool raise = false; if (lvs.Atk < 0) { lvs.Atk = 0; raise = true; } if (lvs.Def < 0) { lvs.Def = 0; raise = true; } if (lvs.SpAtk < 0) { lvs.SpAtk = 0; raise = true; } if (lvs.SpDef < 0) { lvs.SpDef = 0; raise = true; } if (lvs.Speed < 0) { lvs.Speed = 0; raise = true; } if (pm.OnboardPokemon.AccuracyLv < 0) { pm.OnboardPokemon.AccuracyLv = 0; raise = true; } if (pm.OnboardPokemon.EvasionLv < 0) { pm.OnboardPokemon.EvasionLv = 0; raise = true; } if (raise) { pm.ShowLogPm("WhiteHerb", pm.Pokemon.Item); pm.ConsumeItem(); } } }