Esempio n. 1
0
 public static void triggerUseInBattle(Items item, PokemonUnity.Combat.Pokemon battler, PokemonUnity.Combat.Battle battle)
 {
     // Returns whether item was used
     if (!UseInBattle.ContainsKey(item) || UseInBattle[item] == null)
     {
         //if (!Game.ItemData[item].Flags.Useable_In_Battle) {
         return;
     }
     else
     {
         UseInBattle[item].Invoke(item, battler, battle);
         //ItemHandlers.UseInBattle(item,battler,battle);
     }
 }
Esempio n. 2
0
 public static bool triggerBattleUseOnPokemon(Items item, Pokemon pokemon, PokemonUnity.Combat.Pokemon battler, IPokeBattle_Scene scene)
 {
     // Returns whether item was used
     if (!BattleUseOnPokemon.ContainsKey(item) || BattleUseOnPokemon[item] == null)
     {
         //if (!Game.ItemData[item].Flags.Useable_In_Battle) {
         return(false);
     }
     else
     {
         return(BattleUseOnPokemon[item].Invoke(pokemon, battler, scene));
         //return ItemHandlers.BattleUseOnPokemon(item,pokemon,battler,scene);
     }
 }
Esempio n. 3
0
 public static bool triggerBattleUseOnPokemon(Items item, Pokemon pokemon, PokemonUnity.Combat.Pokemon battler, IHasDisplayMessage scene)
 {
     return(false);
 }
Esempio n. 4
0
 public static bool IsNotNullOrNone(this PokemonUnity.Combat.Pokemon pokemon)
 {
     return(pokemon != null && pokemon.Species != Pokemons.NONE);
 }