diff --git a/.gitignore b/.gitignore index 0169b2647..f02fbbf68 100644 --- a/.gitignore +++ b/.gitignore @@ -110,3 +110,7 @@ git-journal.fish /Set-AssemblyVersion.ps1 /packages *.DoxyFile +*.meta +* - Copy.cs +* - Copy.cs.meta +/PokemonUnity.WinForm/Resources diff --git a/PokemonLibrary.sln b/PokemonLibrary.sln index c77e3ca6c..347ab6a64 100644 --- a/PokemonLibrary.sln +++ b/PokemonLibrary.sln @@ -10,6 +10,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{1909DF4C-3567-4A1F-8BB6-C2DE6584088D}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + PokemonUnity.Application\.editorconfig = PokemonUnity.Application\.editorconfig .gitattributes = .gitattributes .gitignore = .gitignore .gitmodules = .gitmodules diff --git a/PokemonUnity.Application/.editorconfig b/PokemonUnity.Application/.editorconfig new file mode 100644 index 000000000..2d657d2aa --- /dev/null +++ b/PokemonUnity.Application/.editorconfig @@ -0,0 +1,13 @@ +[*.cs] + +# CS0162: Unreachable code detected +dotnet_diagnostic.CS0162.severity = silent +# CS0219: The variable is assigned but its value is never used +dotnet_diagnostic.CS0219.severity = silent +dotnet_diagnostic.CS0414.severity = silent +dotnet_diagnostic.CS0067.severity = silent +# CS0472: The result of the expression is always 'true' +dotnet_diagnostic.CS0472.severity = silent +# CS0618: Entity used is obsolete +#dotnet_diagnostic.CS0618.severity = silent +#dotnet_diagnostic.CS0612.severity = silent diff --git a/PokemonUnity.Application/Character/Bag.cs b/PokemonUnity.Application/Character/Bag.cs index af80004c5..70c7fc3ce 100644 --- a/PokemonUnity.Application/Character/Bag.cs +++ b/PokemonUnity.Application/Character/Bag.cs @@ -10,19 +10,19 @@ using PokemonUnity.Character; namespace PokemonUnity.Character -{ +{ /// /// Collection of KeyValuePairs grouped by Items. - /// Used in combination with quantity[], - /// one holds the itemId (Key) and the other + /// Used in combination with quantity[], + /// one holds the itemId (Key) and the other /// has amount (value). /// /// I'd feel more comfortable if instead of {get;set;} /// it was a {get;} only, that returned an iqueryable /// ToDo: remove static /// so trainerbag can load multiple players (for netplay) - /*[System.Obsolete("Something i plan to transistion to; not yet ready for full integration")] - public class Bag_Refactor + /*[System.Obsolete("Something i plan to transition to; not yet ready for full integration")] + public class Bag : PokemonEssentials.Interface.Screen.IBag { #region Variables private List items { get; set; } @@ -246,7 +246,7 @@ public KeyValuePair[] Sort(Order by) } return items.ToArray(); } - + /// /// If the player has the in their inventory. /// @@ -269,7 +269,7 @@ public bool HasMegaBracelet() /// newer gens automatically give at start, so default is true... public bool HasRunningShoes() { - //if (!items.Contains(Items.RUNNING_SHOES)) + //if (!items.Contains(Items.RUNNING_SHOES)) // return false; return true; @@ -340,7 +340,7 @@ public bool CanStore(Items item) //Check if item has storage limit //Check if storage limit is met //ToDo: If pocket is full, cannot hold any more items. - //ToDo: if individual item capicity is reached, reject add + //ToDo: if individual item capacity is reached, reject add if (Kernal.ItemData[item].Pocket == ItemPockets.MISC) { if (Core.MAXPOCKETSIZE[(int)ItemPockets.MISC] == -1) return true; @@ -368,13 +368,13 @@ public void GetMessageReceive(Items item, IScene scene, int quantity = 1) Message = Game.GameData.Player.Name + " stored it in the~" + Kernal.ItemData[item].Pocket.ToString() + " pocket."; else Message = Game.GameData.Player.Name + " stored them~in the " + Kernal.ItemData[item].Pocket.ToString() + " pocket."; - //scene.pbDisplayMessage(Message); + //scene.DisplayMessage(Message); } public enum Order { Alphabet, - Quantity, + Quantity, Category, Price } @@ -393,7 +393,7 @@ public partial class PokemonBag : PokemonEssentials.Interface.Screen.IBag { private Dictionary choices; public string[] pocketNames { get { - return null; //Game.GameData.pbPocketNames(); + return null; //Game.GameData.PocketNames(); } } //public ItemPockets pockets { get { // rearrange(); @@ -429,7 +429,7 @@ public void rearrange() { int nump=numPockets; for (int i = 0; i < @pockets.Length; i++) { foreach (Items item in @pockets[i]) { - //ItemPockets p=pbGetPocket(item[0]); + //ItemPockets p=GetPocket(item[0]); ItemPockets p=Kernal.ItemData[item].Pocket??ItemPockets.MISC; if ((int)p<=nump) newpockets[(int)p].Add(item); } @@ -484,9 +484,9 @@ public void setChoice(ItemPockets pocket,int value) { /// Can be retrieved with /// /// - public void pbRegisterKeyItem(Items item) { + public void RegisterKeyItem(Items item) { //if (item is String || item is Symbol) { - // item=getID(PBItems,item); + // item=getID(Items,item); //} //if (item == null || item<1) { // //throw new Exception(Game._INTL("The item number is invalid.")); @@ -501,105 +501,105 @@ public int maxPocketSize(int pocket) { return maxsize.Value; } - public int pbQuantity(Items item) { + public int Quantity(Items item) { //if (item is String || item is Symbol) { - // item=getID(PBItems,item); + // item=getID(Items,item); //} //if (item == null || item<1) { // //throw new Exception(Game._INTL("The item number is invalid.")); // return 0; //} - //ItemPockets pocket=pbGetPocket(item); + //ItemPockets pocket=GetPocket(item); int pocket=(int)(Kernal.ItemData[item].Pocket??ItemPockets.MISC); int maxsize=maxPocketSize(pocket); if (maxsize<0) maxsize=@pockets[(int)pocket].Length; - return ItemStorageHelper.pbQuantity(@pockets[pocket],maxsize,item); + return ItemStorageHelper.Quantity(@pockets[pocket],maxsize,item); } - public bool pbHasItem (Items item) { - return pbQuantity(item)>0; + public bool HasItem (Items item) { + return Quantity(item)>0; } - public bool pbDeleteItem(Items item,int qty=1) { + public bool DeleteItem(Items item,int qty=1) { //if (item is String || item is Symbol) { - // item=getID(PBItems,item); + // item=getID(Items,item); //} //if (item == null || item<1) { // //throw new Exception(Game._INTL("The item number is invalid.")); // return false; //} - //ItemPockets pocket=pbGetPocket(item); + //ItemPockets pocket=GetPocket(item); int pocket=(int)(Kernal.ItemData[item].Pocket??ItemPockets.MISC); int maxsize=maxPocketSize(pocket); if (maxsize<0) maxsize=@pockets[pocket].Length; - bool ret=ItemStorageHelper.pbDeleteItem(ref @pockets[pocket],maxsize,item,qty); + bool ret=ItemStorageHelper.DeleteItem(ref @pockets[pocket],maxsize,item,qty); if (ret) { - if (@registeredItem==item && !pbHasItem(item)) @registeredItem=0; + if (@registeredItem==item && !HasItem(item)) @registeredItem=0; } return ret; } - public bool pbCanStore (Items item,int qty=1) { + public bool CanStore (Items item,int qty=1) { //if (item is String || item is Symbol) { - // item=getID(PBItems,item); + // item=getID(Items,item); //} //if (!item || item<1) { // //throw new Exception(Game._INTL("The item number is invalid.")); // return false; //} - //ItemPockets pocket=pbGetPocket(item); + //ItemPockets pocket=GetPocket(item); int pocket=(int)(Kernal.ItemData[item].Pocket??ItemPockets.MISC); int maxsize=maxPocketSize(pocket); if (maxsize<0) maxsize=@pockets[pocket].Length+1; - return ItemStorageHelper.pbCanStore( + return ItemStorageHelper.CanStore( @pockets[pocket],maxsize,Core.BAGMAXPERSLOT,item,qty); } - public bool pbStoreAllOrNone(Items item,int qty=1) { - //if (item is String || item is Symbol) { - // item=getID(PBItems,item); - //} - //if (item == null || item<1) { - // //throw new Exception(Game._INTL("The item number is invalid.")); - // return false; - //} - //ItemPockets pocket=pbGetPocket(item); - int pocket=(int)(Kernal.ItemData[item].Pocket??ItemPockets.MISC); - int maxsize=maxPocketSize(pocket); - if (maxsize<0) maxsize=@pockets[pocket].Length+1; - return ItemStorageHelper.pbStoreItem(ref - @pockets[pocket],maxsize,Core.BAGMAXPERSLOT,item,qty); + public bool StoreAllOrNone(Items item,int qty=1) { + //if (item is String || item is Symbol) { + // item=getID(Items,item); + //} + //if (item == null || item<1) { + // //throw new Exception(Game._INTL("The item number is invalid.")); + // return false; + //} + //ItemPockets pocket=GetPocket(item); + int pocket=(int)(Kernal.ItemData[item].Pocket??ItemPockets.MISC); + int maxsize=maxPocketSize(pocket); + if (maxsize<0) maxsize=@pockets[pocket].Length+1; + return ItemStorageHelper.StoreItem(ref + @pockets[pocket],maxsize,Core.BAGMAXPERSLOT,item,qty); } - public bool pbStoreItem(Items item,int qty=1) { + public bool StoreItem(Items item,int qty=1) { //if (item is String || item is Symbol) { - // item=getID(PBItems,item); + // item=getID(Items,item); //} //if (item == null || item<1) { // //throw new Exception(Game._INTL("The item number is invalid.")); // return false; //} - //ItemPockets pocket=pbGetPocket(item); + //ItemPockets pocket=GetPocket(item); int pocket=(int)(Kernal.ItemData[item].Pocket??ItemPockets.MISC); int maxsize=maxPocketSize(pocket); if (maxsize<0) maxsize=@pockets[pocket].Length+1; - return ItemStorageHelper.pbStoreItem(ref + return ItemStorageHelper.StoreItem(ref @pockets[pocket],maxsize,Core.BAGMAXPERSLOT,item,qty,true); } - public bool pbChangeItem(Items olditem,Items newitem) { + public bool ChangeItem(Items olditem,Items newitem) { //if (olditem is String || olditem is Symbol) { - // olditem=getID(PBItems,olditem); + // olditem=getID(Items,olditem); //} //if (newitem is String || newitem is Symbol) { - // newitem=getID(PBItems,newitem); + // newitem=getID(Items,newitem); //} //if (olditem == null || olditem<1 || newitem == null || newitem<1) { if ((int)olditem<1 || (int)newitem<1) { //throw new Exception(Game._INTL("The item number is invalid.")); return false; } - //ItemPockets pocket=pbGetPocket(olditem); + //ItemPockets pocket=GetPocket(olditem); int pocket=(int)(Kernal.ItemData[olditem].Pocket??ItemPockets.MISC); int maxsize=maxPocketSize(pocket); if (maxsize<0) maxsize=@pockets[pocket].Length; diff --git a/PokemonUnity.Application/Character/DayCare.cs b/PokemonUnity.Application/Character/DayCare.cs index 9161ef1b8..946e613bd 100644 --- a/PokemonUnity.Application/Character/DayCare.cs +++ b/PokemonUnity.Application/Character/DayCare.cs @@ -26,7 +26,7 @@ public class DayCare : PokemonEssentials.Interface.Field.IDayCare public bool HasEgg { get; } public int Egg { get; } public IPokemon this[int index] - { + { get { return Slot[index].Key; } set { Slot[index] = new KeyValuePair(value, 0); } //ToDo: Add if/else null? } @@ -40,12 +40,12 @@ public DayCare(int slots) #endregion #region Methods - public bool pbEggGenerated() { - if (pbDayCareDeposited()!=2) return false; + public bool EggGenerated() { + if (DayCareDeposited()!=2) return false; return Game.GameData.Global.daycareEgg;//==1; } - public int pbDayCareDeposited() { + public int DayCareDeposited() { int ret=0; for (int i = 0; i < 2; i++) { if (this[i].IsNotNullOrNone()) ret+=1;//[0] @@ -53,7 +53,7 @@ public int pbDayCareDeposited() { return ret; } - public void pbDayCareDeposit(int index) { + public void DayCareDeposit(int index) { for (int i = 0; i < 2; i++) { if (!this[i].IsNotNullOrNone()) {//[0] this[i]=Game.GameData.Trainer.party[index];//[0] @@ -72,7 +72,7 @@ public void pbDayCareDeposit(int index) { GameDebug.LogError(Game._INTL("No room to deposit a Pokémon")); } - public bool pbDayCareGetLevelGain(int index,int nameVariable,int levelVariable) { + public bool DayCareGetLevelGain(int index,int nameVariable,int levelVariable) { IPokemon pkmn=this[index];//[0]; if (!pkmn.IsNotNullOrNone()) return false; Game.GameData.GameVariables[nameVariable]=pkmn.Name; @@ -80,7 +80,7 @@ public bool pbDayCareGetLevelGain(int index,int nameVariable,int levelVariable) return true; } - public void pbDayCareGetDeposited(int index,int nameVariable,int costVariable) { + public void DayCareGetDeposited(int index,int nameVariable,int costVariable) { for (int i = 0; i < 2; i++) { if ((index<0||i==index) && this[i].IsNotNullOrNone()) {//[0] int cost=this[i].Level-this[i].Level;//[0]|[1] ToDo: Levels raised since drop-off @@ -96,9 +96,9 @@ public void pbDayCareGetDeposited(int index,int nameVariable,int costVariable) { GameDebug.LogError(Game._INTL("Can't find deposited Pokémon")); } - public bool pbIsDitto (IPokemon pokemon) { - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,pokemon.Species,31); + public bool IsDitto (IPokemon pokemon) { + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pokemon.Species,31); EggGroups compat10=Kernal.PokemonData[pokemon.Species].EggGroup[0]; //dexdata.fgetb(); EggGroups compat11=Kernal.PokemonData[pokemon.Species].EggGroup[1]; //dexdata.fgetb(); //dexdata.close(); @@ -106,29 +106,29 @@ public bool pbIsDitto (IPokemon pokemon) { compat11 == EggGroups.DITTO; } - public bool pbDayCareCompatibleGender(IPokemon pokemon1,IPokemon pokemon2) { + public bool DayCareCompatibleGender(IPokemon pokemon1,IPokemon pokemon2) { if ((pokemon1.IsFemale && pokemon2.IsMale) || (pokemon1.IsMale && pokemon2.IsFemale)) { return true; } - bool ditto1=pbIsDitto(pokemon1); - bool ditto2=pbIsDitto(pokemon2); + bool ditto1=IsDitto(pokemon1); + bool ditto2=IsDitto(pokemon2); if (ditto1 && !ditto2) return true; if (ditto2 && !ditto1) return true; return false; } - public int pbDayCareGetCompat() { - if (pbDayCareDeposited()==2) { + public int DayCareGetCompat() { + if (DayCareDeposited()==2) { IPokemon pokemon1=this[0];//[0]; IPokemon pokemon2=this[1];//[0]; if (pokemon1 is IPokemonShadowPokemon s0 && s0.isShadow) return 0; //? rescue false if (pokemon2 is IPokemonShadowPokemon s1 && s1.isShadow) return 0; //? rescue false - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,pokemon1.Species,31); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pokemon1.Species,31); EggGroups compat10=Kernal.PokemonData[pokemon1.Species].EggGroup[0]; //dexdata.fgetb(); EggGroups compat11=Kernal.PokemonData[pokemon1.Species].EggGroup[1]; //dexdata.fgetb(); - //pbDexDataOffset(dexdata,pokemon2.Species,31); + //DexDataOffset(dexdata,pokemon2.Species,31); EggGroups compat20=Kernal.PokemonData[pokemon1.Species].EggGroup[0]; //dexdata.fgetb(); EggGroups compat21=Kernal.PokemonData[pokemon1.Species].EggGroup[1]; //dexdata.fgetb(); //dexdata.close(); @@ -142,7 +142,7 @@ public int pbDayCareGetCompat() { compat11 == EggGroups.DITTO || compat20 == EggGroups.DITTO || compat21 == EggGroups.DITTO) { - if (pbDayCareCompatibleGender(pokemon1,pokemon2)) { + if (DayCareCompatibleGender(pokemon1,pokemon2)) { int ret=1; if (pokemon1.Species==pokemon2.Species) ret+=1; if (pokemon1.publicID!=pokemon2.publicID) ret+=1; @@ -154,11 +154,11 @@ public int pbDayCareGetCompat() { return 0; } - public void pbDayCareGetCompatibility(int variable) { - Game.GameData.GameVariables[variable]=pbDayCareGetCompat(); + public void DayCareGetCompatibility(int variable) { + Game.GameData.GameVariables[variable]=DayCareGetCompat(); } - public void pbDayCareWithdraw(int index) { + public void DayCareWithdraw(int index) { if (!this[index].IsNotNullOrNone()) {//[0] //raise Game._INTL("There's no Pokémon here..."); //throw new Exception(Game._INTL("There's no Pokémon here...")); @@ -175,8 +175,8 @@ public void pbDayCareWithdraw(int index) { } } - public void pbDayCareChoose(string text,int variable) { - int count=pbDayCareDeposited(); + public void DayCareChoose(string text,int variable) { + int count=DayCareDeposited(); if (count==0) { //raise Game._INTL("There's no Pokémon here..."); //throw new Exception(Game._INTL("There's no Pokémon here...")); @@ -196,13 +196,13 @@ public void pbDayCareChoose(string text,int variable) { } } choices.Add(Game._INTL("CANCEL")); - int command=Game.GameData is IGameMessage m ? m.pbMessage(text,choices.ToArray(),choices.Count) : -1; + int command=Game.GameData is IGameMessage m ? m.Message(text,choices.ToArray(),choices.Count) : -1; Game.GameData.GameVariables[variable]=(command==2) ? -1 : command; } } - public void pbDayCareGenerateEgg() { - if (pbDayCareDeposited()!=2) { + public void DayCareGenerateEgg() { + if (DayCareDeposited()!=2) { return; } else if (Game.GameData.Trainer.party.Length>=6) { //raise Game._INTL("Can't store the egg"); @@ -214,8 +214,8 @@ public void pbDayCareGenerateEgg() { IPokemon mother=null; IPokemon father=null; Pokemons babyspecies=0; - bool ditto0=pbIsDitto(pokemon0); - bool ditto1=pbIsDitto(pokemon1); + bool ditto0=IsDitto(pokemon0); + bool ditto1=IsDitto(pokemon1); if ((pokemon0.IsFemale || ditto0)) { babyspecies=(ditto0) ? pokemon1.Species : pokemon0.Species; mother=pokemon0; @@ -225,24 +225,24 @@ public void pbDayCareGenerateEgg() { mother=pokemon1; father=pokemon0; } - babyspecies= EvolutionHelper.pbGetBabySpecies(babyspecies,mother.Item,father.Item); - if (babyspecies == Pokemons.MANAPHY) { //&& hasConst?(PBSpecies,:PHIONE) + babyspecies= EvolutionHelper.GetBabySpecies(babyspecies,mother.Item,father.Item); + if (babyspecies == Pokemons.MANAPHY) { //&& hasConst?(Species,:PHIONE) babyspecies=Pokemons.PHIONE; - } else if ((babyspecies == Pokemons.NIDORAN_F) || //&& hasConst?(PBSpecies,:NIDORANmA) - (babyspecies == Pokemons.NIDORAN_M)) { //&& hasConst?(PBSpecies,:NIDORANfE) + } else if ((babyspecies == Pokemons.NIDORAN_F) || //&& hasConst?(Species,:NIDORANmA) + (babyspecies == Pokemons.NIDORAN_M)) { //&& hasConst?(Species,:NIDORANfE) babyspecies=new Pokemons[]{ Pokemons.NIDORAN_M, Pokemons.NIDORAN_F }[Core.Rand.Next(2)]; - } else if ((babyspecies == Pokemons.VOLBEAT) || //&& hasConst?(PBSpecies,:ILLUMISE) - (babyspecies == Pokemons.ILLUMISE)) { //&& hasConst?(PBSpecies,:VOLBEAT) + } else if ((babyspecies == Pokemons.VOLBEAT) || //&& hasConst?(Species,:ILLUMISE) + (babyspecies == Pokemons.ILLUMISE)) { //&& hasConst?(Species,:VOLBEAT) babyspecies=new Pokemons[] { Pokemons.VOLBEAT, Pokemons.ILLUMISE }[Core.Rand.Next(2)]; } //Generate egg //IPokemon egg=new PokeBattle_Pokemon(babyspecies,Core.EGGINITIALLEVEL,Game.GameData.Player); IPokemon egg=new Pokemon(babyspecies,Core.EGGINITIALLEVEL,isEgg: true);//,Game.GameData.Player - //Randomise personal ID - int pid=Core.Rand.Next(65536); - pid|=(Core.Rand.Next(65536)<<16); + //Randomize personal ID + //int pid=Core.Rand.Next(65536); + //pid|=(Core.Rand.Next(65536)<<16); //egg.PersonalId=pid; //Inheriting form if ((egg is IPokemonMultipleForms e && mother is IPokemonMultipleForms m) && ( @@ -256,13 +256,13 @@ public void pbDayCareGenerateEgg() { HashSet moves=new HashSet(); HashSet othermoves=new HashSet(); IPokemon movefather=father;IPokemon movemother=mother; - if (pbIsDitto(movefather) && !mother.IsFemale) { + if (IsDitto(movefather) && !mother.IsFemale) { movefather=mother; movemother=father; } //Initial Moves Moves[] initialmoves=egg.getMoveList(); //Level|Moves //foreach (Moves k in initialmoves) { //Key: Level | Value: Move - foreach (KeyValuePair k in Kernal.PokemonMovesData[egg.Species].LevelUp) { + foreach (KeyValuePair k in Kernal.PokemonMovesData[egg.Species].LevelUp) { if (k.Value<=Core.EGGINITIALLEVEL) { moves.Add(k.Key); } else { @@ -290,7 +290,7 @@ public void pbDayCareGenerateEgg() { } // Inheriting Egg Moves if (movefather.IsMale) { - //pbRgssOpen("Data/eggEmerald.dat","rb"){|f| + //RgssOpen("Data/eggEmerald.dat","rb"){|f| // f.pos=(babyspecies-1)*8; // int offset=f.fgetdw; // int length=f.fgetdw; @@ -305,7 +305,7 @@ public void pbDayCareGenerateEgg() { //} } if (Core.USENEWBATTLEMECHANICS) { - //pbRgssOpen("Data/eggEmerald.dat","rb"){|f| + //RgssOpen("Data/eggEmerald.dat","rb"){|f| // f.pos=(babyspecies-1)*8; // offset=f.fgetdw; // length=f.fgetdw; @@ -321,18 +321,18 @@ public void pbDayCareGenerateEgg() { } // Volt Tackle bool lightball=false; - if ((father.Species == Pokemons.PIKACHU || - father.Species == Pokemons.RAICHU) && + if ((father.Species == Pokemons.PIKACHU || + father.Species == Pokemons.RAICHU) && father.Item == Items.LIGHT_BALL) { lightball=true; } - if ((mother.Species == Pokemons.PIKACHU || - mother.Species == Pokemons.RAICHU) && + if ((mother.Species == Pokemons.PIKACHU || + mother.Species == Pokemons.RAICHU) && mother.Item == Items.LIGHT_BALL) { lightball=true; } if (lightball && babyspecies == Pokemons.PICHU - ) { //&& hasConst?(PBMoves,:VOLTTACKLE) + ) { //&& hasConst?(Moves,:VOLTTACKLE) moves.Add(Moves.VOLT_TACKLE); } //moves|=[]; // remove duplicates @@ -398,8 +398,8 @@ public void pbDayCareGenerateEgg() { // Masuda method and Shiny Charm int shinyretries=0; //if (father.language!=mother.language) shinyretries+=5; - if (//hasConst?(PBItems,:SHINYCHARM) && - Game.GameData.Bag.pbQuantity(Items.SHINY_CHARM)>0) shinyretries+=2; + if (//hasConst?(Items,:SHINYCHARM) && + Game.GameData.Bag.Quantity(Items.SHINY_CHARM)>0) shinyretries+=2; if (shinyretries>0) { for (int i = 0; i < shinyretries; i++) { if (egg.IsShiny) break; @@ -426,8 +426,8 @@ public void pbDayCareGenerateEgg() { } // Inheriting Poké Ball from the mother if (mother.IsFemale && - mother.ballUsed != Items.MASTER_BALL && //!pbBallTypeToBall(mother.ballUsed) - mother.ballUsed != Items.CHERISH_BALL){ //!pbBallTypeToBall(mother.ballUsed) + mother.ballUsed != Items.MASTER_BALL && //!BallTypeToBall(mother.ballUsed) + mother.ballUsed != Items.CHERISH_BALL){ //!BallTypeToBall(mother.ballUsed) egg.ballUsed=mother.ballUsed; } egg.IV[0]=(byte)ivs[0]; @@ -443,8 +443,8 @@ public void pbDayCareGenerateEgg() { //egg.calcStats(); //egg.obtainText=Game._INTL("Day-Care Couple"); //ToDo: Set obtain for daycare //egg.Name=Game._INTL("Egg"); - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,babyspecies,21); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,babyspecies,21); //int eggsteps=dexdata.fgetw; //dexdata.close(); //egg.eggsteps=eggsteps; @@ -457,15 +457,15 @@ public void pbDayCareGenerateEgg() { //Events.onStepTaken+=delegate(object sender, EventArgs e) { public void OnStepTakenEventHandler(object sender, IOnStepTakenFieldMovementEventArgs e) { if (Game.GameData.Player == null) return; - int deposited= this.pbDayCareDeposited(); + int deposited= this.DayCareDeposited(); if (deposited==2 && !Game.GameData.Global.daycareEgg) {//==0 if (Game.GameData.Global.daycareEggSteps == null) Game.GameData.Global.daycareEggSteps=0; Game.GameData.Global.daycareEggSteps+=1; if (Game.GameData.Global.daycareEggSteps==256) { Game.GameData.Global.daycareEggSteps=0; - int compatval=new int[] {0,20,50,70}[this.pbDayCareGetCompat()]; - if (Game.GameData.Bag.pbQuantity(Items.OVAL_CHARM)>0) { //hasConst?(PBItems,:OVALCHARM) && - compatval=new int[] {0,40,80,88}[this.pbDayCareGetCompat()]; + int compatval=new int[] {0,20,50,70}[this.DayCareGetCompat()]; + if (Game.GameData.Bag.Quantity(Items.OVAL_CHARM)>0) { //hasConst?(Items,:OVALCHARM) && + compatval=new int[] {0,40,80,88}[this.DayCareGetCompat()]; } int rnd=Core.Rand.Next(100); if (rnd j in movelist) { - if (j.Value==pkmn.Level) pkmn.pbLearnMove(j.Key); // Learned a new move + if (j.Value==pkmn.Level) pkmn.LearnMove(j.Key); // Learned a new move } } } @@ -506,12 +506,12 @@ public void OnStepTakenEventHandler(object sender, IOnStepTakenFieldMovementEven public bool Equals(DayCare obj) { if (obj == null) return false; - return this == obj; + return this == obj; } public bool Equals(Character.Player obj) { if (obj == null) return false; - return this == obj; + return this == obj; } public override bool Equals(object obj) { diff --git a/PokemonUnity.Application/Character/ItemStorage.cs b/PokemonUnity.Application/Character/ItemStorage.cs new file mode 100644 index 000000000..d88e861a1 --- /dev/null +++ b/PokemonUnity.Application/Character/ItemStorage.cs @@ -0,0 +1,180 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using PokemonUnity; +using PokemonUnity.Monster; +using PokemonUnity.Attack; +using PokemonUnity.Inventory; +using PokemonUnity.Saving.SerializableClasses; +using PokemonUnity.Character; + +namespace PokemonUnity.Character +{ + /// + /// The PC item storage object, which actually contains all the items + /// + public partial class PCItemStorage : PokemonEssentials.Interface.Screen.IPCItemStorage, IList, ICollection + { + /// + /// Number of different slots in storage + /// + public const int MAXSIZE = 50; + /// + /// Max. number of items per slot + /// + public const int MAXPERSLOT = 999; + private IList items; + int ICollection.Count { get { return items.Count; } } + bool ICollection.IsReadOnly { get { return items.IsReadOnly; } } + + public PCItemStorage() { initialize(); } + + public PokemonEssentials.Interface.Screen.IPCItemStorage initialize() + { + @items = new Items[0]; //[]; + // Start storage with a Potion + //if (hasConst(Items,:POTION)) { + //ItemStorageHelper.StoreItem(ref + // @items.ToArray(), MAXSIZE, MAXPERSLOT, Items.POTION, 1); + //} + return this; + } + + public bool empty() + { + return @items.Count == 0; + } + + public int length() + { + return @items.Count; + } + + public Items this[int i] + { + get + { + return @items[i]; + } + set { (this as IList).Insert(i, value); } + } + + public Items getItem(int index) + { + if (index < 0 || index >= @items.Count) + { + return 0; + } + else + { + return @items[index];//[0]; + //return @items[index].Key;//[0]; + } + } + + public int getCount(int index) + { + if (index < 0 || index >= @items.Count) + { + return 0; + } + else + { + //return @items[index].Value;//[1]; + return @items.Count; + } + } + + public int Quantity(Items item) + { + return ItemStorageHelper.Quantity(@items.ToArray(), MAXSIZE, item); + } + + public bool DeleteItem(Items item, int qty = 1) + { + Items[] i = @items.ToArray(); + //return ItemStorageHelper.DeleteItem(ref @items.ToArray(), MAXSIZE, item, qty); + return ItemStorageHelper.DeleteItem(ref i, MAXSIZE, item, qty); + } + + public bool CanStore(Items item, int qty = 1) + { + return ItemStorageHelper.CanStore(@items.ToArray(), MAXSIZE, MAXPERSLOT, item, qty); + } + + public bool StoreItem(Items item, int qty = 1) + { + //Items[] i = @items.ToArray(); + //return ItemStorageHelper.StoreItem(@items.ToArray(), MAXSIZE, MAXPERSLOT, item, qty); + //return ItemStorageHelper.StoreItem(ref items.ToArray(), MAXSIZE, MAXPERSLOT, item, qty); + return false; //ToDo: Uncomment and Finish + } + + #region Interface Methods + void ICollection.Add(Items item) + { + //if there is space add to box + //if (!items.Contains(item) && item != Items.NONE) + // //items.Add(item); + // ItemStorageHelper.StoreItem(ref items.ToArray(), MAXSIZE, MAXPERSLOT, item, 1); + } + + void ICollection.Clear() + { + //items.Clear(); + initialize(); + } + + bool ICollection.Contains(Items item) + { + //should return false for both null and none + if (item == Items.NONE) return false; + return items.Contains(item); + } + + void ICollection.CopyTo(Items[] array, int arrayIndex) + { + items.CopyTo(array, arrayIndex); + } + + bool ICollection.Remove(Items item) + { + if (item == Items.NONE) return true; + //if object is removed, it will remove nulls and empty space + return items.Remove(item); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return items.GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return items.GetEnumerator(); + } + + int IList.IndexOf(Items item) + { + if (item == Items.NONE) return -1; + //return ((IList)items).IndexOf(item); + return items.IndexOf(item); + } + + void IList.Insert(int index, Items item) + { + if (item == Items.NONE) return; + //return ((IList)items).Insert(index, item); + items.Insert(index, item); + } + + void IList.RemoveAt(int index) + { + //((IList)items).RemoveAt(index); + items.RemoveAt(index); + } + #endregion + } +} \ No newline at end of file diff --git a/PokemonUnity.Application/Character/PC.cs b/PokemonUnity.Application/Character/PC.cs index b129af0c0..e3dde94fa 100644 --- a/PokemonUnity.Application/Character/PC.cs +++ b/PokemonUnity.Application/Character/PC.cs @@ -8,114 +8,19 @@ using PokemonUnity.Inventory; using PokemonUnity.Saving.SerializableClasses; using PokemonUnity.Character; +using PokemonEssentials.Interface.Screen; +using PokemonEssentials.Interface.PokeBattle; namespace PokemonUnity.Character { - /// - /// The PC item storage object, which actually contains all the items - /// - public partial class PCItemStorage : PokemonEssentials.Interface.Screen.IPCItemStorage - { - /// - /// Number of different slots in storage - /// - public const int MAXSIZE = 50; - /// - /// Max. number of items per slot - /// - public const int MAXPERSLOT = 999; - private IList items; - - - public PCItemStorage() { initialize(); } - public PokemonEssentials.Interface.Screen.IPCItemStorage initialize() - { - @items = new Items[0]; //[]; - // Start storage with a Potion - //if (hasConst(PBItems,:POTION)) { - //ItemStorageHelper.pbStoreItem(ref - // @items.ToArray(), MAXSIZE, MAXPERSLOT, Items.POTION, 1); - //} - return this; - } - - public bool empty() - { - return @items.Count == 0; - } - - public int length() - { - return @items.Count; - } - - public Items this[int i] - { - get - { - return @items[i]; - } - } - - public Items getItem(int index) - { - if (index < 0 || index >= @items.Count) - { - return 0; - } - else - { - return @items[index];//[0]; - //return @items[index].Key;//[0]; - } - } - - public int getCount(int index) - { - if (index < 0 || index >= @items.Count) - { - return 0; - } - else - { - //return @items[index].Value;//[1]; - return @items.Count; - } - } - - public int pbQuantity(Items item) - { - return ItemStorageHelper.pbQuantity(@items.ToArray(), MAXSIZE, item); - } - - public bool pbDeleteItem(Items item, int qty = 1) - { - Items[] i = @items.ToArray(); - //return ItemStorageHelper.pbDeleteItem(ref @items.ToArray(), MAXSIZE, item, qty); - return ItemStorageHelper.pbDeleteItem(ref i, MAXSIZE, item, qty); - } - - public bool pbCanStore(Items item, int qty = 1) - { - return ItemStorageHelper.pbCanStore(@items.ToArray(), MAXSIZE, MAXPERSLOT, item, qty); - } - - public bool pbStoreItem(Items item, int qty = 1) - { - Items[] i = @items.ToArray(); - //return ItemStorageHelper.pbStoreItem(@items.ToArray(), MAXSIZE, MAXPERSLOT, item, qty); - return ItemStorageHelper.pbStoreItem(ref i, MAXSIZE, MAXPERSLOT, item, qty); - } - } - //ToDo: Add Function to add more boxes to player pc // OR! A function to disable boxes until they're "unlocked" // Max # of boxes would be hard-capped if option 2 //Add Game.GameData.Feature where player unlocks more boxes - [System.Obsolete("Something i plan to transistion to; not yet ready for full integration")] - public class PC_Refactor + [System.Obsolete("Something i plan to transition to; not yet ready for full integration")] + public class PC : PokemonEssentials.Interface.Screen.IPCPokemonStorage { - #region Variables + #region Variables //private List mails { get; set; } //ToDo: Add Mail to PC class /// /// @@ -124,13 +29,13 @@ public class PC_Refactor /// //private List items { get; set; } private Dictionary items { get; set; } - private Pokemon[,] pokemons { get; set; } + private IPokemon[,] pokemons { get; set; } //public Pokemon[,] AllBoxes { get { return pokemons; } } - public Pokemon[][] AllBoxes + public IPokemon[][] AllBoxes { get { - Pokemon[][] pkmns = new Pokemon[pokemons.GetLength(0)][]; + IPokemon[][] pkmns = new Pokemon[pokemons.GetLength(0)][]; for (int i = 0; i < pkmns.GetLength(0); i++) { pkmns[i] = new Pokemon[pokemons.GetLength(1)]; @@ -147,12 +52,12 @@ public Pokemon[][] AllBoxes public int[] BoxTextures { get; private set; } public string Name { get { return BoxNames[ActiveBox] ?? "Box " + (ActiveBox + 1).ToString(); } } public int Texture { get { return BoxTextures[ActiveBox]; } } - public Pokemon[] Pokemons + public IPokemon[] Pokemons { get { - Pokemon[] p = new Pokemon[30]; - for (int t = 0; t < 30; t++) + IPokemon[] p = new Pokemon[pokemons.GetLength(1)]; + for (int t = 0; t < p.Length; t++) { p[t] = pokemons[ActiveBox, t]; } @@ -181,7 +86,7 @@ public KeyValuePair[] Items //int count = items.Where(x => x == item).Count(); int count = item.Value; int groups = (int)Math.Floor(total / 99d); - //Max number of items in an individual slot is capped + //Max number of items in an individual slot is capped for (int i = 0; i < (int)Math.Floor(count / 99d); i++) { // pairs[index] = new KeyValuePair(item.Key, 99); @@ -199,28 +104,82 @@ public KeyValuePair[] Items return l.ToArray(); } } - //ToDo: return pokemon box, without changing activebox - public PC_Refactor this[byte i] + + #region Interface + IPokemonBox[] IPCPokemonStorage.boxes { get { - i = (byte)(i % Core.STORAGEBOXES); + IPokemonBox[] boxes = new PokemonBox[pokemons.GetLength(0)]; + for (int i = 0; i < boxes.Length; i++) + { + //int ip1 = i + 1; + @boxes[i] = new PokemonBox(BoxNames[i] ?? "Box " + (i + 1).ToString(), //string.Format("Box {0}", ip1), + pokemons.GetLength(1)); + //int backid = i % 24; + @boxes[i].background = BoxTextures[i].ToString(); //$"box{backid}"; + } + return boxes; + } + } + + int IPCPokemonStorage.currentBox { get { return ActiveBox; } set { ActiveBox = (byte)value; } } + + int IPCPokemonStorage.maxBoxes { get { return pokemons.GetLength(0); } } + + IPokemon[] IPCPokemonStorage.party { get { return Game.GameData.Trainer.party; } } + + bool IPCPokemonStorage.full + { + get + { + for(int i = 0; i < pokemons.GetLength(1);i++) + { + if (!pokemons[ActiveBox, i].IsNotNullOrNone()) + return false; + } + return true; //pokemons.Count(p => p.IsNotNullOrNone()); + } + } + + IPokemon IPCPokemonStorage.this[int x, int y] { get { return pokemons[x,y]; } set { pokemons[x, y] = value; } } + + IPokemonBox IPCPokemonStorage.this[int x] + { + get + { + x = (byte)(x % pokemons.GetLength(0)); //Core.STORAGEBOXES); + return this[(byte)x]; + } + } + + //ToDo: return pokemon box, without changing activebox? + public IPokemonBox this[byte i] + { + get + { + i = (byte)(i % pokemons.GetLength(0)); //Core.STORAGEBOXES); this.ActiveBox = i; - //Pokemon[] p = new Pokemon[30]; - //for (int t = 0; t < 30; t++) - //{ - // p[t] = Game.GameData.PC_Poke[i, t]; - //} - //this.Pokemons = p; - //this.Texture = Game.GameData.PC_boxTexture[i]; - //this.Name = Game.GameData.PC_boxNames[i] ?? "Box " + (i + 1).ToString(); - return this; + IPokemonBox box = new PokemonBox(BoxNames[i] ?? "Box " + (i + 1).ToString(), //string.Format("Box {0}", ip1), + pokemons.GetLength(1)); + box.background = BoxTextures[i].ToString(); //$"box{backid}"; + for (int t = 0; t < box.length; t++) + { + IPokemon p = pokemons[i, t]; + if (p.IsNotNullOrNone()) + { + //box[t] = pokemons[x, t]; + box[t] = p; //Add + } + } + return box; } } #endregion + #endregion #region Constructors - public PC_Refactor() + public PC() { //PC_Poke = new Pokemon[Core.STORAGEBOXES, 30]; pokemons = new Pokemon[Core.STORAGEBOXES, 30]; @@ -239,13 +198,13 @@ public PC_Refactor() //ToDo: Using string from translator here BoxNames[i] = string.Format("Box {0}", (i + 1).ToString()); //PC_boxTexture[i] = i; - BoxTextures[i] = i; + BoxTextures[i] = i; } //PC_Items = new List(); items = new Dictionary() { { Inventory.Items.POTION, 1 } }; } - public PC_Refactor(Pokemon[][] pkmns = null, KeyValuePair[] items = null, byte? box = null, string[] names = null, int[] textures = null) : this() + public PC(IPokemon[][] pkmns = null, KeyValuePair[] items = null, byte? box = null, string[] names = null, int[] textures = null) : this() { if (names != null) BoxNames = names; @@ -270,6 +229,11 @@ public PC_Refactor(Pokemon[][] pkmns = null, KeyValuePair[] items = n pokemons[x, y] = pkmns[x][y]; } //public PC(Pokemon[] pokemons = null, Items[] items = null, byte? box = null, string[] names = null, int[] textures = null) : this() + + IPCPokemonStorage IPCPokemonStorage.initialize(int maxBoxes, int maxPokemon) + { + throw new NotImplementedException(); + } #endregion #region Methods @@ -318,13 +282,14 @@ public int getBoxCount(int box) return result; } - public bool removePokemon(int boxID, int pkmnID) { - if (this[Convert.ToByte(boxID)].Pokemons[pkmnID].IsNotNullOrNone()) + byte x = (byte)(boxID % pokemons.GetLength(0)); //Core.STORAGEBOXES); + byte y = (byte)(pkmnID % pokemons.GetLength(1)); + if (pokemons[x,y].IsNotNullOrNone()) { Pokemons[pkmnID] = new Pokemon(); - pokemons[boxID, pkmnID] = new Pokemon(); + pokemons[x, y] = new Pokemon(); return true; } return false; @@ -333,7 +298,7 @@ public bool removePokemon(int boxID, int pkmnID) //{ // try // { - // PokemonEssentials.Interface.PokeBattle.IPokemon PartyHolder = player.party[PartyID]; + // PokemonEssentials.Interface.PokeBattle.IPokemon PartyHolder = player.party[PartyID]; // player.party[PartyID] = player.PC.Pokemons[PCBoxID]; // Pokemons[PCBoxID] = PartyHolder; // pokemons[ActiveBox, PCBoxID] = PartyHolder; @@ -345,7 +310,7 @@ public bool removePokemon(int boxID, int pkmnID) // return false; // } //} - public bool addPokemon(int box, int position, Pokemon pokemon) + public bool addPokemon(int box, int position, IPokemon pokemon) { try { @@ -359,14 +324,14 @@ public bool addPokemon(int box, int position, Pokemon pokemon) } /// - /// Add a new pokemon directly to active box. + /// Add a new pokemon directly to active box. /// /// /// /// Returns position of stored pokemon. /// If pokemon could not be added return null. /// - public KeyValuePair? addPokemon(Pokemon acquiredPokemon) + public KeyValuePair? addPokemon(IPokemon acquiredPokemon) { //attempt to add to the earliest available opening in active box. no array packing needed. if (hasSpace()) @@ -382,10 +347,51 @@ public bool addPokemon(int box, int position, Pokemon pokemon) public void swapPokemon(int box1, int pos1, int box2, int pos2) { - Pokemon temp = pokemons[box1, pos1]; + IPokemon temp = pokemons[box1, pos1]; pokemons[box1, pos1] = pokemons[box2, pos2]; pokemons[box2, pos2] = temp; } + + int IPCPokemonStorage.maxPokemon(int box) + { + throw new NotImplementedException(); + } + + int IPCPokemonStorage.FirstFreePos(int box) + { + throw new NotImplementedException(); + } + + bool IPCPokemonStorage.Copy(int boxDst, int indexDst, int boxSrc, int indexSrc) + { + throw new NotImplementedException(); + } + + bool IPCPokemonStorage.Move(int boxDst, int indexDst, int boxSrc, int indexSrc) + { + throw new NotImplementedException(); + } + + void IPCPokemonStorage.MoveCaughtToParty(IPokemon pkmn) + { + throw new NotImplementedException(); + } + + bool IPCPokemonStorage.MoveCaughtToBox(IPokemon pkmn, int box) + { + throw new NotImplementedException(); + } + + int IPCPokemonStorage.StoreCaught(IPokemon pkmn) + { + KeyValuePair? kv = addPokemon(pkmn); + return kv == null ? -1 : kv.Value.Key; //return the box + } + + void IPCPokemonStorage.Delete(int box, int index) + { + removePokemon(box, index); + } #endregion } } @@ -497,7 +503,7 @@ public bool hasSpace() }* / /// - /// Add a new pokemon directly to active box. + /// Add a new pokemon directly to active box. /// If pokemon could not be added return false. /// /// diff --git a/PokemonUnity.Application/Character/PokemonStorage.cs b/PokemonUnity.Application/Character/PokemonStorage.cs index d45fe9ed3..a91444cbd 100644 --- a/PokemonUnity.Application/Character/PokemonStorage.cs +++ b/PokemonUnity.Application/Character/PokemonStorage.cs @@ -1,5 +1,7 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Linq; using System.Text; using PokemonUnity; using PokemonUnity.Utility; @@ -20,7 +22,7 @@ namespace PokemonUnity { namespace Character { - public partial class PokemonBox : PokemonEssentials.Interface.Screen.IPokemonBox { + public partial class PokemonBox : PokemonEssentials.Interface.Screen.IPokemonBox, IList, ICollection { public IList pokemon { get; protected set; } public string name { get; set; } public string background { get; set; } @@ -31,7 +33,7 @@ public PokemonBox(string name, int maxPokemon = 30) } public IPokemonBox initialize (string name,int maxPokemon=30) { - @pokemon=new List(); + @pokemon=new List(capacity: maxPokemon); this.name=name; @background=null; for (int i = 0; i < maxPokemon; i++) { @@ -46,13 +48,17 @@ public bool full { get { } } public int nitems { get { //item count - return @pokemon.Count; + return @pokemon.Count(p=>p.IsNotNullOrNone()); } } public int length { get { //capacity return (@pokemon as List).Capacity; } } + int ICollection.Count { get { return nitems; } } + + bool ICollection.IsReadOnly { get { return pokemon.IsReadOnly; } } + public IEnumerable each() { foreach (PokemonEssentials.Interface.PokeBattle.IPokemon item in @pokemon) { yield return item; } } @@ -65,15 +71,88 @@ public PokemonEssentials.Interface.PokeBattle.IPokemon this[int i] { set { return @pokemon[i]; } } + #region Interface Methods + void ICollection.Add(IPokemon item) + { + //if there is space add to box + if (!full) + { + if (!pokemon.Contains(item) + && item.IsNotNullOrNone()) + pokemon.Add(item); + } + //move to next box, if full? or send player message to remove? + } + + void ICollection.Clear() + { + string bg = background; + //pokemon.Clear(); + initialize(name, pokemon.Count); + background = bg; + } + + bool ICollection.Contains(IPokemon item) + { + //should return false for both null and none + if (!item.IsNotNullOrNone()) return false; + return pokemon.Contains(item); + } + + void ICollection.CopyTo(IPokemon[] array, int arrayIndex) + { + pokemon.CopyTo(array, arrayIndex); + } + + bool ICollection.Remove(IPokemon item) + { + if (!item.IsNotNullOrNone()) return true; + //if object is removed, it will remove nulls and empty space + return pokemon.Remove(item); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return pokemon.GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return pokemon.GetEnumerator(); + } + + int IList.IndexOf(IPokemon item) + { + if (!item.IsNotNullOrNone()) return -1; + //return ((IList)pokemon).IndexOf(item); + return pokemon.IndexOf(item); + } + + void IList.Insert(int index, IPokemon item) + { + if (!item.IsNotNullOrNone()) return; + //return ((IList)pokemon).Insert(index, item); + pokemon.Insert(index, item); + } + + void IList.RemoveAt(int index) + { + //((IList)pokemon).RemoveAt(index); + pokemon.RemoveAt(index); + } + #endregion + public static implicit operator PokemonBox (PokemonEssentials.Interface.PokeBattle.IPokemon[] party) { IPokemonBox box = new PokemonBox("party", (Game.GameData as Game).Features.LimitPokemonPartySize); int i = 0; foreach(PokemonEssentials.Interface.PokeBattle.IPokemon p in party) { - if(p.IsNotNullOrNone()) - box[i] = p; - i++; + if (p.IsNotNullOrNone() && i != box.length) + { + box[i] = p; //Add + i++; //Move to next slot + } } return (PokemonBox)box; } @@ -83,7 +162,7 @@ public static implicit operator PokemonBox (PokemonEssentials.Interface.PokeBatt //} } - public partial class PokemonStorage : PokemonEssentials.Interface.Screen.IPokemonStorage { + public partial class PokemonStorage : PokemonEssentials.Interface.Screen.IPCPokemonStorage { public IPokemonBox[] boxes { get; protected set; } //public IPokemon party { get; } public int currentBox { get; set; } @@ -96,9 +175,10 @@ public int maxBoxes { get { public virtual PokemonEssentials.Interface.PokeBattle.IPokemon[] party{ get { return Game.GameData.Trainer.party; } - set { + protected set { //throw new Exception("Not supported"); - GameDebug.LogError("Not supported"); + //GameDebug.LogError("Not supported"); + Game.GameData.Trainer.party = value; } } /// @@ -107,7 +187,7 @@ public virtual PokemonEssentials.Interface.PokeBattle.IPokemon[] party{ get { public static string[] MARKINGCHARS=new string[] { "●", "▲", "■", "♥", "★", "♦︎" }; public PokemonStorage(int maxBoxes = Core.STORAGEBOXES, int maxPokemon = 30) { initialize(maxBoxes, maxPokemon); } - public PokemonEssentials.Interface.Screen.IPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES,int maxPokemon=30) { + public PokemonEssentials.Interface.Screen.IPCPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES,int maxPokemon=30) { @boxes=new PokemonBox[maxBoxes]; for (int i = 0; i < maxBoxes; i++) { int ip1=i+1; @@ -134,7 +214,8 @@ public IPokemonBox this[int x] { get { // return (x==-1) ? (IList=6) { //if (this.party.GetCount()>=6) { return; @@ -214,12 +295,12 @@ public void pbMoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon this.party[this.party.Length]=pkmn; } - public bool pbMoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn,int box) { + public bool MoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn,int box) { for (int i = 0; i < maxPokemon(box); i++) { if (this[box,i]==null) { if (box>=0) { pkmn.Heal(); - if (pkmn is IPokemonMultipleForms p && //pkmn.respond_to("formTime") && + if (pkmn is IPokemonMultipleForms p && //pkmn.respond_to("formTime") && p.formTime != null) p.formTime=null; } this[box,i]=pkmn; @@ -229,7 +310,7 @@ public bool pbMoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pk return false; } - public int pbStoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) { + public int StoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) { for (int i = 0; i < maxPokemon(@currentBox); i++) { if (this[@currentBox,i]==null) { this[@currentBox,i]=pkmn; @@ -248,7 +329,7 @@ public int pbStoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) { return -1; } - public void pbDelete(int box,int index) { + public void Delete(int box,int index) { if (this[box,index].IsNotNullOrNone()) { this[box,index]=null; if (box==-1) { @@ -259,20 +340,20 @@ public void pbDelete(int box,int index) { } public partial class PokemonStorageWithParty : PokemonStorage, PokemonEssentials.Interface.Screen.IPokemonStorageWithParty { - public override PokemonEssentials.Interface.PokeBattle.IPokemon[] party { get { - return base.party; - } - set { - base.party=party; - } } - - public PokemonStorageWithParty(int maxBoxes = 24, int maxPokemon = 30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party = null) //: base (maxBoxes,maxPokemon) + //public override PokemonEssentials.Interface.PokeBattle.IPokemon[] party { get { + // return base.party; + // } + // protected set { + // base.party=party; + //} } + + public PokemonStorageWithParty(int maxBoxes = 24, int maxPokemon = 30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party = null) : base (maxBoxes,maxPokemon) { initialize(maxBoxes, maxPokemon, party); } - public IPokemonStorageWithParty initialize(int maxBoxes=24,int maxPokemon=30,PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null) + public IPokemonStorageWithParty initialize(int maxBoxes=24,int maxPokemon=30,PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null) { - base.initialize(maxBoxes,maxPokemon); + //base.initialize(maxBoxes,maxPokemon); if (party != null) { - //ToDo: Feature not setup... + //ToDo: Feature not setup... this.party=party; } else { @party=new Pokemon[(Game.GameData as Game).Features.LimitPokemonPartySize]; @@ -285,24 +366,24 @@ public IPokemonStorageWithParty initialize(int maxBoxes=24,int maxPokemon=30,Pok // Regional Storage scripts // ############################################################################### public partial class RegionalStorage : IRegionalStorage { - protected IList storages { get; set; } + protected IList storages { get; set; } protected int lastmap { get; set; } protected int rgnmap { get; set; } public IRegionalStorage initialize() { - @storages=new List(); + @storages=new List(); @lastmap=-1; @rgnmap=-1; return this; } - public IPokemonStorage getCurrentStorage { get { + public IPCPokemonStorage getCurrentStorage { get { if (Game.GameData.GameMap == null) { //throw Exception(Game._INTL("The player is not on a map, so the region could not be determined.")); GameDebug.LogError(Game._INTL("The player is not on a map, so the region could not be determined.")); } if (@lastmap!=Game.GameData.GameMap.map_id) { - @rgnmap=Game.GameData is IGameUtility g ? g.pbGetCurrentRegion() : -1; // may access file IO, so caching result + @rgnmap=Game.GameData is IGameUtility g ? g.GetCurrentRegion() : -1; // may access file IO, so caching result @lastmap=Game.GameData.GameMap.map_id; } if (@rgnmap<0) { @@ -325,7 +406,7 @@ public PokemonEssentials.Interface.PokeBattle.IPokemon[] party { get { public int currentBox { get { return getCurrentStorage.currentBox; - } + } set { getCurrentStorage.currentBox=value; } } @@ -352,32 +433,32 @@ public bool full { get { return getCurrentStorage.full; } } - public void pbFirstFreePos(int box) { - getCurrentStorage.pbFirstFreePos(box); + public void FirstFreePos(int box) { + getCurrentStorage.FirstFreePos(box); } - public void pbCopy(int boxDst,int indexDst,int boxSrc,int indexSrc) { - getCurrentStorage.pbCopy(boxDst,indexDst,boxSrc,indexSrc); + public void Copy(int boxDst,int indexDst,int boxSrc,int indexSrc) { + getCurrentStorage.Copy(boxDst,indexDst,boxSrc,indexSrc); } - public void pbMove(int boxDst,int indexDst,int boxSrc,int indexSrc) { - getCurrentStorage.pbCopy(boxDst,indexDst,boxSrc,indexSrc); + public void Move(int boxDst,int indexDst,int boxSrc,int indexSrc) { + getCurrentStorage.Copy(boxDst,indexDst,boxSrc,indexSrc); } - public void pbMoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) { - getCurrentStorage.pbMoveCaughtToParty(pkmn); + public void MoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) { + getCurrentStorage.MoveCaughtToParty(pkmn); } - public void pbMoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn,int box) { - getCurrentStorage.pbMoveCaughtToBox(pkmn,box); + public void MoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn,int box) { + getCurrentStorage.MoveCaughtToBox(pkmn,box); } - public void pbStoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) { - getCurrentStorage.pbStoreCaught(pkmn); + public void StoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) { + getCurrentStorage.StoreCaught(pkmn); } - public void pbDelete(int box,int index) { - getCurrentStorage.pbDelete(box, index); + public void Delete(int box,int index) { + getCurrentStorage.Delete(box, index); } } @@ -391,8 +472,8 @@ public string name { get { } } public void access() { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("\\se[accesspc]Accessed {1}'s PC.",Game.GameData.Trainer.name)); - if (Game.GameData is IGamePCStorage s) s.pbTrainerPCMenu(); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("\\se[accesspc]Accessed {1}'s PC.",Game.GameData.Trainer.name)); + if (Game.GameData is IGamePCStorage s) s.TrainerPCMenu(); } } @@ -403,16 +484,16 @@ public bool shouldShow { get { public string name { get { if (Game.GameData.Global.seenStorageCreator && Game.GameData is IGamePCStorage s) { - return Game._INTL("{1}'s PC",s.pbGetStorageCreator()); + return Game._INTL("{1}'s PC",s.GetStorageCreator()); } else { return Game._INTL("Someone's PC"); } } } public void access() { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("\\se[accesspc]The Pokémon Storage System was opened.")); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("\\se[accesspc]The Pokémon Storage System was opened.")); do { //;loop - int command=Game.GameData is IGameMessage m0 ? m0.pbShowCommandsWithHelp(null, + int command=Game.GameData is IGameMessage m0 ? m0.ShowCommandsWithHelp(null, new string[] {Game._INTL("Withdraw Pokémon"), Game._INTL("Deposit Pokémon"), Game._INTL("Move Pokémon"), @@ -424,7 +505,7 @@ public void access() { ) : -1; if (command>=0 && command<3) { if (command==0 && Game.GameData.PokemonStorage.party.Length>=6) { - if (Game.GameData is IGameMessage m1) m1.pbMessage(Game._INTL("Your party is full!")); + if (Game.GameData is IGameMessage m1) m1.Message(Game._INTL("Your party is full!")); continue; } int count=0; @@ -432,13 +513,13 @@ public void access() { if (p.IsNotNullOrNone() && !p.isEgg && p.HP>0) count+=1; } if (command==1 && count<=1) { - if (Game.GameData is IGameMessage m1) m1.pbMessage(Game._INTL("Can't deposit the last Pokémon!")); + if (Game.GameData is IGameMessage m1) m1.Message(Game._INTL("Can't deposit the last Pokémon!")); continue; } - if (Game.GameData is IGameSpriteWindow g) g.pbFadeOutIn(99999, block: () => { + if (Game.GameData is IGameSpriteWindow g) g.FadeOutIn(99999, block: () => { IPokemonStorageScene scene=(Game.GameData as Game).Scenes.PokemonStorageScene; //new PokemonStorageScene(); IPokemonStorageScreen screen=(Game.GameData as Game).Screens.PokemonStorageScreen.initialize(scene,Game.GameData.PokemonStorage); //new PokemonStorageScreen(scene,Game.GameData.PokemonStorage); - screen.pbStartScreen(command); + screen.StartScreen(command); }); } else { break; @@ -447,7 +528,7 @@ public void access() { } } - public static class PokemonPCList //: IPokemonPCList + public static class PokemonPCList //: IPokemonPCList { //PokemonPCList.registerPC(new StorageSystemPC()); //PokemonPCList.registerPC(new TrainerPC()); @@ -487,21 +568,21 @@ public static bool callCommand(int cmd) { } } - public partial class Game : PokemonEssentials.Interface.Screen.IGamePCStorage { + public partial class Game : PokemonEssentials.Interface.Screen.IGamePCStorage { // ############################################################################### // PC menus // ############################################################################### - public string pbGetStorageCreator() { - string creator=null;//pbStorageCreator(); + public string GetStorageCreator() { + string creator=null;//StorageCreator(); //if (creator == null || creator=="") creator=Game._INTL("Bill"); if (string.IsNullOrEmpty(creator)) creator=Game._INTL("Bill"); return creator; } - - public virtual void pbPCItemStorage() { + + public virtual void PCItemStorage() { //Items ret = Items.NONE; do { //;loop - int command=(this as IGameMessage).pbShowCommandsWithHelp(null, + int command=(this as IGameMessage).ShowCommandsWithHelp(null, new string[] { Game._INTL("Withdraw Item"), Game._INTL("Deposit Item"), Game._INTL("Toss Item"), @@ -516,31 +597,31 @@ public virtual void pbPCItemStorage() { Global.pcItemStorage=new PCItemStorage(); } if (Global.pcItemStorage.empty()) { - (this as IGameMessage).pbMessage(Game._INTL("There are no items.")); + (this as IGameMessage).Message(Game._INTL("There are no items.")); } else { - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IWithdrawItemScene scene = Scenes.Bag_ItemWithdraw;//new WithdrawItemScene(); IBagScreen screen = Screens.Bag.initialize((IBagScene)scene,Bag);//new PokemonBagScreen(scene,Bag); - screen.pbWithdrawItemScreen();//ret= + screen.WithdrawItemScreen();//ret= }); } } else if (command==1) { // Deposit Item - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IBagScene scene = Scenes.Bag;//new PokemonBag_Scene(); IBagScreen screen = Screens.Bag.initialize(scene,Bag);//new PokemonBagScreen(scene,Bag); - screen.pbDepositItemScreen();//ret= + screen.DepositItemScreen();//ret= }); } else if (command==2) { // Toss Item if (Global.pcItemStorage == null) { Global.pcItemStorage=new PCItemStorage(); } if (Global.pcItemStorage.empty()) { - (this as IGameMessage).pbMessage(Game._INTL("There are no items.")); + (this as IGameMessage).Message(Game._INTL("There are no items.")); } else { - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { ITossItemScene scene = Scenes.Bag_ItemToss;//new TossItemScene(); IBagScreen screen = Screens.Bag.initialize((IBagScene)scene,Bag);//new PokemonBagScreen(scene,Bag); - screen.pbTossItemScreen();//ret= + screen.TossItemScreen();//ret= }); } } else { @@ -549,9 +630,9 @@ public virtual void pbPCItemStorage() { } while (true); } - public virtual void pbPCMailbox() { + public virtual void PCMailbox() { if (Global.mailbox == null || Global.mailbox.Count==0) { - (this as IGameMessage).pbMessage(Game._INTL("There's no Mail here.")); + (this as IGameMessage).Message(Game._INTL("There's no Mail here.")); } else { do { //;loop List commands=new List(); @@ -559,10 +640,10 @@ public virtual void pbPCMailbox() { commands.Add(mail.sender); } commands.Add(Game._INTL("Cancel")); - int command=(this as IGameMessage).pbShowCommands(null,commands.ToArray(),-1); + int command=(this as IGameMessage).ShowCommands(null,commands.ToArray(),-1); if (command>=0 && command { - if(this is IGameMail m) m.pbDisplayMail(Global.mailbox[mailIndex]); + FadeOutIn(99999, block: () => { + if(this is IGameMail m) m.DisplayMail(Global.mailbox[mailIndex]); }); } else if (command==1) { // Move to Bag - if ((this as IGameMessage).pbConfirmMessage(_INTL("The message will be lost. Is that OK?"))) { - if (Bag.pbStoreItem(Global.mailbox[mailIndex].item)) { - (this as IGameMessage).pbMessage(_INTL("The Mail was returned to the Bag with its message erased.")); + if ((this as IGameMessage).ConfirmMessage(_INTL("The message will be lost. Is that OK?"))) { + if (Bag.StoreItem(Global.mailbox[mailIndex].item)) { + (this as IGameMessage).Message(_INTL("The Mail was returned to the Bag with its message erased.")); //Global.mailbox.delete_at(mailIndex); Global.mailbox.RemoveAt(mailIndex); } else { - (this as IGameMessage).pbMessage(_INTL("The Bag is full.")); + (this as IGameMessage).Message(_INTL("The Bag is full.")); } } } else if (command==2) { // Give - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IPartyDisplayScene sscene=Scenes.Party; //new PokemonScreen_Scene(); IPartyDisplayScreen sscreen=Screens.Party.initialize(sscene,Trainer.party); //new PokemonScreen(sscene,Trainer.party); - sscreen.pbPokemonGiveMailScreen(mailIndex); + sscreen.PokemonGiveMailScreen(mailIndex); }); } } else { @@ -597,40 +678,40 @@ public virtual void pbPCMailbox() { } } - public void pbTrainerPCMenu() { + public void TrainerPCMenu() { do { //;loop - int command=(this as IGameMessage).pbMessage(Game._INTL("What do you want to do?"),new string[] { + int command=(this as IGameMessage).Message(Game._INTL("What do you want to do?"),new string[] { Game._INTL("Item Storage"), Game._INTL("Mailbox"), Game._INTL("Turn Off") },-1); if (command==0) { - pbPCItemStorage(); + PCItemStorage(); } else if (command==1) { - pbPCMailbox(); + PCMailbox(); } else { break; } } while (true); } - public void pbTrainerPC() { - (this as IGameMessage).pbMessage(Game._INTL("\\se[computeropen]{1} booted up the PC.",Trainer.name)); - pbTrainerPCMenu(); - (this as IGameAudioPlay).pbSEPlay("computerclose"); + public void TrainerPC() { + (this as IGameMessage).Message(Game._INTL("\\se[computeropen]{1} booted up the PC.",Trainer.name)); + TrainerPCMenu(); + (this as IGameAudioPlay).SEPlay("computerclose"); } - public void pbPokeCenterPC() { - (this as IGameMessage).pbMessage(Game._INTL("\\se[computeropen]{1} booted up the PC.",Trainer.name)); + public void PokeCenterPC() { + (this as IGameMessage).Message(Game._INTL("\\se[computeropen]{1} booted up the PC.",Trainer.name)); do { //;loop string[] commands=PokemonPCList.getCommandList(); - int command=(this as IGameMessage).pbMessage(Game._INTL("Which PC should be accessed?"), + int command=(this as IGameMessage).Message(Game._INTL("Which PC should be accessed?"), commands,commands.Length); if (!PokemonPCList.callCommand(command)) { break; } } while (true); - (this as IGameAudioPlay).pbSEPlay("computerclose"); + (this as IGameAudioPlay).SEPlay("computerclose"); } } } \ No newline at end of file diff --git a/PokemonUnity.Application/Combat/AI.cs b/PokemonUnity.Application/Combat/AI.cs index cb6c67930..9ea272582 100644 --- a/PokemonUnity.Application/Combat/AI.cs +++ b/PokemonUnity.Application/Combat/AI.cs @@ -22,7 +22,7 @@ namespace PokemonUnity.Combat // 32-47: Some skill // 48-99: High skill // 100+: Gym Leaders, E4, Champion, highest level - public static class PBTrainerAI { + public static class TrainerAI { // Minimum skill level to be in each AI category public const int minimumSkill = 1; // dont want to lose @@ -42,11 +42,11 @@ public partial class Battle : PokemonEssentials.Interface.PokeBattle.IBattleAI { /// /// /// - public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,int skill=100) { - if (skill=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { score=0; } break; case Attack.Data.Effects.x0FF: // Struggle break; case Attack.Data.Effects.x002: - if (obe?.pbCanSleep(attacker,false)??false) { + if (obe?.CanSleep(attacker,false)??false) { score+=30; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (opponent.effects.Yawn>0) score-=30; } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=30; } - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { foreach (var i in opponent.moves) { Attack.Data.MoveData movedata=Kernal.MoveData[i.id]; if (movedata.Effect==Attack.Data.Effects.x062 || // Sleep Talk @@ -104,23 +104,23 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } } else { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.basedamage==0) score-=90; } } break; case Attack.Data.Effects.x0BC: - if (opponent.effects.Yawn>0 || !(obe?.pbCanSleep(attacker,false)??false)) { - if (skill>=PBTrainerAI.mediumSkill) { + if (opponent.effects.Yawn>0 || !(obe?.CanSleep(attacker,false)??false)) { + if (skill>=TrainerAI.mediumSkill) { score-=90; } } else { score+=30; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=30; } - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { foreach (var i in opponent.moves) { Attack.Data.MoveData movedata=Kernal.MoveData[i.id]; if (movedata.Effect==Attack.Data.Effects.x062 || // Sleep Talk @@ -133,58 +133,58 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x003: case Attack.Data.Effects.x022: case Attack.Data.Effects.x04E: - if (obe?.pbCanPoison(attacker,false)??false) { + if (obe?.CanPoison(attacker,false)??false) { score+=30; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (opponent.HP<=opponent.TotalHP/4) score+=30; if (opponent.HP<=opponent.TotalHP/8) score+=50; if (opponent.effects.Yawn>0) score-=40; } - if (skill>=PBTrainerAI.highSkill) { - if (pbRoughStat(opponent,Stats.DEFENSE,skill)>100) score+=10; - if (pbRoughStat(opponent,Stats.SPDEF,skill)>100) score+=10; + if (skill>=TrainerAI.highSkill) { + if (RoughStat(opponent,Stats.DEFENSE,skill)>100) score+=10; + if (RoughStat(opponent,Stats.SPDEF,skill)>100) score+=10; if (opponent.hasWorkingAbility(Abilities.GUTS)) score-=40; if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=40; if (opponent.hasWorkingAbility(Abilities.TOXIC_BOOST)) score-=40; } } else { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.basedamage==0) score-=90; } } break; case Attack.Data.Effects.x007: case Attack.Data.Effects.x099: case Attack.Data.Effects.x114: case Attack.Data.Effects.x14C: - if (obe?.pbCanParalyze(attacker,false)??false && - !(skill>=PBTrainerAI.mediumSkill && + if (obe?.CanParalyze(attacker,false)??false && + !(skill>=TrainerAI.mediumSkill && move.id == Moves.THUNDER_WAVE && - pbTypeModifier(move.Type,attacker,opponent)==0)) { + TypeModifier(move.Type,attacker,opponent)==0)) { score+=30; - if (skill>=PBTrainerAI.mediumSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.mediumSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score-=40; } } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingAbility(Abilities.GUTS)) score-=40; if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=40; if (opponent.hasWorkingAbility(Abilities.QUICK_FEET)) score-=40; } } else { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.basedamage==0) score-=90; } } break; case Attack.Data.Effects.x005: case Attack.Data.Effects.x112: case Attack.Data.Effects.x14D: - if (obe?.pbCanBurn(attacker,false)??false) { + if (obe?.CanBurn(attacker,false)??false) { score+=30; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingAbility(Abilities.GUTS)) score-=40; if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=40; if (opponent.hasWorkingAbility(Abilities.QUICK_FEET)) score-=40; @@ -192,33 +192,33 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } } else { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.basedamage==0) score-=90; } } break; case Attack.Data.Effects.x006: case Attack.Data.Effects.x105: case Attack.Data.Effects.x113: - if (obe?.pbCanFreeze(attacker,false)??false) { + if (obe?.CanFreeze(attacker,false)??false) { score+=30; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=20; } } else { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.basedamage==0) score-=90; } } break; case Attack.Data.Effects.x020: score+=30; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (!opponent.hasWorkingAbility(Abilities.INNER_FOCUS) && opponent.effects.Substitute==0) score+=30; } break; case Attack.Data.Effects.x097: - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (!opponent.hasWorkingAbility(Abilities.INNER_FOCUS) && opponent.effects.Substitute==0) score+=30; } @@ -227,38 +227,38 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x05D: if (attacker.Status==Status.SLEEP) { score+=100; // Because it can be used while asleep - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (!opponent.hasWorkingAbility(Abilities.INNER_FOCUS) && opponent.effects.Substitute==0) score+=30; } } else { score-=90; // Because it will fail here - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { score=0; } } break; case Attack.Data.Effects.x09F: if (attacker.turncount==0) { - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (!opponent.hasWorkingAbility(Abilities.INNER_FOCUS) && opponent.effects.Substitute==0) score+=30; } } else { score-=90; // Because it will fail here - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { score=0; } } break; case Attack.Data.Effects.x04D: case Attack.Data.Effects.x10C: case Attack.Data.Effects.x14E: - if (obe?.pbCanConfuse(attacker,false)??false) { + if (obe?.CanConfuse(attacker,false)??false) { score+=30; } else { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.basedamage==0) score-=90; } } @@ -271,13 +271,13 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=90; canattract=false; } else if (opponent.effects.Attract>=0) { score-=80; canattract=false; - } else if (skill>=PBTrainerAI.bestSkill && + } else if (skill>=TrainerAI.bestSkill && opponent.hasWorkingAbility(Abilities.OBLIVIOUS)) { score-=80; canattract=false; } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (canattract && opponent.hasWorkingItem(Items.DESTINY_KNOT) && - (abe?.pbCanAttract(opponent,false)??false)) { + (abe?.CanAttract(opponent,false)??false)) { score-=30; } } @@ -290,10 +290,10 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score+=40; } else if (attacker.Status==Status.POISON) { score+=40; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.HP=PBTrainerAI.highSkill && + } else if (skill>=TrainerAI.highSkill && attacker.HP<(attacker.effects.Toxic+1)*attacker.TotalHP/16) { score+=60; } @@ -306,7 +306,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x067: - PokemonEssentials.Interface.PokeBattle.IPokemon[] party=pbParty(attacker.Index); + PokemonEssentials.Interface.PokeBattle.IPokemon[] party=Party(attacker.Index); int statuses=0; for (int i = 0; i < party.Length; i++) { if (party[i].IsNotNullOrNone() && party[i].Status!=0) statuses+=1; @@ -319,7 +319,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x07D: - if (attacker.pbOwnSide.Safeguard>0) { + if (attacker.OwnSide.Safeguard>0) { score-=80 ; } else if (attacker.Status!=0) { score-=40; @@ -338,22 +338,22 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x00B: if (move.basedamage==0) { - if (abe?.pbTooHigh(Stats.ATTACK)??false) { + if (abe?.TooHigh(Stats.ATTACK)??false) { score-=90; } else { score-=attacker.stages[(int)Stats.ATTACK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -361,11 +361,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } else { if (attacker.stages[(int)Stats.ATTACK]<0) score+=20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } @@ -377,7 +377,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x00C: case Attack.Data.Effects.x09D: case Attack.Data.Effects.x092: if (move.basedamage==0) { - if (abe?.pbTooHigh(Stats.DEFENSE)??false) { + if (abe?.TooHigh(Stats.DEFENSE)??false) { score-=90; } else { @@ -390,14 +390,14 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x128: if (move.basedamage==0) { - if (abe?.pbTooHigh(Stats.SPEED)??false) { + if (abe?.TooHigh(Stats.SPEED)??false) { score-=90; } else { score-=attacker.stages[(int)Stats.SPEED]*10; - if (skill>=PBTrainerAI.highSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.highSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score+=30; } @@ -410,22 +410,22 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x115: if (move.basedamage==0) { - if (abe?.pbTooHigh(Stats.SPATK)??false) { + if (abe?.TooHigh(Stats.SPATK)??false) { score-=90; } else { score-=attacker.stages[(int)Stats.SPATK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } if (hasspecialattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -433,11 +433,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } else { if (attacker.stages[(int)Stats.SPATK]<0) score+=20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } @@ -457,7 +457,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } } if (move.basedamage==0) { - if (abe?.pbTooHigh(Stats.SPDEF)??false) { + if (abe?.TooHigh(Stats.SPDEF)??false) { score-=90; } else { @@ -472,7 +472,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x011: if (move.basedamage==0) { - if (abe?.pbTooHigh(Stats.EVASION)??false) { + if (abe?.TooHigh(Stats.EVASION)??false) { score-=90; } else { @@ -497,50 +497,50 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x0D1: - if ((abe?.pbTooHigh(Stats.ATTACK)??false) && - (abe?.pbTooHigh(Stats.DEFENSE)??false)) { + if ((abe?.TooHigh(Stats.ATTACK)??false) && + (abe?.TooHigh(Stats.DEFENSE)??false)) { score-=90; } else { score-=attacker.stages[(int)Stats.ATTACK]*10; score-=attacker.stages[(int)Stats.DEFENSE]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } } break; case Attack.Data.Effects.x143: - if ((abe?.pbTooHigh(Stats.ATTACK)??false) && - (abe?.pbTooHigh(Stats.DEFENSE)??false) && - (abe?.pbTooHigh(Stats.ACCURACY)??false)) { + if ((abe?.TooHigh(Stats.ATTACK)??false) && + (abe?.TooHigh(Stats.DEFENSE)??false) && + (abe?.TooHigh(Stats.ACCURACY)??false)) { score-=90; } else { score-=attacker.stages[(int)Stats.ATTACK]*10; score-=attacker.stages[(int)Stats.DEFENSE]*10; score-=attacker.stages[(int)Stats.ACCURACY]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -548,30 +548,30 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x0D5: if (attacker.turncount==0) score+=40; // Dragon Dance tends to be popular - if ((abe?.pbTooHigh(Stats.ATTACK)??false) && - (abe?.pbTooHigh(Stats.SPEED)??false)) { + if ((abe?.TooHigh(Stats.ATTACK)??false) && + (abe?.TooHigh(Stats.SPEED)??false)) { score-=90; } else { score-=attacker.stages[(int)Stats.ATTACK]*10; score-=attacker.stages[(int)Stats.SPEED]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } - if (skill>=PBTrainerAI.highSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.highSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score+=20; } @@ -579,14 +579,14 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x148: case Attack.Data.Effects.x13D: - if ((abe?.pbTooHigh(Stats.ATTACK)??false) && - (abe?.pbTooHigh(Stats.SPATK)??false)) { + if ((abe?.TooHigh(Stats.ATTACK)??false) && + (abe?.TooHigh(Stats.SPATK)??false)) { score-=90; } else { score-=attacker.stages[(int)Stats.ATTACK]*10; score-=attacker.stages[(int)Stats.SPATK]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasdamagingattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0) { @@ -595,42 +595,42 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } if (hasdamagingattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } if (move.Effect==Attack.Data.Effects.x13D) { // Growth - if (pbWeather==Weather.SUNNYDAY) score+=20; + if (Weather==Weather.SUNNYDAY) score+=20; } } break; case Attack.Data.Effects.x116: - if ((abe?.pbTooHigh(Stats.ATTACK)??false) && - (abe?.pbTooHigh(Stats.ACCURACY)??false)) { + if ((abe?.TooHigh(Stats.ATTACK)??false) && + (abe?.TooHigh(Stats.ACCURACY)??false)) { score-=90; } else { score-=attacker.stages[(int)Stats.ATTACK]*10; score-=attacker.stages[(int)Stats.ACCURACY]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } } break; case Attack.Data.Effects.x0CF: - if ((abe?.pbTooHigh(Stats.DEFENSE)??false) && - (abe?.pbTooHigh(Stats.SPDEF)??false)) { + if ((abe?.TooHigh(Stats.DEFENSE)??false) && + (abe?.TooHigh(Stats.SPDEF)??false)) { score-=90; } else { @@ -639,32 +639,32 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x123: - if ((abe?.pbTooHigh(Stats.SPEED)??false) && - (abe?.pbTooHigh(Stats.SPATK)??false) && - (abe?.pbTooHigh(Stats.SPDEF)??false)) { + if ((abe?.TooHigh(Stats.SPEED)??false) && + (abe?.TooHigh(Stats.SPATK)??false) && + (abe?.TooHigh(Stats.SPDEF)??false)) { score-=90; } else { score-=attacker.stages[(int)Stats.SPATK]*10; score-=attacker.stages[(int)Stats.SPDEF]*10; score-=attacker.stages[(int)Stats.SPEED]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } if (hasspecialattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } - if (skill>=PBTrainerAI.highSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.highSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score+=20; } @@ -672,25 +672,25 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x0D4: - if ((abe?.pbTooHigh(Stats.SPATK)??false) && - (abe?.pbTooHigh(Stats.SPDEF)??false)) { + if ((abe?.TooHigh(Stats.SPATK)??false) && + (abe?.TooHigh(Stats.SPDEF)??false)) { score-=90; } else { if (attacker.turncount==0) score+=40; // Calm Mind tends to be popular score-=attacker.stages[(int)Stats.SPATK]*10; score-=attacker.stages[(int)Stats.SPDEF]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } if (hasspecialattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -702,7 +702,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (attacker.stages[(int)Stats.SPEED]<0) score+=10; if (attacker.stages[(int)Stats.SPATK]<0) score+=10; if (attacker.stages[(int)Stats.SPDEF]<0) score+=10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasdamagingattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0) { @@ -716,23 +716,23 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x033: if (move.basedamage==0) { - if ((abe?.pbTooHigh(Stats.ATTACK)??false)) { + if ((abe?.TooHigh(Stats.ATTACK)??false)) { score-=90; } else { if (attacker.turncount==0) score+=40; score-=attacker.stages[(int)Stats.ATTACK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -741,11 +741,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i else { if (attacker.turncount==0) score+=10; if (attacker.stages[(int)Stats.ATTACK]<0) score+=20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } @@ -757,7 +757,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x034: if (move.basedamage==0) { - if ((abe?.pbTooHigh(Stats.DEFENSE)??false)) { + if ((abe?.TooHigh(Stats.DEFENSE)??false)) { score-=90; } else { @@ -772,15 +772,15 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x035: case Attack.Data.Effects.x11D: if (move.basedamage==0) { - if ((abe?.pbTooHigh(Stats.SPEED)??false)) { + if ((abe?.TooHigh(Stats.SPEED)??false)) { score-=90; } else { if (attacker.turncount==0) score+=20; score-=attacker.stages[(int)Stats.SPEED]*10; - if (skill>=PBTrainerAI.highSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.highSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score+=30; } @@ -794,23 +794,23 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x036: if (move.basedamage==0) { - if ((abe?.pbTooHigh(Stats.SPATK)??false)) { + if ((abe?.TooHigh(Stats.SPATK)??false)) { score-=90; } else { if (attacker.turncount==0) score+=40; score-=attacker.stages[(int)Stats.SPATK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } if (hasspecialattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -819,11 +819,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i else { if (attacker.turncount==0) score+=10; if (attacker.stages[(int)Stats.SPATK]<0) score+=20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } @@ -835,7 +835,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x037: if (move.basedamage==0) { - if ((abe?.pbTooHigh(Stats.SPDEF)??false)) { + if ((abe?.TooHigh(Stats.SPDEF)??false)) { score-=90; } else { @@ -850,7 +850,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x06D: if (move.basedamage==0) { - if ((abe?.pbTooHigh(Stats.EVASION)??false)) { + if ((abe?.TooHigh(Stats.EVASION)??false)) { score-=90; } else { @@ -869,7 +869,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=attacker.stages[(int)Stats.SPATK]*20; score+=attacker.stages[(int)Stats.DEFENSE]*10; score+=attacker.stages[(int)Stats.SPDEF]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasdamagingattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0) { @@ -882,30 +882,30 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x139: - if ((abe?.pbTooHigh(Stats.ATTACK)??false) && - (abe?.pbTooHigh(Stats.SPEED)??false)) { + if ((abe?.TooHigh(Stats.ATTACK)??false) && + (abe?.TooHigh(Stats.SPEED)??false)) { score-=90; } else { score-=attacker.stages[(int)Stats.ATTACK]*10; score-=attacker.stages[(int)Stats.SPEED]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } - if (skill>=PBTrainerAI.highSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.highSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score+=30; } @@ -913,13 +913,13 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x0E3: - if ((obe?.pbTooHigh(Stats.ATTACK)??false) && - (obe?.pbTooHigh(Stats.DEFENSE)??false) && - (obe?.pbTooHigh(Stats.SPEED)??false) && - (obe?.pbTooHigh(Stats.SPATK)??false) && - (obe?.pbTooHigh(Stats.SPDEF)??false) && - (obe?.pbTooHigh(Stats.ACCURACY)??false) && - (obe?.pbTooHigh(Stats.EVASION)??false)) { + if ((obe?.TooHigh(Stats.ATTACK)??false) && + (obe?.TooHigh(Stats.DEFENSE)??false) && + (obe?.TooHigh(Stats.SPEED)??false) && + (obe?.TooHigh(Stats.SPATK)??false) && + (obe?.TooHigh(Stats.SPDEF)??false) && + (obe?.TooHigh(Stats.ACCURACY)??false) && + (obe?.TooHigh(Stats.EVASION)??false)) { score-=90; } else { @@ -937,7 +937,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x149: if (move.basedamage==0) { - if ((abe?.pbTooHigh(Stats.DEFENSE)??false)) { + if ((abe?.TooHigh(Stats.DEFENSE)??false)) { score-=90; } else { @@ -952,23 +952,23 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x142: if (move.basedamage==0) { - if ((abe?.pbTooHigh(Stats.SPATK)??false)) { + if ((abe?.TooHigh(Stats.SPATK)??false)) { score-=90; } else { if (attacker.turncount==0) score+=40; score-=attacker.stages[(int)Stats.SPATK]*30; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } if (hasspecialattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -977,11 +977,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i else { if (attacker.turncount==0) score+=10; if (attacker.stages[(int)Stats.SPATK]<0) score+=30; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } @@ -992,23 +992,23 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x08F: - if ((abe?.pbTooHigh(Stats.ATTACK)??false) || + if ((abe?.TooHigh(Stats.ATTACK)??false) || attacker.HP<=attacker.TotalHP/2) { score-=100; } else { score+=(6-attacker.stages[(int)Stats.ATTACK])*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=40; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -1037,7 +1037,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score+=attacker.stages[(int)Stats.SPATK]*10; break; case Attack.Data.Effects.x0A7: - if (!obe?.pbCanConfuse(attacker,false)??false) { + if (!obe?.CanConfuse(attacker,false)??false) { score-=90; } else { @@ -1045,7 +1045,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x077: - if (!obe?.pbCanConfuse(attacker,false)??false) { + if (!obe?.CanConfuse(attacker,false)??false) { score-=90; } else { @@ -1054,22 +1054,22 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x16D: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.ATTACK,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.ATTACK,attacker)??false) { score-=90; } else { score+=opponent.stages[(int)Stats.ATTACK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -1077,11 +1077,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } else { if (opponent.stages[(int)Stats.ATTACK]>0) score+=20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } @@ -1093,7 +1093,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x014: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.DEFENSE,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.DEFENSE,attacker)??false) { score-=90; } else { @@ -1106,14 +1106,14 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x015: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.SPEED,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.SPEED,attacker)??false) { score-=90; } else { score+=opponent.stages[(int)Stats.SPEED]*10; - if (skill>=PBTrainerAI.highSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.highSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score+=30; } @@ -1126,22 +1126,22 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x048: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.SPATK,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.SPATK,attacker)??false) { score-=90; } else { score+=attacker.stages[(int)Stats.SPATK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } if (hasspecialattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -1149,11 +1149,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } else { if (attacker.stages[(int)Stats.SPATK]>0) score+=20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } @@ -1165,7 +1165,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x049: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.SPDEF,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.SPDEF,attacker)??false) { score-=90; } else { @@ -1178,7 +1178,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x018: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.ACCURACY,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.ACCURACY,attacker)??false) { score-=90; } else { @@ -1191,7 +1191,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x019: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.EVASION,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.EVASION,attacker)??false) { score-=90; } else { @@ -1204,7 +1204,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x103: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.EVASION,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.EVASION,attacker)??false) { score-=90; } else { @@ -1214,13 +1214,13 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i else { if (opponent.stages[(int)Stats.EVASION]>0) score+=20; } - if (opponent.pbOwnSide.Reflect>0 || - opponent.pbOwnSide.LightScreen>0 || - opponent.pbOwnSide.Mist>0 || - opponent.pbOwnSide.Safeguard>0) score+=30; - if (opponent.pbOwnSide.Spikes>0 || - opponent.pbOwnSide.ToxicSpikes>0 || - opponent.pbOwnSide.StealthRock) score-=30; + if (opponent.OwnSide.Reflect>0 || + opponent.OwnSide.LightScreen>0 || + opponent.OwnSide.Mist>0 || + opponent.OwnSide.Safeguard>0) score+=30; + if (opponent.OwnSide.Spikes>0 || + opponent.OwnSide.ToxicSpikes>0 || + opponent.OwnSide.StealthRock) score-=30; break; case Attack.Data.Effects.x0CE: avg=opponent.stages[(int)Stats.ATTACK]*10; @@ -1229,23 +1229,23 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x03B: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.ATTACK,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.ATTACK,attacker)??false) { score-=90; } else { if (attacker.turncount==0) score+=40; score+=opponent.stages[(int)Stats.ATTACK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -1254,11 +1254,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i else { if (attacker.turncount==0) score+=10; if (opponent.stages[(int)Stats.ATTACK]>0) score+=20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } @@ -1270,7 +1270,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x03C: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.DEFENSE,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.DEFENSE,attacker)??false) { score-=90; } else { @@ -1285,15 +1285,15 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x03D: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.SPEED,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.SPEED,attacker)??false) { score-=90; } else { if (attacker.turncount==0) score+=20; score+=opponent.stages[(int)Stats.SPEED]*20; - if (skill>=PBTrainerAI.highSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.highSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score+=30; } @@ -1311,23 +1311,23 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i opponent.hasWorkingAbility(Abilities.OBLIVIOUS)) { score-=90; } else if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.SPATK,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.SPATK,attacker)??false) { score-=90; } else { if (attacker.turncount==0) score+=40; score+=opponent.stages[(int)Stats.SPATK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } if (hasspecialattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -1336,11 +1336,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i else { if (attacker.turncount==0) score+=10; if (opponent.stages[(int)Stats.SPATK]>0) score+=20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } @@ -1352,7 +1352,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x03F: if (move.basedamage==0) { - if (!obe?.pbCanReduceStatStage(Stats.SPDEF,attacker)??false) { + if (!obe?.CanReduceStatStage(Stats.SPDEF,attacker)??false) { score-=90; } else { @@ -1387,11 +1387,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x01A: - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { int stages=0; for (int i = 0; i < 4; i++) { - IBattler battler=@battlers[i]; - if (attacker.pbIsOpposing(i)) { + IBattler battler=_battlers[i]; + if (attacker.IsOpposing(i)) { stages+=battler.stages[(int)Stats.ATTACK]; stages+=battler.stages[(int)Stats.DEFENSE]; stages+=battler.stages[(int)Stats.SPEED]; @@ -1414,7 +1414,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x0F4: - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { aatk=attacker.stages[(int)Stats.ATTACK]; aspa=attacker.stages[(int)Stats.SPATK]; oatk=opponent.stages[(int)Stats.ATTACK]; @@ -1432,7 +1432,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x0F5: - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { adef=attacker.stages[(int)Stats.DEFENSE]; aspd=attacker.stages[(int)Stats.SPDEF]; odef=opponent.stages[(int)Stats.DEFENSE]; @@ -1450,7 +1450,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x0FB: - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { astages=attacker.stages[(int)Stats.ATTACK]; astages+=attacker.stages[(int)Stats.DEFENSE]; astages+=attacker.stages[(int)Stats.SPEED]; @@ -1472,7 +1472,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x090: - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { bool equal=true; foreach (var i in new Stats[] { Stats.ATTACK,Stats.DEFENSE,Stats.SPEED, Stats.SPATK,Stats.SPDEF,Stats.ACCURACY,Stats.EVASION }) { @@ -1487,12 +1487,12 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x02F: - if (attacker.pbOwnSide.Mist>0) score-=80; + if (attacker.OwnSide.Mist>0) score-=80; break; case Attack.Data.Effects.x0EF: - if (skill>=PBTrainerAI.mediumSkill) { - aatk=pbRoughStat(attacker,Stats.ATTACK,skill); - adef=pbRoughStat(attacker,Stats.DEFENSE,skill); + if (skill>=TrainerAI.mediumSkill) { + aatk=RoughStat(attacker,Stats.ATTACK,skill); + adef=RoughStat(attacker,Stats.DEFENSE,skill); if (aatk==adef || attacker.effects.PowerTrick) { // No flip-flopping score-=90; @@ -1508,11 +1508,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x119: - if (skill>=PBTrainerAI.mediumSkill) { - aatk=pbRoughStat(attacker,Stats.ATTACK,skill); - aspatk=pbRoughStat(attacker,Stats.SPATK,skill); - oatk=pbRoughStat(opponent,Stats.ATTACK,skill); - ospatk=pbRoughStat(opponent,Stats.SPATK,skill); + if (skill>=TrainerAI.mediumSkill) { + aatk=RoughStat(attacker,Stats.ATTACK,skill); + aspatk=RoughStat(attacker,Stats.SPATK,skill); + oatk=RoughStat(opponent,Stats.ATTACK,skill); + ospatk=RoughStat(opponent,Stats.SPATK,skill); if (aatk=PBTrainerAI.mediumSkill) { - adef=pbRoughStat(attacker,Stats.DEFENSE,skill); - aspdef=pbRoughStat(attacker,Stats.SPDEF,skill); - odef=pbRoughStat(opponent,Stats.DEFENSE,skill); - ospdef=pbRoughStat(opponent,Stats.SPDEF,skill); + if (skill>=TrainerAI.mediumSkill) { + adef=RoughStat(attacker,Stats.DEFENSE,skill); + aspdef=RoughStat(attacker,Stats.SPDEF,skill); + odef=RoughStat(opponent,Stats.DEFENSE,skill); + ospdef=RoughStat(opponent,Stats.SPDEF,skill); if (adef0) { + if (attacker.OwnSide.Tailwind>0) { score-=90; } break; @@ -1607,7 +1607,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i foreach (var i in attacker.moves) { if (i.id==move.id) continue; //if (Types.isPseudoType(i.Type)) continue; - if (attacker.pbHasType(i.Type)) continue; + if (attacker.HasType(i.Type)) continue; bool found=false; if (!types.Contains(i.Type)) types.Add(i.Type); } @@ -1620,14 +1620,14 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (attacker.Ability == Abilities.MULTITYPE) { score-=90; } else if (opponent.lastMoveUsed<=0 - ) { //|| PBTypes.isPseudoType(Kernal.MoveData[opponent.lastMoveUsed].Type) + ) { //|| Types.isPseudoType(Kernal.MoveData[opponent.lastMoveUsed].Type) score-=90; } else { Types atype=Types.UNKNOWN; foreach (var i in opponent.moves) { if (i.id==opponent.lastMoveUsed) { - atype=i.pbType(move.Type,attacker,opponent); break; + atype=i.GetType(move.Type,attacker,opponent); break; } } if (atype<0) { @@ -1637,7 +1637,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i List types=new List(); //for (int i = 0; i < Kernal.TypeData.Keys.Count; i++) { foreach (Types i in Kernal.TypeData.Keys) { - if (attacker.pbHasType(i)) continue; + if (attacker.HasType(i)) continue; if (atype.GetEffectiveness(i)<2 ) types.Add(i); } if (types.Count==0) { @@ -1649,7 +1649,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x0D6: if (attacker.Ability == Abilities.MULTITYPE) { score-=90; - } else if (skill>=PBTrainerAI.mediumSkill) { + } else if (skill>=TrainerAI.mediumSkill) { Types[] envtypes=new Types[] { Types.NORMAL, // None Types.GRASS, // Grass @@ -1662,31 +1662,31 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i Types.GROUND // Sand }; Types type=envtypes[(int)@environment]; - if (attacker.pbHasType(type)) score-=90; + if (attacker.HasType(type)) score-=90; } break; case Attack.Data.Effects.x127: if (opponent.effects.Substitute>0 || opponent.Ability == Abilities.MULTITYPE) { score-=90; - } else if (opponent.pbHasType(Types.WATER)) { + } else if (opponent.HasType(Types.WATER)) { score-=90; } break; case Attack.Data.Effects.x13F: if (attacker.Ability == Abilities.MULTITYPE) { score-=90; - } else if (attacker.pbHasType(opponent.Type1) && - attacker.pbHasType(opponent.Type2) && - opponent.pbHasType(attacker.Type1) && - opponent.pbHasType(attacker.Type2)) { + } else if (attacker.HasType(opponent.Type1) && + attacker.HasType(opponent.Type2) && + opponent.HasType(attacker.Type1) && + opponent.HasType(attacker.Type2)) { score-=90; } break; case Attack.Data.Effects.x12B: if (opponent.effects.Substitute>0) { score-=90; - } else if (skill>=PBTrainerAI.mediumSkill) { + } else if (skill>=TrainerAI.mediumSkill) { if (opponent.Ability == Abilities.MULTITYPE || opponent.Ability == Abilities.SIMPLE || opponent.Ability == Abilities.TRUANT) { @@ -1697,7 +1697,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x0F8: if (opponent.effects.Substitute>0) { score-=90; - } else if (skill>=PBTrainerAI.mediumSkill) { + } else if (skill>=TrainerAI.mediumSkill) { if (opponent.Ability == Abilities.MULTITYPE || opponent.Ability == Abilities.INSOMNIA || opponent.Ability == Abilities.TRUANT) { @@ -1707,7 +1707,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x0B3: score-=40; // don't prefer this move - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (opponent.Ability==0 || attacker.Ability==opponent.Ability || attacker.Ability == Abilities.MULTITYPE || @@ -1722,12 +1722,12 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=90; } } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.Ability == Abilities.TRUANT && - attacker.pbIsOpposing(opponent.Index)) { + attacker.IsOpposing(opponent.Index)) { score-=90; } else if (opponent.Ability == Abilities.SLOW_START && - attacker.pbIsOpposing(opponent.Index)) { + attacker.IsOpposing(opponent.Index)) { score-=90; } } @@ -1736,7 +1736,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=40; // don't prefer this move if (opponent.effects.Substitute>0) { score-=90; - } else if (skill>=PBTrainerAI.mediumSkill) { + } else if (skill>=TrainerAI.mediumSkill) { if (attacker.Ability==0 || attacker.Ability==opponent.Ability || opponent.Ability == Abilities.MULTITYPE || @@ -1750,12 +1750,12 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i attacker.Ability == Abilities.ZEN_MODE) { score-=90; } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.Ability == Abilities.TRUANT && - attacker.pbIsOpposing(opponent.Index)) { + attacker.IsOpposing(opponent.Index)) { score+=90; } else if (attacker.Ability == Abilities.SLOW_START && - attacker.pbIsOpposing(opponent.Index)) { + attacker.IsOpposing(opponent.Index)) { score+=90; } } @@ -1763,7 +1763,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x0C0: score-=40; // don't prefer this move - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if ((attacker.Ability==0 && opponent.Ability==0) || attacker.Ability==opponent.Ability || attacker.Ability == Abilities.ILLUSION || @@ -1775,12 +1775,12 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=90; } } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.Ability == Abilities.TRUANT && - attacker.pbIsOpposing(opponent.Index)) { + attacker.IsOpposing(opponent.Index)) { score-=90; } else if (opponent.Ability == Abilities.SLOW_START && - attacker.pbIsOpposing(opponent.Index)) { + attacker.IsOpposing(opponent.Index)) { score-=90; } } @@ -1789,7 +1789,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (opponent.effects.Substitute>0 || opponent.effects.GastroAcid) { score-=90; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { if (opponent.Ability == Abilities.MULTITYPE) score-=90; if (opponent.Ability == Abilities.SLOW_START) score-=90; if (opponent.Ability == Abilities.TRUANT) score-=90; @@ -1834,11 +1834,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=90; } else { - attack=pbRoughStat(attacker,Stats.ATTACK,skill); - spatk=pbRoughStat(attacker,Stats.SPATK,skill); + attack=RoughStat(attacker,Stats.ATTACK,skill); + spatk=RoughStat(attacker,Stats.SPATK,skill); if (attack*1.5=PBTrainerAI.mediumSkill && + } else if (skill>=TrainerAI.mediumSkill && opponent.lastMoveUsed>0) { moveData=Kernal.MoveData[opponent.lastMoveUsed]; if (moveData.Power>0 && @@ -1854,11 +1854,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=90; } else { - attack=pbRoughStat(attacker,Stats.ATTACK,skill); - spatk=pbRoughStat(attacker,Stats.SPATK,skill); + attack=RoughStat(attacker,Stats.ATTACK,skill); + spatk=RoughStat(attacker,Stats.SPATK,skill); if (attack>spatk*1.5) { score-=60; - } else if (skill>=PBTrainerAI.mediumSkill && opponent.lastMoveUsed>0) { + } else if (skill>=TrainerAI.mediumSkill && opponent.lastMoveUsed>0) { moveData=Kernal.MoveData[opponent.lastMoveUsed]; if (moveData.Power>0 && (Core.USEMOVECATEGORY && moveData.Category==Attack.Category.SPECIAL) || @@ -1872,7 +1872,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (opponent.effects.HyperBeam>0) score-=90; break; case Attack.Data.Effects.x122: - if (!opponent.pbPartner.isFainted()) score+=10; + if (!opponent.Partner.isFainted()) score+=10; break; case Attack.Data.Effects.x102: break; @@ -1881,7 +1881,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x096: break; case Attack.Data.Effects.x093: - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (!opponent.hasWorkingAbility(Abilities.INNER_FOCUS) && opponent.effects.Substitute==0) score+=30; } @@ -1906,23 +1906,23 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x0DE: break; case Attack.Data.Effects.x0BA: - int attspeed=pbRoughStat(attacker,Stats.SPEED,skill); - int oppspeed=pbRoughStat(opponent,Stats.SPEED,skill); + int attspeed=RoughStat(attacker,Stats.SPEED,skill); + int oppspeed=RoughStat(opponent,Stats.SPEED,skill); if (oppspeed>attspeed) score+=30; break; case Attack.Data.Effects.x0E8: if (@doublebattle) score+=20; break; case Attack.Data.Effects.x12E: - if (skill>=PBTrainerAI.mediumSkill) { - if (@doublebattle && !attacker.pbPartner.isFainted() && - //attacker.pbPartner.pbHasMove(move.id)) score+=20; - attacker.pbPartner.moves.Any(n => n.id == move.id)) score+=20; + if (skill>=TrainerAI.mediumSkill) { + if (@doublebattle && !attacker.Partner.isFainted() && + //attacker.Partner.HasMove(move.id)) score+=20; + attacker.Partner.moves.Any(n => n.id == move.id)) score+=20; } break; case Attack.Data.Effects.x0E7: - attspeed=pbRoughStat(attacker,Stats.SPEED,skill); - oppspeed=pbRoughStat(opponent,Stats.SPEED,skill); + attspeed=RoughStat(attacker,Stats.SPEED,skill); + oppspeed=RoughStat(opponent,Stats.SPEED,skill); if (oppspeed>attspeed) score+=30; break; case Attack.Data.Effects.x140: @@ -1960,7 +1960,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x124: break; case Attack.Data.Effects.x0B1: - if (attacker.pbPartner.isFainted()) score-=90; + if (attacker.Partner.isFainted()) score-=90; break; case Attack.Data.Effects.x0CA: if (attacker.effects.MudSport) score-=90; @@ -1973,13 +1973,13 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x121: break; case Attack.Data.Effects.x0F1: - if (attacker.pbOwnSide.LuckyChant>0) score-=90; + if (attacker.OwnSide.LuckyChant>0) score-=90; break; case Attack.Data.Effects.x042: - if (attacker.pbOwnSide.Reflect>0) score-=90; + if (attacker.OwnSide.Reflect>0) score-=90; break; case Attack.Data.Effects.x024: - if (attacker.pbOwnSide.LightScreen>0) score-=90; + if (attacker.OwnSide.LightScreen>0) score-=90; break; case Attack.Data.Effects.x0C6: break; @@ -1992,7 +1992,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x072: if (opponent.effects.Foresight) { score-=90; - } else if (opponent.pbHasType(Types.GHOST)) { + } else if (opponent.HasType(Types.GHOST)) { score+=70; } else if (opponent.stages[(int)Stats.EVASION]<=0) { score-=60; @@ -2001,7 +2001,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x0D9: if (opponent.effects.MiracleEye) { score-=90; - } else if (opponent.pbHasType(Types.DARK)) { + } else if (opponent.HasType(Types.DARK)) { score+=70; } else if (opponent.stages[(int)Stats.EVASION]<=0) { score-=60; @@ -2015,7 +2015,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=90; } else { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { score-=(attacker.effects.ProtectRate*40); } if (attacker.turncount==0) score+=50; @@ -2030,7 +2030,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x00A: score-=40; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.lastMoveUsed<=0 || //(Kernal.MoveData[opponent.lastMoveUsed].flags&0x010)==0) score-=100; // flag e: Copyable by Mirror Move Kernal.MoveData[opponent.lastMoveUsed].Flags.Mirror) score-=100; @@ -2074,8 +2074,8 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (opponent.effects.HealBlock>0) score-=90; break; case Attack.Data.Effects.x05B: - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (opponent.effects.Encore>0) { score-=90; } else if (aspeed>ospeed) { @@ -2087,7 +2087,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (moveData.Power==0 && (moveData.Target==(Attack.Data.Targets)0x10 || moveData.Target==(Attack.Data.Targets)0x20)) { score+=60; } else if (moveData.Power!=0 && moveData.Target==0x00 && - pbTypeModifier(moveData.Type,opponent,attacker)==0) { + TypeModifier(moveData.Type,opponent,attacker)==0) { score+=60; } } @@ -2109,7 +2109,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x04C: if (attacker.effects.FocusEnergy>0) score+=20; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (!opponent.hasWorkingAbility(Abilities.INNER_FOCUS) && opponent.effects.Substitute==0) score+=20; } @@ -2162,7 +2162,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=90; } else { - switch (pbWeather) { + switch (Weather) { case Weather.SUNNYDAY: score+=30; break; @@ -2175,7 +2175,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x026: - if (attacker.HP==attacker.TotalHP || !(abe?.pbCanSleep(attacker,false,null,true)??false)) { + if (attacker.HP==attacker.TotalHP || !(abe?.CanSleep(attacker,false,null,true)??false)) { score-=90; } else { @@ -2193,7 +2193,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x055: if (opponent.effects.LeechSeed>=0) { score-=90; - } else if (skill>=PBTrainerAI.mediumSkill && opponent.pbHasType(Types.GRASS)) { + } else if (skill>=TrainerAI.mediumSkill && opponent.HasType(Types.GRASS)) { score-=90; } else { @@ -2201,7 +2201,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x15A: - if (skill>=PBTrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { + if (skill>=TrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { score-=70; } else { @@ -2211,7 +2211,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x009: if (opponent.Status!=Status.SLEEP) { score-=100; - } else if (skill>=PBTrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { + } else if (skill>=TrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { score-=70; } else { @@ -2219,7 +2219,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x136: - if (attacker.pbIsOpposing(opponent.Index)) { + if (attacker.IsOpposing(opponent.Index)) { score-=100; } else { @@ -2228,13 +2228,13 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x008: - int reserves=attacker.pbNonActivePokemonCount; - int foes=attacker.pbOppositeOpposing.pbNonActivePokemonCount; - if (pbCheckGlobalAbility(Abilities.DAMP).IsNotNullOrNone()) { + int reserves=attacker.NonActivePokemonCount; + int foes=attacker.OppositeOpposing.NonActivePokemonCount; + if (CheckGlobalAbility(Abilities.DAMP).IsNotNullOrNone()) { score-=100; - } else if (skill>=PBTrainerAI.mediumSkill && reserves==0 && foes>0) { + } else if (skill>=TrainerAI.mediumSkill && reserves==0 && foes>0) { score-=100; // don't want to lose - } else if (skill>=PBTrainerAI.highSkill && reserves==0 && foes==0) { + } else if (skill>=TrainerAI.highSkill && reserves==0 && foes==0) { score-=100; // don't want to draw } else { @@ -2244,10 +2244,10 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x141: break; case Attack.Data.Effects.x0A9: - if (!(obe?.pbCanReduceStatStage(Stats.ATTACK,attacker)??false) && - !(obe?.pbCanReduceStatStage(Stats.SPATK,attacker)??false)) { + if (!(obe?.CanReduceStatStage(Stats.ATTACK,attacker)??false) && + !(obe?.CanReduceStatStage(Stats.SPATK,attacker)??false)) { score-=100; - } else if (attacker.pbNonActivePokemonCount==0) { + } else if (attacker.NonActivePokemonCount==0) { score-=100; } else { @@ -2260,7 +2260,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i score-=70; break; case Attack.Data.Effects.x073: - if (attacker.pbNonActivePokemonCount==0) { + if (attacker.NonActivePokemonCount==0) { score-=90; } else { @@ -2279,7 +2279,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x075: if (attacker.HP>(attacker.TotalHP/2)) score-=25; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.effects.ProtectRate>1) score-=90; if (opponent.effects.HyperBeam>0) score-=90; } @@ -2301,33 +2301,33 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x01D: if (opponent.effects.Ingrain || - (skill>=PBTrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.SUCTION_CUPS))) { + (skill>=TrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.SUCTION_CUPS))) { score-=90; } else { - party=pbParty(opponent.Index); + party=Party(opponent.Index); int ch=0; for (int i = 0; i < party.Length; i++) { - if (pbCanSwitchLax(opponent.Index,i,false)) ch+=1; + if (CanSwitchLax(opponent.Index,i,false)) ch+=1; } if (ch==0) score-=90; } if (score>20) { - if (opponent.pbOwnSide.Spikes>0) score+=50; - if (opponent.pbOwnSide.ToxicSpikes>0) score+=50; - if (opponent.pbOwnSide.StealthRock) score+=50; + if (opponent.OwnSide.Spikes>0) score+=50; + if (opponent.OwnSide.ToxicSpikes>0) score+=50; + if (opponent.OwnSide.StealthRock) score+=50; } break; case Attack.Data.Effects.x13A: if (!opponent.effects.Ingrain && - !(skill>=PBTrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.SUCTION_CUPS))) { - if (opponent.pbOwnSide.Spikes>0) score+=40; - if (opponent.pbOwnSide.ToxicSpikes>0) score+=40; - if (opponent.pbOwnSide.StealthRock) score+=40; + !(skill>=TrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.SUCTION_CUPS))) { + if (opponent.OwnSide.Spikes>0) score+=40; + if (opponent.OwnSide.ToxicSpikes>0) score+=40; + if (opponent.OwnSide.StealthRock) score+=40; } break; case Attack.Data.Effects.x080: - if (!pbCanChooseNonActive(attacker.Index)) { + if (!CanChooseNonActive(attacker.Index)) { score-=80; } else { @@ -2364,12 +2364,12 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (opponent.effects.MeanLook>=0) score-=90; break; case Attack.Data.Effects.x0BD: - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.Item!=0) score+=20; } break; case Attack.Data.Effects.x06A: - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.Item==0 && opponent.Item!=0) { score+=40; } @@ -2384,7 +2384,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x0B2: if (attacker.Item==0 && opponent.Item==0) { score-=90; - } else if (skill>=PBTrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.STICKY_HOLD)) { + } else if (skill>=TrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.STICKY_HOLD)) { score-=90; } else if (attacker.hasWorkingItem(Items.FLAME_ORB) || attacker.hasWorkingItem(Items.TOXIC_ORB) || @@ -2419,7 +2419,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x0E1: case Attack.Data.Effects.x13B: if (opponent.effects.Substitute==0) { - if (skill>=PBTrainerAI.highSkill && Game.GameData is IItemCheck c && c.pbIsBerry(opponent.Item)) { + if (skill>=TrainerAI.highSkill && Game.GameData is IItemCheck c && c.IsBerry(opponent.Item)) { score+=30; } } @@ -2433,9 +2433,9 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x0EA: if (attacker.Item==0 || - pbIsUnlosableItem(attacker,attacker.Item) || - Game.GameData is IItemCheck g && g.pbIsPokeBall(attacker.Item) || - //ItemData.pbIsPokeBall(attacker.Item) || + IsUnlosableItem(attacker,attacker.Item) || + Game.GameData is IItemCheck g && g.IsPokeBall(attacker.Item) || + //ItemData.IsPokeBall(attacker.Item) || attacker.hasWorkingAbility(Abilities.KLUTZ) || attacker.effects.Embargo>0) { score-=90; @@ -2463,18 +2463,18 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x107: score-=30; - if (obe?.pbCanParalyze(attacker,false)??false) { + if (obe?.CanParalyze(attacker,false)??false) { score+=30; - if (skill>=PBTrainerAI.mediumSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.mediumSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score-=40; } } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingAbility(Abilities.GUTS)) score-=40; if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=40; if (opponent.hasWorkingAbility(Abilities.QUICK_FEET)) score-=40; @@ -2483,9 +2483,9 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i break; case Attack.Data.Effects.x0FE: score-=30; - if (obe?.pbCanBurn(attacker,false)??false) { + if (obe?.CanBurn(attacker,false)??false) { score+=30; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingAbility(Abilities.GUTS)) score-=40; if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=40; if (opponent.hasWorkingAbility(Abilities.QUICK_FEET)) score-=40; @@ -2494,10 +2494,10 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x08A: - if (pbCheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || - pbCheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { + if (CheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || + CheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { score-=90; - } else if (pbWeather==Weather.SUNNYDAY) { + } else if (Weather==Weather.SUNNYDAY) { score-=90; } else { @@ -2510,10 +2510,10 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x089: - if (pbCheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || - pbCheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { + if (CheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || + CheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { score-=90; - } else if (pbWeather==Weather.RAINDANCE) { + } else if (Weather==Weather.RAINDANCE) { score-=90; } else { @@ -2526,57 +2526,57 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x074: - if (pbCheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || - pbCheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { + if (CheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || + CheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { score-=90; - } else if (pbWeather==Weather.SANDSTORM) { + } else if (Weather==Weather.SANDSTORM) { score-=90; } break; case Attack.Data.Effects.x0A5: - if (pbCheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || - pbCheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { + if (CheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || + CheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { score-=90; - } else if (pbWeather==Weather.HAIL) { + } else if (Weather==Weather.HAIL) { score-=90; } break; case Attack.Data.Effects.x071: - if (attacker.pbOpposingSide.Spikes>=3) { + if (attacker.OpposingSide.Spikes>=3) { score-=90; - } else if (!pbCanChooseNonActive(attacker.pbOpposing1.Index) && - !pbCanChooseNonActive(attacker.pbOpposing2.Index)) { + } else if (!CanChooseNonActive(attacker.Opposing1.Index) && + !CanChooseNonActive(attacker.Opposing2.Index)) { // Opponent can't switch in any Pokemon score-=90; } else { - score+=5*attacker.pbOppositeOpposing.pbNonActivePokemonCount; - score+=new int[] { 40, 26, 13 }[attacker.pbOpposingSide.Spikes]; + score+=5*attacker.OppositeOpposing.NonActivePokemonCount; + score+=new int[] { 40, 26, 13 }[attacker.OpposingSide.Spikes]; } break; case Attack.Data.Effects.x0FA: - if (attacker.pbOpposingSide.ToxicSpikes>=2) { + if (attacker.OpposingSide.ToxicSpikes>=2) { score-=90; - } else if (!pbCanChooseNonActive(attacker.pbOpposing1.Index) && - !pbCanChooseNonActive(attacker.pbOpposing2.Index)) { + } else if (!CanChooseNonActive(attacker.Opposing1.Index) && + !CanChooseNonActive(attacker.Opposing2.Index)) { // Opponent can't switch in any Pokemon score-=90; } else { - score+=4*attacker.pbOppositeOpposing.pbNonActivePokemonCount; - score+=new int[] { 26, 13 }[attacker.pbOpposingSide.ToxicSpikes]; + score+=4*attacker.OppositeOpposing.NonActivePokemonCount; + score+=new int[] { 26, 13 }[attacker.OpposingSide.ToxicSpikes]; } break; case Attack.Data.Effects.x10B: - if (attacker.pbOpposingSide.StealthRock) { + if (attacker.OpposingSide.StealthRock) { score-=90; - } else if (!pbCanChooseNonActive(attacker.pbOpposing1.Index) && - !pbCanChooseNonActive(attacker.pbOpposing2.Index)) { + } else if (!CanChooseNonActive(attacker.Opposing1.Index) && + !CanChooseNonActive(attacker.Opposing2.Index)) { // Opponent can't switch in any Pokemon score-=90; } else { - score+=5*attacker.pbOppositeOpposing.pbNonActivePokemonCount; + score+=5*attacker.OppositeOpposing.NonActivePokemonCount; } break; case Attack.Data.Effects.x147: @@ -2588,8 +2588,8 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x023: break; case Attack.Data.Effects.x0BB: - if (attacker.pbOpposingSide.Reflect>0) score+=20; - if (attacker.pbOpposingSide.LightScreen>0) score+=20; + if (attacker.OpposingSide.Reflect>0) score+=20; + if (attacker.OpposingSide.LightScreen>0) score+=20; break; case Attack.Data.Effects.x02E: score+=10*(attacker.stages[(int)Stats.ACCURACY]-opponent.stages[(int)Stats.EVASION]); @@ -2602,11 +2602,11 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i } break; case Attack.Data.Effects.x06E: - if (attacker.pbHasType(Types.GHOST)) { + if (attacker.HasType(Types.GHOST)) { if (opponent.effects.Curse) { score-=90; } else if (attacker.HP<=(attacker.TotalHP/2)) { - if (attacker.pbNonActivePokemonCount==0) { + if (attacker.NonActivePokemonCount==0) { score-=90; } else { @@ -2640,16 +2640,16 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x082: if (attacker.effects.MultiTurn>0) score+=30; if (attacker.effects.LeechSeed>=0) score+=30; - if (attacker.pbNonActivePokemonCount>0) { - if (attacker.pbOwnSide.Spikes>0) score+=80; - if (attacker.pbOwnSide.ToxicSpikes>0) score+=80; - if (attacker.pbOwnSide.StealthRock) score+=80; + if (attacker.NonActivePokemonCount>0) { + if (attacker.OwnSide.Spikes>0) score+=80; + if (attacker.OwnSide.ToxicSpikes>0) score+=80; + if (attacker.OwnSide.StealthRock) score+=80; } break; case Attack.Data.Effects.x095: if (opponent.effects.FutureSight>0) { score-=100; - } else if (attacker.pbNonActivePokemonCount==0) { + } else if (attacker.NonActivePokemonCount==0) { // Future Sight tends to be wasteful if down to last Pokemon score-=70; } @@ -2696,19 +2696,19 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x0AD: if (!@doublebattle) { score-=100; - } else if (attacker.pbPartner.isFainted()) { + } else if (attacker.Partner.isFainted()) { score-=90; } break; case Attack.Data.Effects.x0D8: if (@field.Gravity>0) { score-=90; - } else if (skill>=PBTrainerAI.mediumSkill) { + } else if (skill>=TrainerAI.mediumSkill) { score-=30; if (attacker.effects.SkyDrop) score-=20; if (attacker.effects.MagnetRise>0) score-=20; if (attacker.effects.Telekinesis>0) score-=20; - if (attacker.pbHasType(Types.FLYING)) score-=20; + if (attacker.HasType(Types.FLYING)) score-=20; if (attacker.hasWorkingAbility(Abilities.LEVITATE)) score-=20; if (attacker.hasWorkingItem(Items.AIR_BALLOON)) score-=20; if (opponent.effects.SkyDrop) score+=20; @@ -2717,7 +2717,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (Kernal.MoveData[opponent.effects.TwoTurnAttack].Effect==Attack.Data.Effects.x09C || // Fly Kernal.MoveData[opponent.effects.TwoTurnAttack].Effect==Attack.Data.Effects.x108 || // Bounce Kernal.MoveData[opponent.effects.TwoTurnAttack].Effect==Attack.Data.Effects.x138) score+=20; // Sky Drop - if (opponent.pbHasType(Types.FLYING)) score+=20; + if (opponent.HasType(Types.FLYING)) score+=20; if (opponent.hasWorkingAbility(Abilities.LEVITATE)) score+=20; if (opponent.hasWorkingItem(Items.AIR_BALLOON)) score+=20; } @@ -2739,12 +2739,12 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x0D0: break; case Attack.Data.Effects.x120: - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (opponent.effects.MagnetRise>0) score+=20; if (opponent.effects.Telekinesis>0) score+=20; if (Kernal.MoveData[opponent.effects.TwoTurnAttack].Effect==Attack.Data.Effects.x09C || // Fly Kernal.MoveData[opponent.effects.TwoTurnAttack].Effect==Attack.Data.Effects.x108) score+=20; // Bounce - if (opponent.pbHasType(Types.FLYING)) score+=20; + if (opponent.HasType(Types.FLYING)) score+=20; if (opponent.hasWorkingAbility(Abilities.LEVITATE)) score+=20; if (opponent.hasWorkingItem(Items.AIR_BALLOON)) score+=20; } @@ -2762,8 +2762,8 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i case Attack.Data.Effects.x11B: break; case Attack.Data.Effects.x125: - if (!opponent.pbHasType(attacker.Type1) && - !opponent.pbHasType(attacker.Type2)) { + if (!opponent.HasType(attacker.Type1) && + !opponent.HasType(attacker.Type2)) { score-=90; } break; @@ -2776,18 +2776,18 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i // break; //case 0x127: // score+=20; // Shadow moves are more preferable - // if (obe?.pbCanParalyze(attacker,false)??false) { + // if (obe?.CanParalyze(attacker,false)??false) { // score+=30; - // if (skill>=PBTrainerAI.mediumSkill) { - // int aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - // int ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + // if (skill>=TrainerAI.mediumSkill) { + // int aspeed=RoughStat(attacker,Stats.SPEED,skill); + // int ospeed=RoughStat(opponent,Stats.SPEED,skill); // if (aspeedospeed) { // score-=40; // } // } - // if (skill>=PBTrainerAI.highSkill) { + // if (skill>=TrainerAI.highSkill) { // if (opponent.hasWorkingAbility(Abilities.GUTS)) score-=40; // if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=40; // if (opponent.hasWorkingAbility(Abilities.QUICK_FEET)) score-=40; @@ -2796,9 +2796,9 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i // break; //case 0x128: // score+=20; // Shadow moves are more preferable - // if (obe?.pbCanBurn(attacker,false)??false) { + // if (obe?.CanBurn(attacker,false)??false) { // score+=30; - // if (skill>=PBTrainerAI.highSkill) { + // if (skill>=TrainerAI.highSkill) { // if (opponent.hasWorkingAbility(Abilities.GUTS)) score-=40; // if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=40; // if (opponent.hasWorkingAbility(Abilities.QUICK_FEET)) score-=40; @@ -2808,27 +2808,27 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i // break; //case 0x129: // score+=20; // Shadow moves are more preferable - // if (obe?.pbCanFreeze(attacker,false)??false) { + // if (obe?.CanFreeze(attacker,false)??false) { // score+=30; - // if (skill>=PBTrainerAI.highSkill) { + // if (skill>=TrainerAI.highSkill) { // if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=20; // } // } // break; //case Attack.Data.Effects.x032: // score+=20; // Shadow moves are more preferable - // if (obe?.pbCanConfuse(attacker,false)??false) { + // if (obe?.CanConfuse(attacker,false)??false) { // score+=30; // } // else { - // if (skill>=PBTrainerAI.mediumSkill) { + // if (skill>=TrainerAI.mediumSkill) { // score-=90; // } // } // break; //case 0x12B: // score+=20; // Shadow moves are more preferable - // if (!opponent.pbCanReduceStatStage(Stats.DEFENSE,attacker)) { + // if (!opponent.CanReduceStatStage(Stats.DEFENSE,attacker)) { // score-=90; // } // else { @@ -2838,7 +2838,7 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i // break; //case Attack.Data.Effects.x714: // score+=20; // Shadow moves are more preferable - // if (!opponent.pbCanReduceStatStage(Stats.EVASION,attacker)) { + // if (!opponent.CanReduceStatStage(Stats.EVASION,attacker)) { // score-=90; // } // else { @@ -2863,22 +2863,22 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i // break; //case Attack.Data.Effects.x716: // score+=20; // Shadow moves are more preferable - // if (pbCheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || - // pbCheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { + // if (CheckGlobalAbility(Abilities.AIR_LOCK).IsNotNullOrNone() || + // CheckGlobalAbility(Abilities.CLOUD_NINE).IsNotNullOrNone()) { // score-=90; - // } else if (pbWeather==Weather.SHADOWSKY) { + // } else if (Weather==Weather.SHADOWSKY) { // score-=90; // } // break; //case Attack.Data.Effects.x715: // score+=20; // Shadow moves are more preferable - // if (opponent.pbOwnSide.Reflect>0 || - // opponent.pbOwnSide.LightScreen>0 || - // opponent.pbOwnSide.Safeguard>0) { + // if (opponent.OwnSide.Reflect>0 || + // opponent.OwnSide.LightScreen>0 || + // opponent.OwnSide.Safeguard>0) { // score+=30; - // if (attacker.pbOwnSide.Reflect>0 || - // attacker.pbOwnSide.LightScreen>0 || - // attacker.pbOwnSide.Safeguard>0) score-=90; + // if (attacker.OwnSide.Reflect>0 || + // attacker.OwnSide.LightScreen>0 || + // attacker.OwnSide.Safeguard>0) score-=90; // } // else { // score-=110; @@ -2887,14 +2887,14 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i //case 0x133: case Attack.Data.Effects.x172: score-=95; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { score=0; } break; case Attack.Data.Effects.x17C: - if (obe?.pbCanFreeze(attacker,false)??false) { + if (obe?.CanFreeze(attacker,false)??false) { score+=30; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE)) score-=20; } } @@ -2903,50 +2903,50 @@ public int pbGetMoveScore(IBattleMove move,IBattler attacker,IBattler opponent,i if (attacker.stages[(int)Stats.DEFENSE]<0) score+=20; break; case Attack.Data.Effects.x16F: - if ((abe?.pbTooHigh(Stats.DEFENSE)??false) && - (abe?.pbTooHigh(Stats.SPDEF)??false) && - !attacker.pbPartner.isFainted() && - attacker.pbPartner is IBattlerEffect p && - p.pbTooHigh(Stats.DEFENSE) && - p.pbTooHigh(Stats.SPDEF)) { + if ((abe?.TooHigh(Stats.DEFENSE)??false) && + (abe?.TooHigh(Stats.SPDEF)??false) && + !attacker.Partner.isFainted() && + attacker.Partner is IBattlerEffect p && + p.TooHigh(Stats.DEFENSE) && + p.TooHigh(Stats.SPDEF)) { score-=90; } else { score-=attacker.stages[(int)Stats.DEFENSE]*10; score-=attacker.stages[(int)Stats.SPDEF]*10; - if (!attacker.pbPartner.isFainted()) { - score-=attacker.pbPartner.stages[(int)Stats.DEFENSE]*10; - score-=attacker.pbPartner.stages[(int)Stats.SPDEF]*10; + if (!attacker.Partner.isFainted()) { + score-=attacker.Partner.stages[(int)Stats.DEFENSE]*10; + score-=attacker.Partner.stages[(int)Stats.SPDEF]*10; } } break; case Attack.Data.Effects.x16B: if (!@doublebattle) { score-=100; - } else if (attacker.pbPartner.isFainted()) { + } else if (attacker.Partner.isFainted()) { score-=90; } else { - score-=attacker.pbPartner.stages[(int)Stats.SPDEF]*10; + score-=attacker.Partner.stages[(int)Stats.SPDEF]*10; } break; case Attack.Data.Effects.x165: - if (!(obe?.pbCanReduceStatStage(Stats.ATTACK,attacker)??false)) { + if (!(obe?.CanReduceStatStage(Stats.ATTACK,attacker)??false)) { score-=90; } else { score+=opponent.stages[(int)Stats.ATTACK]*20; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasphysicalattack=false; foreach (var thismove in opponent.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsPhysical(thismove.Type)) { + thismove.IsPhysical(thismove.Type)) { hasphysicalattack=true; } } if (hasphysicalattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } @@ -2969,7 +2969,7 @@ attacker.pbPartner is IBattlerEffect p && if (opponent.stages[(int)Stats.SPATK]>0) score+=20; break; case Attack.Data.Effects.x03E: - if (!(obe?.pbCanReduceStatStage(Stats.SPATK,attacker)??false)) { + if (!(obe?.CanReduceStatStage(Stats.SPATK,attacker)??false)) { score-=90; } else { @@ -2980,11 +2980,11 @@ attacker.pbPartner is IBattlerEffect p && case Attack.Data.Effects.x154: count=0; for (int i = 0; i < 4; i++) { - IBattler battler=@battlers[i]; - if (battler.pbHasType(Types.GRASS) && !battler.isAirborne() && - battler is IBattlerEffect b && (!b.pbTooHigh(Stats.ATTACK) || !b.pbTooHigh(Stats.SPATK))) { + IBattler battler=_battlers[i]; + if (battler.HasType(Types.GRASS) && !battler.isAirborne() && + battler is IBattlerEffect b && (!b.TooHigh(Stats.ATTACK) || !b.TooHigh(Stats.SPATK))) { count+=1; - if (attacker.pbIsOpposing(battler.Index)) { + if (attacker.IsOpposing(battler.Index)) { score-=20; } else { @@ -2998,10 +2998,10 @@ attacker.pbPartner is IBattlerEffect p && case Attack.Data.Effects.x15F: count=0; for (int i = 0; i < 4; i++) { - IBattler battler=@battlers[i]; - if (battler.pbHasType(Types.GRASS) && battler is IBattlerEffect b && !b.pbTooHigh(Stats.DEFENSE)) { + IBattler battler=_battlers[i]; + if (battler.HasType(Types.GRASS) && battler is IBattlerEffect b && !b.TooHigh(Stats.DEFENSE)) { count+=1; - if (attacker.pbIsOpposing(battler.Index)) { + if (attacker.IsOpposing(battler.Index)) { score-=20; } else { @@ -3014,13 +3014,13 @@ attacker.pbPartner is IBattlerEffect p && case Attack.Data.Effects.x16C: count=0; for (int i = 0; i < 4; i++) { - IBattler battler=@battlers[i]; + IBattler battler=_battlers[i]; if (battler.Status==Status.POISON && battler is IBattlerEffect b && - (!b.pbTooLow(Stats.ATTACK) || - !b.pbTooLow(Stats.SPATK) || - !b.pbTooLow(Stats.SPEED))) { + (!b.TooLow(Stats.ATTACK) || + !b.TooLow(Stats.SPATK) || + !b.TooLow(Stats.SPEED))) { count+=1; - if (attacker.pbIsOpposing(battler.Index)) { + if (attacker.IsOpposing(battler.Index)) { score+=attacker.stages[(int)Stats.ATTACK]*10; score+=attacker.stages[(int)Stats.SPATK]*10; score+=attacker.stages[(int)Stats.SPEED]*10; @@ -3052,20 +3052,20 @@ attacker.pbPartner is IBattlerEffect p && } break; case Attack.Data.Effects.x157: - if (opponent.pbHasType(Types.GHOST)) { + if (opponent.HasType(Types.GHOST)) { score-=90; } break; case Attack.Data.Effects.x178: - if (opponent.pbHasType(Types.GRASS)) { + if (opponent.HasType(Types.GRASS)) { score-=90; } break; case Attack.Data.Effects.x152: break; case Attack.Data.Effects.x162: - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeed>ospeed) { score-=90; } @@ -3075,13 +3075,13 @@ attacker.pbPartner is IBattlerEffect p && //case 0x147: // break; case Attack.Data.Effects.x17A: - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeed>ospeed) { score-=90; } else { - if (opponent.pbHasMoveType(Types.FIRE)) score+=30; + if (opponent.HasMoveType(Types.FIRE)) score+=30; } break; case Attack.Data.Effects.x179: @@ -3090,7 +3090,7 @@ attacker.pbPartner is IBattlerEffect p && } else { score-=90; // Because it will fail here - if (skill>=PBTrainerAI.bestSkill) score=0; + if (skill>=TrainerAI.bestSkill) score=0; } break; case Attack.Data.Effects.x15E: @@ -3101,7 +3101,7 @@ attacker.pbPartner is IBattlerEffect p && score-=90; } else { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { score-=(attacker.effects.ProtectRate*40); } if (attacker.turncount==0) score+=50; @@ -3111,32 +3111,32 @@ attacker.pbPartner is IBattlerEffect p && //case 0x14D: // break; case Attack.Data.Effects.x16E: - if ((abe?.pbTooHigh(Stats.SPATK)??false) && - (abe?.pbTooHigh(Stats.SPDEF)??false) && - (abe?.pbTooHigh(Stats.SPEED)??false)) { + if ((abe?.TooHigh(Stats.SPATK)??false) && + (abe?.TooHigh(Stats.SPDEF)??false) && + (abe?.TooHigh(Stats.SPEED)??false)) { score-=90; } else { score-=attacker.stages[(int)Stats.SPATK]*10; // Only *10 isntead of *20 score-=attacker.stages[(int)Stats.SPDEF]*10; // because two-turn attack score-=attacker.stages[(int)Stats.SPEED]*10; - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { hasspecialattack=false; foreach (var thismove in attacker.moves) { if (thismove.id!=0 && thismove.basedamage>0 && - thismove.pbIsSpecial(thismove.Type)) { + thismove.IsSpecial(thismove.Type)) { hasspecialattack=true; } } if (hasspecialattack) { score+=20; - } else if (skill>=PBTrainerAI.highSkill) { + } else if (skill>=TrainerAI.highSkill) { score-=90; } } - if (skill>=PBTrainerAI.highSkill) { - aspeed=pbRoughStat(attacker,Stats.SPEED,skill); - ospeed=pbRoughStat(opponent,Stats.SPEED,skill); + if (skill>=TrainerAI.highSkill) { + aspeed=RoughStat(attacker,Stats.SPEED,skill); + ospeed=RoughStat(opponent,Stats.SPEED,skill); if (aspeedospeed) { score+=30; } @@ -3144,7 +3144,7 @@ attacker.pbPartner is IBattlerEffect p && } break; case Attack.Data.Effects.x15D: - if (skill>=PBTrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { + if (skill>=TrainerAI.highSkill && opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { score-=80; } else { @@ -3152,7 +3152,7 @@ attacker.pbPartner is IBattlerEffect p && } break; case Attack.Data.Effects.x156: - if (!(abe?.pbTooHigh(Stats.ATTACK)??false) && opponent.HP<=(opponent.TotalHP/4)) score+=20; + if (!(abe?.TooHigh(Stats.ATTACK)??false) && opponent.HP<=(opponent.TotalHP/4)) score+=20; break; case Attack.Data.Effects.x15B: avg=opponent.stages[(int)Stats.ATTACK]*10; @@ -3162,7 +3162,7 @@ attacker.pbPartner is IBattlerEffect p && case Attack.Data.Effects.x163: break; case Attack.Data.Effects.x155: - if (opponent.pbOwnSide.StickyWeb) score-=95; + if (opponent.OwnSide.StickyWeb) score-=95; break; case Attack.Data.Effects.x171: break; @@ -3182,9 +3182,9 @@ attacker.pbPartner is IBattlerEffect p && #endregion #region Other score modifications ############################################### // Prefer damaging moves if AI has no more Pokémon - if (attacker.pbNonActivePokemonCount==0) { - if (skill>=PBTrainerAI.mediumSkill && - !(skill>=PBTrainerAI.highSkill && opponent.pbNonActivePokemonCount>0)) { + if (attacker.NonActivePokemonCount==0) { + if (skill>=TrainerAI.mediumSkill && + !(skill>=TrainerAI.highSkill && opponent.NonActivePokemonCount>0)) { if (move.basedamage==0) { score/=1.5f; } else if (opponent.HP<=opponent.TotalHP/2) { @@ -3194,13 +3194,13 @@ attacker.pbPartner is IBattlerEffect p && } // Don't prefer attacking the opponent if they'd be semi-invulnerable if (opponent.effects.TwoTurnAttack>0 && - skill>=PBTrainerAI.highSkill) { + skill>=TrainerAI.highSkill) { Attack.Data.Effects invulmove=Kernal.MoveData[opponent.effects.TwoTurnAttack].Effect; if (move.Accuracy>0 && // Checks accuracy, i.e. targets opponent (new Attack.Data.Effects[] { Attack.Data.Effects.x09C,Attack.Data.Effects.x101,Attack.Data.Effects.x100,Attack.Data.Effects.x108,Attack.Data.Effects.x111,Attack.Data.Effects.x138 }.Contains(invulmove) || opponent.effects.SkyDrop) && attacker.SPE>opponent.SPE) { - if (skill>=PBTrainerAI.bestSkill) { // Can get past semi-invulnerability + if (skill>=TrainerAI.bestSkill) { // Can get past semi-invulnerability bool miss=false; switch (invulmove) { case Attack.Data.Effects.x09C: case Attack.Data.Effects.x108: // Fly: Bounce @@ -3254,7 +3254,7 @@ attacker.pbPartner is IBattlerEffect p && if (attacker.hasWorkingItem(Items.CHOICE_BAND) || attacker.hasWorkingItem(Items.CHOICE_SPECS) || attacker.hasWorkingItem(Items.CHOICE_SCARF)) { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.basedamage>=60) { score+=60; } else if (move.basedamage>0) { @@ -3270,7 +3270,7 @@ attacker.pbPartner is IBattlerEffect p && // If user has King's Rock, prefer moves that may cause flinching with it // TODO // If user is asleep, prefer moves that are usable while asleep if (attacker.Status==Status.SLEEP) { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.Effect!=Attack.Data.Effects.x05D && move.Effect!=Attack.Data.Effects.x062) { // Snore, Sleep Talk bool hasSleepMove=false; foreach (var m in attacker.moves) { @@ -3284,7 +3284,7 @@ attacker.pbPartner is IBattlerEffect p && } // If user is frozen, prefer a move that can thaw the user if (attacker.Status==Status.FROZEN) { - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (move.Flags.Defrost) { //.canThawUser() score+=40; } @@ -3303,28 +3303,28 @@ attacker.pbPartner is IBattlerEffect p && #endregion // Adjust score based on how much damage it can deal if (move.basedamage>0) { - float typemod=pbTypeModifier(move.Type,attacker,opponent); + float typemod=TypeModifier(move.Type,attacker,opponent); if (typemod==0 || score<=0) { score=0; - } else if (skill>=PBTrainerAI.mediumSkill && typemod<=8 && + } else if (skill>=TrainerAI.mediumSkill && typemod<=8 && opponent.hasWorkingAbility(Abilities.WONDER_GUARD)) { score=0; - } else if (skill>=PBTrainerAI.mediumSkill && move.Type == Types.GROUND && + } else if (skill>=TrainerAI.mediumSkill && move.Type == Types.GROUND && (opponent.hasWorkingAbility(Abilities.LEVITATE) || opponent.effects.MagnetRise>0)) { score=0; - } else if (skill>=PBTrainerAI.mediumSkill && move.Type == Types.FIRE && + } else if (skill>=TrainerAI.mediumSkill && move.Type == Types.FIRE && opponent.hasWorkingAbility(Abilities.FLASH_FIRE)) { score=0; - } else if (skill>=PBTrainerAI.mediumSkill && move.Type == Types.WATER && + } else if (skill>=TrainerAI.mediumSkill && move.Type == Types.WATER && (opponent.hasWorkingAbility(Abilities.WATER_ABSORB) || opponent.hasWorkingAbility(Abilities.STORM_DRAIN) || opponent.hasWorkingAbility(Abilities.DRY_SKIN))) { score=0; - } else if (skill>=PBTrainerAI.mediumSkill && move.Type == Types.GRASS && + } else if (skill>=TrainerAI.mediumSkill && move.Type == Types.GRASS && opponent.hasWorkingAbility(Abilities.SAP_SIPPER)) { score=0; - } else if (skill>=PBTrainerAI.mediumSkill && move.Type == Types.ELECTRIC && + } else if (skill>=TrainerAI.mediumSkill && move.Type == Types.ELECTRIC && (opponent.hasWorkingAbility(Abilities.VOLT_ABSORB) || opponent.hasWorkingAbility(Abilities.LIGHTNING_ROD) || opponent.hasWorkingAbility(Abilities.MOTOR_DRIVE))) { @@ -3334,15 +3334,15 @@ attacker.pbPartner is IBattlerEffect p && // Calculate how much damage the move will do (roughly) int realDamage=move.basedamage;//??0; if (move.basedamage==1) realDamage=60; - if (skill>=PBTrainerAI.mediumSkill) { - realDamage=pbBetterBaseDamage(move,attacker,opponent,skill,realDamage); + if (skill>=TrainerAI.mediumSkill) { + realDamage=BetterBaseDamage(move,attacker,opponent,skill,realDamage); } - realDamage=pbRoughDamage(move,attacker,opponent,skill,realDamage); + realDamage=RoughDamage(move,attacker,opponent,skill,realDamage); // Account for accuracy of move - int accuracy=pbRoughAccuracy(move,attacker,opponent,skill); + int accuracy=RoughAccuracy(move,attacker,opponent,skill); float basedamage=realDamage*accuracy/100.0f; // Two-turn attacks waste 2 turns to deal one lot of damage - //if (move.pbTwoTurnAttack(attacker) || move.Effect==Attack.Data.Effects.x051) { // Hyper Beam + //if (move.TwoTurnAttack(attacker) || move.Effect==Attack.Data.Effects.x051) { // Hyper Beam if (Kernal.MoveMetaData[move.id].MaxTurns > 1 || move.Effect==Attack.Data.Effects.x051) { // Hyper Beam basedamage*=2/3; // Not halved because semi-invulnerable during use or hits first turn } @@ -3385,9 +3385,9 @@ attacker.pbPartner is IBattlerEffect p && // Don't prefer attacks which don't deal damage score-=10; // Account for accuracy of move - int accuracy=pbRoughAccuracy(move,attacker,opponent,skill); + int accuracy=RoughAccuracy(move,attacker,opponent,skill); score*=accuracy/100.0f; - if (score<=10 && skill>=PBTrainerAI.highSkill) score=0; + if (score<=10 && skill>=TrainerAI.highSkill) score=0; } //score=score.ToInteger(); if (score<0) score=0; @@ -3395,9 +3395,9 @@ attacker.pbPartner is IBattlerEffect p && } #region Get type effectiveness and approximate stats. - public float pbTypeModifier(Types type,IBattler attacker,IBattler opponent) { + public float TypeModifier(Types type,IBattler attacker,IBattler opponent) { if (type<0) return 8; - if (type == Types.GROUND && opponent.pbHasType(Types.FLYING) && + if (type == Types.GROUND && opponent.HasType(Types.FLYING) && opponent.hasWorkingItem(Items.IRON_BALL) && !Core.USENEWBATTLEMECHANICS) return 8; Types atype=type; Types otype1=opponent.Type1; @@ -3437,7 +3437,7 @@ public float pbTypeModifier(Types type,IBattler attacker,IBattler opponent) { // if (otype3 == Types.DARK && atype.isIneffective(otype3)) mod3=2; //} //// Delta Stream's weather - //if (pbWeather==Weather.STRONGWINDS) { + //if (Weather==Weather.STRONGWINDS) { // if (otype1 == Types.FLYING && atype.isSuperEffective(otype1)) mod1=2; // if (otype2 == Types.FLYING && atype.isSuperEffective(otype2)) mod2=2; // if (otype3 == Types.FLYING && atype.isSuperEffective(otype3)) mod3=2; @@ -3451,18 +3451,18 @@ public float pbTypeModifier(Types type,IBattler attacker,IBattler opponent) { return mod1*mod2*mod3; } - public float pbTypeModifier2(IBattler battlerThis,IBattler battlerOther) { + public float TypeModifier2(IBattler battlerThis,IBattler battlerOther) { // battlerThis isn't a Battler object, it's a Pokémon - it has no third type if (battlerThis.Type1==battlerThis.Type2) { - return 4*pbTypeModifier(battlerThis.Type1,battlerThis,battlerOther); + return 4*TypeModifier(battlerThis.Type1,battlerThis,battlerOther); } - float ret=pbTypeModifier(battlerThis.Type1,battlerThis,battlerOther); - ret*=pbTypeModifier(battlerThis.Type2,battlerThis,battlerOther); + float ret=TypeModifier(battlerThis.Type1,battlerThis,battlerOther); + ret*=TypeModifier(battlerThis.Type2,battlerThis,battlerOther); return ret*2; // 0,1,2,4,_8_,16,32,64 } - public int pbRoughStat(IBattler battler,Stats stat,int skill) { - if (skill>=PBTrainerAI.highSkill && stat==Stats.SPEED) return battler.SPE;//pbSpeed; + public int RoughStat(IBattler battler,Stats stat,int skill) { + if (skill>=TrainerAI.highSkill && stat==Stats.SPEED) return battler.SPE;//Speed; int[] stagemul=new int[] { 2,2,2,2,2,2,2,3,4,5,6,7,8 }; int[] stagediv=new int[] { 8,7,6,5,4,3,2,2,2,2,2,2,2 }; int stage=battler.stages[(int)stat]+6; @@ -3482,9 +3482,9 @@ public int pbRoughStat(IBattler battler,Stats stat,int skill) { return (int)Math.Floor(value*1.0f*stagemul[stage]/stagediv[stage]); } - public int pbBetterBaseDamage(IBattleMove move,IBattler attacker,IBattler opponent,int skill,int basedamage) { + public int BetterBaseDamage(IBattleMove move,IBattler attacker,IBattler opponent,int skill,int basedamage) { int mult, n = 0; float weight = 0; - // Covers all function codes which have their own def pbBaseDamage + // Covers all function codes which have their own def BaseDamage switch (move.Effect) { case Attack.Data.Effects.x083: // SonicBoom basedamage=20; @@ -3554,7 +3554,7 @@ public int pbBetterBaseDamage(IBattleMove move,IBattler attacker,IBattler oppone if (attacker.Item==0 || attacker.hasWorkingItem(Items.FLYING_GEM)) basedamage*=2; break; case Attack.Data.Effects.x0CC: // Weather Ball - if (pbWeather!=0) basedamage*=2; + if (Weather!=0) basedamage*=2; break; case Attack.Data.Effects.x07A: // Return basedamage=(int)Math.Max((int)Math.Floor(attacker.Happiness*2/5f),1); @@ -3569,8 +3569,8 @@ public int pbBetterBaseDamage(IBattleMove move,IBattler attacker,IBattler oppone basedamage=(int)Math.Max((int)Math.Floor(120f*opponent.HP/opponent.TotalHP),1); break; case Attack.Data.Effects.x0DC: // Gyro Ball - int ospeed=pbRoughStat(opponent,Stats.SPEED,skill); - int aspeed=pbRoughStat(attacker,Stats.SPEED,skill); + int ospeed=RoughStat(opponent,Stats.SPEED,skill); + int aspeed=RoughStat(attacker,Stats.SPEED,skill); basedamage=(int)Math.Max((int)Math.Min((int)Math.Floor(25f*ospeed/aspeed),150),1); break; case Attack.Data.Effects.x132: // Stored Power @@ -3590,14 +3590,14 @@ public int pbBetterBaseDamage(IBattleMove move,IBattler attacker,IBattler oppone basedamage=(int)Math.Min(20*(mult+3),200); break; case Attack.Data.Effects.x088: // Hidden Power - KeyValuePair hp=PokeBattle_Move_090.pbHiddenPower(attacker.IV); + KeyValuePair hp=PokeBattle_Move_090.HiddenPower(attacker.IV); basedamage=hp.Value; break; case Attack.Data.Effects.x078: // Fury Cutter basedamage=basedamage<<(attacker.effects.FuryCutter-1); break; case Attack.Data.Effects.x12F: // Echoed Voice - basedamage*=attacker.pbOwnSide.EchoedVoiceCounter; + basedamage*=attacker.OwnSide.EchoedVoiceCounter; break; case Attack.Data.Effects.x07B: // Present basedamage=50; @@ -3696,7 +3696,7 @@ public int pbBetterBaseDamage(IBattleMove move,IBattler attacker,IBattler oppone } break; case Attack.Data.Effects.x09B: // Beat Up - PokemonEssentials.Interface.PokeBattle.IPokemon[] party=pbParty(attacker.Index); + PokemonEssentials.Interface.PokeBattle.IPokemon[] party=Party(attacker.Index); mult=0; for (int i = 0; i < party.Length; i++) { if (party[i].IsNotNullOrNone() && !party[i].isEgg && @@ -3705,17 +3705,17 @@ public int pbBetterBaseDamage(IBattleMove move,IBattler attacker,IBattler oppone basedamage*=mult; break; case Attack.Data.Effects.x098: // SolarBeam - if (pbWeather!=0 && pbWeather!=Weather.SUNNYDAY) { + if (Weather!=0 && Weather!=Weather.SUNNYDAY) { basedamage=(int)Math.Floor(basedamage*0.5f); } break; case Attack.Data.Effects.x106: // Whirlpool - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (Kernal.MoveData[opponent.effects.TwoTurnAttack].Effect==Attack.Data.Effects.x100) basedamage*=2; // Dive } break; case Attack.Data.Effects.x076: // Rollout - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.effects.DefenseCurl) basedamage*=2; } break; @@ -3741,7 +3741,7 @@ public int pbBetterBaseDamage(IBattleMove move,IBattler attacker,IBattler oppone return basedamage; } - public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage) { + public int RoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage) { // Fixed damage moves if (move.Effect==Attack.Data.Effects.x083 || // SonicBoom move.Effect==Attack.Data.Effects.x02A || // Dragon Rage @@ -3756,23 +3756,23 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, move.Effect==Attack.Data.Effects.x141) return (int)basedamage; // Final Gambit Types type=move.Type; // More accurate move type (includes Normalize, most type-changing moves, etc.) - if (skill>=PBTrainerAI.highSkill) { - type=move.pbType(type,attacker,opponent); + if (skill>=TrainerAI.highSkill) { + type=move.GetType(type,attacker,opponent); } // Technician - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.TECHNICIAN) && basedamage<=60) { basedamage=(int)Math.Round(basedamage*1.5); } } // Iron Fist - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.hasWorkingAbility(Abilities.IRON_FIST) && move.Flags.Punching) { basedamage=(int)Math.Round(basedamage*1.2); } } // Reckless - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.hasWorkingAbility(Abilities.RECKLESS)) { if(move.Effect==Attack.Data.Effects.x031 || // Take Down, etc. move.Effect==Attack.Data.Effects.x0C7 || // Double-Edge, etc. @@ -3786,22 +3786,22 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Flare Boost - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.FLARE_BOOST) && - attacker.Status==Status.BURN && move.pbIsSpecial(type)) { + attacker.Status==Status.BURN && move.IsSpecial(type)) { basedamage=(int)Math.Round(basedamage*1.5); } } // Toxic Boost - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.TOXIC_BOOST) && - attacker.Status==Status.POISON && move.pbIsPhysical(type)) { + attacker.Status==Status.POISON && move.IsPhysical(type)) { basedamage=(int)Math.Round(basedamage*1.5); } } // Analytic // Rivalry - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.hasWorkingAbility(Abilities.RIVALRY) && attacker.Gender!=null && opponent.Gender!=null) { if (attacker.Gender==opponent.Gender) { @@ -3813,9 +3813,9 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Sand Force - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.hasWorkingAbility(Abilities.SAND_FORCE) && - pbWeather==Weather.SANDSTORM && + Weather==Weather.SANDSTORM && (type == Types.ROCK || type == Types.GROUND || type == Types.STEEL)) { @@ -3823,21 +3823,21 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Heatproof - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { if (opponent.hasWorkingAbility(Abilities.HEATPROOF) && type == Types.FIRE) { basedamage=(int)Math.Round(basedamage*0.5); } } // Dry Skin - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { if (opponent.hasWorkingAbility(Abilities.DRY_SKIN) && type == Types.FIRE) { basedamage=(int)Math.Round(basedamage*1.25); } } // Sheer Force - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.SHEER_FORCE) && move.AddlEffect>0) { basedamage=(int)Math.Round(basedamage*1.3); } @@ -3915,11 +3915,11 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, basedamage=(int)Math.Round(basedamage*1.2); } // Muscle Band - if (attacker.hasWorkingItem(Items.MUSCLE_BAND) && move.pbIsPhysical(type)) { + if (attacker.hasWorkingItem(Items.MUSCLE_BAND) && move.IsPhysical(type)) { basedamage=(int)Math.Round(basedamage*1.1); } // Wise Glasses - if (attacker.hasWorkingItem(Items.WISE_GLASSES) && move.pbIsSpecial(type)) { + if (attacker.hasWorkingItem(Items.WISE_GLASSES) && move.IsSpecial(type)) { basedamage=(int)Math.Round(basedamage*1.1); } // Legendary Orbs @@ -3938,7 +3938,7 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, (type == Types.DRAGON || type == Types.GHOST)) { basedamage=(int)Math.Round(basedamage*1.2); } - // pbBaseDamageMultiplier - TODO + // BaseDamageMultiplier - TODO // Me First // Charge if (attacker.effects.Charge>0 && type == Types.ELECTRIC) { @@ -3946,10 +3946,10 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } // Helping Hand - n/a // Water Sport - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (type == Types.FIRE) { for (int i = 0; i < 4; i++) { - if (@battlers[i].effects.WaterSport && !@battlers[i].isFainted()) { + if (_battlers[i].effects.WaterSport && !_battlers[i].isFainted()) { basedamage=(int)Math.Round(basedamage*0.33); break; } @@ -3957,10 +3957,10 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Mud Sport - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (type == Types.ELECTRIC) { for (int i = 0; i < 4; i++) { - if (@battlers[i].effects.MudSport && !@battlers[i].isFainted()) { + if (_battlers[i].effects.MudSport && !_battlers[i].isFainted()) { basedamage=(int)Math.Round(basedamage*0.33); break; } @@ -3968,31 +3968,31 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Get base attack stat - int atk=pbRoughStat(attacker,Stats.ATTACK,skill); + int atk=RoughStat(attacker,Stats.ATTACK,skill); if (move.Effect==Attack.Data.Effects.x12A) { // Foul Play - atk=pbRoughStat(opponent,Stats.ATTACK,skill); + atk=RoughStat(opponent,Stats.ATTACK,skill); } - if (type>=0 && move.pbIsSpecial(type)) { - atk=pbRoughStat(attacker,Stats.SPATK,skill); + if (type>=0 && move.IsSpecial(type)) { + atk=RoughStat(attacker,Stats.SPATK,skill); if (move.Effect==Attack.Data.Effects.x12A) { // Foul Play - atk=pbRoughStat(opponent,Stats.SPATK,skill); + atk=RoughStat(opponent,Stats.SPATK,skill); } } // Hustle - if (skill>=PBTrainerAI.highSkill) { - if (attacker.hasWorkingAbility(Abilities.HUSTLE) && move.pbIsPhysical(type)) { + if (skill>=TrainerAI.highSkill) { + if (attacker.hasWorkingAbility(Abilities.HUSTLE) && move.IsPhysical(type)) { atk=(int)Math.Round(atk*1.5); } } // Thick Fat - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { if (opponent.hasWorkingAbility(Abilities.THICK_FAT) && (type == Types.ICE || type == Types.FIRE)) { atk=(int)Math.Round(atk*0.5); } } // Pinch abilities - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.HP<=(int)Math.Floor(attacker.TotalHP/3f)) { if ((attacker.hasWorkingAbility(Abilities.OVERGROW) && type == Types.GRASS) || (attacker.hasWorkingAbility(Abilities.BLAZE) && type == Types.FIRE) || @@ -4003,66 +4003,66 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Guts - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.GUTS) && - attacker.Status!=0 && move.pbIsPhysical(type)) { + attacker.Status!=0 && move.IsPhysical(type)) { atk=(int)Math.Round(atk*1.5); } } // Plus, Minus - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if ((attacker.hasWorkingAbility(Abilities.PLUS) || - attacker.hasWorkingAbility(Abilities.MINUS)) && move.pbIsSpecial(type)) { - IBattler partner=attacker.pbPartner; + attacker.hasWorkingAbility(Abilities.MINUS)) && move.IsSpecial(type)) { + IBattler partner=attacker.Partner; if (partner.hasWorkingAbility(Abilities.PLUS) || partner.hasWorkingAbility(Abilities.MINUS)) { atk=(int)Math.Round(atk*1.5); } } } // Defeatist - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.hasWorkingAbility(Abilities.DEFEATIST) && attacker.HP<=(int)Math.Floor(attacker.TotalHP/2f)) { atk=(int)Math.Round(atk*0.5); } } // Pure Power, Huge Power - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.hasWorkingAbility(Abilities.PURE_POWER) || attacker.hasWorkingAbility(Abilities.HUGE_POWER)) { atk=(int)Math.Round(atk*2.0); } } // Solar Power - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.SOLAR_POWER) && - pbWeather==Weather.SUNNYDAY && move.pbIsSpecial(type)) { + Weather==Weather.SUNNYDAY && move.IsSpecial(type)) { atk=(int)Math.Round(atk*1.5); } } // Flash Fire - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.FLASH_FIRE) && attacker.effects.FlashFire && type == Types.FIRE) { atk=(int)Math.Round(atk*1.5); } } // Slow Start - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.hasWorkingAbility(Abilities.SLOW_START) && - attacker.turncount<5 && move.pbIsPhysical(type)) { + attacker.turncount<5 && move.IsPhysical(type)) { atk=(int)Math.Round(atk*0.5); } } // Flower Gift - if (skill>=PBTrainerAI.highSkill) { - if (pbWeather==Weather.SUNNYDAY && move.pbIsPhysical(type)) { + if (skill>=TrainerAI.highSkill) { + if (Weather==Weather.SUNNYDAY && move.IsPhysical(type)) { if (attacker.hasWorkingAbility(Abilities.FLOWER_GIFT) && attacker.Species == Pokemons.CHERRIM) { atk=(int)Math.Round(atk*1.5); } - if (doublebattle && attacker.pbPartner.hasWorkingAbility(Abilities.FLOWER_GIFT) && - attacker.pbPartner.Species == Pokemons.CHERRIM) { + if (doublebattle && attacker.Partner.hasWorkingAbility(Abilities.FLOWER_GIFT) && + attacker.Partner.Species == Pokemons.CHERRIM) { atk=(int)Math.Round(atk*1.5); } } @@ -4070,11 +4070,11 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, // Attack-boosting items if (attacker.hasWorkingItem(Items.THICK_CLUB) && (attacker.Species == Pokemons.CUBONE || - attacker.Species == Pokemons.MAROWAK) && move.pbIsPhysical(type)) { + attacker.Species == Pokemons.MAROWAK) && move.IsPhysical(type)) { atk=(int)Math.Round(atk*2.0); } if (attacker.hasWorkingItem(Items.DEEP_SEA_TOOTH) && - attacker.Species == Pokemons.CLAMPERL && move.pbIsSpecial(type)) { + attacker.Species == Pokemons.CLAMPERL && move.IsSpecial(type)) { atk=(int)Math.Round(atk*2.0); } if (attacker.hasWorkingItem(Items.LIGHT_BALL) && @@ -4083,55 +4083,55 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } if (attacker.hasWorkingItem(Items.SOUL_DEW) && (attacker.Species == Pokemons.LATIAS || - attacker.Species == Pokemons.LATIOS) && move.pbIsSpecial(type)) { + attacker.Species == Pokemons.LATIOS) && move.IsSpecial(type)) { atk=(int)Math.Round(atk*1.5); } - if (attacker.hasWorkingItem(Items.CHOICE_BAND) && move.pbIsPhysical(type)) { + if (attacker.hasWorkingItem(Items.CHOICE_BAND) && move.IsPhysical(type)) { atk=(int)Math.Round(atk*1.5); } - if (attacker.hasWorkingItem(Items.CHOICE_SPECS) && move.pbIsSpecial(type)) { + if (attacker.hasWorkingItem(Items.CHOICE_SPECS) && move.IsSpecial(type)) { atk=(int)Math.Round(atk*1.5); } // Get base defense stat - int defense=pbRoughStat(opponent,Stats.DEFENSE,skill); + int defense=RoughStat(opponent,Stats.DEFENSE,skill); bool applysandstorm=false; - if (type>=0 && move.pbIsSpecial(type)) { + if (type>=0 && move.IsSpecial(type)) { if (move.Effect!=Attack.Data.Effects.x11B) { // Psyshock - defense=pbRoughStat(opponent,Stats.SPDEF,skill); + defense=RoughStat(opponent,Stats.SPDEF,skill); applysandstorm=true; } } // Sandstorm weather - if (skill>=PBTrainerAI.highSkill) { - if (pbWeather==Weather.SANDSTORM && - opponent.pbHasType(Types.ROCK) && applysandstorm) { + if (skill>=TrainerAI.highSkill) { + if (Weather==Weather.SANDSTORM && + opponent.HasType(Types.ROCK) && applysandstorm) { defense=(int)Math.Round(defense*1.5); } } // Marvel Scale - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE) && - opponent.Status>0 && move.pbIsPhysical(type)) { + opponent.Status>0 && move.IsPhysical(type)) { defense=(int)Math.Round(defense*1.5); } } // Flower Gift - if (skill>=PBTrainerAI.bestSkill) { - if (pbWeather==Weather.SUNNYDAY && move.pbIsSpecial(type)) { + if (skill>=TrainerAI.bestSkill) { + if (Weather==Weather.SUNNYDAY && move.IsSpecial(type)) { if (opponent.hasWorkingAbility(Abilities.FLOWER_GIFT) && opponent.Species == Pokemons.CHERRIM) { defense=(int)Math.Round(defense*1.5); } - if (opponent.pbPartner.hasWorkingAbility(Abilities.FLOWER_GIFT) && - opponent.pbPartner.Species == Pokemons.CHERRIM) { + if (opponent.Partner.hasWorkingAbility(Abilities.FLOWER_GIFT) && + opponent.Partner.Species == Pokemons.CHERRIM) { defense=(int)Math.Round(defense*1.5); } } } // Defense-boosting items - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingItem(Items.EVIOLITE)) { - //Pokemon[] evos=pbGetEvolvedFormData(opponent.Species); + //Pokemon[] evos=GetEvolvedFormData(opponent.Species); int evos=Kernal.PokemonEvolutionsData[opponent.Species].Length; //if (evos && evos.Length>0) { if (evos>0) { @@ -4139,32 +4139,32 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } if (opponent.hasWorkingItem(Items.DEEP_SEA_SCALE) && - opponent.Species == Pokemons.CLAMPERL && move.pbIsSpecial(type)) { + opponent.Species == Pokemons.CLAMPERL && move.IsSpecial(type)) { defense=(int)Math.Round(defense*2.0); } if (opponent.hasWorkingItem(Items.METAL_POWDER) && opponent.Species == Pokemons.DITTO && - !opponent.effects.Transform && move.pbIsPhysical(type)) { + !opponent.effects.Transform && move.IsPhysical(type)) { defense=(int)Math.Round(defense*2.0); } if (opponent.hasWorkingItem(Items.SOUL_DEW) && (opponent.Species == Pokemons.LATIAS || - opponent.Species == Pokemons.LATIOS) && move.pbIsSpecial(type)) { + opponent.Species == Pokemons.LATIOS) && move.IsSpecial(type)) { defense=(int)Math.Round(defense*1.5); } } // Main damage calculation double damage=Math.Floor(Math.Floor(Math.Floor(2.0f*attacker.Level/5f+2f)*basedamage*atk/defense)/50f)+2; // Multi-targeting attacks - if (skill>=PBTrainerAI.highSkill) { - if (move.pbTargetsMultiple(attacker)) { + if (skill>=TrainerAI.highSkill) { + if (move.TargetsMultiple(attacker)) { //if (move.hasMultipleTargets()) { damage=(int)Math.Round(damage*0.75); } } // Weather - if (skill>=PBTrainerAI.mediumSkill) { - switch (pbWeather) { + if (skill>=TrainerAI.mediumSkill) { + switch (Weather) { case Weather.SUNNYDAY: if (type == Types.FIRE) { damage=(int)Math.Round(damage*1.5); @@ -4184,10 +4184,10 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, // Critical hits - n/a // Random variance - n/a // STAB - if (skill>=PBTrainerAI.mediumSkill) { - if (attacker.pbHasType(type)) { + if (skill>=TrainerAI.mediumSkill) { + if (attacker.HasType(type)) { if (attacker.hasWorkingAbility(Abilities.ADAPTABILITY) && - skill>=PBTrainerAI.highSkill) { + skill>=TrainerAI.highSkill) { damage=(int)Math.Round(damage*2f); } else { @@ -4196,13 +4196,13 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Type effectiveness - float typemod=pbTypeModifier(type,attacker,opponent); - if (skill>=PBTrainerAI.highSkill) { + float typemod=TypeModifier(type,attacker,opponent); + if (skill>=TrainerAI.highSkill) { damage=(int)Math.Round(damage*typemod*1.0/8); } // Burn - if (skill>=PBTrainerAI.mediumSkill) { - if (attacker.Status==Status.BURN && move.pbIsPhysical(type) && + if (skill>=TrainerAI.mediumSkill) { + if (attacker.Status==Status.BURN && move.IsPhysical(type) && !attacker.hasWorkingAbility(Abilities.GUTS)) { damage=(int)Math.Round(damage*0.5); } @@ -4210,9 +4210,9 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, // Make sure damage is at least 1 if (damage<1) damage=1; // Reflect - if (skill>=PBTrainerAI.highSkill) { - if (opponent.pbOwnSide.Reflect>0 && move.pbIsPhysical(type)) { - if (!opponent.pbPartner.isFainted()) { + if (skill>=TrainerAI.highSkill) { + if (opponent.OwnSide.Reflect>0 && move.IsPhysical(type)) { + if (!opponent.Partner.isFainted()) { damage=(int)Math.Round(damage*0.66); } else { @@ -4221,9 +4221,9 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Light Screen - if (skill>=PBTrainerAI.highSkill) { - if (opponent.pbOwnSide.LightScreen>0 && move.pbIsSpecial(type)) { - if (!opponent.pbPartner.isFainted()) { + if (skill>=TrainerAI.highSkill) { + if (opponent.OwnSide.LightScreen>0 && move.IsSpecial(type)) { + if (!opponent.Partner.isFainted()) { damage=(int)Math.Round(damage*0.66); } else { @@ -4232,27 +4232,27 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, } } // Multiscale - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { if (opponent.hasWorkingAbility(Abilities.MULTISCALE) && opponent.HP==opponent.TotalHP) { damage=(int)Math.Round(damage*0.5); } } // Tinted Lens - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { if (attacker.hasWorkingAbility(Abilities.TINTED_LENS) && typemod<8) { damage=(int)Math.Round(damage*2.0); } } // Friend Guard - if (skill>=PBTrainerAI.bestSkill) { - if (opponent.pbPartner.hasWorkingAbility(Abilities.FRIEND_GUARD)) { + if (skill>=TrainerAI.bestSkill) { + if (opponent.Partner.hasWorkingAbility(Abilities.FRIEND_GUARD)) { damage=(int)Math.Round(damage*0.75); } } // Sniper - n/a // Solid Rock, Filter - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { if ((opponent.hasWorkingAbility(Abilities.SOLID_ROCK) || opponent.hasWorkingAbility(Abilities.FILTER)) && typemod>8) { damage=(int)Math.Round(damage*0.75); @@ -4274,7 +4274,7 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, if (attacker.hasWorkingItem(Items.LIFE_ORB)) { damage=(int)Math.Round(damage*1.3); } - if (typemod>8 && skill>=PBTrainerAI.highSkill) { + if (typemod>8 && skill>=TrainerAI.highSkill) { if ((opponent.hasWorkingItem(Items.CHOPLE_BERRY) && type == Types.FIGHTING) || (opponent.hasWorkingItem(Items.COBA_BERRY) && type == Types.FLYING) || (opponent.hasWorkingItem(Items.KEBIA_BERRY) && type == Types.POISON) || @@ -4294,15 +4294,15 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, damage=(int)Math.Round(damage*0.5); } } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingItem(Items.CHILAN_BERRY) && type == Types.NORMAL) { damage=(int)Math.Round(damage*0.5); } } - // pbModifyDamage - TODO + // ModifyDamage - TODO // "AI-specific calculations below" // Increased critical hit rates - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { int c=0; c+=attacker.effects.FocusEnergy; //if (move.hasHighCriticalRate) c+=1; @@ -4322,12 +4322,12 @@ public int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, //return 0; } - public int pbRoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill) { + public int RoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill) { float accuracy=0; // Get base accuracy int baseaccuracy=move.Accuracy;//??0 - if (skill>=PBTrainerAI.mediumSkill) { - if (pbWeather==Weather.SUNNYDAY && + if (skill>=TrainerAI.mediumSkill) { + if (Weather==Weather.SUNNYDAY && (move.Effect==Attack.Data.Effects.x099 || move.Effect==Attack.Data.Effects.x14E)) { // Thunder, Hurricane accuracy=50; } @@ -4346,33 +4346,33 @@ public int pbRoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponen float evasion=(evastage>=0) ? (evastage+3)*100.0f/3f : 300.0f/(3f-evastage); accuracy*=baseaccuracy/evasion; // Accuracy modifiers - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (attacker.hasWorkingAbility(Abilities.COMPOUND_EYES)) accuracy*=1.3f; if (attacker.hasWorkingAbility(Abilities.VICTORY_STAR)) accuracy*=1.1f; - if (skill>=PBTrainerAI.highSkill) { - IBattler partner=!doublebattle ? null : attacker.pbPartner; + if (skill>=TrainerAI.highSkill) { + IBattler partner=!doublebattle ? null : attacker.Partner; if (partner.IsNotNullOrNone() && partner.hasWorkingAbility(Abilities.VICTORY_STAR)) accuracy*=1.1f; } if (attacker.effects.MicleBerry) accuracy*=1.2f; if (attacker.hasWorkingItem(Items.WIDE_LENS)) accuracy*=1.1f; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.HUSTLE) && move.basedamage>0 //&& //ToDo: here - //move.pbIsPhysical(move.pbType(move.Type,attacker,opponent))) accuracy*=0.8f; + //move.IsPhysical(move.Type(move.Type,attacker,opponent))) accuracy*=0.8f; ) accuracy*=0.8f; } - if (skill>=PBTrainerAI.bestSkill) { + if (skill>=TrainerAI.bestSkill) { if (opponent.hasWorkingAbility(Abilities.WONDER_SKIN) && move.basedamage==0 && - attacker.pbIsOpposing(opponent.Index)) accuracy/=2; + attacker.IsOpposing(opponent.Index)) accuracy/=2; if (opponent.hasWorkingAbility(Abilities.TANGLED_FEET) && opponent.effects.Confusion>0) accuracy/=1.2f; - if (pbWeather==Weather.SANDSTORM && + if (Weather==Weather.SANDSTORM && opponent.hasWorkingAbility(Abilities.SAND_VEIL)) accuracy/=1.2f; - if (pbWeather==Weather.HAIL && + if (Weather==Weather.HAIL && opponent.hasWorkingAbility(Abilities.SNOW_CLOAK)) accuracy/=1.2f; } - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (opponent.hasWorkingItem(Items.BRIGHT_POWDER)) accuracy/=1.1f; if (opponent.hasWorkingItem(Items.LAX_INCENSE)) accuracy/=1.1f; } @@ -4381,15 +4381,15 @@ public int pbRoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponen // Override accuracy if (move.Accuracy==0 ) accuracy=125; // Doesn't do accuracy check (always hits) if (move.Effect==Attack.Data.Effects.x17D) accuracy=125; // Swift - if (skill>=PBTrainerAI.mediumSkill) { + if (skill>=TrainerAI.mediumSkill) { if (opponent.effects.LockOn>0 && opponent.effects.LockOnPos==attacker.Index) accuracy=125; - if (skill>=PBTrainerAI.highSkill) { + if (skill>=TrainerAI.highSkill) { if (attacker.hasWorkingAbility(Abilities.NO_GUARD) || opponent.hasWorkingAbility(Abilities.NO_GUARD)) accuracy=125; } if (opponent.effects.Telekinesis>0) accuracy=125; - switch (pbWeather) { + switch (Weather) { case Weather.HAIL: if (move.Effect==Attack.Data.Effects.x105) accuracy=125; // Blizzard break; @@ -4411,15 +4411,15 @@ public int pbRoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponen /// Choose a move to use. /// /// - public void pbChooseMoves(int index) { - IBattler attacker=@battlers[index]; + public void ChooseMoves(int index) { + IBattler attacker=_battlers[index]; int[] scores=new int[] { 0, 0, 0, 0 }; int[] targets=null; List myChoices=new List(); int totalscore=0; int target=-1; int skill=0; - bool wildbattle=(@opponent==null || @opponent.Length == 0) && pbIsOpposing(index); + bool wildbattle=(@opponent==null || @opponent.Length == 0) && IsOpposing(index); if (wildbattle) { // If wild battle for (int i = 0; i < 4; i++) { if (CanChooseMove(index,i,false)) { @@ -4430,31 +4430,31 @@ public void pbChooseMoves(int index) { } } else { - skill=Kernal.TrainerMetaData[pbGetOwner(attacker.Index).trainertype].SkillLevel; //|| 0; - IBattler opponent=attacker.pbOppositeOpposing; - if (@doublebattle && !opponent.isFainted() && !opponent.pbPartner.isFainted()) { + skill=Kernal.TrainerMetaData[GetOwner(attacker.Index).trainertype].SkillLevel; //|| 0; + IBattler opponent=attacker.OppositeOpposing; + if (@doublebattle && !opponent.isFainted() && !opponent.Partner.isFainted()) { // Choose a target and move. Also care about partner. - IBattler otheropp=opponent.pbPartner; + IBattler otheropp=opponent.Partner; List scoresAndTargets=new List(); targets=new int[] { -1, -1, -1, -1 }; for (int i = 0; i < 4; i++) { if (CanChooseMove(index,i,false)) { - int score1=pbGetMoveScore(attacker.moves[i],attacker,opponent,skill); - int score2=pbGetMoveScore(attacker.moves[i],attacker,otheropp,skill); + int score1=GetMoveScore(attacker.moves[i],attacker,opponent,skill); + int score2=GetMoveScore(attacker.moves[i],attacker,otheropp,skill); //if ((attacker.moves[i].Targets&(Attack.Data.Targets)0x20)!=0) { // Target's user's side if (//attacker.moves[i].Target == Attack.Data.Targets.USER_AND_ALLIES //ToDo: This too? attacker.moves[i].Target == Attack.Data.Targets.ALL_POKEMON || attacker.moves[i].Target == Attack.Data.Targets.ALL_OTHER_POKEMON || attacker.moves[i].Target == Attack.Data.Targets.ENTIRE_FIELD || attacker.moves[i].Target == Attack.Data.Targets.USERS_FIELD) { - if (attacker.pbPartner.isFainted()) { // No partner + if (attacker.Partner.isFainted()) { // No partner score1*=5/3; score2*=5/3; } else { // If this move can also target the partner, get the partner's // score too - int s=pbGetMoveScore(attacker.moves[i],attacker,attacker.pbPartner,skill); + int s=GetMoveScore(attacker.moves[i],attacker,attacker.Partner,skill); if (s>=140) { // Highly effective score1*=1/3; score2*=1/3; @@ -4501,11 +4501,11 @@ public void pbChooseMoves(int index) { else { // Choose a move. There is only 1 opposing Pokémon. if (@doublebattle && opponent.isFainted()) { - opponent=opponent.pbPartner; + opponent=opponent.Partner; } for (int i = 0; i < 4; i++) { if (CanChooseMove(index,i,false)) { - scores[i]=pbGetMoveScore(attacker.moves[i],attacker,opponent,skill); + scores[i]=GetMoveScore(attacker.moves[i],attacker,opponent,skill); myChoices.Add(i); } if (scores[i]<0) scores[i]=0; @@ -4518,9 +4518,9 @@ public void pbChooseMoves(int index) { if (scores[i]>maxscore) maxscore=scores[i]; //&& scores[i] } // Minmax choices depending on AI - if (!wildbattle && skill>=PBTrainerAI.mediumSkill) { - float threshold=(skill>=PBTrainerAI.bestSkill) ? 1.5f : (skill>=PBTrainerAI.highSkill) ? 2 : 3; - int newscore=(skill>=PBTrainerAI.bestSkill) ? 5 : (skill>=PBTrainerAI.highSkill) ? 10 : 15; + if (!wildbattle && skill>=TrainerAI.mediumSkill) { + float threshold=(skill>=TrainerAI.bestSkill) ? 1.5f : (skill>=TrainerAI.highSkill) ? 2 : 3; + int newscore=(skill>=TrainerAI.bestSkill) ? 5 : (skill>=TrainerAI.highSkill) ? 10 : 15; for (int i = 0; i < scores.Length; i++) { if (scores[i]>newscore && scores[i]*threshold100) { - int stdev=pbStdDev(scores); + int stdev=StdDev(scores); if (stdev>=40 && Core.Rand.Next(10)!=0) { // If standard deviation is 40 or more, // there is a highly preferred move. Choose it. @@ -4559,10 +4559,10 @@ public void pbChooseMoves(int index) { if (preferredMoves.Count>0) { int i=preferredMoves[Core.Rand.Next(preferredMoves.Count)]; GameDebug.Log($"[AI] Prefer #{Game._INTL(attacker.moves[i].id.ToString(TextScripts.Name))}"); - pbRegisterMove(index,i,false); + RegisterMove(index,i,false); if (targets != null) target=targets[i]; if (@doublebattle && target>=0) { - pbRegisterTarget(index,target); + RegisterTarget(index,target); } return; } @@ -4589,13 +4589,13 @@ public void pbChooseMoves(int index) { } if (badmoves) { // Attacker has terrible moves, try switching instead - if (pbEnemyShouldWithdrawEx(index,true)) { + if (EnemyShouldWithdrawEx(index,true)) { if (Core.INTERNAL) { GameDebug.Log($"[AI] Switching due to terrible moves"); //GameDebug.Log($@"{index},{@choices[index][0]},{@choices[index][1]}, GameDebug.Log($@"{index},{@choices[index].Action},{@choices[index].Index}, - {pbCanChooseNonActive(index)}, - {@battlers[index].pbNonActivePokemonCount}"); + {CanChooseNonActive(index)}, + {_battlers[index].NonActivePokemonCount}"); } return; } @@ -4604,10 +4604,10 @@ public void pbChooseMoves(int index) { if (maxscore<=0) { // If all scores are 0 or less, choose a move at random if (myChoices.Count>0) { - pbRegisterMove(index,myChoices[Core.Rand.Next(myChoices.Count)],false); + RegisterMove(index,myChoices[Core.Rand.Next(myChoices.Count)],false); } else { - pbAutoChooseMove(index); + AutoChooseMove(index); } } else { @@ -4617,7 +4617,7 @@ public void pbChooseMoves(int index) { if (scores[i]>0) { cumtotal+=scores[i]; if (randnum=0) { - pbRegisterTarget(index,target); + RegisterTarget(index,target); } } @@ -4636,22 +4636,22 @@ public void pbChooseMoves(int index) { /// /// /// - public bool pbEnemyShouldMegaEvolve (int index) { + public bool EnemyShouldMegaEvolve (int index) { // Simple "always should if possible" - return pbCanMegaEvolve(index); + return CanMegaEvolve(index); } #region Decide whether the opponent should use an item on the Pokémon. - public bool pbEnemyShouldUseItem (int index) { - Items item=pbEnemyItemToUse(index); + public bool EnemyShouldUseItem (int index) { + Items item=EnemyItemToUse(index); if (item>0) { - pbRegisterItem(index,item,null); + RegisterItem(index,item,null); return true; } return false; } - public bool pbEnemyItemAlreadyUsed (int index,Items item,Items[] items) { + public bool EnemyItemAlreadyUsed (int index,Items item,Items[] items) { //if (@choices[1][0]==3 && @choices[1][1]==item) { if (@choices[1].Action==(ChoiceAction)3 && @choices[1].Index==(int)item) { int qty=0; @@ -4663,16 +4663,16 @@ public bool pbEnemyItemAlreadyUsed (int index,Items item,Items[] items) { return false; } - public Items pbEnemyItemToUse(int index) { + public Items EnemyItemToUse(int index) { if (!@internalbattle) return 0; - Items[] items=pbGetOwnerItems(index); + Items[] items=GetOwnerItems(index); if (items == null) return 0; - IBattler battler=@battlers[index]; + IBattler battler=_battlers[index]; if (battler.isFainted() || battler.effects.Embargo>0) return 0; bool hashpitem=false; foreach (var i in items) { - if (pbEnemyItemAlreadyUsed(index,i,items)) continue; + if (EnemyItemAlreadyUsed(index,i,items)) continue; if (i == Items.POTION || i == Items.SUPER_POTION || i == Items.HYPER_POTION || @@ -4682,7 +4682,7 @@ public Items pbEnemyItemToUse(int index) { } } foreach (var i in items) { - if (pbEnemyItemAlreadyUsed(index,i,items)) continue; + if (EnemyItemAlreadyUsed(index,i,items)) continue; if (i == Items.FULL_RESTORE) { if (battler.HP<=battler.TotalHP/4) return i; if (battler.HP<=battler.TotalHP/2 && Core.Rand.Next(10)<3) return i; @@ -4711,7 +4711,7 @@ public Items pbEnemyItemToUse(int index) { if (i == Items.X_SP_ATK) stat=Stats.SPATK; if (i == Items.X_SP_DEF) stat=Stats.SPDEF; if (i == Items.X_ACCURACY) stat=Stats.ACCURACY; - if (stat>0 && battler is IBattlerEffect b && !b.pbTooHigh(stat.Value)) { + if (stat>0 && battler is IBattlerEffect b && !b.TooHigh(stat.Value)) { if (Core.Rand.Next(10)<3-battler.stages[(int)stat]) return i; } } @@ -4721,28 +4721,28 @@ public Items pbEnemyItemToUse(int index) { #endregion #region Decide whether the opponent should switch Pokémon. - public virtual bool pbEnemyShouldWithdraw (int index) { - //if (Core.INTERNAL && !pbIsOpposing(index)) { - // return pbEnemyShouldWithdrawOld(index); + public virtual bool EnemyShouldWithdraw (int index) { + //if (Core.INTERNAL && !IsOpposing(index)) { + // return EnemyShouldWithdrawOld(index); //} - return pbEnemyShouldWithdrawEx(index,false); + return EnemyShouldWithdrawEx(index,false); } - public bool pbEnemyShouldWithdrawEx (int index,bool alwaysSwitch) { + public bool EnemyShouldWithdrawEx (int index,bool alwaysSwitch) { if (@opponent == null) return false; bool shouldswitch=alwaysSwitch; bool typecheck=false; int batonpass=-1; Types movetype=Types.NONE; - int skill=Kernal.TrainerMetaData[pbGetOwner(index).trainertype].SkillLevel;// || 0; - if (@opponent!= null && !shouldswitch && @battlers[index].turncount>0) { - if (skill>=PBTrainerAI.highSkill) { - IBattler opponent=@battlers[index].pbOppositeOpposing; - if (opponent.isFainted()) opponent=opponent.pbPartner; + int skill=Kernal.TrainerMetaData[GetOwner(index).trainertype].SkillLevel;// || 0; + if (@opponent!= null && !shouldswitch && _battlers[index].turncount>0) { + if (skill>=TrainerAI.highSkill) { + IBattler opponent=_battlers[index].OppositeOpposing; + if (opponent.isFainted()) opponent=opponent.Partner; if (!opponent.isFainted() && opponent.lastMoveUsed>0 && - Math.Abs(opponent.Level-@battlers[index].Level)<=6) { + Math.Abs(opponent.Level-_battlers[index].Level)<=6) { Attack.Data.MoveData move=Kernal.MoveData[opponent.lastMoveUsed]; - float typemod=pbTypeModifier(move.Type,@battlers[index],@battlers[index]); + float typemod=TypeModifier(move.Type,_battlers[index],_battlers[index]); movetype=move.Type; if (move.Power>70 && typemod>8) { shouldswitch=(Core.Rand.Next(100)<30); @@ -4756,13 +4756,13 @@ public bool pbEnemyShouldWithdrawEx (int index,bool alwaysSwitch) { !CanChooseMove(index,1,false) && !CanChooseMove(index,2,false) && !CanChooseMove(index,3,false) && - //@battlers[index].turncount != null && - @battlers[index].turncount>5) { + //_battlers[index].turncount != null && + _battlers[index].turncount>5) { shouldswitch=true; } - if (skill>=PBTrainerAI.highSkill && @battlers[index].effects.PerishSong!=1) { + if (skill>=TrainerAI.highSkill && _battlers[index].effects.PerishSong!=1) { for (int i = 0; i < 4; i++) { - IBattleMove move=@battlers[index].moves[i]; + IBattleMove move=_battlers[index].moves[i]; if (move.id!=0 && CanChooseMove(index,i,false) && move.Effect==Attack.Data.Effects.x080) { // Baton Pass batonpass=i; @@ -4770,31 +4770,31 @@ public bool pbEnemyShouldWithdrawEx (int index,bool alwaysSwitch) { } } } - if (skill>=PBTrainerAI.highSkill) { - if (@battlers[index].Status==Status.POISON && - @battlers[index].StatusCount>0) { - float toxicHP=(@battlers[index].TotalHP/16); - float nextToxicHP=toxicHP*(@battlers[index].effects.Toxic+1); - if (nextToxicHP>=@battlers[index].HP && - toxicHP<@battlers[index].HP && Core.Rand.Next(100)<80) { + if (skill>=TrainerAI.highSkill) { + if (_battlers[index].Status==Status.POISON && + _battlers[index].StatusCount>0) { + float toxicHP=(_battlers[index].TotalHP/16); + float nextToxicHP=toxicHP*(_battlers[index].effects.Toxic+1); + if (nextToxicHP>=_battlers[index].HP && + toxicHP<_battlers[index].HP && Core.Rand.Next(100)<80) { shouldswitch=true; } } } - if (skill>=PBTrainerAI.mediumSkill) { - if (@battlers[index].effects.Encore>0) { + if (skill>=TrainerAI.mediumSkill) { + if (_battlers[index].effects.Encore>0) { int scoreSum=0; int scoreCount=0; - IBattler attacker=@battlers[index]; - int encoreIndex=@battlers[index].effects.EncoreIndex; - if (!attacker.pbOpposing1.isFainted()) { - scoreSum+=pbGetMoveScore(attacker.moves[encoreIndex], - attacker,attacker.pbOpposing1,skill); + IBattler attacker=_battlers[index]; + int encoreIndex=_battlers[index].effects.EncoreIndex; + if (!attacker.Opposing1.isFainted()) { + scoreSum+=GetMoveScore(attacker.moves[encoreIndex], + attacker,attacker.Opposing1,skill); scoreCount+=1; } - if (!attacker.pbOpposing2.isFainted()) { - scoreSum+=pbGetMoveScore(attacker.moves[encoreIndex], - attacker,attacker.pbOpposing2,skill); + if (!attacker.Opposing2.isFainted()) { + scoreSum+=GetMoveScore(attacker.moves[encoreIndex], + attacker,attacker.Opposing2,skill); scoreCount+=1; } if (scoreCount>0 && scoreSum/scoreCount<=20 && Core.Rand.Next(10)<8) { @@ -4802,9 +4802,9 @@ public bool pbEnemyShouldWithdrawEx (int index,bool alwaysSwitch) { } } } - if (skill>=PBTrainerAI.highSkill) { - if (!@doublebattle && !@battlers[index].pbOppositeOpposing.isFainted() ) { - IBattler opp=@battlers[index].pbOppositeOpposing; + if (skill>=TrainerAI.highSkill) { + if (!@doublebattle && !_battlers[index].OppositeOpposing.isFainted() ) { + IBattler opp=_battlers[index].OppositeOpposing; if ((opp.effects.HyperBeam>0 || (opp.hasWorkingAbility(Abilities.TRUANT) && opp.effects.Truant)) && Core.Rand.Next(100)<80) { @@ -4813,41 +4813,41 @@ public bool pbEnemyShouldWithdrawEx (int index,bool alwaysSwitch) { } } if (@rules["suddendeath"]) { - if (@battlers[index].HP<=(@battlers[index].TotalHP/4) && Core.Rand.Next(10)<3 && - @battlers[index].turncount>0) { + if (_battlers[index].HP<=(_battlers[index].TotalHP/4) && Core.Rand.Next(10)<3 && + _battlers[index].turncount>0) { shouldswitch=true; - } else if (@battlers[index].HP<=(@battlers[index].TotalHP/2) && Core.Rand.Next(10)<8 && - @battlers[index].turncount>0) { + } else if (_battlers[index].HP<=(_battlers[index].TotalHP/2) && Core.Rand.Next(10)<8 && + _battlers[index].turncount>0) { shouldswitch=true; } } - if (@battlers[index].effects.PerishSong==1) { + if (_battlers[index].effects.PerishSong==1) { shouldswitch=true; } if (shouldswitch) { List list=new List(); - //PokemonEssentials.Interface.PokeBattle.IPokemon[] party=pbParty(index); + //PokemonEssentials.Interface.PokeBattle.IPokemon[] party=Party(index); IBattler[] party=battlers.Where(b => (b.Index % 2) == (index % 2)).ToArray(); for (int i = 0; i < party.Length; i++) { - if (pbCanSwitch(index,i,false)) { + if (CanSwitch(index,i,false)) { // If perish count is 1, it may be worth it to switch // even with Spikes, since Perish Song's effect will end - if (@battlers[index].effects.PerishSong!=1) { + if (_battlers[index].effects.PerishSong!=1) { // Will contain effects that recommend against switching - int spikes=@battlers[index].pbOwnSide.Spikes; + int spikes=_battlers[index].OwnSide.Spikes; if ((spikes==1 && party[i].HP<=(party[i].TotalHP/8)) || (spikes==2 && party[i].HP<=(party[i].TotalHP/6)) || (spikes==3 && party[i].HP<=(party[i].TotalHP/4))) { - if (!party[i].pbHasType(Types.FLYING) && + if (!party[i].HasType(Types.FLYING) && !party[i].hasWorkingAbility(Abilities.LEVITATE)) { // Don't switch to this if too little HP continue; } } } - if (movetype>=0 && pbTypeModifier(movetype,@battlers[index],@battlers[index])==0) { + if (movetype>=0 && TypeModifier(movetype,_battlers[index],_battlers[index])==0) { int weight=65; - if (pbTypeModifier2(party[i],@battlers[index].pbOppositeOpposing)>8) { + if (TypeModifier2(party[i],_battlers[index].OppositeOpposing)>8) { // Greater weight if new Pokemon's type is effective against opponent weight=85; } @@ -4855,9 +4855,9 @@ public bool pbEnemyShouldWithdrawEx (int index,bool alwaysSwitch) { //list.unshift(i); // put this Pokemon first list = list.Where(x => x == i).Concat(list.Where(x => x != i)).ToList(); // put this Pokemon first } - } else if (movetype>=0 && pbTypeModifier(movetype,@battlers[index],@battlers[index])<8) { + } else if (movetype>=0 && TypeModifier(movetype,_battlers[index],_battlers[index])<8) { int weight=40; - if (pbTypeModifier2(party[i],@battlers[index].pbOppositeOpposing)>8) { + if (TypeModifier2(party[i],_battlers[index].OppositeOpposing)>8) { // Greater weight if new Pokemon's type is effective against opponent weight=60; } @@ -4873,37 +4873,37 @@ public bool pbEnemyShouldWithdrawEx (int index,bool alwaysSwitch) { } if (list.Count>0) { if (batonpass!=-1) { - if (!pbRegisterMove(index,batonpass,false)) { - return pbRegisterSwitch(index,list[0]); + if (!RegisterMove(index,batonpass,false)) { + return RegisterSwitch(index,list[0]); } return true; } else { - return pbRegisterSwitch(index,list[0]); + return RegisterSwitch(index,list[0]); } } } return false; } - public int pbDefaultChooseNewEnemy(int index,IPokemon[] party) { + public int DefaultChooseNewEnemy(int index,IPokemon[] party) { List enemies=new List(); for (int i = 0; i < party.Length-1; i++) { - if (pbCanSwitchLax(index,i,false)) { + if (CanSwitchLax(index,i,false)) { enemies.Add(i); } } if (enemies.Count>0) { - return pbChooseBestNewEnemy(index,party,enemies.ToArray()); + return ChooseBestNewEnemy(index,party,enemies.ToArray()); } return -1; } - public int pbChooseBestNewEnemy(int index,IPokemon[] party,int[] enemies) { + public int ChooseBestNewEnemy(int index,IPokemon[] party,int[] enemies) { if (enemies == null || enemies.Length==0) return -1; if (Game.GameData.PokemonTemp == null) Game.GameData.PokemonTemp=new PokemonTemp().initialize(); - IBattler o1=@battlers[index].pbOpposing1; - IBattler o2=@battlers[index].pbOpposing2; + IBattler o1=_battlers[index].Opposing1; + IBattler o2=_battlers[index].Opposing2; if (o1.IsNotNullOrNone() && o1.isFainted()) o1=null; if (o2.IsNotNullOrNone() && o2.isFainted()) o2=null; int best=-1; @@ -4936,31 +4936,31 @@ public int pbChooseBestNewEnemy(int index,IPokemon[] party,int[] enemies) { /// Choose an action. /// /// - public void pbDefaultChooseEnemyCommand(int index) { + public void DefaultChooseEnemyCommand(int index) { if (!CanShowFightMenu(index)) { - if (pbEnemyShouldUseItem(index)) return; - if (pbEnemyShouldWithdraw(index)) return; - pbAutoChooseMove(index); + if (EnemyShouldUseItem(index)) return; + if (EnemyShouldWithdraw(index)) return; + AutoChooseMove(index); return; } else { - if (pbEnemyShouldUseItem(index)) return; - if (pbEnemyShouldWithdraw(index)) return; - if (pbAutoFightMenu(index)) return; - if (pbEnemyShouldMegaEvolve(index)) pbRegisterMegaEvolution(index); - pbChooseMoves(index); + if (EnemyShouldUseItem(index)) return; + if (EnemyShouldWithdraw(index)) return; + if (AutoFightMenu(index)) return; + if (EnemyShouldMegaEvolve(index)) RegisterMegaEvolution(index); + ChooseMoves(index); } } #region Other functions. - public bool pbDbgPlayerOnly (int idx) { + public bool DbgPlayerOnly (int idx) { if (!Core.INTERNAL) return true; //if (idx.respond_to("index")) - // return pbOwnedByPlayer(idx.Index); - return pbOwnedByPlayer(idx); + // return OwnedByPlayer(idx.Index); + return OwnedByPlayer(idx); } - public int pbStdDev(int[] scores) { + public int StdDev(int[] scores) { int n=0; int sum=0; //scores.ForEach{ s => sum+=s; n+=1 ); diff --git a/PokemonUnity.Application/Combat/Attack/Attack.Shadow.cs b/PokemonUnity.Application/Combat/Attack/Attack.Shadow.cs index 6244345ea..601b215aa 100644 --- a/PokemonUnity.Application/Combat/Attack/Attack.Shadow.cs +++ b/PokemonUnity.Application/Combat/Attack/Attack.Shadow.cs @@ -24,10 +24,10 @@ public class PokeBattle_Move_126 : PokeBattle_Move_000 { public PokeBattle_Move_126() : base() { } //public PokeBattle_Move_126(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } } @@ -39,10 +39,10 @@ public class PokeBattle_Move_127 : PokeBattle_Move_007 { public PokeBattle_Move_127() : base() { } //public PokeBattle_Move_127(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } } @@ -54,10 +54,10 @@ public class PokeBattle_Move_128 : PokeBattle_Move_00A { public PokeBattle_Move_128() : base() { } //public PokeBattle_Move_128(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } } @@ -69,10 +69,10 @@ public class PokeBattle_Move_129 : PokeBattle_Move_00C { public PokeBattle_Move_129() : base() { } //public PokeBattle_Move_129(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } } @@ -84,10 +84,10 @@ public class PokeBattle_Move_12A : PokeBattle_Move_013 { public PokeBattle_Move_12A() : base() { } //public PokeBattle_Move_12A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } } @@ -99,10 +99,10 @@ public class PokeBattle_Move_12B : PokeBattle_Move_04C { public PokeBattle_Move_12B() : base() { } //public PokeBattle_Move_12B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } } @@ -114,12 +114,12 @@ public class PokeBattle_Move_12C : PokeBattle_Move { public PokeBattle_Move_12C() : base() { } //public PokeBattle_Move_12C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.EVASION, attacker, true, this)) return -1; - pbShowAnimation(MoveId, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect b0 && b0.pbReduceStat(Stats.EVASION, increment: 2, attacker: attacker, showMessages: false); - if (ret && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.EVASION, attacker, true, this)) return -1; + ShowAnimation(MoveId, attacker, opponent, hitnum, alltargets, showanimation); + bool ret = opponent is IBattlerEffect b0 && b0.ReduceStat(Stats.EVASION, increment: 2, attacker: attacker, showMessages: false); + if (ret && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret ? 0 : -1; } } @@ -131,10 +131,10 @@ public class PokeBattle_Move_12D : PokeBattle_Move_075 { public PokeBattle_Move_12D() : base() { } //public PokeBattle_Move_12D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } } @@ -147,7 +147,7 @@ public class PokeBattle_Move_12E : PokeBattle_Move { public PokeBattle_Move_12E() : base() { } //public PokeBattle_Move_12E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List affected = new List(); for (int i = 0; i < 4; i++) @@ -156,15 +156,15 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (affected.Count == 0) { - this.battle.pbDisplay(Game._INTL("But it failed!")); + this.battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(MoveId, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(MoveId, attacker, opponent, hitnum, alltargets, showanimation); for (int i = 0; i < affected.Count; i++) { - this.battle.battlers[i].pbReduceHP((int)Math.Floor(this.battle.battlers[i].HP / 2d)); + this.battle.battlers[i].ReduceHP((int)Math.Floor(this.battle.battlers[i].HP / 2d)); } - this.battle.pbDisplay(Game._INTL("Each Pokemon's HP was halved!")); + this.battle.Display(Game._INTL("Each Pokemon's HP was halved!")); attacker.effects.HyperBeam = 2; attacker.currentMove = MoveId; return 0; @@ -179,10 +179,10 @@ public class PokeBattle_Move_12F : PokeBattle_Move_0EF { public PokeBattle_Move_12F() : base() { } //public PokeBattle_Move_12F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } } @@ -194,19 +194,19 @@ public class PokeBattle_Move_130 : PokeBattle_Move { public PokeBattle_Move_130() : base() { } //public PokeBattle_Move_130(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.pbHyperMode(); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (ret >= 0 && attacker is IBattlerShadowPokemon a) a.HyperMode(); return ret; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { - attacker.pbReduceHP((int)Math.Round(attacker.HP / 2.0)); - this.battle.pbDisplay(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); + attacker.ReduceHP((int)Math.Round(attacker.HP / 2.0)); + this.battle.Display(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); } } } @@ -218,25 +218,25 @@ public class PokeBattle_Move_131 : PokeBattle_Move { public PokeBattle_Move_131() : base() { } //public PokeBattle_Move_131(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { switch (this.battle.weather) { case Weather.HEAVYRAIN: - this.battle.pbDisplay(Game._INTL("There is no relief from this heavy rain!")); + this.battle.Display(Game._INTL("There is no relief from this heavy rain!")); return -1; case Weather.HARSHSUN: - this.battle.pbDisplay(Game._INTL("The extremely harsh sunlight was not lessened at all!")); + this.battle.Display(Game._INTL("The extremely harsh sunlight was not lessened at all!")); return -1; case Weather.SHADOWSKY: - this.battle.pbDisplay(Game._INTL("But it failed!")); + this.battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(MoveId, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(MoveId, attacker, null, hitnum, alltargets, showanimation); this.battle.weather = Weather.SHADOWSKY; this.battle.weatherduration = 5; - this.battle.pbCommonAnimation("ShadowSky", null, null); - this.battle.pbDisplay(Game._INTL("A shadow sky appeared!")); + this.battle.CommonAnimation("ShadowSky", null, null); + this.battle.Display(Game._INTL("A shadow sky appeared!")); return 0; } } @@ -249,7 +249,7 @@ public class PokeBattle_Move_132 : PokeBattle_Move { public PokeBattle_Move_132() : base() { } //public PokeBattle_Move_132(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if ((this.battle.sides[0].Reflect > 0 || this.battle.sides[1].Reflect > 0 || @@ -258,20 +258,20 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = this.battle.sides[0].Safeguard > 0 || this.battle.sides[1].Safeguard > 0) && attacker is IBattlerShadowPokemon a) { - pbShowAnimation(MoveId, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(MoveId, attacker, null, hitnum, alltargets, showanimation); this.battle.sides[0].Reflect = 0; this.battle.sides[1].Reflect = 0; this.battle.sides[0].LightScreen = 0; this.battle.sides[1].LightScreen = 0; this.battle.sides[0].Safeguard = 0; this.battle.sides[1].Safeguard = 0; - this.battle.pbDisplay(Game._INTL("It broke all barriers!")); - a.pbHyperMode(); + this.battle.Display(Game._INTL("It broke all barriers!")); + a.HyperMode(); return 0; } else { - this.battle.pbDisplay(Game._INTL("But it failed!")); + this.battle.Display(Game._INTL("But it failed!")); return -1; } } diff --git a/PokemonUnity.Application/Combat/Attack/Attack.cs b/PokemonUnity.Application/Combat/Attack/Attack.cs index 810ed3136..345fc407b 100644 --- a/PokemonUnity.Application/Combat/Attack/Attack.cs +++ b/PokemonUnity.Application/Combat/Attack/Attack.cs @@ -67,90 +67,90 @@ IBattleMove IBattleMove.initialize(IBattle battle, IMove move) return this.Initialize(battle, move); } - IBattleMove IBattleMove.pbFromPBMove(IBattle battle, IMove move) + IBattleMove IBattleMove.FromMove(IBattle battle, IMove move) { - return Move.pbFromPBMove(battle, move); + return Move.FromMove(battle, move); } #region Interface Implementation int IBattleMove.ToInt() { - throw new NotImplementedException(); + return (int)id; } bool IBattleMove.unusableInGravity() { - throw new NotImplementedException(); + return false; } bool IBattleMove.isContactMove() { - throw new NotImplementedException(); + return false; } bool IBattleMove.canProtectAgainst() { - throw new NotImplementedException(); + return false; } bool IBattleMove.canMagicCoat() { - throw new NotImplementedException(); + return false; } bool IBattleMove.canSnatch() { - throw new NotImplementedException(); + return false; } bool IBattleMove.canMirrorMove() { - throw new NotImplementedException(); + return false; } bool IBattleMove.canKingsRock() { - throw new NotImplementedException(); + return false; } bool IBattleMove.canThawUser() { - throw new NotImplementedException(); + return false; } bool IBattleMove.hasHighCriticalRate() { - throw new NotImplementedException(); + return false; } bool IBattleMove.isBitingMove() { - throw new NotImplementedException(); + return false; } bool IBattleMove.isPunchingMove() { - throw new NotImplementedException(); + return false; } bool IBattleMove.isSoundBased() { - throw new NotImplementedException(); + return false; } bool IBattleMove.isPowderMove() { - throw new NotImplementedException(); + return false; } bool IBattleMove.isPulseMove() { - throw new NotImplementedException(); + return false; } bool IBattleMove.isBombMove() { - throw new NotImplementedException(); + return false; } #endregion } @@ -158,7 +158,7 @@ bool IBattleMove.isBombMove() // // During battle, the moves used are modified by these classes before calculations are applied // -#pragma warning disable 0162 //Warning CS0162 Unreachable code detected +#pragma warning disable 0162 //Warning CS0162 Unreachable code detected // ToDo: Rename from PokemonEssential's Function to Veekun's Attack.Data.Effects // https://essentialsdocs.fandom.com/wiki/Function_codes #region Battle Class Functions @@ -171,13 +171,13 @@ public partial class PokeBattle_UnimplementedMove : PokeBattle_Move { public PokeBattle_UnimplementedMove() : base() { } //public PokeBattle_UnimplementedMove(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); else { - battle.pbDisplay("But it failed!"); + battle.Display("But it failed!"); return -1; } } @@ -191,9 +191,9 @@ public partial class PokeBattle_FailedMove : PokeBattle_Move { public PokeBattle_FailedMove() : base() { } //public PokeBattle_FailedMove(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - battle.pbDisplay("But it failed!"); + battle.Display("But it failed!"); return -1; } } @@ -227,15 +227,15 @@ public override IBattleMove Initialize(IBattle battle, IMove move) //public override bool IsPhysical { get { return true; } } //public override bool IsSpecial { get { return false; } } - public int pbCalcDamage(IBattler attacker, IBattler opponent) + public int CalcDamage(IBattler attacker, IBattler opponent) { - return base.pbCalcDamage(attacker, opponent, new byte[] { + return base.CalcDamage(attacker, opponent, new byte[] { Core.NOCRITICAL, Core.SELFCONFUSE, Core.NOTYPE, Core.NOWEIGHTING }); } - public void pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype = false) + public void EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype = false) { - base.pbEffectMessages(attacker, opponent, true); + base.EffectMessages(attacker, opponent, true); } } @@ -275,18 +275,18 @@ public override IBattleMove Initialize(IBattle battle, IMove move) //public override bool IsPhysical() { return true; } //public override bool IsSpecial() { return false; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { - attacker.pbReduceHP((int)Math.Round(attacker.TotalHP / 4.0f)); - battle.pbDisplay(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); + attacker.ReduceHP((int)Math.Round(attacker.TotalHP / 4.0f)); + battle.Display(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); } } - public int pbCalcDamage(IBattler attacker, IBattler opponent) + public int CalcDamage(IBattler attacker, IBattler opponent) { - return base.pbCalcDamage(attacker, opponent, Core.IGNOREPKMNTYPES); + return base.CalcDamage(attacker, opponent, Core.IGNOREPKMNTYPES); } } @@ -314,10 +314,10 @@ public override bool UnusableInGravity() //} } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("But nothing happened!")); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + battle.Display(Game._INTL("But nothing happened!")); return 0; } } @@ -338,30 +338,30 @@ public partial class PokeBattle_Move_003 : PokeBattle_Move { public PokeBattle_Move_003() : base() { } //public PokeBattle_Move_003(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; - if (opponent is IBattlerClause b && b.pbCanSleep(attacker, true, this)) + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (opponent is IBattlerClause b && b.CanSleep(attacker, true, this)) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbSleep(); + if (opponent is IBattlerEffect o) o.Sleep(); return 0; } return -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerClause b && b.pbCanSleep(attacker, false, this)) + if (opponent is IBattlerClause b && b.CanSleep(attacker, false, this)) { - if (opponent is IBattlerEffect o) o.pbSleep(); + if (opponent is IBattlerEffect o) o.Sleep(); } } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (id == Moves.RELIC_SONG) { @@ -371,9 +371,9 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff !attacker.isFainted()) { attacker.form = (attacker.form + 1) % 2; - attacker.pbUpdate(true); - if (this.battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(attacker, (attacker as Pokemon).Form.Id);//.Species); - battle.pbDisplay(Game._INTL("{1} transformed!", attacker.ToString())); + attacker.Update(true); + if (this.battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(attacker, attacker.pokemon); + battle.Display(Game._INTL("{1} transformed!", attacker.ToString())); GameDebug.Log($"[Form changed] #{attacker.ToString()} changed to form #{Game._INTL((attacker as Pokemon).Form.Pokemon.ToString(TextScripts.Name))}"); } } @@ -387,18 +387,18 @@ public partial class PokeBattle_Move_004 : PokeBattle_Move { public PokeBattle_Move_004() : base() { } //public PokeBattle_Move_004(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent is IBattlerClause b && !b.pbCanSleep(attacker, true, this)) return -1; + if (opponent is IBattlerClause b && !b.CanSleep(attacker, true, this)) return -1; if (opponent.effects.Yawn > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Yawn = 2; - battle.pbDisplay(Game._INTL("{1} made {2} drowsy!", attacker.ToString(), opponent.ToString(true))); + battle.Display(Game._INTL("{1} made {2} drowsy!", attacker.ToString(), opponent.ToString(true))); return 0; } } @@ -410,51 +410,51 @@ public partial class PokeBattle_Move_005 : PokeBattle_Move { public PokeBattle_Move_005() : base() { } //public PokeBattle_Move_005(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanPoison(attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanPoison(attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbPoison(attacker); + if (opponent is IBattlerEffect o) o.Poison(attacker); return 0; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanPoison(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanPoison(attacker, false, this)) { - b.pbPoison(attacker); + b.Poison(attacker); } } } /// /// Badly poisons the target. (Poison Fang, Toxic) - /// (Handled in Pokemon's pbSuccessCheck): Hits semi-invulnerable targets if user + /// (Handled in Pokemon's SuccessCheck): Hits semi-invulnerable targets if user /// is Poison-type and move is status move. /// public partial class PokeBattle_Move_006 : PokeBattle_Move { public PokeBattle_Move_006() : base() { } //public PokeBattle_Move_006(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanPoison(attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanPoison(attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbPoison(attacker, null, true); + if (opponent is IBattlerEffect o) o.Poison(attacker, null, true); return 0; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanPoison(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanPoison(attacker, false, this)) { - b.pbPoison(attacker, null, true); + b.Poison(attacker, null, true); } } } @@ -468,11 +468,11 @@ public partial class PokeBattle_Move_007 : PokeBattle_Move { public PokeBattle_Move_007() : base() { } //public PokeBattle_Move_007(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) + if (IsDamaging()) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && id == Moves.BOLT_STRIKE) { this.battle.field.FusionFlare = true; @@ -483,52 +483,52 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { if (this.id == Moves.THUNDER_WAVE) { - if (pbTypeModifier(type, attacker, opponent) == 0) + if (TypeModifier(type, attacker, opponent) == 0) { - battle.pbDisplay(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); + battle.Display(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); return -1; } } - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; - if (opponent is IBattlerEffect b && !b.pbCanParalyze(attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (opponent is IBattlerEffect b && !b.CanParalyze(attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbParalyze(attacker); + if (opponent is IBattlerEffect o) o.Paralyze(attacker); return 0; } //return -1 } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanParalyze(attacker, false, this)) { - b.pbParalyze(attacker); + b.Paralyze(attacker); } } } /// /// Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_008 : PokeBattle_Move { public PokeBattle_Move_008() : base() { } //public PokeBattle_Move_008(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanParalyze(attacker, false, this)) { - b.pbParalyze(attacker); + b.Paralyze(attacker); } } - public int pbModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent) + public int ModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent) { - switch (this.battle.pbWeather) + switch (this.battle.Weather) { case Weather.RAINDANCE: case Weather.HEAVYRAIN: @@ -549,20 +549,20 @@ public partial class PokeBattle_Move_009 : PokeBattle_Move { public PokeBattle_Move_009() : base() { } //public PokeBattle_Move_009(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (this.battle.pbRandom(10) == 0) + if (this.battle.Random(10) == 0) { - if (opponent is IBattlerEffect b && b.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanParalyze(attacker, false, this)) { - b.pbParalyze(attacker); + b.Paralyze(attacker); } } - if (this.battle.pbRandom(10) == 0) + if (this.battle.Random(10) == 0) { - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } } } @@ -575,11 +575,11 @@ public partial class PokeBattle_Move_00A : PokeBattle_Move { public PokeBattle_Move_00A() : base() { } //public PokeBattle_Move_00A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) + if (IsDamaging()) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && id == Moves.BLUE_FLARE) { this.battle.field.FusionBolt = true; @@ -588,22 +588,22 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } else { - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; - if (opponent is IBattlerEffect b && !b.pbCanBurn(attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (opponent is IBattlerEffect b && !b.CanBurn(attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbBurn(attacker); + if (opponent is IBattlerEffect o) o.Burn(attacker); return 0; } //return -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanBurn(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanBurn(attacker, false, this)) { - b.pbBurn(attacker); + b.Burn(attacker); } } } @@ -615,20 +615,20 @@ public partial class PokeBattle_Move_00B : PokeBattle_Move { public PokeBattle_Move_00B() : base() { } //public PokeBattle_Move_00B(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (this.battle.pbRandom(10) == 0) + if (this.battle.Random(10) == 0) { - if (opponent is IBattlerEffect b && b.pbCanBurn(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanBurn(attacker, false, this)) { - b.pbBurn(attacker); + b.Burn(attacker); } } - if (this.battle.pbRandom(10) == 0) + if (this.battle.Random(10) == 0) { - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } } } @@ -640,22 +640,22 @@ public partial class PokeBattle_Move_00C : PokeBattle_Move { public PokeBattle_Move_00C() : base() { } //public PokeBattle_Move_00C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerClause b && !b.pbCanFreeze(attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerClause b && !b.CanFreeze(attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbFreeze(); + if (opponent is IBattlerEffect o) o.Freeze(); return 0; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerClause b && b.pbCanFreeze(attacker, false, this)) + if (opponent is IBattlerClause b && b.CanFreeze(attacker, false, this)) { - if (opponent is IBattlerEffect o) o.pbFreeze(); + if (opponent is IBattlerEffect o) o.Freeze(); } } } @@ -667,28 +667,28 @@ public partial class PokeBattle_Move_00D : PokeBattle_Move { public PokeBattle_Move_00D() : base() { } //public PokeBattle_Move_00D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerClause b && !b.pbCanFreeze(attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerClause b && !b.CanFreeze(attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbFreeze(); + if (opponent is IBattlerEffect o) o.Freeze(); return 0; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerClause b && b.pbCanFreeze(attacker, false, this)) + if (opponent is IBattlerClause b && b.CanFreeze(attacker, false, this)) { - if (opponent is IBattlerEffect o) o.pbFreeze(); + if (opponent is IBattlerEffect o) o.Freeze(); } } - public int pbModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent) + public int ModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent) { - if (this.battle.pbWeather == Weather.HAIL) + if (this.battle.Weather == Weather.HAIL) { return 0; } @@ -703,20 +703,20 @@ public partial class PokeBattle_Move_00E : PokeBattle_Move { public PokeBattle_Move_00E() : base() { } //public PokeBattle_Move_00E(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (this.battle.pbRandom(10) == 0) + if (this.battle.Random(10) == 0) { - if (opponent is IBattlerClause b && b.pbCanFreeze(attacker, false, this)) + if (opponent is IBattlerClause b && b.CanFreeze(attacker, false, this)) { - if (opponent is IBattlerEffect o) o.pbFreeze(); + if (opponent is IBattlerEffect o) o.Freeze(); } } - if (this.battle.pbRandom(10) == 0) + if (this.battle.Random(10) == 0) { - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } } } @@ -728,10 +728,10 @@ public partial class PokeBattle_Move_00F : PokeBattle_Move { public PokeBattle_Move_00F() : base() { } //public PokeBattle_Move_00F(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } } @@ -743,10 +743,10 @@ public partial class PokeBattle_Move_010 : PokeBattle_Move { public PokeBattle_Move_010() : base() { } //public PokeBattle_Move_010(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } public bool tramplesMinimize(byte param = 1) @@ -765,20 +765,20 @@ public partial class PokeBattle_Move_011 : PokeBattle_Move { public PokeBattle_Move_011() : base() { } //public PokeBattle_Move_011(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbCanUseWhileAsleep() + public override bool CanUseWhileAsleep() { return true; } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { return (attacker.Status != Status.SLEEP); } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } } @@ -789,15 +789,15 @@ public partial class PokeBattle_Move_012 : PokeBattle_Move { public PokeBattle_Move_012() : base() { } //public PokeBattle_Move_012(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { return (attacker.turncount > 1); } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } } @@ -808,27 +808,27 @@ public partial class PokeBattle_Move_013 : PokeBattle_Move { public PokeBattle_Move_013() : base() { } //public PokeBattle_Move_013(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && b.pbCanConfuse(attacker, true, this)) + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && b.CanConfuse(attacker, true, this)) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - b.pbConfuse(); - battle.pbDisplay(Game._INTL("{1} became confused!", opponent.ToString())); + b.Confuse(); + battle.Display(Game._INTL("{1} became confused!", opponent.ToString())); return 0; } return -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanConfuse(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanConfuse(attacker, false, this)) { - b.pbConfuse(); - battle.pbDisplay(Game._INTL("{1} became confused!", opponent.ToString())); + b.Confuse(); + battle.Display(Game._INTL("{1} became confused!", opponent.ToString())); } } } @@ -837,13 +837,13 @@ public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) /// Confuses the target. Chance of causing confusion depends on the cry's volume. /// Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) /// TODO: Play the actual chatter cry as part of the move animation - /// this.battle.scene.pbChatter(attacker,opponent) // Just plays cry + /// this.battle.scene.Chatter(attacker,opponent) // Just plays cry /// public partial class PokeBattle_Move_014 : PokeBattle_Move { public PokeBattle_Move_014() : base() { } //public PokeBattle_Move_014(Battle battle, Attack.Move move) : base(battle, move) { } - private IBattler attacker; //ToDo: use pbAdditionalEffect(IBattler attacker, IBattler opponent) to assign? + private IBattler attacker = null; public override int AddlEffect { get @@ -856,52 +856,53 @@ public override int AddlEffect } } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { + this.attacker = attacker; if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanConfuse(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanConfuse(attacker, false, this)) { - b.pbConfuse(); - battle.pbDisplay(Game._INTL("{1} became confused!", opponent.ToString())); + b.Confuse(); + battle.Display(Game._INTL("{1} became confused!", opponent.ToString())); } } } /// /// Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_015 : PokeBattle_Move { public PokeBattle_Move_015() : base() { } //public PokeBattle_Move_015(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && b.pbCanConfuse(attacker, true, this)) + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && b.CanConfuse(attacker, true, this)) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - b.pbConfuse(); - battle.pbDisplay(Game._INTL("{1} became confused!", opponent.ToString())); + b.Confuse(); + battle.Display(Game._INTL("{1} became confused!", opponent.ToString())); return 0; } return -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanConfuse(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanConfuse(attacker, false, this)) { - b.pbConfuse(); - battle.pbDisplay(Game._INTL("{1} became confused!", opponent.ToString())); + b.Confuse(); + battle.Display(Game._INTL("{1} became confused!", opponent.ToString())); } } - public int pbModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent) + public int ModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent) { - switch (this.battle.pbWeather) + switch (this.battle.Weather) { case Weather.RAINDANCE: case Weather.HEAVYRAIN: @@ -922,9 +923,9 @@ public partial class PokeBattle_Move_016 : PokeBattle_Move { public PokeBattle_Move_016() : base() { } //public PokeBattle_Move_016(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent is IBattlerEffect b && !b.pbCanAttract(attacker)) + if (opponent is IBattlerEffect b && !b.CanAttract(attacker)) { return -1; } @@ -932,22 +933,22 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { if (opponent.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } - else if (opponent.pbPartner.hasWorkingAbility(Abilities.AROMA_VEIL)) + else if (opponent.Partner.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", - opponent.pbPartner.ToString(), Game._INTL(opponent.pbPartner.Ability.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", + opponent.Partner.ToString(), Game._INTL(opponent.Partner.Ability.ToString(TextScripts.Name)))); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbAttract(attacker); + if (opponent is IBattlerEffect o) o.Attract(attacker); return 0; } } @@ -959,27 +960,27 @@ public partial class PokeBattle_Move_017 : PokeBattle_Move { public PokeBattle_Move_017() : base() { } //public PokeBattle_Move_017(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - switch (this.battle.pbRandom(3)) + switch (this.battle.Random(3)) { case 0: - if (opponent is IBattlerEffect b0 && b0.pbCanBurn(attacker, false, this)) + if (opponent is IBattlerEffect b0 && b0.CanBurn(attacker, false, this)) { - b0.pbBurn(attacker); + b0.Burn(attacker); } break; case 1: - if (opponent is IBattlerClause b1 && b1.pbCanFreeze(attacker, false, this)) + if (opponent is IBattlerClause b1 && b1.CanFreeze(attacker, false, this)) { - if (b1 is IBattlerEffect o) o.pbFreeze(); + if (b1 is IBattlerEffect o) o.Freeze(); } break; case 2: - if (opponent is IBattlerEffect b2 && b2.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b2 && b2.CanParalyze(attacker, false, this)) { - b2.pbParalyze(attacker); + b2.Paralyze(attacker); } break; default: @@ -995,32 +996,32 @@ public partial class PokeBattle_Move_018 : PokeBattle_Move { public PokeBattle_Move_018() : base() { } //public PokeBattle_Move_018(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Status != Status.BURN && attacker.Status != Status.POISON && attacker.Status != Status.PARALYSIS) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } else { Status t = attacker.Status; - if (attacker is IBattlerEffect a) a.pbCureStatus(false); + if (attacker is IBattlerEffect a) a.CureStatus(false); - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); if (t == Status.BURN) { - battle.pbDisplay(Game._INTL("{1} healed its burn!", attacker.ToString())); + battle.Display(Game._INTL("{1} healed its burn!", attacker.ToString())); } else if (t == Status.POISON) { - battle.pbDisplay(Game._INTL("{1} cured its poisoning!", attacker.ToString())); + battle.Display(Game._INTL("{1} cured its poisoning!", attacker.ToString())); } else if (t == Status.PARALYSIS) { - battle.pbDisplay(Game._INTL("{1} cured its paralysis!", attacker.ToString())); + battle.Display(Game._INTL("{1} cured its paralysis!", attacker.ToString())); } return 0; } @@ -1034,53 +1035,53 @@ public partial class PokeBattle_Move_019 : PokeBattle_Move { public PokeBattle_Move_019() : base() { } //public PokeBattle_Move_019(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); if (id == Moves.AROMATHERAPY) { - battle.pbDisplay(Game._INTL("A soothing aroma wafted through the area!")); + battle.Display(Game._INTL("A soothing aroma wafted through the area!")); } else { - battle.pbDisplay(Game._INTL("A bell chimed!")); + battle.Display(Game._INTL("A bell chimed!")); } IList activepkmn = new List(); foreach (IBattler i in this.battle.battlers) { - if (attacker.pbIsOpposing(i.Index) || i.isFainted()) continue; //next + if (attacker.IsOpposing(i.Index) || i.isFainted()) continue; //next activepkmn.Add(i.pokemonIndex); if (Core.USENEWBATTLEMECHANICS && i.Index != attacker.Index && - pbTypeImmunityByAbility(pbType(this.type, attacker, i), attacker, i)) continue; //next + TypeImmunityByAbility(GetType(this.type, attacker, i), attacker, i)) continue; //next switch (i.Status) { case Status.PARALYSIS: - battle.pbDisplay(Game._INTL("{1} was cured of paralysis.", i.ToString())); + battle.Display(Game._INTL("{1} was cured of paralysis.", i.ToString())); break; case Status.SLEEP: - battle.pbDisplay(Game._INTL("{1}'s sleep was woken.", i.ToString())); + battle.Display(Game._INTL("{1}'s sleep was woken.", i.ToString())); break; case Status.POISON: - battle.pbDisplay(Game._INTL("{1} was cured of its poisoning.", i.ToString())); + battle.Display(Game._INTL("{1} was cured of its poisoning.", i.ToString())); break; case Status.BURN: - battle.pbDisplay(Game._INTL("{1}'s burn was healed.", i.ToString())); + battle.Display(Game._INTL("{1}'s burn was healed.", i.ToString())); break; case Status.FROZEN: - battle.pbDisplay(Game._INTL("{1} was thawed out.", i.ToString())); + battle.Display(Game._INTL("{1} was thawed out.", i.ToString())); break; default: break; } - if (i is IBattlerEffect b) b.pbCureStatus(false); + if (i is IBattlerEffect b) b.CureStatus(false); } - IPokemon[] party = this.battle.pbParty(attacker.Index); // NOTE: Considers both parties in multi battles + IPokemon[] party = this.battle.Party(attacker.Index); // NOTE: Considers both parties in multi battles for (int i = 0; i < party.Length; i++) { if (activepkmn.Contains(i)) continue; //next @@ -1088,23 +1089,23 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = switch (party[i].Status) { case Status.PARALYSIS: - battle.pbDisplay(Game._INTL("{1} was cured of paralysis.", party[i].ToString())); + battle.Display(Game._INTL("{1} was cured of paralysis.", party[i].ToString())); break; case Status.SLEEP: - battle.pbDisplay(Game._INTL("{1} was woken from its sleep.", party[i].ToString())); + battle.Display(Game._INTL("{1} was woken from its sleep.", party[i].ToString())); break; case Status.POISON: - battle.pbDisplay(Game._INTL("{1} was cured of its poisoning.", party[i].ToString())); + battle.Display(Game._INTL("{1} was cured of its poisoning.", party[i].ToString())); break; case Status.BURN: - battle.pbDisplay(Game._INTL("{1}'s burn was healed.", party[i].ToString())); + battle.Display(Game._INTL("{1}'s burn was healed.", party[i].ToString())); break; case Status.FROZEN: - battle.pbDisplay(Game._INTL("{1} was thawed out.", party[i].ToString())); + battle.Display(Game._INTL("{1} was thawed out.", party[i].ToString())); break; default: break; @@ -1123,23 +1124,23 @@ public partial class PokeBattle_Move_01A : PokeBattle_Move { public PokeBattle_Move_01A() : base() { } //public PokeBattle_Move_01A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.Safeguard > 0) + if (attacker.OwnSide.Safeguard > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - attacker.pbOwnSide.Safeguard = 5; + attacker.OwnSide.Safeguard = 5; - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - if (!this.battle.pbIsOpposing(attacker.Index)) + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Your team became cloaked in a mystical veil!")); + battle.Display(Game._INTL("Your team became cloaked in a mystical veil!")); } else { - battle.pbDisplay(Game._INTL("The opposing team became cloaked in a mystical veil!")); + battle.Display(Game._INTL("The opposing team became cloaked in a mystical veil!")); } return 0; } @@ -1152,61 +1153,61 @@ public partial class PokeBattle_Move_01B : PokeBattle_Move { public PokeBattle_Move_01B() : base() { } //public PokeBattle_Move_01B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.Status == 0 || (opponent is IBattlerEffect b && + if (attacker.Status == 0 || (opponent is IBattlerEffect b && ( - (attacker.Status == Status.PARALYSIS && !b.pbCanParalyze(attacker, false, this)) || - (attacker.Status == Status.POISON && !b.pbCanPoison(attacker, false, this)) || - (attacker.Status == Status.BURN && !b.pbCanBurn(attacker, false, this)) || - (attacker.Status == Status.SLEEP && opponent is IBattlerClause b1 && !b1.pbCanSleep(attacker, false, this)) || - (attacker.Status == Status.FROZEN && opponent is IBattlerClause b2 && !b2.pbCanFreeze(attacker, false, this)) + (attacker.Status == Status.PARALYSIS && !b.CanParalyze(attacker, false, this)) || + (attacker.Status == Status.POISON && !b.CanPoison(attacker, false, this)) || + (attacker.Status == Status.BURN && !b.CanBurn(attacker, false, this)) || + (attacker.Status == Status.SLEEP && opponent is IBattlerClause b1 && !b1.CanSleep(attacker, false, this)) || + (attacker.Status == Status.FROZEN && opponent is IBattlerClause b2 && !b2.CanFreeze(attacker, false, this)) ))) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } IBattlerEffect a = attacker is IBattlerEffect ? attacker as IBattlerEffect : null; IBattlerEffect o = opponent is IBattlerEffect ? opponent as IBattlerEffect : null; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); switch (attacker.Status) { case Status.PARALYSIS: - o?.pbParalyze(attacker); + o?.Paralyze(attacker); - opponent.pbAbilityCureCheck(); - a?.pbCureStatus(false); + opponent.AbilityCureCheck(); + a?.CureStatus(false); - battle.pbDisplay(Game._INTL("{1} was cured of paralysis.", attacker.ToString())); + battle.Display(Game._INTL("{1} was cured of paralysis.", attacker.ToString())); break; case Status.SLEEP: - o?.pbSleep(); - opponent.pbAbilityCureCheck(); - a?.pbCureStatus(false); + o?.Sleep(); + opponent.AbilityCureCheck(); + a?.CureStatus(false); - battle.pbDisplay(Game._INTL("{1} woke up.", attacker.ToString())); + battle.Display(Game._INTL("{1} woke up.", attacker.ToString())); break; case Status.POISON: - o?.pbPoison(attacker, null, attacker.StatusCount != 0); + o?.Poison(attacker, null, attacker.StatusCount != 0); - opponent.pbAbilityCureCheck(); - a?.pbCureStatus(false); + opponent.AbilityCureCheck(); + a?.CureStatus(false); - battle.pbDisplay(Game._INTL("{1} was cured of its poisoning.", attacker.ToString())); + battle.Display(Game._INTL("{1} was cured of its poisoning.", attacker.ToString())); break; case Status.BURN: - o?.pbBurn(attacker); - opponent.pbAbilityCureCheck(); - a?.pbCureStatus(false); + o?.Burn(attacker); + opponent.AbilityCureCheck(); + a?.CureStatus(false); - battle.pbDisplay(Game._INTL("{1}'s burn was healed.", attacker.ToString())); + battle.Display(Game._INTL("{1}'s burn was healed.", attacker.ToString())); break; case Status.FROZEN: - o?.pbFreeze(); - opponent.pbAbilityCureCheck(); - a?.pbCureStatus(false); + o?.Freeze(); + opponent.AbilityCureCheck(); + a?.CureStatus(false); - battle.pbDisplay(Game._INTL("{1} was thawed out.", attacker.ToString())); + battle.Display(Game._INTL("{1} was thawed out.", attacker.ToString())); break; } return 0; @@ -1220,22 +1221,22 @@ public partial class PokeBattle_Move_01C : PokeBattle_Move { public PokeBattle_Move_01C() : base() { } //public PokeBattle_Move_01C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.ATTACK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = false; //attacker.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this); - if (attacker is IBattlerEffect a) ret = a.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this); + bool ret = false; //attacker.IncreaseStat(Stats.ATTACK, 1, attacker, false, this); + if (attacker is IBattlerEffect a) ret = a.IncreaseStat(Stats.ATTACK, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this); + b.IncreaseStat(Stats.ATTACK, 1, attacker, false, this); } } } @@ -1247,22 +1248,22 @@ public partial class PokeBattle_Move_01D : PokeBattle_Move { public PokeBattle_Move_01D() : base() { } //public PokeBattle_Move_01D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.DEFENSE, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = false; //attacker.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this); - if (attacker is IBattlerEffect a) ret = a.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this); + bool ret = false; //attacker.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this); + if (attacker is IBattlerEffect a) ret = a.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this); + b.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this); } } } @@ -1274,15 +1275,15 @@ public partial class PokeBattle_Move_01E : PokeBattle_Move { public PokeBattle_Move_01E() : base() { } //public PokeBattle_Move_01E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { attacker.effects.DefenseCurl = true; - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.DEFENSE, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = false; //attacker.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this); - if (attacker is IBattlerEffect a) ret = a.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this); + bool ret = false; //attacker.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this); + if (attacker is IBattlerEffect a) ret = a.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this); return ret ? 0 : -1; } } @@ -1294,22 +1295,22 @@ public partial class PokeBattle_Move_01F : PokeBattle_Move { public PokeBattle_Move_01F() : base() { } //public PokeBattle_Move_01F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.SPEED, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.SPEED, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = false; //attacker.pbIncreaseStat(Stats.SPEED, 1, attacker, false, this); - if (attacker is IBattlerEffect a) ret = a.pbIncreaseStat(Stats.SPEED, 1, attacker, false, this); + bool ret = false; //attacker.IncreaseStat(Stats.SPEED, 1, attacker, false, this); + if (attacker is IBattlerEffect a) ret = a.IncreaseStat(Stats.SPEED, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - b.pbIncreaseStat(Stats.SPEED, 1, attacker, false, this); + b.IncreaseStat(Stats.SPEED, 1, attacker, false, this); } } } @@ -1321,22 +1322,22 @@ public partial class PokeBattle_Move_020 : PokeBattle_Move { public PokeBattle_Move_020() : base() { } //public PokeBattle_Move_020(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.SPATK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = false; //attacker.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this); - if (attacker is IBattlerEffect a) ret = a.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this); + bool ret = false; //attacker.IncreaseStat(Stats.SPATK, 1, attacker, false, this); + if (attacker is IBattlerEffect a) ret = a.IncreaseStat(Stats.SPATK, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this); + b.IncreaseStat(Stats.SPATK, 1, attacker, false, this); } } } @@ -1349,16 +1350,16 @@ public partial class PokeBattle_Move_021 : PokeBattle_Move { public PokeBattle_Move_021() : base() { } //public PokeBattle_Move_021(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { attacker.effects.Charge = 2; - battle.pbDisplay(Game._INTL("{1} began charging power!", attacker.ToString())); - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, true, this)) + battle.Display(Game._INTL("{1} began charging power!", attacker.ToString())); + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPDEF, attacker, true, this)) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - b.pbIncreaseStat(Stats.SPDEF, 1, attacker, false, this); + b.IncreaseStat(Stats.SPDEF, 1, attacker, false, this); } return 0; } @@ -1371,22 +1372,22 @@ public partial class PokeBattle_Move_022 : PokeBattle_Move { public PokeBattle_Move_022() : base() { } //public PokeBattle_Move_022(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.EVASION, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.EVASION, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = false; //attacker.pbIncreaseStat(Stats.EVASION, 1, attacker, false, this); - if (attacker is IBattlerEffect a) ret = a.pbIncreaseStat(Stats.EVASION, 1, attacker, false, this); + bool ret = false; //attacker.IncreaseStat(Stats.EVASION, 1, attacker, false, this); + if (attacker is IBattlerEffect a) ret = a.IncreaseStat(Stats.EVASION, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.EVASION, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.EVASION, attacker, false, this)) { - b.pbIncreaseStat(Stats.EVASION, 1, attacker, false, this); + b.IncreaseStat(Stats.EVASION, 1, attacker, false, this); } } } @@ -1398,27 +1399,27 @@ public partial class PokeBattle_Move_023 : PokeBattle_Move { public PokeBattle_Move_023() : base() { } //public PokeBattle_Move_023(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (attacker.effects.FocusEnergy >= 2) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); attacker.effects.FocusEnergy = 2; - battle.pbDisplay(Game._INTL("{1} is getting pumped!", attacker.ToString())); + battle.Display(Game._INTL("{1} is getting pumped!", attacker.ToString())); return 0; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (attacker.effects.FocusEnergy < 2) { attacker.effects.FocusEnergy = 2; - battle.pbDisplay(Game._INTL("{1} is getting pumped!", attacker.ToString())); + battle.Display(Game._INTL("{1} is getting pumped!", attacker.ToString())); } } } @@ -1430,26 +1431,26 @@ public partial class PokeBattle_Move_024 : PokeBattle_Move { public PokeBattle_Move_024() : base() { } //public PokeBattle_Move_024(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b1.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -1463,32 +1464,32 @@ public partial class PokeBattle_Move_025 : PokeBattle_Move { public PokeBattle_Move_025() : base() { } //public PokeBattle_Move_025(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.ACCURACY, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.ACCURACY, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b1.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b2 && b2.pbCanIncreaseStatStage(Stats.ACCURACY, attacker, false, this)) + if (attacker is IBattlerEffect b2 && b2.CanIncreaseStatStage(Stats.ACCURACY, attacker, false, this)) { - b2.pbIncreaseStat(Stats.ACCURACY, 1, attacker, false, this, showanim); + b2.IncreaseStat(Stats.ACCURACY, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -1502,26 +1503,26 @@ public partial class PokeBattle_Move_026 : PokeBattle_Move { public PokeBattle_Move_026() : base() { } //public PokeBattle_Move_026(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPEED, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPEED, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -1535,26 +1536,26 @@ public partial class PokeBattle_Move_027 : PokeBattle_Move { public PokeBattle_Move_027() : base() { } //public PokeBattle_Move_027(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -1569,33 +1570,33 @@ public partial class PokeBattle_Move_028 : PokeBattle_Move { public PokeBattle_Move_028() : base() { } //public PokeBattle_Move_028(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; byte increment = 1; - if (this.battle.pbWeather == Weather.SUNNYDAY || - this.battle.pbWeather == Weather.HARSHSUN) + if (this.battle.Weather == Weather.SUNNYDAY || + this.battle.Weather == Weather.HARSHSUN) { increment = 2; } - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, increment, attacker, false, this, showanim); + b0.IncreaseStat(Stats.ATTACK, increment, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPATK, increment, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPATK, increment, attacker, false, this, showanim); showanim = false; } return 0; @@ -1609,26 +1610,26 @@ public partial class PokeBattle_Move_029 : PokeBattle_Move { public PokeBattle_Move_029() : base() { } //public PokeBattle_Move_029(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.ACCURACY, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.ACCURACY, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.ACCURACY, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.ACCURACY, attacker, false, this)) { - b1.pbIncreaseStat(Stats.ACCURACY, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.ACCURACY, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -1642,26 +1643,26 @@ public partial class PokeBattle_Move_02A : PokeBattle_Move { public PokeBattle_Move_02A() : base() { } //public PokeBattle_Move_02A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b0.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -1675,32 +1676,32 @@ public partial class PokeBattle_Move_02B : PokeBattle_Move { public PokeBattle_Move_02B() : base() { } //public PokeBattle_Move_02B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b2 && b2.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b2 && b2.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - b2.pbIncreaseStat(Stats.SPEED, 1, attacker, false, this, showanim); + b2.IncreaseStat(Stats.SPEED, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -1714,26 +1715,26 @@ public partial class PokeBattle_Move_02C : PokeBattle_Move { public PokeBattle_Move_02C() : base() { } //public PokeBattle_Move_02C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -1748,33 +1749,33 @@ public partial class PokeBattle_Move_02D : PokeBattle_Move { public PokeBattle_Move_02D() : base() { } //public PokeBattle_Move_02D(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b1.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b2 && b2.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b2 && b2.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b2.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); + b2.IncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b3 && b3.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b3 && b3.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - b3.pbIncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b3.IncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b4 && b4.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b4 && b4.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - b4.pbIncreaseStat(Stats.SPEED, 1, attacker, false, this, showanim); + b4.IncreaseStat(Stats.SPEED, 1, attacker, false, this, showanim); showanim = false; } } @@ -1787,21 +1788,21 @@ public partial class PokeBattle_Move_02E : PokeBattle_Move { public PokeBattle_Move_02E() : base() { } //public PokeBattle_Move_02E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.ATTACK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.ATTACK, 2, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.ATTACK, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b.pbIncreaseStat(Stats.ATTACK, 2, attacker, false, this); + b.IncreaseStat(Stats.ATTACK, 2, attacker, false, this); } } } @@ -1813,21 +1814,21 @@ public partial class PokeBattle_Move_02F : PokeBattle_Move { public PokeBattle_Move_02F() : base() { } //public PokeBattle_Move_02F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.DEFENSE, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.DEFENSE, 2, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.DEFENSE, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbIncreaseStat(Stats.DEFENSE, 2, attacker, false, this); + b.IncreaseStat(Stats.DEFENSE, 2, attacker, false, this); } } } @@ -1839,21 +1840,21 @@ public partial class PokeBattle_Move_030 : PokeBattle_Move { public PokeBattle_Move_030() : base() { } //public PokeBattle_Move_030(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.SPEED, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.SPEED, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.SPEED, 2, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.SPEED, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - b.pbIncreaseStat(Stats.SPEED, 2, attacker, false, this); + b.IncreaseStat(Stats.SPEED, 2, attacker, false, this); } } } @@ -1865,17 +1866,17 @@ public partial class PokeBattle_Move_031 : PokeBattle_Move { public PokeBattle_Move_031() : base() { } //public PokeBattle_Move_031(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.SPEED, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.SPEED, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.SPEED, 2, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.SPEED, 2, attacker, false, this); if (ret) { attacker.effects.WeightChange -= 1000; - battle.pbDisplay(Game._INTL("{1} became nimble!", attacker.ToString())); + battle.Display(Game._INTL("{1} became nimble!", attacker.ToString())); } return ret ? 0 : -1; } @@ -1888,21 +1889,21 @@ public partial class PokeBattle_Move_032 : PokeBattle_Move { public PokeBattle_Move_032() : base() { } //public PokeBattle_Move_032(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.SPATK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.SPATK, 2, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.SPATK, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b.pbIncreaseStat(Stats.SPATK, 2, attacker, false, this); + b.IncreaseStat(Stats.SPATK, 2, attacker, false, this); } } } @@ -1914,21 +1915,21 @@ public partial class PokeBattle_Move_033 : PokeBattle_Move { public PokeBattle_Move_033() : base() { } //public PokeBattle_Move_033(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.SPDEF, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.SPDEF, 2, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.SPDEF, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - b.pbIncreaseStat(Stats.SPDEF, 2, attacker, false, this); + b.IncreaseStat(Stats.SPDEF, 2, attacker, false, this); } } } @@ -1940,25 +1941,25 @@ public partial class PokeBattle_Move_034 : PokeBattle_Move { public PokeBattle_Move_034() : base() { } //public PokeBattle_Move_034(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); attacker.effects.Minimize = true; - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.EVASION, attacker, true, this)) return -1; + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.EVASION, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.EVASION, 2, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.EVASION, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { attacker.effects.Minimize = true; - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.EVASION, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.EVASION, attacker, false, this)) { - b.pbIncreaseStat(Stats.EVASION, 2, attacker, false, this); + b.IncreaseStat(Stats.EVASION, 2, attacker, false, this); } } } @@ -1971,43 +1972,43 @@ public partial class PokeBattle_Move_035 : PokeBattle_Move { public PokeBattle_Move_035() : base() { } //public PokeBattle_Move_035(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b0.pbReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b0.ReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanReduceStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanReduceStatStage(Stats.SPDEF, attacker, false, this)) { - b1.pbReduceStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b1.ReduceStat(Stats.SPDEF, 1, attacker, false, this, showanim); showanim = false; } showanim = true; - if (attacker is IBattlerEffect b2 && b2.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b2 && b2.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b2.pbIncreaseStat(Stats.ATTACK, 2, attacker, false, this, showanim); + b2.IncreaseStat(Stats.ATTACK, 2, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b3 && b3.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b3 && b3.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b3.pbIncreaseStat(Stats.SPATK, 2, attacker, false, this, showanim); + b3.IncreaseStat(Stats.SPATK, 2, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b4 && b4.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b4 && b4.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - b4.pbIncreaseStat(Stats.SPEED, 2, attacker, false, this, showanim); + b4.IncreaseStat(Stats.SPEED, 2, attacker, false, this, showanim); showanim = false; } return 0; @@ -2021,26 +2022,26 @@ public partial class PokeBattle_Move_036 : PokeBattle_Move { public PokeBattle_Move_036() : base() { } //public PokeBattle_Move_036(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - b0.pbIncreaseStat(Stats.SPEED, 2, attacker, false, this, showanim); + b0.IncreaseStat(Stats.SPEED, 2, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b1.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } return 0; @@ -2054,14 +2055,14 @@ public partial class PokeBattle_Move_037 : PokeBattle_Move { public PokeBattle_Move_037() : base() { } //public PokeBattle_Move_037(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Index != opponent.Index) { if ((opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) || - opponent.pbOwnSide.CraftyShield) + opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } @@ -2070,18 +2071,18 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = foreach (var i in new[] { Stats.ATTACK, Stats.DEFENSE, Stats.SPEED, Stats.SPATK, Stats.SPDEF, Stats.ACCURACY, Stats.EVASION }) { - if (opponent is IBattlerEffect b && b.pbCanIncreaseStatStage(i, attacker, false, this)) array.Add(i); + if (opponent is IBattlerEffect b && b.CanIncreaseStatStage(i, attacker, false, this)) array.Add(i); } if (array.Count == 0) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", opponent.ToString())); return -1; } - Stats stat = array[this.battle.pbRandom(array.Count)]; + Stats stat = array[this.battle.Random(array.Count)]; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect o) o.pbIncreaseStat(stat, 2, attacker, false, this); //int ret = + if (opponent is IBattlerEffect o) o.IncreaseStat(stat, 2, attacker, false, this); //int ret = return 0; } } @@ -2093,21 +2094,21 @@ public partial class PokeBattle_Move_038 : PokeBattle_Move { public PokeBattle_Move_038() : base() { } //public PokeBattle_Move_038(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.DEFENSE, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.DEFENSE, 3, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.DEFENSE, 3, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbIncreaseStat(Stats.DEFENSE, 3, attacker, false, this); + b.IncreaseStat(Stats.DEFENSE, 3, attacker, false, this); } } } @@ -2119,21 +2120,21 @@ public partial class PokeBattle_Move_039 : PokeBattle_Move { public PokeBattle_Move_039() : base() { } //public PokeBattle_Move_039(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.SPATK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.SPATK, 3, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.SPATK, 3, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbIncreaseStat(Stats.SPATK, 3, attacker, false, this); + b.IncreaseStat(Stats.SPATK, 3, attacker, false, this); } } } @@ -2145,28 +2146,28 @@ public partial class PokeBattle_Move_03A : PokeBattle_Move { public PokeBattle_Move_03A() : base() { } //public PokeBattle_Move_03A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.HP <= Math.Floor(attacker.TotalHP / 2f) || - attacker is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + attacker is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - attacker.pbReduceHP((int)Math.Floor(attacker.TotalHP / 2f)); + attacker.ReduceHP((int)Math.Floor(attacker.TotalHP / 2f)); if (attacker.hasWorkingAbility(Abilities.CONTRARY)) { attacker.stages[(byte)Stats.ATTACK] = -6; - this.battle.pbCommonAnimation("StatDown", attacker, null); - battle.pbDisplay(Game._INTL("{1} cut its own HP and minimized its Attack!", attacker.ToString())); + this.battle.CommonAnimation("StatDown", attacker, null); + battle.Display(Game._INTL("{1} cut its own HP and minimized its Attack!", attacker.ToString())); } else { attacker.stages[(byte)Stats.ATTACK] = 6; - this.battle.pbCommonAnimation("StatUp", attacker, null); - battle.pbDisplay(Game._INTL("{1} cut its own HP and maximized its Attack!", attacker.ToString())); + this.battle.CommonAnimation("StatUp", attacker, null); + battle.Display(Game._INTL("{1} cut its own HP and maximized its Attack!", attacker.ToString())); } return 0; } @@ -2179,21 +2180,21 @@ public partial class PokeBattle_Move_03B : PokeBattle_Move { public PokeBattle_Move_03B() : base() { } //public PokeBattle_Move_03B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanReduceStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanReduceStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.ReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b1.pbReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b1.ReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } } @@ -2208,21 +2209,21 @@ public partial class PokeBattle_Move_03C : PokeBattle_Move { public PokeBattle_Move_03C() : base() { } //public PokeBattle_Move_03C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b0.pbReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b0.ReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanReduceStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanReduceStatStage(Stats.SPDEF, attacker, false, this)) { - b1.pbReduceStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b1.ReduceStat(Stats.SPDEF, 1, attacker, false, this, showanim); showanim = false; } } @@ -2238,30 +2239,30 @@ public partial class PokeBattle_Move_03D : PokeBattle_Move { public PokeBattle_Move_03D() : base() { } //public PokeBattle_Move_03D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - if (attacker.pbPartner.IsNotNullOrNone() && !attacker.pbPartner.isFainted()) + if (attacker.Partner.IsNotNullOrNone() && !attacker.Partner.isFainted()) { - attacker.pbPartner.pbReduceHP((int)Math.Floor(attacker.pbPartner.TotalHP / 16f), true); + attacker.Partner.ReduceHP((int)Math.Floor(attacker.Partner.TotalHP / 16f), true); } bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanReduceStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanReduceStatStage(Stats.SPEED, attacker, false, this)) { - b0.pbReduceStat(Stats.SPEED, 1, attacker, false, this, showanim); + b0.ReduceStat(Stats.SPEED, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b1.pbReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b1.ReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b2 && b2.pbCanReduceStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b2 && b2.CanReduceStatStage(Stats.SPDEF, attacker, false, this)) { - b2.pbReduceStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b2.ReduceStat(Stats.SPDEF, 1, attacker, false, this, showanim); showanim = false; } } @@ -2276,15 +2277,15 @@ public partial class PokeBattle_Move_03E : PokeBattle_Move { public PokeBattle_Move_03E() : base() { } //public PokeBattle_Move_03E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - if (attacker is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanReduceStatStage(Stats.SPEED, attacker, false, this)) { - b.pbReduceStat(Stats.SPEED, 1, attacker, false, this); + b.ReduceStat(Stats.SPEED, 1, attacker, false, this); } } return ret; @@ -2298,15 +2299,15 @@ public partial class PokeBattle_Move_03F : PokeBattle_Move { public PokeBattle_Move_03F() : base() { } //public PokeBattle_Move_03F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - if (attacker is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanReduceStatStage(Stats.SPATK, attacker, false, this)) { - b.pbReduceStat(Stats.SPATK, 2, attacker, false, this); + b.ReduceStat(Stats.SPATK, 2, attacker, false, this); } } return ret; @@ -2320,25 +2321,25 @@ public partial class PokeBattle_Move_040 : PokeBattle_Move { public PokeBattle_Move_040() : base() { } //public PokeBattle_Move_040(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("{1}'s attack missed!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s attack missed!", attacker.ToString())); return -1; } int ret = -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this); + b0.IncreaseStat(Stats.SPATK, 1, attacker, false, this); ret = 0; } - if (opponent is IBattlerEffect b1 && b1.pbCanConfuse(attacker, true, this)) + if (opponent is IBattlerEffect b1 && b1.CanConfuse(attacker, true, this)) { - b1.pbConfuse(); - battle.pbDisplay(Game._INTL("{1} became confused!", opponent.ToString())); + b1.Confuse(); + battle.Display(Game._INTL("{1} became confused!", opponent.ToString())); ret = 0; } return ret; @@ -2352,25 +2353,25 @@ public partial class PokeBattle_Move_041 : PokeBattle_Move { public PokeBattle_Move_041() : base() { } //public PokeBattle_Move_041(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("{1}'s attack missed!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s attack missed!", attacker.ToString())); return -1; } int ret = -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, 2, attacker, false, this); + b0.IncreaseStat(Stats.ATTACK, 2, attacker, false, this); ret = 0; } - if (opponent is IBattlerEffect b1 && b1.pbCanConfuse(attacker, true, this)) + if (opponent is IBattlerEffect b1 && b1.CanConfuse(attacker, true, this)) { - b1.pbConfuse(); - battle.pbDisplay(Game._INTL("{1} became confused!", opponent.ToString())); + b1.Confuse(); + battle.Display(Game._INTL("{1} became confused!", opponent.ToString())); ret = 0; } return ret; @@ -2384,23 +2385,23 @@ public partial class PokeBattle_Move_042 : PokeBattle_Move { public PokeBattle_Move_042() : base() { } //public PokeBattle_Move_042(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.ATTACK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.ATTACK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = false; //opponent.pbReduceStat(Stats.ATTACK, 1, attacker, false, this); - if (opponent is IBattlerEffect o) ret = o.pbReduceStat(Stats.ATTACK, 1, attacker, false, this); + bool ret = false; //opponent.ReduceStat(Stats.ATTACK, 1, attacker, false, this); + if (opponent is IBattlerEffect o) ret = o.ReduceStat(Stats.ATTACK, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.ATTACK, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.ATTACK, attacker, false, this)) { - b.pbReduceStat(Stats.ATTACK, 1, attacker, false, this); + b.ReduceStat(Stats.ATTACK, 1, attacker, false, this); } } } @@ -2412,22 +2413,22 @@ public partial class PokeBattle_Move_043 : PokeBattle_Move { public PokeBattle_Move_043() : base() { } //public PokeBattle_Move_043(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.DEFENSE, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.DEFENSE, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.DEFENSE, 1, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.DEFENSE, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbReduceStat(Stats.DEFENSE, 1, attacker, false, this); + b.ReduceStat(Stats.DEFENSE, 1, attacker, false, this); } } } @@ -2439,26 +2440,26 @@ public partial class PokeBattle_Move_044 : PokeBattle_Move { public PokeBattle_Move_044() : base() { } //public PokeBattle_Move_044(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.SPEED, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.SPEED, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.SPEED, 1, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.SPEED, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPEED, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.SPEED, attacker, false, this)) { - b.pbReduceStat(Stats.SPEED, 1, attacker, false, this); + b.ReduceStat(Stats.SPEED, 1, attacker, false, this); } } - public int pbModifyDamage(int damagemult, IBattler attacker, IBattler opponent) + public int ModifyDamage(int damagemult, IBattler attacker, IBattler opponent) { if (id == Moves.BULLDOZE && this.battle.field.GrassyTerrain > 0) @@ -2476,22 +2477,22 @@ public partial class PokeBattle_Move_045 : PokeBattle_Move { public PokeBattle_Move_045() : base() { } //public PokeBattle_Move_045(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.SPATK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.SPATK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.SPATK, 1, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.SPATK, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPATK, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.SPATK, attacker, false, this)) { - b.pbReduceStat(Stats.SPATK, 1, attacker, false, this); + b.ReduceStat(Stats.SPATK, 1, attacker, false, this); } } } @@ -2503,22 +2504,22 @@ public partial class PokeBattle_Move_046 : PokeBattle_Move { public PokeBattle_Move_046() : base() { } //public PokeBattle_Move_046(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.SPDEF, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.SPDEF, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.SPDEF, 1, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.SPDEF, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPDEF, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.SPDEF, attacker, false, this)) { - b.pbReduceStat(Stats.SPDEF, 1, attacker, false, this); + b.ReduceStat(Stats.SPDEF, 1, attacker, false, this); } } } @@ -2530,22 +2531,22 @@ public partial class PokeBattle_Move_047 : PokeBattle_Move { public PokeBattle_Move_047() : base() { } //public PokeBattle_Move_047(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.ACCURACY, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.ACCURACY, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.ACCURACY, 1, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.ACCURACY, 1, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.ACCURACY, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.ACCURACY, attacker, false, this)) { - b.pbReduceStat(Stats.ACCURACY, 1, attacker, false, this); + b.ReduceStat(Stats.ACCURACY, 1, attacker, false, this); } } } @@ -2557,24 +2558,24 @@ public partial class PokeBattle_Move_048 : PokeBattle_Move { public PokeBattle_Move_048() : base() { } //public PokeBattle_Move_048(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.EVASION, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.EVASION, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); byte increment = (Core.USENEWBATTLEMECHANICS) ? (byte)2 : (byte)1; - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.EVASION, increment, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.EVASION, increment, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.EVASION, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.EVASION, attacker, false, this)) { byte increment = (Core.USENEWBATTLEMECHANICS) ? (byte)2 : (byte)1; - b.pbReduceStat(Stats.EVASION, increment, attacker, false, this); + b.ReduceStat(Stats.EVASION, increment, attacker, false, this); } } } @@ -2587,58 +2588,58 @@ public partial class PokeBattle_Move_049 : PokeBattle_Move { public PokeBattle_Move_049() : base() { } //public PokeBattle_Move_049(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) - { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - - if (opponent is IBattlerEffect o) o.pbReduceStat(Stats.EVASION, 1, attacker, false, this); - opponent.pbOwnSide.Reflect = 0; - opponent.pbOwnSide.LightScreen = 0; - opponent.pbOwnSide.Mist = 0; - opponent.pbOwnSide.Safeguard = 0; - opponent.pbOwnSide.Spikes = 0; - opponent.pbOwnSide.StealthRock = false; - opponent.pbOwnSide.StickyWeb = false; - opponent.pbOwnSide.ToxicSpikes = 0; + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + { + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + + if (opponent is IBattlerEffect o) o.ReduceStat(Stats.EVASION, 1, attacker, false, this); + opponent.OwnSide.Reflect = 0; + opponent.OwnSide.LightScreen = 0; + opponent.OwnSide.Mist = 0; + opponent.OwnSide.Safeguard = 0; + opponent.OwnSide.Spikes = 0; + opponent.OwnSide.StealthRock = false; + opponent.OwnSide.StickyWeb = false; + opponent.OwnSide.ToxicSpikes = 0; if (Core.USENEWBATTLEMECHANICS) { - opponent.pbOpposingSide.Reflect = 0; - opponent.pbOpposingSide.LightScreen = 0; - opponent.pbOpposingSide.Mist = 0; - opponent.pbOpposingSide.Safeguard = 0; - opponent.pbOpposingSide.Spikes = 0; - opponent.pbOpposingSide.StealthRock = false; - opponent.pbOpposingSide.StickyWeb = false; - opponent.pbOpposingSide.ToxicSpikes = 0; + opponent.OpposingSide.Reflect = 0; + opponent.OpposingSide.LightScreen = 0; + opponent.OpposingSide.Mist = 0; + opponent.OpposingSide.Safeguard = 0; + opponent.OpposingSide.Spikes = 0; + opponent.OpposingSide.StealthRock = false; + opponent.OpposingSide.StickyWeb = false; + opponent.OpposingSide.ToxicSpikes = 0; } return 0; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (!opponent.damagestate.Substitute) - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.EVASION, attacker, false, this)) - b.pbReduceStat(Stats.EVASION, 1, attacker, false, this); - - opponent.pbOwnSide.Reflect = 0; - opponent.pbOwnSide.LightScreen = 0; - opponent.pbOwnSide.Mist = 0; - opponent.pbOwnSide.Safeguard = 0; - opponent.pbOwnSide.Spikes = 0; - opponent.pbOwnSide.StealthRock = false; - opponent.pbOwnSide.StickyWeb = false; - opponent.pbOwnSide.ToxicSpikes = 0; + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.EVASION, attacker, false, this)) + b.ReduceStat(Stats.EVASION, 1, attacker, false, this); + + opponent.OwnSide.Reflect = 0; + opponent.OwnSide.LightScreen = 0; + opponent.OwnSide.Mist = 0; + opponent.OwnSide.Safeguard = 0; + opponent.OwnSide.Spikes = 0; + opponent.OwnSide.StealthRock = false; + opponent.OwnSide.StickyWeb = false; + opponent.OwnSide.ToxicSpikes = 0; if (Core.USENEWBATTLEMECHANICS) { - opponent.pbOpposingSide.Reflect = 0; - opponent.pbOpposingSide.LightScreen = 0; - opponent.pbOpposingSide.Mist = 0; - opponent.pbOpposingSide.Safeguard = 0; - opponent.pbOpposingSide.Spikes = 0; - opponent.pbOpposingSide.StealthRock = false; - opponent.pbOpposingSide.StickyWeb = false; - opponent.pbOpposingSide.ToxicSpikes = 0; + opponent.OpposingSide.Reflect = 0; + opponent.OpposingSide.LightScreen = 0; + opponent.OpposingSide.Mist = 0; + opponent.OpposingSide.Safeguard = 0; + opponent.OpposingSide.Spikes = 0; + opponent.OpposingSide.StealthRock = false; + opponent.OpposingSide.StickyWeb = false; + opponent.OpposingSide.ToxicSpikes = 0; } } } @@ -2650,25 +2651,25 @@ public partial class PokeBattle_Move_04A : PokeBattle_Move { public PokeBattle_Move_04A() : base() { } //public PokeBattle_Move_04A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - // Replicates pbCanReduceStatStage? so that certain messages aren't shown + // Replicates CanReduceStatStage? so that certain messages aren't shown // multiple times if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("{1}'s attack missed!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s attack missed!", attacker.ToString())); return -1; } if (opponent is IBattlerEffect b && - b.pbTooLow(Stats.ATTACK) && - b.pbTooLow(Stats.DEFENSE)) + b.TooLow(Stats.ATTACK) && + b.TooLow(Stats.DEFENSE)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any lower!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any lower!", opponent.ToString())); return -1; } - if (opponent.pbOwnSide.Mist > 0) + if (opponent.OwnSide.Mist > 0) { - battle.pbDisplay(Game._INTL("{1} is protected by Mist!", opponent.ToString())); + battle.Display(Game._INTL("{1} is protected by Mist!", opponent.ToString())); return -1; } if (!attacker.hasMoldBreaker()) @@ -2676,34 +2677,34 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (opponent.hasWorkingAbility(Abilities.CLEAR_BODY) || opponent.hasWorkingAbility(Abilities.WHITE_SMOKE)) { - battle.pbDisplay(Game._INTL("{1}'s {2} prevents stat loss!", opponent.ToString(), + battle.Display(Game._INTL("{1}'s {2} prevents stat loss!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); int ret = -1; bool showanim = true; if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.HYPER_CUTTER) && - opponent is IBattlerEffect b0 && !b0.pbTooLow(Stats.ATTACK)) + opponent is IBattlerEffect b0 && !b0.TooLow(Stats.ATTACK)) { string abilityname = Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1}'s {2} prevents Attack loss!", opponent.ToString(), abilityname)); + battle.Display(Game._INTL("{1}'s {2} prevents Attack loss!", opponent.ToString(), abilityname)); } - else if (opponent is IBattlerEffect b1 && b1.pbReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim)) + else if (opponent is IBattlerEffect b1 && b1.ReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim)) { ret = 0; showanim = false; } if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.BIG_PECKS) && - opponent is IBattlerEffect b2 && !b2.pbTooLow(Stats.DEFENSE)) + opponent is IBattlerEffect b2 && !b2.TooLow(Stats.DEFENSE)) { string abilityname = Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1}'s {2} prevents Defense loss!", opponent.ToString(), abilityname)); + battle.Display(Game._INTL("{1}'s {2} prevents Defense loss!", opponent.ToString(), abilityname)); } - else if (opponent is IBattlerEffect b3 && b3.pbReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim)) + else if (opponent is IBattlerEffect b3 && b3.ReduceStat(Stats.DEFENSE, 1, attacker, false, this, showanim)) { ret = 0; showanim = false; } @@ -2718,22 +2719,22 @@ public partial class PokeBattle_Move_04B : PokeBattle_Move { public PokeBattle_Move_04B() : base() { } //public PokeBattle_Move_04B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.ATTACK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.ATTACK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.ATTACK, 2, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.ATTACK, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.ATTACK, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.ATTACK, attacker, false, this)) { - b.pbReduceStat(Stats.ATTACK, 2, attacker, false, this); + b.ReduceStat(Stats.ATTACK, 2, attacker, false, this); } } } @@ -2745,22 +2746,22 @@ public partial class PokeBattle_Move_04C : PokeBattle_Move { public PokeBattle_Move_04C() : base() { } //public PokeBattle_Move_04C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.DEFENSE, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.DEFENSE, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.DEFENSE, 2, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.DEFENSE, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbReduceStat(Stats.DEFENSE, 2, attacker, false, this); + b.ReduceStat(Stats.DEFENSE, 2, attacker, false, this); } } } @@ -2772,25 +2773,25 @@ public partial class PokeBattle_Move_04D : PokeBattle_Move { public PokeBattle_Move_04D() : base() { } //public PokeBattle_Move_04D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.SPEED, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.SPEED, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); byte increment = (id == Moves.STRING_SHOT && !Core.USENEWBATTLEMECHANICS) ? (byte)1 : (byte)2; - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.SPEED, increment, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.SPEED, increment, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPEED, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.SPEED, attacker, false, this)) { byte increment = (id == Moves.STRING_SHOT && !Core.USENEWBATTLEMECHANICS) ? (byte)1 : (byte)2; - b.pbReduceStat(Stats.SPEED, increment, attacker, false, this); + b.ReduceStat(Stats.SPEED, increment, attacker, false, this); } } } @@ -2803,37 +2804,37 @@ public partial class PokeBattle_Move_04E : PokeBattle_Move { public PokeBattle_Move_04E() : base() { } //public PokeBattle_Move_04E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.SPATK, attacker, true, this)) return -1; + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.SPATK, attacker, true, this)) return -1; if (!attacker.Gender.HasValue || !opponent.Gender.HasValue || attacker.Gender.Value == opponent.Gender.Value) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.OBLIVIOUS)) { - battle.pbDisplay(Game._INTL("{1}'s {2} prevents romance!", opponent.ToString(), + battle.Display(Game._INTL("{1}'s {2} prevents romance!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.SPATK, 2, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.SPATK, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; if (attacker.Gender.HasValue && opponent.Gender.HasValue && attacker.Gender.Value != opponent.Gender.Value) { if (attacker.hasMoldBreaker() || !opponent.hasWorkingAbility(Abilities.OBLIVIOUS)) { - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPATK, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.SPATK, attacker, false, this)) { - b.pbReduceStat(Stats.SPATK, 2, attacker, false, this); + b.ReduceStat(Stats.SPATK, 2, attacker, false, this); } } } @@ -2847,22 +2848,22 @@ public partial class PokeBattle_Move_04F : PokeBattle_Move { public PokeBattle_Move_04F() : base() { } //public PokeBattle_Move_04F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.SPDEF, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.SPDEF, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.SPDEF, 2, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.SPDEF, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPDEF, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.SPDEF, attacker, false, this)) { - b.pbReduceStat(Stats.SPDEF, 2, attacker, false, this); + b.ReduceStat(Stats.SPDEF, 2, attacker, false, this); } } } @@ -2874,10 +2875,10 @@ public partial class PokeBattle_Move_050 : PokeBattle_Move { public PokeBattle_Move_050() : base() { } //public PokeBattle_Move_050(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute) { opponent.stages[(byte)Stats.ATTACK] = 0; @@ -2888,7 +2889,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.stages[(byte)Stats.ACCURACY] = 0; opponent.stages[(byte)Stats.EVASION] = 0; - battle.pbDisplay(Game._INTL("{1}'s stat changes were removed!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s stat changes were removed!", opponent.ToString())); } return ret; } @@ -2901,7 +2902,7 @@ public partial class PokeBattle_Move_051 : PokeBattle_Move { public PokeBattle_Move_051() : base() { } //public PokeBattle_Move_051(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { for (int i = 0; i < 4; i++) { @@ -2913,9 +2914,9 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = this.battle.battlers[i].stages[(byte)Stats.ACCURACY] = 0; this.battle.battlers[i].stages[(byte)Stats.EVASION] = 0; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("All stat changes were eliminated!")); + battle.Display(Game._INTL("All stat changes were eliminated!")); return 0; } } @@ -2927,9 +2928,9 @@ public partial class PokeBattle_Move_052 : PokeBattle_Move { public PokeBattle_Move_052() : base() { } //public PokeBattle_Move_052(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); astage = attacker.stages; ostage = opponent.stages; @@ -2944,7 +2945,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = astage[(byte)Stats.SPATK] = o; //ostage[(byte)Stats.SPATK]; ostage[(byte)Stats.SPATK] = a; //astage[(byte)Stats.SPATK]; - battle.pbDisplay(Game._INTL("{1} switched all changes to its Attack and Sp. Atk with the target!", attacker.ToString())); + battle.Display(Game._INTL("{1} switched all changes to its Attack and Sp. Atk with the target!", attacker.ToString())); return 0; } } @@ -2956,9 +2957,9 @@ public partial class PokeBattle_Move_053 : PokeBattle_Move { public PokeBattle_Move_053() : base() { } //public PokeBattle_Move_053(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); astage = attacker.stages; ostage = opponent.stages; @@ -2973,7 +2974,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = astage[(byte)Stats.SPDEF] = o; //ostage[(byte)Stats.SPDEF]; ostage[(byte)Stats.SPDEF] = a; //astage[(byte)Stats.SPDEF]; - battle.pbDisplay(Game._INTL("{1} switched all changes to its Defense and Sp. Def with the target!", attacker.ToString())); + battle.Display(Game._INTL("{1} switched all changes to its Defense and Sp. Def with the target!", attacker.ToString())); return 0; } } @@ -2985,10 +2986,10 @@ public partial class PokeBattle_Move_054 : PokeBattle_Move { public PokeBattle_Move_054() : base() { } //public PokeBattle_Move_054(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); foreach (var i in new[] { Stats.ATTACK, Stats.DEFENSE, Stats.SPEED, Stats.SPATK, Stats.SPDEF, Stats.ACCURACY, Stats.EVASION }) { @@ -2999,7 +3000,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.stages[(byte)i] = a; //attacker.stages[(byte)i]; } - battle.pbDisplay(Game._INTL("{1} switched stat changes with the target!", attacker.ToString())); + battle.Display(Game._INTL("{1} switched stat changes with the target!", attacker.ToString())); return 0; } } @@ -3011,21 +3012,21 @@ public partial class PokeBattle_Move_055 : PokeBattle_Move { public PokeBattle_Move_055() : base() { } //public PokeBattle_Move_055(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent.pbOwnSide.CraftyShield) + if (opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); foreach (var i in new[] { Stats.ATTACK, Stats.DEFENSE, Stats.SPEED, Stats.SPATK, Stats.SPDEF, Stats.ACCURACY, Stats.EVASION }) { attacker.stages[(byte)i] = opponent.stages[(byte)i]; } - battle.pbDisplay(Game._INTL("{1} copied {2}'s stat changes!", attacker.ToString(), opponent.ToString(true))); + battle.Display(Game._INTL("{1} copied {2}'s stat changes!", attacker.ToString(), opponent.ToString(true))); return 0; } } @@ -3037,23 +3038,23 @@ public partial class PokeBattle_Move_056 : PokeBattle_Move { public PokeBattle_Move_056() : base() { } //public PokeBattle_Move_056(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.Mist > 0) + if (attacker.OwnSide.Mist > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - attacker.pbOwnSide.Mist = 5; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OwnSide.Mist = 5; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Your team became shrouded in mist!")); + battle.Display(Game._INTL("Your team became shrouded in mist!")); } else { - battle.pbDisplay(Game._INTL("The opposing team became shrouded in mist!")); + battle.Display(Game._INTL("The opposing team became shrouded in mist!")); } return 0; } @@ -3066,9 +3067,9 @@ public partial class PokeBattle_Move_057 : PokeBattle_Move { public PokeBattle_Move_057() : base() { } //public PokeBattle_Move_057(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); //attacker.attack,attacker.defense = attacker.defense,attacker.attack; int a = attacker.ATK; @@ -3077,7 +3078,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.DEF = a; //attacker.ATK; attacker.effects.PowerTrick = !attacker.effects.PowerTrick; - battle.pbDisplay(Game._INTL("{1} switched its Attack and Defense!", attacker.ToString())); + battle.Display(Game._INTL("{1} switched its Attack and Defense!", attacker.ToString())); return 0; } } @@ -3090,14 +3091,14 @@ public partial class PokeBattle_Move_058 : PokeBattle_Move { public PokeBattle_Move_058() : base() { } //public PokeBattle_Move_058(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); int avatk = (int)Math.Floor((attacker.ATK + opponent.ATK) / 2f); int avspatk = (int)Math.Floor((attacker.SPA + opponent.SPA) / 2f); @@ -3105,7 +3106,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.ATK = opponent.ATK = avatk; attacker.SPA = opponent.SPA = avspatk; - battle.pbDisplay(Game._INTL("{1} shared its power with the target!", attacker.ToString())); + battle.Display(Game._INTL("{1} shared its power with the target!", attacker.ToString())); return 0; } } @@ -3118,14 +3119,14 @@ public partial class PokeBattle_Move_059 : PokeBattle_Move { public PokeBattle_Move_059() : base() { } //public PokeBattle_Move_059(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); int avdef = (int)Math.Floor((attacker.DEF + opponent.DEF) / 2f); int avspdef = (int)Math.Floor((attacker.SPD + opponent.SPD) / 2f); @@ -3133,7 +3134,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.DEF = opponent.DEF = avdef; attacker.SPD = opponent.SPD = avspdef; - battle.pbDisplay(Game._INTL("{1} shared its guard with the target!", attacker.ToString())); + battle.Display(Game._INTL("{1} shared its guard with the target!", attacker.ToString())); return 0; } } @@ -3145,14 +3146,14 @@ public partial class PokeBattle_Move_05A : PokeBattle_Move { public PokeBattle_Move_05A() : base() { } //public PokeBattle_Move_05A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); int olda = attacker.HP; int oldo = opponent.HP; @@ -3161,9 +3162,9 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.HP = Math.Min(avhp, attacker.TotalHP); opponent.HP = Math.Min(avhp, opponent.TotalHP); - if (this.battle.scene is IPokeBattle_Scene s0) s0.pbHPChanged(attacker, olda); - if (this.battle.scene is IPokeBattle_Scene s1) s1.pbHPChanged(opponent, oldo); - battle.pbDisplay(Game._INTL("The battlers shared their pain!")); + if (this.battle.scene is IPokeBattle_Scene s0) s0.HPChanged(attacker, olda); + if (this.battle.scene is IPokeBattle_Scene s1) s1.HPChanged(opponent, oldo); + battle.Display(Game._INTL("The battlers shared their pain!")); return 0; } } @@ -3175,23 +3176,23 @@ public partial class PokeBattle_Move_05B : PokeBattle_Move { public PokeBattle_Move_05B() : base() { } //public PokeBattle_Move_05B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.Tailwind > 0) + if (attacker.OwnSide.Tailwind > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbOwnSide.Tailwind = 4; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OwnSide.Tailwind = 4; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("The tailwind blew from behind your team!")); + battle.Display(Game._INTL("The tailwind blew from behind your team!")); } else { - battle.pbDisplay(Game._INTL("The tailwind blew from behind the opposing team!")); + battle.Display(Game._INTL("The tailwind blew from behind the opposing team!")); } return 0; } @@ -3205,7 +3206,7 @@ public partial class PokeBattle_Move_05C : PokeBattle_Move { public PokeBattle_Move_05C() : base() { } //public PokeBattle_Move_05C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List blacklist = new List { @@ -3217,37 +3218,37 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = }; if (attacker.effects.Transform || opponent.lastMoveUsed <= 0 || - Kernal.MoveData[(Moves)opponent.lastMoveUsed].Type == Types.SHADOW || + Kernal.MoveData[(Moves)opponent.lastMoveUsed].Type == Types.SHADOW || blacklist.Contains(Kernal.MoveData[(Moves)opponent.lastMoveUsed].Effect)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } foreach (var i in attacker.moves) { if (i.id == opponent.lastMoveUsed) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); for (int i = 0; i < attacker.moves.Length; i++) { if (attacker.moves[i].id == this.id) { Attack.Move newmove = new Attack.Move(opponent.lastMoveUsed); - attacker.moves[i] = Combat.Move.pbFromPBMove(this.battle, newmove); + attacker.moves[i] = Combat.Move.FromMove(this.battle, newmove); string movename = Game._INTL(opponent.lastMoveUsed.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} learned {2}!", attacker.ToString(), movename)); + battle.Display(Game._INTL("{1} learned {2}!", attacker.ToString(), movename)); return 0; } } - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } @@ -3259,7 +3260,7 @@ public partial class PokeBattle_Move_05D : PokeBattle_Move { public PokeBattle_Move_05D() : base() { } //public PokeBattle_Move_05D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List blacklist = new List { @@ -3272,31 +3273,31 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = Kernal.MoveData[(Moves)opponent.lastMoveUsedSketch].Type == Types.SHADOW || blacklist.Contains(Kernal.MoveData[(Moves)opponent.lastMoveUsedSketch].Effect)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } foreach (var i in attacker.moves) { if (i.id == opponent.lastMoveUsedSketch) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } - if (opponent.pbOwnSide.CraftyShield) + if (opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); for (int i = 0; i < attacker.moves.Length; i++) { if (attacker.moves[i].id == this.id) { Attack.Move newmove = new Attack.Move(opponent.lastMoveUsedSketch); - attacker.moves[i] = Combat.Move.pbFromPBMove(this.battle, newmove); + attacker.moves[i] = Combat.Move.FromMove(this.battle, newmove); - IPokemon[] party = this.battle.pbParty(attacker.Index); + IPokemon[] party = this.battle.Party(attacker.Index); party[attacker.pokemonIndex].moves[i] = newmove; @@ -3304,12 +3305,12 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = string movename = Game._INTL(opponent.lastMoveUsedSketch.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} learned {2}!", attacker.ToString(), movename)); + battle.Display(Game._INTL("{1} learned {2}!", attacker.ToString(), movename)); return 0; } } - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } @@ -3322,19 +3323,19 @@ public partial class PokeBattle_Move_05E : PokeBattle_Move { public PokeBattle_Move_05E() : base() { } //public PokeBattle_Move_05E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Ability == Abilities.MULTITYPE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } List types = new List(); //[] foreach (var i in attacker.moves) { if (i.id == this.id) continue; //next - //if (PBTypes.isPseudoType(i.Type)) continue; - if (attacker.pbHasType(i.Type)) continue; //next + //if (Types.isPseudoType(i.Type)) continue; + if (attacker.HasType(i.Type)) continue; //next if (!types.Contains(i.Type)) { types.Add(i.Type); @@ -3344,12 +3345,12 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (types.Count == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - Types newtype = types[this.battle.pbRandom(types.Count)]; + Types newtype = types[this.battle.Random(types.Count)]; attacker.Type1 = newtype; attacker.Type2 = newtype; @@ -3357,7 +3358,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = string typename = Game._INTL(newtype.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} transformed into the {2} type!", attacker.ToString(), typename)); + battle.Display(Game._INTL("{1} transformed into the {2} type!", attacker.ToString(), typename)); return 0; //ToDo: Wasnt sure what to return, so put null/0 } } @@ -3370,23 +3371,23 @@ public partial class PokeBattle_Move_05F : PokeBattle_Move { public PokeBattle_Move_05F() : base() { } //public PokeBattle_Move_05F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Ability == Abilities.MULTITYPE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (opponent.lastMoveUsed <= 0 - //|| PBTypes.isPseudoType(Kernal.MoveData[(Moves)opponent.lastMoveUsed].Type) + if (opponent.lastMoveUsed <= 0 + //|| Types.isPseudoType(Kernal.MoveData[(Moves)opponent.lastMoveUsed].Type) ) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (opponent.pbOwnSide.CraftyShield) + if (opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } List types = new List();//[] @@ -3395,23 +3396,23 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (atype < 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } for (int i = 0; i < Kernal.TypeData.Count; i++) { - //if (PBTypes.isPseudoType((Types)i)) continue; - if (attacker.pbHasType((Types)i)) continue; //next + //if (Types.isPseudoType((Types)i)) continue; + if (attacker.HasType((Types)i)) continue; //next if (atype.GetEffectiveness((Types)i) < 2) types.Add((Types)i); } if (types.Count == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - Types newtype = types[this.battle.pbRandom(types.Count)]; + Types newtype = types[this.battle.Random(types.Count)]; attacker.Type1 = newtype; attacker.Type2 = newtype; @@ -3419,7 +3420,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = string typename = Game._INTL(newtype.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} transformed into the {2} type!", attacker.ToString(), typename)); + battle.Display(Game._INTL("{1} transformed into the {2} type!", attacker.ToString(), typename)); return 0; } } @@ -3431,11 +3432,11 @@ public partial class PokeBattle_Move_060 : PokeBattle_Move { public PokeBattle_Move_060() : base() { } //public PokeBattle_Move_060(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Ability == Abilities.MULTITYPE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } Types type = Types.NORMAL; @@ -3470,12 +3471,12 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { type = Types.FAIRY; } - if (attacker.pbHasType(type)) + if (attacker.HasType(type)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.Type1 = type; attacker.Type2 = type; @@ -3483,7 +3484,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = string typename = Game._INTL(type.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} transformed into the {2} type!", attacker.ToString(), typename)); + battle.Display(Game._INTL("{1} transformed into the {2} type!", attacker.ToString(), typename)); return 0; } } @@ -3495,26 +3496,26 @@ public partial class PokeBattle_Move_061 : PokeBattle_Move { public PokeBattle_Move_061() : base() { } //public PokeBattle_Move_061(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; if (opponent.Ability == Abilities.MULTITYPE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); if (opponent.Type1 == Types.WATER && opponent.Type2 == Types.WATER && (opponent.effects.Type3 < 0 || opponent.effects.Type3 == Types.WATER)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } opponent.Type1 = Types.WATER; @@ -3523,7 +3524,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.effects.Type3 = Types.NONE; //-1; string typename = Game._INTL(Types.WATER.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} transformed into the {2} type!", opponent.ToString(), typename)); + battle.Display(Game._INTL("{1} transformed into the {2} type!", opponent.ToString(), typename)); return 0; } } @@ -3535,30 +3536,30 @@ public partial class PokeBattle_Move_062 : PokeBattle_Move { public PokeBattle_Move_062() : base() { } //public PokeBattle_Move_062(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Ability == Abilities.MULTITYPE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (attacker.pbHasType(opponent.Type1) && - attacker.pbHasType(opponent.Type2) && - attacker.pbHasType(opponent.effects.Type3) && - opponent.pbHasType(attacker.Type1) && - opponent.pbHasType(attacker.Type2) && - opponent.pbHasType(attacker.effects.Type3)) + if (attacker.HasType(opponent.Type1) && + attacker.HasType(opponent.Type2) && + attacker.HasType(opponent.effects.Type3) && + opponent.HasType(attacker.Type1) && + opponent.HasType(attacker.Type2) && + opponent.HasType(attacker.effects.Type3)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); attacker.Type1 = opponent.Type1; attacker.Type2 = opponent.Type2; attacker.effects.Type3 = Types.NONE; //-1; - battle.pbDisplay(Game._INTL("{1}'s type changed to match {2}'s!", attacker.ToString(), opponent.ToString(true))); + battle.Display(Game._INTL("{1}'s type changed to match {2}'s!", attacker.ToString(), opponent.ToString(true))); return 0; } } @@ -3570,11 +3571,11 @@ public partial class PokeBattle_Move_063 : PokeBattle_Move { public PokeBattle_Move_063() : base() { } //public PokeBattle_Move_063(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (opponent.Ability == Abilities.MULTITYPE || @@ -3582,22 +3583,22 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.Ability == Abilities.STANCE_CHANGE || opponent.Ability == Abilities.TRUANT) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); Abilities oldabil = opponent.Ability; opponent.Ability = Abilities.SIMPLE; string abilityname = Game._INTL(Abilities.SIMPLE.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} acquired {2}!", opponent.ToString(), abilityname)); + battle.Display(Game._INTL("{1} acquired {2}!", opponent.ToString(), abilityname)); if (opponent.effects.Illusion.Species != Pokemons.NONE && oldabil == Abilities.ILLUSION) { GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Illusion ended"); opponent.effects.Illusion = null; - if (this.battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(opponent, (opponent as Pokemon).Form.Id);//Species); + if (this.battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(opponent, opponent.pokemon); - battle.pbDisplay(Game._INTL("{1}'s {2} wore off!", opponent.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("{1}'s {2} wore off!", opponent.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); } return 0; } @@ -3610,35 +3611,35 @@ public partial class PokeBattle_Move_064 : PokeBattle_Move { public PokeBattle_Move_064() : base() { } //public PokeBattle_Move_064(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; if (opponent.Ability == Abilities.MULTITYPE || opponent.Ability == Abilities.INSOMNIA || opponent.Ability == Abilities.STANCE_CHANGE || opponent.Ability == Abilities.TRUANT) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); Abilities oldabil = opponent.Ability; opponent.Ability = Abilities.INSOMNIA; string abilityname = Game._INTL(Abilities.INSOMNIA.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} acquired {2}!", opponent.ToString(), abilityname)); + battle.Display(Game._INTL("{1} acquired {2}!", opponent.ToString(), abilityname)); if (opponent.effects.Illusion.Species != Pokemons.NONE && oldabil == Abilities.ILLUSION) { GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Illusion ended"); opponent.effects.Illusion = null; - if (this.battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(opponent, (opponent as Pokemon).Form.Id);//Species); + if (this.battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(opponent, opponent.pokemon); - battle.pbDisplay(Game._INTL("{1}'s {2} wore off!", opponent.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("{1}'s {2} wore off!", opponent.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); } return 0; } @@ -3651,11 +3652,11 @@ public partial class PokeBattle_Move_065 : PokeBattle_Move { public PokeBattle_Move_065() : base() { } //public PokeBattle_Move_065(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent.pbOwnSide.CraftyShield) + if (opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (opponent.Ability == 0 || @@ -3672,23 +3673,23 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.Ability == Abilities.WONDER_GUARD || opponent.Ability == Abilities.ZEN_MODE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); Abilities oldabil = attacker.Ability; attacker.Ability = opponent.Ability; string abilityname = Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} copied {2}'s {3}!", attacker.ToString(), opponent.ToString(true), abilityname)); + battle.Display(Game._INTL("{1} copied {2}'s {3}!", attacker.ToString(), opponent.ToString(true), abilityname)); if (attacker.effects.Illusion.Species != Pokemons.NONE && oldabil == Abilities.ILLUSION) { GameDebug.Log($"[Ability triggered] #{attacker.ToString()}'s Illusion ended"); attacker.effects.Illusion = null; - if (this.battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(attacker, (attacker as Pokemon).Form.Id);//Species); + if (this.battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(attacker, attacker.pokemon); - battle.pbDisplay(Game._INTL("{1}'s {2} wore off!", attacker.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("{1}'s {2} wore off!", attacker.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); } return 0; } @@ -3701,16 +3702,16 @@ public partial class PokeBattle_Move_066 : PokeBattle_Move { public PokeBattle_Move_066() : base() { } //public PokeBattle_Move_066(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (opponent.pbOwnSide.CraftyShield) + if (opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (attacker.Ability == 0 || @@ -3731,23 +3732,23 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.Ability == Abilities.TRACE || attacker.Ability == Abilities.ZEN_MODE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); Abilities oldabil = opponent.Ability; opponent.Ability = attacker.Ability; string abilityname = Game._INTL(attacker.Ability.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} acquired {2}!", opponent.ToString(), abilityname)); + battle.Display(Game._INTL("{1} acquired {2}!", opponent.ToString(), abilityname)); if (opponent.effects.Illusion.Species != Pokemons.NONE && oldabil == Abilities.ILLUSION) { GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Illusion ended"); opponent.effects.Illusion = null; - if (this.battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(opponent, (opponent as Pokemon).Form.Id);//Species); + if (this.battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(opponent, opponent.pokemon); - battle.pbDisplay(Game._INTL("{1}'s {2} wore off!", opponent.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("{1}'s {2} wore off!", opponent.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); } return 0; } @@ -3760,7 +3761,7 @@ public partial class PokeBattle_Move_067 : PokeBattle_Move { public PokeBattle_Move_067() : base() { } //public PokeBattle_Move_067(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if ((attacker.Ability == 0 && opponent.Ability == 0) || (attacker.Ability == opponent.Ability && !Core.USENEWBATTLEMECHANICS) || @@ -3773,20 +3774,20 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.Ability == Abilities.WONDER_GUARD || opponent.Ability == Abilities.WONDER_GUARD) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); Abilities tmp = attacker.Ability; attacker.Ability = opponent.Ability; opponent.Ability = tmp; - battle.pbDisplay(Game._INTL("{1} swapped its {2} Ability with its target's {3} Ability!", + battle.Display(Game._INTL("{1} swapped its {2} Ability with its target's {3} Ability!", attacker.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)), Game._INTL(attacker.Ability.ToString(TextScripts.Name)))); - attacker.pbAbilitiesOnSwitchIn(true); - opponent.pbAbilitiesOnSwitchIn(true); + attacker.AbilitiesOnSwitchIn(true); + opponent.AbilitiesOnSwitchIn(true); return 0; } } @@ -3798,33 +3799,33 @@ public partial class PokeBattle_Move_068 : PokeBattle_Move { public PokeBattle_Move_068() : base() { } //public PokeBattle_Move_068(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (opponent.Ability == Abilities.MULTITYPE || opponent.Ability == Abilities.STANCE_CHANGE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); Abilities oldabil = opponent.Ability; opponent.effects.GastroAcid = true; opponent.effects.Truant = false; - battle.pbDisplay(Game._INTL("{1}'s Ability was suppressed!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s Ability was suppressed!", opponent.ToString())); if (opponent.effects.Illusion.Species != Pokemons.NONE && oldabil == Abilities.ILLUSION) { GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Illusion ended"); opponent.effects.Illusion = null; - if (this.battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(opponent, (opponent as Pokemon).Form.Id);//Species); + if (this.battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(opponent, opponent.pokemon); - battle.pbDisplay(Game._INTL("{1}'s {2} wore off!", opponent.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("{1}'s {2} wore off!", opponent.ToString(), Game._INTL(oldabil.ToString(TextScripts.Name)))); } return 0; } @@ -3837,7 +3838,7 @@ public partial class PokeBattle_Move_069 : PokeBattle_Move { public PokeBattle_Move_069() : base() { } //public PokeBattle_Move_069(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List blacklist = new List{ @@ -3856,15 +3857,15 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.effects.SkyDrop || blacklist.Contains(Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (opponent.pbOwnSide.CraftyShield) + if (opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); attacker.effects.Transform = true; attacker.Type1 = opponent.Type1; @@ -3890,7 +3891,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = for (int i = 0; i < 4; i++) { - attacker.moves[i] = Combat.Move.pbFromPBMove( + attacker.moves[i] = Combat.Move.FromMove( @battle, new Attack.Move(opponent.moves[i].id)); attacker.moves[i].PP = 5; attacker.moves[i].TotalPP = 5; @@ -3899,7 +3900,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.effects.DisableMove = 0; - battle.pbDisplay(Game._INTL("{1} transformed into {2}!", attacker.ToString(), opponent.ToString(true))); + battle.Display(Game._INTL("{1} transformed into {2}!", attacker.ToString(), opponent.ToString(true))); return 0; } } @@ -3911,9 +3912,9 @@ public partial class PokeBattle_Move_06A : PokeBattle_Move { public PokeBattle_Move_06A() : base() { } //public PokeBattle_Move_06A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - return pbEffectFixedDamage(20, attacker, opponent, hitnum, alltargets, showanimation); + return EffectFixedDamage(20, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -3924,9 +3925,9 @@ public partial class PokeBattle_Move_06B : PokeBattle_Move { public PokeBattle_Move_06B() : base() { } //public PokeBattle_Move_06B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - return pbEffectFixedDamage(40, attacker, opponent, hitnum, alltargets, showanimation); + return EffectFixedDamage(40, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -3937,9 +3938,9 @@ public partial class PokeBattle_Move_06C : PokeBattle_Move { public PokeBattle_Move_06C() : base() { } //public PokeBattle_Move_06C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - return pbEffectFixedDamage((int)Math.Max(Math.Floor(opponent.HP / 2f), 1), attacker, opponent, hitnum, alltargets, showanimation); + return EffectFixedDamage((int)Math.Max(Math.Floor(opponent.HP / 2f), 1), attacker, opponent, hitnum, alltargets, showanimation); } } @@ -3950,9 +3951,9 @@ public partial class PokeBattle_Move_06D : PokeBattle_Move { public PokeBattle_Move_06D() : base() { } //public PokeBattle_Move_06D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - return pbEffectFixedDamage(attacker.Level, attacker, opponent, hitnum, alltargets, showanimation); + return EffectFixedDamage(attacker.Level, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -3963,14 +3964,14 @@ public partial class PokeBattle_Move_06E : PokeBattle_Move { public PokeBattle_Move_06E() : base() { } //public PokeBattle_Move_06E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.HP >= opponent.HP) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - return pbEffectFixedDamage(opponent.HP - attacker.HP, attacker, opponent, hitnum, alltargets, showanimation); + return EffectFixedDamage(opponent.HP - attacker.HP, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -3981,11 +3982,11 @@ public partial class PokeBattle_Move_06F : PokeBattle_Move { public PokeBattle_Move_06F() : base() { } //public PokeBattle_Move_06F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int dmg = (int)Math.Max((attacker.Level * (int)Math.Floor(this.battle.pbRandom(101) + 50f) / 100f), 1); - return pbEffectFixedDamage(dmg, attacker, opponent, hitnum, alltargets, showanimation); + int dmg = (int)Math.Max((attacker.Level * (int)Math.Floor(this.battle.Random(101) + 50f) / 100f), 1); + return EffectFixedDamage(dmg, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -3996,29 +3997,29 @@ public partial class PokeBattle_Move_070 : PokeBattle_Move { public PokeBattle_Move_070() : base() { } //public PokeBattle_Move_070(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbAccuracyCheck(IBattler attacker, IBattler opponent) + public override bool AccuracyCheck(IBattler attacker, IBattler opponent) { if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.STURDY)) { - battle.pbDisplay(Game._INTL("{1} was protected by {2}!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("{1} was protected by {2}!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; } if (opponent.Level > attacker.Level) { - battle.pbDisplay(Game._INTL("{1} is unaffected!", opponent.ToString())); + battle.Display(Game._INTL("{1} is unaffected!", opponent.ToString())); return false; } int acc = this.accuracy + attacker.Level - opponent.Level; - return this.battle.pbRandom(100) < acc; + return this.battle.Random(100) < acc; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int damage = pbEffectFixedDamage(opponent.TotalHP, attacker, opponent, hitnum, alltargets, showanimation); + int damage = EffectFixedDamage(opponent.TotalHP, attacker, opponent, hitnum, alltargets, showanimation); if (opponent.isFainted()) { - battle.pbDisplay(Game._INTL("It's a one-hit KO!")); + battle.Display(Game._INTL("It's a one-hit KO!")); } return damage; } @@ -4031,26 +4032,26 @@ public partial class PokeBattle_Move_071 : PokeBattle_Move { public PokeBattle_Move_071() : base() { } //public PokeBattle_Move_071(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAddTarget(IList targets, IBattler attacker) + public override void AddTarget(IList targets, IBattler attacker) { if (attacker.effects.CounterTarget >= 0 && - attacker.pbIsOpposing(attacker.effects.CounterTarget)) + attacker.IsOpposing(attacker.effects.CounterTarget)) { - if (!attacker.pbAddTarget(ref targets, this.battle.battlers[attacker.effects.CounterTarget])) + if (!attacker.AddTarget(ref targets, this.battle.battlers[attacker.effects.CounterTarget])) { - attacker.pbRandomTarget(targets); + attacker.RandomTarget(targets); } } } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.Counter < 0 || opponent.Species == Pokemons.NONE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - int ret = pbEffectFixedDamage(Math.Max(attacker.effects.Counter * 2, 1), attacker, opponent, hitnum, alltargets, showanimation); + int ret = EffectFixedDamage(Math.Max(attacker.effects.Counter * 2, 1), attacker, opponent, hitnum, alltargets, showanimation); return ret; } } @@ -4062,26 +4063,26 @@ public partial class PokeBattle_Move_072 : PokeBattle_Move { public PokeBattle_Move_072() : base() { } //public PokeBattle_Move_072(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAddTarget(IList targets, IBattler attacker) + public override void AddTarget(IList targets, IBattler attacker) { if (attacker.effects.MirrorCoatTarget >= 0 && - attacker.pbIsOpposing(attacker.effects.MirrorCoatTarget)) + attacker.IsOpposing(attacker.effects.MirrorCoatTarget)) { - if (!attacker.pbAddTarget(ref targets, this.battle.battlers[attacker.effects.MirrorCoatTarget])) + if (!attacker.AddTarget(ref targets, this.battle.battlers[attacker.effects.MirrorCoatTarget])) { - attacker.pbRandomTarget(targets); + attacker.RandomTarget(targets); } } } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.MirrorCoat < 0 || opponent.Species == Pokemons.NONE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - int ret = pbEffectFixedDamage(Math.Max(attacker.effects.MirrorCoat * 2, 1), attacker, opponent, hitnum, alltargets, showanimation); + int ret = EffectFixedDamage(Math.Max(attacker.effects.MirrorCoat * 2, 1), attacker, opponent, hitnum, alltargets, showanimation); return ret; } } @@ -4094,29 +4095,29 @@ public partial class PokeBattle_Move_073 : PokeBattle_Move { public PokeBattle_Move_073() : base() { } //public PokeBattle_Move_073(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAddTarget(IList targets, IBattler attacker) + public override void AddTarget(IList targets, IBattler attacker) { if (attacker.lastAttacker.Count > 0) { int lastattacker = attacker.lastAttacker[attacker.lastAttacker.Count - 1]; - if (lastattacker >= 0 && attacker.pbIsOpposing(lastattacker)) + if (lastattacker >= 0 && attacker.IsOpposing(lastattacker)) { - if (!attacker.pbAddTarget(ref targets, this.battle.battlers[lastattacker])) + if (!attacker.AddTarget(ref targets, this.battle.battlers[lastattacker])) { - attacker.pbRandomTarget(targets); + attacker.RandomTarget(targets); } } } } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.lastHPLost == 0 || opponent.Species == Pokemons.NONE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - int ret = pbEffectFixedDamage((int)Math.Max(Math.Floor(attacker.lastHPLost * 1.5f), 1), attacker, opponent, hitnum, alltargets, showanimation); + int ret = EffectFixedDamage((int)Math.Max(Math.Floor(attacker.lastHPLost * 1.5f), 1), attacker, opponent, hitnum, alltargets, showanimation); return ret; } } @@ -4128,16 +4129,16 @@ public partial class PokeBattle_Move_074 : PokeBattle_Move { public PokeBattle_Move_074() : base() { } //public PokeBattle_Move_074(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - if (opponent.pbPartner.IsNotNullOrNone() && !opponent.pbPartner.isFainted() && - !opponent.pbPartner.hasWorkingAbility(Abilities.MAGIC_GUARD)) + if (opponent.Partner.IsNotNullOrNone() && !opponent.Partner.isFainted() && + !opponent.Partner.hasWorkingAbility(Abilities.MAGIC_GUARD)) { - opponent.pbPartner.pbReduceHP((int)Math.Floor(opponent.pbPartner.TotalHP / 16f)); - battle.pbDisplay(Game._INTL("The bursting flame hit {1}!", opponent.pbPartner.ToString(true))); + opponent.Partner.ReduceHP((int)Math.Floor(opponent.Partner.TotalHP / 16f)); + battle.Display(Game._INTL("The bursting flame hit {1}!", opponent.Partner.ToString(true))); } } return ret; @@ -4146,13 +4147,13 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = /// /// Power is doubled if the target is using Dive. (Surf) - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_075 : PokeBattle_Move { public PokeBattle_Move_075() : base() { } //public PokeBattle_Move_075(Battle battle, Attack.Move move) : base(battle, move) { } - public int pbModifyDamage(int damagemult, IBattler attacker, IBattler opponent) + public int ModifyDamage(int damagemult, IBattler attacker, IBattler opponent) { if (Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x100) // Dive { @@ -4165,13 +4166,13 @@ public int pbModifyDamage(int damagemult, IBattler attacker, IBattler opponent) /// /// Power is doubled if the target is using Dig. Power is halved if Grassy Terrain /// is in effect. (Earthquake) - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_076 : PokeBattle_Move { public PokeBattle_Move_076() : base() { } //public PokeBattle_Move_076(Battle battle, Attack.Move move) : base(battle, move) { } - public int pbModifyDamage(int damagemult, IBattler attacker, IBattler opponent) + public int ModifyDamage(int damagemult, IBattler attacker, IBattler opponent) { int ret = damagemult; if (Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x101) // Dig @@ -4188,13 +4189,13 @@ public int pbModifyDamage(int damagemult, IBattler attacker, IBattler opponent) /// /// Power is doubled if the target is using Bounce, Fly or Sky Drop. (Gust) - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_077 : PokeBattle_Move { public PokeBattle_Move_077() : base() { } //public PokeBattle_Move_077(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x09C || // Fly Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x108 || // Bounce @@ -4210,13 +4211,13 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone /// /// Power is doubled if the target is using Bounce, Fly or Sky Drop. (Twister) /// May make the target flinch. - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_078 : PokeBattle_Move { public PokeBattle_Move_078() : base() { } //public PokeBattle_Move_078(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x09C || // Fly Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x108 || // Bounce @@ -4228,10 +4229,10 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } } @@ -4242,7 +4243,7 @@ public partial class PokeBattle_Move_079 : PokeBattle_Move { public PokeBattle_Move_079() : base() { } //public PokeBattle_Move_079(Battle battle, Attack.Move move) : base(battle, move) { } - public int pbBaseDamageMultiplier(int damagemult, IBattler attacker, IBattler opponent) + public int BaseDamageMultiplier(int damagemult, IBattler attacker, IBattler opponent) { if (this.battle.field.FusionBolt) { @@ -4253,10 +4254,10 @@ public int pbBaseDamageMultiplier(int damagemult, IBattler attacker, IBattler op return damagemult; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { this.doubled = false; - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { this.battle.field.FusionFlare = true; @@ -4264,13 +4265,13 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = return ret; } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.damagestate.Critical || this.doubled) { - base.pbShowAnimation(id, attacker, opponent, 1, alltargets, showanimation); // Charged anim; + base.ShowAnimation(id, attacker, opponent, 1, alltargets, showanimation); // Charged anim; } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -4281,7 +4282,7 @@ public partial class PokeBattle_Move_07A : PokeBattle_Move { public PokeBattle_Move_07A() : base() { } //public PokeBattle_Move_07A(Battle battle, Attack.Move move) : base(battle, move) { } - public int pbBaseDamageMultiplier(int damagemult, IBattler attacker, IBattler opponent) + public int BaseDamageMultiplier(int damagemult, IBattler attacker, IBattler opponent) { if (battle.field.FusionFlare) { @@ -4291,10 +4292,10 @@ public int pbBaseDamageMultiplier(int damagemult, IBattler attacker, IBattler op return damagemult; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { this.battle.field.FusionBolt = true; @@ -4302,13 +4303,13 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = return ret; } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.damagestate.Critical || this.doubled) { - base.pbShowAnimation(id, attacker, opponent, 1, alltargets, showanimation); // Charged anim; + base.ShowAnimation(id, attacker, opponent, 1, alltargets, showanimation); // Charged anim; } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -4319,7 +4320,7 @@ public partial class PokeBattle_Move_07B : PokeBattle_Move { public PokeBattle_Move_07B() : base() { } //public PokeBattle_Move_07B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (opponent.Status == Status.POISON && (opponent.effects.Substitute == 0 || ignoresSubstitute(attacker))) @@ -4338,7 +4339,7 @@ public partial class PokeBattle_Move_07C : PokeBattle_Move { public PokeBattle_Move_07C() : base() { } //public PokeBattle_Move_07C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (opponent.Status == Status.PARALYSIS && (opponent.effects.Substitute == 0 || ignoresSubstitute(attacker))) @@ -4348,12 +4349,12 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!opponent.isFainted() && opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute && opponent.Status == Status.PARALYSIS && opponent is IBattlerEffect b) { - b.pbCureStatus(); + b.CureStatus(); } } @@ -4366,7 +4367,7 @@ public partial class PokeBattle_Move_07D : PokeBattle_Move { public PokeBattle_Move_07D() : base() { } //public PokeBattle_Move_07D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (opponent.Status == Status.SLEEP && (opponent.effects.Substitute == 0 || ignoresSubstitute(attacker))) @@ -4376,12 +4377,12 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!opponent.isFainted() && opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute && opponent.Status == Status.SLEEP && opponent is IBattlerEffect b) { - b.pbCureStatus(); + b.CureStatus(); } } @@ -4394,7 +4395,7 @@ public partial class PokeBattle_Move_07E : PokeBattle_Move { public PokeBattle_Move_07E() : base() { } //public PokeBattle_Move_07E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (attacker.Status == Status.POISON || attacker.Status == Status.BURN || @@ -4413,7 +4414,7 @@ public partial class PokeBattle_Move_07F : PokeBattle_Move { public PokeBattle_Move_07F() : base() { } //public PokeBattle_Move_07F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (opponent.Status > 0 && (opponent.effects.Substitute == 0 || ignoresSubstitute(attacker))) @@ -4431,7 +4432,7 @@ public partial class PokeBattle_Move_080 : PokeBattle_Move { public PokeBattle_Move_080() : base() { } //public PokeBattle_Move_080(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (opponent.HP <= opponent.TotalHP / 2) { @@ -4449,7 +4450,7 @@ public partial class PokeBattle_Move_081 : PokeBattle_Move { public PokeBattle_Move_081() : base() { } //public PokeBattle_Move_081(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (attacker.lastHPLost > 0 && attacker.lastAttacker.Contains((int)opponent.Index)) { @@ -4466,7 +4467,7 @@ public partial class PokeBattle_Move_082 : PokeBattle_Move { public PokeBattle_Move_082() : base() { } //public PokeBattle_Move_082(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (opponent.tookDamage) { @@ -4484,11 +4485,11 @@ public partial class PokeBattle_Move_083 : PokeBattle_Move { public PokeBattle_Move_083() : base() { } //public PokeBattle_Move_083(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { int ret = basedmg; - for (int i = 0; i <= attacker.pbOwnSide.Round; i++) + for (int i = 0; i <= attacker.OwnSide.Round; i++) { ret *= 2; @@ -4497,21 +4498,21 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return ret; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - attacker.pbOwnSide.Round += 1; - if (attacker.pbPartner.IsNotNullOrNone() && !attacker.pbPartner.hasMovedThisRound()) + attacker.OwnSide.Round += 1; + if (attacker.Partner.IsNotNullOrNone() && !attacker.Partner.hasMovedThisRound()) { - if ((int)this.battle.choices[attacker.pbPartner.Index].Action == 1) // Will use a move + if ((int)this.battle.choices[attacker.Partner.Index].Action == 1) // Will use a move { - IBattleMove partnermove = this.battle.choices[attacker.pbPartner.Index].Move; + IBattleMove partnermove = this.battle.choices[attacker.Partner.Index].Move; if (partnermove.Effect == this.Effect) { - attacker.pbPartner.effects.MoveNext = true; - attacker.pbPartner.effects.Quash = false; + attacker.Partner.effects.MoveNext = true; + attacker.Partner.effects.Quash = false; } } } @@ -4527,7 +4528,7 @@ public partial class PokeBattle_Move_084 : PokeBattle_Move { public PokeBattle_Move_084() : base() { } //public PokeBattle_Move_084(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if ((int)this.battle.choices[opponent.Index].Action != 1 || // Didn't choose a move opponent.hasMovedThisRound()) // Used a move already @@ -4545,10 +4546,10 @@ public partial class PokeBattle_Move_085 : PokeBattle_Move { public PokeBattle_Move_085() : base() { } //public PokeBattle_Move_085(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { - if (attacker.pbOwnSide.LastRoundFainted >= 0 && - attacker.pbOwnSide.LastRoundFainted == this.battle.turncount - 1) + if (attacker.OwnSide.LastRoundFainted >= 0 && + attacker.OwnSide.LastRoundFainted == this.battle.turncount - 1) { return basedmg * 2; } @@ -4563,7 +4564,7 @@ public partial class PokeBattle_Move_086 : PokeBattle_Move { public PokeBattle_Move_086() : base() { } //public PokeBattle_Move_086(Battle battle, Attack.Move move) : base(battle, move) { } - public int pbBaseDamageMultiplier(int damagemult, IBattler attacker, IBattler opponent) + public int BaseDamageMultiplier(int damagemult, IBattler attacker, IBattler opponent) { if (attacker.Item == 0) { @@ -4580,20 +4581,20 @@ public partial class PokeBattle_Move_087 : PokeBattle_Move { public PokeBattle_Move_087() : base() { } //public PokeBattle_Move_087(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { - if (this.battle.pbWeather != 0) + if (this.battle.Weather != 0) { return basedmg * 2; } return basedmg; } - public override Types pbModifyType(Types type, IBattler attacker, IBattler opponent) + public override Types ModifyType(Types type, IBattler attacker, IBattler opponent) { type = Types.NORMAL; - switch (this.battle.pbWeather) + switch (this.battle.Weather) { case Weather.SUNNYDAY: case Weather.HARSHSUN: @@ -4617,13 +4618,13 @@ public override Types pbModifyType(Types type, IBattler attacker, IBattler oppon /// /// Power is doubled if a foe tries to switch out or use U-turn/Volt Switch/ /// Parting Shot. (Pursuit) - /// (Handled in Battle's pbAttackPhase): Makes this attack happen before switching. + /// (Handled in Battle's AttackPhase): Makes this attack happen before switching. /// public partial class PokeBattle_Move_088 : PokeBattle_Move { public PokeBattle_Move_088() : base() { } //public PokeBattle_Move_088(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (this.battle.switching) { @@ -4632,10 +4633,10 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } - public override bool pbAccuracyCheck(IBattler attacker, IBattler opponent) + public override bool AccuracyCheck(IBattler attacker, IBattler opponent) { if (this.battle.switching) return true; - return base.pbAccuracyCheck(attacker, opponent); + return base.AccuracyCheck(attacker, opponent); } } @@ -4646,7 +4647,7 @@ public partial class PokeBattle_Move_089 : PokeBattle_Move { public PokeBattle_Move_089() : base() { } //public PokeBattle_Move_089(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { return (int)Math.Max(Math.Floor(attacker.Happiness * 2 / 5f), 1); } @@ -4659,7 +4660,7 @@ public partial class PokeBattle_Move_08A : PokeBattle_Move { public PokeBattle_Move_08A() : base() { } //public PokeBattle_Move_08A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { return (int)Math.Max(Math.Floor((255 - attacker.Happiness) * 2f / 5f), 1); } @@ -4672,7 +4673,7 @@ public partial class PokeBattle_Move_08B : PokeBattle_Move { public PokeBattle_Move_08B() : base() { } //public PokeBattle_Move_08B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { return (int)Math.Max(Math.Floor(150f * attacker.HP / attacker.TotalHP), 1); } @@ -4685,7 +4686,7 @@ public partial class PokeBattle_Move_08C : PokeBattle_Move { public PokeBattle_Move_08C() : base() { } //public PokeBattle_Move_08C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { return (int)Math.Max(Math.Floor(120f * opponent.HP / opponent.TotalHP), 1); } @@ -4698,7 +4699,7 @@ public partial class PokeBattle_Move_08D : PokeBattle_Move { public PokeBattle_Move_08D() : base() { } //public PokeBattle_Move_08D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { return (int)Math.Max(Math.Min(Math.Floor(25f * opponent.SPE / attacker.SPE), 150), 1); } @@ -4712,7 +4713,7 @@ public partial class PokeBattle_Move_08E : PokeBattle_Move { public PokeBattle_Move_08E() : base() { } //public PokeBattle_Move_08E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { int mult = 1; @@ -4733,7 +4734,7 @@ public partial class PokeBattle_Move_08F : PokeBattle_Move { public PokeBattle_Move_08F() : base() { } //public PokeBattle_Move_08F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { int mult = 3; foreach (var i in new[] { Stats.ATTACK, Stats.DEFENSE, Stats.SPEED, @@ -4752,22 +4753,22 @@ public partial class PokeBattle_Move_090 : PokeBattle_Move { public PokeBattle_Move_090() : base() { } //public PokeBattle_Move_090(Battle battle, Attack.Move move) : base(battle, move) { } - public override Types pbModifyType(Types type, IBattler attacker, IBattler opponent) + public override Types ModifyType(Types type, IBattler attacker, IBattler opponent) { - KeyValuePair hp = pbHiddenPower(attacker.IV); + KeyValuePair hp = HiddenPower(attacker.IV); type = (Types)hp.Key; return type; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (Core.USENEWBATTLEMECHANICS) return 60; - KeyValuePair hp = pbHiddenPower(attacker.IV); + KeyValuePair hp = HiddenPower(attacker.IV); return hp.Value; } - public static KeyValuePair pbHiddenPower(int[] iv) //ToDo: Move to another class? + public static KeyValuePair HiddenPower(int[] iv) //ToDo: Move to another class? { byte powermin = 30; byte powermax = 70; @@ -4775,8 +4776,8 @@ public static KeyValuePair pbHiddenPower(int[] iv) //ToDo: Move to an List types = new List(); for (int i = 0; i < Kernal.TypeData.Count; i++) { - if (//!PBTypes.isPseudoType((Types)i) && - (Types)i != Types.NORMAL && (Types)i != Types.SHADOW) types.Add((Types)i); + if (//!Types.isPseudoType((Types)i) && + (Types)i != Types.NORMAL && (Types)i != Types.SHADOW) types.Add((Types)i); } //Types[] types = Kernal.TypeData.Keys.ToArray(); type |= (iv[(int)Stats.HP] & 1); @@ -4805,7 +4806,7 @@ public partial class PokeBattle_Move_091 : PokeBattle_Move { public PokeBattle_Move_091() : base() { } //public PokeBattle_Move_091(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { basedmg = basedmg << (attacker.effects.FuryCutter - 1); // can be 1 to 4 @@ -4821,27 +4822,27 @@ public partial class PokeBattle_Move_092 : PokeBattle_Move { public PokeBattle_Move_092() : base() { } //public PokeBattle_Move_092(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { - basedmg *= attacker.pbOwnSide.EchoedVoiceCounter; // can be 1 to 5 + basedmg *= attacker.OwnSide.EchoedVoiceCounter; // can be 1 to 5 return basedmg; } } /// /// User rages until the start of a round in which they don't use this move. (Rage) - /// (Handled in Pokemon's pbProcessMoveAgainstTarget): Ups rager's Attack by 1 + /// (Handled in Pokemon's ProcessMoveAgainstTarget): Ups rager's Attack by 1 /// stage each time it loses HP due to a move. /// public partial class PokeBattle_Move_093 : PokeBattle_Move { public PokeBattle_Move_093() : base() { } //public PokeBattle_Move_093(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = (int)base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = (int)base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (ret > 0) attacker.effects.Rage = true; return ret; @@ -4856,23 +4857,23 @@ public partial class PokeBattle_Move_094 : PokeBattle_Move public bool forcedamage { get; set; } public PokeBattle_Move_094() : base() { } //public PokeBattle_Move_094(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbOnStartUse(IBattler attacker) + public override bool OnStartUse(IBattler attacker) { // Just to ensure that Parental Bond's second hit damages if the first hit does this.forcedamage = false; return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { this.forcedamage = true; return this.calcbasedmg; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { this.calcbasedmg = 1; - byte r = (byte)this.battle.pbRandom((this.forcedamage) ? 8 : 10); + byte r = (byte)this.battle.Random((this.forcedamage) ? 8 : 10); if (r < 4) this.calcbasedmg = 40; else if (r < 7) @@ -4881,35 +4882,35 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = this.calcbasedmg = 120; else { - if (pbTypeModifier(pbType(this.type, attacker, opponent), attacker, opponent) == 0) + if (TypeModifier(GetType(this.type, attacker, opponent), attacker, opponent) == 0) { - battle.pbDisplay(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); + battle.Display(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); return -1; } if (opponent.HP == opponent.TotalHP) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - int damage = pbCalcDamage(attacker, opponent); // Consumes Gems even if it will heal - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Healing animation; - opponent.pbRecoverHP((int)Math.Floor(opponent.TotalHP / 4f), true); - battle.pbDisplay(Game._INTL("{1} had its HP restored.", opponent.ToString())); + int damage = CalcDamage(attacker, opponent); // Consumes Gems even if it will heal + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Healing animation; + opponent.RecoverHP((int)Math.Floor(opponent.TotalHP / 4f), true); + battle.Display(Game._INTL("{1} had its HP restored.", opponent.ToString())); return 0; } - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } } /// /// Power is chosen at random. Power is doubled if the target is using Dig. (Magnitude) - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_095 : PokeBattle_Move { public PokeBattle_Move_095() : base() { } //public PokeBattle_Move_095(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbOnStartUse(IBattler attacker) + public override bool OnStartUse(IBattler attacker) { byte[] basedmg = new byte[] { 10, 30, 50, 70, 90, 110, 150 }; @@ -4922,14 +4923,14 @@ public override bool pbOnStartUse(IBattler attacker) 9,9, 10 }; - byte magni = magnitudes[this.battle.pbRandom(magnitudes.Length)]; + byte magni = magnitudes[this.battle.Random(magnitudes.Length)]; this.calcbasedmg = basedmg[magni - 4]; - battle.pbDisplay(Game._INTL("Magnitude {1}!", ((int)magni).ToString())); + battle.Display(Game._INTL("Magnitude {1}!", ((int)magni).ToString())); return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { int ret = this.calcbasedmg; @@ -4953,40 +4954,40 @@ public partial class PokeBattle_Move_096 : PokeBattle_Move public Items berry { get; set; } public PokeBattle_Move_096() : base() { } //public PokeBattle_Move_096(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbOnStartUse(IBattler attacker) + public override bool OnStartUse(IBattler attacker) { - if (Game.GameData is IItemCheck i && !i.pbIsBerry(attacker.Item) || + if (Game.GameData is IItemCheck i && !i.IsBerry(attacker.Item) || attacker.effects.Embargo > 0 || this.battle.field.MagicRoom > 0 || attacker.hasWorkingAbility(Abilities.KLUTZ) || - attacker.pbOpposing1.hasWorkingAbility(Abilities.UNNERVE) || - attacker.pbOpposing2.hasWorkingAbility(Abilities.UNNERVE)) + attacker.Opposing1.hasWorkingAbility(Abilities.UNNERVE) || + attacker.Opposing2.hasWorkingAbility(Abilities.UNNERVE)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return false; } this.berry = attacker.Item; return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { Dictionary damagearray = new Dictionary{ - //60 => [ + //60 => [ { Items.CHERI_BERRY, 60 }, { Items.CHESTO_BERRY, 60 }, { Items.PECHA_BERRY, 60 }, { Items.RAWST_BERRY, 60 }, { Items.ASPEAR_BERRY, 60 }, { Items.LEPPA_BERRY, 60 }, { Items.ORAN_BERRY, 60 }, { Items.PERSIM_BERRY, 60 }, { Items.LUM_BERRY, 60 }, { Items.SITRUS_BERRY, 60 }, { Items.FIGY_BERRY, 60 }, { Items.WIKI_BERRY, 60 }, { Items.MAGO_BERRY, 60 }, { Items.AGUAV_BERRY, 60 }, { Items.IAPAPA_BERRY, 60 }, { Items.RAZZ_BERRY, 60 }, { Items.OCCA_BERRY, 60 }, { Items.PASSHO_BERRY, 60 }, { Items.WACAN_BERRY, 60 }, { Items.RINDO_BERRY, 60 }, { Items.YACHE_BERRY, 60 }, { Items.CHOPLE_BERRY, 60 }, { Items.KEBIA_BERRY, 60 }, { Items.SHUCA_BERRY, 60 }, { Items.COBA_BERRY, 60 }, { Items.PAYAPA_BERRY, 60 }, { Items.TANGA_BERRY, 60 }, { Items.CHARTI_BERRY, 60 }, { Items.KASIB_BERRY, 60 }, { Items.HABAN_BERRY, 60 }, - { Items.COLBUR_BERRY, 60 }, { Items.BABIRI_BERRY, 60 }, { Items.CHILAN_BERRY, 60 }, { Items.ROSELI_BERRY, 60 }, - //70 => [ + { Items.COLBUR_BERRY, 60 }, { Items.BABIRI_BERRY, 60 }, { Items.CHILAN_BERRY, 60 }, { Items.ROSELI_BERRY, 60 }, + //70 => [ { Items.BLUK_BERRY, 70 }, { Items.NANAB_BERRY, 70 }, { Items.WEPEAR_BERRY, 70 }, { Items.PINAP_BERRY, 70 }, { Items.POMEG_BERRY, 70 }, { Items.KELPSY_BERRY, 70 }, { Items.QUALOT_BERRY, 70 }, { Items.HONDEW_BERRY, 70 }, { Items.GREPA_BERRY, 70 }, { Items.TAMATO_BERRY, 70 }, { Items.CORNN_BERRY, 70 }, { Items.MAGOST_BERRY, 70 }, { Items.RABUTA_BERRY, 70 }, { Items.NOMEL_BERRY, 70 }, { Items.SPELON_BERRY, 70 }, - { Items.PAMTRE_BERRY, 70 }, - //80 => [ + { Items.PAMTRE_BERRY, 70 }, + //80 => [ { Items.WATMEL_BERRY, 80 }, { Items.DURIN_BERRY, 80 }, { Items.BELUE_BERRY, 80 }, { Items.LIECHI_BERRY, 80 }, { Items.GANLON_BERRY, 80 }, { Items.SALAC_BERRY, 80 }, { Items.PETAYA_BERRY, 80 }, { Items.APICOT_BERRY, 80 }, { Items.LANSAT_BERRY, 80 }, { Items.STARF_BERRY, 80 }, { Items.ENIGMA_BERRY, 80 }, { Items.MICLE_BERRY, 80 }, { Items.CUSTAP_BERRY, 80 }, { Items.JABOCA_BERRY, 80 }, { Items.ROWAP_BERRY, 80 }, @@ -4996,7 +4997,7 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone { //byte data = damagearray[i]; //if (data != null){ - // foreach (var j in data){ + // foreach (var j in data){ if (this.berry == i) { int ret = damagearray[i]; @@ -5010,53 +5011,53 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return 1; } - public override Types pbModifyType(Types type, IBattler attacker, IBattler opponent) + public override Types ModifyType(Types type, IBattler attacker, IBattler opponent) { type = Types.NORMAL; Dictionary typearray = new Dictionary { - //:NORMAL => - { Items.CHILAN_BERRY, Types.NORMAL }, - //:FIRE => - { Items.CHERI_BERRY, Types.FIRE }, { Items.BLUK_BERRY, Types.FIRE }, { Items.WATMEL_BERRY, Types.FIRE }, { Items.OCCA_BERRY, Types.FIRE }, - //:WATER => - { Items.CHESTO_BERRY, Types.WATER }, { Items.NANAB_BERRY, Types.WATER }, { Items.DURIN_BERRY, Types.WATER }, { Items.PASSHO_BERRY, Types.WATER }, - //:ELECTRIC => - { Items.PECHA_BERRY, Types.ELECTRIC }, { Items.WEPEAR_BERRY, Types.ELECTRIC }, { Items.BELUE_BERRY, Types.ELECTRIC }, { Items.WACAN_BERRY, Types.ELECTRIC }, - //:GRASS => - { Items.RAWST_BERRY, Types.GRASS }, { Items.PINAP_BERRY, Types.GRASS }, { Items.RINDO_BERRY, Types.GRASS }, { Items.LIECHI_BERRY, Types.GRASS }, - //:ICE => - { Items.ASPEAR_BERRY, Types.ICE }, { Items.POMEG_BERRY, Types.ICE }, { Items.YACHE_BERRY, Types.ICE }, { Items.GANLON_BERRY, Types.ICE }, - //:FIGHTING => - { Items.LEPPA_BERRY, Types.FIGHTING }, { Items.KELPSY_BERRY, Types.FIGHTING }, { Items.CHOPLE_BERRY, Types.FIGHTING }, { Items.SALAC_BERRY, Types.FIGHTING }, - //:POISON => - { Items.ORAN_BERRY, Types.POISON }, { Items.QUALOT_BERRY, Types.POISON }, { Items.KEBIA_BERRY, Types.POISON }, { Items.PETAYA_BERRY, Types.POISON }, - //:GROUND => - { Items.PERSIM_BERRY, Types.GROUND }, { Items.HONDEW_BERRY, Types.GROUND }, { Items.SHUCA_BERRY, Types.GROUND }, { Items.APICOT_BERRY, Types.GROUND }, - //:FLYING => - { Items.LUM_BERRY, Types.FLYING }, { Items.GREPA_BERRY, Types.FLYING }, { Items.COBA_BERRY, Types.FLYING }, { Items.LANSAT_BERRY, Types.FLYING }, - //:PSYCHIC=> - { Items.SITRUS_BERRY, Types.PSYCHIC }, { Items.TAMATO_BERRY, Types.PSYCHIC }, { Items.PAYAPA_BERRY, Types.PSYCHIC }, { Items.STARF_BERRY, Types.PSYCHIC }, - //:BUG => - { Items.FIGY_BERRY, Types.BUG }, { Items.CORNN_BERRY, Types.BUG }, { Items.TANGA_BERRY, Types.BUG }, { Items.ENIGMA_BERRY, Types.BUG }, - //:ROCK => - { Items.WIKI_BERRY, Types.ROCK }, { Items.MAGOST_BERRY, Types.ROCK }, { Items.CHARTI_BERRY, Types.ROCK }, { Items.MICLE_BERRY, Types.ROCK }, - //:GHOST => - { Items.MAGO_BERRY, Types.GHOST }, { Items.RABUTA_BERRY, Types.GHOST }, { Items.KASIB_BERRY, Types.GHOST }, { Items.CUSTAP_BERRY, Types.GHOST }, - //:DRAGON => - { Items.AGUAV_BERRY, Types.DRAGON }, { Items.NOMEL_BERRY, Types.DRAGON }, { Items.HABAN_BERRY, Types.DRAGON }, { Items.JABOCA_BERRY, Types.DRAGON }, - //:DARK => - { Items.IAPAPA_BERRY, Types.DARK }, { Items.SPELON_BERRY, Types.DARK }, { Items.COLBUR_BERRY, Types.DARK }, { Items.ROWAP_BERRY, Types.DARK }, { Items.MARANGA_BERRY, Types.DARK }, - //:STEEL => - { Items.RAZZ_BERRY, Types.STEEL }, { Items.PAMTRE_BERRY, Types.STEEL }, { Items.BABIRI_BERRY, Types.STEEL }, - //:FAIRY => + //:NORMAL => + { Items.CHILAN_BERRY, Types.NORMAL }, + //:FIRE => + { Items.CHERI_BERRY, Types.FIRE }, { Items.BLUK_BERRY, Types.FIRE }, { Items.WATMEL_BERRY, Types.FIRE }, { Items.OCCA_BERRY, Types.FIRE }, + //:WATER => + { Items.CHESTO_BERRY, Types.WATER }, { Items.NANAB_BERRY, Types.WATER }, { Items.DURIN_BERRY, Types.WATER }, { Items.PASSHO_BERRY, Types.WATER }, + //:ELECTRIC => + { Items.PECHA_BERRY, Types.ELECTRIC }, { Items.WEPEAR_BERRY, Types.ELECTRIC }, { Items.BELUE_BERRY, Types.ELECTRIC }, { Items.WACAN_BERRY, Types.ELECTRIC }, + //:GRASS => + { Items.RAWST_BERRY, Types.GRASS }, { Items.PINAP_BERRY, Types.GRASS }, { Items.RINDO_BERRY, Types.GRASS }, { Items.LIECHI_BERRY, Types.GRASS }, + //:ICE => + { Items.ASPEAR_BERRY, Types.ICE }, { Items.POMEG_BERRY, Types.ICE }, { Items.YACHE_BERRY, Types.ICE }, { Items.GANLON_BERRY, Types.ICE }, + //:FIGHTING => + { Items.LEPPA_BERRY, Types.FIGHTING }, { Items.KELPSY_BERRY, Types.FIGHTING }, { Items.CHOPLE_BERRY, Types.FIGHTING }, { Items.SALAC_BERRY, Types.FIGHTING }, + //:POISON => + { Items.ORAN_BERRY, Types.POISON }, { Items.QUALOT_BERRY, Types.POISON }, { Items.KEBIA_BERRY, Types.POISON }, { Items.PETAYA_BERRY, Types.POISON }, + //:GROUND => + { Items.PERSIM_BERRY, Types.GROUND }, { Items.HONDEW_BERRY, Types.GROUND }, { Items.SHUCA_BERRY, Types.GROUND }, { Items.APICOT_BERRY, Types.GROUND }, + //:FLYING => + { Items.LUM_BERRY, Types.FLYING }, { Items.GREPA_BERRY, Types.FLYING }, { Items.COBA_BERRY, Types.FLYING }, { Items.LANSAT_BERRY, Types.FLYING }, + //:PSYCHIC=> + { Items.SITRUS_BERRY, Types.PSYCHIC }, { Items.TAMATO_BERRY, Types.PSYCHIC }, { Items.PAYAPA_BERRY, Types.PSYCHIC }, { Items.STARF_BERRY, Types.PSYCHIC }, + //:BUG => + { Items.FIGY_BERRY, Types.BUG }, { Items.CORNN_BERRY, Types.BUG }, { Items.TANGA_BERRY, Types.BUG }, { Items.ENIGMA_BERRY, Types.BUG }, + //:ROCK => + { Items.WIKI_BERRY, Types.ROCK }, { Items.MAGOST_BERRY, Types.ROCK }, { Items.CHARTI_BERRY, Types.ROCK }, { Items.MICLE_BERRY, Types.ROCK }, + //:GHOST => + { Items.MAGO_BERRY, Types.GHOST }, { Items.RABUTA_BERRY, Types.GHOST }, { Items.KASIB_BERRY, Types.GHOST }, { Items.CUSTAP_BERRY, Types.GHOST }, + //:DRAGON => + { Items.AGUAV_BERRY, Types.DRAGON }, { Items.NOMEL_BERRY, Types.DRAGON }, { Items.HABAN_BERRY, Types.DRAGON }, { Items.JABOCA_BERRY, Types.DRAGON }, + //:DARK => + { Items.IAPAPA_BERRY, Types.DARK }, { Items.SPELON_BERRY, Types.DARK }, { Items.COLBUR_BERRY, Types.DARK }, { Items.ROWAP_BERRY, Types.DARK }, { Items.MARANGA_BERRY, Types.DARK }, + //:STEEL => + { Items.RAZZ_BERRY, Types.STEEL }, { Items.PAMTRE_BERRY, Types.STEEL }, { Items.BABIRI_BERRY, Types.STEEL }, + //:FAIRY => { Items.ROSELI_BERRY, Types.FAIRY }, { Items.KEE_BERRY, Types.FAIRY } }; foreach (Items i in typearray.Keys) { //data = typearray[i];; //if (data != null){ - // foreach (var j in data){ + // foreach (var j in data){ if (this.berry == i) { type = typearray[i];//i; @@ -5067,11 +5068,11 @@ public override Types pbModifyType(Types type, IBattler attacker, IBattler oppon return type; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (turneffects.TotalDamage > 0) { - attacker.pbConsumeItem(); + attacker.ConsumeItem(); } } } @@ -5083,7 +5084,7 @@ public partial class PokeBattle_Move_097 : PokeBattle_Move { public PokeBattle_Move_097() : base() { } //public PokeBattle_Move_097(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { int[] dmgs = new int[] { 200, 80, 60, 50, 40 }; @@ -5100,7 +5101,7 @@ public partial class PokeBattle_Move_098 : PokeBattle_Move { public PokeBattle_Move_098() : base() { } //public PokeBattle_Move_098(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { byte n = (byte)Math.Floor(48f * attacker.HP / attacker.TotalHP); @@ -5121,7 +5122,7 @@ public partial class PokeBattle_Move_099 : PokeBattle_Move { public PokeBattle_Move_099() : base() { } //public PokeBattle_Move_099(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { int n = (int)Math.Floor(Math.Max(attacker.SPE, 1f) / Math.Max(opponent.SPE, 1f)); @@ -5140,7 +5141,7 @@ public partial class PokeBattle_Move_09A : PokeBattle_Move { public PokeBattle_Move_09A() : base() { } //public PokeBattle_Move_09A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { float weight = opponent.Weight(attacker); @@ -5161,7 +5162,7 @@ public partial class PokeBattle_Move_09B : PokeBattle_Move { public PokeBattle_Move_09B() : base() { } //public PokeBattle_Move_09B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { int n = (int)Math.Floor((float)attacker.Weight(attacker) / (float)opponent.Weight(attacker)); @@ -5181,20 +5182,20 @@ public partial class PokeBattle_Move_09C : PokeBattle_Move { public PokeBattle_Move_09C() : base() { } //public PokeBattle_Move_09C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (!this.battle.doublebattle || opponent.isFainted() || (int)this.battle.choices[opponent.Index].Action != 1 || // Didn't choose a move; opponent.hasMovedThisRound() || opponent.effects.HelpingHand) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.HelpingHand = true; - battle.pbDisplay(Game._INTL("{1} is ready to help {2}!", attacker.ToString(), opponent.ToString(true))); + battle.Display(Game._INTL("{1} is ready to help {2}!", attacker.ToString(), opponent.ToString(true))); return 0; } } @@ -5206,19 +5207,19 @@ public partial class PokeBattle_Move_09D : PokeBattle_Move { public PokeBattle_Move_09D() : base() { } //public PokeBattle_Move_09D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (Core.USENEWBATTLEMECHANICS) { if (this.battle.field.MudSportField > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); this.battle.field.MudSportField = 5; - battle.pbDisplay(Game._INTL("Electricity's power was weakened!")); + battle.Display(Game._INTL("Electricity's power was weakened!")); return 0; } else @@ -5227,15 +5228,15 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { if (attacker.battle.battlers[i].effects.MudSport) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); attacker.effects.MudSport = true; - battle.pbDisplay(Game._INTL("Electricity's power was weakened!")); + battle.Display(Game._INTL("Electricity's power was weakened!")); return 0; } return -1; @@ -5249,19 +5250,19 @@ public partial class PokeBattle_Move_09E : PokeBattle_Move { public PokeBattle_Move_09E() : base() { } //public PokeBattle_Move_09E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (Core.USENEWBATTLEMECHANICS) { if (this.battle.field.WaterSportField > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); this.battle.field.WaterSportField = 5; - battle.pbDisplay(Game._INTL("Fire's power was weakened!")); + battle.Display(Game._INTL("Fire's power was weakened!")); return 0; } else @@ -5270,15 +5271,15 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { if (attacker.battle.battlers[i].effects.WaterSport) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); attacker.effects.WaterSport = true; - battle.pbDisplay(Game._INTL("Fire's power was weakened!")); + battle.Display(Game._INTL("Fire's power was weakened!")); return 0; } } @@ -5291,7 +5292,7 @@ public partial class PokeBattle_Move_09F : PokeBattle_Move { public PokeBattle_Move_09F() : base() { } //public PokeBattle_Move_09F(Battle battle, Attack.Move move) : base(battle, move) { } - public override Types pbModifyType(Types type, IBattler attacker, IBattler opponent) + public override Types ModifyType(Types type, IBattler attacker, IBattler opponent) { if (this.id == Moves.JUDGMENT) { @@ -5323,18 +5324,18 @@ public override Types pbModifyType(Types type, IBattler attacker, IBattler oppon return (Types.NORMAL); } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (id == Moves.TECHNO_BLAST) { byte anim = 0; - if (pbType(this.type, attacker, opponent) == Types.ELECTRIC) anim = 1; - if (pbType(this.type, attacker, opponent) == Types.FIRE) anim = 2; - if (pbType(this.type, attacker, opponent) == Types.ICE) anim = 3; - if (pbType(this.type, attacker, opponent) == Types.WATER) anim = 4; - base.pbShowAnimation(id, attacker, opponent, anim, alltargets, showanimation); // Type-specific anim + if (GetType(this.type, attacker, opponent) == Types.ELECTRIC) anim = 1; + if (GetType(this.type, attacker, opponent) == Types.FIRE) anim = 2; + if (GetType(this.type, attacker, opponent) == Types.ICE) anim = 3; + if (GetType(this.type, attacker, opponent) == Types.WATER) anim = 4; + base.ShowAnimation(id, attacker, opponent, anim, alltargets, showanimation); // Type-specific anim } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -5345,7 +5346,7 @@ public partial class PokeBattle_Move_0A0 : PokeBattle_Move { public PokeBattle_Move_0A0() : base() { } //public PokeBattle_Move_0A0(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbCritialOverride(IBattler attacker, IBattler opponent) + public override bool CritialOverride(IBattler attacker, IBattler opponent) { return true; } @@ -5358,23 +5359,23 @@ public partial class PokeBattle_Move_0A1 : PokeBattle_Move { public PokeBattle_Move_0A1() : base() { } //public PokeBattle_Move_0A1(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.LuckyChant > 0) + if (attacker.OwnSide.LuckyChant > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - attacker.pbOwnSide.LuckyChant = 5; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OwnSide.LuckyChant = 5; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("The Lucky Chant shielded your team from critical hits!")); + battle.Display(Game._INTL("The Lucky Chant shielded your team from critical hits!")); } else { - battle.pbDisplay(Game._INTL("The Lucky Chant shielded the opposing team from critical hits!")); + battle.Display(Game._INTL("The Lucky Chant shielded the opposing team from critical hits!")); } return 0; } @@ -5387,24 +5388,24 @@ public partial class PokeBattle_Move_0A2 : PokeBattle_Move { public PokeBattle_Move_0A2() : base() { } //public PokeBattle_Move_0A2(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.Reflect > 0) + if (attacker.OwnSide.Reflect > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - attacker.pbOwnSide.Reflect = 5; - if (attacker.hasWorkingItem(Items.LIGHT_CLAY)) attacker.pbOwnSide.Reflect = 8; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OwnSide.Reflect = 5; + if (attacker.hasWorkingItem(Items.LIGHT_CLAY)) attacker.OwnSide.Reflect = 8; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Reflect raised your team's Defense!")); + battle.Display(Game._INTL("Reflect raised your team's Defense!")); } else { - battle.pbDisplay(Game._INTL("Reflect raised the opposing team's Defense!")); + battle.Display(Game._INTL("Reflect raised the opposing team's Defense!")); } return 0; } @@ -5417,24 +5418,24 @@ public partial class PokeBattle_Move_0A3 : PokeBattle_Move { public PokeBattle_Move_0A3() : base() { } //public PokeBattle_Move_0A3(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.LightScreen > 0) + if (attacker.OwnSide.LightScreen > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - attacker.pbOwnSide.LightScreen = 5; - if (attacker.hasWorkingItem(Items.LIGHT_CLAY)) attacker.pbOwnSide.Reflect = 8; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OwnSide.LightScreen = 5; + if (attacker.hasWorkingItem(Items.LIGHT_CLAY)) attacker.OwnSide.Reflect = 8; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Light Screen raised your team's Special Defense!")); + battle.Display(Game._INTL("Light Screen raised your team's Special Defense!")); } else { - battle.pbDisplay(Game._INTL("Light Screen raised the opposing team's Special Defense!")); + battle.Display(Game._INTL("Light Screen raised the opposing team's Special Defense!")); } return 0; } @@ -5447,30 +5448,30 @@ public partial class PokeBattle_Move_0A4 : PokeBattle_Move { public PokeBattle_Move_0A4() : base() { } //public PokeBattle_Move_0A4(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; if (this.battle.field.ElectricTerrain > 0) { - if (opponent is IBattlerEffect b && b.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanParalyze(attacker, false, this)) { - b.pbParalyze(attacker); + b.Paralyze(attacker); } return; } else if (this.battle.field.GrassyTerrain > 0) { - if (opponent is IBattlerClause b && b.pbCanSleep(attacker, false, this)) + if (opponent is IBattlerClause b && b.CanSleep(attacker, false, this)) { - if (opponent is IBattlerEffect o) o.pbSleep(); + if (opponent is IBattlerEffect o) o.Sleep(); } return; } else if (this.battle.field.MistyTerrain > 0) { - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPATK, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.SPATK, attacker, false, this)) { - b.pbReduceStat(Stats.SPATK, 1, attacker, false, this); + b.ReduceStat(Stats.SPATK, 1, attacker, false, this); } return; } @@ -5480,43 +5481,43 @@ public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) case Environments.Grass: case Environments.TallGrass: case Environments.Forest: - if (obe is IBattlerClause b && (b?.pbCanSleep(attacker, false, this)??false)) + if (obe is IBattlerClause b && (b?.CanSleep(attacker, false, this)??false)) { - obe.pbSleep(); + obe.Sleep(); } break; case Environments.MovingWater: case Environments.Underwater: - if (obe?.pbCanReduceStatStage(Stats.ATTACK, attacker, false, this)??false) + if (obe?.CanReduceStatStage(Stats.ATTACK, attacker, false, this)??false) { - obe.pbReduceStat(Stats.ATTACK, 1, attacker, false, this); + obe.ReduceStat(Stats.ATTACK, 1, attacker, false, this); } break; case Environments.StillWater: case Environments.Sky: - if (obe?.pbCanReduceStatStage(Stats.SPEED, attacker, false, this)??false) + if (obe?.CanReduceStatStage(Stats.SPEED, attacker, false, this)??false) { - obe.pbReduceStat(Stats.SPEED, 1, attacker, false, this); + obe.ReduceStat(Stats.SPEED, 1, attacker, false, this); } break; case Environments.Sand: - if (obe?.pbCanReduceStatStage(Stats.ACCURACY, attacker, false, this)??false) + if (obe?.CanReduceStatStage(Stats.ACCURACY, attacker, false, this)??false) { - obe.pbReduceStat(Stats.ACCURACY, 1, attacker, false, this); + obe.ReduceStat(Stats.ACCURACY, 1, attacker, false, this); } break; case Environments.Rock: if (Core.USENEWBATTLEMECHANICS) { - if (obe?.pbCanReduceStatStage(Stats.ACCURACY, attacker, false, this)??false) + if (obe?.CanReduceStatStage(Stats.ACCURACY, attacker, false, this)??false) { - obe.pbReduceStat(Stats.ACCURACY, 1, attacker, false, this); + obe.ReduceStat(Stats.ACCURACY, 1, attacker, false, this); } } else if (opponent.effects.Substitute == 0 || ignoresSubstitute(attacker)) { - obe.pbFlinch(attacker); + obe.Flinch(attacker); } break; case Environments.Cave: @@ -5524,24 +5525,24 @@ public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) case Environments.Space: if (opponent.effects.Substitute == 0 || ignoresSubstitute(attacker)) { - obe.pbFlinch(attacker); + obe.Flinch(attacker); } break; case Environments.Snow: - if (obe is IBattlerClause obc && (obc?.pbCanFreeze(attacker, false, this)??false)) + if (obe is IBattlerClause obc && (obc?.CanFreeze(attacker, false, this)??false)) { - obe.pbFreeze(); + obe.Freeze(); } break; case Environments.Volcano: - if (obe?.pbCanBurn(attacker, false, this)??false) + if (obe?.CanBurn(attacker, false, this)??false) { - obe.pbBurn(attacker); + obe.Burn(attacker); } else - if (obe?.pbCanParalyze(attacker, false, this)??false) + if (obe?.CanParalyze(attacker, false, this)??false) { - obe.pbParalyze(attacker); + obe.Paralyze(attacker); } break; default: @@ -5549,7 +5550,7 @@ public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) } } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { id = Moves.BODY_SLAM; if (this.battle.field.ElectricTerrain > 0) @@ -5581,7 +5582,7 @@ public override void pbShowAnimation(Moves id, IBattler attacker, IBattler oppon default: break; } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); // Environment-specific anim; + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); // Environment-specific anim; } } @@ -5592,7 +5593,7 @@ public partial class PokeBattle_Move_0A5 : PokeBattle_Move { public PokeBattle_Move_0A5() : base() { } //public PokeBattle_Move_0A5(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbAccuracyCheck(IBattler attacker, IBattler opponent) + public override bool AccuracyCheck(IBattler attacker, IBattler opponent) { return true; } @@ -5605,18 +5606,18 @@ public partial class PokeBattle_Move_0A6 : PokeBattle_Move { public PokeBattle_Move_0A6() : base() { } //public PokeBattle_Move_0A6(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.LockOn = 2; opponent.effects.LockOnPos = attacker.Index; - battle.pbDisplay(Game._INTL("{1} took aim at {2}!", attacker.ToString(), opponent.ToString(true))); + battle.Display(Game._INTL("{1} took aim at {2}!", attacker.ToString(), opponent.ToString(true))); return 0; } } @@ -5629,17 +5630,17 @@ public partial class PokeBattle_Move_0A7 : PokeBattle_Move { public PokeBattle_Move_0A7() : base() { } //public PokeBattle_Move_0A7(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent.pbOwnSide.CraftyShield) + if (opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Foresight = true; - battle.pbDisplay(Game._INTL("{1} was identified!", opponent.ToString())); + battle.Display(Game._INTL("{1} was identified!", opponent.ToString())); return 0; } } @@ -5652,17 +5653,17 @@ public partial class PokeBattle_Move_0A8 : PokeBattle_Move { public PokeBattle_Move_0A8() : base() { } //public PokeBattle_Move_0A8(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent.pbOwnSide.CraftyShield) + if (opponent.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.MiracleEye = true; - battle.pbDisplay(Game._INTL("{1} was identified!", opponent.ToString())); + battle.Display(Game._INTL("{1} was identified!", opponent.ToString())); return 0; } } @@ -5675,7 +5676,7 @@ public partial class PokeBattle_Move_0A9 : PokeBattle_Move { public PokeBattle_Move_0A9() : base() { } //public PokeBattle_Move_0A9(Battle battle, Attack.Move move) : base(battle, move) { } - // Handled in superclass public bool pbAccuracyCheck and public object pbCalcDamage, do not edit! + // Handled in superclass public bool AccuracyCheck and public object CalcDamage, do not edit! } /// @@ -5685,7 +5686,7 @@ public partial class PokeBattle_Move_0AA : PokeBattle_Move { public PokeBattle_Move_0AA() : base() { } //public PokeBattle_Move_0AA(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List ratesharers = new List { Attack.Data.Effects.x070, // Detect, Protect @@ -5710,18 +5711,18 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } } if (!unmoved || - this.battle.pbRandom(65536) >= Math.Floor(65536f / attacker.effects.ProtectRate)) + this.battle.Random(65536) >= Math.Floor(65536f / attacker.effects.ProtectRate)) { attacker.effects.ProtectRate = 1; - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.Protect = true; attacker.effects.ProtectRate *= 2; - battle.pbDisplay(Game._INTL("{1} protected itself!", attacker.ToString())); + battle.Display(Game._INTL("{1} protected itself!", attacker.ToString())); return 0; } } @@ -5734,11 +5735,11 @@ public partial class PokeBattle_Move_0AB : PokeBattle_Move { public PokeBattle_Move_0AB() : base() { } //public PokeBattle_Move_0AB(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.QuickGuard) + if (attacker.OwnSide.QuickGuard) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } List ratesharers = new List { @@ -5765,23 +5766,23 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (!unmoved || (!Core.USENEWBATTLEMECHANICS && - this.battle.pbRandom(65536) >= Math.Floor(65536f / attacker.effects.ProtectRate))) + this.battle.Random(65536) >= Math.Floor(65536f / attacker.effects.ProtectRate))) { attacker.effects.ProtectRate = 1; - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbOwnSide.QuickGuard = true; + attacker.OwnSide.QuickGuard = true; attacker.effects.ProtectRate *= 2; - if (!this.battle.pbIsOpposing(attacker.Index)) + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Quick Guard protected your team!")); + battle.Display(Game._INTL("Quick Guard protected your team!")); } else { - battle.pbDisplay(Game._INTL("Quick Guard protected the opposing team!")); + battle.Display(Game._INTL("Quick Guard protected the opposing team!")); } return 0; } @@ -5795,11 +5796,11 @@ public partial class PokeBattle_Move_0AC : PokeBattle_Move { public PokeBattle_Move_0AC() : base() { } //public PokeBattle_Move_0AC(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.WideGuard) + if (attacker.OwnSide.WideGuard) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } List ratesharers = new List { @@ -5826,23 +5827,23 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (!unmoved || (!Core.USENEWBATTLEMECHANICS && - this.battle.pbRandom(65536) >= (int)Math.Floor(65536f / attacker.effects.ProtectRate))) + this.battle.Random(65536) >= (int)Math.Floor(65536f / attacker.effects.ProtectRate))) { attacker.effects.ProtectRate = 1; - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbOwnSide.WideGuard = true; + attacker.OwnSide.WideGuard = true; attacker.effects.ProtectRate *= 2; - if (!this.battle.pbIsOpposing(attacker.Index)) + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Wide Guard protected your team!")); + battle.Display(Game._INTL("Wide Guard protected your team!")); } else { - battle.pbDisplay(Game._INTL("Wide Guard protected the opposing team!")); + battle.Display(Game._INTL("Wide Guard protected the opposing team!")); } return 0; } @@ -5856,13 +5857,13 @@ public partial class PokeBattle_Move_0AD : PokeBattle_Move { public PokeBattle_Move_0AD() : base() { } //public PokeBattle_Move_0AD(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = (int)base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = (int)base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (ret > 0) { opponent.effects.ProtectNegation = true; - opponent.pbOwnSide.CraftyShield = false; + opponent.OwnSide.CraftyShield = false; } return ret; } @@ -5875,16 +5876,16 @@ public partial class PokeBattle_Move_0AE : PokeBattle_Move { public PokeBattle_Move_0AE() : base() { } //public PokeBattle_Move_0AE(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.lastMoveUsed <= 0 || //( !Kernal.MoveData[(Moves)attacker.lastMoveUsed].Flags.Mirror //& 0x10)==0 ) // flag e: Copyable by Mirror Move { - battle.pbDisplay(Game._INTL("The mirror move failed!")); + battle.Display(Game._INTL("The mirror move failed!")); return -1; } - attacker.pbUseMoveSimple(opponent.lastMoveUsed, -1, opponent.Index); + attacker.UseMoveSimple(opponent.lastMoveUsed, -1, opponent.Index); return 0; } } @@ -5896,7 +5897,7 @@ public partial class PokeBattle_Move_0AF : PokeBattle_Move { public PokeBattle_Move_0AF() : base() { } //public PokeBattle_Move_0AF(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List blacklist = new List { Attack.Data.Effects.x0FF, // Struggle @@ -5944,10 +5945,10 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (this.battle.lastMoveUsed <= 0 || blacklist.Contains(Kernal.MoveData[(Moves)attacker.lastMoveUsed].Effect)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - attacker.pbUseMoveSimple(this.battle.lastMoveUsed); + attacker.UseMoveSimple(this.battle.lastMoveUsed); return 0; } } @@ -5959,7 +5960,7 @@ public partial class PokeBattle_Move_0B0 : PokeBattle_Move { public PokeBattle_Move_0B0() : base() { } //public PokeBattle_Move_0B0(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List blacklist = new List { Attack.Data.Effects.x0FF, // Struggle @@ -5976,15 +5977,15 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if ((int)this.battle.choices[opponent.Index].Action != 1 || // Didn't choose a move opponent.hasMovedThisRound() || oppmove.id == Moves.NONE || oppmove.id <= 0 || - oppmove.pbIsStatus || + oppmove.IsStatus || blacklist.Contains(oppmove.Effect)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } attacker.effects.MeFirst = true; - attacker.pbUseMoveSimple(oppmove.id); + attacker.UseMoveSimple(oppmove.id); attacker.effects.MeFirst = false; return 0; } @@ -5998,12 +5999,12 @@ public partial class PokeBattle_Move_0B1 : PokeBattle_Move { public PokeBattle_Move_0B1() : base() { } //public PokeBattle_Move_0B1(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.MagicCoat = true; - battle.pbDisplay(Game._INTL("{1} shrouded itself with Magic Coat!", attacker.ToString())); + battle.Display(Game._INTL("{1} shrouded itself with Magic Coat!", attacker.ToString())); return 0; } } @@ -6015,12 +6016,12 @@ public partial class PokeBattle_Move_0B2 : PokeBattle_Move { public PokeBattle_Move_0B2() : base() { } //public PokeBattle_Move_0B2(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.Snatch = true; - battle.pbDisplay(Game._INTL("{1} waits for a target to make a move!", attacker.ToString())); + battle.Display(Game._INTL("{1} waits for a target to make a move!", attacker.ToString())); return 0; } } @@ -6032,7 +6033,7 @@ public partial class PokeBattle_Move_0B3 : PokeBattle_Move { public PokeBattle_Move_0B3() : base() { } //public PokeBattle_Move_0B3(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { Moves move = Moves.TRI_ATTACK; switch (this.battle.environment) @@ -6077,15 +6078,15 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (move == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } string thismovename = Name; string movename = Game._INTL(move.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} turned into {2}!", thismovename, movename)); + battle.Display(Game._INTL("{1} turned into {2}!", thismovename, movename)); int target = (Core.USENEWBATTLEMECHANICS && opponent.IsNotNullOrNone()) ? opponent.Index : -1; - attacker.pbUseMoveSimple(move, -1, target); + attacker.UseMoveSimple(move, -1, target); return 0; } } @@ -6097,16 +6098,16 @@ public partial class PokeBattle_Move_0B4 : PokeBattle_Move { public PokeBattle_Move_0B4() : base() { } //public PokeBattle_Move_0B4(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbCanUseWhileAsleep() + public override bool CanUseWhileAsleep() { return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Status != Status.SLEEP) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } List blacklist = new List { @@ -6148,17 +6149,17 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (attacker.moves[i].id == 0) continue; //next if (blacklist.Contains(attacker.moves[i].Effect)) found = true; if (found) continue; //next - if (this.battle.pbCanChooseMove(attacker.Index, i, false, true)) choices.Add(i); + if (this.battle.CanChooseMove(attacker.Index, i, false, true)) choices.Add(i); } if (choices.Count == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - int choice = choices[this.battle.pbRandom(choices.Count)]; - attacker.pbUseMoveSimple(attacker.moves[choice].id, -1, attacker.pbOppositeOpposing.Index); + int choice = choices[this.battle.Random(choices.Count)]; + attacker.UseMoveSimple(attacker.moves[choice].id, -1, attacker.OppositeOpposing.Index); return 0; } } @@ -6170,7 +6171,7 @@ public partial class PokeBattle_Move_0B5 : PokeBattle_Move { public PokeBattle_Move_0B5() : base() { } //public PokeBattle_Move_0B5(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List blacklist = new List { Attack.Data.Effects.x0FF, // Struggle @@ -6230,7 +6231,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } List moves = new List(); - IPokemon[] party = this.battle.pbParty(attacker.Index); // NOTE: pbParty is common to both allies in multi battles + IPokemon[] party = this.battle.Party(attacker.Index); // NOTE: Party is common to both allies in multi battles for (int i = 0; i < party.Length; i++) { if (i != attacker.pokemonIndex && party[i].IsNotNullOrNone() && !(Core.USENEWBATTLEMECHANICS && party[i].isEgg)) @@ -6247,13 +6248,13 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (moves.Count == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - Moves move = moves[this.battle.pbRandom(moves.Count)]; - attacker.pbUseMoveSimple(move); + Moves move = moves[this.battle.Random(moves.Count)]; + attacker.UseMoveSimple(move); return 0; } } @@ -6265,7 +6266,7 @@ public partial class PokeBattle_Move_0B6 : PokeBattle_Move { public PokeBattle_Move_0B6() : base() { } //public PokeBattle_Move_0B6(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List blacklist = new List { Attack.Data.Effects.x0FF, // Struggle @@ -6312,7 +6313,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = }; for (int i = 0; i < 1000; i++) //loop do break unless i<1000 { - Moves move = (Moves)(this.battle.pbRandom(Kernal.MoveData.Keys.Count) + 1); + Moves move = (Moves)(this.battle.Random(Kernal.MoveData.Keys.Count) + 1); if (Kernal.MoveData[(Moves)move].Type == Types.SHADOW) continue; //next bool found = false; if (blacklist.Contains(Kernal.MoveData[(Moves)move].Effect)) @@ -6331,14 +6332,14 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (!found) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbUseMoveSimple(move); + attacker.UseMoveSimple(move); return 0; } i += 1; } - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } @@ -6350,34 +6351,34 @@ public partial class PokeBattle_Move_0B7 : PokeBattle_Move { public PokeBattle_Move_0B7() : base() { } //public PokeBattle_Move_0B7(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Torment) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (!attacker.hasMoldBreaker()) { if (opponent.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } - else if (opponent.pbPartner.hasWorkingAbility(Abilities.AROMA_VEIL)) + else if (opponent.Partner.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", - opponent.pbPartner.ToString(),Game._INTL(opponent.pbPartner.Ability.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", + opponent.Partner.ToString(),Game._INTL(opponent.Partner.Ability.ToString(TextScripts.Name)))); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Torment = true; - battle.pbDisplay(Game._INTL("{1} was subjected to torment!", opponent.ToString())); + battle.Display(Game._INTL("{1} was subjected to torment!", opponent.ToString())); return 0; } } @@ -6389,17 +6390,17 @@ public partial class PokeBattle_Move_0B8 : PokeBattle_Move { public PokeBattle_Move_0B8() : base() { } //public PokeBattle_Move_0B8(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.Imprison) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); attacker.effects.Imprison = true; - battle.pbDisplay(Game._INTL("{1} sealed the opponent's move(s)!", attacker.ToString())); + battle.Display(Game._INTL("{1} sealed the opponent's move(s)!", attacker.ToString())); return 0; } } @@ -6411,26 +6412,26 @@ public partial class PokeBattle_Move_0B9 : PokeBattle_Move { public PokeBattle_Move_0B9() : base() { } //public PokeBattle_Move_0B9(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Disable > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (!attacker.hasMoldBreaker()) { if (opponent.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } - else if (opponent.pbPartner.hasWorkingAbility(Abilities.AROMA_VEIL)) + else if (opponent.Partner.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", - opponent.pbPartner.ToString(),Game._INTL(opponent.pbPartner.Ability.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", + opponent.Partner.ToString(),Game._INTL(opponent.Partner.Ability.ToString(TextScripts.Name)))); return -1; } } @@ -6438,16 +6439,16 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { if (i.id > 0 && i.id == opponent.lastMoveUsed && (i.PP > 0 || i.TotalPP == 0)) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Disable = 5; opponent.effects.DisableMove = opponent.lastMoveUsed; - battle.pbDisplay(Game._INTL("{1}'s {2} was disabled!", opponent.ToString(), Kernal.MoveData[(Moves)i.id].Name)); + battle.Display(Game._INTL("{1}'s {2} was disabled!", opponent.ToString(), Kernal.MoveData[(Moves)i.id].Name)); return 0; } } - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } @@ -6459,36 +6460,36 @@ public partial class PokeBattle_Move_0BA : PokeBattle_Move { public PokeBattle_Move_0BA() : base() { } //public PokeBattle_Move_0BA(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Taunt > 0 || (Core.USENEWBATTLEMECHANICS && !attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.OBLIVIOUS))) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (!attacker.hasMoldBreaker()) { if (opponent.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } - else if (opponent.pbPartner.hasWorkingAbility(Abilities.AROMA_VEIL)) + else if (opponent.Partner.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", - opponent.pbPartner.ToString(),Game._INTL(opponent.pbPartner.Ability.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", + opponent.Partner.ToString(),Game._INTL(opponent.Partner.Ability.ToString(TextScripts.Name)))); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Taunt = 4; - battle.pbDisplay(Game._INTL("{1} fell for the taunt!", opponent.ToString())); + battle.Display(Game._INTL("{1} fell for the taunt!", opponent.ToString())); return 0; } } @@ -6500,34 +6501,34 @@ public partial class PokeBattle_Move_0BB : PokeBattle_Move { public PokeBattle_Move_0BB() : base() { } //public PokeBattle_Move_0BB(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.HealBlock > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (!attacker.hasMoldBreaker()) { if (opponent.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } - else if (opponent.pbPartner.hasWorkingAbility(Abilities.AROMA_VEIL)) + else if (opponent.Partner.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", - opponent.pbPartner.ToString(),Game._INTL(opponent.pbPartner.Ability.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", + opponent.Partner.ToString(),Game._INTL(opponent.Partner.Ability.ToString(TextScripts.Name)))); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.HealBlock = 5; - battle.pbDisplay(Game._INTL("{1} was prevented from healing!", opponent.ToString())); + battle.Display(Game._INTL("{1} was prevented from healing!", opponent.ToString())); return 0; } } @@ -6539,7 +6540,7 @@ public partial class PokeBattle_Move_0BC : PokeBattle_Move { public PokeBattle_Move_0BC() : base() { } //public PokeBattle_Move_0BC(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List blacklist = new List { Attack.Data.Effects.x0FF, // Struggle @@ -6551,28 +6552,28 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = }; if (opponent.effects.Encore > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (opponent.lastMoveUsed <= 0 || blacklist.Contains(Kernal.MoveData[(Moves)opponent.lastMoveUsed].Effect)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (!attacker.hasMoldBreaker()) { if (opponent.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } - else if (opponent.pbPartner.hasWorkingAbility(Abilities.AROMA_VEIL)) + else if (opponent.Partner.hasWorkingAbility(Abilities.AROMA_VEIL)) { - battle.pbDisplay(Game._INTL("But it failed because of {1}'s {2}!", - opponent.pbPartner.ToString(),Game._INTL(opponent.pbPartner.Ability.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("But it failed because of {1}'s {2}!", + opponent.Partner.ToString(),Game._INTL(opponent.Partner.Ability.ToString(TextScripts.Name)))); return -1; } } @@ -6581,18 +6582,18 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (opponent.lastMoveUsed == opponent.moves[i].id && (opponent.moves[i].PP > 0 || opponent.moves[i].TotalPP == 0)) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Encore = 4; opponent.effects.EncoreIndex = i; opponent.effects.EncoreMove = opponent.moves[i].id; - battle.pbDisplay(Game._INTL("{1} received an encore!", opponent.ToString())); + battle.Display(Game._INTL("{1} received an encore!", opponent.ToString())); return 0; } } - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } @@ -6604,12 +6605,12 @@ public partial class PokeBattle_Move_0BD : PokeBattle_Move { public PokeBattle_Move_0BD() : base() { } //public PokeBattle_Move_0BD(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbIsMultiHit() + public override bool IsMultiHit() { return true; } - public override int pbNumHits(IBattler attacker) + public override int NumHits(IBattler attacker) { return 2; } @@ -6622,22 +6623,22 @@ public partial class PokeBattle_Move_0BE : PokeBattle_Move { public PokeBattle_Move_0BE() : base() { } //public PokeBattle_Move_0BE(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbIsMultiHit() + public override bool IsMultiHit() { return true; } - public override int pbNumHits(IBattler attacker) + public override int NumHits(IBattler attacker) { return 2; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanPoison(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanPoison(attacker, false, this)) { - b.pbPoison(attacker); + b.Poison(attacker); } } } @@ -6651,12 +6652,12 @@ public partial class PokeBattle_Move_0BF : PokeBattle_Move public bool checks { get; set; } public PokeBattle_Move_0BF() : base() { } //public PokeBattle_Move_0BF(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbIsMultiHit() + public override bool IsMultiHit() { return true; } - public override int pbNumHits(IBattler attacker) + public override int NumHits(IBattler attacker) { return 3; } @@ -6666,14 +6667,14 @@ public override bool successCheckPerHit() return this.checks; } - public override bool pbOnStartUse(IBattler attacker) + public override bool OnStartUse(IBattler attacker) { this.calcbasedmg = base.Power; this.checks = !attacker.hasWorkingAbility(Abilities.SKILL_LINK); return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { int ret = this.calcbasedmg; this.calcbasedmg += basedmg; @@ -6688,16 +6689,16 @@ public partial class PokeBattle_Move_0C0 : PokeBattle_Move { public PokeBattle_Move_0C0() : base() { } //public PokeBattle_Move_0C0(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbIsMultiHit() + public override bool IsMultiHit() { return true; } - public override int pbNumHits(IBattler attacker) + public override int NumHits(IBattler attacker) { int[] hitchances = new int[] { 2, 2, 3, 3, 4, 5 }; - int ret = hitchances[this.battle.pbRandom(hitchances.Length)]; + int ret = hitchances[this.battle.Random(hitchances.Length)]; if (attacker.hasWorkingAbility(Abilities.SKILL_LINK)) ret = 5; return ret; } @@ -6714,20 +6715,20 @@ public partial class PokeBattle_Move_0C1 : PokeBattle_Move public List participants { get; set; } public PokeBattle_Move_0C1() : base() { } //public PokeBattle_Move_0C1(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbIsMultiHit() + public override bool IsMultiHit() { return true; } - public override int pbNumHits(IBattler attacker) + public override int NumHits(IBattler attacker) { return this.participants.Count; } - public override bool pbOnStartUse(IBattler attacker) + public override bool OnStartUse(IBattler attacker) { - IPokemon[] party = this.battle.pbParty(attacker.Index); + IPokemon[] party = this.battle.Party(attacker.Index); this.participants = new List(); for (byte i = 0; i < party.Length; i++) { @@ -6744,16 +6745,16 @@ public override bool pbOnStartUse(IBattler attacker) } if (this.participants.Count == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return false; } return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { - IPokemon[] party = this.battle.pbParty(attacker.Index); + IPokemon[] party = this.battle.Party(attacker.Index); int atk = party[this.participants[0]].baseStats[1]; this.participants.RemoveAt(0);//[0]=null; //this.participants.compact!; @@ -6768,9 +6769,9 @@ public partial class PokeBattle_Move_0C2 : PokeBattle_Move { public PokeBattle_Move_0C2() : base() { } //public PokeBattle_Move_0C2(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { attacker.effects.HyperBeam = 2; @@ -6787,7 +6788,7 @@ public partial class PokeBattle_Move_0C3 : PokeBattle_Move { public PokeBattle_Move_0C3() : base() { } //public PokeBattle_Move_0C3(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -6798,22 +6799,22 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim; - battle.pbDisplay(Game._INTL("{1} whipped up a whirlwind!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim; + battle.Display(Game._INTL("{1} whipped up a whirlwind!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } } @@ -6826,13 +6827,13 @@ public partial class PokeBattle_Move_0C4 : PokeBattle_Move public bool sunny { get; set; } public PokeBattle_Move_0C4() : base() { } //public PokeBattle_Move_0C4(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; this.sunny = false; if (attacker.effects.TwoTurnAttack == 0) { - if (this.battle.pbWeather == Weather.SUNNYDAY || - this.battle.pbWeather == Weather.HARSHSUN) + if (this.battle.Weather == Weather.SUNNYDAY || + this.battle.Weather == Weather.HARSHSUN) { this.immediate = true; this.sunny = true; } @@ -6845,33 +6846,33 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public int pbBaseDamageMultiplier(int damagemult, IBattler attacker, IBattler opponent) + public int BaseDamageMultiplier(int damagemult, IBattler attacker, IBattler opponent) { - if (this.battle.pbWeather != 0 && - this.battle.pbWeather != Weather.SUNNYDAY && - this.battle.pbWeather != Weather.HARSHSUN) + if (this.battle.Weather != 0 && + this.battle.Weather != Weather.SUNNYDAY && + this.battle.Weather != Weather.HARSHSUN) { return (int)Math.Round(damagemult * 0.5f); } return damagemult; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} took in sunlight!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} took in sunlight!", attacker.ToString())); } if (this.immediate && !this.sunny) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } } @@ -6883,7 +6884,7 @@ public partial class PokeBattle_Move_0C5 : PokeBattle_Move { public PokeBattle_Move_0C5() : base() { } //public PokeBattle_Move_0C5(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -6894,30 +6895,30 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} became cloaked in a freezing light!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} became cloaked in a freezing light!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanParalyze(attacker, false, this)) { - b.pbParalyze(attacker); + b.Paralyze(attacker); } } } @@ -6930,7 +6931,7 @@ public partial class PokeBattle_Move_0C6 : PokeBattle_Move { public PokeBattle_Move_0C6() : base() { } //public PokeBattle_Move_0C6(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -6941,30 +6942,30 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} became cloaked in freezing air!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} became cloaked in freezing air!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanBurn(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanBurn(attacker, false, this)) { - b.pbBurn(attacker); + b.Burn(attacker); } } } @@ -6977,7 +6978,7 @@ public partial class PokeBattle_Move_0C7 : PokeBattle_Move { public PokeBattle_Move_0C7() : base() { } //public PokeBattle_Move_0C7(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -6988,28 +6989,28 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} became cloaked in a harsh light!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} became cloaked in a harsh light!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } } @@ -7021,7 +7022,7 @@ public partial class PokeBattle_Move_0C8 : PokeBattle_Move { public PokeBattle_Move_0C8() : base() { } //public PokeBattle_Move_0C8(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -7032,32 +7033,32 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} tucked in its head!", attacker.ToString())); - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} tucked in its head!", attacker.ToString())); + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this); + b.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this); } } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } } /// /// Two turn attack. Skips first turn, attacks second turn. (Fly) - /// (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. + /// (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. /// public partial class PokeBattle_Move_0C9 : PokeBattle_Move { @@ -7068,7 +7069,7 @@ public override bool UnusableInGravity() return true; } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -7079,34 +7080,34 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} flew up high!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} flew up high!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } } /// /// Two turn attack. Skips first turn, attacks second turn. (Dig) - /// (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. + /// (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. /// public partial class PokeBattle_Move_0CA : PokeBattle_Move { public PokeBattle_Move_0CA() : base() { } //public PokeBattle_Move_0CA(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -7117,34 +7118,34 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} burrowed its way under the ground!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} burrowed its way under the ground!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } } /// /// Two turn attack. Skips first turn, attacks second turn. (Dive) - /// (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. + /// (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. /// public partial class PokeBattle_Move_0CB : PokeBattle_Move { public PokeBattle_Move_0CB() : base() { } //public PokeBattle_Move_0CB(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -7155,29 +7156,29 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} hid underwater!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} hid underwater!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } } /// /// Two turn attack. Skips first turn, attacks second turn. (Bounce) /// May paralyze the target. - /// (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. + /// (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. /// public partial class PokeBattle_Move_0CC : PokeBattle_Move { @@ -7188,7 +7189,7 @@ public override bool UnusableInGravity() return true; } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -7199,30 +7200,30 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} sprang up!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} sprang up!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanParalyze(attacker, false, this)) { - b.pbParalyze(attacker); + b.Paralyze(attacker); } } } @@ -7237,7 +7238,7 @@ public partial class PokeBattle_Move_0CD : PokeBattle_Move { public PokeBattle_Move_0CD() : base() { } //public PokeBattle_Move_0CD(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -7248,26 +7249,26 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} vanished instantly!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} vanished instantly!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - int ret = (int)base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = (int)base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (ret > 0) { opponent.effects.ProtectNegation = true; - opponent.pbOwnSide.CraftyShield = false; + opponent.OwnSide.CraftyShield = false; } return ret; } @@ -7275,7 +7276,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = /// /// Two turn attack. Skips first turn, attacks second turn. (Sky Drop) - /// (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. + /// (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. /// Target is also semi-invulnerable during use, and can't take any action. /// Doesn't damage airborne Pokémon (but still makes them unable to move during). /// @@ -7288,45 +7289,45 @@ public override bool UnusableInGravity() return true; } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { bool ret = false; if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) ret = true; if (opponent.effects.TwoTurnAttack > 0) ret = true; if (opponent.effects.SkyDrop && attacker.effects.TwoTurnAttack > 0) ret = true; - if (!opponent.pbIsOpposing(attacker.Index)) ret = true; + if (!opponent.IsOpposing(attacker.Index)) ret = true; if (Core.USENEWBATTLEMECHANICS && opponent.Weight(attacker) >= 2000) ret = true; return ret; } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim; - battle.pbDisplay(Game._INTL("{1} took {2} into the sky!", attacker.ToString(), opponent.ToString(true))); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim; + battle.Display(Game._INTL("{1} took {2} into the sky!", attacker.ToString(), opponent.ToString(true))); opponent.effects.SkyDrop = true; } if (attacker.effects.TwoTurnAttack > 0) return 0; - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("{1} was freed from the Sky Drop!", opponent.ToString())); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + battle.Display(Game._INTL("{1} was freed from the Sky Drop!", opponent.ToString())); opponent.effects.SkyDrop = false; return ret; } - public override float pbTypeModifier(Types type, IBattler attacker, IBattler opponent) + public override float TypeModifier(Types type, IBattler attacker, IBattler opponent) { - if (opponent.pbHasType(Types.FLYING)) return 0; + if (opponent.HasType(Types.FLYING)) return 0; if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.LEVITATE) && !opponent.effects.SmackDown) return 0; - return base.pbTypeModifier(type, attacker, opponent); + return base.TypeModifier(type, attacker, opponent); } } @@ -7338,15 +7339,15 @@ public partial class PokeBattle_Move_0CF : PokeBattle_Move { public PokeBattle_Move_0CF() : base() { } //public PokeBattle_Move_0CF(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && !opponent.isFainted() && !opponent.damagestate.Substitute) { if (opponent.effects.MultiTurn == 0) { - opponent.effects.MultiTurn = 5 + this.battle.pbRandom(2); + opponent.effects.MultiTurn = 5 + this.battle.Random(2); if (attacker.hasWorkingItem(Items.GRIP_CLAW)) { opponent.effects.MultiTurn = (Core.USENEWBATTLEMECHANICS) ? 8 : 6; @@ -7356,35 +7357,35 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.effects.MultiTurnUser = attacker.Index; if (id == Moves.BIND) { - battle.pbDisplay(Game._INTL("{1} was squeezed by {2}!", opponent.ToString(), attacker.ToString(true))); + battle.Display(Game._INTL("{1} was squeezed by {2}!", opponent.ToString(), attacker.ToString(true))); } else if (id == Moves.CLAMP) { - battle.pbDisplay(Game._INTL("{1} clamped {2}!", attacker.ToString(), opponent.ToString(true))); + battle.Display(Game._INTL("{1} clamped {2}!", attacker.ToString(), opponent.ToString(true))); } else if (id == Moves.FIRE_SPIN) { - battle.pbDisplay(Game._INTL("{1} was trapped in the fiery vortex!", opponent.ToString())); + battle.Display(Game._INTL("{1} was trapped in the fiery vortex!", opponent.ToString())); } else if (id == Moves.MAGMA_STORM) { - battle.pbDisplay(Game._INTL("{1} became trapped by Magma Storm!", opponent.ToString())); + battle.Display(Game._INTL("{1} became trapped by Magma Storm!", opponent.ToString())); } else if (id == Moves.SAND_TOMB) { - battle.pbDisplay(Game._INTL("{1} became trapped by Sand Tomb!", opponent.ToString())); + battle.Display(Game._INTL("{1} became trapped by Sand Tomb!", opponent.ToString())); } else if (id == Moves.WRAP) { - battle.pbDisplay(Game._INTL("{1} was wrapped by {2}!", opponent.ToString(), attacker.ToString(true))); + battle.Display(Game._INTL("{1} was wrapped by {2}!", opponent.ToString(), attacker.ToString(true))); } else if (id == Moves.INFESTATION) { - battle.pbDisplay(Game._INTL("{1} has been afflicted with an infestation by {2}!", opponent.ToString(), attacker.ToString(true))); + battle.Display(Game._INTL("{1} has been afflicted with an infestation by {2}!", opponent.ToString(), attacker.ToString(true))); } else { - battle.pbDisplay(Game._INTL("{1} was trapped in the vortex!", opponent.ToString())); + battle.Display(Game._INTL("{1} was trapped in the vortex!", opponent.ToString())); } } @@ -7397,21 +7398,21 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = /// Trapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP /// at end of each round. (Whirlpool) /// Power is doubled if target is using Dive. - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_0D0 : PokeBattle_Move { public PokeBattle_Move_0D0() : base() { } //public PokeBattle_Move_0D0(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && !opponent.isFainted() && !opponent.damagestate.Substitute) { if (opponent.effects.MultiTurn == 0) { - opponent.effects.MultiTurn = 5 + this.battle.pbRandom(2); + opponent.effects.MultiTurn = 5 + this.battle.Random(2); if (attacker.hasWorkingItem(Items.GRIP_CLAW)) { opponent.effects.MultiTurn = (Core.USENEWBATTLEMECHANICS) ? 8 : 6; @@ -7420,13 +7421,13 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.effects.MultiTurnUser = attacker.Index; - battle.pbDisplay(Game._INTL("{1} became trapped in the vortex!", opponent.ToString())); + battle.Display(Game._INTL("{1} became trapped in the vortex!", opponent.ToString())); } } return ret; } - public int pbModifyDamage(int damagemult, IBattler attacker, IBattler opponent) + public int ModifyDamage(int damagemult, IBattler attacker, IBattler opponent) { if (Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x100) // Dive { @@ -7443,15 +7444,15 @@ public partial class PokeBattle_Move_0D1 : PokeBattle_Move { public PokeBattle_Move_0D1() : base() { } //public PokeBattle_Move_0D1(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { if (attacker.effects.Uproar == 0) { attacker.effects.Uproar = 3; - battle.pbDisplay(Game._INTL("{1} caused an uproar!", attacker.ToString())); + battle.Display(Game._INTL("{1} caused an uproar!", attacker.ToString())); attacker.currentMove = this.id; } @@ -7468,18 +7469,18 @@ public partial class PokeBattle_Move_0D2 : PokeBattle_Move { public PokeBattle_Move_0D2() : base() { } //public PokeBattle_Move_0D2(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && attacker.effects.Outrage == 0 && attacker.Status != Status.SLEEP) { - attacker.effects.Outrage = 2 + this.battle.pbRandom(2); + attacker.effects.Outrage = 2 + this.battle.Random(2); attacker.currentMove = this.id; } - else if (pbTypeModifier(this.type, attacker, opponent) == 0) + else if (TypeModifier(this.type, attacker, opponent) == 0) { // Cancel effect if attack is ineffective attacker.effects.Outrage = 0; @@ -7489,10 +7490,10 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { attacker.effects.Outrage -= 1; - if (attacker.effects.Outrage == 0 && attacker is IBattlerEffect b && b.pbCanConfuseSelf(false)) + if (attacker.effects.Outrage == 0 && attacker is IBattlerEffect b && b.CanConfuseSelf(false)) { - b.pbConfuse(); - battle.pbDisplay(Game._INTL("{1} became confused due to fatigue!", attacker.ToString())); + b.Confuse(); + battle.Display(Game._INTL("{1} became confused due to fatigue!", attacker.ToString())); } } return ret; @@ -7507,7 +7508,7 @@ public partial class PokeBattle_Move_0D3 : PokeBattle_Move { public PokeBattle_Move_0D3() : base() { } //public PokeBattle_Move_0D3(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { byte shift = (byte)(4 - attacker.effects.Rollout); // from 0 through 4, 0 is most powerful if (attacker.effects.DefenseCurl) shift += 1; @@ -7515,15 +7516,15 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.Rollout == 0) attacker.effects.Rollout = 5; attacker.effects.Rollout -= 1; attacker.currentMove = MoveId; - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage == 0 || - pbTypeModifier(this.type, attacker, opponent) == 0 || + TypeModifier(this.type, attacker, opponent) == 0 || attacker.Status == Status.SLEEP) { // Cancel effect if attack is ineffective @@ -7541,16 +7542,16 @@ public partial class PokeBattle_Move_0D4 : PokeBattle_Move { public PokeBattle_Move_0D4() : base() { } //public PokeBattle_Move_0D4(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbDisplayUseMessage(IBattler attacker) + public override int DisplayUseMessage(IBattler attacker) { if (attacker.effects.Bide == 0) { - battle.pbDisplayBrief(Game._INTL("{1} used\r\n{2}!", attacker.ToString(), Name)); + battle.DisplayBrief(Game._INTL("{1} used\r\n{2}!", attacker.ToString(), Name)); attacker.effects.Bide = 2; attacker.effects.BideDamage = 0; attacker.effects.BideTarget = -1; attacker.currentMove = this.id; - pbShowAnimation(this.id, attacker, null); + ShowAnimation(this.id, attacker, null); return 1; } else @@ -7558,50 +7559,50 @@ public override int pbDisplayUseMessage(IBattler attacker) attacker.effects.Bide -= 1; if (attacker.effects.Bide == 0) { - battle.pbDisplayBrief(Game._INTL("{1} unleashed energy!", attacker.ToString())); + battle.DisplayBrief(Game._INTL("{1} unleashed energy!", attacker.ToString())); return 0; } else { - battle.pbDisplayBrief(Game._INTL("{1} is storing energy!", attacker.ToString())); + battle.DisplayBrief(Game._INTL("{1} is storing energy!", attacker.ToString())); return 2; } } } - public override void pbAddTarget(IList targets, IBattler attacker) + public override void AddTarget(IList targets, IBattler attacker) { if (attacker.effects.BideTarget >= 0) { - if (!attacker.pbAddTarget(ref targets, this.battle.battlers[attacker.effects.BideTarget])) + if (!attacker.AddTarget(ref targets, this.battle.battlers[attacker.effects.BideTarget])) { - attacker.pbRandomTarget(targets); + attacker.RandomTarget(targets); } } else { - attacker.pbRandomTarget(targets); + attacker.RandomTarget(targets); } } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.BideDamage == 0 || opponent.Species == Pokemons.NONE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (Core.USENEWBATTLEMECHANICS) { - float typemod = pbTypeModifier(pbType(this.type, attacker, opponent), attacker, opponent); + float typemod = TypeModifier(GetType(this.type, attacker, opponent), attacker, opponent); if (typemod == 0) { - battle.pbDisplay(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); + battle.Display(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); return -1; } } - int ret = pbEffectFixedDamage(attacker.effects.BideDamage * 2, attacker, opponent, hitnum, alltargets, showanimation); + int ret = EffectFixedDamage(attacker.effects.BideDamage * 2, attacker, opponent, hitnum, alltargets, showanimation); return ret; } } @@ -7618,17 +7619,17 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.HP == attacker.TotalHP) { - battle.pbDisplay(Game._INTL("{1}'s HP is full!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s HP is full!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbRecoverHP((int)Math.Floor((attacker.TotalHP + 1) / 2f), true); - battle.pbDisplay(Game._INTL("{1}'s HP was restored.", attacker.ToString())); + attacker.RecoverHP((int)Math.Floor((attacker.TotalHP + 1) / 2f), true); + battle.Display(Game._INTL("{1}'s HP was restored.", attacker.ToString())); return 0; } } @@ -7646,18 +7647,18 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.HP == attacker.TotalHP) { - battle.pbDisplay(Game._INTL("{1}'s HP is full!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s HP is full!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbRecoverHP((int)Math.Floor((attacker.TotalHP + 1) / 2f), true); + attacker.RecoverHP((int)Math.Floor((attacker.TotalHP + 1) / 2f), true); attacker.effects.Roost = true; - battle.pbDisplay(Game._INTL("{1}'s HP was restored.", attacker.ToString())); + battle.Display(Game._INTL("{1}'s HP was restored.", attacker.ToString())); return 0; } } @@ -7675,14 +7676,14 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.Wish > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.Wish = 2; attacker.effects.WishAmount = (int)Math.Floor((attacker.TotalHP + 1) / 2f); @@ -7704,20 +7705,20 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.HP == attacker.TotalHP) { - battle.pbDisplay(Game._INTL("{1}'s HP is full!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s HP is full!", attacker.ToString())); return -1; } int hpgain = 0; - if (this.battle.pbWeather == Weather.SUNNYDAY || - this.battle.pbWeather == Weather.HARSHSUN) + if (this.battle.Weather == Weather.SUNNYDAY || + this.battle.Weather == Weather.HARSHSUN) { hpgain = (int)Math.Floor(attacker.TotalHP * 2 / 3f); } - else if (this.battle.pbWeather != 0) + else if (this.battle.Weather != 0) { hpgain = (int)Math.Floor(attacker.TotalHP / 4f); } @@ -7725,10 +7726,10 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { hpgain = (int)Math.Floor(attacker.TotalHP / 2f); } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbRecoverHP(hpgain, true); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + attacker.RecoverHP(hpgain, true); - battle.pbDisplay(Game._INTL("{1}'s HP was restored.", attacker.ToString())); + battle.Display(Game._INTL("{1}'s HP was restored.", attacker.ToString())); return 0; } } @@ -7745,28 +7746,28 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker is IBattlerClause b && !b.pbCanSleep(attacker, true, this, true)) + if (attacker is IBattlerClause b && !b.CanSleep(attacker, true, this, true)) { return -1; } if (attacker.Status == Status.SLEEP) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (attacker.HP == attacker.TotalHP) { - battle.pbDisplay(Game._INTL("{1}'s HP is full!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s HP is full!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - if (attacker is IBattlerEffect a) a.pbSleepSelf(3); - battle.pbDisplay(Game._INTL("{1} slept and became healthy!", attacker.ToString())); - int hp = attacker.pbRecoverHP(attacker.TotalHP - attacker.HP, true); - if (hp > 0) battle.pbDisplay(Game._INTL("{1}'s HP was restored.", attacker.ToString())); + if (attacker is IBattlerEffect a) a.SleepSelf(3); + battle.Display(Game._INTL("{1} slept and became healthy!", attacker.ToString())); + int hp = attacker.RecoverHP(attacker.TotalHP - attacker.HP, true); + if (hp > 0) battle.Display(Game._INTL("{1}'s HP was restored.", attacker.ToString())); return 0; } } @@ -7784,17 +7785,17 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.AquaRing) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.AquaRing = true; - battle.pbDisplay(Game._INTL("{1} surrounded itself with a veil of water!", attacker.ToString())); + battle.Display(Game._INTL("{1} surrounded itself with a veil of water!", attacker.ToString())); return 0; } } @@ -7812,17 +7813,17 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.Ingrain) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.Ingrain = true; - battle.pbDisplay(Game._INTL("{1} planted its roots!", attacker.ToString())); + battle.Display(Game._INTL("{1} planted its roots!", attacker.ToString())); return 0; } } @@ -7835,28 +7836,28 @@ public partial class PokeBattle_Move_0DC : PokeBattle_Move { public PokeBattle_Move_0DC() : base() { } //public PokeBattle_Move_0DC(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; if (opponent.effects.LeechSeed >= 0) { - battle.pbDisplay(Game._INTL("{1} evaded the attack!", opponent.ToString())); + battle.Display(Game._INTL("{1} evaded the attack!", opponent.ToString())); return -1; } - if (opponent.pbHasType(Types.GRASS)) + if (opponent.HasType(Types.GRASS)) { - battle.pbDisplay(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); + battle.Display(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.LeechSeed = attacker.Index; - battle.pbDisplay(Game._INTL("{1} was seeded!", opponent.ToString())); + battle.Display(Game._INTL("{1} was seeded!", opponent.ToString())); return 0; } } @@ -7873,24 +7874,24 @@ public override bool isHealingMove() return Core.USENEWBATTLEMECHANICS; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { int hpgain = (int)Math.Round(opponent.damagestate.HPLost / 2f); if (opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { - attacker.pbReduceHP(hpgain, true); - battle.pbDisplay(Game._INTL("{1} sucked up the liquid ooze!", attacker.ToString())); + attacker.ReduceHP(hpgain, true); + battle.Display(Game._INTL("{1} sucked up the liquid ooze!", attacker.ToString())); } else if (attacker.effects.HealBlock == 0) { if (attacker.hasWorkingItem(Items.BIG_ROOT)) hpgain = (int)Math.Floor(hpgain * 1.3f); - attacker.pbRecoverHP(hpgain, true); - battle.pbDisplay(Game._INTL("{1} had its energy drained!", opponent.ToString())); + attacker.RecoverHP(hpgain, true); + battle.Display(Game._INTL("{1} had its energy drained!", opponent.ToString())); } } return ret; @@ -7899,7 +7900,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = /// /// User gains half the HP it inflicts as damage. (Dream Eater) - /// (Handled in Pokemon's pbSuccessCheck): Fails if target is not asleep. + /// (Handled in Pokemon's SuccessCheck): Fails if target is not asleep. /// public partial class PokeBattle_Move_0DE : PokeBattle_Move { @@ -7910,24 +7911,24 @@ public override bool isHealingMove() return Core.USENEWBATTLEMECHANICS; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { int hpgain = (int)Math.Round(opponent.damagestate.HPLost / 2f); if (opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { - attacker.pbReduceHP(hpgain, true); - battle.pbDisplay(Game._INTL("{1} sucked up the liquid ooze!", attacker.ToString())); + attacker.ReduceHP(hpgain, true); + battle.Display(Game._INTL("{1} sucked up the liquid ooze!", attacker.ToString())); } else if (attacker.effects.HealBlock == 0) { if (attacker.hasWorkingItem(Items.BIG_ROOT)) hpgain = (int)Math.Floor(hpgain * 1.3f); - attacker.pbRecoverHP(hpgain, true); - battle.pbDisplay(Game._INTL("{1} had its energy drained!", opponent.ToString())); + attacker.RecoverHP(hpgain, true); + battle.Display(Game._INTL("{1} had its energy drained!", opponent.ToString())); } } return ret; @@ -7946,24 +7947,24 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (opponent.HP == opponent.TotalHP) { - battle.pbDisplay(Game._INTL("{1}'s HP is full!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s HP is full!", opponent.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); int hpgain = (int)Math.Floor((opponent.TotalHP + 1) / 2f); if (attacker.hasWorkingAbility(Abilities.MEGA_LAUNCHER)) hpgain = (int)Math.Round(opponent.TotalHP * 3 / 4f); - opponent.pbRecoverHP(hpgain, true); - battle.pbDisplay(Game._INTL("{1}'s HP was restored.", opponent.ToString())); + opponent.RecoverHP(hpgain, true); + battle.Display(Game._INTL("{1}'s HP was restored.", opponent.ToString())); return 0; } } @@ -7975,15 +7976,15 @@ public partial class PokeBattle_Move_0E0 : PokeBattle_Move, IBattleMove { public PokeBattle_Move_0E0() : base() { } //public PokeBattle_Move_0E0(Battle battle, Attack.Move move) : base(battle, move) { } - //private bool _pbOnStartUse(IBattler attacker) - bool IBattleMove.pbOnStartUse(IBattler attacker) + //private bool _OnStartUse(IBattler attacker) + bool IBattleMove.OnStartUse(IBattler attacker) { if (!attacker.hasMoldBreaker()) { - IBattler bearer = this.battle.pbCheckGlobalAbility(Abilities.DAMP); + IBattler bearer = this.battle.CheckGlobalAbility(Abilities.DAMP); if (bearer != null) { - battle.pbDisplay(Game._INTL("{1}'s {2} prevents {3} from using {4}!", + battle.Display(Game._INTL("{1}'s {2} prevents {3} from using {4}!", bearer.ToString(), Game._INTL(bearer.Ability.ToString(TextScripts.Name)), attacker.ToString(true), Name)); return false; } @@ -7991,15 +7992,15 @@ bool IBattleMove.pbOnStartUse(IBattler attacker) return true; } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); if (!attacker.isFainted()) { - attacker.pbReduceHP(attacker.HP); + attacker.ReduceHP(attacker.HP); - if (attacker.isFainted()) attacker.pbFaint(); + if (attacker.isFainted()) attacker.Faint(); } } } @@ -8012,27 +8013,27 @@ public partial class PokeBattle_Move_0E1 : PokeBattle_Move { public PokeBattle_Move_0E1() : base() { } //public PokeBattle_Move_0E1(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - float typemod = pbTypeModifier(pbType(this.type, attacker, opponent), attacker, opponent); + float typemod = TypeModifier(GetType(this.type, attacker, opponent), attacker, opponent); if (typemod == 0) { - battle.pbDisplay(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); + battle.Display(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); return -1; } - int ret = pbEffectFixedDamage(attacker.HP, attacker, opponent, hitnum, alltargets, showanimation); + int ret = EffectFixedDamage(attacker.HP, attacker, opponent, hitnum, alltargets, showanimation); return ret; } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); if (!attacker.isFainted()) { - attacker.pbReduceHP(attacker.HP); + attacker.ReduceHP(attacker.HP); - if (attacker.isFainted()) attacker.pbFaint(); + if (attacker.isFainted()) attacker.Faint(); } } } @@ -8045,25 +8046,25 @@ public partial class PokeBattle_Move_0E2 : PokeBattle_Move { public PokeBattle_Move_0E2() : base() { } //public PokeBattle_Move_0E2(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); int ret = -1; bool showanim = true; - if (opponent is IBattlerEffect b0 && b0.pbReduceStat(Stats.ATTACK, 2, attacker, false, this, showanim)) + if (opponent is IBattlerEffect b0 && b0.ReduceStat(Stats.ATTACK, 2, attacker, false, this, showanim)) { ret = 0; showanim = false; } - if (opponent is IBattlerEffect b1 && b1.pbReduceStat(Stats.SPATK, 2, attacker, false, this, showanim)) + if (opponent is IBattlerEffect b1 && b1.ReduceStat(Stats.SPATK, 2, attacker, false, this, showanim)) { ret = 0; showanim = false; } - attacker.pbReduceHP(attacker.HP); + attacker.ReduceHP(attacker.HP); return ret; } } @@ -8081,16 +8082,16 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (!this.battle.pbCanChooseNonActive(attacker.Index)) + if (!this.battle.CanChooseNonActive(attacker.Index)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbReduceHP(attacker.HP); + attacker.ReduceHP(attacker.HP); attacker.effects.HealingWish = true; return 0; } @@ -8109,16 +8110,16 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (!this.battle.pbCanChooseNonActive(attacker.Index)) + if (!this.battle.CanChooseNonActive(attacker.Index)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbReduceHP(attacker.HP); + attacker.ReduceHP(attacker.HP); attacker.effects.LunarDance = true; return 0; } @@ -8131,7 +8132,7 @@ public partial class PokeBattle_Move_0E5 : PokeBattle_Move { public PokeBattle_Move_0E5() : base() { } //public PokeBattle_Move_0E5(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { bool failed = true; for (int i = 0; i < 4; i++) @@ -8145,20 +8146,20 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (failed) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("All Pokémon that hear the song will faint in three turns!")); + battle.Display(Game._INTL("All Pokémon that hear the song will faint in three turns!")); for (int i = 0; i < 4; i++) { if (this.battle.battlers[i].effects.PerishSong == 0) { if (!attacker.hasMoldBreaker() && this.battle.battlers[i].hasWorkingAbility(Abilities.SOUNDPROOF)) { - battle.pbDisplay(Game._INTL("{1}'s {2} blocks {3}!", this.battle.battlers[i].ToString(), - //PBAbilities.getName(this.battle.battlers[i].Ability), Name)); + battle.Display(Game._INTL("{1}'s {2} blocks {3}!", this.battle.battlers[i].ToString(), + //Abilities.getName(this.battle.battlers[i].Ability), Name)); Game._INTL(this.battle.battlers[i].Ability.ToString(TextScripts.Name)), Name)); } else @@ -8180,12 +8181,12 @@ public partial class PokeBattle_Move_0E6 : PokeBattle_Move { public PokeBattle_Move_0E6() : base() { } //public PokeBattle_Move_0E6(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.Grudge = true; - battle.pbDisplay(Game._INTL("{1} wants its target to bear a grudge!", attacker.ToString())); + battle.Display(Game._INTL("{1} wants its target to bear a grudge!", attacker.ToString())); return 0; } } @@ -8198,12 +8199,12 @@ public partial class PokeBattle_Move_0E7 : PokeBattle_Move { public PokeBattle_Move_0E7() : base() { } //public PokeBattle_Move_0E7(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.DestinyBond = true; - battle.pbDisplay(Game._INTL("{1} is trying to take its foe down with it!", attacker.ToString())); + battle.Display(Game._INTL("{1} is trying to take its foe down with it!", attacker.ToString())); return 0; } } @@ -8215,7 +8216,7 @@ public partial class PokeBattle_Move_0E8 : PokeBattle_Move { public PokeBattle_Move_0E8() : base() { } //public PokeBattle_Move_0E8(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { List ratesharers = new List { Attack.Data.Effects.x070, // Detect, Protect @@ -8240,18 +8241,18 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } } if (!unmoved || - this.battle.pbRandom(65536) > Math.Floor(65536f / attacker.effects.ProtectRate)) + this.battle.Random(65536) > Math.Floor(65536f / attacker.effects.ProtectRate)) { attacker.effects.ProtectRate = 1; - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.Endure = true; attacker.effects.ProtectRate *= 2; - battle.pbDisplay(Game._INTL("{1} braced itself!", attacker.ToString())); + battle.Display(Game._INTL("{1} braced itself!", attacker.ToString())); return 0; } } @@ -8273,17 +8274,17 @@ public partial class PokeBattle_Move_0EA : PokeBattle_Move { public PokeBattle_Move_0EA() : base() { } //public PokeBattle_Move_0EA(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.opponent.Length == 0 || - !this.battle.pbCanRun(attacker.Index)) + !this.battle.CanRun(attacker.Index)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("{1} fled from battle!", attacker.ToString())); + battle.Display(Game._INTL("{1} fled from battle!", attacker.ToString())); this.battle.decision = (BattleResults)3; return 0; } @@ -8299,26 +8300,26 @@ public partial class PokeBattle_Move_0EB : PokeBattle_Move { public PokeBattle_Move_0EB() : base() { } //public PokeBattle_Move_0EB(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.SUCTION_CUPS)) { - battle.pbDisplay(Game._INTL("{1} anchored itself with {2}!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); + battle.Display(Game._INTL("{1} anchored itself with {2}!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } if (opponent.effects.Ingrain) { - battle.pbDisplay(Game._INTL("{1} anchored itself with its roots!", opponent.ToString())); + battle.Display(Game._INTL("{1} anchored itself with its roots!", opponent.ToString())); return -1; } if (this.battle.opponent.Length == 0) { if (opponent.Level > attacker.Level) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); this.battle.decision = (BattleResults)3; // Set decision to escaped; return 0; @@ -8326,10 +8327,10 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = else { bool choices = false; - IPokemon[] party = this.battle.pbParty(opponent.Index); + IPokemon[] party = this.battle.Party(opponent.Index); for (int i = 0; i < party.Length; i++) { - if (this.battle.pbCanSwitch(opponent.Index, i, false, true)) + if (this.battle.CanSwitch(opponent.Index, i, false, true)) { choices = true; break; @@ -8337,10 +8338,10 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (!choices) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Roar = true; return 0; @@ -8358,7 +8359,7 @@ public partial class PokeBattle_Move_0EC : PokeBattle_Move { public PokeBattle_Move_0EC() : base() { } //public PokeBattle_Move_0EC(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && !opponent.isFainted() && opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute && @@ -8375,10 +8376,10 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff else { - IPokemon[] party = this.battle.pbParty(opponent.Index); + IPokemon[] party = this.battle.Party(opponent.Index); for (int i = 0; i < party.Length - 1; i++) //ToDo: Double check this { - if (this.battle.pbCanSwitch(opponent.Index, i, false)) + if (this.battle.CanSwitch(opponent.Index, i, false)) { opponent.effects.Roar = true; break; @@ -8398,14 +8399,14 @@ public partial class PokeBattle_Move_0ED : PokeBattle_Move { public PokeBattle_Move_0ED() : base() { } //public PokeBattle_Move_0ED(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (!this.battle.pbCanChooseNonActive(attacker.Index)) + if (!this.battle.CanChooseNonActive(attacker.Index)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.BatonPass = true; return 0; @@ -8421,12 +8422,12 @@ public partial class PokeBattle_Move_0EE : PokeBattle_Move { public PokeBattle_Move_0EE() : base() { } //public PokeBattle_Move_0EE(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (!attacker.isFainted() && opponent.damagestate.CalcDamage > 0 && - this.battle.pbCanChooseNonActive(attacker.Index) && - !this.battle.pbAllFainted(this.battle.pbParty(opponent.Index))) + this.battle.CanChooseNonActive(attacker.Index) && + !this.battle.AllFainted(this.battle.Party(opponent.Index))) { attacker.effects.Uturn = true; } @@ -8442,19 +8443,19 @@ public partial class PokeBattle_Move_0EF : PokeBattle_Move { public PokeBattle_Move_0EF() : base() { } //public PokeBattle_Move_0EF(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) + if (IsDamaging()) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute && !opponent.isFainted()) { if (opponent.effects.MeanLook < 0 && - (!Core.USENEWBATTLEMECHANICS || !opponent.pbHasType(Types.GHOST))) + (!Core.USENEWBATTLEMECHANICS || !opponent.HasType(Types.GHOST))) { opponent.effects.MeanLook = attacker.Index; - battle.pbDisplay(Game._INTL("{1} can no longer escape!", opponent.ToString())); + battle.Display(Game._INTL("{1} can no longer escape!", opponent.ToString())); } } return ret; @@ -8462,18 +8463,18 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (opponent.effects.MeanLook >= 0 || (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker))) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (Core.USENEWBATTLEMECHANICS && opponent.pbHasType(Types.GHOST)) + if (Core.USENEWBATTLEMECHANICS && opponent.HasType(Types.GHOST)) { - battle.pbDisplay(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); + battle.Display(Game._INTL("It doesn't affect {1}...", opponent.ToString(true))); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.MeanLook = attacker.Index; - battle.pbDisplay(Game._INTL("{1} can no longer escape!", opponent.ToString())); + battle.Display(Game._INTL("{1} can no longer escape!", opponent.ToString())); return 0; } } @@ -8486,7 +8487,7 @@ public partial class PokeBattle_Move_0F0 : PokeBattle_Move { public PokeBattle_Move_0F0() : base() { } //public PokeBattle_Move_0F0(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && !opponent.isFainted() && opponent.Item != 0 && opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute) @@ -8494,24 +8495,24 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.STICKY_HOLD)) { string abilityname = Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(), abilityname, Kernal.MoveData[MoveId].Name)); + battle.Display(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(), abilityname, Kernal.MoveData[MoveId].Name)); } - else if (!this.battle.pbIsUnlosableItem(opponent, opponent.Item)) + else if (!this.battle.IsUnlosableItem(opponent, opponent.Item)) { string itemname = Kernal.ItemData[opponent.Item].Name; opponent.Item = 0; opponent.effects.ChoiceBand = Moves.NONE;//-1; opponent.effects.Unburden = true; - battle.pbDisplay(Game._INTL("{1} dropped its {2}!", opponent.ToString(), itemname)); + battle.Display(Game._INTL("{1} dropped its {2}!", opponent.ToString(), itemname)); } } } - public int pbModifyDamage(int damagemult, IBattler attacker, IBattler opponent) + public int ModifyDamage(int damagemult, IBattler attacker, IBattler opponent) { if (Core.USENEWBATTLEMECHANICS && - !this.battle.pbIsUnlosableItem(opponent, opponent.Item)) + !this.battle.IsUnlosableItem(opponent, opponent.Item)) { // Still boosts damage even if opponent has Sticky Hold return (int)Math.Round(damagemult * 1.5f); @@ -8528,7 +8529,7 @@ public partial class PokeBattle_Move_0F1 : PokeBattle_Move { public PokeBattle_Move_0F1() : base() { } //public PokeBattle_Move_0F1(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && !opponent.isFainted() && opponent.Item != 0 && opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute) @@ -8536,12 +8537,12 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.STICKY_HOLD)) { string abilityname = Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(), abilityname, Kernal.MoveData[MoveId].Name)); + battle.Display(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(), abilityname, Kernal.MoveData[MoveId].Name)); } - else if (!this.battle.pbIsUnlosableItem(opponent, opponent.Item) && - !this.battle.pbIsUnlosableItem(attacker, opponent.Item) && + else if (!this.battle.IsUnlosableItem(opponent, opponent.Item) && + !this.battle.IsUnlosableItem(attacker, opponent.Item) && attacker.Item == 0 && - (this.battle.opponent.Length == 0 || !this.battle.pbIsOpposing(attacker.Index))) + (this.battle.opponent.Length == 0 || !this.battle.IsOpposing(attacker.Index))) { string itemname = Kernal.ItemData[opponent.Item].Name; attacker.Item = opponent.Item; @@ -8557,7 +8558,7 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff attacker.pokemon.itemInitial = attacker.Item; opponent.pokemon.itemInitial = 0; } - battle.pbDisplay(Game._INTL("{1} stole {2}'s {3}!", attacker.ToString(), opponent.ToString(true), itemname)); + battle.Display(Game._INTL("{1} stole {2}'s {3}!", attacker.ToString(), opponent.ToString(true), itemname)); } } } @@ -8571,30 +8572,30 @@ public partial class PokeBattle_Move_0F2 : PokeBattle_Move { public PokeBattle_Move_0F2() : base() { } //public PokeBattle_Move_0F2(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if ((opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) || (attacker.Item == 0 && opponent.Item == 0) || - (this.battle.opponent.Length == 0 && this.battle.pbIsOpposing(attacker.Index))) + (this.battle.opponent.Length == 0 && this.battle.IsOpposing(attacker.Index))) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (this.battle.pbIsUnlosableItem(opponent, opponent.Item) || - this.battle.pbIsUnlosableItem(attacker, opponent.Item) || - this.battle.pbIsUnlosableItem(opponent, attacker.Item) || - this.battle.pbIsUnlosableItem(attacker, attacker.Item)) + if (this.battle.IsUnlosableItem(opponent, opponent.Item) || + this.battle.IsUnlosableItem(attacker, opponent.Item) || + this.battle.IsUnlosableItem(opponent, attacker.Item) || + this.battle.IsUnlosableItem(attacker, attacker.Item)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.STICKY_HOLD)) { string abilityname = Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(), abilityname, Name)); + battle.Display(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(), abilityname, Name)); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); Items oldattitem = attacker.Item; Items oldoppitem = opponent.Item; @@ -8612,16 +8613,16 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.pokemon.itemInitial = oldoppitem; opponent.pokemon.itemInitial = oldattitem; } - battle.pbDisplay(Game._INTL("{1} switched items with its opponent!", attacker.ToString())); + battle.Display(Game._INTL("{1} switched items with its opponent!", attacker.ToString())); if (oldoppitem > 0 && oldattitem > 0) { - battle.pbDisplayPaused(Game._INTL("{1} obtained {2}.", attacker.ToString(), oldoppitemname)); - battle.pbDisplay(Game._INTL("{1} obtained {2}.", opponent.ToString(), oldattitemname)); + battle.DisplayPaused(Game._INTL("{1} obtained {2}.", attacker.ToString(), oldoppitemname)); + battle.Display(Game._INTL("{1} obtained {2}.", opponent.ToString(), oldattitemname)); } else { - if (oldoppitem > 0) battle.pbDisplay(Game._INTL("{1} obtained {2}.", attacker.ToString(), oldoppitemname)); - if (oldattitem > 0) battle.pbDisplay(Game._INTL("{1} obtained {2}.", opponent.ToString(), oldattitemname)); + if (oldoppitem > 0) battle.Display(Game._INTL("{1} obtained {2}.", attacker.ToString(), oldoppitemname)); + if (oldattitem > 0) battle.Display(Game._INTL("{1} obtained {2}.", opponent.ToString(), oldattitemname)); } attacker.effects.ChoiceBand = Moves.NONE;//-1; @@ -8638,21 +8639,21 @@ public partial class PokeBattle_Move_0F3 : PokeBattle_Move { public PokeBattle_Move_0F3() : base() { } //public PokeBattle_Move_0F3(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if ((opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) || attacker.Item == 0 || opponent.Item != 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (this.battle.pbIsUnlosableItem(attacker, attacker.Item) || - this.battle.pbIsUnlosableItem(opponent, attacker.Item)) + if (this.battle.IsUnlosableItem(attacker, attacker.Item) || + this.battle.IsUnlosableItem(opponent, attacker.Item)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); string itemname = Kernal.ItemData[attacker.Item].Name; opponent.Item = attacker.Item; @@ -8668,7 +8669,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = opponent.pokemon.itemInitial = opponent.Item; attacker.pokemon.itemInitial = 0; } - battle.pbDisplay(Game._INTL("{1} received {2} from {3}!", opponent.ToString(), itemname, attacker.ToString(true))); + battle.Display(Game._INTL("{1} received {2} from {3}!", opponent.ToString(), itemname, attacker.ToString(true))); return 0; } } @@ -8680,9 +8681,9 @@ public partial class PokeBattle_Move_0F4 : PokeBattle_Move { public PokeBattle_Move_0F4() : base() { } //public PokeBattle_Move_0F4(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { - if (!attacker.isFainted() && !opponent.isFainted() && Game.GameData is IItemCheck i && i.pbIsBerry(opponent.Item) && + if (!attacker.isFainted() && !opponent.isFainted() && Game.GameData is IItemCheck i && i.IsBerry(opponent.Item) && opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute) { if (attacker.hasMoldBreaker() || !opponent.hasWorkingAbility(Abilities.STICKY_HOLD)) @@ -8690,30 +8691,30 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff Items item = opponent.Item; string itemname = Kernal.ItemData[item].Name; - opponent.pbConsumeItem(false, false); - battle.pbDisplay(Game._INTL("{1} stole and ate its target's {2}!", attacker.ToString(), itemname)); + opponent.ConsumeItem(false, false); + battle.Display(Game._INTL("{1} stole and ate its target's {2}!", attacker.ToString(), itemname)); if (!attacker.hasWorkingAbility(Abilities.KLUTZ) && attacker.effects.Embargo == 0) { - attacker.pbActivateBerryEffect(item, false); + attacker.ActivateBerryEffect(item, false); } // Symbiosis if (attacker.Item == 0 && - attacker.pbPartner.IsNotNullOrNone() && attacker.pbPartner.hasWorkingAbility(Abilities.SYMBIOSIS)) + attacker.Partner.IsNotNullOrNone() && attacker.Partner.hasWorkingAbility(Abilities.SYMBIOSIS)) { - IBattler partner = attacker.pbPartner; + IBattler partner = attacker.Partner; if (partner.Item > 0 && - !this.battle.pbIsUnlosableItem(partner, partner.Item) && - !this.battle.pbIsUnlosableItem(attacker, partner.Item)) + !this.battle.IsUnlosableItem(partner, partner.Item) && + !this.battle.IsUnlosableItem(attacker, partner.Item)) { - battle.pbDisplay(Game._INTL("{1}'s {2} let it share its {3} with {4}!", + battle.Display(Game._INTL("{1}'s {2} let it share its {3} with {4}!", partner.ToString(), Game._INTL(partner.Ability.ToString(TextScripts.Name)), Kernal.ItemData[partner.Item].Name, attacker.ToString(true))); attacker.Item = partner.Item; partner.Item = 0; partner.effects.Unburden = true; - attacker.pbBerryCureCheck(); + attacker.BerryCureCheck(); } } @@ -8729,17 +8730,17 @@ public partial class PokeBattle_Move_0F5 : PokeBattle_Move { public PokeBattle_Move_0F5() : base() { } //public PokeBattle_Move_0F5(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (!attacker.isFainted() && opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute && - (Game.GameData is IItemCheck i && i.pbIsBerry(opponent.Item) || (Core.USENEWBATTLEMECHANICS && i.pbIsGem(opponent.Item)))) + (Game.GameData is IItemCheck i && i.IsBerry(opponent.Item) || (Core.USENEWBATTLEMECHANICS && i.IsGem(opponent.Item)))) { string itemname = Kernal.ItemData[opponent.Item].Name; - opponent.pbConsumeItem(false, false); + opponent.ConsumeItem(false, false); - battle.pbDisplay(Game._INTL("{1}'s {2} was incinerated!", opponent.ToString(), itemname)); + battle.Display(Game._INTL("{1}'s {2} was incinerated!", opponent.ToString(), itemname)); } return ret; } @@ -8752,14 +8753,14 @@ public partial class PokeBattle_Move_0F6 : PokeBattle_Move { public PokeBattle_Move_0F6() : base() { } //public PokeBattle_Move_0F6(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Species == Pokemons.NONE || attacker.pokemon.itemRecycle == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); Items item = attacker.pokemon.itemRecycle; string itemname = Kernal.ItemData[item].Name; @@ -8775,7 +8776,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.effects.PickupUse = 0; - battle.pbDisplay(Game._INTL("{1} found one {2}!", attacker.ToString(), itemname)); + battle.Display(Game._INTL("{1} found one {2}!", attacker.ToString(), itemname)); return 0; } } @@ -8791,34 +8792,34 @@ public Dictionary flingarray { get { - return new Dictionary { - //130 => + return new Dictionary { + //130 => { Items.IRON_BALL, 130 }, - //100 => + //100 => { Items.ARMOR_FOSSIL, 100 }, { Items.CLAW_FOSSIL, 100 }, { Items.COVER_FOSSIL, 100 }, { Items.DOME_FOSSIL, 100 }, { Items.HARD_STONE, 100 }, { Items.HELIX_FOSSIL, 100 }, { Items.JAW_FOSSIL, 100 }, { Items.OLD_AMBER, 100 }, { Items.PLUME_FOSSIL, 100 }, { Items.RARE_BONE, 100 }, - { Items.ROOT_FOSSIL, 100 }, { Items.SAIL_FOSSIL, 100 }, { Items.SKULL_FOSSIL, 100 }, - //90 => + { Items.ROOT_FOSSIL, 100 }, { Items.SAIL_FOSSIL, 100 }, { Items.SKULL_FOSSIL, 100 }, + //90 => { Items.DEEP_SEA_TOOTH, 90 }, { Items.DRACO_PLATE, 90 }, { Items.DREAD_PLATE, 90 }, { Items.EARTH_PLATE, 90 }, { Items.FIST_PLATE, 90 }, { Items.FLAME_PLATE, 90 }, { Items.GRIP_CLAW, 90 }, { Items.ICICLE_PLATE, 90 }, { Items.INSECT_PLATE, 90 }, { Items.IRON_PLATE, 90 }, { Items.MEADOW_PLATE, 90 }, { Items.MIND_PLATE, 90 }, { Items.PIXIE_PLATE, 90 }, { Items.SKY_PLATE, 90 }, { Items.SPLASH_PLATE, 90 }, - { Items.SPOOKY_PLATE, 90 }, { Items.STONE_PLATE, 90 }, { Items.THICK_CLUB, 90 }, { Items.TOXIC_PLATE, 90 }, { Items.ZAP_PLATE, 90 }, - //80 => + { Items.SPOOKY_PLATE, 90 }, { Items.STONE_PLATE, 90 }, { Items.THICK_CLUB, 90 }, { Items.TOXIC_PLATE, 90 }, { Items.ZAP_PLATE, 90 }, + //80 => { Items.ASSAULT_VEST, 80 }, { Items.DAWN_STONE, 80 }, { Items.DUSK_STONE, 80 }, { Items.ELECTIRIZER, 80 }, { Items.MAGMARIZER, 80 }, { Items.ODD_KEYSTONE, 80 }, { Items.OVAL_STONE, 80 }, { Items.PROTECTOR, 80 }, { Items.QUICK_CLAW, 80 }, { Items.RAZOR_CLAW, 80 }, - { Items.SAFETY_GOGGLES, 80 }, { Items.SHINY_STONE, 80 }, { Items.STICKY_BARB, 80 }, { Items.WEAKNESS_POLICY, 80 }, - //70 => + { Items.SAFETY_GOGGLES, 80 }, { Items.SHINY_STONE, 80 }, { Items.STICKY_BARB, 80 }, { Items.WEAKNESS_POLICY, 80 }, + //70 => { Items.BURN_DRIVE, 70 }, { Items.CHILL_DRIVE, 70 }, { Items.DOUSE_DRIVE, 70 }, { Items.DRAGON_FANG, 70 }, { Items.POISON_BARB, 70 }, { Items.POWER_ANKLET, 70 }, { Items.POWER_BAND, 70 }, { Items.POWER_BELT, 70 }, { Items.POWER_BRACER, 70 }, { Items.POWER_LENS, 70 }, - { Items.POWER_WEIGHT, 70 }, { Items.SHOCK_DRIVE, 70 }, - //60 => + { Items.POWER_WEIGHT, 70 }, { Items.SHOCK_DRIVE, 70 }, + //60 => { Items.ADAMANT_ORB, 60 }, { Items.DAMP_ROCK, 60 }, { Items.GRISEOUS_ORB, 60 }, { Items.HEAT_ROCK, 60 }, { Items.LUSTROUS_ORB, 60 }, - { Items.MACHO_BRACE, 60 }, { Items.ROCKY_HELMET, 60 }, { Items.STICK, 60 }, - //50 => - { Items.DUBIOUS_DISC, 50 }, { Items.SHARP_BEAK, 50 }, - //40 => - { Items.EVIOLITE, 40 }, { Items.ICY_ROCK, 40 }, { Items.LUCKY_PUNCH, 40 }, - //30 => + { Items.MACHO_BRACE, 60 }, { Items.ROCKY_HELMET, 60 }, { Items.STICK, 60 }, + //50 => + { Items.DUBIOUS_DISC, 50 }, { Items.SHARP_BEAK, 50 }, + //40 => + { Items.EVIOLITE, 40 }, { Items.ICY_ROCK, 40 }, { Items.LUCKY_PUNCH, 40 }, + //30 => { Items.ABILITY_CAPSULE, 30 }, { Items.ABILITY_URGE, 30 }, { Items.ABSORB_BULB, 30 }, { Items.AMAZE_MULCH, 30 }, { Items.AMULET_COIN, 30 }, { Items.ANTIDOTE, 30 }, { Items.AWAKENING, 30 }, { Items.BALM_MUSHROOM, 30 }, { Items.BERRY_JUICE, 30 }, { Items.BIG_MUSHROOM, 30 }, { Items.BIG_NUGGET, 30 }, { Items.BIG_PEARL, 30 }, { Items.BINDING_BAND, 30 }, { Items.BLACK_BELT, 30 }, { Items.BLACK_FLUTE, 30 }, @@ -8852,12 +8853,12 @@ public Dictionary flingarray { Items.X_ATTACK_3, 30 }, { Items.X_ATTACK_6, 30 }, { Items.X_DEFENSE, 30 }, { Items.X_DEFENSE_2, 30 }, { Items.X_DEFENSE_3, 30 }, { Items.X_DEFENSE_6, 30 }, { Items.X_SP_DEF, 30 }, { Items.X_SP_DEF_2, 30 }, { Items.X_SP_DEF_3, 30 }, { Items.X_SP_DEF_6, 30 }, { Items.X_SP_ATK, 30 }, { Items.X_SP_ATK_2, 30 }, { Items.X_SP_ATK_3, 30 }, { Items.X_SP_ATK_6, 30 }, { Items.X_SPEED, 30 }, - { Items.X_SPEED_2, 30 }, { Items.X_SPEED_3, 30 }, { Items.X_SPEED_6, 30 }, { Items.YELLOW_FLUTE, 30 }, { Items.YELLOW_SHARD, 30 }, { Items.ZINC, 30 }, + { Items.X_SPEED_2, 30 }, { Items.X_SPEED_3, 30 }, { Items.X_SPEED_6, 30 }, { Items.YELLOW_FLUTE, 30 }, { Items.YELLOW_SHARD, 30 }, { Items.ZINC, 30 }, //{ Items.X_SPECIAL, 30 }, { Items.X_SPECIAL2, 30 }, { Items.X_SPECIAL_3, 30 }, { Items.X_SPECIAL_6, 30 }, //ToDo: Is X-Special a thing? - //20 => + //20 => { Items.CLEVER_WING, 20 }, { Items.GENIUS_WING, 20 }, { Items.HEALTH_WING, 20 }, { Items.MUSCLE_WING, 20 }, { Items.PRETTY_WING, 20 }, - { Items.RESIST_WING, 20 }, { Items.SWIFT_WING, 20 }, - //10 => + { Items.RESIST_WING, 20 }, { Items.SWIFT_WING, 20 }, + //10 => { Items.AIR_BALLOON, 10 }, { Items.BIG_ROOT, 10 }, { Items.BLUE_SCARF, 10 }, { Items.BRIGHT_POWDER, 10 }, { Items.CHOICE_BAND, 10 }, { Items.CHOICE_SCARF, 10 }, { Items.CHOICE_SPECS, 10 }, { Items.DESTINY_KNOT, 10 }, { Items.EXPERT_BELT, 10 }, { Items.FOCUS_BAND, 10 }, { Items.FOCUS_SASH, 10 }, { Items.FULL_INCENSE, 10 }, { Items.GREEN_SCARF, 10 }, { Items.LAGGING_TAIL, 10 }, { Items.LAX_INCENSE, 10 }, @@ -8871,36 +8872,36 @@ public Dictionary flingarray } } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { if (attacker.Item == 0 || - this.battle.pbIsUnlosableItem(attacker, attacker.Item) || - Game.GameData is IItemCheck i0 && i0.pbIsPokeBall(attacker.Item) || + this.battle.IsUnlosableItem(attacker, attacker.Item) || + Game.GameData is IItemCheck i0 && i0.IsPokeBall(attacker.Item) || this.battle.field.MagicRoom > 0 || attacker.hasWorkingAbility(Abilities.KLUTZ) || attacker.effects.Embargo > 0) return true; foreach (Items i in flingarray.Keys) { //if (flingarray[i] != null){ - // foreach (var j in flingarray[i]){ + // foreach (var j in flingarray[i]){ if (attacker.Item == i) return false; // } //} } - if (Game.GameData is IItemCheck i1 && i1.pbIsBerry(attacker.Item) && - !attacker.pbOpposing1.hasWorkingAbility(Abilities.UNNERVE) && - !attacker.pbOpposing2.hasWorkingAbility(Abilities.UNNERVE)) return false; + if (Game.GameData is IItemCheck i1 && i1.IsBerry(attacker.Item) && + !attacker.Opposing1.hasWorkingAbility(Abilities.UNNERVE) && + !attacker.Opposing2.hasWorkingAbility(Abilities.UNNERVE)) return false; return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { - if (Game.GameData is IItemCheck i0 && i0.pbIsBerry(attacker.Item)) return 10; - if (Game.GameData is IItemCheck i1 && i1.pbIsMegaStone(attacker.Item)) return 80; + if (Game.GameData is IItemCheck i0 && i0.IsBerry(attacker.Item)) return 10; + if (Game.GameData is IItemCheck i1 && i1.IsMegaStone(attacker.Item)) return 80; foreach (Items i in flingarray.Keys) { //if (flingarray[i] != null){ - // foreach (var j in flingarray[i]){ + // foreach (var j in flingarray[i]){ if (attacker.Item == i) return flingarray[i]; //Kernal.ItemData[i].FlingPower.Value; // } //} @@ -8908,92 +8909,92 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return 1; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.Item == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return 0; } attacker.effects.Unburden = true; - battle.pbDisplay(Game._INTL("{1} flung its {2}!", attacker.ToString(), Kernal.ItemData[attacker.Item].Name)); - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + battle.Display(Game._INTL("{1} flung its {2}!", attacker.ToString(), Kernal.ItemData[attacker.Item].Name)); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute && (attacker.hasMoldBreaker() || !opponent.hasWorkingAbility(Abilities.SHIELD_DUST))) { if ((attacker as Combat.Pokemon).hasWorkingBerry()) { - opponent.pbActivateBerryEffect(attacker.Item, false); + opponent.ActivateBerryEffect(attacker.Item, false); } else if (attacker.hasWorkingItem(Items.FLAME_ORB)) { - if (opponent is IBattlerEffect b && b.pbCanBurn(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanBurn(attacker, false, this)) { - b.pbBurn(attacker); + b.Burn(attacker); } } else if (attacker.hasWorkingItem(Items.KINGS_ROCK) || attacker.hasWorkingItem(Items.RAZOR_FANG)) { - if (opponent is IBattlerEffect o) o.pbFlinch(attacker); + if (opponent is IBattlerEffect o) o.Flinch(attacker); } else if (attacker.hasWorkingItem(Items.LIGHT_BALL)) { - if (opponent is IBattlerEffect b && b.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanParalyze(attacker, false, this)) { - b.pbParalyze(attacker); + b.Paralyze(attacker); } } else if (attacker.hasWorkingItem(Items.MENTAL_HERB)) { if (opponent.effects.Attract >= 0) { - if (opponent is IBattlerEffect o) o.pbCureAttract(); - battle.pbDisplay(Game._INTL("{1} got over its infatuation.", opponent.ToString())); + if (opponent is IBattlerEffect o) o.CureAttract(); + battle.Display(Game._INTL("{1} got over its infatuation.", opponent.ToString())); } if (opponent.effects.Taunt > 0) { opponent.effects.Taunt = 0; - battle.pbDisplay(Game._INTL("{1}'s taunt wore off!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s taunt wore off!", opponent.ToString())); } if (opponent.effects.Encore > 0) { opponent.effects.Encore = 0; opponent.effects.EncoreMove = 0; opponent.effects.EncoreIndex = 0; - battle.pbDisplay(Game._INTL("{1}'s encore ended!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s encore ended!", opponent.ToString())); } if (opponent.effects.Torment) { opponent.effects.Torment = false; - battle.pbDisplay(Game._INTL("{1}'s torment wore off!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s torment wore off!", opponent.ToString())); } if (opponent.effects.Disable > 0) { opponent.effects.Disable = 0; - battle.pbDisplay(Game._INTL("{1} is no longer disabled!", opponent.ToString())); + battle.Display(Game._INTL("{1} is no longer disabled!", opponent.ToString())); } if (opponent.effects.HealBlock > 0) { opponent.effects.HealBlock = 0; - battle.pbDisplay(Game._INTL("{1}'s Heal Block wore off!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s Heal Block wore off!", opponent.ToString())); } } else if (attacker.hasWorkingItem(Items.POISON_BARB)) { - if (opponent is IBattlerEffect b && b.pbCanPoison(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanPoison(attacker, false, this)) { - b.pbPoison(attacker); + b.Poison(attacker); } } else if (attacker.hasWorkingItem(Items.TOXIC_ORB)) { - if (opponent is IBattlerEffect b && b.pbCanPoison(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanPoison(attacker, false, this)) { - b.pbPoison(attacker, null, true); + b.Poison(attacker, null, true); } } else if (attacker.hasWorkingItem(Items.WHITE_HERB)) @@ -9011,12 +9012,12 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } } if (!reducedstats) break; - battle.pbDisplay(Game._INTL("{1}'s status is returned to normal!", + battle.Display(Game._INTL("{1}'s status is returned to normal!", opponent.ToString(true))); } } } - attacker.pbConsumeItem(); + attacker.ConsumeItem(); return ret; } } @@ -9029,17 +9030,17 @@ public partial class PokeBattle_Move_0F8 : PokeBattle_Move { public PokeBattle_Move_0F8() : base() { } //public PokeBattle_Move_0F8(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Embargo > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Embargo = 5; - battle.pbDisplay(Game._INTL("{1} can't use items anymore!", opponent.ToString())); + battle.Display(Game._INTL("{1} can't use items anymore!", opponent.ToString())); return 0; } } @@ -9052,19 +9053,19 @@ public partial class PokeBattle_Move_0F9 : PokeBattle_Move { public PokeBattle_Move_0F9() : base() { } //public PokeBattle_Move_0F9(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.field.MagicRoom > 0) { this.battle.field.MagicRoom = 0; - battle.pbDisplay(Game._INTL("The area returned to normal!")); + battle.Display(Game._INTL("The area returned to normal!")); } else { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); this.battle.field.MagicRoom = 5; - battle.pbDisplay(Game._INTL("It created a bizarre area in which Pokémon's held items lose their effects!")); + battle.Display(Game._INTL("It created a bizarre area in which Pokémon's held items lose their effects!")); } return 0; } @@ -9082,15 +9083,15 @@ public override bool isRecoilMove() return true; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { if (!attacker.hasWorkingAbility(Abilities.ROCK_HEAD) && !attacker.hasWorkingAbility(Abilities.MAGIC_GUARD)) { - attacker.pbReduceHP((int)Math.Round(turneffects.TotalDamage / 4.0f)); - battle.pbDisplay(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); + attacker.ReduceHP((int)Math.Round(turneffects.TotalDamage / 4.0f)); + battle.Display(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); } } } @@ -9108,15 +9109,15 @@ public override bool isRecoilMove() return true; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { if (!attacker.hasWorkingAbility(Abilities.ROCK_HEAD) && !attacker.hasWorkingAbility(Abilities.MAGIC_GUARD)) { - attacker.pbReduceHP((int)Math.Round(turneffects.TotalDamage / 3.0f)); - battle.pbDisplay(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); + attacker.ReduceHP((int)Math.Round(turneffects.TotalDamage / 3.0f)); + battle.Display(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); } } } @@ -9135,15 +9136,15 @@ public override bool isRecoilMove() return true; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { if (!attacker.hasWorkingAbility(Abilities.ROCK_HEAD) && !attacker.hasWorkingAbility(Abilities.MAGIC_GUARD)) { - attacker.pbReduceHP((int)Math.Round(turneffects.TotalDamage / 2.0f)); - battle.pbDisplay(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); + attacker.ReduceHP((int)Math.Round(turneffects.TotalDamage / 2.0f)); + battle.Display(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); } } } @@ -9162,25 +9163,25 @@ public override bool isRecoilMove() return true; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { if (!attacker.hasWorkingAbility(Abilities.ROCK_HEAD) && !attacker.hasWorkingAbility(Abilities.MAGIC_GUARD)) { - attacker.pbReduceHP((int)Math.Round(turneffects.TotalDamage / 3.0f)); - battle.pbDisplay(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); + attacker.ReduceHP((int)Math.Round(turneffects.TotalDamage / 3.0f)); + battle.Display(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); } } } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanParalyze(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanParalyze(attacker, false, this)) { - b.pbParalyze(attacker); + b.Paralyze(attacker); } } } @@ -9198,25 +9199,25 @@ public override bool isRecoilMove() return true; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { if (!attacker.hasWorkingAbility(Abilities.ROCK_HEAD) && !attacker.hasWorkingAbility(Abilities.MAGIC_GUARD)) { - attacker.pbReduceHP((int)Math.Round(turneffects.TotalDamage / 3.0f)); - battle.pbDisplay(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); + attacker.ReduceHP((int)Math.Round(turneffects.TotalDamage / 3.0f)); + battle.Display(Game._INTL("{1} is damaged by recoil!", attacker.ToString())); } } } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanBurn(attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanBurn(attacker, false, this)) { - b.pbBurn(attacker); + b.Burn(attacker); } } } @@ -9228,34 +9229,34 @@ public partial class PokeBattle_Move_0FF : PokeBattle_Move { public PokeBattle_Move_0FF() : base() { } //public PokeBattle_Move_0FF(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - switch (this.battle.pbWeather) + switch (this.battle.Weather) { case Weather.HEAVYRAIN: - battle.pbDisplay(Game._INTL("There is no relief from this heavy rain!")); + battle.Display(Game._INTL("There is no relief from this heavy rain!")); return -1; case Weather.HARSHSUN: - battle.pbDisplay(Game._INTL("The extremely harsh sunlight was not lessened at all!")); + battle.Display(Game._INTL("The extremely harsh sunlight was not lessened at all!")); return -1; case Weather.STRONGWINDS: - battle.pbDisplay(Game._INTL("The mysterious air current blows on regardless!")); + battle.Display(Game._INTL("The mysterious air current blows on regardless!")); return -1; case Weather.SUNNYDAY: - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.weather = Weather.SUNNYDAY; this.battle.weatherduration = 5; if (attacker.hasWorkingItem(Items.HEAT_ROCK)) this.battle.weatherduration = 8; - this.battle.pbCommonAnimation("Sunny", null, null); - battle.pbDisplay(Game._INTL("The sunlight turned harsh!")); + this.battle.CommonAnimation("Sunny", null, null); + battle.Display(Game._INTL("The sunlight turned harsh!")); return 0; } } @@ -9267,35 +9268,35 @@ public partial class PokeBattle_Move_100 : PokeBattle_Move { public PokeBattle_Move_100() : base() { } //public PokeBattle_Move_100(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { switch (this.battle.weather) { case Weather.HEAVYRAIN: - battle.pbDisplay(Game._INTL("There is no relief from this heavy rain!")); + battle.Display(Game._INTL("There is no relief from this heavy rain!")); return -1; case Weather.HARSHSUN: - battle.pbDisplay(Game._INTL("The extremely harsh sunlight was not lessened at all!")); + battle.Display(Game._INTL("The extremely harsh sunlight was not lessened at all!")); return -1; case Weather.STRONGWINDS: - battle.pbDisplay(Game._INTL("The mysterious air current blows on regardless!")); + battle.Display(Game._INTL("The mysterious air current blows on regardless!")); return -1; case Weather.RAINDANCE: - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; default: break; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.weather = Weather.RAINDANCE; this.battle.weatherduration = 5; if (attacker.hasWorkingItem(Items.DAMP_ROCK)) this.battle.weatherduration = 8; - this.battle.pbCommonAnimation("Rain", null, null); - battle.pbDisplay(Game._INTL("It started to rain!")); + this.battle.CommonAnimation("Rain", null, null); + battle.Display(Game._INTL("It started to rain!")); return 0; } } @@ -9307,35 +9308,35 @@ public partial class PokeBattle_Move_101 : PokeBattle_Move { public PokeBattle_Move_101() : base() { } //public PokeBattle_Move_101(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - switch (this.battle.pbWeather) + switch (this.battle.Weather) { case Weather.HEAVYRAIN: - battle.pbDisplay(Game._INTL("There is no relief from this heavy rain!")); + battle.Display(Game._INTL("There is no relief from this heavy rain!")); return -1; case Weather.HARSHSUN: - battle.pbDisplay(Game._INTL("The extremely harsh sunlight was not lessened at all!")); + battle.Display(Game._INTL("The extremely harsh sunlight was not lessened at all!")); return -1; case Weather.STRONGWINDS: - battle.pbDisplay(Game._INTL("The mysterious air current blows on regardless!")); + battle.Display(Game._INTL("The mysterious air current blows on regardless!")); return -1; case Weather.SANDSTORM: - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; default: break; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.weather = Weather.SANDSTORM; this.battle.weatherduration = 5; if (attacker.hasWorkingItem(Items.SMOOTH_ROCK)) this.battle.weatherduration = 8; - this.battle.pbCommonAnimation("Sandstorm", null, null); - battle.pbDisplay(Game._INTL("A sandstorm brewed!")); + this.battle.CommonAnimation("Sandstorm", null, null); + battle.Display(Game._INTL("A sandstorm brewed!")); return 0; } } @@ -9347,35 +9348,35 @@ public partial class PokeBattle_Move_102 : PokeBattle_Move { public PokeBattle_Move_102() : base() { } //public PokeBattle_Move_102(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { switch (this.battle.weather) { case Weather.HEAVYRAIN: - battle.pbDisplay(Game._INTL("There is no relief from this heavy rain!")); + battle.Display(Game._INTL("There is no relief from this heavy rain!")); return -1; case Weather.HARSHSUN: - battle.pbDisplay(Game._INTL("The extremely harsh sunlight was not lessened at all!")); + battle.Display(Game._INTL("The extremely harsh sunlight was not lessened at all!")); return -1; case Weather.STRONGWINDS: - battle.pbDisplay(Game._INTL("The mysterious air current blows on regardless!")); + battle.Display(Game._INTL("The mysterious air current blows on regardless!")); return -1; case Weather.HAIL: - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; default: break; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.weather = Weather.HAIL; this.battle.weatherduration = 5; if (attacker.hasWorkingItem(Items.ICY_ROCK)) this.battle.weatherduration = 8; - this.battle.pbCommonAnimation("Hail", null, null); - battle.pbDisplay(Game._INTL("It started to hail!")); + this.battle.CommonAnimation("Hail", null, null); + battle.Display(Game._INTL("It started to hail!")); return 0; } } @@ -9387,23 +9388,23 @@ public partial class PokeBattle_Move_103 : PokeBattle_Move { public PokeBattle_Move_103() : base() { } //public PokeBattle_Move_103(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOpposingSide.Spikes >= 3) + if (attacker.OpposingSide.Spikes >= 3) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbOpposingSide.Spikes += 1; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.Spikes += 1; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Spikes were scattered all around the opposing team's feet!")); + battle.Display(Game._INTL("Spikes were scattered all around the opposing team's feet!")); } else { - battle.pbDisplay(Game._INTL("Spikes were scattered all around your team's feet!")); + battle.Display(Game._INTL("Spikes were scattered all around your team's feet!")); } return 0; } @@ -9417,23 +9418,23 @@ public partial class PokeBattle_Move_104 : PokeBattle_Move { public PokeBattle_Move_104() : base() { } //public PokeBattle_Move_104(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOpposingSide.ToxicSpikes >= 2) + if (attacker.OpposingSide.ToxicSpikes >= 2) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbOpposingSide.ToxicSpikes += 1; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.ToxicSpikes += 1; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Poison spikes were scattered all around the opposing team's feet!")); + battle.Display(Game._INTL("Poison spikes were scattered all around the opposing team's feet!")); } else { - battle.pbDisplay(Game._INTL("Poison spikes were scattered all around your team's feet!")); + battle.Display(Game._INTL("Poison spikes were scattered all around your team's feet!")); } return 0; } @@ -9446,23 +9447,23 @@ public partial class PokeBattle_Move_105 : PokeBattle_Move { public PokeBattle_Move_105() : base() { } //public PokeBattle_Move_105(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOpposingSide.StealthRock) + if (attacker.OpposingSide.StealthRock) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbOpposingSide.StealthRock = true; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.StealthRock = true; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Pointed stones float in the air around the opposing team!")); + battle.Display(Game._INTL("Pointed stones float in the air around the opposing team!")); } else { - battle.pbDisplay(Game._INTL("Pointed stones float in the air around your team!")); + battle.Display(Game._INTL("Pointed stones float in the air around your team!")); } return 0; } @@ -9477,13 +9478,13 @@ public partial class PokeBattle_Move_106 : PokeBattle_Move { public PokeBattle_Move_106() : base() { } //public PokeBattle_Move_106(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbOnStartUse(IBattler attacker) + public override bool OnStartUse(IBattler attacker) { this.doubledamage = false; this.overridetype = false; if (attacker.effects.FirstPledge == Attack.Data.Effects.x146 || // Fire Pledge attacker.effects.FirstPledge == Attack.Data.Effects.x145) // Water Pledge { - battle.pbDisplay(Game._INTL("The two moves have become one! It's a combined move!")); + battle.Display(Game._INTL("The two moves have become one! It's a combined move!")); this.doubledamage = true; if (attacker.effects.FirstPledge == Attack.Data.Effects.x146) // Fire Pledge { @@ -9493,7 +9494,7 @@ public override bool pbOnStartUse(IBattler attacker) return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (this.doubledamage) { @@ -9502,38 +9503,38 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } - public override Types pbModifyType(Types type, IBattler attacker, IBattler opponent) + public override Types ModifyType(Types type, IBattler attacker, IBattler opponent) { if (this.overridetype) { type = Types.FIRE; } - return base.pbModifyType(type, attacker, opponent); + return base.ModifyType(type, attacker, opponent); } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (!this.battle.doublebattle || attacker.pbPartner.Species == Pokemons.NONE || attacker.pbPartner.isFainted()) + if (!this.battle.doublebattle || attacker.Partner.Species == Pokemons.NONE || attacker.Partner.isFainted()) { attacker.effects.FirstPledge = 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } // Combined move's effect if (attacker.effects.FirstPledge == Attack.Data.Effects.x146) // Fire Pledge { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - attacker.pbOpposingSide.SeaOfFire = 4; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.SeaOfFire = 4; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("A sea of fire enveloped the opposing team!")); - this.battle.pbCommonAnimation("SeaOfFireOpp", null, null); + battle.Display(Game._INTL("A sea of fire enveloped the opposing team!")); + this.battle.CommonAnimation("SeaOfFireOpp", null, null); } else { - battle.pbDisplay(Game._INTL("A sea of fire enveloped your team!")); - this.battle.pbCommonAnimation("SeaOfFire", null, null); + battle.Display(Game._INTL("A sea of fire enveloped your team!")); + this.battle.CommonAnimation("SeaOfFire", null, null); } } @@ -9542,19 +9543,19 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } else if (attacker.effects.FirstPledge == Attack.Data.Effects.x145)// Water Pledge { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - attacker.pbOpposingSide.Swamp = 4; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.Swamp = 4; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("A swamp enveloped the opposing team!")); - this.battle.pbCommonAnimation("SwampOpp", null, null); + battle.Display(Game._INTL("A swamp enveloped the opposing team!")); + this.battle.CommonAnimation("SwampOpp", null, null); } else { - battle.pbDisplay(Game._INTL("A swamp enveloped your team!")); - this.battle.pbCommonAnimation("Swamp", null, null); + battle.Display(Game._INTL("A swamp enveloped your team!")); + this.battle.CommonAnimation("Swamp", null, null); } } @@ -9564,14 +9565,14 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = // Set up partner for a combined move attacker.effects.FirstPledge = 0; Attack.Data.Effects partnermove = Attack.Data.Effects.NONE; //-1; - if ((int)this.battle.choices[attacker.pbPartner.Index].Action == 1) // Chose a move + if ((int)this.battle.choices[attacker.Partner.Index].Action == 1) // Chose a move { - if (!attacker.pbPartner.hasMovedThisRound()) + if (!attacker.Partner.hasMovedThisRound()) { - Moves move = this.battle.choices[attacker.pbPartner.Index].Move.id; + Moves move = this.battle.choices[attacker.Partner.Index].Move.id; if (move > 0) { - partnermove = this.battle.choices[attacker.pbPartner.Index].Move.Effect; + partnermove = this.battle.choices[attacker.Partner.Index].Move.Effect; } } @@ -9579,23 +9580,23 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (partnermove == Attack.Data.Effects.x146 || // Fire Pledge partnermove == Attack.Data.Effects.x145) // Water Pledge { - battle.pbDisplay(Game._INTL("{1} is waiting for {2}'s move...", attacker.ToString(), attacker.pbPartner.ToString(true))); - attacker.pbPartner.effects.FirstPledge = this.Effect;//(Attack.Effect) - attacker.pbPartner.effects.MoveNext = true; + battle.Display(Game._INTL("{1} is waiting for {2}'s move...", attacker.ToString(), attacker.Partner.ToString(true))); + attacker.Partner.effects.FirstPledge = this.Effect;//(Attack.Effect) + attacker.Partner.effects.MoveNext = true; return 0; } // Use the move on its own - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.overridetype) { - base.pbShowAnimation(Moves.FIRE_PLEDGE, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(Moves.FIRE_PLEDGE, attacker, opponent, hitnum, alltargets, showanimation); } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -9608,13 +9609,13 @@ public partial class PokeBattle_Move_107 : PokeBattle_Move { public PokeBattle_Move_107() : base() { } //public PokeBattle_Move_107(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbOnStartUse(IBattler attacker) + public override bool OnStartUse(IBattler attacker) { this.doubledamage = false; this.overridetype = false; if (attacker.effects.FirstPledge == Attack.Data.Effects.x147 || // Grass Pledge attacker.effects.FirstPledge == Attack.Data.Effects.x145) // Water Pledge { - battle.pbDisplay(Game._INTL("The two moves have become one! It's a combined move!")); + battle.Display(Game._INTL("The two moves have become one! It's a combined move!")); this.doubledamage = true; if (attacker.effects.FirstPledge == Attack.Data.Effects.x145) // Water Pledge { @@ -9624,7 +9625,7 @@ public override bool pbOnStartUse(IBattler attacker) return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (this.doubledamage) { @@ -9633,40 +9634,40 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } - public override Types pbModifyType(Types type, IBattler attacker, IBattler opponent) + public override Types ModifyType(Types type, IBattler attacker, IBattler opponent) { if (this.overridetype) { type = Types.WATER; } - return base.pbModifyType(type, attacker, opponent); + return base.ModifyType(type, attacker, opponent); } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (!this.battle.doublebattle || attacker.pbPartner.Species == Pokemons.NONE || attacker.pbPartner.isFainted()) + if (!this.battle.doublebattle || attacker.Partner.Species == Pokemons.NONE || attacker.Partner.isFainted()) { attacker.effects.FirstPledge = 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } // Combined move's effect if (attacker.effects.FirstPledge == Attack.Data.Effects.x147) // Grass Pledge { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - attacker.pbOpposingSide.SeaOfFire = 4; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.SeaOfFire = 4; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("A sea of fire enveloped the opposing team!")); - this.battle.pbCommonAnimation("SeaOfFireOpp", null, null); + battle.Display(Game._INTL("A sea of fire enveloped the opposing team!")); + this.battle.CommonAnimation("SeaOfFireOpp", null, null); } else { - battle.pbDisplay(Game._INTL("A sea of fire enveloped your team!")); - this.battle.pbCommonAnimation("SeaOfFire", null, null); + battle.Display(Game._INTL("A sea of fire enveloped your team!")); + this.battle.CommonAnimation("SeaOfFire", null, null); } } @@ -9675,19 +9676,19 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } else if (attacker.effects.FirstPledge == Attack.Data.Effects.x145) // Water Pledge { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - attacker.pbOwnSide.Rainbow = 4; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OwnSide.Rainbow = 4; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("A rainbow appeared in the sky on your team's side!")); - this.battle.pbCommonAnimation("Rainbow", null, null); + battle.Display(Game._INTL("A rainbow appeared in the sky on your team's side!")); + this.battle.CommonAnimation("Rainbow", null, null); } else { - battle.pbDisplay(Game._INTL("A rainbow appeared in the sky on the opposing team's side!")); - this.battle.pbCommonAnimation("RainbowOpp", null, null); + battle.Display(Game._INTL("A rainbow appeared in the sky on the opposing team's side!")); + this.battle.CommonAnimation("RainbowOpp", null, null); } } @@ -9697,14 +9698,14 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = // Set up partner for a combined move attacker.effects.FirstPledge = 0; Attack.Data.Effects partnermove = Attack.Data.Effects.NONE; //-1; - if ((int)this.battle.choices[attacker.pbPartner.Index].Action == 1) // Chose a move + if ((int)this.battle.choices[attacker.Partner.Index].Action == 1) // Chose a move { - if (!attacker.pbPartner.hasMovedThisRound()) + if (!attacker.Partner.hasMovedThisRound()) { - Moves move = this.battle.choices[attacker.pbPartner.Index].Move.id; - if (move > 0) //move && + Moves move = this.battle.choices[attacker.Partner.Index].Move.id; + if (move > 0) //move && { - partnermove = this.battle.choices[attacker.pbPartner.Index].Move.Effect; + partnermove = this.battle.choices[attacker.Partner.Index].Move.Effect; } } @@ -9712,23 +9713,23 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (partnermove == Attack.Data.Effects.x147 || // Grass Pledge partnermove == Attack.Data.Effects.x145) // Water Pledge { - battle.pbDisplay(Game._INTL("{1} is waiting for {2}'s move...", attacker.ToString(), attacker.pbPartner.ToString(true))); - attacker.pbPartner.effects.FirstPledge = this.Effect;//(Attack.Effect) - attacker.pbPartner.effects.MoveNext = true; + battle.Display(Game._INTL("{1} is waiting for {2}'s move...", attacker.ToString(), attacker.Partner.ToString(true))); + attacker.Partner.effects.FirstPledge = this.Effect;//(Attack.Effect) + attacker.Partner.effects.MoveNext = true; return 0; } // Use the move on its own - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.overridetype) { - base.pbShowAnimation(Moves.WATER_PLEDGE, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(Moves.WATER_PLEDGE, attacker, opponent, hitnum, alltargets, showanimation); } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -9741,13 +9742,13 @@ public partial class PokeBattle_Move_108 : PokeBattle_Move { public PokeBattle_Move_108() : base() { } //public PokeBattle_Move_108(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbOnStartUse(IBattler attacker) + public override bool OnStartUse(IBattler attacker) { this.doubledamage = false; this.overridetype = false; if (attacker.effects.FirstPledge == Attack.Data.Effects.x147 || // Grass Pledge attacker.effects.FirstPledge == Attack.Data.Effects.x146) // Fire Pledge { - battle.pbDisplay(Game._INTL("The two moves have become one! It's a combined move!")); + battle.Display(Game._INTL("The two moves have become one! It's a combined move!")); this.doubledamage = true; if (attacker.effects.FirstPledge == Attack.Data.Effects.x147) // Grass Pledge { @@ -9757,7 +9758,7 @@ public override bool pbOnStartUse(IBattler attacker) return true; } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (this.doubledamage) { @@ -9766,39 +9767,39 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } - public override Types pbModifyType(Types type, IBattler attacker, IBattler opponent) + public override Types ModifyType(Types type, IBattler attacker, IBattler opponent) { if (this.overridetype) { type = Types.GRASS; } - return base.pbModifyType(type, attacker, opponent); + return base.ModifyType(type, attacker, opponent); } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (!this.battle.doublebattle || attacker.pbPartner.Species == Pokemons.NONE || attacker.pbPartner.isFainted()) + if (!this.battle.doublebattle || attacker.Partner.Species == Pokemons.NONE || attacker.Partner.isFainted()) { attacker.effects.FirstPledge = 0; - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } // Combined move's effect if (attacker.effects.FirstPledge == Attack.Data.Effects.x147) // Grass Pledge { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - attacker.pbOpposingSide.Swamp = 4; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.Swamp = 4; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("A swamp enveloped the opposing team!")); - this.battle.pbCommonAnimation("SwampOpp", null, null); + battle.Display(Game._INTL("A swamp enveloped the opposing team!")); + this.battle.CommonAnimation("SwampOpp", null, null); } else { - battle.pbDisplay(Game._INTL("A swamp enveloped your team!")); - this.battle.pbCommonAnimation("Swamp", null, null); + battle.Display(Game._INTL("A swamp enveloped your team!")); + this.battle.CommonAnimation("Swamp", null, null); } } @@ -9807,19 +9808,19 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } else if (attacker.effects.FirstPledge == Attack.Data.Effects.x146) // Fire Pledge { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - attacker.pbOwnSide.Rainbow = 4; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OwnSide.Rainbow = 4; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("A rainbow appeared in the sky on your team's side!")); - this.battle.pbCommonAnimation("Rainbow", null, null); + battle.Display(Game._INTL("A rainbow appeared in the sky on your team's side!")); + this.battle.CommonAnimation("Rainbow", null, null); } else { - battle.pbDisplay(Game._INTL("A rainbow appeared in the sky on the opposing team's side!")); - this.battle.pbCommonAnimation("RainbowOpp", null, null); + battle.Display(Game._INTL("A rainbow appeared in the sky on the opposing team's side!")); + this.battle.CommonAnimation("RainbowOpp", null, null); } } @@ -9829,36 +9830,36 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = // Set up partner for a combined move attacker.effects.FirstPledge = 0; Attack.Data.Effects partnermove = Attack.Data.Effects.NONE; //-1; - if ((int)this.battle.choices[attacker.pbPartner.Index].Action == 1) // Chose a move + if ((int)this.battle.choices[attacker.Partner.Index].Action == 1) // Chose a move { - if (!attacker.pbPartner.hasMovedThisRound()) + if (!attacker.Partner.hasMovedThisRound()) { - Moves move = this.battle.choices[attacker.pbPartner.Index].Move.id; - if (move > 0) //move != null && + Moves move = this.battle.choices[attacker.Partner.Index].Move.id; + if (move > 0) //move != null && { - partnermove = this.battle.choices[attacker.pbPartner.Index].Move.Effect; + partnermove = this.battle.choices[attacker.Partner.Index].Move.Effect; } } } if (partnermove == Attack.Data.Effects.x147 || // Grass Pledge partnermove == Attack.Data.Effects.x146) // Fire Pledge { - battle.pbDisplay(Game._INTL("{1} is waiting for {2}'s move...", attacker.ToString(), attacker.pbPartner.ToString(true))); - attacker.pbPartner.effects.FirstPledge = this.Effect;//(Attack.Effect) - attacker.pbPartner.effects.MoveNext = true; + battle.Display(Game._INTL("{1} is waiting for {2}'s move...", attacker.ToString(), attacker.Partner.ToString(true))); + attacker.Partner.effects.FirstPledge = this.Effect;//(Attack.Effect) + attacker.Partner.effects.MoveNext = true; return 0; } // Use the move on its own - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.overridetype) { - base.pbShowAnimation(Moves.GRASS_PLEDGE, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(Moves.GRASS_PLEDGE, attacker, opponent, hitnum, alltargets, showanimation); } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -9869,18 +9870,18 @@ public partial class PokeBattle_Move_109 : PokeBattle_Move { public PokeBattle_Move_109() : base() { } //public PokeBattle_Move_109(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { - if (this.battle.pbOwnedByPlayer(attacker.Index)) + if (this.battle.OwnedByPlayer(attacker.Index)) { this.battle.extramoney += 5 * attacker.Level; if (this.battle.extramoney > Core.MAXMONEY) this.battle.extramoney = Core.MAXMONEY; } - battle.pbDisplay(Game._INTL("Coins were scattered everywhere!")); + battle.Display(Game._INTL("Coins were scattered everywhere!")); } return ret; } @@ -9893,50 +9894,50 @@ public partial class PokeBattle_Move_10A : PokeBattle_Move { public PokeBattle_Move_10A() : base() { } //public PokeBattle_Move_10A(Battle battle, Attack.Move move) : base(battle, move) { } - public int pbCalcDamage(IBattler attacker, IBattler opponent) + public int CalcDamage(IBattler attacker, IBattler opponent) { - return base.pbCalcDamage(attacker, opponent, Core.NOREFLECT); + return base.CalcDamage(attacker, opponent, Core.NOREFLECT); } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (attacker.pbOpposingSide.Reflect > 0) + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (attacker.OpposingSide.Reflect > 0) { - attacker.pbOpposingSide.Reflect = 0; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.Reflect = 0; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("The opposing team's Reflect wore off!")); + battle.Display(Game._INTL("The opposing team's Reflect wore off!")); } else { - battle.pbDisplayPaused(Game._INTL("Your team's Reflect wore off!")); + battle.DisplayPaused(Game._INTL("Your team's Reflect wore off!")); } } - if (attacker.pbOpposingSide.LightScreen > 0) + if (attacker.OpposingSide.LightScreen > 0) { - attacker.pbOpposingSide.LightScreen = 0; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.LightScreen = 0; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("The opposing team's Light Screen wore off!")); + battle.Display(Game._INTL("The opposing team's Light Screen wore off!")); } else { - battle.pbDisplay(Game._INTL("Your team's Light Screen wore off!")); + battle.Display(Game._INTL("Your team's Light Screen wore off!")); } } return ret; } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOpposingSide.Reflect > 0 || - attacker.pbOpposingSide.LightScreen > 0) + if (attacker.OpposingSide.Reflect > 0 || + attacker.OpposingSide.LightScreen > 0) { - base.pbShowAnimation(id, attacker, opponent, 1, alltargets, showanimation); // Wall-breaking anim; + base.ShowAnimation(id, attacker, opponent, 1, alltargets, showanimation); // Wall-breaking anim; } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -9966,27 +9967,27 @@ public partial class PokeBattle_Move_10C : PokeBattle_Move { public PokeBattle_Move_10C() : base() { } //public PokeBattle_Move_10C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.Substitute > 0) { - battle.pbDisplay(Game._INTL("{1} already has a substitute!", attacker.ToString())); + battle.Display(Game._INTL("{1} already has a substitute!", attacker.ToString())); return -1; } int sublife = (int)Math.Max(Math.Floor(attacker.TotalHP / 4f), 1); if (attacker.HP <= sublife) { - battle.pbDisplay(Game._INTL("It was too weak to make a substitute!")); + battle.Display(Game._INTL("It was too weak to make a substitute!")); return -1; } - attacker.pbReduceHP(sublife, false, false); + attacker.ReduceHP(sublife, false, false); - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.MultiTurn = 0; attacker.effects.MultiTurnAttack = 0; attacker.effects.Substitute = sublife; - battle.pbDisplay(Game._INTL("{1} put in a substitute!", attacker.ToString())); + battle.Display(Game._INTL("{1} put in a substitute!", attacker.ToString())); return 0; } } @@ -10002,51 +10003,51 @@ public partial class PokeBattle_Move_10D : PokeBattle_Move { public PokeBattle_Move_10D() : base() { } //public PokeBattle_Move_10D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { bool failed = false; - if (attacker.pbHasType(Types.GHOST)) + if (attacker.HasType(Types.GHOST)) { if (opponent.effects.Curse || - opponent.pbOwnSide.CraftyShield) + opponent.OwnSide.CraftyShield) { failed = true; } else { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("{1} cut its own HP and laid a curse on {2}!", attacker.ToString(), opponent.ToString(true))); + battle.Display(Game._INTL("{1} cut its own HP and laid a curse on {2}!", attacker.ToString(), opponent.ToString(true))); opponent.effects.Curse = true; - attacker.pbReduceHP((int)Math.Floor(attacker.TotalHP / 2f)); + attacker.ReduceHP((int)Math.Floor(attacker.TotalHP / 2f)); } } else { - bool lowerspeed = attacker is IBattlerEffect b0 && b0.pbCanReduceStatStage(Stats.SPEED, attacker, false, this); - bool raiseatk = attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this); - bool raisedef = attacker is IBattlerEffect b2 && b2.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this); + bool lowerspeed = attacker is IBattlerEffect b0 && b0.CanReduceStatStage(Stats.SPEED, attacker, false, this); + bool raiseatk = attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this); + bool raisedef = attacker is IBattlerEffect b2 && b2.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this); if (!lowerspeed && !raiseatk && !raisedef) { failed = true; } else { - pbShowAnimation(this.id, attacker, null, 1, alltargets, showanimation); // Non-Ghost move animation; + ShowAnimation(this.id, attacker, null, 1, alltargets, showanimation); // Non-Ghost move animation; if (lowerspeed) { - (attacker as IBattlerEffect).pbReduceStat(Stats.SPEED, 1, attacker, false, this); + (attacker as IBattlerEffect).ReduceStat(Stats.SPEED, 1, attacker, false, this); } bool showanim = true; if (raiseatk) { - (attacker as IBattlerEffect).pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + (attacker as IBattlerEffect).IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } if (raisedef) { - (attacker as IBattlerEffect).pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + (attacker as IBattlerEffect).IncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } @@ -10054,7 +10055,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (failed) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); } return failed ? -1 : 0; } @@ -10067,23 +10068,23 @@ public partial class PokeBattle_Move_10E : PokeBattle_Move { public PokeBattle_Move_10E() : base() { } //public PokeBattle_Move_10E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { foreach (var i in opponent.moves) { if (i.id == opponent.lastMoveUsed && i.id > 0 && i.PP > 0) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); int reduction = Math.Min(4, i.PP); - opponent.pbSetPP(i, (byte)(i.PP - reduction)); + opponent.SetPP(i, (byte)(i.PP - reduction)); - battle.pbDisplay(Game._INTL("It reduced the PP of {1}'s {2} by {3}!", opponent.ToString(true), Kernal.MoveData[i.id].Name, ((int)reduction).ToString())); + battle.Display(Game._INTL("It reduced the PP of {1}'s {2} by {3}!", opponent.ToString(true), Kernal.MoveData[i.id].Name, ((int)reduction).ToString())); return 0; } } - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } } @@ -10095,18 +10096,18 @@ public partial class PokeBattle_Move_10F : PokeBattle_Move { public PokeBattle_Move_10F() : base() { } //public PokeBattle_Move_10F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.Status != Status.SLEEP || opponent.effects.Nightmare || (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker))) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Nightmare = true; - battle.pbDisplay(Game._INTL("{1} began having a nightmare!", opponent.ToString())); + battle.Display(Game._INTL("{1} began having a nightmare!", opponent.ToString())); return 0; } } @@ -10119,7 +10120,7 @@ public partial class PokeBattle_Move_110 : PokeBattle_Move { public PokeBattle_Move_110() : base() { } //public PokeBattle_Move_110(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { @@ -10128,7 +10129,7 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff string mtattack = Game._INTL(attacker.effects.MultiTurnAttack.ToString(TextScripts.Name)); IBattler mtuser = this.battle.battlers[attacker.effects.MultiTurnUser]; - battle.pbDisplay(Game._INTL("{1} got free of {2}'s {3}!", attacker.ToString(), mtuser.ToString(true), mtattack)); + battle.Display(Game._INTL("{1} got free of {2}'s {3}!", attacker.ToString(), mtuser.ToString(true), mtattack)); attacker.effects.MultiTurn = 0; attacker.effects.MultiTurnAttack = 0; attacker.effects.MultiTurnUser = -1; @@ -10136,29 +10137,29 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff if (attacker.effects.LeechSeed >= 0) { attacker.effects.LeechSeed = -1; - battle.pbDisplay(Game._INTL("{1} shed Leech Seed!", attacker.ToString())); + battle.Display(Game._INTL("{1} shed Leech Seed!", attacker.ToString())); } - if (attacker.pbOwnSide.StealthRock) + if (attacker.OwnSide.StealthRock) { - attacker.pbOwnSide.StealthRock = false; + attacker.OwnSide.StealthRock = false; - battle.pbDisplay(Game._INTL("{1} blew away stealth rocks!", attacker.ToString())); + battle.Display(Game._INTL("{1} blew away stealth rocks!", attacker.ToString())); } - if (attacker.pbOwnSide.Spikes > 0) + if (attacker.OwnSide.Spikes > 0) { - attacker.pbOwnSide.Spikes = 0; - battle.pbDisplay(Game._INTL("{1} blew away Spikes!", attacker.ToString())); + attacker.OwnSide.Spikes = 0; + battle.Display(Game._INTL("{1} blew away Spikes!", attacker.ToString())); } - if (attacker.pbOwnSide.ToxicSpikes > 0) + if (attacker.OwnSide.ToxicSpikes > 0) { - attacker.pbOwnSide.ToxicSpikes = 0; - battle.pbDisplay(Game._INTL("{1} blew away poison spikes!", attacker.ToString())); + attacker.OwnSide.ToxicSpikes = 0; + battle.Display(Game._INTL("{1} blew away poison spikes!", attacker.ToString())); } - if (attacker.pbOwnSide.StickyWeb) + if (attacker.OwnSide.StickyWeb) { - attacker.pbOwnSide.StickyWeb = false; + attacker.OwnSide.StickyWeb = false; - battle.pbDisplay(Game._INTL("{1} blew away sticky webs!", attacker.ToString())); + battle.Display(Game._INTL("{1} blew away sticky webs!", attacker.ToString())); } } } @@ -10171,27 +10172,27 @@ public partial class PokeBattle_Move_111 : PokeBattle_Move { public PokeBattle_Move_111() : base() { } //public PokeBattle_Move_111(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbDisplayUseMessage(IBattler attacker) + public override int DisplayUseMessage(IBattler attacker) { if (this.battle.futuresight) return 0; - return base.pbDisplayUseMessage(attacker); + return base.DisplayUseMessage(attacker); } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.FutureSight > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if (this.battle.futuresight) { // Attack hits - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } /// Attack is launched - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); opponent.effects.FutureSight = 3; opponent.effects.FutureSightMove = this.id; @@ -10201,22 +10202,22 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (id == Moves.FUTURE_SIGHT) { - battle.pbDisplay(Game._INTL("{1} foresaw an attack!", attacker.ToString())); + battle.Display(Game._INTL("{1} foresaw an attack!", attacker.ToString())); } else { - battle.pbDisplay(Game._INTL("{1} chose Doom Desire as its destiny!", attacker.ToString())); + battle.Display(Game._INTL("{1} chose Doom Desire as its destiny!", attacker.ToString())); } return 0; } - public override void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.futuresight) { - base.pbShowAnimation(id, attacker, opponent, 1, alltargets, showanimation); // Hit opponent anim; + base.ShowAnimation(id, attacker, opponent, 1, alltargets, showanimation); // Hit opponent anim; } - base.pbShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); + base.ShowAnimation(id, attacker, opponent, hitnum, alltargets, showanimation); } } @@ -10228,28 +10229,28 @@ public partial class PokeBattle_Move_112 : PokeBattle_Move { public PokeBattle_Move_112() : base() { } //public PokeBattle_Move_112(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.Stockpile >= 3) { - battle.pbDisplay(Game._INTL("{1} can't stockpile any more!", attacker.ToString())); + battle.Display(Game._INTL("{1} can't stockpile any more!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); attacker.effects.Stockpile += 1; - battle.pbDisplay(Game._INTL("{1} stockpiled {2}!",attacker.ToString(), + battle.Display(Game._INTL("{1} stockpiled {2}!",attacker.ToString(), attacker.effects.Stockpile)); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b0.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); attacker.effects.StockpileDef += 1; showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); attacker.effects.StockpileSpDef += 1; showanim = false; } @@ -10265,35 +10266,35 @@ public partial class PokeBattle_Move_113 : PokeBattle_Move { public PokeBattle_Move_113() : base() { } //public PokeBattle_Move_113(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { return (attacker.effects.Stockpile == 0); } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { return 100 * attacker.effects.Stockpile; } - public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) + public override void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects) { if (!attacker.isFainted() && turneffects.TotalDamage > 0) { bool showanim = true; if (attacker.effects.StockpileDef > 0) { - if (attacker is IBattlerEffect b && b.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbReduceStat(Stats.DEFENSE, attacker.effects.StockpileDef, + b.ReduceStat(Stats.DEFENSE, attacker.effects.StockpileDef, attacker, false, this, showanim); showanim = false; } } if (attacker.effects.StockpileSpDef > 0) { - if (attacker is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanReduceStatStage(Stats.SPDEF, attacker, false, this)) { - b.pbReduceStat(Stats.SPDEF, attacker.effects.StockpileSpDef, + b.ReduceStat(Stats.SPDEF, attacker.effects.StockpileSpDef, attacker, false, this, showanim); showanim = false; } @@ -10302,7 +10303,7 @@ public override void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEff attacker.effects.Stockpile = 0; attacker.effects.StockpileDef = 0; attacker.effects.StockpileSpDef = 0; - battle.pbDisplay(Game._INTL("{1}'s stockpiled effect wore off!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stockpiled effect wore off!", attacker.ToString())); } } } @@ -10320,13 +10321,13 @@ public override bool isHealingMove() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { int hpgain = 0; switch (attacker.effects.Stockpile) { case 0: - battle.pbDisplay(Game._INTL("But it failed to swallow a thing!")); + battle.Display(Game._INTL("But it failed to swallow a thing!")); return -1; case 1: hpgain = (int)Math.Floor(attacker.TotalHP / 4f); break; @@ -10340,29 +10341,29 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.effects.StockpileDef == 0 && attacker.effects.StockpileSpDef == 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - if (attacker.pbRecoverHP(hpgain, true) > 0) + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + if (attacker.RecoverHP(hpgain, true) > 0) { - battle.pbDisplay(Game._INTL("{1}'s HP was restored.", attacker.ToString())); + battle.Display(Game._INTL("{1}'s HP was restored.", attacker.ToString())); } bool showanim = true; if (attacker.effects.StockpileDef > 0) { - if (attacker is IBattlerEffect b && b.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbReduceStat(Stats.DEFENSE, attacker.effects.StockpileDef, + b.ReduceStat(Stats.DEFENSE, attacker.effects.StockpileDef, attacker, false, this, showanim); showanim = false; } } if (attacker.effects.StockpileSpDef > 0) { - if (attacker is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanReduceStatStage(Stats.SPDEF, attacker, false, this)) { - b.pbReduceStat(Stats.SPDEF, attacker.effects.StockpileSpDef, + b.ReduceStat(Stats.SPDEF, attacker.effects.StockpileSpDef, attacker, false, this, showanim); showanim = false; } @@ -10371,7 +10372,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = attacker.effects.Stockpile = 0; attacker.effects.StockpileDef = 0; attacker.effects.StockpileSpDef = 0; - battle.pbDisplay(Game._INTL("{1}'s stockpiled effect wore off!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stockpiled effect wore off!", attacker.ToString())); return 0; } } @@ -10383,14 +10384,14 @@ public partial class PokeBattle_Move_115 : PokeBattle_Move { public PokeBattle_Move_115() : base() { } //public PokeBattle_Move_115(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbDisplayUseMessage(IBattler attacker) + public override int DisplayUseMessage(IBattler attacker) { if (attacker.lastHPLost > 0) { - battle.pbDisplayBrief(Game._INTL("{1} lost its focus and couldn't move!", attacker.ToString())); + battle.DisplayBrief(Game._INTL("{1} lost its focus and couldn't move!", attacker.ToString())); return -1; } - return base.pbDisplayUseMessage(attacker); + return base.DisplayUseMessage(attacker); } } @@ -10402,11 +10403,11 @@ public partial class PokeBattle_Move_116 : PokeBattle_Move { public PokeBattle_Move_116() : base() { } //public PokeBattle_Move_116(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { if ((int)this.battle.choices[opponent.Index].Action != 1) return true; // Didn't choose a move IBattleMove oppmove = this.battle.choices[opponent.Index].Move; - if (oppmove.id <= 0 || oppmove.pbIsStatus) return true; + if (oppmove.id <= 0 || oppmove.IsStatus) return true; if (opponent.hasMovedThisRound() && oppmove.Effect != Attack.Data.Effects.x073) return true; // Me First return false; } @@ -10420,21 +10421,21 @@ public partial class PokeBattle_Move_117 : PokeBattle_Move { public PokeBattle_Move_117() : base() { } //public PokeBattle_Move_117(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (!this.battle.doublebattle) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.FollowMe = 1; - if (!attacker.pbPartner.isFainted() && attacker.pbPartner.effects.FollowMe > 0) + if (!attacker.Partner.isFainted() && attacker.Partner.effects.FollowMe > 0) { - attacker.effects.FollowMe = attacker.pbPartner.effects.FollowMe + 1; + attacker.effects.FollowMe = attacker.Partner.effects.FollowMe + 1; } - battle.pbDisplay(Game._INTL("{1} became the center of attention!", attacker.ToString())); + battle.Display(Game._INTL("{1} became the center of attention!", attacker.ToString())); return 0; } } @@ -10447,14 +10448,14 @@ public partial class PokeBattle_Move_118 : PokeBattle_Move { public PokeBattle_Move_118() : base() { } //public PokeBattle_Move_118(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.field.Gravity > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); this.battle.field.Gravity = 5; for (int i = 0; i < 4; i++) @@ -10481,7 +10482,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } } - battle.pbDisplay(Game._INTL("Gravity intensified!")); + battle.Display(Game._INTL("Gravity intensified!")); return 0; } } @@ -10498,19 +10499,19 @@ public override bool UnusableInGravity() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.Ingrain || attacker.effects.SmackDown || attacker.effects.MagnetRise > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.MagnetRise = 5; - battle.pbDisplay(Game._INTL("{1} levitated with electromagnetism!", attacker.ToString())); + battle.Display(Game._INTL("{1} levitated with electromagnetism!", attacker.ToString())); return 0; } } @@ -10527,19 +10528,19 @@ public override bool UnusableInGravity() return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Ingrain || opponent.effects.SmackDown || opponent.effects.Telekinesis > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Telekinesis = 3; - battle.pbDisplay(Game._INTL("{1} was hurled into the air!", opponent.ToString())); + battle.Display(Game._INTL("{1} was hurled into the air!", opponent.ToString())); return 0; } } @@ -10551,18 +10552,18 @@ public partial class PokeBattle_Move_11B : PokeBattle_Move { public PokeBattle_Move_11B() : base() { } //public PokeBattle_Move_11B(Battle battle, Attack.Move move) : base(battle, move) { } - // Handled in Pokemon's pbSuccessCheck, do not edit! + // Handled in Pokemon's SuccessCheck, do not edit! } /// /// Grounds the target while it remains active. (Smack Down, Thousand Arrows) - /// (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. + /// (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. /// public partial class PokeBattle_Move_11C : PokeBattle_Move { public PokeBattle_Move_11C() : base() { } //public PokeBattle_Move_11C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent) + public override int BaseDamage(int basedmg, IBattler attacker, IBattler opponent) { if (Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x09C ||// Fly Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x108 || // Bounce @@ -10574,16 +10575,16 @@ public override int pbBaseDamage(int basedmg, IBattler attacker, IBattler oppone return basedmg; } //ToDo: Double check this one - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && !opponent.damagestate.Substitute && !opponent.effects.Roost) { opponent.effects.SmackDown = true; - bool showmsg = opponent.pbHasType(Types.FLYING) || + bool showmsg = opponent.HasType(Types.FLYING) || opponent.hasWorkingAbility(Abilities.LEVITATE); if (Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x09C ||// Fly Kernal.MoveData[(Moves)opponent.effects.TwoTurnAttack].Effect == Attack.Data.Effects.x108) // Bounce @@ -10598,7 +10599,7 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = { opponent.effects.Telekinesis = 0; showmsg = true; } - if (showmsg) battle.pbDisplay(Game._INTL("{1} fell straight down!", opponent.ToString())); + if (showmsg) battle.Display(Game._INTL("{1} fell straight down!", opponent.ToString())); } return ret; } @@ -10611,7 +10612,7 @@ public partial class PokeBattle_Move_11D : PokeBattle_Move { public PokeBattle_Move_11D() : base() { } //public PokeBattle_Move_11D(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { if (opponent.effects.MoveNext) return true; if ((int)this.battle.choices[opponent.Index].Action != 1) return true; // Didn't choose a move @@ -10621,13 +10622,13 @@ public override bool pbMoveFailed(IBattler attacker, IBattler opponent) return false; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.MoveNext = true; opponent.effects.Quash = false; - battle.pbDisplay(Game._INTL("{1} took the kind offer!", opponent.ToString())); + battle.Display(Game._INTL("{1} took the kind offer!", opponent.ToString())); return 0; } } @@ -10639,7 +10640,7 @@ public partial class PokeBattle_Move_11E : PokeBattle_Move { public PokeBattle_Move_11E() : base() { } //public PokeBattle_Move_11E(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { if (opponent.effects.Quash) return true; if ((int)this.battle.choices[opponent.Index].Action != 1) return true; // Didn't choose a move @@ -10649,13 +10650,13 @@ public override bool pbMoveFailed(IBattler attacker, IBattler opponent) return false; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Quash = true; opponent.effects.MoveNext = false; - battle.pbDisplay(Game._INTL("{1}'s move was postponed!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s move was postponed!", opponent.ToString())); return 0; } } @@ -10668,19 +10669,19 @@ public partial class PokeBattle_Move_11F : PokeBattle_Move { public PokeBattle_Move_11F() : base() { } //public PokeBattle_Move_11F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.field.TrickRoom > 0) { this.battle.field.TrickRoom = 0; - battle.pbDisplay(Game._INTL("{1} reverted the dimensions!", attacker.ToString())); + battle.Display(Game._INTL("{1} reverted the dimensions!", attacker.ToString())); } else { - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); this.battle.field.TrickRoom = 5; - battle.pbDisplay(Game._INTL("{1} twisted the dimensions!", attacker.ToString())); + battle.Display(Game._INTL("{1} twisted the dimensions!", attacker.ToString())); } return 0; } @@ -10690,26 +10691,26 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = /// User switches places with its ally. (Ally Switch) /// /// - /// Code below might not need to be complicated since Battle.Pokemon rewrite + /// Code below might not need to be complicated since Battle.Pokemon rewrite /// stores values in Battle.Battler (position) instead of in Pokemon variable /// public partial class PokeBattle_Move_120 : PokeBattle_Move { public PokeBattle_Move_120() : base() { } //public PokeBattle_Move_120(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (!this.battle.doublebattle || - attacker.pbPartner.Species == Pokemons.NONE || - attacker.pbPartner.isFainted()) + attacker.Partner.Species == Pokemons.NONE || + attacker.Partner.isFainted()) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); IBattler a = this.battle.battlers[attacker.Index]; - IBattler b = this.battle.battlers[attacker.pbPartner.Index]; + IBattler b = this.battle.battlers[attacker.Partner.Index]; IBattler temp = a; a = b; b = temp; // Swap effects that point at the position rather than the Pokémon @@ -10725,186 +10726,186 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = //foreach (BattlerEffects i in effectstoswap) { //a.effects[i], b.effects[i]= b.effects[i], a.effects[i]; - IEffectsBattler atemp = a.effects; - IEffectsBattler btemp = b.effects; - //a.effects.Attract = btemp.Attract ; - //a.effects.BatonPass = btemp.BatonPass ; - //a.effects.Bide = btemp.Bide ; - //a.effects.BideDamage = btemp.BideDamage ; - a.effects.BideTarget = btemp.BideTarget ; - //a.effects.Charge = btemp.Charge ; - //a.effects.ChoiceBand = btemp.ChoiceBand ; - //a.effects.Counter = btemp.Counter ; - a.effects.CounterTarget = btemp.CounterTarget ; - //a.effects.DefenseCurl = btemp.DefenseCurl ; - //a.effects.DestinyBond = btemp.DestinyBond ; - //a.effects.Disable = btemp.Disable ; - //a.effects.DisableMove = btemp.DisableMove ; - //a.effects.Electrify = btemp.Electrify ; - //a.effects.Encore = btemp.Encore ; - //a.effects.EncoreIndex = btemp.EncoreIndex ; - //a.effects.EncoreMove = btemp.EncoreMove ; - //a.effects.Endure = btemp.Endure ; - //a.effects.FirstPledge = btemp.FirstPledge ; - //a.effects.FlashFire = btemp.FlashFire ; - //a.effects.Flinch = btemp.Flinch ; - //a.effects.FollowMe = btemp.FollowMe ; - //a.effects.Foresight = btemp.Foresight ; - //a.effects.FuryCutter = btemp.FuryCutter ; - //a.effects.Grudge = btemp.Grudge ; - //a.effects.HelpingHand = btemp.HelpingHand ; - //a.effects.HyperBeam = btemp.HyperBeam ; - //a.effects.Illusion = btemp.Illusion ; - //a.effects.Imprison = btemp.Imprison ; - //a.effects.KingsShield = btemp.KingsShield ; - a.effects.LeechSeed = btemp.LeechSeed ; - //a.effects.LifeOrb = btemp.LifeOrb ; - //a.effects.LockOn = btemp.LockOn ; - a.effects.LockOnPos = btemp.LockOnPos ; - //a.effects.MagicCoat = btemp.MagicCoat ; - a.effects.MeanLook = btemp.MeanLook ; - //a.effects.MeFirst = btemp.MeFirst ; - //a.effects.Metronome = btemp.Metronome ; - //a.effects.MicleBerry = btemp.MicleBerry ; - //a.effects.Minimize = btemp.Minimize ; - //a.effects.MiracleEye = btemp.MiracleEye ; - //a.effects.MirrorCoat = btemp.MirrorCoat ; - a.effects.MirrorCoatTarget = btemp.MirrorCoatTarget; - //a.effects.MoveNext = btemp.MoveNext ; - //a.effects.MudSport = btemp.MudSport ; - //a.effects.MultiTurn = btemp.MultiTurn ; - //a.effects.MultiTurnAttack = btemp.MultiTurnAttack ; - //a.effects.MultiTurnUser = btemp.MultiTurnUser ; - //a.effects.Nightmare = btemp.Nightmare ; - //a.effects.Outrage = btemp.Outrage ; - //a.effects.ParentalBond = btemp.ParentalBond ; - //a.effects.PickupItem = btemp.PickupItem ; - //a.effects.PickupUse = btemp.PickupUse ; - //a.effects.Pinch = btemp.Pinch ; - //a.effects.Powder = btemp.Powder ; - //a.effects.Protect = btemp.Protect ; - //a.effects.ProtectNegation = btemp.ProtectNegation ; - //a.effects.ProtectRate = btemp.ProtectRate ; - //a.effects.Pursuit = btemp.Pursuit ; - //a.effects.Quash = btemp.Quash ; - //a.effects.Rage = btemp.Rage ; - //a.effects.Revenge = btemp.Revenge ; - //a.effects.Roar = btemp.Roar ; - //a.effects.Rollout = btemp.Rollout ; - //a.effects.Roost = btemp.Roost ; - //a.effects.SkipTurn = btemp.SkipTurn ; - //a.effects.SkyDrop = btemp.SkyDrop ; - //a.effects.SmackDown = btemp.SmackDown ; - //a.effects.Snatch = btemp.Snatch ; - //a.effects.SpikyShield = btemp.SpikyShield ; - //a.effects.Stockpile = btemp.Stockpile ; - //a.effects.StockpileDef = btemp.StockpileDef ; - //a.effects.StockpileSpDef = btemp.StockpileSpDef ; - //a.effects.Taunt = btemp.Taunt ; - //a.effects.Torment = btemp.Torment ; - //a.effects.Toxic = btemp.Toxic ; - //a.effects.Transform = btemp.Transform ; - //a.effects.Truant = btemp.Truant ; - //a.effects.TwoTurnAttack = btemp.TwoTurnAttack ; - //a.effects.Type3 = btemp.Type3 ; - //a.effects.Unburden = btemp.Unburden ; - //a.effects.Uproar = btemp.Uproar ; - //a.effects.Uturn = btemp.Uturn ; - //a.effects.WaterSport = btemp.WaterSport ; - //a.effects.WeightChange = btemp.WeightChange ; - //a.effects.Yawn = btemp.Yawn ; - //b.effects.Attract = atemp.Attract ; - //b.effects.BatonPass = atemp.BatonPass ; - //b.effects.Bide = atemp.Bide ; - //b.effects.BideDamage = atemp.BideDamage ; - b.effects.BideTarget = atemp.BideTarget ; - //b.effects.Charge = atemp.Charge ; - //b.effects.ChoiceBand = atemp.ChoiceBand ; - //b.effects.Counter = atemp.Counter ; - b.effects.CounterTarget = atemp.CounterTarget ; - //b.effects.DefenseCurl = atemp.DefenseCurl ; - //b.effects.DestinyBond = atemp.DestinyBond ; - //b.effects.Disable = atemp.Disable ; - //b.effects.DisableMove = atemp.DisableMove ; - //b.effects.Electrify = atemp.Electrify ; - //b.effects.Encore = atemp.Encore ; - //b.effects.EncoreIndex = atemp.EncoreIndex ; - //b.effects.EncoreMove = atemp.EncoreMove ; - //b.effects.Endure = atemp.Endure ; - //b.effects.FirstPledge = atemp.FirstPledge ; - //b.effects.FlashFire = atemp.FlashFire ; - //b.effects.Flinch = atemp.Flinch ; - //b.effects.FollowMe = atemp.FollowMe ; - //b.effects.Foresight = atemp.Foresight ; - //b.effects.FuryCutter = atemp.FuryCutter ; - //b.effects.Grudge = atemp.Grudge ; - //b.effects.HelpingHand = atemp.HelpingHand ; - //b.effects.HyperBeam = atemp.HyperBeam ; - //b.effects.Illusion = atemp.Illusion ; - //b.effects.Imprison = atemp.Imprison ; - //b.effects.KingsShield = atemp.KingsShield ; - b.effects.LeechSeed = atemp.LeechSeed ; - //b.effects.LifeOrb = atemp.LifeOrb ; - //b.effects.LockOn = atemp.LockOn ; - b.effects.LockOnPos = atemp.LockOnPos ; - //b.effects.MagicCoat = atemp.MagicCoat ; - b.effects.MeanLook = atemp.MeanLook ; - //b.effects.MeFirst = atemp.MeFirst ; - //b.effects.Metronome = atemp.Metronome ; - //b.effects.MicleBerry = atemp.MicleBerry ; - //b.effects.Minimize = atemp.Minimize ; - //b.effects.MiracleEye = atemp.MiracleEye ; - //b.effects.MirrorCoat = atemp.MirrorCoat ; - b.effects.MirrorCoatTarget = atemp.MirrorCoatTarget; - //b.effects.MoveNext = atemp.MoveNext ; - //b.effects.MudSport = atemp.MudSport ; - //b.effects.MultiTurn = atemp.MultiTurn ; - //b.effects.MultiTurnAttack = atemp.MultiTurnAttack ; - //b.effects.MultiTurnUser = atemp.MultiTurnUser ; - //b.effects.Nightmare = atemp.Nightmare ; - //b.effects.Outrage = atemp.Outrage ; - //b.effects.ParentalBond = atemp.ParentalBond ; - //b.effects.PickupItem = atemp.PickupItem ; - //b.effects.PickupUse = atemp.PickupUse ; - //b.effects.Pinch = atemp.Pinch ; - //b.effects.Powder = atemp.Powder ; - //b.effects.Protect = atemp.Protect ; - //b.effects.ProtectNegation = atemp.ProtectNegation ; - //b.effects.ProtectRate = atemp.ProtectRate ; - //b.effects.Pursuit = atemp.Pursuit ; - //b.effects.Quash = atemp.Quash ; - //b.effects.Rage = atemp.Rage ; - //b.effects.Revenge = atemp.Revenge ; - //b.effects.Roar = atemp.Roar ; - //b.effects.Rollout = atemp.Rollout ; - //b.effects.Roost = atemp.Roost ; - //b.effects.SkipTurn = atemp.SkipTurn ; - //b.effects.SkyDrop = atemp.SkyDrop ; - //b.effects.SmackDown = atemp.SmackDown ; - //b.effects.Snatch = atemp.Snatch ; - //b.effects.SpikyShield = atemp.SpikyShield ; - //b.effects.Stockpile = atemp.Stockpile ; - //b.effects.StockpileDef = atemp.StockpileDef ; - //b.effects.StockpileSpDef = atemp.StockpileSpDef ; - //b.effects.Taunt = atemp.Taunt ; - //b.effects.Torment = atemp.Torment ; - //b.effects.Toxic = atemp.Toxic ; - //b.effects.Transform = atemp.Transform ; - //b.effects.Truant = atemp.Truant ; - //b.effects.TwoTurnAttack = atemp.TwoTurnAttack ; - //b.effects.Type3 = atemp.Type3 ; - //b.effects.Unburden = atemp.Unburden ; - //b.effects.Uproar = atemp.Uproar ; - //b.effects.Uturn = atemp.Uturn ; - //b.effects.WaterSport = atemp.WaterSport ; - //b.effects.WeightChange = atemp.WeightChange ; - //b.effects.Yawn = atemp.Yawn ; - } - - attacker.pbUpdate(true); - - opponent.pbUpdate(true); - battle.pbDisplay(Game._INTL("{1} and {2} switched places!", opponent.ToString(), attacker.ToString(true))); + IEffectsBattler atemp = a.effects ; + IEffectsBattler btemp = b.effects ; + //a.effects.Attract = btemp.Attract ; + //a.effects.BatonPass = btemp.BatonPass ; + //a.effects.Bide = btemp.Bide ; + //a.effects.BideDamage = btemp.BideDamage ; + a.effects.BideTarget = btemp.BideTarget ; + //a.effects.Charge = btemp.Charge ; + //a.effects.ChoiceBand = btemp.ChoiceBand ; + //a.effects.Counter = btemp.Counter ; + a.effects.CounterTarget = btemp.CounterTarget ; + //a.effects.DefenseCurl = btemp.DefenseCurl ; + //a.effects.DestinyBond = btemp.DestinyBond ; + //a.effects.Disable = btemp.Disable ; + //a.effects.DisableMove = btemp.DisableMove ; + //a.effects.Electrify = btemp.Electrify ; + //a.effects.Encore = btemp.Encore ; + //a.effects.EncoreIndex = btemp.EncoreIndex ; + //a.effects.EncoreMove = btemp.EncoreMove ; + //a.effects.Endure = btemp.Endure ; + //a.effects.FirstPledge = btemp.FirstPledge ; + //a.effects.FlashFire = btemp.FlashFire ; + //a.effects.Flinch = btemp.Flinch ; + //a.effects.FollowMe = btemp.FollowMe ; + //a.effects.Foresight = btemp.Foresight ; + //a.effects.FuryCutter = btemp.FuryCutter ; + //a.effects.Grudge = btemp.Grudge ; + //a.effects.HelpingHand = btemp.HelpingHand ; + //a.effects.HyperBeam = btemp.HyperBeam ; + //a.effects.Illusion = btemp.Illusion ; + //a.effects.Imprison = btemp.Imprison ; + //a.effects.KingsShield = btemp.KingsShield ; + a.effects.LeechSeed = btemp.LeechSeed ; + //a.effects.LifeOrb = btemp.LifeOrb ; + //a.effects.LockOn = btemp.LockOn ; + a.effects.LockOnPos = btemp.LockOnPos ; + //a.effects.MagicCoat = btemp.MagicCoat ; + a.effects.MeanLook = btemp.MeanLook ; + //a.effects.MeFirst = btemp.MeFirst ; + //a.effects.Metronome = btemp.Metronome ; + //a.effects.MicleBerry = btemp.MicleBerry ; + //a.effects.Minimize = btemp.Minimize ; + //a.effects.MiracleEye = btemp.MiracleEye ; + //a.effects.MirrorCoat = btemp.MirrorCoat ; + a.effects.MirrorCoatTarget = btemp.MirrorCoatTarget; + //a.effects.MoveNext = btemp.MoveNext ; + //a.effects.MudSport = btemp.MudSport ; + //a.effects.MultiTurn = btemp.MultiTurn ; + //a.effects.MultiTurnAttack = btemp.MultiTurnAttack ; + //a.effects.MultiTurnUser = btemp.MultiTurnUser ; + //a.effects.Nightmare = btemp.Nightmare ; + //a.effects.Outrage = btemp.Outrage ; + //a.effects.ParentalBond = btemp.ParentalBond ; + //a.effects.PickupItem = btemp.PickupItem ; + //a.effects.PickupUse = btemp.PickupUse ; + //a.effects.Pinch = btemp.Pinch ; + //a.effects.Powder = btemp.Powder ; + //a.effects.Protect = btemp.Protect ; + //a.effects.ProtectNegation = btemp.ProtectNegation ; + //a.effects.ProtectRate = btemp.ProtectRate ; + //a.effects.Pursuit = btemp.Pursuit ; + //a.effects.Quash = btemp.Quash ; + //a.effects.Rage = btemp.Rage ; + //a.effects.Revenge = btemp.Revenge ; + //a.effects.Roar = btemp.Roar ; + //a.effects.Rollout = btemp.Rollout ; + //a.effects.Roost = btemp.Roost ; + //a.effects.SkipTurn = btemp.SkipTurn ; + //a.effects.SkyDrop = btemp.SkyDrop ; + //a.effects.SmackDown = btemp.SmackDown ; + //a.effects.Snatch = btemp.Snatch ; + //a.effects.SpikyShield = btemp.SpikyShield ; + //a.effects.Stockpile = btemp.Stockpile ; + //a.effects.StockpileDef = btemp.StockpileDef ; + //a.effects.StockpileSpDef = btemp.StockpileSpDef ; + //a.effects.Taunt = btemp.Taunt ; + //a.effects.Torment = btemp.Torment ; + //a.effects.Toxic = btemp.Toxic ; + //a.effects.Transform = btemp.Transform ; + //a.effects.Truant = btemp.Truant ; + //a.effects.TwoTurnAttack = btemp.TwoTurnAttack ; + //a.effects.Type3 = btemp.Type3 ; + //a.effects.Unburden = btemp.Unburden ; + //a.effects.Uproar = btemp.Uproar ; + //a.effects.Uturn = btemp.Uturn ; + //a.effects.WaterSport = btemp.WaterSport ; + //a.effects.WeightChange = btemp.WeightChange ; + //a.effects.Yawn = btemp.Yawn ; + //b.effects.Attract = atemp.Attract ; + //b.effects.BatonPass = atemp.BatonPass ; + //b.effects.Bide = atemp.Bide ; + //b.effects.BideDamage = atemp.BideDamage ; + b.effects.BideTarget = atemp.BideTarget ; + //b.effects.Charge = atemp.Charge ; + //b.effects.ChoiceBand = atemp.ChoiceBand ; + //b.effects.Counter = atemp.Counter ; + b.effects.CounterTarget = atemp.CounterTarget ; + //b.effects.DefenseCurl = atemp.DefenseCurl ; + //b.effects.DestinyBond = atemp.DestinyBond ; + //b.effects.Disable = atemp.Disable ; + //b.effects.DisableMove = atemp.DisableMove ; + //b.effects.Electrify = atemp.Electrify ; + //b.effects.Encore = atemp.Encore ; + //b.effects.EncoreIndex = atemp.EncoreIndex ; + //b.effects.EncoreMove = atemp.EncoreMove ; + //b.effects.Endure = atemp.Endure ; + //b.effects.FirstPledge = atemp.FirstPledge ; + //b.effects.FlashFire = atemp.FlashFire ; + //b.effects.Flinch = atemp.Flinch ; + //b.effects.FollowMe = atemp.FollowMe ; + //b.effects.Foresight = atemp.Foresight ; + //b.effects.FuryCutter = atemp.FuryCutter ; + //b.effects.Grudge = atemp.Grudge ; + //b.effects.HelpingHand = atemp.HelpingHand ; + //b.effects.HyperBeam = atemp.HyperBeam ; + //b.effects.Illusion = atemp.Illusion ; + //b.effects.Imprison = atemp.Imprison ; + //b.effects.KingsShield = atemp.KingsShield ; + b.effects.LeechSeed = atemp.LeechSeed ; + //b.effects.LifeOrb = atemp.LifeOrb ; + //b.effects.LockOn = atemp.LockOn ; + b.effects.LockOnPos = atemp.LockOnPos ; + //b.effects.MagicCoat = atemp.MagicCoat ; + b.effects.MeanLook = atemp.MeanLook ; + //b.effects.MeFirst = atemp.MeFirst ; + //b.effects.Metronome = atemp.Metronome ; + //b.effects.MicleBerry = atemp.MicleBerry ; + //b.effects.Minimize = atemp.Minimize ; + //b.effects.MiracleEye = atemp.MiracleEye ; + //b.effects.MirrorCoat = atemp.MirrorCoat ; + b.effects.MirrorCoatTarget = atemp.MirrorCoatTarget; + //b.effects.MoveNext = atemp.MoveNext ; + //b.effects.MudSport = atemp.MudSport ; + //b.effects.MultiTurn = atemp.MultiTurn ; + //b.effects.MultiTurnAttack = atemp.MultiTurnAttack ; + //b.effects.MultiTurnUser = atemp.MultiTurnUser ; + //b.effects.Nightmare = atemp.Nightmare ; + //b.effects.Outrage = atemp.Outrage ; + //b.effects.ParentalBond = atemp.ParentalBond ; + //b.effects.PickupItem = atemp.PickupItem ; + //b.effects.PickupUse = atemp.PickupUse ; + //b.effects.Pinch = atemp.Pinch ; + //b.effects.Powder = atemp.Powder ; + //b.effects.Protect = atemp.Protect ; + //b.effects.ProtectNegation = atemp.ProtectNegation ; + //b.effects.ProtectRate = atemp.ProtectRate ; + //b.effects.Pursuit = atemp.Pursuit ; + //b.effects.Quash = atemp.Quash ; + //b.effects.Rage = atemp.Rage ; + //b.effects.Revenge = atemp.Revenge ; + //b.effects.Roar = atemp.Roar ; + //b.effects.Rollout = atemp.Rollout ; + //b.effects.Roost = atemp.Roost ; + //b.effects.SkipTurn = atemp.SkipTurn ; + //b.effects.SkyDrop = atemp.SkyDrop ; + //b.effects.SmackDown = atemp.SmackDown ; + //b.effects.Snatch = atemp.Snatch ; + //b.effects.SpikyShield = atemp.SpikyShield ; + //b.effects.Stockpile = atemp.Stockpile ; + //b.effects.StockpileDef = atemp.StockpileDef ; + //b.effects.StockpileSpDef = atemp.StockpileSpDef ; + //b.effects.Taunt = atemp.Taunt ; + //b.effects.Torment = atemp.Torment ; + //b.effects.Toxic = atemp.Toxic ; + //b.effects.Transform = atemp.Transform ; + //b.effects.Truant = atemp.Truant ; + //b.effects.TwoTurnAttack = atemp.TwoTurnAttack ; + //b.effects.Type3 = atemp.Type3 ; + //b.effects.Unburden = atemp.Unburden ; + //b.effects.Uproar = atemp.Uproar ; + //b.effects.Uturn = atemp.Uturn ; + //b.effects.WaterSport = atemp.WaterSport ; + //b.effects.WeightChange = atemp.WeightChange ; + //b.effects.Yawn = atemp.Yawn ; + } + + attacker.Update(true); + + opponent.Update(true); + battle.Display(Game._INTL("{1} and {2} switched places!", opponent.ToString(), attacker.ToString(true))); return 0;//ToDo: Not sure what to return here, so i added null/0 } } @@ -10917,7 +10918,7 @@ public partial class PokeBattle_Move_121 : PokeBattle_Move { public PokeBattle_Move_121() : base() { } //public PokeBattle_Move_121(Battle battle, Attack.Move move) : base(battle, move) { } - // Handled in superclass public object pbCalcDamage, do not edit! + // Handled in superclass public object CalcDamage, do not edit! } /// @@ -10928,7 +10929,7 @@ public partial class PokeBattle_Move_122 : PokeBattle_Move { public PokeBattle_Move_122() : base() { } //public PokeBattle_Move_122(Battle battle, Attack.Move move) : base(battle, move) { } - // Handled in superclass public object pbCalcDamage, do not edit! + // Handled in superclass public object CalcDamage, do not edit! } /// @@ -10938,16 +10939,16 @@ public partial class PokeBattle_Move_123 : PokeBattle_Move { public PokeBattle_Move_123() : base() { } //public PokeBattle_Move_123(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (!opponent.pbHasType(attacker.Type1) && - !opponent.pbHasType(attacker.Type2) && - !opponent.pbHasType(attacker.effects.Type3)) + if (!opponent.HasType(attacker.Type1) && + !opponent.HasType(attacker.Type2) && + !opponent.HasType(attacker.effects.Type3)) { - battle.pbDisplay(Game._INTL("{1} was unaffected!", opponent.ToString())); + battle.Display(Game._INTL("{1} was unaffected!", opponent.ToString())); return -1; } - return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); } } @@ -10959,19 +10960,19 @@ public partial class PokeBattle_Move_124 : PokeBattle_Move { public PokeBattle_Move_124() : base() { } //public PokeBattle_Move_124(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.field.WonderRoom > 0) { this.battle.field.WonderRoom = 0; - battle.pbDisplay(Game._INTL("Wonder Room wore off, and the Defense and Sp. Def stats returned to normal!")); + battle.Display(Game._INTL("Wonder Room wore off, and the Defense and Sp. Def stats returned to normal!")); } else { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.field.WonderRoom = 5; - battle.pbDisplay(Game._INTL("It created a bizarre area in which the Defense and Sp. Def stats are swapped!")); + battle.Display(Game._INTL("It created a bizarre area in which the Defense and Sp. Def stats are swapped!")); } return 0; } @@ -10984,7 +10985,7 @@ public partial class PokeBattle_Move_125 : PokeBattle_Move { public PokeBattle_Move_125() : base() { } //public PokeBattle_Move_125(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { byte counter = 0; byte nummoves = 0; foreach (var move in attacker.moves) @@ -11010,15 +11011,15 @@ public partial class PokeBattle_Move_133 : PokeBattle_Move { public PokeBattle_Move_133() : base() { } //public PokeBattle_Move_133(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (!this.battle.doublebattle || - attacker.pbPartner.Species == Pokemons.NONE || attacker.pbPartner.isFainted()) + attacker.Partner.Species == Pokemons.NONE || attacker.Partner.isFainted()) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); return 0; } } @@ -11030,29 +11031,29 @@ public partial class PokeBattle_Move_134 : PokeBattle_Move { public PokeBattle_Move_134() : base() { } //public PokeBattle_Move_134(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("Congratulations, {1}!", this.battle.pbGetOwner(attacker.Index).name)); + battle.Display(Game._INTL("Congratulations, {1}!", this.battle.GetOwner(attacker.Index).name)); return 0; } } /// /// Freezes the target. (Freeze-Dry) - /// (Superclass's pbTypeModifier): Effectiveness against Water-type is 2x. + /// (Superclass's TypeModifier): Effectiveness against Water-type is 2x. /// public partial class PokeBattle_Move_135 : PokeBattle_Move { public PokeBattle_Move_135() : base() { } //public PokeBattle_Move_135(Battle battle, Attack.Move move) : base(battle, move) { } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerClause b && b.pbCanFreeze(attacker, false, this)) + if (opponent is IBattlerClause b && b.CanFreeze(attacker, false, this)) { - if (opponent is IBattlerEffect o) o.pbFreeze(); + if (opponent is IBattlerEffect o) o.Freeze(); } } } @@ -11075,34 +11076,34 @@ public partial class PokeBattle_Move_137 : PokeBattle_Move { public PokeBattle_Move_137() : base() { } //public PokeBattle_Move_137(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { bool didsomething = false; - foreach (IBattler i in new IBattler[] { attacker, attacker.pbPartner }) + foreach (IBattler i in new IBattler[] { attacker, attacker.Partner }) { if (i.Species == Pokemons.NONE || i.isFainted()) continue; //next - if (!i.hasWorkingAbility(Abilities.PLUS) && !i.hasWorkingAbility(Abilities.MINUS)) continue; //next - if (i is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) continue; //next - if (!didsomething) pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + if (!i.hasWorkingAbility(Abilities.PLUS) && !i.hasWorkingAbility(Abilities.MINUS)) continue; //next + if (i is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) continue; //next + if (!didsomething) ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); didsomething = true; bool showanim = true; - if (i is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (i is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b0.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } - if (i is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (i is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPDEF, 1, attacker, false, this, showanim); showanim = false; } } if (!didsomething) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } return 0; @@ -11116,17 +11117,17 @@ public partial class PokeBattle_Move_138 : PokeBattle_Move { public PokeBattle_Move_138() : base() { } //public PokeBattle_Move_138(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (!this.battle.doublebattle || opponent.Species == Pokemons.NONE || - opponent is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + opponent is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = attacker is IBattlerEffect a && a.pbIncreaseStat(Stats.SPDEF, 1, attacker, false, this); + bool ret = attacker is IBattlerEffect a && a.IncreaseStat(Stats.SPDEF, 1, attacker, false, this); return ret ? 0 : -1; } } @@ -11138,17 +11139,17 @@ public partial class PokeBattle_Move_139 : PokeBattle_Move { public PokeBattle_Move_139() : base() { } //public PokeBattle_Move_139(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbAccuracyCheck(IBattler attacker, IBattler opponent) + public override bool AccuracyCheck(IBattler attacker, IBattler opponent) { return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.ATTACK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.ATTACK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.ATTACK, 1, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.ATTACK, 1, attacker, false, this); return ret ? 0 : -1; } } @@ -11160,25 +11161,25 @@ public partial class PokeBattle_Move_13A : PokeBattle_Move { public PokeBattle_Move_13A() : base() { } //public PokeBattle_Move_13A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - // Replicates pbCanReduceStatStage? so that certain messages aren't shown + // Replicates CanReduceStatStage? so that certain messages aren't shown // multiple times if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("{1}'s attack missed!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s attack missed!", attacker.ToString())); return -1; } if (opponent is IBattlerEffect b && - b.pbTooLow(Stats.ATTACK) && - b.pbTooLow(Stats.SPATK)) + b.TooLow(Stats.ATTACK) && + b.TooLow(Stats.SPATK)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any lower!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any lower!", opponent.ToString())); return -1; } - if (opponent.pbOwnSide.Mist > 0) + if (opponent.OwnSide.Mist > 0) { - battle.pbDisplay(Game._INTL("{1} is protected by Mist!", opponent.ToString())); + battle.Display(Game._INTL("{1} is protected by Mist!", opponent.ToString())); return -1; } if (!attacker.hasMoldBreaker()) @@ -11186,25 +11187,25 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = if (opponent.hasWorkingAbility(Abilities.CLEAR_BODY) || opponent.hasWorkingAbility(Abilities.WHITE_SMOKE)) { - battle.pbDisplay(Game._INTL("{1}'s {2} prevents stat loss!", opponent.ToString(), + battle.Display(Game._INTL("{1}'s {2} prevents stat loss!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return -1; } } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); int ret = -1; bool showanim = true; if (!attacker.hasMoldBreaker() && opponent.hasWorkingAbility(Abilities.HYPER_CUTTER)) { string abilityname = Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1}'s {2} prevents Attack loss!", opponent.ToString(), abilityname)); + battle.Display(Game._INTL("{1}'s {2} prevents Attack loss!", opponent.ToString(), abilityname)); } - else if (opponent is IBattlerEffect b0 && b0.pbReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim)) + else if (opponent is IBattlerEffect b0 && b0.ReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim)) { ret = 0; showanim = false; } - if (opponent is IBattlerEffect b1 && b1.pbReduceStat(Stats.SPATK, 1, attacker, false, this, showanim)) + if (opponent is IBattlerEffect b1 && b1.ReduceStat(Stats.SPATK, 1, attacker, false, this, showanim)) { ret = 0; showanim = false; } @@ -11219,24 +11220,24 @@ public partial class PokeBattle_Move_13B : PokeBattle_Move { public PokeBattle_Move_13B() : base() { } //public PokeBattle_Move_13B(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { if (attacker.Species == Pokemons.HOOPA) return true; if (attacker.form != 1) return true; return false; } - public override bool pbAccuracyCheck(IBattler attacker, IBattler opponent) + public override bool AccuracyCheck(IBattler attacker, IBattler opponent) { return true; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.DEFENSE, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.DEFENSE, attacker, false, this)) { - b.pbReduceStat(Stats.DEFENSE, 1, attacker, false, this); + b.ReduceStat(Stats.DEFENSE, 1, attacker, false, this); } } } @@ -11248,17 +11249,17 @@ public partial class PokeBattle_Move_13C : PokeBattle_Move { public PokeBattle_Move_13C() : base() { } //public PokeBattle_Move_13C(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbAccuracyCheck(IBattler attacker, IBattler opponent) + public override bool AccuracyCheck(IBattler attacker, IBattler opponent) { return true; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.SPATK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.SPATK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.SPATK, 1, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.SPATK, 1, attacker, false, this); return ret ? 0 : -1; } } @@ -11270,23 +11271,23 @@ public partial class PokeBattle_Move_13D : PokeBattle_Move { public PokeBattle_Move_13D() : base() { } //public PokeBattle_Move_13D(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbIsDamaging()) return base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; - if (opponent is IBattlerEffect b && !b.pbCanReduceStatStage(Stats.SPATK, attacker, true, this)) return -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + if (IsDamaging()) return base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (opponent is IBattlerEffect b && !b.CanReduceStatStage(Stats.SPATK, attacker, true, this)) return -1; + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - bool ret = opponent is IBattlerEffect o && o.pbReduceStat(Stats.SPATK, 2, attacker, false, this); + bool ret = opponent is IBattlerEffect o && o.ReduceStat(Stats.SPATK, 2, attacker, false, this); return ret ? 0 : -1; } - public override void pbAdditionalEffect(IBattler attacker, IBattler opponent) + public override void AdditionalEffect(IBattler attacker, IBattler opponent) { if (opponent.damagestate.Substitute) return; - if (opponent is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPATK, attacker, false, this)) + if (opponent is IBattlerEffect b && b.CanReduceStatStage(Stats.SPATK, attacker, false, this)) { - b.pbReduceStat(Stats.SPATK, 2, attacker, false, this); + b.ReduceStat(Stats.SPATK, 2, attacker, false, this); } } } @@ -11299,35 +11300,35 @@ public partial class PokeBattle_Move_13E : PokeBattle_Move { public PokeBattle_Move_13E() : base() { } //public PokeBattle_Move_13E(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { bool didsomething = false; //ToDo: If double battle? - foreach (IBattler i in new IBattler[] { attacker, attacker.pbPartner, attacker.pbOpposing1, attacker.pbOpposing2 }) + foreach (IBattler i in new IBattler[] { attacker, attacker.Partner, attacker.Opposing1, attacker.Opposing2 }) { if (i.Species == Pokemons.NONE || i.isFainted()) continue; //next - if (!i.pbHasType(Types.GRASS)) continue; //next + if (!i.HasType(Types.GRASS)) continue; //next if (i.isAirborne(attacker.hasMoldBreaker())) continue; //next - if (i is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) continue;//next - if (!didsomething) pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + if (i is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) continue;//next + if (!didsomething) ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); didsomething = true; bool showanim = true; - if (i is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (i is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (i is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (i is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPATK, 1, attacker, false, this, showanim); showanim = false; } } if (!didsomething) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } return 0; @@ -11342,27 +11343,27 @@ public partial class PokeBattle_Move_13F : PokeBattle_Move { public PokeBattle_Move_13F() : base() { } //public PokeBattle_Move_13F(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { bool didsomething = false; //ToDo: If double battle? - foreach (IBattler i in new IBattler[] { attacker, attacker.pbPartner, attacker.pbOpposing1, attacker.pbOpposing2 }) + foreach (IBattler i in new IBattler[] { attacker, attacker.Partner, attacker.Opposing1, attacker.Opposing2 }) { if (i.Species == Pokemons.NONE || i.isFainted()) continue; //next - if (!i.pbHasType(Types.GRASS)) continue; //next - if (i is IBattlerEffect b && !b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) continue; //next - if (!didsomething) pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + if (!i.HasType(Types.GRASS)) continue; //next + if (i is IBattlerEffect b && !b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) continue; //next + if (!didsomething) ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); didsomething = true; bool showanim = true; - if (i is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) + if (i is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.DEFENSE, attacker, false, this)) { - b0.pbIncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); + b0.IncreaseStat(Stats.DEFENSE, 1, attacker, false, this, showanim); showanim = false; } } if (!didsomething) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } return 0; @@ -11377,40 +11378,40 @@ public partial class PokeBattle_Move_140 : PokeBattle_Move { public PokeBattle_Move_140() : base() { } //public PokeBattle_Move_140(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { bool didsomething = false; - foreach (IBattler i in new IBattler[] { attacker.pbOpposing1, attacker.pbOpposing2 }) + foreach (IBattler i in new IBattler[] { attacker.Opposing1, attacker.Opposing2 }) { if (i.Species == Pokemons.NONE || i.isFainted()) continue; //next if (i.Status != Status.POISON) continue; //next - if (i is IBattlerEffect b && - !b.pbCanReduceStatStage(Stats.ATTACK, attacker, false, this) && - !b.pbCanReduceStatStage(Stats.SPATK, attacker, false, this) && - !b.pbCanReduceStatStage(Stats.SPEED, attacker, false, this)) continue; //next - if (!didsomething) pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + if (i is IBattlerEffect b && + !b.CanReduceStatStage(Stats.ATTACK, attacker, false, this) && + !b.CanReduceStatStage(Stats.SPATK, attacker, false, this) && + !b.CanReduceStatStage(Stats.SPEED, attacker, false, this)) continue; //next + if (!didsomething) ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); didsomething = true; bool showanim = true; - if (i is IBattlerEffect b0 && b0.pbCanReduceStatStage(Stats.ATTACK, attacker, false, this)) + if (i is IBattlerEffect b0 && b0.CanReduceStatStage(Stats.ATTACK, attacker, false, this)) { - b0.pbReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim); + b0.ReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim); showanim = false; } - if (i is IBattlerEffect b1 && b1.pbCanReduceStatStage(Stats.SPATK, attacker, false, this)) + if (i is IBattlerEffect b1 && b1.CanReduceStatStage(Stats.SPATK, attacker, false, this)) { - b1.pbReduceStat(Stats.SPATK, 1, attacker, false, this, showanim); + b1.ReduceStat(Stats.SPATK, 1, attacker, false, this, showanim); showanim = false; } - if (i is IBattlerEffect b2 && b2.pbCanReduceStatStage(Stats.SPEED, attacker, false, this)) + if (i is IBattlerEffect b2 && b2.CanReduceStatStage(Stats.SPEED, attacker, false, this)) { - b2.pbReduceStat(Stats.SPEED, 1, attacker, false, this, showanim); + b2.ReduceStat(Stats.SPEED, 1, attacker, false, this, showanim); showanim = false; } } if (!didsomething) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } return 0; @@ -11424,7 +11425,7 @@ public partial class PokeBattle_Move_141 : PokeBattle_Move { public PokeBattle_Move_141() : base() { } //public PokeBattle_Move_141(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { bool nonzero = false; foreach (var i in new[] { Stats.ATTACK, Stats.DEFENSE, Stats.SPEED, @@ -11437,16 +11438,16 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (!nonzero) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); foreach (var i in new[] { Stats.ATTACK, Stats.DEFENSE, Stats.SPEED, Stats.SPATK, Stats.SPDEF, Stats.ACCURACY, Stats.EVASION }) { opponent.stages[(byte)i] *= -1; } - battle.pbDisplay(Game._INTL("{1}'s stats were reversed!", opponent.ToString())); + battle.Display(Game._INTL("{1}'s stats were reversed!", opponent.ToString())); return 0; } } @@ -11458,21 +11459,21 @@ public partial class PokeBattle_Move_142 : PokeBattle_Move { public PokeBattle_Move_142() : base() { } //public PokeBattle_Move_142(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if ((opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) || - opponent.pbHasType(Types.GHOST) || + opponent.HasType(Types.GHOST) || opponent.Ability == Abilities.MULTITYPE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Type3 = Types.GHOST; string typename = Game._INTL(Types.GHOST.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} transformed into the {2} type!", opponent.ToString(), typename)); + battle.Display(Game._INTL("{1} transformed into the {2} type!", opponent.ToString(), typename)); return 0; } } @@ -11484,31 +11485,31 @@ public partial class PokeBattle_Move_143 : PokeBattle_Move { public PokeBattle_Move_143() : base() { } //public PokeBattle_Move_143(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Substitute > 0 && !ignoresSubstitute(attacker)) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; if (opponent.effects.LeechSeed >= 0) { - battle.pbDisplay(Game._INTL("{1} evaded the attack!", opponent.ToString())); + battle.Display(Game._INTL("{1} evaded the attack!", opponent.ToString())); return -1; } - if (opponent.pbHasType(Types.GRASS) || + if (opponent.HasType(Types.GRASS) || opponent.Ability == Abilities.MULTITYPE) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Type3 = Types.GRASS; string typename = Game._INTL(Types.GRASS.ToString(TextScripts.Name)); - battle.pbDisplay(Game._INTL("{1} transformed into the {2} type!", opponent.ToString(), typename)); + battle.Display(Game._INTL("{1} transformed into the {2} type!", opponent.ToString(), typename)); return 0; } } @@ -11521,7 +11522,7 @@ public partial class PokeBattle_Move_144 : PokeBattle_Move { public PokeBattle_Move_144() : base() { } //public PokeBattle_Move_144(Battle battle, Attack.Move move) : base(battle, move) { } - public int pbModifyDamage(int damagemult, IBattler attacker, IBattler opponent) + public int ModifyDamage(int damagemult, IBattler attacker, IBattler opponent) { type = Types.FLYING;// || -1 if (type >= 0) @@ -11548,12 +11549,12 @@ public partial class PokeBattle_Move_145 : PokeBattle_Move { public PokeBattle_Move_145() : base() { } //public PokeBattle_Move_145(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (pbTypeImmunityByAbility(pbType(this.type, attacker, opponent), attacker, opponent)) return -1; + if (TypeImmunityByAbility(GetType(this.type, attacker, opponent), attacker, opponent)) return -1; if (opponent.effects.Electrify) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } if ((int)this.battle.choices[opponent.Index].Action != 1 || // Didn't choose a move @@ -11561,13 +11562,13 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = this.battle.choices[opponent.Index].Move.id <= 0 || opponent.hasMovedThisRound()) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); opponent.effects.Electrify = true; - battle.pbDisplay(Game._INTL("{1} was electrified!", opponent.ToString())); + battle.Display(Game._INTL("{1} was electrified!", opponent.ToString())); return 0; } } @@ -11580,7 +11581,7 @@ public partial class PokeBattle_Move_146 : PokeBattle_Move { public PokeBattle_Move_146() : base() { } //public PokeBattle_Move_146(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { bool unmoved = false; foreach (IBattler poke in this.battle.battlers) @@ -11594,13 +11595,13 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (!unmoved || this.battle.field.IonDeluge) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.field.IonDeluge = true; - battle.pbDisplay(Game._INTL("The Ion Deluge started!")); + battle.Display(Game._INTL("The Ion Deluge started!")); return 0; } } @@ -11613,7 +11614,7 @@ public partial class PokeBattle_Move_147 : PokeBattle_Move { public PokeBattle_Move_147() : base() { } //public PokeBattle_Move_147(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbAccuracyCheck(IBattler attacker, IBattler opponent) + public override bool AccuracyCheck(IBattler attacker, IBattler opponent) { return true; } @@ -11627,17 +11628,17 @@ public partial class PokeBattle_Move_148 : PokeBattle_Move { public PokeBattle_Move_148() : base() { } //public PokeBattle_Move_148(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (opponent.effects.Powder) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } opponent.effects.Powder = true; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("{1} is covered in powder!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + battle.Display(Game._INTL("{1} is covered in powder!", attacker.ToString())); return 0; } } @@ -11649,17 +11650,17 @@ public partial class PokeBattle_Move_149 : PokeBattle_Move { public PokeBattle_Move_149() : base() { } //public PokeBattle_Move_149(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { return (attacker.turncount > 1); } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - attacker.pbOwnSide.MatBlock = true; - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + attacker.OwnSide.MatBlock = true; + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - battle.pbDisplay(Game._INTL("{1} intends to flip up a mat and block incoming attacks!", attacker.ToString())); + battle.Display(Game._INTL("{1} intends to flip up a mat and block incoming attacks!", attacker.ToString())); return 0; } } @@ -11671,11 +11672,11 @@ public partial class PokeBattle_Move_14A : PokeBattle_Move { public PokeBattle_Move_14A() : base() { } //public PokeBattle_Move_14A(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOwnSide.CraftyShield) + if (attacker.OwnSide.CraftyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } bool unmoved = false; @@ -11690,19 +11691,19 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (!unmoved) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbOwnSide.CraftyShield = true; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OwnSide.CraftyShield = true; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("Crafty Shield protected your team!")); + battle.Display(Game._INTL("Crafty Shield protected your team!")); } else { - battle.pbDisplay(Game._INTL("Crafty Shield protected the opposing team!")); + battle.Display(Game._INTL("Crafty Shield protected the opposing team!")); } return 0; } @@ -11716,11 +11717,11 @@ public partial class PokeBattle_Move_14B : PokeBattle_Move { public PokeBattle_Move_14B() : base() { } //public PokeBattle_Move_14B(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.KingsShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } List ratesharers = new List { @@ -11747,17 +11748,17 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } if (!unmoved || (!Core.USENEWBATTLEMECHANICS && - this.battle.pbRandom(65536) >= Math.Floor(65536f / attacker.effects.ProtectRate))) + this.battle.Random(65536) >= Math.Floor(65536f / attacker.effects.ProtectRate))) { attacker.effects.ProtectRate = 1; - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.KingsShield = true; attacker.effects.ProtectRate *= 2; - battle.pbDisplay(Game._INTL("{1} protected itself!", attacker.ToString())); + battle.Display(Game._INTL("{1} protected itself!", attacker.ToString())); return 0; } } @@ -11770,11 +11771,11 @@ public partial class PokeBattle_Move_14C : PokeBattle_Move { public PokeBattle_Move_14C() : base() { } //public PokeBattle_Move_14C(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (attacker.effects.SpikyShield) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } List ratesharers = new List { @@ -11800,18 +11801,18 @@ public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = } } if (!unmoved || - this.battle.pbRandom(65536) >= Math.Floor(65536f / attacker.effects.ProtectRate)) + this.battle.Random(65536) >= Math.Floor(65536f / attacker.effects.ProtectRate)) { attacker.effects.ProtectRate = 1; - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); attacker.effects.SpikyShield = true; attacker.effects.ProtectRate *= 2; - battle.pbDisplay(Game._INTL("{1} protected itself!", attacker.ToString())); + battle.Display(Game._INTL("{1} protected itself!", attacker.ToString())); return 0; } } @@ -11827,7 +11828,7 @@ public partial class PokeBattle_Move_14D : PokeBattle_Move { public PokeBattle_Move_14D() : base() { } //public PokeBattle_Move_14D(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -11838,26 +11839,26 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} vanished instantly!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} vanished instantly!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - int ret = (int)base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = (int)base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (ret > 0) { opponent.effects.ProtectNegation = true; - opponent.pbOwnSide.CraftyShield = false; + opponent.OwnSide.CraftyShield = false; } return ret; } @@ -11878,7 +11879,7 @@ public partial class PokeBattle_Move_14E : PokeBattle_Move { public PokeBattle_Move_14E() : base() { } //public PokeBattle_Move_14E(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbTwoTurnAttack(IBattler attacker) + public override bool TwoTurnAttack(IBattler attacker) { this.immediate = false; if (!this.immediate && attacker.hasWorkingItem(Items.POWER_HERB)) @@ -11889,45 +11890,45 @@ public override bool pbTwoTurnAttack(IBattler attacker) return attacker.effects.TwoTurnAttack == 0; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.immediate || attacker.effects.TwoTurnAttack > 0) { - pbShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim - battle.pbDisplay(Game._INTL("{1} is absorbing power!", attacker.ToString())); + ShowAnimation(this.id, attacker, opponent, 1, alltargets, showanimation); // Charging anim + battle.Display(Game._INTL("{1} is absorbing power!", attacker.ToString())); } if (this.immediate) { - this.battle.pbCommonAnimation("UseItem", attacker, null); + this.battle.CommonAnimation("UseItem", attacker, null); - battle.pbDisplay(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); - attacker.pbConsumeItem(); + battle.Display(Game._INTL("{1} became fully charged due to its Power Herb!", attacker.ToString())); + attacker.ConsumeItem(); } if (attacker.effects.TwoTurnAttack > 0) return 0; - if (attacker is IBattlerEffect b && - !b.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this) && - !b.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b && + !b.CanIncreaseStatStage(Stats.SPATK, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this) && + !b.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - battle.pbDisplay(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); + battle.Display(Game._INTL("{1}'s stats won't go any higher!", attacker.ToString())); return -1; } - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); bool showanim = true; - if (attacker is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(Stats.SPATK, attacker, false, this)) + if (attacker is IBattlerEffect b0 && b0.CanIncreaseStatStage(Stats.SPATK, attacker, false, this)) { - b0.pbIncreaseStat(Stats.SPATK, 2, attacker, false, this, showanim); + b0.IncreaseStat(Stats.SPATK, 2, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b1 && b1.pbCanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) + if (attacker is IBattlerEffect b1 && b1.CanIncreaseStatStage(Stats.SPDEF, attacker, false, this)) { - b1.pbIncreaseStat(Stats.SPDEF, 2, attacker, false, this, showanim); + b1.IncreaseStat(Stats.SPDEF, 2, attacker, false, this, showanim); showanim = false; } - if (attacker is IBattlerEffect b2 && b2.pbCanIncreaseStatStage(Stats.SPEED, attacker, false, this)) + if (attacker is IBattlerEffect b2 && b2.CanIncreaseStatStage(Stats.SPEED, attacker, false, this)) { - b2.pbIncreaseStat(Stats.SPEED, 2, attacker, false, this, showanim); + b2.IncreaseStat(Stats.SPEED, 2, attacker, false, this, showanim); showanim = false; } return 0; @@ -11946,23 +11947,23 @@ public override bool isHealingMove() return Core.USENEWBATTLEMECHANICS; } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0) { int hpgain = (int)Math.Round(opponent.damagestate.HPLost * 3 / 4f); if (opponent.hasWorkingAbility(Abilities.LIQUID_OOZE)) { - attacker.pbReduceHP(hpgain, true); - battle.pbDisplay(Game._INTL("{1} sucked up the liquid ooze!", attacker.ToString())); + attacker.ReduceHP(hpgain, true); + battle.Display(Game._INTL("{1} sucked up the liquid ooze!", attacker.ToString())); } else if (attacker.effects.HealBlock == 0) { if (attacker.hasWorkingItem(Items.BIG_ROOT)) hpgain = (int)Math.Floor(hpgain * 1.3f); - attacker.pbRecoverHP(hpgain, true); - battle.pbDisplay(Game._INTL("{1} had its energy drained!", opponent.ToString())); + attacker.RecoverHP(hpgain, true); + battle.Display(Game._INTL("{1} had its energy drained!", opponent.ToString())); } } return ret; @@ -11977,14 +11978,14 @@ public partial class PokeBattle_Move_150 : PokeBattle_Move { public PokeBattle_Move_150() : base() { } //public PokeBattle_Move_150(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - int ret = base.pbEffect(attacker, opponent, hitnum, alltargets, showanimation); + int ret = base.GetEffect(attacker, opponent, hitnum, alltargets, showanimation); if (opponent.damagestate.CalcDamage > 0 && opponent.isFainted()) { - if (attacker is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) + if (attacker is IBattlerEffect b && b.CanIncreaseStatStage(Stats.ATTACK, attacker, false, this)) { - b.pbIncreaseStat(Stats.ATTACK, 2, attacker, false, this); + b.IncreaseStat(Stats.ATTACK, 2, attacker, false, this); } } return ret; @@ -12000,26 +12001,26 @@ public partial class PokeBattle_Move_151 : PokeBattle_Move { public PokeBattle_Move_151() : base() { } //public PokeBattle_Move_151(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { int ret = -1; - pbShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, opponent, hitnum, alltargets, showanimation); if (!this.Flags.SoundBased || attacker.hasMoldBreaker() || !opponent.hasWorkingAbility(Abilities.SOUNDPROOF)) { bool showanim = true; - if (opponent is IBattlerEffect b0 && b0.pbReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim)) + if (opponent is IBattlerEffect b0 && b0.ReduceStat(Stats.ATTACK, 1, attacker, false, this, showanim)) { showanim = false; ret = 0; } - if (opponent is IBattlerEffect b1 && b1.pbReduceStat(Stats.SPATK, 1, attacker, false, this, showanim)) + if (opponent is IBattlerEffect b1 && b1.ReduceStat(Stats.SPATK, 1, attacker, false, this, showanim)) { showanim = false; ret = 0; } } if (!attacker.isFainted() && - this.battle.pbCanChooseNonActive(attacker.Index) && - !this.battle.pbAllFainted(this.battle.pbParty(opponent.Index))) + this.battle.CanChooseNonActive(attacker.Index) && + !this.battle.AllFainted(this.battle.Party(opponent.Index))) { attacker.effects.Uturn = true; ret = 0; } @@ -12035,17 +12036,17 @@ public partial class PokeBattle_Move_152 : PokeBattle_Move { public PokeBattle_Move_152() : base() { } //public PokeBattle_Move_152(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.field.FairyLock > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.field.FairyLock = 2; - battle.pbDisplay(Game._INTL("No one will be able to run away during the next turn!")); + battle.Display(Game._INTL("No one will be able to run away during the next turn!")); return 0; } } @@ -12057,23 +12058,23 @@ public partial class PokeBattle_Move_153 : PokeBattle_Move { public PokeBattle_Move_153() : base() { } //public PokeBattle_Move_153(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (attacker.pbOpposingSide.StickyWeb) + if (attacker.OpposingSide.StickyWeb) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); - attacker.pbOpposingSide.StickyWeb = true; - if (!this.battle.pbIsOpposing(attacker.Index)) + attacker.OpposingSide.StickyWeb = true; + if (!this.battle.IsOpposing(attacker.Index)) { - battle.pbDisplay(Game._INTL("A sticky web has been laid out beneath the opposing team's feet!")); + battle.Display(Game._INTL("A sticky web has been laid out beneath the opposing team's feet!")); } else { - battle.pbDisplay(Game._INTL("A sticky web has been laid out beneath your team's feet!")); + battle.Display(Game._INTL("A sticky web has been laid out beneath your team's feet!")); } return 0; } @@ -12088,19 +12089,19 @@ public partial class PokeBattle_Move_154 : PokeBattle_Move { public PokeBattle_Move_154() : base() { } //public PokeBattle_Move_154(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.field.ElectricTerrain > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.field.GrassyTerrain = 0; this.battle.field.MistyTerrain = 0; this.battle.field.ElectricTerrain = 5; - battle.pbDisplay(Game._INTL("An electric current runs across the battlefield!")); + battle.Display(Game._INTL("An electric current runs across the battlefield!")); return 0; } } @@ -12114,19 +12115,19 @@ public partial class PokeBattle_Move_155 : PokeBattle_Move { public PokeBattle_Move_155() : base() { } //public PokeBattle_Move_155(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.field.GrassyTerrain > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.field.ElectricTerrain = 0; this.battle.field.MistyTerrain = 0; this.battle.field.GrassyTerrain = 5; - battle.pbDisplay(Game._INTL("Grass grew to cover the battlefield!")); + battle.Display(Game._INTL("Grass grew to cover the battlefield!")); return 0; } } @@ -12140,19 +12141,19 @@ public partial class PokeBattle_Move_156 : PokeBattle_Move { public PokeBattle_Move_156() : base() { } //public PokeBattle_Move_156(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { if (this.battle.field.MistyTerrain > 0) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.field.ElectricTerrain = 0; this.battle.field.GrassyTerrain = 0; this.battle.field.MistyTerrain = 5; - battle.pbDisplay(Game._INTL("Mist swirled about the battlefield!")); + battle.Display(Game._INTL("Mist swirled about the battlefield!")); return 0; } } @@ -12164,17 +12165,17 @@ public partial class PokeBattle_Move_157 : PokeBattle_Move { public PokeBattle_Move_157() : base() { } //public PokeBattle_Move_157(Battle battle, Attack.Move move) : base(battle, move) { } - public override int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) + public override int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true) { - if (this.battle.pbIsOpposing(attacker.Index) || this.battle.doublemoney) + if (this.battle.IsOpposing(attacker.Index) || this.battle.doublemoney) { - battle.pbDisplay(Game._INTL("But it failed!")); + battle.Display(Game._INTL("But it failed!")); return -1; } - pbShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); + ShowAnimation(this.id, attacker, null, hitnum, alltargets, showanimation); this.battle.doublemoney = true; - battle.pbDisplay(Game._INTL("Everyone is caught up in the happy atmosphere!")); + battle.Display(Game._INTL("Everyone is caught up in the happy atmosphere!")); return 0; } } @@ -12186,13 +12187,13 @@ public partial class PokeBattle_Move_158 : PokeBattle_Move { public PokeBattle_Move_158() : base() { } //public PokeBattle_Move_158(Battle battle, Attack.Move move) : base(battle, move) { } - public override bool pbMoveFailed(IBattler attacker, IBattler opponent) + public override bool MoveFailed(IBattler attacker, IBattler opponent) { return attacker.Species == Pokemons.NONE || !attacker.pokemon.belch; } } #endregion -#pragma warning restore 0162 //Warning CS0162 Unreachable code detected +#pragma warning restore 0162 //Warning CS0162 Unreachable code detected //=============================================================================== // NOTE: If you're inventing new move effects, use function code 159 and onwards. //=============================================================================== diff --git a/PokemonUnity.Application/Combat/Battle.cs b/PokemonUnity.Application/Combat/Battle.cs index 03d45a0b1..6cbe32a08 100644 --- a/PokemonUnity.Application/Combat/Battle.cs +++ b/PokemonUnity.Application/Combat/Battle.cs @@ -52,7 +52,7 @@ public partial class Battle : IBattle, IHasDisplayMessage /// False if there are no consequences to player's defeat. /// /// (Ground Hogs day anyone?) - public bool canLose { get; private set; } + public bool canLose { get; protected set; } /// /// Shift/Set "battle style" option /// @@ -86,7 +86,7 @@ public partial class Battle : IBattle, IHasDisplayMessage /// Pokémon party for All Trainers in Battle. /// Array[4,6] = 0: Player, 1: Foe, 2: Ally, 3: Foe's Ally /// - //public IPokemon[,] party { get; private set; } + //public IPokemon[,] party { get; protected set; } /// /// Order of Pokémon in the player's party /// @@ -106,22 +106,23 @@ public partial class Battle : IBattle, IHasDisplayMessage /// /// Currently active Pokémon /// - public IBattler[] battlers { get; protected set; } + public IBattler[] battlers { get { return _battlers; } } + protected IBattler[] _battlers; /// /// Items held by opponents /// - //public List items { get; private set; } + //public List items { get; protected set; } public Items[][] items { get; set; } /// /// Effects common to each side of a battle /// - /// public List sides { get; private set; } - public IEffectsSide[] sides { get; private set; } + /// public List sides { get; protected set; } + public IEffectsSide[] sides { get; protected set; } /// /// Effects common to the whole of a battle /// - /// public List field { get; private set; } - public IEffectsField field { get; private set; } + /// public List field { get; protected set; } + public IEffectsField field { get; protected set; } /// /// Battle surroundings; /// Environment node is used for background visual, @@ -129,7 +130,7 @@ public partial class Battle : IBattle, IHasDisplayMessage /// public Environments environment { get; set; } /// - /// Current weather, custom methods should use instead + /// Current weather, custom methods should use instead /// public Weather weather { get; set; } //public void SetWeather (Weather weather) { this.weather = weather; } @@ -140,11 +141,11 @@ public partial class Battle : IBattle, IHasDisplayMessage /// /// True if during the switching phase of the round /// - public bool switching { get; private set; } + public bool switching { get; protected set; } /// /// True if Future Sight is hitting /// - public bool futuresight { get; private set; } + public bool futuresight { get; protected set; } /// /// The Struggle move /// @@ -152,7 +153,7 @@ public partial class Battle : IBattle, IHasDisplayMessage /// Execute whatever move/function is stored in this variable /// /// Func - public IBattleMove struggle { get; private set; } + public IBattleMove struggle { get; protected set; } /// /// Choices made by each Pokémon this round /// @@ -160,7 +161,7 @@ public partial class Battle : IBattle, IHasDisplayMessage /// /// Success states /// - public ISuccessState[] successStates { get; private set; } + public ISuccessState[] successStates { get; protected set; } /// /// Last move used /// @@ -173,7 +174,7 @@ public partial class Battle : IBattle, IHasDisplayMessage /// Battle index of each trainer's Pokémon to Mega Evolve /// /// Instead of reflecting entire party, it displays for active on field? - public int[][] megaEvolution { get; private set; } + public int[][] megaEvolution { get; protected set; } /// /// Whether Amulet Coin's effect applies /// @@ -204,34 +205,38 @@ public partial class Battle : IBattle, IHasDisplayMessage public string endspeechwin2 { get; set; } /// /// - public IDictionary rules { get; private set; } - //public List rules { get; private set; } + public IDictionary rules { get; protected set; } + //public List rules { get; protected set; } /// /// Counter to track number of turns for battle /// public int turncount { get; set; } - public IBattler[] priority { get; protected set; } - public List snaggedpokemon { get; private set; } + protected IBattler[] priority { get { return _priority; } } + protected IBattler[] _priority; + protected List snaggedpokemon; /// /// Each time you use the option to flee, the counter goes up. /// - public int runCommand { get; private set; } + protected int runCommand; /// /// Another counter that has something to do with tracking items picked up during a battle /// public int nextPickupUse { get { pickupUse+=1; return pickupUse; } } - private int pickupUse { get; set; } - public bool controlPlayer { get; set; } - public bool usepriority { get; set; } - public IBattlePeer peer { get; set; } + protected int pickupUse; + protected bool controlPlayer; + protected bool usepriority; + protected IBattlePeer peer; #endregion #region Constructor /// + /// using this to override constructor behavior on inherited... /// + protected Battle() { } public Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent) + : this (scene, p1, p2, player == null ? null : new ITrainer[] { player }, opponent == null ? null : new ITrainer[] { opponent }) { - (this as IBattle).initialize(scene, p1, p2, player, opponent); + //(this as IBattle).initialize(scene, p1, p2, player, opponent); } public Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent) { @@ -301,7 +306,7 @@ public IBattle initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] fullparty1 = false; fullparty2 = false; - battlers = new Pokemon[maxBattlers]; + _battlers = new Pokemon[maxBattlers]; //items = new List(); //null; items = new Items[this.opponent.Length][]; for (int t = 0; t < this.opponent.Length; t++) //List of Trainers @@ -358,25 +363,25 @@ public IBattle initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] peer = PokemonUnity.Monster.PokeBattle_BattlePeer.create(); //peer = new PokeBattle_BattlePeer(); - priority = new Pokemon[battlers.Length]; + _priority = new Pokemon[battlers.Length]; - //usepriority = false; //False is already default value; redundant. + usepriority = false; snaggedpokemon = new List(); runCommand = 0; if (Kernal.MoveData.Keys.Contains(Moves.STRUGGLE)) - struggle = Combat.Move.pbFromPBMove(this, new Attack.Move(Moves.STRUGGLE)); + struggle = Combat.Move.FromMove(this, new Attack.Move(Moves.STRUGGLE)); else struggle = new PokeBattle_Struggle().Initialize(this, new Attack.Move(Moves.STRUGGLE)); //struggle.PP = -1; for (int i = 0; i < battlers.Length; i++) { - this.battlers[i] = new Pokemon(this, (sbyte)i); + this._battlers[i] = new Pokemon(this, (sbyte)i); //} for (int i = 0; i < battlers.Length; i++) { - // this.battlers[i].initialize(this, (sbyte)i); + // this._battlers[i].initialize(this, (sbyte)i); } foreach (var i in party1) @@ -399,26 +404,26 @@ public IBattle initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] #endregion #region Method - public virtual int pbRandom(int index) + public virtual int Random(int index) { return Core.Rand.Next(index); } - public virtual void pbAbort() { + public virtual void Abort() { //GameDebug.LogError("Battle aborted"); throw new BattleAbortedException("Battle aborted"); } #region Catching and storing Pokémon. - public virtual void pbStorePokemon(IPokemon pokemon) + public virtual void StorePokemon(IPokemon pokemon) { if(pokemon is IPokemonShadowPokemon p && !p.isShadow) - if (pbDisplayConfirm(Game._INTL("Would you like to give a nickname to {1}?", Game._INTL(pokemon.Species.ToString(TextScripts.Name))))) + if (DisplayConfirm(Game._INTL("Would you like to give a nickname to {1}?", Game._INTL(pokemon.Species.ToString(TextScripts.Name))))) { - //string nick = @scene.pbNameEntry(Game._INTL("{1}'s nickname?", Game._INTL(pokemon.Species.ToString(TextScripts.Name))), pokemon); + //string nick = @scene.NameEntry(Game._INTL("{1}'s nickname?", Game._INTL(pokemon.Species.ToString(TextScripts.Name))), pokemon); string nick = string.Empty; if (@scene is IPokeBattle_Scene s0) - nick = s0.pbNameEntry(Game._INTL("{1}'s nickname?", Game._INTL(pokemon.Species.ToString(TextScripts.Name))), pokemon); + nick = s0.NameEntry(Game._INTL("{1}'s nickname?", Game._INTL(pokemon.Species.ToString(TextScripts.Name))), pokemon); //if(!string.IsNullOrEmpty(nick)) pokemon.Name = nick; if(!string.IsNullOrEmpty(nick)) (pokemon as Monster.Pokemon).SetNickname(nick); } @@ -430,50 +435,50 @@ public virtual void pbStorePokemon(IPokemon pokemon) // success = Game.GameData.Player.PC.hasSpace(); // if(!success) Game.GameData.Player.PC.getIndexOfFirstEmpty(); //} while (!success); //Cycle through all boxes unless they're all full - int oldcurbox = @peer.pbCurrentBox(); //Game.GameData.Player.PC.ActiveBox; - int storedbox = @peer.pbStorePokemon(pbPlayer(), pokemon); + int oldcurbox = @peer.CurrentBox(); //Game.GameData.Player.PC.ActiveBox; + int storedbox = @peer.StorePokemon(Player(), pokemon); //int? storedbox = Game.GameData.Player.PC.getIndexOfFirstEmpty(); if (storedbox<0) return; //!storedbox.HasValue - string creator = @peer.pbGetStorageCreator(); //Game.GameData.Player.IsCreator ? Game.GameData.Trainer.name : @peer.pbGetStorageCreator(); - string curboxname = @peer.pbBoxName(oldcurbox); //Game.GameData.Player.PC.BoxNames[oldcurbox]; - string boxname = @peer.pbBoxName(storedbox); //Game.GameData.Player.PC.BoxNames[storedbox.Value]; + string creator = @peer.GetStorageCreator(); //Game.GameData.Player.IsCreator ? Game.GameData.Trainer.name : @peer.GetStorageCreator(); + string curboxname = @peer.BoxName(oldcurbox); //Game.GameData.Player.PC.BoxNames[oldcurbox]; + string boxname = @peer.BoxName(storedbox); //Game.GameData.Player.PC.BoxNames[storedbox.Value]; if (storedbox != oldcurbox) { if (creator != null) //Game.GameData.Player.IsCreator - pbDisplayPaused(Game._INTL("Box \"{1}\" on {2}'s PC was full.", curboxname, creator)); + DisplayPaused(Game._INTL("Box \"{1}\" on {2}'s PC was full.", curboxname, creator)); else - pbDisplayPaused(Game._INTL("Box \"{1}\" on someone's PC was full.", curboxname)); - pbDisplayPaused(Game._INTL("{1} was transferred to box \"{2}\".", pokemon.Name, boxname)); + DisplayPaused(Game._INTL("Box \"{1}\" on someone's PC was full.", curboxname)); + DisplayPaused(Game._INTL("{1} was transferred to box \"{2}\".", pokemon.Name, boxname)); } else { if (creator != null) //Game.GameData.Player.IsCreator - pbDisplayPaused(Game._INTL("{1} was transferred to {2}'s PC.", pokemon.Name, creator)); + DisplayPaused(Game._INTL("{1} was transferred to {2}'s PC.", pokemon.Name, creator)); else - pbDisplayPaused(Game._INTL("{1} was transferred to someone's PC.", pokemon.Name)); - pbDisplayPaused(Game._INTL("It was stored in box \"{1}\".", boxname)); + DisplayPaused(Game._INTL("{1} was transferred to someone's PC.", pokemon.Name)); + DisplayPaused(Game._INTL("It was stored in box \"{1}\".", boxname)); } } - public virtual void pbThrowPokeball(int idxPokemon, Items ball, int? rareness = null, bool showplayer = false) + public virtual void ThrowPokeball(int idxPokemon, Items ball, int? rareness = null, bool showplayer = false) { string itemname = Game._INTL(ball.ToString(TextScripts.Name)); IBattler battler = null; - if (pbIsOpposing(idxPokemon)) + if (IsOpposing(idxPokemon)) battler = battlers[idxPokemon]; else - battler = battlers[idxPokemon].pbOppositeOpposing; + battler = battlers[idxPokemon].OppositeOpposing; if (battler.isFainted()) - battler = battler.pbPartner; - pbDisplayBrief(Game._INTL("{1} threw one {2}!", Game.GameData.Trainer.name, itemname)); + battler = battler.Partner; + DisplayBrief(Game._INTL("{1} threw one {2}!", Game.GameData.Trainer.name, itemname)); if (battler.isFainted()) { - pbDisplay(Game._INTL("But there was no target...")); + Display(Game._INTL("But there was no target...")); return; } int shakes = 0; bool critical = false; if (opponent.Length > 0//.ID != TrainerTypes.WildPokemon) - && ((Game.GameData is IItemCheck ch && !ch.pbIsSnagBall(ball)) || battler is IBattlerShadowPokemon s && !s.isShadow())) + && ((Game.GameData is IItemCheck ch && !ch.IsSnagBall(ball)) || battler is IBattlerShadowPokemon s && !s.isShadow())) { - if (@scene is IPokeBattle_Scene s0) s0.pbThrowAndDeflect(ball, 1); - pbDisplay(Game._INTL("The Trainer blocked the Ball!\nDon't be a thief!")); + if (@scene is IPokeBattle_Scene s0) s0.ThrowAndDeflect(ball, 1); + Display(Game._INTL("The Trainer blocked the Ball!\nDon't be a thief!")); } else { @@ -511,69 +516,69 @@ public virtual void pbThrowPokeball(int idxPokemon, Items ball, int? rareness = { if (x < 1) x = 1; int y = (int)Math.Floor(65536 / (Math.Pow((255.0 / x), 0.1875)));//(255.0 / x) ^ 0.1875 - if (Core.USECRITICALCAPTURE && pbRandom(256) < 0) + if (Core.USECRITICALCAPTURE && Random(256) < 0) { critical = true; - if (pbRandom(65536) < y) shakes = 4; + if (Random(65536) < y) shakes = 4; } else { - if (pbRandom(65536) 0) + DisplayBrief(Game._INTL("Gotcha! {1} was caught!", pokemon.Name)); + if (@scene is IPokeBattle_Scene s1) s1.ThrowSuccess(); + if (Game.GameData is IItemCheck c0 && c0.IsSnagBall(ball) && @opponent.Length > 0) { - pbRemoveFromParty(battler.Index, battler.pokemonIndex); - battler.pbReset(); + RemoveFromParty(battler.Index, battler.pokemonIndex); + battler.Reset(); battler.participants = new List(); } else @decision = BattleResults.CAPTURED; //Script is repeated below as `SetCatchInfo` - if (Game.GameData is IItemCheck c1 && c1.pbIsSnagBall(ball)) + if (Game.GameData is IItemCheck c1 && c1.IsSnagBall(ball)) { pokemon.ot = this.player[0].name; pokemon.trainerID = this.player[0].id; //pokemon.OT = this.player[0].Trainer; } BallHandlers.OnCatch(ball,this,pokemon); - pokemon.ballUsed = ball; //pbGetBallType(ball); + pokemon.ballUsed = ball; //GetBallType(ball); if (pokemon is IPokemonMegaEvolution m0) m0.makeUnmega(); //rescue null if (pokemon is IPokemonMegaEvolution m1) m1.makeUnprimal(); //rescue null - pokemon.pbRecordFirstMoves(); + pokemon.RecordFirstMoves(); BallHandlers.OnCatch(ball,this,pokemon); - //pokemon = new Monster.Pokemon(pokemon, ball, pbIsSnagBall(ball) ? Monster.Pokemon.ObtainedMethod.SNAGGED : Monster.Pokemon.ObtainedMethod.MET); - //pokemon.SetCatchInfos(this.pbPlayer(), ball, Item.pbIsSnagBall(ball) ? Monster.Pokemon.ObtainedMethod.SNAGGED : Monster.Pokemon.ObtainedMethod.MET); + //pokemon = new Monster.Pokemon(pokemon, ball, IsSnagBall(ball) ? Monster.Pokemon.ObtainedMethod.SNAGGED : Monster.Pokemon.ObtainedMethod.MET); + //pokemon.SetCatchInfos(this.Player(), ball, Item.IsSnagBall(ball) ? Monster.Pokemon.ObtainedMethod.SNAGGED : Monster.Pokemon.ObtainedMethod.MET); if (Core.GAINEXPFORCAPTURE) { battler.captured = true; - pbGainEXP(); + GainEXP(); battler.captured = false; } if (Game.GameData.Trainer.pokedex) //Trainer has a Pokedex @@ -583,18 +588,18 @@ public virtual void pbThrowPokeball(int idxPokemon, Items ball, int? rareness = { this.player[0].setOwned(species); //Game.GameData.Player.Pokedex[(int)pokemon.Species, 1] = 1; - pbDisplayPaused(Game._INTL("{1}'s data was added to the Pokédex.", pokemon.Name)); - if (@scene is IPokeBattle_Scene s2) s2.pbShowPokedex(pokemon.Species); + DisplayPaused(Game._INTL("{1}'s data was added to the Pokédex.", pokemon.Name)); + if (@scene is IPokeBattle_Scene s2) s2.ShowPokedex(pokemon.Species); } } - if (@scene is IPokeBattle_Scene s3) s3.pbHideCaptureBall(); - if (Game.GameData is IItemCheck c2 && c2.pbIsSnagBall(ball) && @opponent.Length > 0) + if (@scene is IPokeBattle_Scene s3) s3.HideCaptureBall(); + if (Game.GameData is IItemCheck c2 && c2.IsSnagBall(ball) && @opponent.Length > 0) { - if (pokemon is IPokemonShadowPokemon sp) sp.pbUpdateShadowMoves(); //rescue null + if (pokemon is IPokemonShadowPokemon sp) sp.UpdateShadowMoves(); //rescue null @snaggedpokemon.Add((byte)battler.Index); //pokemon } else - pbStorePokemon(pokemon); + StorePokemon(pokemon); break; } } @@ -602,7 +607,7 @@ public virtual void pbThrowPokeball(int idxPokemon, Items ball, int? rareness = #endregion #region Info about battle. - public virtual bool pbDoubleBattleAllowed() + public virtual bool DoubleBattleAllowed() { if (!@fullparty1 && @party1.Length>Core.MAXPARTYSIZE) { return false; @@ -640,34 +645,35 @@ public virtual bool pbDoubleBattleAllowed() } } if (_opponent.Length > 0) { - int sendout1=pbFindNextUnfainted(@party2,0,pbSecondPartyBegin(1)); - int sendout2=pbFindNextUnfainted(@party2,pbSecondPartyBegin(1)); + int sendout1=FindNextUnfainted(@party2,0,SecondPartyBegin(1)); + int sendout2=FindNextUnfainted(@party2,SecondPartyBegin(1)); if (sendout1<0 || sendout2<0) return false; } else { - int sendout1=pbFindNextUnfainted(@party2,0); - int sendout2=pbFindNextUnfainted(@party2,sendout1+1); + int sendout1=FindNextUnfainted(@party2,0); + int sendout2=FindNextUnfainted(@party2,sendout1+1); if (sendout1<0 || sendout2<0) return false; } } if (_player.Length > 0) { - int sendout1=pbFindNextUnfainted(@party1,0,pbSecondPartyBegin(0)); - int sendout2=pbFindNextUnfainted(@party1,pbSecondPartyBegin(0)); + int sendout1=FindNextUnfainted(@party1,0,SecondPartyBegin(0)); + int sendout2=FindNextUnfainted(@party1,SecondPartyBegin(0)); if (sendout1<0 || sendout2<0) return false; } else { - int sendout1=pbFindNextUnfainted(@party1,0); - int sendout2=pbFindNextUnfainted(@party1,sendout1+1); + int sendout1=FindNextUnfainted(@party1,0); + int sendout2=FindNextUnfainted(@party1,sendout1+1); if (sendout1<0 || sendout2<0) return false; } return true; } - public Weather pbWeather { get //() + public virtual Weather Weather { get //() { for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].hasWorkingAbility(Abilities.CLOUD_NINE) || - @battlers[i].hasWorkingAbility(Abilities.AIR_LOCK)) { + if (_battlers[i].IsNotNullOrNone() && ( + _battlers[i].hasWorkingAbility(Abilities.CLOUD_NINE) || + _battlers[i].hasWorkingAbility(Abilities.AIR_LOCK))) { return Weather.NONE; } } @@ -677,18 +683,18 @@ public virtual bool pbDoubleBattleAllowed() #endregion #region Get Battler Info. - public bool pbIsOpposing(int index) + public bool IsOpposing(int index) { return (index % 2) == 1; } - public bool pbOwnedByPlayer(int index) + public bool OwnedByPlayer(int index) { - if (pbIsOpposing(index)) return false; + if (IsOpposing(index)) return false; if (@player.Length > 0 && index==2) return false; return true; } - public bool pbIsDoubleBattler(int index) { + public bool IsDoubleBattler(int index) { return (index>=2); } /// @@ -698,8 +704,8 @@ public bool pbIsDoubleBattler(int index) { /// /// public string ToString(int battlerindex, int pokemonindex) { - IPokemon[] party=pbParty(battlerindex); - if (pbIsOpposing(battlerindex)) { + IPokemon[] party=Party(battlerindex); + if (IsOpposing(battlerindex)) { if (@opponent != null) { return Game._INTL("The foe {1}", party[pokemonindex].Name); //return Game._INTL("The foe {1}", party[battlerindex,pokemonindex].Name); @@ -721,8 +727,8 @@ public string ToString(int battlerindex, int pokemonindex) { /// /// /// - public bool pbIsUnlosableItem(IBattler pkmn, Items item) { - if (Kernal.ItemData[item].IsLetter) return true; //pbIsMail(item) + public bool IsUnlosableItem(IBattler pkmn, Items item) { + if (ItemData.IsLetter(item)) return true; //IsMail(item) if (pkmn.effects.Transform) return false; if (pkmn.Ability == Abilities.MULTITYPE) { Items[] plates= new Items[] { Items.FIST_PLATE, Items.SKY_PLATE, Items.TOXIC_PLATE, Items.EARTH_PLATE, Items.STONE_PLATE, @@ -799,10 +805,10 @@ public bool pbIsUnlosableItem(IBattler pkmn, Items item) { return false; } - public IBattler pbCheckGlobalAbility(Abilities a) { + public IBattler CheckGlobalAbility(Abilities a) { for (int i = 0; i < battlers.Length; i++) { // in order from own first, opposing first, own second, opposing second - if (@battlers[i].hasWorkingAbility(a)) { - return @battlers[i]; + if (_battlers[i].hasWorkingAbility(a)) { + return _battlers[i]; } } return null; @@ -810,7 +816,7 @@ public IBattler pbCheckGlobalAbility(Abilities a) { #endregion #region Player-related Info. - public ITrainer pbPlayer() { + public ITrainer Player() { if (@player?.Length > 0) { return @player[0]; } @@ -819,9 +825,9 @@ public ITrainer pbPlayer() { } } - public Items[] pbGetOwnerItems(int battlerIndex) { + public Items[] GetOwnerItems(int battlerIndex) { if (@items == null) return new Items[0]; - if (pbIsOpposing(battlerIndex)) { + if (IsOpposing(battlerIndex)) { if (@opponent.Length > 0) { return (battlerIndex==1) ? @items[0] : @items[1]; } @@ -834,36 +840,36 @@ public Items[] pbGetOwnerItems(int battlerIndex) { } } - public void pbSetSeen(IPokemon pokemon) { + public void SetSeen(IPokemon pokemon) { if (Game.GameData.Trainer.pokedex && (pokemon.IsNotNullOrNone() && @internalbattle)) { //Trainer has a Pokedex - this.pbPlayer().seen[pokemon.Species]=true; - if (Game.GameData is IGameUtility g) g.pbSeenForm(pokemon); + this.Player().seen[pokemon.Species]=true; + if (Game.GameData is IGameUtility g) g.SeenForm(pokemon); //Game.GameData.Player.Pokedex[(int)pokemon.Species,0] = 1; //Game.GameData.Player.Pokedex[(int)pokemon.Species,2] = (byte)pokemon.form; } } - public string pbGetMegaRingName(int battlerIndex) { - if (pbBelongsToPlayer(battlerIndex)) { + public string GetMegaRingName(int battlerIndex) { + if (BelongsToPlayer(battlerIndex)) { foreach (Items i in Core.MEGARINGS) { - //if (!hasConst(PBItems,i)) continue; - if (Game.GameData.Bag.pbQuantity(i)>0) return Game._INTL(i.ToString(TextScripts.Name)); + //if (!hasConst(Items,i)) continue; + if (Game.GameData.Bag.Quantity(i)>0) return Game._INTL(i.ToString(TextScripts.Name)); //if (Game.GameData.Player.Bag.GetItemAmount(i)>0) return Game._INTL(i.ToString(TextScripts.Name)); } } // Add your own Mega objects for particular trainer types here - if (pbGetOwner(battlerIndex).trainertype == TrainerTypes.BUGCATCHER) { + if (GetOwner(battlerIndex).trainertype == TrainerTypes.BUGCATCHER) { return Game._INTL("Mega Net"); } return Game._INTL("Mega Ring"); } - public bool pbHasMegaRing(int battlerIndex) { - if (!pbBelongsToPlayer(battlerIndex)) return true; + public bool HasMegaRing(int battlerIndex) { + if (!BelongsToPlayer(battlerIndex)) return true; foreach (Items i in Core.MEGARINGS) { - //if (!hasConst(PBItems,i)) continue; - if (Game.GameData.Bag.pbQuantity(i)>0) return true; + //if (!hasConst(Items,i)) continue; + if (Game.GameData.Bag.Quantity(i)>0) return true; //if (Game.GameData.Player.Bag.GetItemAmount(i)>0) return true; } return false; @@ -871,31 +877,17 @@ public bool pbHasMegaRing(int battlerIndex) { #endregion #region Get party info, manipulate parties. - public int PokemonCount(IPokemon[] party) - { - int count = 0; - for (int i = 0; i < party.Length; i++) - { - if (party[i].Species == Pokemons.NONE) continue; - if (party[i].HP > 0 && !party[i].isEgg) count += 1; - } - return count; - } - public bool AllFainted(IPokemon[] party) - { - return PokemonCount(party) == 0; - } - public int MaxLevel(IPokemon[] party) - { - int lv = 0; - for (int i = 0; i < party.Length; i++) - { - if (party[i].Species == Pokemons.NONE) continue; - if (lv < party[i].Level) lv = party[i].Level; - } - return lv; - } - public int pbPokemonCount(IPokemon[] party) { + //public int PokemonCount(IPokemon[] party) + //{ + // int count = 0; + // for (int i = 0; i < party.Length; i++) + // { + // if (party[i].Species == Pokemons.NONE) continue; + // if (party[i].HP > 0 && !party[i].isEgg) count += 1; + // } + // return count; + //} + public int PokemonCount(IPokemon[] party) { int count=0; foreach (IPokemon i in party) { if (!i.IsNotNullOrNone()) continue; @@ -903,12 +895,21 @@ public int pbPokemonCount(IPokemon[] party) { } return count; } - - public bool pbAllFainted (IPokemon[] party) { - return pbPokemonCount(party)==0; + public bool AllFainted(IPokemon[] party) + { + return PokemonCount(party) == 0; } - - public int pbMaxLevel(IPokemon[] party) { + //public int MaxLevel(IPokemon[] party) + //{ + // int lv = 0; + // for (int i = 0; i < party.Length; i++) + // { + // if (party[i].Species == Pokemons.NONE) continue; + // if (lv < party[i].Level) lv = party[i].Level; + // } + // return lv; + //} + public int MaxLevel(IPokemon[] party) { int lv=0; foreach (var i in party) { if (!i.IsNotNullOrNone()) continue; @@ -917,14 +918,14 @@ public int pbMaxLevel(IPokemon[] party) { return lv; } - public int pbMaxLevelFromIndex(int index) { - IPokemon[] party=pbParty(index); - ITrainer[] owner=pbIsOpposing(index) ? @opponent : @player; + public int MaxLevelFromIndex(int index) { + IPokemon[] party=Party(index); + ITrainer[] owner=IsOpposing(index) ? @opponent : @player; int maxlevel=0; if (owner.Length > 0) { int start=0; - int limit=pbSecondPartyBegin(index); - if (pbIsDoubleBattler(index)) start=limit; + int limit=SecondPartyBegin(index); + if (IsDoubleBattler(index)) start=limit; for (int i = start; i < start+limit; i++) { if (!party[i].IsNotNullOrNone()) continue; if (maxlevel /// /// - public IPokemon[] pbParty(int index) { - return pbIsOpposing(index) ? party2 : party1; + public IPokemon[] Party(int index) { + return IsOpposing(index) ? party2 : party1; //return battlers.Where(b => (b.Index % 2) == (index % 2)).ToArray(); } - public IPokemon[] pbOpposingParty(int index) { - return pbIsOpposing(index) ? party1 : party2; + public IPokemon[] OpposingParty(int index) { + return IsOpposing(index) ? party1 : party2; } - public int pbSecondPartyBegin(int battlerIndex) { - if (pbIsOpposing(battlerIndex)) { + public int SecondPartyBegin(int battlerIndex) { + if (IsOpposing(battlerIndex)) { //return @fullparty2 ? 6 : 3; //split in half for doubles return @fullparty2 ? (Game.GameData as Game).Features.LimitPokemonPartySize : (int)(Core.MAXPARTYSIZE * .5); } @@ -964,16 +965,16 @@ public int pbSecondPartyBegin(int battlerIndex) { } } - public int pbPartyLength(int battlerIndex) { - if (pbIsOpposing(battlerIndex)) { - return (@opponent.Length > 0) ? pbSecondPartyBegin(battlerIndex) : (Game.GameData as Game).Features.LimitPokemonPartySize; + public int PartyLength(int battlerIndex) { + if (IsOpposing(battlerIndex)) { + return (@opponent.Length > 0) ? SecondPartyBegin(battlerIndex) : (Game.GameData as Game).Features.LimitPokemonPartySize; } else { - return @player.Length > 0 ? pbSecondPartyBegin(battlerIndex) : (Game.GameData as Game).Features.LimitPokemonPartySize; + return @player.Length > 0 ? SecondPartyBegin(battlerIndex) : (Game.GameData as Game).Features.LimitPokemonPartySize; } } - public int pbFindNextUnfainted(IPokemon[] party,int start,int finish=-1) { + public int FindNextUnfainted(IPokemon[] party,int start,int finish=-1) { if (finish<0) finish=party.Length; for (int i = start; i < finish; i++) { if (!party[i].IsNotNullOrNone()) continue; @@ -982,11 +983,11 @@ public int pbFindNextUnfainted(IPokemon[] party,int start,int finish=-1) { return -1; } - public int pbGetLastPokeInTeam(int index) { - IPokemon[] party=pbParty(index); - int[] partyorder=(!pbIsOpposing(index) ? @party1order : @party2order).ToArray(); - int plength=pbPartyLength(index); - int pstart=pbGetOwnerIndex(index)*plength; + public int GetLastPokeInTeam(int index) { + IPokemon[] party=Party(index); + int[] partyorder=(!IsOpposing(index) ? @party1order : @party2order).ToArray(); + int plength=PartyLength(index); + int pstart=GetOwnerIndex(index)*plength; int lastpoke=-1; for (int i = pstart; i < pstart+plength - 1; i++) { IPokemon p=party[partyorder[i]]; @@ -996,20 +997,20 @@ public int pbGetLastPokeInTeam(int index) { return lastpoke; } - public IBattler pbFindPlayerBattler(int pkmnIndex) { + public IBattler FindPlayerBattler(int pkmnIndex) { IBattler battler=null; for (int k = 0; k < battlers.Length; k++) { - if (!pbIsOpposing(k) && @battlers[k].pokemonIndex==pkmnIndex) { - battler=@battlers[k]; + if (!IsOpposing(k) && _battlers[k].pokemonIndex==pkmnIndex) { + battler=_battlers[k]; break; } } return battler; } - public bool pbIsOwner (int battlerIndex, int partyIndex) { - int secondParty=pbSecondPartyBegin(battlerIndex); - if (!pbIsOpposing(battlerIndex)) { + public bool IsOwner (int battlerIndex, int partyIndex) { + int secondParty=SecondPartyBegin(battlerIndex); + if (!IsOpposing(battlerIndex)) { if (@player == null || @player.Length == 0) return true; return (battlerIndex==0) ? partyIndex=secondParty; } @@ -1019,8 +1020,8 @@ public bool pbIsOwner (int battlerIndex, int partyIndex) { } } - public ITrainer pbGetOwner(int battlerIndex) { - if (pbIsOpposing(battlerIndex)) { + public ITrainer GetOwner(int battlerIndex) { + if (IsOpposing(battlerIndex)) { if (@opponent.Length > 0) { return (battlerIndex==1) ? @opponent[0] : @opponent[1]; } @@ -1040,8 +1041,8 @@ public ITrainer pbGetOwner(int battlerIndex) { } } - public ITrainer pbGetOwnerPartner(int battlerIndex) { - if (pbIsOpposing(battlerIndex)) { + public ITrainer GetOwnerPartner(int battlerIndex) { + if (IsOpposing(battlerIndex)) { if (@opponent.Length > 0) { return (battlerIndex==1) ? @opponent[1] : @opponent[0]; } @@ -1061,8 +1062,8 @@ public ITrainer pbGetOwnerPartner(int battlerIndex) { } } - public int pbGetOwnerIndex(int battlerIndex) { - if (pbIsOpposing(battlerIndex)) { + public int GetOwnerIndex(int battlerIndex) { + if (IsOpposing(battlerIndex)) { return (@opponent.Length > 0) ? ((battlerIndex==1) ? 0 : 1) : 0; } else { @@ -1070,7 +1071,7 @@ public int pbGetOwnerIndex(int battlerIndex) { } } - public bool pbBelongsToPlayer (int battlerIndex) { + public bool BelongsToPlayer (int battlerIndex) { if (@player.Length > 0 && @player.Length>1) { return battlerIndex==0; } @@ -1080,9 +1081,9 @@ public bool pbBelongsToPlayer (int battlerIndex) { //return false; } - public ITrainer pbPartyGetOwner(int battlerIndex, int partyIndex) { - int secondParty=pbSecondPartyBegin(battlerIndex); - if (!pbIsOpposing(battlerIndex)) { + public ITrainer PartyGetOwner(int battlerIndex, int partyIndex) { + int secondParty=SecondPartyBegin(battlerIndex); + if (!IsOpposing(battlerIndex)) { if (@player == null || @player.Length == 0) return new Trainer(null,TrainerTypes.WildPokemon);//wild pokemon instead of @player? return (partyIndex=party.Length-1) { party[i]=null; } @@ -1146,7 +1147,7 @@ public void pbRemoveFromParty(int battlerIndex, int partyIndex) { } for (int i = 0; i < order.Length; i++) { if (order[i] /// /// - public bool CanShowCommands(int idxPokemon) + public virtual bool CanShowCommands(int idxPokemon) { - IBattler thispkmn = @battlers[idxPokemon]; + if (_battlers.Length <= idxPokemon) return false; //Outside of index boundary... + IBattler thispkmn = _battlers[idxPokemon] as IBattler; + if (!thispkmn.IsNotNullOrNone()) return false; if (thispkmn.isFainted()) return false; if (thispkmn.effects.TwoTurnAttack > 0) return false; if (thispkmn.effects.HyperBeam > 0) return false; @@ -1174,7 +1177,7 @@ public bool CanShowCommands(int idxPokemon) #region Attacking public bool CanShowFightMenu(int idxPokemon) { - IBattler thispkmn = @battlers[idxPokemon]; + IBattler thispkmn = _battlers[idxPokemon]; if (!CanShowCommands(idxPokemon)) return false; // No moves that can be chosen @@ -1191,19 +1194,19 @@ public bool CanShowFightMenu(int idxPokemon) public bool CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk = false) { - IBattler thispkmn = @battlers[idxPokemon]; + IBattler thispkmn = _battlers[idxPokemon]; IBattleMove thismove = thispkmn.moves[idxMove]; //ToDo: Array for opposing pokemons, [i] changes based on if double battle - IBattler opp1 = thispkmn.pbOpposing1; - IBattler opp2 = null; //ToDo: thispkmn.pbOpposing2; + IBattler opp1 = thispkmn.Opposing1; + IBattler opp2 = null; //ToDo: thispkmn.Opposing2; if (thismove == null || thismove.id == 0) return false; if (thismove.PP <= 0 && thismove.TotalPP > 0 && !sleeptalk) { - if (showMessages) pbDisplayPaused(Game._INTL("There's no PP left for this move!")); + if (showMessages) DisplayPaused(Game._INTL("There's no PP left for this move!")); return false; } if (thispkmn.hasWorkingItem(Items.ASSAULT_VEST)) {// && thismove.IsStatus? - if (showMessages) pbDisplayPaused(Game._INTL("The effects of the {1} prevent status moves from being used!", Game._INTL(thispkmn.Item.ToString(TextScripts.Name)))); + if (showMessages) DisplayPaused(Game._INTL("The effects of the {1} prevent status moves from being used!", Game._INTL(thispkmn.Item.ToString(TextScripts.Name)))); return false; } if ((int)thispkmn.effects.ChoiceBand >= 0 && @@ -1218,7 +1221,7 @@ public bool CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool s } if (hasmove && thismove.id != thispkmn.effects.ChoiceBand) { if (showMessages) - pbDisplayPaused(Game._INTL("{1} allows the use of only {2}!", + DisplayPaused(Game._INTL("{1} allows the use of only {2}!", Game._INTL(thispkmn.Item.ToString(TextScripts.Name)), Game._INTL(thispkmn.effects.ChoiceBand.ToString(TextScripts.Name)))); return false; @@ -1231,7 +1234,7 @@ public bool CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool s thismove.id == opp1.moves[2].id || thismove.id == opp1.moves[3].id) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} can't use the sealed {2}!", thispkmn.ToString(), Game._INTL(thismove.id.ToString(TextScripts.Name)))); + if (showMessages) DisplayPaused(Game._INTL("{1} can't use the sealed {2}!", thispkmn.ToString(), Game._INTL(thismove.id.ToString(TextScripts.Name)))); GameDebug.Log($"[CanChoose][#{opp1.ToString()} has: #{Game._INTL(opp1.moves[0].id.ToString(TextScripts.Name))}, #{Game._INTL(opp1.moves[1].id.ToString(TextScripts.Name))}, #{Game._INTL(opp1.moves[2].id.ToString(TextScripts.Name))}, #{Game._INTL(opp1.moves[3].id.ToString(TextScripts.Name))}]"); return false; } @@ -1243,28 +1246,28 @@ public bool CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool s thismove.id == opp2.moves[2].id || thismove.id == opp2.moves[3].id) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} can't use the sealed {2}!", thispkmn.ToString(), Game._INTL(thismove.id.ToString(TextScripts.Name)))); + if (showMessages) DisplayPaused(Game._INTL("{1} can't use the sealed {2}!", thispkmn.ToString(), Game._INTL(thismove.id.ToString(TextScripts.Name)))); GameDebug.Log($"[CanChoose][#{opp2.ToString()} has: #{Game._INTL(opp2.moves[0].id.ToString(TextScripts.Name))}, #{Game._INTL(opp2.moves[1].id.ToString(TextScripts.Name))}, #{Game._INTL(opp2.moves[2].id.ToString(TextScripts.Name))}, #{Game._INTL(opp2.moves[3].id.ToString(TextScripts.Name))}]"); return false; } } if (thispkmn.effects.Taunt > 0 && thismove.basedamage == 0) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} can't use {2} after the taunt!", thispkmn.ToString(), Game._INTL(thismove.id.ToString(TextScripts.Name)))); + if (showMessages) DisplayPaused(Game._INTL("{1} can't use {2} after the taunt!", thispkmn.ToString(), Game._INTL(thismove.id.ToString(TextScripts.Name)))); return false; } if (thispkmn.effects.Torment) { if (thismove.id==thispkmn.lastMoveUsed) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} can't use the same move twice in a row due to the torment!", thispkmn.ToString())); + if (showMessages) DisplayPaused(Game._INTL("{1} can't use the same move twice in a row due to the torment!", thispkmn.ToString())); return false; } } if (thismove.id==thispkmn.effects.DisableMove && !sleeptalk) { - if (showMessages) pbDisplayPaused(Game._INTL("{1}'s {2} is disabled!", thispkmn.ToString(), Game._INTL(thismove.id.ToString(TextScripts.Name)))); + if (showMessages) DisplayPaused(Game._INTL("{1}'s {2} is disabled!", thispkmn.ToString(), Game._INTL(thismove.id.ToString(TextScripts.Name)))); return false; } if (thismove.Effect==Attack.Data.Effects.x153 && // ToDo: Belch (thispkmn.Species != Pokemons.NONE || !thispkmn.pokemon.belch)) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} hasn't eaten any held berry, so it can't possibly belch!", thispkmn.ToString())); + if (showMessages) DisplayPaused(Game._INTL("{1} hasn't eaten any held berry, so it can't possibly belch!", thispkmn.ToString())); return false; } if (thispkmn.effects.Encore>0 && idxMove!=thispkmn.effects.EncoreIndex) { @@ -1273,8 +1276,8 @@ public bool CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool s return true; } - public virtual void pbAutoChooseMove(int idxPokemon, bool showMessages=true) { - IBattler thispkmn=@battlers[idxPokemon]; + public virtual void AutoChooseMove(int idxPokemon, bool showMessages=true) { + IBattler thispkmn=_battlers[idxPokemon]; if (thispkmn.isFainted()) { //@choices[idxPokemon][0]=0; //@choices[idxPokemon][1]=0; @@ -1292,20 +1295,20 @@ public virtual void pbAutoChooseMove(int idxPokemon, bool showMessages=true) { @choices[idxPokemon]=new Choice(ChoiceAction.UseMove, thispkmn.effects.EncoreIndex, thispkmn.moves[thispkmn.effects.EncoreIndex]); if (@doublebattle) { IBattleMove thismove=thispkmn.moves[thispkmn.effects.EncoreIndex]; - Attack.Data.Targets targets=thispkmn.pbTarget(thismove); + Attack.Data.Targets targets=thispkmn.Target(thismove); if (targets==Attack.Data.Targets.SELECTED_POKEMON || targets==Attack.Data.Targets.SELECTED_POKEMON_ME_FIRST) { //Targets.SingleNonUser - int target=(@scene as IPokeBattle_SceneNonInteractive).pbChooseTarget(idxPokemon,targets); - if (target>=0) pbRegisterTarget(idxPokemon,target); + int target=(@scene as IPokeBattle_SceneNonInteractive).ChooseTarget(idxPokemon,targets); + if (target>=0) RegisterTarget(idxPokemon,target); } else if (targets==Attack.Data.Targets.USER_OR_ALLY) { //Targets.UserOrPartner - int target=(@scene as IPokeBattle_SceneNonInteractive).pbChooseTarget(idxPokemon,targets); - if (target>=0 && (target&1)==(idxPokemon&1)) pbRegisterTarget(idxPokemon,target); //both integers are Even (ally) and Identical (selected) + int target=(@scene as IPokeBattle_SceneNonInteractive).ChooseTarget(idxPokemon,targets); + if (target>=0 && (target&1)==(idxPokemon&1)) RegisterTarget(idxPokemon,target); //both integers are Even (ally) and Identical (selected) } } } else { - if (!pbIsOpposing(idxPokemon)) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} has no moves left!",thispkmn.Name)); + if (!IsOpposing(idxPokemon)) { + if (showMessages) DisplayPaused(Game._INTL("{1} has no moves left!",thispkmn.Name)); } //@choices[idxPokemon][0]=1; // "Use move" //@choices[idxPokemon][1]=-1; // Index of move to be used @@ -1315,8 +1318,8 @@ public virtual void pbAutoChooseMove(int idxPokemon, bool showMessages=true) { } } - public virtual bool pbRegisterMove(int idxPokemon, int idxMove, bool showMessages=true) { - IBattler thispkmn=@battlers[idxPokemon]; + public virtual bool RegisterMove(int idxPokemon, int idxMove, bool showMessages=true) { + IBattler thispkmn=_battlers[idxPokemon]; IBattleMove thismove=thispkmn.moves[idxMove]; if (!CanChooseMove(idxPokemon,idxMove,showMessages)) return false; //@choices[idxPokemon][0]=1; // "Use move" @@ -1327,35 +1330,35 @@ public virtual bool pbRegisterMove(int idxPokemon, int idxMove, bool showMessage return true; } - public bool pbChoseMove (int i, Moves move) { - if (@battlers[i].isFainted()) return false; + public bool ChoseMove (int i, Moves move) { + if (_battlers[i].isFainted()) return false; //if (@choices[i][0]==1 && @choices[i][1]>=0) { - if (@choices[i].Action==ChoiceAction.UseMove && @choices[i].Index>=0) { + if (@choices[i]?.Action==ChoiceAction.UseMove && @choices[i]?.Index>=0) { int choice=@choices[i].Index; //@choices[i][1]; - return @battlers[i].moves[choice].id == move; + return _battlers[i].moves[choice].id == move; } return false; } - public bool pbChoseMoveFunctionCode (int i,Attack.Data.Effects code) { - if (@battlers[i].isFainted()) return false; + public bool ChoseMoveFunctionCode (int i,Attack.Data.Effects code) { + if (_battlers[i].isFainted()) return false; //if (@choices[i][0]==1 && @choices[i][1]>=0) { - if (@choices[i].Action==ChoiceAction.UseMove && @choices[i].Index>=0) { + if (@choices[i]?.Action==ChoiceAction.UseMove && @choices[i]?.Index>=0) { int choice=@choices[i].Index; //@choices[i][1]; - return @battlers[i].moves[choice].Effect==code; + return _battlers[i].moves[choice].Effect==code; } return false; } - public virtual bool pbRegisterTarget(int idxPokemon, int idxTarget) { + public virtual bool RegisterTarget(int idxPokemon, int idxTarget) { //@choices[idxPokemon][3]=idxTarget; // Set target of move @choices[idxPokemon]=new Choice(ChoiceAction.UseMove, @choices[idxPokemon].Index, @choices[idxPokemon].Move, idxTarget); // Set target of move return true; } - public IBattler[] pbPriority(bool ignorequickclaw=false, bool log=false) { - if (@usepriority) return @priority; // use stored priority if round isn't over yet - @priority = new Pokemon[battlers.Length]; //.Clear(); + public IBattler[] Priority(bool ignorequickclaw=false, bool log=false) { + if (@usepriority) return priority; // use stored priority if round isn't over yet + _priority = new Pokemon[battlers.Length]; //.Clear(); int[] speeds=new int[battlers.Length]; int[] priorities=new int[battlers.Length]; bool[] quickclaw=new bool[battlers.Length]; bool[] lagging=new bool[battlers.Length]; @@ -1363,35 +1366,35 @@ public IBattler[] pbPriority(bool ignorequickclaw=false, bool log=false) { List temp=new List(); #region Calculate each Pokémon's speed for (int i = 0; i < battlers.Length; i++) { - speeds[i]=@battlers[i].SPE; + speeds[i]=_battlers[i].SPE; quickclaw[i]=false; lagging[i]=false; //if (!ignorequickclaw && @choices[i][0]==1) { // Chose to use a move if (!ignorequickclaw && @choices[i]?.Action==ChoiceAction.UseMove) { - if (!quickclaw[i] && @battlers[i].hasWorkingItem(Items.CUSTAP_BERRY) && - !@battlers[i].pbOpposing1.hasWorkingAbility(Abilities.UNNERVE) && - !@battlers[i].pbOpposing2.hasWorkingAbility(Abilities.UNNERVE)) { - if ((@battlers[i].hasWorkingAbility(Abilities.GLUTTONY) && @battlers[i].HP<=(int)Math.Floor(@battlers[i].TotalHP * .5)) || - @battlers[i].HP<=(int)Math.Floor(@battlers[i].TotalHP * .25)) { - pbCommonAnimation("UseItem",@battlers[i],null); + if (!quickclaw[i] && _battlers[i].hasWorkingItem(Items.CUSTAP_BERRY) && + !_battlers[i].Opposing1.hasWorkingAbility(Abilities.UNNERVE) && + !_battlers[i].Opposing2.hasWorkingAbility(Abilities.UNNERVE)) { + if ((_battlers[i].hasWorkingAbility(Abilities.GLUTTONY) && _battlers[i].HP<=(int)Math.Floor(_battlers[i].TotalHP * .5)) || + _battlers[i].HP<=(int)Math.Floor(_battlers[i].TotalHP * .25)) { + CommonAnimation("UseItem",_battlers[i],null); quickclaw[i]=true; - pbDisplayBrief(Game._INTL("{1}'s {2} let it move first!", - @battlers[i].ToString(),Game._INTL(@battlers[i].Item.ToString(TextScripts.Name)))); - @battlers[i].pbConsumeItem(); + DisplayBrief(Game._INTL("{1}'s {2} let it move first!", + _battlers[i].ToString(),Game._INTL(_battlers[i].Item.ToString(TextScripts.Name)))); + _battlers[i].ConsumeItem(); } } - if (!quickclaw[i] && @battlers[i].hasWorkingItem(Items.QUICK_CLAW)) { - if (pbRandom(10)<2) { - pbCommonAnimation("UseItem",@battlers[i],null); + if (!quickclaw[i] && _battlers[i].hasWorkingItem(Items.QUICK_CLAW)) { + if (Random(10)<2) { + CommonAnimation("UseItem",_battlers[i],null); quickclaw[i]=true; - pbDisplayBrief(Game._INTL("{1}'s {2} let it move first!", - @battlers[i].ToString(),Game._INTL(@battlers[i].Item.ToString(TextScripts.Name)))); + DisplayBrief(Game._INTL("{1}'s {2} let it move first!", + _battlers[i].ToString(),Game._INTL(_battlers[i].Item.ToString(TextScripts.Name)))); } } if (!quickclaw[i] && - (@battlers[i].hasWorkingAbility(Abilities.STALL) || - @battlers[i].hasWorkingItem(Items.LAGGING_TAIL) || - @battlers[i].hasWorkingItem(Items.FULL_INCENSE))) { + (_battlers[i].hasWorkingAbility(Abilities.STALL) || + _battlers[i].hasWorkingItem(Items.LAGGING_TAIL) || + _battlers[i].hasWorkingItem(Items.FULL_INCENSE))) { lagging[i]=true; } } @@ -1403,9 +1406,9 @@ public IBattler[] pbPriority(bool ignorequickclaw=false, bool log=false) { int pri=0; if (@choices[i]?.Action==ChoiceAction.UseMove) { // Chose to use a move pri=@choices[i].Move.Priority; - if (@battlers[i].hasWorkingAbility(Abilities.PRANKSTER) && - @choices[i].Move.pbIsStatus) pri+=1; - if (@battlers[i].hasWorkingAbility(Abilities.GALE_WINGS) && + if (_battlers[i].hasWorkingAbility(Abilities.PRANKSTER) && + @choices[i].Move.IsStatus) pri+=1; + if (_battlers[i].hasWorkingAbility(Abilities.GALE_WINGS) && @choices[i].Move.Type == Types.FLYING) pri+=1; } priorities[i]=pri; @@ -1428,7 +1431,7 @@ public IBattler[] pbPriority(bool ignorequickclaw=false, bool log=false) { } // Sort by speed if (temp.Count==1) { - @priority[@priority.Length]=@battlers[temp[0]]; //ToDo: Redo this, maybe use Math.Min to sort.. + _priority[_priority.Length]=_battlers[temp[0]]; //ToDo: Redo this, maybe use Math.Min to sort.. } else if (temp.Count>1) { int n=temp.Count - 1; @@ -1474,7 +1477,7 @@ public IBattler[] pbPriority(bool ignorequickclaw=false, bool log=false) { } } if (cmp<0 || // Swap the pair according to the second battler's rank - (cmp==0 && pbRandom(2)==0)) { + (cmp==0 && Random(2)==0)) { int swaptmp=temp[i]; temp[i]=temp[i-1]; temp[i-1]=swaptmp; @@ -1483,8 +1486,8 @@ public IBattler[] pbPriority(bool ignorequickclaw=false, bool log=false) { } // Battlers in this bracket are properly sorted, so add them to @priority int x = 0; foreach (int i in temp) { - //@priority[@priority.Length - 1]=@battlers[i]; - @priority[x]=@battlers[i]; x++; + //@priority[@priority.Length - 1]=_battlers[i]; + _priority[x]=_battlers[i]; x++; } } curpri-=1; @@ -1494,22 +1497,22 @@ public IBattler[] pbPriority(bool ignorequickclaw=false, bool log=false) { if (log) { string d="[Priority] "; bool comma=false; for (int i = 0; i < battlers.Length; i++) { - if (@priority[i].IsNotNullOrNone() && !@priority[i].isFainted()) { + if (_priority[i].IsNotNullOrNone() && !_priority[i].isFainted()) { if (comma) d+=", "; - d+=$"#{@priority[i].ToString(comma)} (#{@priority[i].Index})"; comma=true; + d+=$"#{_priority[i].ToString(comma)} (#{_priority[i].Index})"; comma=true; } } GameDebug.Log(d); } @usepriority=true; - return @priority; + return priority; } #endregion #region Switching Pokemon - public virtual bool pbCanSwitchLax (int idxPokemon,int pkmnidxTo,bool showMessages) { + public virtual bool CanSwitchLax (int idxPokemon,int pkmnidxTo,bool showMessages) { if (pkmnidxTo>=0) { - IPokemon[] party=pbParty(idxPokemon); + IPokemon[] party=Party(idxPokemon); if (pkmnidxTo>=party.Length) { return false; } @@ -1517,65 +1520,65 @@ public virtual bool pbCanSwitchLax (int idxPokemon,int pkmnidxTo,bool showMessag return false; } if (party[pkmnidxTo].isEgg) { - if (showMessages) pbDisplayPaused(Game._INTL("An Egg can't battle!")); + if (showMessages) DisplayPaused(Game._INTL("An Egg can't battle!")); return false; } - if (!pbIsOwner(idxPokemon,pkmnidxTo)) { - ITrainer owner=pbPartyGetOwner(idxPokemon,pkmnidxTo); - if (showMessages) pbDisplayPaused(Game._INTL("You can't switch {1}'s Pokémon with one of yours!",owner.name)); + if (!IsOwner(idxPokemon,pkmnidxTo)) { + ITrainer owner=PartyGetOwner(idxPokemon,pkmnidxTo); + if (showMessages) DisplayPaused(Game._INTL("You can't switch {1}'s Pokémon with one of yours!",owner.name)); return false; } if (party[pkmnidxTo].HP<=0) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} has no energy left to battle!",party[pkmnidxTo].Name)); + if (showMessages) DisplayPaused(Game._INTL("{1} has no energy left to battle!",party[pkmnidxTo].Name)); return false; } - if (@battlers[idxPokemon].pokemonIndex==pkmnidxTo || - @battlers[idxPokemon].pbPartner.pokemonIndex==pkmnidxTo) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} is already in battle!",party[pkmnidxTo].Name)); + if (_battlers[idxPokemon].pokemonIndex==pkmnidxTo || + _battlers[idxPokemon].Partner.pokemonIndex==pkmnidxTo) { + if (showMessages) DisplayPaused(Game._INTL("{1} is already in battle!",party[pkmnidxTo].Name)); return false; } } return true; } - public bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false) { - IBattler thispkmn=@battlers[idxPokemon]; + public bool CanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false) { + IBattler thispkmn=_battlers[idxPokemon]; // Multi-Turn Attacks/Mean Look - if (!pbCanSwitchLax(idxPokemon,pkmnidxTo,showMessages)) { + if (!CanSwitchLax(idxPokemon,pkmnidxTo,showMessages)) { return false; } - bool isOppose=pbIsOpposing(idxPokemon); - IPokemon[] party=pbParty(idxPokemon); + bool isOppose=IsOpposing(idxPokemon); + IPokemon[] party=Party(idxPokemon); for (int i = 0; i < battlers.Length; i++) { - if (isOppose!=pbIsOpposing(i)) continue; - if (choices[i].Action==ChoiceAction.SwitchPokemon && choices[i].Index==pkmnidxTo) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} has already been selected.",party[pkmnidxTo].Name)); + if (isOppose!=IsOpposing(i)) continue; + if (choices[i]?.Action==ChoiceAction.SwitchPokemon && choices[i]?.Index==pkmnidxTo) { + if (showMessages) DisplayPaused(Game._INTL("{1} has already been selected.",party[pkmnidxTo].Name)); return false; } } if (thispkmn.hasWorkingItem(Items.SHED_SHELL)) { return true; } - if (Core.USENEWBATTLEMECHANICS && thispkmn.pbHasType(Types.GHOST)) { + if (Core.USENEWBATTLEMECHANICS && thispkmn.HasType(Types.GHOST)) { return true; } if (thispkmn.effects.MultiTurn>0 || (!ignoremeanlook && thispkmn.effects.MeanLook>=0)) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} can't be switched out!",thispkmn.ToString())); + if (showMessages) DisplayPaused(Game._INTL("{1} can't be switched out!",thispkmn.ToString())); return false; } if (@field.FairyLock>0) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} can't be switched out!",thispkmn.ToString())); + if (showMessages) DisplayPaused(Game._INTL("{1} can't be switched out!",thispkmn.ToString())); return false; } if (thispkmn.effects.Ingrain) { - if (showMessages) pbDisplayPaused(Game._INTL("{1} can't be switched out!",thispkmn.ToString())); + if (showMessages) DisplayPaused(Game._INTL("{1} can't be switched out!",thispkmn.ToString())); return false; } - IBattler opp1=thispkmn.pbOpposing1; - IBattler opp2=thispkmn.pbOpposing2; + IBattler opp1=thispkmn.Opposing1; + IBattler opp2=thispkmn.Opposing2; IBattler opp=null; - if (thispkmn.pbHasType(Types.STEEL)) { + if (thispkmn.HasType(Types.STEEL)) { if (opp1.hasWorkingAbility(Abilities.MAGNET_PULL)) opp=opp1; if (opp2.hasWorkingAbility(Abilities.MAGNET_PULL)) opp=opp2; } @@ -1589,134 +1592,134 @@ public bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool } if (opp.IsNotNullOrNone()) { string abilityname=Game._INTL(opp.Ability.ToString(TextScripts.Name)); - if (showMessages) pbDisplayPaused(Game._INTL("{1}'s {2} prevents switching!",opp.ToString(),abilityname)); + if (showMessages) DisplayPaused(Game._INTL("{1}'s {2} prevents switching!",opp.ToString(),abilityname)); return false; } return true; } - public virtual bool pbRegisterSwitch(int idxPokemon,int idxOther) { - if (!pbCanSwitch(idxPokemon,idxOther,false)) return false; + public virtual bool RegisterSwitch(int idxPokemon,int idxOther) { + if (!CanSwitch(idxPokemon,idxOther,false)) return false; //@choices[idxPokemon][0]=2; // "Switch Pokémon" //@choices[idxPokemon][1]=idxOther; // Index of other Pokémon to switch with //@choices[idxPokemon][2]=null; @choices[idxPokemon]=new Choice(ChoiceAction.SwitchPokemon, idxOther); - int side=pbIsOpposing(idxPokemon) ? 1 : 0; - int owner=pbGetOwnerIndex(idxPokemon); + int side=IsOpposing(idxPokemon) ? 1 : 0; + int owner=GetOwnerIndex(idxPokemon); if (@megaEvolution[side][owner]==idxPokemon) { @megaEvolution[side][owner]=-1; } return true; } - public bool pbCanChooseNonActive (int index) { - IPokemon[] party=pbParty(index); + public bool CanChooseNonActive (int index) { + IPokemon[] party=Party(index); for (int i = 0; i < party.Length; i++) { - if (pbCanSwitchLax(index,i,false)) return true; + if (CanSwitchLax(index,i,false)) return true; } return false; } - public virtual void pbSwitch(bool favorDraws=false) { + public virtual void Switch(bool favorDraws=false) { if (!favorDraws) { if (@decision>0) return; } else { if (@decision== BattleResults.DRAW) return; } - pbJudge(); + Judge(); if (@decision>0) return; - int firstbattlerhp=@battlers[0].HP; + int firstbattlerhp=_battlers[0].HP; List switched=new List(); for (int index = 0; index < battlers.Length; index++) { int newenemy; int newenemyname; int newpokename; int newpoke; - if (!@doublebattle && pbIsDoubleBattler(index)) continue; - if (@battlers[index].IsNotNullOrNone() && !@battlers[index].isFainted()) continue; - if (!pbCanChooseNonActive(index)) continue; - if (!pbOwnedByPlayer(index)) { - if (!pbIsOpposing(index) || (@opponent.Length > 0 && pbIsOpposing(index))) { - newenemy=pbSwitchInBetween(index,false,false); + if (!@doublebattle && IsDoubleBattler(index)) continue; + if (_battlers[index].IsNotNullOrNone() && !_battlers[index].isFainted()) continue; + if (!CanChooseNonActive(index)) continue; + if (!OwnedByPlayer(index)) { + if (!IsOpposing(index) || (@opponent.Length > 0 && IsOpposing(index))) { + newenemy=SwitchInBetween(index,false,false); newenemyname=newenemy; - if (newenemy>=0 && pbParty(index)[newenemy].Ability == Abilities.ILLUSION) { - newenemyname=pbGetLastPokeInTeam(index); + if (newenemy>=0 && Party(index)[newenemy].Ability == Abilities.ILLUSION) { + newenemyname=GetLastPokeInTeam(index); } - ITrainer opponent=pbGetOwner(index); + ITrainer opponent=GetOwner(index); if (!@doublebattle && firstbattlerhp>0 && @shiftStyle && this.opponent.Length > 0 && - @internalbattle && pbCanChooseNonActive(0) && pbIsOpposing(index) && - @battlers[0].effects.Outrage==0) { - pbDisplayPaused(Game._INTL("{1} is about to send in {2}.",opponent.name,pbParty(index)[newenemyname].Name)); - if (pbDisplayConfirm(Game._INTL("Will {1} change Pokémon?",this.pbPlayer().name))) { - newpoke=pbSwitchPlayer(0,true,true); + @internalbattle && CanChooseNonActive(0) && IsOpposing(index) && + _battlers[0].effects.Outrage==0) { + DisplayPaused(Game._INTL("{1} is about to send in {2}.",opponent.name,Party(index)[newenemyname].Name)); + if (DisplayConfirm(Game._INTL("Will {1} change Pokémon?",this.Player().name))) { + newpoke=SwitchPlayer(0,true,true); if (newpoke>=0) { newpokename=newpoke; if (@party1[newpoke].Ability == Abilities.ILLUSION) { - newpokename=pbGetLastPokeInTeam(0); + newpokename=GetLastPokeInTeam(0); } - pbDisplayBrief(Game._INTL("{1}, that's enough! Come back!",@battlers[0].Name)); - pbRecallAndReplace(0,newpoke,newpokename); + DisplayBrief(Game._INTL("{1}, that's enough! Come back!",_battlers[0].Name)); + RecallAndReplace(0,newpoke,newpokename); switched.Add(0); } } } - pbRecallAndReplace(index,newenemy,newenemyname,false,false); + RecallAndReplace(index,newenemy,newenemyname,false,false); switched.Add(index); } } else if (@opponent.Length > 0) { - newpoke=pbSwitchInBetween(index,true,false); + newpoke=SwitchInBetween(index,true,false); newpokename=newpoke; if (@party1[newpoke].Ability == Abilities.ILLUSION) { - newpokename=pbGetLastPokeInTeam(index); + newpokename=GetLastPokeInTeam(index); } - pbRecallAndReplace(index,newpoke,newpokename); + RecallAndReplace(index,newpoke,newpokename); switched.Add(index); } else { bool swtch=false; - if (!pbDisplayConfirm(Game._INTL("Use next Pokémon?"))) { - swtch=(pbRun(index,true)<=0); + if (!DisplayConfirm(Game._INTL("Use next Pokémon?"))) { + swtch=(Run(index,true)<=0); } else { swtch=true; } if (swtch) { - newpoke=pbSwitchInBetween(index,true,false); + newpoke=SwitchInBetween(index,true,false); newpokename=newpoke; if (@party1[newpoke].Ability == Abilities.ILLUSION) { - newpokename=pbGetLastPokeInTeam(index); + newpokename=GetLastPokeInTeam(index); } - pbRecallAndReplace(index,newpoke,newpokename); + RecallAndReplace(index,newpoke,newpokename); switched.Add(index); } } } if (switched.Count>0) { - priority=pbPriority(); + _priority=Priority(); foreach (var i in priority) { - if (switched.Contains(i.Index)) i.pbAbilitiesOnSwitchIn(true); + if (switched.Contains(i.Index)) i.AbilitiesOnSwitchIn(true); } } } - public void pbSendOut(int index,IPokemon pokemon) { - pbSetSeen(pokemon); - if(@peer is IBattlePeerMultipleForms p) p.pbOnEnteringBattle(this,pokemon); - if (pbIsOpposing(index)) { - if (@scene is IPokeBattle_Scene s0) s0.pbTrainerSendOut(index,pokemon); + public void SendOut(int index,IPokemon pokemon) { + SetSeen(pokemon); + if(@peer is IBattlePeerMultipleForms p) p.OnEnteringBattle(this,pokemon); + if (IsOpposing(index)) { + if (@scene is IPokeBattle_Scene s0) s0.TrainerSendOut(index,pokemon); } else { - if (@scene is IPokeBattle_Scene s0) s0.pbSendOut(index,pokemon); + if (@scene is IPokeBattle_Scene s0) s0.SendOut(index,pokemon); } - if (@scene is IPokeBattle_Scene s1) s1.pbResetMoveIndex(index); + if (@scene is IPokeBattle_Scene s1) s1.ResetMoveIndex(index); } - public void pbReplace(int index,int newpoke,bool batonpass=false) { - IPokemon[] party=pbParty(index); - int oldpoke=@battlers[index].pokemonIndex; + public void Replace(int index,int newpoke,bool batonpass=false) { + IPokemon[] party=Party(index); + int oldpoke=_battlers[index].pokemonIndex; // Initialize the new Pokémon - @battlers[index].pbInitialize(party[newpoke],(sbyte)newpoke,batonpass); + _battlers[index].Initialize(party[newpoke],(sbyte)newpoke,batonpass); // Reorder the party for this battle - int[] partyorder=(!pbIsOpposing(index) ? @party1order : @party2order).ToArray(); + int[] partyorder=(!IsOpposing(index) ? @party1order : @party2order).ToArray(); int bpo=-1; int bpn=-1; for (int i = 0; i < partyorder.Length; i++) { if (partyorder[i]==oldpoke) bpo=i; @@ -1724,79 +1727,79 @@ public void pbReplace(int index,int newpoke,bool batonpass=false) { } int p=partyorder[bpo]; partyorder[bpo]=partyorder[bpn]; partyorder[bpn]=p; // Send out the new Pokémon - pbSendOut(index,party[newpoke]); - pbSetSeen(party[newpoke]); + SendOut(index,party[newpoke]); + SetSeen(party[newpoke]); } - public bool pbRecallAndReplace(int index,int newpoke,int newpokename=-1,bool batonpass=false,bool moldbreaker=false) { - @battlers[index].pbResetForm(); - if (!@battlers[index].isFainted()) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbRecall(index); - } - pbMessagesOnReplace(index,newpoke,newpokename); - pbReplace(index,newpoke,batonpass); - return pbOnActiveOne(@battlers[index],false,moldbreaker); + public bool RecallAndReplace(int index,int newpoke,int newpokename=-1,bool batonpass=false,bool moldbreaker=false) { + _battlers[index].ResetForm(); + if (!_battlers[index].isFainted()) { + (@scene as IPokeBattle_DebugSceneNoGraphics).Recall(index); + } + MessagesOnReplace(index,newpoke,newpokename); + Replace(index,newpoke,batonpass); + return OnActiveOne(_battlers[index],false,moldbreaker); } - public void pbMessagesOnReplace(int index,int newpoke,int newpokename=-1) { + public void MessagesOnReplace(int index,int newpoke,int newpokename=-1) { if (newpokename<0) newpokename=newpoke; - IPokemon[] party=pbParty(index); - if (pbOwnedByPlayer(index)) { + IPokemon[] party=Party(index); + if (OwnedByPlayer(index)) { if (!party[newpoke].IsNotNullOrNone()) { - //p [index,newpoke,party[newpoke],pbAllFainted(party)]; - GameDebug.Log($"[{index},{newpoke},{party[newpoke]},pbMOR]"); + //p [index,newpoke,party[newpoke],AllFainted(party)]; + GameDebug.Log($"[{index},{newpoke},{party[newpoke]},MOR]"); for (int i = 0; i < party.Length; i++) { GameDebug.Log($"[{i},{party[i].HP}]"); } //throw new BattleAbortedException(); - GameDebug.LogError("BattleAbortedException"); pbAbort(); + GameDebug.LogError("BattleAbortedException"); Abort(); } - IBattler opposing=@battlers[index].pbOppositeOpposing; + IBattler opposing=_battlers[index].OppositeOpposing; if (opposing.isFainted() || opposing.HP==opposing.TotalHP) { - pbDisplayBrief(Game._INTL("Go! {1}!",party[newpokename].Name)); + DisplayBrief(Game._INTL("Go! {1}!",party[newpokename].Name)); } else if (opposing.HP>=(opposing.TotalHP/2)) { - pbDisplayBrief(Game._INTL("Do it! {1}!",party[newpokename].Name)); + DisplayBrief(Game._INTL("Do it! {1}!",party[newpokename].Name)); } else if (opposing.HP>=(opposing.TotalHP/4)) { - pbDisplayBrief(Game._INTL("Go for it, {1}!",party[newpokename].Name)); + DisplayBrief(Game._INTL("Go for it, {1}!",party[newpokename].Name)); } else { - pbDisplayBrief(Game._INTL("Your opponent's weak!\nGet 'em, {1}!",party[newpokename].Name)); + DisplayBrief(Game._INTL("Your opponent's weak!\nGet 'em, {1}!",party[newpokename].Name)); } GameDebug.Log($"[Send out Pokémon] Player sent out #{party[newpokename].Name} in position #{index}"); } else { if (!party[newpoke].IsNotNullOrNone()) { - //p [index,newpoke,party[newpoke],pbAllFainted(party)] - GameDebug.Log($"[{index},{newpoke},{party[newpoke]},pbMOR]"); + //p [index,newpoke,party[newpoke],AllFainted(party)] + GameDebug.Log($"[{index},{newpoke},{party[newpoke]},MOR]"); for (int i = 0; i < party.Length; i++) { GameDebug.Log($"[{i},{party[i].HP}]"); } //throw new BattleAbortedException(); - GameDebug.LogError("BattleAbortedException"); pbAbort(); + GameDebug.LogError("BattleAbortedException"); Abort(); } - ITrainer owner=pbGetOwner(index); - pbDisplayBrief(Game._INTL("{1} sent\r\nout {2}!",owner.name,party[newpokename].Name)); + ITrainer owner=GetOwner(index); + DisplayBrief(Game._INTL("{1} sent\r\nout {2}!",owner.name,party[newpokename].Name)); GameDebug.Log($"[Send out Pokémon] Opponent sent out #{party[newpokename].Name} in position #{index}"); } } - public virtual int pbSwitchInBetween(int index, bool lax, bool cancancel) { - if (!pbOwnedByPlayer(index)) { - return (@scene as IPokeBattle_SceneNonInteractive).pbChooseNewEnemy(index,pbParty(index)); + public virtual int SwitchInBetween(int index, bool lax, bool cancancel) { + if (!OwnedByPlayer(index)) { + return (@scene as IPokeBattle_SceneNonInteractive).ChooseNewEnemy(index,Party(index)); } else { - return pbSwitchPlayer(index,lax,cancancel); + return SwitchPlayer(index,lax,cancancel); } } - public int pbSwitchPlayer(int index,bool lax, bool cancancel) { + public int SwitchPlayer(int index,bool lax, bool cancancel) { if (@debug) { - return (@scene as IPokeBattle_SceneNonInteractive).pbChooseNewEnemy(index,pbParty(index)); + return (@scene as IPokeBattle_SceneNonInteractive).ChooseNewEnemy(index,Party(index)); } //else { - return (@scene as IPokeBattle_SceneNonInteractive).pbSwitch(index,lax,cancancel); + return (@scene as IPokeBattle_SceneNonInteractive).Switch(index,lax,cancancel); //} } #endregion @@ -1810,29 +1813,29 @@ public int pbSwitchPlayer(int index,bool lax, bool cancancel) { /// /// /// - //protected bool _pbUseItemOnPokemon(Items item,int pkmnIndex,IBattler userPkmn,IHasDisplayMessage scene) { - bool IBattle.pbUseItemOnPokemon(Items item,int pkmnIndex,IBattler userPkmn,IHasDisplayMessage scene) { + //protected bool _UseItemOnPokemon(Items item,int pkmnIndex,IBattler userPkmn,IHasDisplayMessage scene) { + bool IBattle.UseItemOnPokemon(Items item,int pkmnIndex,IBattler userPkmn,IHasDisplayMessage scene) { IPokemon pokemon=@party1[pkmnIndex]; IBattler battler=null; - string name=pbGetOwner(userPkmn.Index).name; - if (pbBelongsToPlayer(userPkmn.Index)) name=pbGetOwner(userPkmn.Index).name; - pbDisplayBrief(Game._INTL("{1} used the\r\n{2}.",name,Game._INTL(item.ToString(TextScripts.Name)))); + string name=GetOwner(userPkmn.Index).name; + if (BelongsToPlayer(userPkmn.Index)) name=GetOwner(userPkmn.Index).name; + DisplayBrief(Game._INTL("{1} used the\r\n{2}.",name,Game._INTL(item.ToString(TextScripts.Name)))); GameDebug.Log($"[Use item] Player used #{Game._INTL(item.ToString(TextScripts.Name))} on #{pokemon.Name}"); bool ret=false; if (pokemon.isEgg) { - pbDisplay(Game._INTL("But it had no effect!")); + Display(Game._INTL("But it had no effect!")); } else { for (int i = 0; i < battlers.Length; i++) { - if (!pbIsOpposing(i) && @battlers[i].pokemonIndex==pkmnIndex) { - battler=@battlers[i]; + if (!IsOpposing(i) && _battlers[i].pokemonIndex==pkmnIndex) { + battler=_battlers[i]; } } ret=ItemHandlers.triggerBattleUseOnPokemon(item,pokemon,battler,scene); //Invoke Event, returns which pokemon selected } - if (!ret && pbBelongsToPlayer(userPkmn.Index)) { - if (Game.GameData.Bag.pbCanStore(item)) { - Game.GameData.Bag.pbStoreItem(item); + if (!ret && BelongsToPlayer(userPkmn.Index)) { + if (Game.GameData.Bag.CanStore(item)) { + Game.GameData.Bag.StoreItem(item); } else { //throw new Exception(Game._INTL("Couldn't return unused item to Bag somehow.")); @@ -1850,12 +1853,12 @@ bool IBattle.pbUseItemOnPokemon(Items item,int pkmnIndex,IBattler userPkmn,IHasD /// /// /// - public bool pbUseItemOnBattler(Items item,int index,IBattler userPkmn,IHasDisplayMessage scene) { - GameDebug.Log($"[Use item] Player used #{Game._INTL(item.ToString(TextScripts.Name))} on #{@battlers[index].ToString(true)}"); - bool ret=ItemHandlers.triggerBattleUseOnBattler(item,@battlers[index],scene); - if (!ret && pbBelongsToPlayer(userPkmn.Index)) { - if (Game.GameData.Bag.pbCanStore(item)) { - Game.GameData.Bag.pbStoreItem(item); + public bool UseItemOnBattler(Items item,int index,IBattler userPkmn,IHasDisplayMessage scene) { + GameDebug.Log($"[Use item] Player used #{Game._INTL(item.ToString(TextScripts.Name))} on #{_battlers[index].ToString(true)}"); + bool ret=ItemHandlers.triggerBattleUseOnBattler(item,_battlers[index],scene); + if (!ret && BelongsToPlayer(userPkmn.Index)) { + if (Game.GameData.Bag.CanStore(item)) { + Game.GameData.Bag.StoreItem(item); } else { //throw new Exception(Game._INTL("Couldn't return unused item to Bag somehow.")); @@ -1865,16 +1868,16 @@ public bool pbUseItemOnBattler(Items item,int index,IBattler userPkmn,IHasDispla return ret; } - public bool pbRegisterItem(int idxPokemon,Items idxItem,int? idxTarget=null) { + public bool RegisterItem(int idxPokemon,Items idxItem,int? idxTarget=null) { if (idxTarget!=null && idxTarget.Value>=0) { for (int i = 0; i < battlers.Length; i++) { - if (!@battlers[i].pbIsOpposing(idxPokemon) && - @battlers[i].pokemonIndex==idxTarget.Value && - @battlers[i].effects.Embargo>0) { - pbDisplay(Game._INTL("Embargo's effect prevents the item's use on {1}!",@battlers[i].ToString(true))); - if (pbBelongsToPlayer(@battlers[i].Index)) { - if (Game.GameData.Bag.pbCanStore(idxItem)) { - Game.GameData.Bag.pbStoreItem(idxItem); + if (!_battlers[i].IsOpposing(idxPokemon) && + _battlers[i].pokemonIndex==idxTarget.Value && + _battlers[i].effects.Embargo>0) { + Display(Game._INTL("Embargo's effect prevents the item's use on {1}!",_battlers[i].ToString(true))); + if (BelongsToPlayer(_battlers[i].Index)) { + if (Game.GameData.Bag.CanStore(idxItem)) { + Game.GameData.Bag.StoreItem(idxItem); } else { //throw new Exception(Game._INTL("Couldn't return unused item to Bag somehow.")); @@ -1887,16 +1890,16 @@ public bool pbRegisterItem(int idxPokemon,Items idxItem,int? idxTarget=null) { } if (ItemHandlers.hasUseInBattle(idxItem)) { if (idxPokemon==0) { // Player's first Pokémon - if (ItemHandlers.triggerBattleUseOnBattler(idxItem,@battlers[idxPokemon],this)) { + if (ItemHandlers.triggerBattleUseOnBattler(idxItem,_battlers[idxPokemon],this)) { // Using Poké Balls or Poké Doll only - ItemHandlers.triggerUseInBattle(idxItem,@battlers[idxPokemon],this); + ItemHandlers.triggerUseInBattle(idxItem,_battlers[idxPokemon],this); if (@doublebattle) { - @battlers[idxPokemon+2].effects.SkipTurn=true; + _battlers[idxPokemon+2].effects.SkipTurn=true; } } else { - if (Game.GameData.Bag.pbCanStore(idxItem)) { - Game.GameData.Bag.pbStoreItem(idxItem); + if (Game.GameData.Bag.CanStore(idxItem)) { + Game.GameData.Bag.StoreItem(idxItem); } else { //throw new Exception(Game._INTL("Couldn't return unusable item to Bag somehow.")); @@ -1906,8 +1909,8 @@ public bool pbRegisterItem(int idxPokemon,Items idxItem,int? idxTarget=null) { } } else { - if (ItemHandlers.triggerBattleUseOnBattler(idxItem,@battlers[idxPokemon],this)) { - pbDisplay(Game._INTL("It's impossible to aim without being focused!")); + if (ItemHandlers.triggerBattleUseOnBattler(idxItem,_battlers[idxPokemon],this)) { + Display(Game._INTL("It's impossible to aim without being focused!")); } return false; } @@ -1916,19 +1919,19 @@ public bool pbRegisterItem(int idxPokemon,Items idxItem,int? idxTarget=null) { //@choices[idxPokemon][1]=idxItem; // ID of item to be used //@choices[idxPokemon][2]=idxTarget; // Index of Pokémon to use item on @choices[idxPokemon]= new Choice(ChoiceAction.UseItem,idxItem,idxTarget.Value); - int side=pbIsOpposing(idxPokemon) ? 1 : 0; - int owner=pbGetOwnerIndex(idxPokemon); + int side=IsOpposing(idxPokemon) ? 1 : 0; + int owner=GetOwnerIndex(idxPokemon); if (@megaEvolution[side][owner]==idxPokemon) { @megaEvolution[side][owner]=-1; } return true; } - public void pbEnemyUseItem(Items item, IBattler battler) { + public void EnemyUseItem(Items item, IBattler battler) { if (!@internalbattle) return; //0 - Items[] items=pbGetOwnerItems(battler.Index); + Items[] items=GetOwnerItems(battler.Index); if (items == null) return; //Items.NONE - ITrainer opponent=pbGetOwner(battler.Index); + ITrainer opponent=GetOwner(battler.Index); for (int i = 0; i < items.Length; i++) { if (items[i]==item) { //items.delete_at(i); @@ -1937,89 +1940,89 @@ public void pbEnemyUseItem(Items item, IBattler battler) { } } string itemname=Game._INTL(item.ToString(TextScripts.Name)); - pbDisplayBrief(Game._INTL("{1} used the\r\n{2}!",opponent.name,itemname)); + DisplayBrief(Game._INTL("{1} used the\r\n{2}!",opponent.name,itemname)); GameDebug.Log($"[Use item] Opponent used #{itemname} on #{battler.ToString(true)}"); if (item == Items.POTION) { - battler.pbRecoverHP(20,true); - pbDisplay(Game._INTL("{1}'s HP was restored.",battler.ToString())); + battler.RecoverHP(20,true); + Display(Game._INTL("{1}'s HP was restored.",battler.ToString())); } else if (item == Items.SUPER_POTION) { - battler.pbRecoverHP(50,true); - pbDisplay(Game._INTL("{1}'s HP was restored.",battler.ToString())); + battler.RecoverHP(50,true); + Display(Game._INTL("{1}'s HP was restored.",battler.ToString())); } else if (item == Items.HYPER_POTION) { - battler.pbRecoverHP(200,true); - pbDisplay(Game._INTL("{1}'s HP was restored.",battler.ToString())); + battler.RecoverHP(200,true); + Display(Game._INTL("{1}'s HP was restored.",battler.ToString())); } else if (item == Items.MAX_POTION) { - battler.pbRecoverHP(battler.TotalHP-battler.HP,true); - pbDisplay(Game._INTL("{1}'s HP was restored.",battler.ToString())); + battler.RecoverHP(battler.TotalHP-battler.HP,true); + Display(Game._INTL("{1}'s HP was restored.",battler.ToString())); } else if (item == Items.FULL_RESTORE) { bool fullhp=(battler.HP==battler.TotalHP); - battler.pbRecoverHP(battler.TotalHP-battler.HP,true); + battler.RecoverHP(battler.TotalHP-battler.HP,true); battler.Status=0; battler.StatusCount=0; battler.effects.Confusion=0; if (fullhp) { - pbDisplay(Game._INTL("{1} became healthy!",battler.ToString())); + Display(Game._INTL("{1} became healthy!",battler.ToString())); } else { - pbDisplay(Game._INTL("{1}'s HP was restored.",battler.ToString())); + Display(Game._INTL("{1}'s HP was restored.",battler.ToString())); } } else if (item == Items.FULL_HEAL) { battler.Status=0; battler.StatusCount=0; battler.effects.Confusion=0; - pbDisplay(Game._INTL("{1} became healthy!",battler.ToString())); + Display(Game._INTL("{1} became healthy!",battler.ToString())); } else if (item == Items.X_ATTACK) { - if (battler is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.ATTACK,battler)) { - b.pbIncreaseStat(Stats.ATTACK,1,battler,true); + if (battler is IBattlerEffect b && b.CanIncreaseStatStage(Stats.ATTACK,battler)) { + b.IncreaseStat(Stats.ATTACK,1,battler,true); } } else if (item == Items.X_DEFENSE) { - if (battler is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.DEFENSE,battler)) { - b.pbIncreaseStat(Stats.DEFENSE,1,battler,true); + if (battler is IBattlerEffect b && b.CanIncreaseStatStage(Stats.DEFENSE,battler)) { + b.IncreaseStat(Stats.DEFENSE,1,battler,true); } } else if (item == Items.X_SPEED) { - if (battler is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPEED,battler)) { - b.pbIncreaseStat(Stats.SPEED,1,battler,true); + if (battler is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPEED,battler)) { + b.IncreaseStat(Stats.SPEED,1,battler,true); } } else if (item == Items.X_SP_ATK) { - if (battler is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPATK,battler)) { - b.pbIncreaseStat(Stats.SPATK,1,battler,true); + if (battler is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPATK,battler)) { + b.IncreaseStat(Stats.SPATK,1,battler,true); } } else if (item == Items.X_SP_DEF) { - if (battler is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPDEF,battler)) { - b.pbIncreaseStat(Stats.SPDEF,1,battler,true); + if (battler is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPDEF,battler)) { + b.IncreaseStat(Stats.SPDEF,1,battler,true); } } else if (item == Items.X_ACCURACY) { - if (battler is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.ACCURACY,battler)) { - b.pbIncreaseStat(Stats.ACCURACY,1,battler,true); + if (battler is IBattlerEffect b && b.CanIncreaseStatStage(Stats.ACCURACY,battler)) { + b.IncreaseStat(Stats.ACCURACY,1,battler,true); } } } #endregion #region Fleeing from Battle - public bool pbCanRun(int idxPokemon) + public bool CanRun(int idxPokemon) { if (@opponent.Length > 0) return false; - if (@cantescape && !pbIsOpposing(idxPokemon)) return false; - IBattler thispkmn=@battlers[idxPokemon]; - if (thispkmn.pbHasType(Types.GHOST) && Core.USENEWBATTLEMECHANICS) return true; + if (@cantescape && !IsOpposing(idxPokemon)) return false; + IBattler thispkmn=_battlers[idxPokemon]; + if (thispkmn.HasType(Types.GHOST) && Core.USENEWBATTLEMECHANICS) return true; if (thispkmn.hasWorkingItem(Items.SMOKE_BALL)) return true; if (thispkmn.hasWorkingAbility(Abilities.RUN_AWAY)) return true; - return pbCanSwitch(idxPokemon,-1,false); + return CanSwitch(idxPokemon,-1,false); } - public virtual int pbRun(int idxPokemon,bool duringBattle=false) { - IBattler thispkmn=@battlers[idxPokemon]; - if (pbIsOpposing(idxPokemon)) { + public virtual int Run(int idxPokemon,bool duringBattle=false) { + IBattler thispkmn=_battlers[idxPokemon]; + if (IsOpposing(idxPokemon)) { if (@opponent.Length > 0) return 0; //@choices[i][0]=5; // run //@choices[i][1]=0; @@ -2029,68 +2032,68 @@ public virtual int pbRun(int idxPokemon,bool duringBattle=false) { } if (@opponent.Length > 0) { if (debug && Input.press((int)PokemonUnity.UX.InputKeys.DEBUG)) { - if (pbDisplayConfirm(Game._INTL("Treat this battle as a win?"))) { + if (DisplayConfirm(Game._INTL("Treat this battle as a win?"))) { @decision=BattleResults.WON; return 1; } - else if (pbDisplayConfirm(Game._INTL("Treat this battle as a loss?"))) { + else if (DisplayConfirm(Game._INTL("Treat this battle as a loss?"))) { @decision=BattleResults.LOST; return 1; } } else if (@internalbattle) { - pbDisplayPaused(Game._INTL("No! There's no running from a Trainer battle!")); + DisplayPaused(Game._INTL("No! There's no running from a Trainer battle!")); } - else if (pbDisplayConfirm(Game._INTL("Would you like to forfeit the match and quit now?"))) { - pbDisplay(Game._INTL("{1} forfeited the match!",this.pbPlayer().name)); + else if (DisplayConfirm(Game._INTL("Would you like to forfeit the match and quit now?"))) { + Display(Game._INTL("{1} forfeited the match!",this.Player().name)); @decision=BattleResults.FORFEIT; return 1; } return 0; } if (debug && Input.press((int)PokemonUnity.UX.InputKeys.DEBUG)) { - pbDisplayPaused(Game._INTL("Got away safely!")); + DisplayPaused(Game._INTL("Got away safely!")); @decision=BattleResults.FORFEIT; return 1; } if (@cantescape) { - pbDisplayPaused(Game._INTL("Can't escape!")); + DisplayPaused(Game._INTL("Can't escape!")); return 0; } - if (thispkmn.pbHasType(Types.GHOST) && Core.USENEWBATTLEMECHANICS) { - pbDisplayPaused(Game._INTL("Got away safely!")); + if (thispkmn.HasType(Types.GHOST) && Core.USENEWBATTLEMECHANICS) { + DisplayPaused(Game._INTL("Got away safely!")); @decision=BattleResults.FORFEIT; return 1; } if (thispkmn.hasWorkingAbility(Abilities.RUN_AWAY)) { if (duringBattle) { - pbDisplayPaused(Game._INTL("Got away safely!")); + DisplayPaused(Game._INTL("Got away safely!")); } else { - pbDisplayPaused(Game._INTL("{1} escaped using Run Away!",thispkmn.ToString())); + DisplayPaused(Game._INTL("{1} escaped using Run Away!",thispkmn.ToString())); } @decision=BattleResults.FORFEIT; return 1; } if (thispkmn.hasWorkingItem(Items.SMOKE_BALL)) { if (duringBattle) { - pbDisplayPaused(Game._INTL("Got away safely!")); + DisplayPaused(Game._INTL("Got away safely!")); } else { - pbDisplayPaused(Game._INTL("{1} escaped using its {2}!",thispkmn.ToString(),Game._INTL(thispkmn.Item.ToString(TextScripts.Name)))); + DisplayPaused(Game._INTL("{1} escaped using its {2}!",thispkmn.ToString(),Game._INTL(thispkmn.Item.ToString(TextScripts.Name)))); } @decision=BattleResults.FORFEIT; return 1; } - if (!duringBattle && !pbCanSwitch(idxPokemon,-1,false)) { - pbDisplayPaused(Game._INTL("Can't escape!")); + if (!duringBattle && !CanSwitch(idxPokemon,-1,false)) { + DisplayPaused(Game._INTL("Can't escape!")); return 0; } int rate; - // Note: not pbSpeed, because using unmodified Speed - int speedPlayer=@battlers[idxPokemon].pokemon.SPE; - IBattler opposing=@battlers[idxPokemon].pbOppositeOpposing; - if (opposing.isFainted()) opposing=opposing.pbPartner; + // Note: not Speed, because using unmodified Speed + int speedPlayer=_battlers[idxPokemon].pokemon.SPE; + IBattler opposing=_battlers[idxPokemon].OppositeOpposing; + if (opposing.isFainted()) opposing=opposing.Partner; if (!opposing.isFainted()) { int speedEnemy=opposing.pokemon.SPE; if (speedPlayer>speedEnemy) { @@ -2107,12 +2110,12 @@ public virtual int pbRun(int idxPokemon,bool duringBattle=false) { rate=256; } int ret=1; - if (pbRandom(256)0 && - (@battlers[i].isFainted() || @battlers[i].captured)) { - bool haveexpall=Game.GameData.Bag.pbQuantity(Items.EXP_ALL)>0; //hasConst(Items.EXP_ALL) && + if (IsOpposing(i) && _battlers[i].participants.Count>0 && + (_battlers[i].isFainted() || _battlers[i].captured)) { + bool haveexpall=Game.GameData.Bag.Quantity(Items.EXP_ALL)>0; //hasConst(Items.EXP_ALL) && // First count the number of participants int partic=0; int expshare=0; - foreach (var j in @battlers[i].participants) { - if (!@party1[j].IsNotNullOrNone() || !pbIsOwner(0,j)) continue; + foreach (var j in _battlers[i].participants) { + if (!@party1[j].IsNotNullOrNone() || !IsOwner(0,j)) continue; if (@party1[j].HP>0 && !@party1[j].isEgg) partic+=1; } if (!haveexpall) { for (int j = 0; j < @party1.Length; j++) { - if (!@party1[j].IsNotNullOrNone() || !pbIsOwner(0,j)) continue; + if (!@party1[j].IsNotNullOrNone() || !IsOwner(0,j)) continue; if (@party1[j].HP>0 && !@party1[j].isEgg && (@party1[j].Item == Items.EXP_SHARE || @party1[j].itemInitial == Items.EXP_SHARE)) expshare+=1; @@ -2260,40 +2263,40 @@ public virtual void pbGainEXP() { } // Now calculate EXP for the participants if (partic>0 || expshare>0 || haveexpall) { - if (@opponent == null && successbegin && pbAllFainted(@party2)) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbWildBattleSuccess(); + if (@opponent == null && successbegin && AllFainted(@party2)) { + (@scene as IPokeBattle_DebugSceneNoGraphics).WildBattleSuccess(); successbegin=false; } for (int j = 0; j < @party1.Length; j++) { - if (!@party1[j].IsNotNullOrNone() || !pbIsOwner(0,j)) continue; + if (!@party1[j].IsNotNullOrNone() || !IsOwner(0,j)) continue; if (@party1[j].HP<=0 || @party1[j].isEgg) continue; bool haveexpshare=@party1[j].Item == Items.EXP_SHARE || @party1[j].itemInitial == Items.EXP_SHARE; - if (!haveexpshare && !@battlers[i].participants.Contains((byte)j)) continue; - pbGainExpOne(j,@battlers[i],partic,expshare,haveexpall); + if (!haveexpshare && !_battlers[i].participants.Contains((byte)j)) continue; + GainExpOne(j,_battlers[i],partic,expshare,haveexpall); } if (haveexpall) { bool showmessage=true; for (int j = 0; j < @party1.Length; j++) { - if (!@party1[j].IsNotNullOrNone() || !pbIsOwner(0,j)) continue; + if (!@party1[j].IsNotNullOrNone() || !IsOwner(0,j)) continue; if (@party1[j].HP<=0 || @party1[j].isEgg) continue; if (@party1[j].Item == Items.EXP_SHARE || @party1[j].itemInitial == Items.EXP_SHARE) continue; - if (@battlers[i].participants.Contains((byte)j)) continue; - if (showmessage) pbDisplayPaused(Game._INTL("The rest of your team gained Exp. Points thanks to the {1}!", + if (_battlers[i].participants.Contains((byte)j)) continue; + if (showmessage) DisplayPaused(Game._INTL("The rest of your team gained Exp. Points thanks to the {1}!", Game._INTL(Items.EXP_ALL.ToString(TextScripts.Name)))); showmessage=false; - pbGainExpOne(j,@battlers[i],partic,expshare,haveexpall,false); + GainExpOne(j,_battlers[i],partic,expshare,haveexpall,false); } } } // Now clear the participants array - @battlers[i].participants.Clear();//=[]; + _battlers[i].participants.Clear();//=[]; } } } - public void pbGainExpOne(int index,IBattler defeated,int partic,int expshare,bool haveexpall,bool showmessages=true) { + public void GainExpOne(int index,IBattler defeated,int partic,int expshare,bool haveexpall,bool showmessages=true) { IPokemon thispoke=@party1[index]; // Original species, not current species int level=defeated.Level; @@ -2401,10 +2404,10 @@ public void pbGainExpOne(int index,IBattler defeated,int partic,int expshare,boo else { exp=(int)Math.Floor(exp/7f); } - bool isOutsider = thispoke.isForeign(pbPlayer()); - // || (thispoke.language!=0 && thispoke.language!=this.pbPlayer().language); + bool isOutsider = thispoke.isForeign(Player()); + // || (thispoke.language!=0 && thispoke.language!=this.Player().language); if (isOutsider) { - //if (thispoke.language!=0 && thispoke.language!=this.pbPlayer().language) { + //if (thispoke.language!=0 && thispoke.language!=this.Player().language) { // exp=(int)Math.Floor(exp*1.7); //} //else { @@ -2422,10 +2425,10 @@ public void pbGainExpOne(int index,IBattler defeated,int partic,int expshare,boo if (exp>0) { if (showmessages) { if (isOutsider) { - pbDisplayPaused(Game._INTL("{1} gained a boosted {2} Exp. Points!",thispoke.Name,exp.ToString())); + DisplayPaused(Game._INTL("{1} gained a boosted {2} Exp. Points!",thispoke.Name,exp.ToString())); } else { - pbDisplayPaused(Game._INTL("{1} gained {2} Exp. Points!",thispoke.Name,exp.ToString())); + DisplayPaused(Game._INTL("{1} gained {2} Exp. Points!",thispoke.Name,exp.ToString())); } } int newlevel=Monster.Data.Experience.GetLevelFromExperience(growthrate,newexp); @@ -2447,7 +2450,7 @@ public void pbGainExpOne(int index,IBattler defeated,int partic,int expshare,boo int tempexp1=thispoke.Exp; int tempexp2=0; // Find battler - IBattler battler=pbFindPlayerBattler(index); + IBattler battler=FindPlayerBattler(index); do { //loop // EXP Bar animation int startexp=Monster.Data.Experience.GetStartExperience(growthrate,curlevel); //0 @@ -2455,13 +2458,13 @@ public void pbGainExpOne(int index,IBattler defeated,int partic,int expshare,boo tempexp2=(endexpnewlevel) { thispoke.calcStats(); - if (battler.IsNotNullOrNone()) battler.pbUpdate(false); - @scene.pbRefresh(); + if (battler.IsNotNullOrNone()) battler.Update(false); + @scene.Refresh(); break; } int oldtotalhp=thispoke.TotalHP; @@ -2474,18 +2477,18 @@ public void pbGainExpOne(int index,IBattler defeated,int partic,int expshare,boo (battler.pokemon as Monster.Pokemon).ChangeHappiness(HappinessMethods.LEVELUP);//"level up" } thispoke.calcStats(); - if (battler.IsNotNullOrNone()) battler.pbUpdate(false); - @scene.pbRefresh(); - pbDisplayPaused(Game._INTL("{1} grew to Level {2}!",thispoke.Name,curlevel.ToString())); + if (battler.IsNotNullOrNone()) battler.Update(false); + @scene.Refresh(); + DisplayPaused(Game._INTL("{1} grew to Level {2}!",thispoke.Name,curlevel.ToString())); //ToDo: Can Evolve during battle? - (@scene as IPokeBattle_DebugSceneNoGraphics).pbLevelUp(battler,thispoke,oldtotalhp,oldattack, + (@scene as IPokeBattle_DebugSceneNoGraphics).LevelUp(battler,thispoke,oldtotalhp,oldattack, olddefense,oldspeed,oldspatk,oldspdef); // Finding all moves learned at this level Moves[] movelist=thispoke.getMoveList(Monster.LearnMethod.levelup); foreach (Moves k in movelist) { //if (k[0]==thispoke.Level) // Learned a new move - //pbLearnMove(index,k[1]); - pbLearnMove(index,k); + //LearnMove(index,k[1]); + LearnMove(index,k); } } while (true); } @@ -2494,50 +2497,50 @@ public void pbGainExpOne(int index,IBattler defeated,int partic,int expshare,boo #endregion #region Learning a move. - public void pbLearnMove(int pkmnIndex,Moves move) { + public void LearnMove(int pkmnIndex,Moves move) { IPokemon pokemon=@party1[pkmnIndex]; if (!pokemon.IsNotNullOrNone()) return; string pkmnname=pokemon.Name; - IBattler battler=pbFindPlayerBattler(pkmnIndex); + IBattler battler=FindPlayerBattler(pkmnIndex); string movename=Game._INTL(move.ToString(TextScripts.Name)); for (int i = 0; i < pokemon.moves.Length; i++) { if (pokemon.moves[i].id==move) return; if (pokemon.moves[i].id==0) { pokemon.moves[i]=new PokemonUnity.Attack.Move(move); //ToDo: Use LearnMove Method in Pokemon Class? if (battler.IsNotNullOrNone()) - battler.moves[i]=Combat.Move.pbFromPBMove(this,pokemon.moves[i]); - pbDisplayPaused(Game._INTL("{1} learned {2}!",pkmnname,movename)); + battler.moves[i]=Combat.Move.FromMove(this,pokemon.moves[i]); + DisplayPaused(Game._INTL("{1} learned {2}!",pkmnname,movename)); GameDebug.Log($"[Learn move] #{pkmnname} learned #{movename}"); return; } } do { //loop - pbDisplayPaused(Game._INTL("{1} is trying to learn {2}.",pkmnname,movename)); - pbDisplayPaused(Game._INTL("But {1} can't learn more than four moves.",pkmnname)); - if (pbDisplayConfirm(Game._INTL("Delete a move to make room for {1}?",movename))) { - pbDisplayPaused(Game._INTL("Which move should be forgotten?")); - int forgetmove=(@scene as IPokeBattle_DebugSceneNoGraphics).pbForgetMove(pokemon,move); + DisplayPaused(Game._INTL("{1} is trying to learn {2}.",pkmnname,movename)); + DisplayPaused(Game._INTL("But {1} can't learn more than four moves.",pkmnname)); + if (DisplayConfirm(Game._INTL("Delete a move to make room for {1}?",movename))) { + DisplayPaused(Game._INTL("Which move should be forgotten?")); + int forgetmove=(@scene as IPokeBattle_DebugSceneNoGraphics).ForgetMove(pokemon,move); if (forgetmove>=0) { string oldmovename=Game._INTL(pokemon.moves[forgetmove].id.ToString(TextScripts.Name)); pokemon.moves[forgetmove]=new PokemonUnity.Attack.Move(move); // Replaces current/total PP if (battler.IsNotNullOrNone()) - battler.moves[forgetmove]=Combat.Move.pbFromPBMove(this,pokemon.moves[forgetmove]); //ToDo: Use ForgetMove Method in Pokemon Class? + battler.moves[forgetmove]=Combat.Move.FromMove(this,pokemon.moves[forgetmove]); //ToDo: Use ForgetMove Method in Pokemon Class? //battler.pokemon.DeleteMoveAtIndex(forgetmove); - pbDisplayPaused(Game._INTL("1, 2, and... ... ...")); //ToDo: 2sec delay between text - pbDisplayPaused(Game._INTL("Poof!")); - pbDisplayPaused(Game._INTL("{1} forgot {2}.",pkmnname,oldmovename)); - pbDisplayPaused(Game._INTL("And...")); - pbDisplayPaused(Game._INTL("{1} learned {2}!",pkmnname,movename)); + DisplayPaused(Game._INTL("1, 2, and... ... ...")); //ToDo: 2sec delay between text + DisplayPaused(Game._INTL("Poof!")); + DisplayPaused(Game._INTL("{1} forgot {2}.",pkmnname,oldmovename)); + DisplayPaused(Game._INTL("And...")); + DisplayPaused(Game._INTL("{1} learned {2}!",pkmnname,movename)); GameDebug.Log($"[Learn move] #{pkmnname} forgot #{oldmovename} and learned #{movename}"); return; } - else if (pbDisplayConfirm(Game._INTL("Should {1} stop learning {2}?",pkmnname,movename))) { - pbDisplayPaused(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); - return; - } + else if (DisplayConfirm(Game._INTL("Should {1} stop learning {2}?",pkmnname,movename))) { + DisplayPaused(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); + return; + } } - else if (pbDisplayConfirm(Game._INTL("Should {1} stop learning {2}?",pkmnname,movename))) { - pbDisplayPaused(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); + else if (DisplayConfirm(Game._INTL("Should {1} stop learning {2}?",pkmnname,movename))) { + DisplayPaused(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); return; } } while(true); @@ -2545,174 +2548,174 @@ public void pbLearnMove(int pkmnIndex,Moves move) { #endregion #region Abilities. - public virtual void pbOnActiveAll() { + public virtual void OnActiveAll() { for (int i = 0; i < battlers.Length; i++) { // Currently unfainted participants will earn EXP even if they faint afterwards - if (pbIsOpposing(i)) @battlers[i].pbUpdateParticipants(); - if (!pbIsOpposing(i) && - (@battlers[i].Item == Items.AMULET_COIN || - @battlers[i].Item == Items.LUCK_INCENSE)) @amuletcoin=true; + if (IsOpposing(i)) _battlers[i].UpdateParticipants(); + if (!IsOpposing(i) && + (_battlers[i].Item == Items.AMULET_COIN || + _battlers[i].Item == Items.LUCK_INCENSE)) @amuletcoin=true; } for (int i = 0; i < battlers.Length; i++) { - if (!@battlers[i].isFainted()) { - if (@battlers[i] is IBattlerShadowPokemon b && b.isShadow() && pbIsOpposing(i)) { - pbCommonAnimation("Shadow",@battlers[i],null); - pbDisplay(Game._INTL("Oh!\nA Shadow Pokémon!")); + if (!_battlers[i].isFainted()) { + if (_battlers[i] is IBattlerShadowPokemon b && b.isShadow() && IsOpposing(i)) { + CommonAnimation("Shadow",_battlers[i],null); + Display(Game._INTL("Oh!\nA Shadow Pokémon!")); } } } // Weather-inducing abilities, Trace, Imposter, etc. @usepriority=false; - IBattler[] priority=pbPriority(); - foreach (var i in priority) { - i?.pbAbilitiesOnSwitchIn(true); + IBattler[] priority=Priority(); + foreach (var i in this.priority) { + i?.AbilitiesOnSwitchIn(true); } // Check forms are correct for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].isFainted()) continue; - @battlers[i].pbCheckForm(); + if (_battlers[i].isFainted()) continue; + _battlers[i].CheckForm(); } } - public virtual bool pbOnActiveOne(IBattler pkmn,bool onlyabilities=false,bool moldbreaker=false) { + public virtual bool OnActiveOne(IBattler pkmn,bool onlyabilities=false,bool moldbreaker=false) { if (pkmn.isFainted()) return false; if (!onlyabilities) { for (int i = 0; i < battlers.Length; i++) { // Currently unfainted participants will earn EXP even if they faint afterwards - if (pbIsOpposing(i)) @battlers[i].pbUpdateParticipants(); - if (!pbIsOpposing(i) && - (@battlers[i].Item == Items.AMULET_COIN || - @battlers[i].Item == Items.LUCK_INCENSE)) @amuletcoin=true; + if (IsOpposing(i)) _battlers[i].UpdateParticipants(); + if (!IsOpposing(i) && + (_battlers[i].Item == Items.AMULET_COIN || + _battlers[i].Item == Items.LUCK_INCENSE)) @amuletcoin=true; } - if (pkmn is IPokemonShadowPokemon p && p.isShadow && pbIsOpposing(pkmn.Index)) { - pbCommonAnimation("Shadow",pkmn,null); - pbDisplay(Game._INTL("Oh!\nA Shadow Pokémon!")); + if (pkmn is IPokemonShadowPokemon p && p.isShadow && IsOpposing(pkmn.Index)) { + CommonAnimation("Shadow",pkmn,null); + Display(Game._INTL("Oh!\nA Shadow Pokémon!")); } // Healing Wish if (pkmn.effects.HealingWish) { GameDebug.Log($"[Lingering effect triggered] #{pkmn.ToString()}'s Healing Wish"); - pbCommonAnimation("HealingWish",pkmn,null); - pbDisplayPaused(Game._INTL("The healing wish came true for {1}!",pkmn.ToString(true))); - pkmn.pbRecoverHP(pkmn.TotalHP,true); - if (pkmn is IBattlerEffect b) b.pbCureStatus(false); + CommonAnimation("HealingWish",pkmn,null); + DisplayPaused(Game._INTL("The healing wish came true for {1}!",pkmn.ToString(true))); + pkmn.RecoverHP(pkmn.TotalHP,true); + if (pkmn is IBattlerEffect b) b.CureStatus(false); pkmn.effects.HealingWish=false; } // Lunar Dance if (pkmn.effects.LunarDance) { GameDebug.Log($"[Lingering effect triggered] #{pkmn.ToString()}'s Lunar Dance"); - pbCommonAnimation("LunarDance",pkmn,null); - pbDisplayPaused(Game._INTL("{1} became cloaked in mystical moonlight!",pkmn.ToString())); - pkmn.pbRecoverHP(pkmn.TotalHP,true); - if (pkmn is IBattlerEffect b) b.pbCureStatus(false); + CommonAnimation("LunarDance",pkmn,null); + DisplayPaused(Game._INTL("{1} became cloaked in mystical moonlight!",pkmn.ToString())); + pkmn.RecoverHP(pkmn.TotalHP,true); + if (pkmn is IBattlerEffect b) b.CureStatus(false); for (int i = 0; i < pkmn.moves.Length; i++) { pkmn.moves[i].PP=(byte)pkmn.moves[i].TotalPP; } pkmn.effects.LunarDance=false; } // Spikes - if (pkmn.pbOwnSide.Spikes>0 && !pkmn.isAirborne(moldbreaker)) { + if (pkmn.OwnSide.Spikes>0 && !pkmn.isAirborne(moldbreaker)) { if (!pkmn.hasWorkingAbility(Abilities.MAGIC_GUARD)) { GameDebug.Log($"[Entry hazard] #{pkmn.ToString()} triggered Spikes"); - float spikesdiv=new int[] { 8, 6, 4 }[pkmn.pbOwnSide.Spikes-1]; - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(pkmn,0); - pkmn.pbReduceHP((int)Math.Floor(pkmn.TotalHP/spikesdiv)); - pbDisplayPaused(Game._INTL("{1} is hurt by the spikes!",pkmn.ToString())); + float spikesdiv=new int[] { 8, 6, 4 }[pkmn.OwnSide.Spikes-1]; + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(pkmn,0); + pkmn.ReduceHP((int)Math.Floor(pkmn.TotalHP/spikesdiv)); + DisplayPaused(Game._INTL("{1} is hurt by the spikes!",pkmn.ToString())); } } - if (pkmn.isFainted()) pkmn.pbFaint(); + if (pkmn.isFainted()) pkmn.Faint(); // Stealth Rock - if (pkmn.pbOwnSide.StealthRock && !pkmn.isFainted()) { + if (pkmn.OwnSide.StealthRock && !pkmn.isFainted()) { if (!pkmn.hasWorkingAbility(Abilities.MAGIC_GUARD)) { /*Types atype=Types.ROCK; //|| 0; //ToDo: Deal with Type Advantage... float eff=atype.GetCombinedEffectiveness(pkmn.Type1,pkmn.Type2,pkmn.effects.Type3); if (eff>0) { GameDebug.Log($"[Entry hazard] #{pkmn.ToString()} triggered Stealth Rock"); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(pkmn,0); - pkmn.pbReduceHP((int)Math.Floor((pkmn.TotalHP*eff)/64f)); - pbDisplayPaused(Game._INTL("Pointed stones dug into {1}!",pkmn.ToString())); + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(pkmn,0); + pkmn.ReduceHP((int)Math.Floor((pkmn.TotalHP*eff)/64f)); + DisplayPaused(Game._INTL("Pointed stones dug into {1}!",pkmn.ToString())); }*/ } } - if (pkmn.isFainted()) pkmn.pbFaint(); + if (pkmn.isFainted()) pkmn.Faint(); // Toxic Spikes - if (pkmn.pbOwnSide.ToxicSpikes>0 && !pkmn.isFainted()) { + if (pkmn.OwnSide.ToxicSpikes>0 && !pkmn.isFainted()) { if (!pkmn.isAirborne(moldbreaker)) { - if (pkmn.pbHasType(Types.POISON)) { + if (pkmn.HasType(Types.POISON)) { GameDebug.Log($"[Entry hazard] #{pkmn.ToString()} absorbed Toxic Spikes"); - pkmn.pbOwnSide.ToxicSpikes=0; - pbDisplayPaused(Game._INTL("{1} absorbed the poison spikes!",pkmn.ToString())); + pkmn.OwnSide.ToxicSpikes=0; + DisplayPaused(Game._INTL("{1} absorbed the poison spikes!",pkmn.ToString())); } - else if (pkmn is IBattlerEffect b && b.pbCanPoisonSpikes(moldbreaker)) { + else if (pkmn is IBattlerEffect b && b.CanPoisonSpikes(moldbreaker)) { GameDebug.Log($"[Entry hazard] #{pkmn.ToString()} triggered Toxic Spikes"); - if (pkmn.pbOwnSide.ToxicSpikes==2) { - b.pbPoison(null,Game._INTL("{1} was badly poisoned by the poison spikes!",pkmn.ToString()),true); + if (pkmn.OwnSide.ToxicSpikes==2) { + b.Poison(null,Game._INTL("{1} was badly poisoned by the poison spikes!",pkmn.ToString()),true); } else { - b.pbPoison(null,Game._INTL("{1} was poisoned by the poison spikes!",pkmn.ToString())); + b.Poison(null,Game._INTL("{1} was poisoned by the poison spikes!",pkmn.ToString())); } } } } // Sticky Web - if (pkmn.pbOwnSide.StickyWeb && !pkmn.isFainted() && + if (pkmn.OwnSide.StickyWeb && !pkmn.isFainted() && !pkmn.isAirborne(moldbreaker)) { - if (pkmn is IBattlerEffect b && b.pbCanReduceStatStage(Stats.SPEED,null,false,null,moldbreaker)) { + if (pkmn is IBattlerEffect b && b.CanReduceStatStage(Stats.SPEED,null,false,null,moldbreaker)) { GameDebug.Log($"[Entry hazard] #{pkmn.ToString()} triggered Sticky Web"); - pbDisplayPaused(Game._INTL("{1} was caught in a sticky web!",pkmn.ToString())); - b.pbReduceStat(Stats.SPEED,1,null,false,null,true,moldbreaker); + DisplayPaused(Game._INTL("{1} was caught in a sticky web!",pkmn.ToString())); + b.ReduceStat(Stats.SPEED,1,null,false,null,true,moldbreaker); } } } - pkmn.pbAbilityCureCheck(); + pkmn.AbilityCureCheck(); if (pkmn.isFainted()) { - pbGainEXP(); - pbJudge(); // pbSwitch + GainEXP(); + Judge(); // Switch return false; } - pkmn.pbAbilitiesOnSwitchIn(true); + pkmn.AbilitiesOnSwitchIn(true); if (!onlyabilities) { - pkmn.pbCheckForm(); - pkmn.pbBerryCureCheck(); + pkmn.CheckForm(); + pkmn.BerryCureCheck(); } return true; } - public void pbPrimordialWeather() { + public void PrimordialWeather() { // End Primordial Sea, Desolate Land, Delta Stream bool hasabil=false; switch (@weather) { case Weather.HEAVYRAIN: for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].Ability == Abilities.PRIMORDIAL_SEA && - !@battlers[i].isFainted()) { + if (_battlers[i].Ability == Abilities.PRIMORDIAL_SEA && + !_battlers[i].isFainted()) { hasabil=true; break; } if (!hasabil) { @weather=Weather.NONE; - pbDisplayBrief("The heavy rain has lifted!"); + DisplayBrief("The heavy rain has lifted!"); } } break; case Weather.HARSHSUN: for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].Ability == Abilities.DESOLATE_LAND && - !@battlers[i].isFainted()) { + if (_battlers[i].Ability == Abilities.DESOLATE_LAND && + !_battlers[i].isFainted()) { hasabil=true; break; } if (!hasabil) { @weather=Weather.NONE; - pbDisplayBrief("The harsh sunlight faded!"); + DisplayBrief("The harsh sunlight faded!"); } } break; case Weather.STRONGWINDS: for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].Ability == Abilities.DELTA_STREAM && - !@battlers[i].isFainted()) { + if (_battlers[i].Ability == Abilities.DELTA_STREAM && + !_battlers[i].isFainted()) { hasabil=true; break; } if (!hasabil) { @weather=Weather.NONE; - pbDisplayBrief("The mysterious air current has dissipated!"); + DisplayBrief("The mysterious air current has dissipated!"); } } break; @@ -2721,10 +2724,11 @@ public void pbPrimordialWeather() { #endregion #region Judging - private void _pbJudgeCheckpoint(IBattler attacker,IBattleMove move=null) { + //protected void _JudgeCheckpoint(IBattler attacker,IBattleMove move=null) { + void IBattle.JudgeCheckpoint(IBattler attacker,IBattleMove move) { } - public BattleResults pbDecisionOnTime() { + public BattleResults DecisionOnTime() { int count1=0; int count2=0; int hptotal1=0; @@ -2754,7 +2758,7 @@ public BattleResults pbDecisionOnTime() { /// /// /// Made this and forgot to label it... idr details - public BattleResults pbDecisionOnTime2() { + public BattleResults DecisionOnTime2() { int count1=0; int count2=0; int hptotal1=0; @@ -2762,19 +2766,19 @@ public BattleResults pbDecisionOnTime2() { foreach (var i in @party1) { if (!i.IsNotNullOrNone()) continue; if (i.HP>0 && !i.isEgg) { - count1+=1; - hptotal1+=(i.HP*100/i.TotalHP); + count1+=1; + hptotal1+=(i.HP*100/i.TotalHP); //the difference between the first and second function is this line... } } if (count1>0) hptotal1/=count1; foreach (var i in @party2) { if (!i.IsNotNullOrNone()) continue; if (i.HP>0 && !i.isEgg) { - count2+=1; - hptotal2+=(i.HP*100/i.TotalHP); + count2+=1; + hptotal2+=(i.HP*100/i.TotalHP); } } - if (count2>0) hptotal2/=count2; + if (count2>0) hptotal2/=count2; //and this line... if (count1>count2 ) return BattleResults.WON; // win if (count1hptotal2) return BattleResults.WON; // win @@ -2782,22 +2786,22 @@ public BattleResults pbDecisionOnTime2() { return BattleResults.DRAW; // draw; } - //private BattleResults _pbDecisionOnDraw() { - BattleResults IBattle.pbDecisionOnDraw() { + //protected BattleResults _DecisionOnDraw() { + BattleResults IBattle.DecisionOnDraw() { return BattleResults.DRAW; // draw; } - public void pbJudge() { - GameDebug.Log($"[Counts: #{pbPokemonCount(@party1)}/#{pbPokemonCount(@party2)}]"); - if (pbAllFainted(@party1) && pbAllFainted(@party2)) { - @decision=pbDecisionOnDraw(); // Draw + public void Judge() { + GameDebug.Log($"[Counts: #{PokemonCount(@party1)}/#{PokemonCount(@party2)}]"); + if (AllFainted(@party1) && AllFainted(@party2)) { + @decision=DecisionOnDraw(); // Draw return; } - if (pbAllFainted(@party1)) { + if (AllFainted(@party1)) { @decision=BattleResults.LOST; // Loss return; } - if (pbAllFainted(@party2)) { + if (AllFainted(@party2)) { @decision=BattleResults.WON; // Win return; } @@ -2809,12 +2813,12 @@ public void pbJudge() { /// Displays a message on screen, and wait for player input /// /// - public virtual void pbDisplay(string msg) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDisplayMessage(msg); + public virtual void Display(string msg) { + (@scene as IPokeBattle_DebugSceneNoGraphics).DisplayMessage(msg); } - public virtual void pbDisplayPaused(string msg) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDisplayPausedMessage(msg); + public virtual void DisplayPaused(string msg) { + (@scene as IPokeBattle_DebugSceneNoGraphics).DisplayPausedMessage(msg); } /// @@ -2822,53 +2826,53 @@ public virtual void pbDisplayPaused(string msg) { /// but will continue without player input after short delay /// /// - public virtual void pbDisplayBrief(string msg) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDisplayMessage(msg,true); + public virtual void DisplayBrief(string msg) { + (@scene as IPokeBattle_DebugSceneNoGraphics).DisplayMessage(msg,true); } - public virtual bool pbDisplayConfirm(string msg) { - return (@scene as IPokeBattle_DebugSceneNoGraphics).pbDisplayConfirmMessage(msg); + public virtual bool DisplayConfirm(string msg) { + return (@scene as IPokeBattle_DebugSceneNoGraphics).DisplayConfirmMessage(msg); } - public void pbShowCommands(string msg,string[] commands,bool cancancel=true) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbShowCommands(msg,commands,cancancel); + public void ShowCommands(string msg,string[] commands,bool cancancel=true) { + (@scene as IPokeBattle_DebugSceneNoGraphics).ShowCommands(msg,commands,cancancel); } - public void pbShowCommands(string msg,string[] commands,int cancancel) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbShowCommands(msg,commands,cancancel); + public void ShowCommands(string msg,string[] commands,int cancancel) { + (@scene as IPokeBattle_DebugSceneNoGraphics).ShowCommands(msg,commands,cancancel); } - public void pbAnimation(Moves move,IBattler attacker,IBattler opponent,int hitnum=0) { + public void Animation(Moves move,IBattler attacker,IBattler opponent,int hitnum=0) { if (@battlescene) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbAnimation(move,attacker,opponent,hitnum); + (@scene as IPokeBattle_DebugSceneNoGraphics).Animation(move,attacker,opponent,hitnum); } } - public void pbCommonAnimation(string name,IBattler attacker,IBattler opponent,int hitnum=0) { + public void CommonAnimation(string name,IBattler attacker,IBattler opponent,int hitnum=0) { if (@battlescene) { - if (@scene is IPokeBattle_Scene s0) s0.pbCommonAnimation(name,attacker,opponent,hitnum); + if (@scene is IPokeBattle_Scene s0) s0.CommonAnimation(name,attacker,opponent,hitnum); } } #endregion #region Battle Core. - public virtual BattleResults pbStartBattle(bool canlose=false) { + public virtual BattleResults StartBattle(bool canlose=false) { GameDebug.Log($""); GameDebug.Log($"******************************************"); @decision = BattleResults.InProgress; try { - pbStartBattleCore(canlose); + StartBattleCore(canlose); } catch (BattleAbortedException e){ //rescue BattleAbortedException; GameDebug.LogError(e.Message); GameDebug.LogError(e.StackTrace); @decision = BattleResults.ABORTED; - (@scene as IPokeBattle_DebugSceneNoGraphics).pbEndBattle(@decision); + (@scene as IPokeBattle_DebugSceneNoGraphics).EndBattle(@decision); } return @decision; } - public void pbStartBattleCore(bool canlose) { + public void StartBattleCore(bool canlose) { if (!@fullparty1 && @party1.Length>Core.MAXPARTYSIZE) { //throw new Exception(new ArgumentError(Game._INTL("Party 1 has more than {1} Pokémon.",Core.MAXPARTYSIZE))); GameDebug.LogError(Game._INTL("Party 1 has more than {1} Pokémon.",Core.MAXPARTYSIZE)); @@ -2894,11 +2898,11 @@ public void pbStartBattleCore(bool canlose) { GameDebug.LogWarning("Changed battle to single."); } IPokemon wildpoke=@party2[0]; - @battlers[1].pbInitialize(wildpoke,0,false); - if (@peer is IBattlePeerMultipleForms p) p.pbOnEnteringBattle(this,wildpoke); - pbSetSeen(wildpoke); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbStartBattle(this); - pbDisplayPaused(Game._INTL("Wild {1} appeared!",Game._INTL(wildpoke.Species.ToString(TextScripts.Name)))); //Wild pokemons dont get nicknames + _battlers[1].Initialize(wildpoke,0,false); + if (@peer is IBattlePeerMultipleForms p) p.OnEnteringBattle(this,wildpoke); + SetSeen(wildpoke); + (@scene as IPokeBattle_DebugSceneNoGraphics).StartBattle(this); + DisplayPaused(Game._INTL("Wild {1} appeared!",Game._INTL(wildpoke.Species.ToString(TextScripts.Name)))); //Wild pokemons dont get nicknames } else if (@party2.Length>1) { //length==2 if (!@doublebattle) { @@ -2916,14 +2920,14 @@ public void pbStartBattleCore(bool canlose) { goto initialize_wild_battle; } } - @battlers[1].pbInitialize(@party2[0],0,false); - @battlers[3].pbInitialize(@party2[1],0,false); - if (@peer is IBattlePeerMultipleForms p0) p0.pbOnEnteringBattle(this,@party2[0]); - if (@peer is IBattlePeerMultipleForms p1) p1.pbOnEnteringBattle(this,@party2[1]); - pbSetSeen(@party2[0]); - pbSetSeen(@party2[1]); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbStartBattle(this); - pbDisplayPaused(Game._INTL("Wild {1} and\r\n{2} appeared!", + _battlers[1].Initialize(@party2[0],0,false); + _battlers[3].Initialize(@party2[1],0,false); + if (@peer is IBattlePeerMultipleForms p0) p0.OnEnteringBattle(this,@party2[0]); + if (@peer is IBattlePeerMultipleForms p1) p1.OnEnteringBattle(this,@party2[1]); + SetSeen(@party2[0]); + SetSeen(@party2[1]); + (@scene as IPokeBattle_DebugSceneNoGraphics).StartBattle(this); + DisplayPaused(Game._INTL("Wild {1} and\r\n{2} appeared!", Game._INTL(@party2[0].Species.ToString(TextScripts.Name)),Game._INTL(@party2[1].Species.ToString(TextScripts.Name)))); //Wild pokemons dont get nicknames } else { @@ -2954,40 +2958,40 @@ public void pbStartBattleCore(bool canlose) { @player= new ITrainer[] { @player[0], @player[1] }; //Resolved Error } } - (@scene as IPokeBattle_DebugSceneNoGraphics).pbStartBattle(this); + (@scene as IPokeBattle_DebugSceneNoGraphics).StartBattle(this); if (@opponent.Length > 0) { - pbDisplayPaused(Game._INTL("{1} and {2} want to battle!",@opponent[0].name,@opponent[1].name)); - int sendout1=pbFindNextUnfainted(@party2,0,pbSecondPartyBegin(1)); + DisplayPaused(Game._INTL("{1} and {2} want to battle!",@opponent[0].name,@opponent[1].name)); + int sendout1=FindNextUnfainted(@party2,0,SecondPartyBegin(1)); if (sendout1<0) GameDebug.LogError(Game._INTL("Opponent 1 has no unfainted Pokémon")); //throw new Exception(Game._INTL("Opponent 1 has no unfainted Pokémon")); - int sendout2=pbFindNextUnfainted(@party2,pbSecondPartyBegin(1)); + int sendout2=FindNextUnfainted(@party2,SecondPartyBegin(1)); if (sendout2<0) GameDebug.LogError(Game._INTL("Opponent 2 has no unfainted Pokémon")); //throw new Exception(Game._INTL("Opponent 2 has no unfainted Pokémon")); - @battlers[1].pbInitialize(@party2[sendout1],(sbyte)sendout1,false); - pbDisplayBrief(Game._INTL("{1} sent\r\nout {2}!",@opponent[0].name,@battlers[1].Name)); - pbSendOut(1,@party2[sendout1]); - @battlers[3].pbInitialize(@party2[sendout2],(sbyte)sendout2,false); - pbDisplayBrief(Game._INTL("{1} sent\r\nout {2}!",@opponent[1].name,@battlers[3].Name)); - pbSendOut(3,@party2[sendout2]); + _battlers[1].Initialize(@party2[sendout1],(sbyte)sendout1,false); + DisplayBrief(Game._INTL("{1} sent\r\nout {2}!",@opponent[0].name,_battlers[1].Name)); + SendOut(1,@party2[sendout1]); + _battlers[3].Initialize(@party2[sendout2],(sbyte)sendout2,false); + DisplayBrief(Game._INTL("{1} sent\r\nout {2}!",@opponent[1].name,_battlers[3].Name)); + SendOut(3,@party2[sendout2]); } else { - pbDisplayPaused(Game._INTL("{1}\r\nwould like to battle!",@opponent[0].name)); - int sendout1=pbFindNextUnfainted(@party2,0); - int sendout2=pbFindNextUnfainted(@party2,sendout1+1); + DisplayPaused(Game._INTL("{1}\r\nwould like to battle!",@opponent[0].name)); + int sendout1=FindNextUnfainted(@party2,0); + int sendout2=FindNextUnfainted(@party2,sendout1+1); if (sendout1<0 || sendout2<0) { //throw new Exception(Game._INTL("Opponent doesn't have two unfainted Pokémon")); GameDebug.LogError(Game._INTL("Opponent doesn't have two unfainted Pokémon")); } - @battlers[1].pbInitialize(@party2[sendout1],(sbyte)sendout1,false); - @battlers[3].pbInitialize(@party2[sendout2],(sbyte)sendout2,false); - pbDisplayBrief(Game._INTL("{1} sent\r\nout {2} and {3}!", - @opponent[0].name,@battlers[1].Name,@battlers[3].Name)); - pbSendOut(1,@party2[sendout1]); - pbSendOut(3,@party2[sendout2]); + _battlers[1].Initialize(@party2[sendout1],(sbyte)sendout1,false); + _battlers[3].Initialize(@party2[sendout2],(sbyte)sendout2,false); + DisplayBrief(Game._INTL("{1} sent\r\nout {2} and {3}!", + @opponent[0].name,_battlers[1].Name,_battlers[3].Name)); + SendOut(1,@party2[sendout1]); + SendOut(3,@party2[sendout2]); } } #endregion #region Initialize opponent in single battles else { - int sendout=pbFindNextUnfainted(@party2,0); + int sendout=FindNextUnfainted(@party2,0); if (sendout<0) GameDebug.LogError(Game._INTL("Trainer has no unfainted Pokémon")); //throw new Exception(Game._INTL("Trainer has no unfainted Pokémon")); if (@opponent.Length > 0) { if (@opponent.Length!=1) GameDebug.LogError(Game._INTL("Opponent trainer must be only one person in single battles")); //throw new Exception(Game._INTL("Opponent trainer must be only one person in single battles")); @@ -2998,85 +3002,85 @@ public void pbStartBattleCore(bool canlose) { @player=new ITrainer[] { @player[0] }; } IPokemon trainerpoke=@party2[sendout]; - (@scene as IPokeBattle_DebugSceneNoGraphics).pbStartBattle(this); - pbDisplayPaused(Game._INTL("{1}\r\nwould like to battle!",@opponent[0].name)); - @battlers[1].pbInitialize(trainerpoke,(sbyte)sendout,false); - pbDisplayBrief(Game._INTL("{1} sent\r\nout {2}!",@opponent[0].name,@battlers[1].Name)); - pbSendOut(1,trainerpoke); + (@scene as IPokeBattle_DebugSceneNoGraphics).StartBattle(this); + DisplayPaused(Game._INTL("{1}\r\nwould like to battle!",@opponent[0].name)); + _battlers[1].Initialize(trainerpoke,(sbyte)sendout,false); + DisplayBrief(Game._INTL("{1} sent\r\nout {2}!",@opponent[0].name,_battlers[1].Name)); + SendOut(1,trainerpoke); } #endregion #region Initialize players in double battles if (@doublebattle) { int sendout1 = 0; int sendout2 = 0; if (@player.Length > 0) { - sendout1=pbFindNextUnfainted(@party1,0,pbSecondPartyBegin(0)); + sendout1=FindNextUnfainted(@party1,0,SecondPartyBegin(0)); if (sendout1<0) GameDebug.LogError(Game._INTL("Player 1 has no unfainted Pokémon")); //throw new Exception(Game._INTL("Player 1 has no unfainted Pokémon")); - sendout2=pbFindNextUnfainted(@party1,pbSecondPartyBegin(0)); + sendout2=FindNextUnfainted(@party1,SecondPartyBegin(0)); if (sendout2<0) GameDebug.LogError(Game._INTL("Player 2 has no unfainted Pokémon")); //throw new Exception(Game._INTL("Player 2 has no unfainted Pokémon")); - @battlers[0].pbInitialize(@party1[sendout1],(sbyte)sendout1,false); - @battlers[2].pbInitialize(@party1[sendout2],(sbyte)sendout2,false); - pbDisplayBrief(Game._INTL("{1} sent\r\nout {2}! Go! {3}!", - @player[1].name,@battlers[2].Name,@battlers[0].Name)); - pbSetSeen(@party1[sendout1]); - pbSetSeen(@party1[sendout2]); + _battlers[0].Initialize(@party1[sendout1],(sbyte)sendout1,false); + _battlers[2].Initialize(@party1[sendout2],(sbyte)sendout2,false); + DisplayBrief(Game._INTL("{1} sent\r\nout {2}! Go! {3}!", + @player[1].name,_battlers[2].Name,_battlers[0].Name)); + SetSeen(@party1[sendout1]); + SetSeen(@party1[sendout2]); } else { - sendout1=pbFindNextUnfainted(@party1,0); - sendout2=pbFindNextUnfainted(@party1,sendout1+1); + sendout1=FindNextUnfainted(@party1,0); + sendout2=FindNextUnfainted(@party1,sendout1+1); if (sendout1<0 || sendout2<0) { //throw new Exception(Game._INTL("Player doesn't have two unfainted Pokémon")); GameDebug.LogError(Game._INTL("Player doesn't have two unfainted Pokémon")); } - @battlers[0].pbInitialize(@party1[sendout1],(sbyte)sendout1,false); - @battlers[2].pbInitialize(@party1[sendout2],(sbyte)sendout2,false); - pbDisplayBrief(Game._INTL("Go! {1} and {2}!",@battlers[0].Name,@battlers[2].Name)); + _battlers[0].Initialize(@party1[sendout1],(sbyte)sendout1,false); + _battlers[2].Initialize(@party1[sendout2],(sbyte)sendout2,false); + DisplayBrief(Game._INTL("Go! {1} and {2}!",_battlers[0].Name,_battlers[2].Name)); } - pbSendOut(0,@party1[sendout1]); - pbSendOut(2,@party1[sendout2]); + SendOut(0,@party1[sendout1]); + SendOut(2,@party1[sendout2]); } #endregion #region Initialize player in single battles else { - int sendout=pbFindNextUnfainted(@party1,0); + int sendout=FindNextUnfainted(@party1,0); if (sendout<0) { //throw new Exception(Game._INTL("Player has no unfainted Pokémon")); GameDebug.LogError(Game._INTL("Player has no unfainted Pokémon")); } - @battlers[0].pbInitialize(@party1[sendout],(sbyte)sendout,false); - pbDisplayBrief(Game._INTL("Go! {1}!",@battlers[0].Name)); - pbSendOut(0,@party1[sendout]); + _battlers[0].Initialize(@party1[sendout],(sbyte)sendout,false); + DisplayBrief(Game._INTL("Go! {1}!",_battlers[0].Name)); + SendOut(0,@party1[sendout]); } #endregion #region Initialize battle if (@weather==Weather.SUNNYDAY) { - pbCommonAnimation("Sunny",null,null); - pbDisplay(Game._INTL("The sunlight is strong.")); + CommonAnimation("Sunny",null,null); + Display(Game._INTL("The sunlight is strong.")); } else if (@weather==Weather.RAINDANCE) { - pbCommonAnimation("Rain",null,null); - pbDisplay(Game._INTL("It is raining.")); + CommonAnimation("Rain",null,null); + Display(Game._INTL("It is raining.")); } else if (@weather==Weather.SANDSTORM) { - pbCommonAnimation("Sandstorm",null,null); - pbDisplay(Game._INTL("A sandstorm is raging.")); + CommonAnimation("Sandstorm",null,null); + Display(Game._INTL("A sandstorm is raging.")); } else if (@weather==Weather.HAIL) { - pbCommonAnimation("Hail",null,null); - pbDisplay(Game._INTL("Hail is falling.")); + CommonAnimation("Hail",null,null); + Display(Game._INTL("Hail is falling.")); } else if (@weather==Weather.HEAVYRAIN) { - pbCommonAnimation("HeavyRain",null,null); - pbDisplay(Game._INTL("It is raining heavily.")); + CommonAnimation("HeavyRain",null,null); + Display(Game._INTL("It is raining heavily.")); } else if (@weather==Weather.HARSHSUN) { - pbCommonAnimation("HarshSun",null,null); - pbDisplay(Game._INTL("The sunlight is extremely harsh.")); + CommonAnimation("HarshSun",null,null); + Display(Game._INTL("The sunlight is extremely harsh.")); } else if (@weather==Weather.STRONGWINDS) { - pbCommonAnimation("StrongWinds",null,null); - pbDisplay(Game._INTL("The wind is strong.")); + CommonAnimation("StrongWinds",null,null); + Display(Game._INTL("The wind is strong.")); } - pbOnActiveAll(); // Abilities + OnActiveAll(); // Abilities @turncount=0; #endregion #region Battle-Sequence Loop @@ -3084,30 +3088,30 @@ public void pbStartBattleCore(bool canlose) { GameDebug.Log($""); GameDebug.Log($"***Round #{@turncount+1}***"); if (@debug && @turncount>=100) { - @decision=pbDecisionOnTime(); + @decision=DecisionOnTime(); GameDebug.Log($""); GameDebug.Log($"***Undecided after 100 rounds, aborting***"); - pbAbort(); + Abort(); break; } //try //{ - //PBDebug.logonerr{ - pbCommandPhase(); + //Debug.logonerr{ + CommandPhase(); //} if (@decision>0) break; - //PBDebug.logonerr{ - pbAttackPhase(); + //Debug.logonerr{ + AttackPhase(); //} if (@decision>0) break; - //PBDebug.logonerr{ - pbEndOfRoundPhase(); + //Debug.logonerr{ + EndOfRoundPhase(); //} //} //catch (BattleAbortedException ex) //{ // GameDebug.Log(ex.ToString()); - // pbAbort(); + // Abort(); // break; //} //catch (Exception ex) @@ -3118,31 +3122,31 @@ public void pbStartBattleCore(bool canlose) { @turncount+=1; } while (this.decision == BattleResults.InProgress); //while (true); #endregion - pbEndOfBattle(canlose); + EndOfBattle(canlose); } #endregion #region Command phase. - public virtual MenuCommands pbCommandMenu(int i) { - return (MenuCommands)(@scene as IPokeBattle_SceneNonInteractive).pbCommandMenu(i); + public virtual MenuCommands CommandMenu(int i) { + return (MenuCommands)(@scene as IPokeBattle_SceneNonInteractive).CommandMenu(i); } - public virtual KeyValuePair pbItemMenu(int i) { - //return (@scene as IPokeBattle_SceneNonInteractive).pbItemMenu(i); + public virtual KeyValuePair ItemMenu(int i) { + //return (@scene as IPokeBattle_SceneNonInteractive).ItemMenu(i); //Returns from UI the Selected item, and the target for the item's usage - return new KeyValuePair((@scene as IPokeBattle_SceneNonInteractive).pbItemMenu(i), null); + return new KeyValuePair((@scene as IPokeBattle_SceneNonInteractive).ItemMenu(i), null); } - public virtual bool pbAutoFightMenu(int i) { + public virtual bool AutoFightMenu(int i) { return false; } - public virtual void pbCommandPhase() { - if (@scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbBeginCommandPhase(); - if (@scene is IPokeBattle_Scene s1) s1.pbResetCommandIndices(); + public virtual void CommandPhase() { + if (@scene is IPokeBattle_DebugSceneNoGraphics s0) s0.BeginCommandPhase(); + if (@scene is IPokeBattle_Scene s1) s1.ResetCommandIndices(); for (int i = 0; i < battlers.Length; i++) { // Reset choices if commands can be shown - @battlers[i].effects.SkipTurn=false; - if (CanShowCommands(i) || @battlers[i].isFainted()) { + _battlers[i].effects.SkipTurn=false; + if (CanShowCommands(i) || _battlers[i].isFainted()) { //@choices[i][0]=0; //@choices[i][1]=0; //@choices[i][2]=null; @@ -3150,8 +3154,8 @@ public virtual void pbCommandPhase() { @choices[i]=new Choice(ChoiceAction.NoAction); } else { - if (@doublebattle && !pbIsDoubleBattler(i)) { - GameDebug.Log($"[Reusing commands] #{@battlers[i].ToString(true)}"); + if (@doublebattle && !IsDoubleBattler(i)) { + GameDebug.Log($"[Reusing commands] #{_battlers[i].ToString(true)}"); } } } @@ -3163,10 +3167,10 @@ public virtual void pbCommandPhase() { } for (int i = 0; i < battlers.Length; i++) { if (@decision==0) break; - if (@choices[i].Action!=0) continue; //@choices[i][0]!=0 - if (!pbOwnedByPlayer(i) || @controlPlayer) { - if (!@battlers[i].isFainted() && CanShowCommands(i)) { - (@scene as IPokeBattle_SceneNonInteractive).pbChooseEnemyCommand(i); + if (@choices[i]?.Action!=0) continue; //@choices[i][0]!=0 + if (!OwnedByPlayer(i) || @controlPlayer) { + if (!_battlers[i].isFainted() && CanShowCommands(i)) { + (@scene as IPokeBattle_SceneNonInteractive).ChooseEnemyCommand(i); } } else { @@ -3174,37 +3178,37 @@ public virtual void pbCommandPhase() { //bool commandEnd=false; if (CanShowCommands(i)) { do { //loop - MenuCommands cmd=pbCommandMenu(i); + MenuCommands cmd=CommandMenu(i); if (cmd==MenuCommands.FIGHT) { // Fight if (CanShowFightMenu(i)) { - if (pbAutoFightMenu(i)) commandDone=true; + if (AutoFightMenu(i)) commandDone=true; do { - int index=(@scene as IPokeBattle_SceneNonInteractive).pbFightMenu(i); + int index=(@scene as IPokeBattle_SceneNonInteractive).FightMenu(i); if (index<0) { - int side=(pbIsOpposing(i)) ? 1 : 0; - int owner=pbGetOwnerIndex(i); + int side=(IsOpposing(i)) ? 1 : 0; + int owner=GetOwnerIndex(i); if (@megaEvolution[side][owner]==i) { @megaEvolution[side][owner]=-1; } break; } - if (!pbRegisterMove(i,index)) continue; + if (!RegisterMove(i,index)) continue; if (@doublebattle) { - IBattleMove thismove=@battlers[i].moves[index]; - //Attack.Target target=@battlers[i].pbTarget(thismove); - Attack.Data.Targets targets=@battlers[i].pbTarget(thismove); + IBattleMove thismove=_battlers[i].moves[index]; + //Attack.Target target=_battlers[i].Target(thismove); + Attack.Data.Targets targets=_battlers[i].Target(thismove); //if (target==Attack.Target.SingleNonUser) { // single non-user if (targets==Attack.Data.Targets.SELECTED_POKEMON || // single non-user targets==Attack.Data.Targets.SELECTED_POKEMON_ME_FIRST) { - int target=(@scene as IPokeBattle_SceneNonInteractive).pbChooseTarget(i,targets); + int target=(@scene as IPokeBattle_SceneNonInteractive).ChooseTarget(i,targets); if (target<0) continue; - pbRegisterTarget(i,target); + RegisterTarget(i,target); } //else if (target==Attack.Target.UserOrPartner) { // Acupressure else if (targets==Attack.Data.Targets.USER_OR_ALLY) { // Acupressure - int target=(@scene as IPokeBattle_SceneNonInteractive).pbChooseTarget(i,targets); + int target=(@scene as IPokeBattle_SceneNonInteractive).ChooseTarget(i,targets); if (target<0 || (target%2)==1) continue; //no choice or enemy - pbRegisterTarget(i,target); + RegisterTarget(i,target); } //ToDo: Else... random selected pokemon (not target select, but still register target) } @@ -3212,57 +3216,57 @@ public virtual void pbCommandPhase() { } while (!commandDone); } else { - pbAutoChooseMove(i); + AutoChooseMove(i); commandDone=true; } } - else if (cmd!=MenuCommands.FIGHT && @battlers[i].effects.SkyDrop) { - pbDisplay(Game._INTL("Sky Drop won't let {1} go!",@battlers[i].ToString(true))); + else if (cmd!=MenuCommands.FIGHT && _battlers[i].effects.SkyDrop) { + Display(Game._INTL("Sky Drop won't let {1} go!",_battlers[i].ToString(true))); } else if (cmd==MenuCommands.BAG) { // Bag if (!@internalbattle) { - if (pbOwnedByPlayer(i)) { - pbDisplay(Game._INTL("Items can't be used here.")); + if (OwnedByPlayer(i)) { + Display(Game._INTL("Items can't be used here.")); } } else { - KeyValuePair item=pbItemMenu(i); + KeyValuePair item=ItemMenu(i); if (item.Key>0) { - if (pbRegisterItem(i,(Items)item.Key,item.Value)) { + if (RegisterItem(i,(Items)item.Key,item.Value)) { commandDone=true; } } } } else if (cmd==MenuCommands.POKEMON) { // Pokémon - int pkmn=pbSwitchPlayer(i,false,true); + int pkmn=SwitchPlayer(i,false,true); if (pkmn>=0) { - if (pbRegisterSwitch(i,pkmn)) commandDone=true; + if (RegisterSwitch(i,pkmn)) commandDone=true; } } else if (cmd==MenuCommands.RUN) { // Run - int run=pbRun(i); + int run=Run(i); if (run>0) { commandDone=true; return; } else if (run<0) { commandDone=true; - int side=(pbIsOpposing(i)) ? 1 : 0; - int owner=pbGetOwnerIndex(i); + int side=(IsOpposing(i)) ? 1 : 0; + int owner=GetOwnerIndex(i); if (@megaEvolution[side][owner]==i) { @megaEvolution[side][owner]=-1; } } } else if (cmd==MenuCommands.CALL) { // Call - IBattler thispkmn=@battlers[i]; + IBattler thispkmn=_battlers[i]; //@choices[i][0]=4; // "Call Pokémon" //@choices[i][1]=0; //@choices[i][2]=null; @choices[i]=new Choice(ChoiceAction.CallPokemon); - int side=(pbIsOpposing(i)) ? 1 : 0; - int owner=pbGetOwnerIndex(i); + int side=(IsOpposing(i)) ? 1 : 0; + int owner=GetOwnerIndex(i); if (@megaEvolution[side][owner]==i) { @megaEvolution[side][owner]=-1; } @@ -3272,11 +3276,11 @@ public virtual void pbCommandPhase() { if (@megaEvolution[0][0]>=0) @megaEvolution[0][0]=-1; if (@megaEvolution[1][0]>=0) @megaEvolution[1][0]=-1; // Restore the item the player's first Pokémon was due to use - //if (@choices[0][0]==3 && Game.GameData.Bag && Game.GameData.Bag.pbCanStore(@choices[0][1])) { - if (@choices[0].Action==ChoiceAction.UseItem && Game.GameData.Bag != null && Game.GameData.Bag.pbCanStore((Items)@choices[0].Index)) { - Game.GameData.Bag.pbStoreItem((Items)@choices[0].Index); //@choices[0][1] + //if (@choices[0][0]==3 && Game.GameData.Bag && Game.GameData.Bag.CanStore(@choices[0][1])) { + if (@choices[0].Action==ChoiceAction.UseItem && Game.GameData.Bag != null && Game.GameData.Bag.CanStore((Items)@choices[0].Index)) { + Game.GameData.Bag.StoreItem((Items)@choices[0].Index); //@choices[0][1] } - pbCommandPhase(); + CommandPhase(); return; } if (commandDone) break; @@ -3288,74 +3292,74 @@ public virtual void pbCommandPhase() { #endregion #region Attack phase. - public void pbAttackPhase() { - if (@scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbBeginAttackPhase(); + public void AttackPhase() { + if (@scene is IPokeBattle_DebugSceneNoGraphics s0) s0.BeginAttackPhase(); for (int i = 0; i < battlers.Length; i++) { @successStates[i].Clear(); - if (@choices[i].Action!= ChoiceAction.UseMove && @choices[i].Action!=ChoiceAction.SwitchPokemon) { - @battlers[i].effects.DestinyBond=false; - @battlers[i].effects.Grudge=false; + if (@choices[i]?.Action!= ChoiceAction.UseMove && @choices[i]?.Action!=ChoiceAction.SwitchPokemon) { + _battlers[i].effects.DestinyBond=false; + _battlers[i].effects.Grudge=false; } - if (!@battlers[i].isFainted()) @battlers[i].turncount+=1; - if (!pbChoseMove(i,Moves.RAGE)) @battlers[i].effects.Rage=false; + if (!_battlers[i].isFainted()) _battlers[i].turncount+=1; + if (!ChoseMove(i,Moves.RAGE)) _battlers[i].effects.Rage=false; } // Calculate priority at this time @usepriority=false; - priority=pbPriority(false,true); + _priority=Priority(false,true); // Mega Evolution List megaevolved=new List(); foreach (var i in priority) { - if (@choices[i.Index].Action==ChoiceAction.UseMove && !i.effects.SkipTurn) { - int side=(pbIsOpposing(i.Index)) ? 1 : 0; - int owner=pbGetOwnerIndex(i.Index); + if (@choices[i.Index]?.Action==ChoiceAction.UseMove && !i.effects.SkipTurn) { + int side=(IsOpposing(i.Index)) ? 1 : 0; + int owner=GetOwnerIndex(i.Index); if (@megaEvolution[side][owner]==i.Index) { //@megaEvolution[side][owner] - //pbMegaEvolve(i.Index); + //MegaEvolve(i.Index); megaevolved.Add(i.Index); } } } if (megaevolved.Count>0) { foreach (var i in priority) { - if (megaevolved.Contains(i.Index)) i.pbAbilitiesOnSwitchIn(true); + if (megaevolved.Contains(i.Index)) i.AbilitiesOnSwitchIn(true); } } // Call at Pokémon foreach (var i in priority) { - if (@choices[i.Index].Action==ChoiceAction.CallPokemon && !i.effects.SkipTurn) { - pbCall(i.Index); + if (@choices[i.Index]?.Action==ChoiceAction.CallPokemon && !i.effects.SkipTurn) { + Call(i.Index); } } // Switch out Pokémon @switching=true; List switched=new List(); foreach (var i in priority) { - if (@choices[i.Index].Action==ChoiceAction.SwitchPokemon && !i.effects.SkipTurn) { + if (@choices[i.Index]?.Action==ChoiceAction.SwitchPokemon && !i.effects.SkipTurn) { int index=@choices[i.Index].Index; // party position of Pokémon to switch to int newpokename=index; - if (pbParty(i.Index)[index].Ability == Abilities.ILLUSION) { - newpokename=pbGetLastPokeInTeam(i.Index); + if (Party(i.Index)[index].Ability == Abilities.ILLUSION) { + newpokename=GetLastPokeInTeam(i.Index); } this.lastMoveUser=i.Index; - if (!pbOwnedByPlayer(i.Index)) { - ITrainer owner=pbGetOwner(i.Index); - pbDisplayBrief(Game._INTL("{1} withdrew {2}!",owner.name,i.Name)); + if (!OwnedByPlayer(i.Index)) { + ITrainer owner=GetOwner(i.Index); + DisplayBrief(Game._INTL("{1} withdrew {2}!",owner.name,i.Name)); GameDebug.Log($"[Withdrew Pokémon] Opponent withdrew #{i.ToString(true)}"); } else { - pbDisplayBrief(Game._INTL("{1}, that's enough!\r\nCome back!",i.Name)); + DisplayBrief(Game._INTL("{1}, that's enough!\r\nCome back!",i.Name)); GameDebug.Log($"[Withdrew Pokémon] Player withdrew #{i.ToString(true)}"); } foreach (var j in priority) { - if (!i.pbIsOpposing(j.Index)) continue; + if (!i.IsOpposing(j.Index)) continue; // if Pursuit and this target ("i") was chosen - if (pbChoseMoveFunctionCode(j.Index,Attack.Data.Effects.x081) && // Pursuit + if (ChoseMoveFunctionCode(j.Index,Attack.Data.Effects.x081) && // Pursuit !j.hasMovedThisRound()) { if (j.Status!=Status.SLEEP && j.Status!=Status.FROZEN && !j.effects.SkyDrop && (!j.hasWorkingAbility(Abilities.TRUANT) || !j.effects.Truant)) { //@choices[j.Index].Target=i.Index; // Make sure to target the switching Pokémon @choices[j.Index]=new Choice(@choices[j.Index].Action, @choices[j.Index].Index, @choices[j.Index].Move, target: i.Index); // Make sure to target the switching Pokémon - j.pbUseMove(@choices[j.Index]); // This calls pbGainEXP as appropriate + j.UseMove(@choices[j.Index]); // This calls GainEXP as appropriate j.effects.Pursuit=true; @switching=false; if (@decision>0) return; @@ -3363,7 +3367,7 @@ public void pbAttackPhase() { } if (i.isFainted()) break; } - if (!pbRecallAndReplace(i.Index,index,newpokename)) { + if (!RecallAndReplace(i.Index,index,newpokename)) { // If a forced switch somehow occurs here in single battles // the attack phase now ends if (!@doublebattle) { @@ -3378,16 +3382,16 @@ public void pbAttackPhase() { } if (switched.Count>0) { foreach (var i in priority) { - if (switched.Contains(i.Index)) i.pbAbilitiesOnSwitchIn(true); + if (switched.Contains(i.Index)) i.AbilitiesOnSwitchIn(true); } } @switching=false; // Use items foreach (var i in priority) { - if (@choices[i.Index].Action== ChoiceAction.UseItem && !i.effects.SkipTurn) { - if (pbIsOpposing(i.Index)) { + if (@choices[i.Index]?.Action==ChoiceAction.UseItem && !i.effects.SkipTurn) { + if (IsOpposing(i.Index)) { // Opponent use item - pbEnemyUseItem((Items)@choices[i.Index].Index,i); + EnemyUseItem((Items)@choices[i.Index].Index,i); } else { // Player use item @@ -3397,12 +3401,12 @@ public void pbAttackPhase() { int usetype=0;//Kernal.ItemData[item].Flags.[Core.ITEMBATTLEUSE]; //AIs can use items? if (usetype==1 || usetype==3) { if (@choices[i.Index].Target>=0) { //@choices[i.Index][2] - pbUseItemOnPokemon(item,@choices[i.Index].Target,i,@scene); + UseItemOnPokemon(item,@choices[i.Index].Target,i,@scene); } } else if (usetype==2 || usetype==4) { if (!ItemHandlers.hasUseInBattle(item)) { // Poké Ball/Poké Doll used already - pbUseItemOnBattler(item,@choices[i.Index].Target,i,@scene); + UseItemOnBattler(item,@choices[i.Index].Target,i,@scene); } } } @@ -3412,9 +3416,9 @@ public void pbAttackPhase() { // Use attacks foreach (var i in priority) { if (i.effects.SkipTurn) continue; - if (pbChoseMoveFunctionCode(i.Index,Attack.Data.Effects.x0AB)) { // Focus Punch - pbCommonAnimation("FocusPunch",i,null); - pbDisplay(Game._INTL("{1} is tightening its focus!",i.ToString())); + if (ChoseMoveFunctionCode(i.Index,Attack.Data.Effects.x0AB)) { // Focus Punch + CommonAnimation("FocusPunch",i,null); + Display(Game._INTL("{1} is tightening its focus!",i.ToString())); } } int n = 0; do { //10.times @@ -3423,7 +3427,7 @@ public void pbAttackPhase() { foreach (var i in priority) { if (!i.effects.MoveNext) continue; if (i.hasMovedThisRound() || i.effects.SkipTurn) continue; - advance=i.pbProcessTurn(@choices[i.Index]); + advance=i.ProcessTurn(@choices[i.Index]); if (advance) break; } if (@decision>0) return; @@ -3432,7 +3436,7 @@ public void pbAttackPhase() { foreach (var i in priority) { if (i.effects.Quash) continue; if (i.hasMovedThisRound() || i.effects.SkipTurn) continue; - advance=i.pbProcessTurn(@choices[i.Index]); + advance=i.ProcessTurn(@choices[i.Index]); if (advance) break; } if (@decision>0) return; @@ -3441,66 +3445,66 @@ public void pbAttackPhase() { foreach (var i in priority) { if (!i.effects.Quash) continue; if (i.hasMovedThisRound() || i.effects.SkipTurn) continue; - advance=i.pbProcessTurn(@choices[i.Index]); + advance=i.ProcessTurn(@choices[i.Index]); if (advance) break; } if (@decision>0) return; if (advance) continue; // Check for all done foreach (var i in priority) { - if (@choices[i.Index].Action== ChoiceAction.UseMove && !i.hasMovedThisRound() && + if (@choices[i.Index]?.Action==ChoiceAction.UseMove && !i.hasMovedThisRound() && !i.effects.SkipTurn) advance=true; if (advance) break; } if (advance) continue; n++;//break; } while (n < 10); - if (Game.GameData is IGameField f) f.pbWait(20); + if (Game.GameData is IGameField f) f.Wait(20); } #endregion #region End of round. - //private void _pbEndOfRoundPhase() { - void IBattle.pbEndOfRoundPhase() { + //protected void _EndOfRoundPhase() { + void IBattle.EndOfRoundPhase() { GameDebug.Log($"[End of round]"); for (int i = 0; i < battlers.Length; i++) { - @battlers[i].effects.Electrify=false; - @battlers[i].effects.Endure=false; - @battlers[i].effects.FirstPledge=0; - if (@battlers[i].effects.HyperBeam>0) @battlers[i].effects.HyperBeam-=1; - @battlers[i].effects.KingsShield=false; - @battlers[i].effects.LifeOrb=false; - @battlers[i].effects.MoveNext=false; - @battlers[i].effects.Powder=false; - @battlers[i].effects.Protect=false; - @battlers[i].effects.ProtectNegation=false; - @battlers[i].effects.Quash=false; - @battlers[i].effects.Roost=false; - @battlers[i].effects.SpikyShield=false; + _battlers[i].effects.Electrify=false; + _battlers[i].effects.Endure=false; + _battlers[i].effects.FirstPledge=0; + if (_battlers[i].effects.HyperBeam>0) _battlers[i].effects.HyperBeam-=1; + _battlers[i].effects.KingsShield=false; + _battlers[i].effects.LifeOrb=false; + _battlers[i].effects.MoveNext=false; + _battlers[i].effects.Powder=false; + _battlers[i].effects.Protect=false; + _battlers[i].effects.ProtectNegation=false; + _battlers[i].effects.Quash=false; + _battlers[i].effects.Roost=false; + _battlers[i].effects.SpikyShield=false; } @usepriority=false; // recalculate priority - priority=pbPriority(true); // Ignoring Quick Claw here + _priority=Priority(true); // Ignoring Quick Claw here // Weather switch (@weather) { case Weather.SUNNYDAY: if (@weatherduration>0) @weatherduration=@weatherduration-1; if (@weatherduration==0) { - pbDisplay(Game._INTL("The sunlight faded.")); + Display(Game._INTL("The sunlight faded.")); @weather=0; GameDebug.Log($"[End of effect] Sunlight weather ended"); } else { - pbCommonAnimation("Sunny",null,null); - pbDisplay(Game._INTL("The sunlight is strong.")); - if (pbWeather==Weather.SUNNYDAY) { + CommonAnimation("Sunny",null,null); + Display(Game._INTL("The sunlight is strong.")); + if (Weather==Weather.SUNNYDAY) { foreach (var i in priority) { if (i.hasWorkingAbility(Abilities.SOLAR_POWER)) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s Solar Power"); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(i,0); - i.pbReduceHP((int)Math.Floor(i.TotalHP/8f)); - pbDisplay(Game._INTL("{1} was hurt by the sunlight!",i.ToString())); + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(i,0); + i.ReduceHP((int)Math.Floor(i.TotalHP/8f)); + Display(Game._INTL("{1} was hurt by the sunlight!",i.ToString())); if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } } @@ -3510,30 +3514,30 @@ void IBattle.pbEndOfRoundPhase() { case Weather.RAINDANCE: if (@weatherduration>0) @weatherduration=@weatherduration-1; if (@weatherduration==0) { - pbDisplay(Game._INTL("The rain stopped.")); + Display(Game._INTL("The rain stopped.")); @weather=0; GameDebug.Log($"[End of effect] Rain weather ended"); } else { - pbCommonAnimation("Rain",null,null); - pbDisplay(Game._INTL("Rain continues to fall.")); + CommonAnimation("Rain",null,null); + Display(Game._INTL("Rain continues to fall.")); } break; case Weather.SANDSTORM: if (@weatherduration>0) @weatherduration=@weatherduration-1; if (@weatherduration==0) { - pbDisplay(Game._INTL("The sandstorm subsided.")); + Display(Game._INTL("The sandstorm subsided.")); @weather=0; GameDebug.Log($"[End of effect] Sandstorm weather ended"); } else { - pbCommonAnimation("Sandstorm",null,null); - pbDisplay(Game._INTL("The sandstorm rages.")); - if (pbWeather==Weather.SANDSTORM) { + CommonAnimation("Sandstorm",null,null); + Display(Game._INTL("The sandstorm rages.")); + if (Weather==Weather.SANDSTORM) { GameDebug.Log($"[Lingering effect triggered] Sandstorm weather damage"); foreach (var i in priority) { if (i.isFainted()) continue; - if (!i.pbHasType(Types.GROUND) && !i.pbHasType(Types.ROCK) && !i.pbHasType(Types.STEEL) && + if (!i.HasType(Types.GROUND) && !i.HasType(Types.ROCK) && !i.HasType(Types.STEEL) && !i.hasWorkingAbility(Abilities.SAND_VEIL) && !i.hasWorkingAbility(Abilities.SAND_RUSH) && !i.hasWorkingAbility(Abilities.SAND_FORCE) && @@ -3544,11 +3548,11 @@ void IBattle.pbEndOfRoundPhase() { Attack.Data.Effects.x101, // Dig Attack.Data.Effects.x100 // Dive }.Contains(Kernal.MoveData[i.effects.TwoTurnAttack].Effect)) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(i,0); - i.pbReduceHP((int)Math.Floor(i.TotalHP/16f)); - pbDisplay(Game._INTL("{1} is buffeted by the sandstorm!",i.ToString())); + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(i,0); + i.ReduceHP((int)Math.Floor(i.TotalHP/16f)); + Display(Game._INTL("{1} is buffeted by the sandstorm!",i.ToString())); if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } } @@ -3558,29 +3562,29 @@ void IBattle.pbEndOfRoundPhase() { case Weather.HAIL: if (@weatherduration>0) @weatherduration=@weatherduration-1; if (@weatherduration==0) { - pbDisplay(Game._INTL("The hail stopped.")); + Display(Game._INTL("The hail stopped.")); @weather=0; GameDebug.Log($"[End of effect] Hail weather ended"); } else { - pbCommonAnimation("Hail",null,null); - pbDisplay(Game._INTL("Hail continues to fall.")); - if (pbWeather==Weather.HAIL) { + CommonAnimation("Hail",null,null); + Display(Game._INTL("Hail continues to fall.")); + if (Weather==Weather.HAIL) { GameDebug.Log($"[Lingering effect triggered] Hail weather damage"); foreach (var i in priority) { if (i.isFainted()) continue; - if (!i.pbHasType(Types.ICE) && + if (!i.HasType(Types.ICE) && !i.hasWorkingAbility(Abilities.ICE_BODY) && !i.hasWorkingAbility(Abilities.SNOW_CLOAK) && !i.hasWorkingAbility(Abilities.MAGIC_GUARD) && !i.hasWorkingAbility(Abilities.OVERCOAT) && !i.hasWorkingItem(Items.SAFETY_GOGGLES) && !new int[] { 0xCA,0xCB }.Contains((int)Kernal.MoveData[i.effects.TwoTurnAttack].Effect)) { // Dig, Dive - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(i,0); - i.pbReduceHP((int)Math.Floor(i.TotalHP/16f)); - pbDisplay(Game._INTL("{1} is buffeted by the hail!",i.ToString())); + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(i,0); + i.ReduceHP((int)Math.Floor(i.TotalHP/16f)); + Display(Game._INTL("{1} is buffeted by the hail!",i.ToString())); if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } } @@ -3590,46 +3594,46 @@ void IBattle.pbEndOfRoundPhase() { case Weather.HEAVYRAIN: bool hasabil=false; for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].Ability == Abilities.PRIMORDIAL_SEA && !@battlers[i].isFainted()) { + if (_battlers[i].Ability == Abilities.PRIMORDIAL_SEA && !_battlers[i].isFainted()) { hasabil=true; break; } } if (!hasabil) @weatherduration=0; if (@weatherduration==0) { - pbDisplay(Game._INTL("The heavy rain stopped.")); + Display(Game._INTL("The heavy rain stopped.")); @weather=0; GameDebug.Log($"[End of effect] Primordial Sea's rain weather ended"); } else { - pbCommonAnimation("HeavyRain",null,null); - pbDisplay(Game._INTL("It is raining heavily.")); + CommonAnimation("HeavyRain",null,null); + Display(Game._INTL("It is raining heavily.")); } break; case Weather.HARSHSUN: hasabil=false; for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].Ability == Abilities.DESOLATE_LAND && !@battlers[i].isFainted()) { + if (_battlers[i].Ability == Abilities.DESOLATE_LAND && !_battlers[i].isFainted()) { hasabil=true; break; } } if (!hasabil) @weatherduration=0; if (@weatherduration==0) { - pbDisplay(Game._INTL("The harsh sunlight faded.")); + Display(Game._INTL("The harsh sunlight faded.")); @weather=0; GameDebug.Log($"[End of effect] Desolate Land's sunlight weather ended"); } else { - pbCommonAnimation("HarshSun",null,null); - pbDisplay(Game._INTL("The sunlight is extremely harsh.")); - if (pbWeather==Weather.HARSHSUN) { + CommonAnimation("HarshSun",null,null); + Display(Game._INTL("The sunlight is extremely harsh.")); + if (Weather==Weather.HARSHSUN) { foreach (var i in priority) { if (i.hasWorkingAbility(Abilities.SOLAR_POWER)) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s Solar Power"); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(i,0); - i.pbReduceHP((int)Math.Floor(i.TotalHP/8f)); - pbDisplay(Game._INTL("{1} was hurt by the sunlight!",i.ToString())); + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(i,0); + i.ReduceHP((int)Math.Floor(i.TotalHP/8f)); + Display(Game._INTL("{1} was hurt by the sunlight!",i.ToString())); if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } } @@ -3639,19 +3643,19 @@ void IBattle.pbEndOfRoundPhase() { case Weather.STRONGWINDS: hasabil=false; for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].Ability == Abilities.DELTA_STREAM && !@battlers[i].isFainted()) { + if (_battlers[i].Ability == Abilities.DELTA_STREAM && !_battlers[i].isFainted()) { hasabil=true; break; } } if (!hasabil) @weatherduration=0; if (@weatherduration==0) { - pbDisplay(Game._INTL("The air current subsided.")); + Display(Game._INTL("The air current subsided.")); @weather=Weather.NONE; GameDebug.Log($"[End of effect] Delta Stream's wind weather ended"); } else { - pbCommonAnimation("StrongWinds",null,null); - pbDisplay(Game._INTL("The wind is strong.")); + CommonAnimation("StrongWinds",null,null); + Display(Game._INTL("The wind is strong.")); } break; } @@ -3659,23 +3663,23 @@ void IBattle.pbEndOfRoundPhase() { if (@weather == Weather.SHADOWSKY) { if (@weatherduration>0) @weatherduration=@weatherduration-1; if (@weatherduration==0) { - pbDisplay(Game._INTL("The shadow sky faded.")); + Display(Game._INTL("The shadow sky faded.")); @weather=Weather.NONE; GameDebug.Log($"[End of effect] Shadow Sky weather ended"); } else { - pbCommonAnimation("ShadowSky",null,null); - pbDisplay(Game._INTL("The shadow sky continues.")); - if (pbWeather == Weather.SHADOWSKY) { + CommonAnimation("ShadowSky",null,null); + Display(Game._INTL("The shadow sky continues.")); + if (Weather == Weather.SHADOWSKY) { GameDebug.Log($"[Lingering effect triggered] Shadow Sky weather damage"); foreach (var i in priority) { if (i.isFainted()) continue; if (i is IBattlerShadowPokemon s && !s.isShadow()) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(i,0); - i.pbReduceHP((int)Math.Floor(i.TotalHP/16f)); - pbDisplay(Game._INTL("{1} was hurt by the shadow sky!",i.ToString())); + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(i,0); + i.ReduceHP((int)Math.Floor(i.TotalHP/16f)); + Display(Game._INTL("{1} was hurt by the shadow sky!",i.ToString())); if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } } @@ -3690,28 +3694,28 @@ void IBattle.pbEndOfRoundPhase() { if (i.effects.FutureSight==0) { Moves move=i.effects.FutureSightMove; GameDebug.Log($"[Lingering effect triggered] #{Game._INTL(move.ToString(TextScripts.Name))} struck #{i.ToString(true)}"); - pbDisplay(Game._INTL("{1} took the {2} attack!",i.ToString(),Game._INTL(move.ToString(TextScripts.Name)))); + Display(Game._INTL("{1} took the {2} attack!",i.ToString(),Game._INTL(move.ToString(TextScripts.Name)))); IBattler moveuser=null; foreach (var j in battlers) { - if (j.pbIsOpposing(i.effects.FutureSightUserPos)) continue; + if (j.IsOpposing(i.effects.FutureSightUserPos)) continue; if (j.pokemonIndex==i.effects.FutureSightUser && !j.isFainted()) { moveuser=j; break; } } if (!moveuser.IsNotNullOrNone()) { - IPokemon[] party=pbParty(i.effects.FutureSightUserPos); + IPokemon[] party=Party(i.effects.FutureSightUserPos); if (party[i.effects.FutureSightUser].HP>0) { moveuser=new Pokemon(this,(sbyte)i.effects.FutureSightUserPos); - moveuser.pbInitPokemon(party[i.effects.FutureSightUser], + moveuser.InitPokemon(party[i.effects.FutureSightUser], (sbyte)i.effects.FutureSightUser); } } if (!moveuser.IsNotNullOrNone()) { - pbDisplay(Game._INTL("But it failed!")); + Display(Game._INTL("But it failed!")); } else { @futuresight=true; - moveuser.pbUseMoveSimple(move,-1,i.Index); + moveuser.UseMoveSimple(move,-1,i.Index); @futuresight=false; } i.effects.FutureSight=0; @@ -3719,7 +3723,7 @@ void IBattle.pbEndOfRoundPhase() { i.effects.FutureSightUser=-1; i.effects.FutureSightUserPos=-1; if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; continue; } } @@ -3729,36 +3733,36 @@ void IBattle.pbEndOfRoundPhase() { if (i.isFainted()) continue; // Rain Dish if (i.hasWorkingAbility(Abilities.RAIN_DISH) && - (pbWeather==Weather.RAINDANCE || - pbWeather==Weather.HEAVYRAIN)) { + (Weather==Weather.RAINDANCE || + Weather==Weather.HEAVYRAIN)) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s Rain Dish"); - int hpgain=i.pbRecoverHP((int)Math.Floor(i.TotalHP/16f),true); - if (hpgain>0) pbDisplay(Game._INTL("{1}'s {2} restored its HP a little!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + int hpgain=i.RecoverHP((int)Math.Floor(i.TotalHP/16f),true); + if (hpgain>0) Display(Game._INTL("{1}'s {2} restored its HP a little!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); } // Dry Skin if (i.hasWorkingAbility(Abilities.DRY_SKIN)) { - if (pbWeather==Weather.RAINDANCE || - pbWeather==Weather.HEAVYRAIN) { + if (Weather==Weather.RAINDANCE || + Weather==Weather.HEAVYRAIN) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s Dry Skin (in rain)"); - int hpgain=i.pbRecoverHP((int)Math.Floor(i.TotalHP/8f),true); - if (hpgain>0) pbDisplay(Game._INTL("{1}'s {2} was healed by the rain!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + int hpgain=i.RecoverHP((int)Math.Floor(i.TotalHP/8f),true); + if (hpgain>0) Display(Game._INTL("{1}'s {2} was healed by the rain!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); } - else if (pbWeather==Weather.SUNNYDAY || - pbWeather==Weather.HARSHSUN) { + else if (Weather==Weather.SUNNYDAY || + Weather==Weather.HARSHSUN) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s Dry Skin (in sun)"); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(i,0); - int hploss=i.pbReduceHP((int)Math.Floor(i.TotalHP/8f)); - if (hploss>0) pbDisplay(Game._INTL("{1}'s {2} was hurt by the sunlight!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(i,0); + int hploss=i.ReduceHP((int)Math.Floor(i.TotalHP/8f)); + if (hploss>0) Display(Game._INTL("{1}'s {2} was hurt by the sunlight!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); } } // Ice Body - if (i.hasWorkingAbility(Abilities.ICE_BODY) && pbWeather==Weather.HAIL) { + if (i.hasWorkingAbility(Abilities.ICE_BODY) && Weather==Weather.HAIL) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s Ice Body"); - int hpgain=i.pbRecoverHP((int)Math.Floor(i.TotalHP/16f),true); - if (hpgain>0) pbDisplay(Game._INTL("{1}'s {2} restored its HP a little!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + int hpgain=i.RecoverHP((int)Math.Floor(i.TotalHP/16f),true); + if (hpgain>0) Display(Game._INTL("{1}'s {2} restored its HP a little!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); } if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } // Wish @@ -3768,10 +3772,10 @@ void IBattle.pbEndOfRoundPhase() { i.effects.Wish-=1; if (i.effects.Wish==0) { GameDebug.Log($"[Lingering effect triggered] #{i.ToString()}'s Wish"); - int hpgain=i.pbRecoverHP(i.effects.WishAmount,true); + int hpgain=i.RecoverHP(i.effects.WishAmount,true); if (hpgain>0) { string wishmaker=ToString(i.Index,i.effects.WishMaker); - pbDisplay(Game._INTL("{1}'s wish came true!",wishmaker)); + Display(Game._INTL("{1}'s wish came true!",wishmaker)); } } } @@ -3779,18 +3783,18 @@ void IBattle.pbEndOfRoundPhase() { // Fire Pledge + Grass Pledge combination damage for (int i = 0; i < sides.Length; i++) { if (sides[i].SeaOfFire>0 && - pbWeather!=Weather.RAINDANCE && - pbWeather!=Weather.HEAVYRAIN) { - if (i==0) pbCommonAnimation("SeaOfFire",null,null); //@battle. - if (i==1) pbCommonAnimation("SeaOfFireOpp",null,null); //@battle. + Weather!=Weather.RAINDANCE && + Weather!=Weather.HEAVYRAIN) { + if (i==0) CommonAnimation("SeaOfFire",null,null); //@battle. + if (i==1) CommonAnimation("SeaOfFireOpp",null,null); //@battle. foreach (var j in priority) { if ((j.Index&1)!=i) continue; - if (j.pbHasType(Types.FIRE) || j.hasWorkingAbility(Abilities.MAGIC_GUARD)) continue; - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(j,0); - int hploss=j.pbReduceHP((int)Math.Floor(j.TotalHP/8f)); - if (hploss>0) pbDisplay(Game._INTL("{1} is hurt by the sea of fire!",j.ToString())); + if (j.HasType(Types.FIRE) || j.hasWorkingAbility(Abilities.MAGIC_GUARD)) continue; + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(j,0); + int hploss=j.ReduceHP((int)Math.Floor(j.TotalHP/8f)); + if (hploss>0) Display(Game._INTL("{1} is hurt by the sea of fire!",j.ToString())); if (j.isFainted()) { - if (!j.pbFaint()) return; + if (!j.Faint()) return; } } } @@ -3798,54 +3802,54 @@ void IBattle.pbEndOfRoundPhase() { foreach (IBattler i in priority) { if (i.isFainted()) continue; // Shed Skin, Hydration - if ((i.hasWorkingAbility(Abilities.SHED_SKIN) && pbRandom(10)<3) || - (i.hasWorkingAbility(Abilities.HYDRATION) && (pbWeather==Weather.RAINDANCE || - pbWeather==Weather.HEAVYRAIN))) { + if ((i.hasWorkingAbility(Abilities.SHED_SKIN) && Random(10)<3) || + (i.hasWorkingAbility(Abilities.HYDRATION) && (Weather==Weather.RAINDANCE || + Weather==Weather.HEAVYRAIN))) { if (i.Status>0) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s #{Game._INTL(i.Ability.ToString(TextScripts.Name))}"); Status s=i.Status; - if (i is IBattlerEffect b) b.pbCureStatus(false); + if (i is IBattlerEffect b) b.CureStatus(false); switch (s) { case Status.SLEEP: - pbDisplay(Game._INTL("{1}'s {2} cured its sleep problem!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} cured its sleep problem!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; case Status.POISON: - pbDisplay(Game._INTL("{1}'s {2} cured its poison problem!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} cured its poison problem!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; case Status.BURN: - pbDisplay(Game._INTL("{1}'s {2} healed its burn!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} healed its burn!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; case Status.PARALYSIS: - pbDisplay(Game._INTL("{1}'s {2} cured its paralysis!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} cured its paralysis!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; case Status.FROZEN: - pbDisplay(Game._INTL("{1}'s {2} thawed it out!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} thawed it out!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; } } } // Healer - if (i.hasWorkingAbility(Abilities.HEALER) && pbRandom(10)<3) { - IBattler partner=i.pbPartner; + if (i.hasWorkingAbility(Abilities.HEALER) && Random(10)<3) { + IBattler partner=i.Partner; if (partner.IsNotNullOrNone() && partner.Status>0) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s #{Game._INTL(i.Ability.ToString(TextScripts.Name))}"); Status s=partner.Status; - if (partner is IBattlerEffect b) b.pbCureStatus(false); + if (partner is IBattlerEffect b) b.CureStatus(false); switch (s) { case Status.SLEEP: - pbDisplay(Game._INTL("{1}'s {2} cured its partner's sleep problem!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} cured its partner's sleep problem!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; case Status.POISON: - pbDisplay(Game._INTL("{1}'s {2} cured its partner's poison problem!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} cured its partner's poison problem!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; case Status.BURN: - pbDisplay(Game._INTL("{1}'s {2} healed its partner's burn!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} healed its partner's burn!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; case Status.PARALYSIS: - pbDisplay(Game._INTL("{1}'s {2} cured its partner's paralysis!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} cured its partner's paralysis!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; case Status.FROZEN: - pbDisplay(Game._INTL("{1}'s {2} thawed its partner out!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); + Display(Game._INTL("{1}'s {2} thawed its partner out!",i.ToString(),Game._INTL(i.Ability.ToString(TextScripts.Name)))); break; } } @@ -3855,13 +3859,13 @@ void IBattle.pbEndOfRoundPhase() { if (i.isFainted()) continue; // Grassy Terrain (healing) if (@field.GrassyTerrain>0 && !i.isAirborne()) { - int hpgain=i.pbRecoverHP((int)Math.Floor(i.TotalHP/16f),true); - if (hpgain>0) pbDisplay(Game._INTL("{1}'s HP was restored.",i.ToString())); + int hpgain=i.RecoverHP((int)Math.Floor(i.TotalHP/16f),true); + if (hpgain>0) Display(Game._INTL("{1}'s HP was restored.",i.ToString())); } // Held berries/Leftovers/Black Sludge - i.pbBerryCureCheck(true); + i.BerryCureCheck(true); if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } // Aqua Ring @@ -3871,8 +3875,8 @@ void IBattle.pbEndOfRoundPhase() { GameDebug.Log($"[Lingering effect triggered] #{i.ToString()}'s Aqua Ring"); int hpgain=(int)Math.Floor(i.TotalHP/16f); if (i.hasWorkingItem(Items.BIG_ROOT)) hpgain=(int)Math.Floor(hpgain*1.3); - hpgain=i.pbRecoverHP(hpgain,true); - if (hpgain>0) pbDisplay(Game._INTL("Aqua Ring restored {1}'s HP!",i.ToString())); + hpgain=i.RecoverHP(hpgain,true); + if (hpgain>0) Display(Game._INTL("Aqua Ring restored {1}'s HP!",i.ToString())); } } // Ingrain @@ -3882,35 +3886,35 @@ void IBattle.pbEndOfRoundPhase() { GameDebug.Log($"[Lingering effect triggered] #{i.ToString()}'s Ingrain"); int hpgain=(int)Math.Floor(i.TotalHP/16f); if (i.hasWorkingItem(Items.BIG_ROOT)) hpgain=(int)Math.Floor(hpgain*1.3); - hpgain=i.pbRecoverHP(hpgain,true); - if (hpgain>0) pbDisplay(Game._INTL("{1} absorbed nutrients with its roots!",i.ToString())); + hpgain=i.RecoverHP(hpgain,true); + if (hpgain>0) Display(Game._INTL("{1} absorbed nutrients with its roots!",i.ToString())); } } // Leech Seed foreach (var i in priority) { if (i.isFainted()) continue; if (i.effects.LeechSeed>=0 && !i.hasWorkingAbility(Abilities.MAGIC_GUARD)) { - IBattler recipient=@battlers[i.effects.LeechSeed]; + IBattler recipient=_battlers[i.effects.LeechSeed]; if (recipient.IsNotNullOrNone() && !recipient.isFainted()) { GameDebug.Log($"[Lingering effect triggered] #{i.ToString()}'s Leech Seed"); - pbCommonAnimation("LeechSeed",recipient,i); - int hploss=i.pbReduceHP((int)Math.Floor(i.TotalHP/8f),true); + CommonAnimation("LeechSeed",recipient,i); + int hploss=i.ReduceHP((int)Math.Floor(i.TotalHP/8f),true); if (i.hasWorkingAbility(Abilities.LIQUID_OOZE)) { - recipient.pbReduceHP(hploss,true); - pbDisplay(Game._INTL("{1} sucked up the liquid ooze!",recipient.ToString())); + recipient.ReduceHP(hploss,true); + Display(Game._INTL("{1} sucked up the liquid ooze!",recipient.ToString())); } else { if (recipient.effects.HealBlock==0) { if (recipient.hasWorkingItem(Items.BIG_ROOT)) hploss=(int)Math.Floor(hploss*1.3); - recipient.pbRecoverHP(hploss,true); + recipient.RecoverHP(hploss,true); } - pbDisplay(Game._INTL("{1}'s health was sapped by Leech Seed!",i.ToString())); + Display(Game._INTL("{1}'s health was sapped by Leech Seed!",i.ToString())); } if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } if (recipient.isFainted()) { - if (!recipient.pbFaint()) return; + if (!recipient.Faint()) return; } } } @@ -3924,23 +3928,23 @@ void IBattle.pbEndOfRoundPhase() { i.effects.Toxic=(int)Math.Min(15,i.effects.Toxic); } if (i.hasWorkingAbility(Abilities.POISON_HEAL)) { - pbCommonAnimation("Poison",i,null); + CommonAnimation("Poison",i,null); if (i.effects.HealBlock==0 && i.HP0) { i.effects.Taunt-=1; if (i.effects.Taunt==0) { - pbDisplay(Game._INTL("{1}'s taunt wore off!",i.ToString())); + Display(Game._INTL("{1}'s taunt wore off!",i.ToString())); GameDebug.Log($"[End of effect] #{i.ToString()} is no longer taunted"); } } @@ -4065,7 +4069,7 @@ void IBattle.pbEndOfRoundPhase() { i.effects.Encore-=1; if (i.effects.Encore==0 || i.moves[i.effects.EncoreIndex].PP==0) { i.effects.Encore=0; - pbDisplay(Game._INTL("{1}'s encore ended!",i.ToString())); + Display(Game._INTL("{1}'s encore ended!",i.ToString())); GameDebug.Log($"[End of effect] #{i.ToString()} is no longer encored"); } } @@ -4078,7 +4082,7 @@ void IBattle.pbEndOfRoundPhase() { i.effects.Disable-=1; if (i.effects.Disable==0) { i.effects.DisableMove=0; - pbDisplay(Game._INTL("{1} is no longer disabled!",i.ToString())); + Display(Game._INTL("{1} is no longer disabled!",i.ToString())); GameDebug.Log($"[End of effect] #{i.ToString()} is no longer disabled"); } } @@ -4089,7 +4093,7 @@ void IBattle.pbEndOfRoundPhase() { if (i.effects.MagnetRise>0) { i.effects.MagnetRise-=1; if (i.effects.MagnetRise==0) { - pbDisplay(Game._INTL("{1} stopped levitating.",i.ToString())); + Display(Game._INTL("{1} stopped levitating.",i.ToString())); GameDebug.Log($"[End of effect] #{i.ToString()} is no longer levitating by Magnet Rise"); } } @@ -4100,7 +4104,7 @@ void IBattle.pbEndOfRoundPhase() { if (i.effects.Telekinesis>0) { i.effects.Telekinesis-=1; if (i.effects.Telekinesis==0) { - pbDisplay(Game._INTL("{1} stopped levitating.",i.ToString())); + Display(Game._INTL("{1} stopped levitating.",i.ToString())); GameDebug.Log($"[End of effect] #{i.ToString()} is no longer levitating by Telekinesis"); } } @@ -4111,7 +4115,7 @@ void IBattle.pbEndOfRoundPhase() { if (i.effects.HealBlock>0) { i.effects.HealBlock-=1; if (i.effects.HealBlock==0) { - pbDisplay(Game._INTL("{1}'s Heal Block wore off!",i.ToString())); + Display(Game._INTL("{1}'s Heal Block wore off!",i.ToString())); GameDebug.Log($"[End of effect] #{i.ToString()} is no longer Heal Blocked"); } } @@ -4122,7 +4126,7 @@ void IBattle.pbEndOfRoundPhase() { if (i.effects.Embargo>0) { i.effects.Embargo-=1; if (i.effects.Embargo==0) { - pbDisplay(Game._INTL("{1} can use items again!",i.ToString(true))); + Display(Game._INTL("{1} can use items again!",i.ToString(true))); GameDebug.Log($"[End of effect] #{i.ToString()} is no longer affected by an embargo"); } } @@ -4132,9 +4136,9 @@ void IBattle.pbEndOfRoundPhase() { if (i.isFainted()) continue; if (i.effects.Yawn>0) { i.effects.Yawn-=1; - if (i.effects.Yawn==0 && i is IBattlerClause b0 && b0.pbCanSleepYawn()) { + if (i.effects.Yawn==0 && i is IBattlerClause b0 && b0.CanSleepYawn()) { GameDebug.Log($"[Lingering effect triggered] #{i.ToString()}'s Yawn"); - if (i is IBattlerEffect b1) b1.pbSleep(); + if (i is IBattlerEffect b1) b1.Sleep(); } } } @@ -4144,26 +4148,26 @@ void IBattle.pbEndOfRoundPhase() { if (i.isFainted()) continue; if (i.effects.PerishSong>0) { i.effects.PerishSong-=1; - pbDisplay(Game._INTL("{1}'s perish count fell to {2}!",i.ToString(),i.effects.PerishSong.ToString())); + Display(Game._INTL("{1}'s perish count fell to {2}!",i.ToString(),i.effects.PerishSong.ToString())); GameDebug.Log($"[Lingering effect triggered] #{i.ToString()}'s Perish Song count dropped to #{i.effects.PerishSong}"); if (i.effects.PerishSong==0) { perishSongUsers.Add(i.effects.PerishSongUser); - i.pbReduceHP(i.HP,true); + i.ReduceHP(i.HP,true); } } if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } if (perishSongUsers.Count>0) { // If all remaining Pokemon fainted by a Perish Song triggered by a single side - if ((perishSongUsers.Count(item => pbIsOpposing(item))==perishSongUsers.Count) || - (perishSongUsers.Count(item => !pbIsOpposing(item))==perishSongUsers.Count)) { - pbJudgeCheckpoint(@battlers[(int)perishSongUsers[0]]); + if ((perishSongUsers.Count(item => IsOpposing(item))==perishSongUsers.Count) || + (perishSongUsers.Count(item => !IsOpposing(item))==perishSongUsers.Count)) { + JudgeCheckpoint(_battlers[(int)perishSongUsers[0]]); } } if (@decision>0) { - pbGainEXP(); + GainEXP(); return; } // Reflect @@ -4171,8 +4175,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].Reflect>0) { sides[i].Reflect-=1; if (sides[i].Reflect==0) { - if (i==0) pbDisplay(Game._INTL("Your team's Reflect faded!")); - if (i==1) pbDisplay(Game._INTL("The opposing team's Reflect faded!")); + if (i==0) Display(Game._INTL("Your team's Reflect faded!")); + if (i==1) Display(Game._INTL("The opposing team's Reflect faded!")); if (i==0) GameDebug.Log($"[End of effect] Reflect ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Reflect ended on the opponent's side"); } @@ -4183,8 +4187,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].LightScreen>0) { sides[i].LightScreen-=1; if (sides[i].LightScreen==0) { - if (i==0) pbDisplay(Game._INTL("Your team's Light Screen faded!")); - if (i==1) pbDisplay(Game._INTL("The opposing team's Light Screen faded!")); + if (i==0) Display(Game._INTL("Your team's Light Screen faded!")); + if (i==1) Display(Game._INTL("The opposing team's Light Screen faded!")); if (i==0) GameDebug.Log($"[End of effect] Light Screen ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Light Screen ended on the opponent's side"); } @@ -4195,8 +4199,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].Safeguard>0) { sides[i].Safeguard-=1; if (sides[i].Safeguard==0) { - if (i==0) pbDisplay(Game._INTL("Your team is no longer protected by Safeguard!")); - if (i==1) pbDisplay(Game._INTL("The opposing team is no longer protected by Safeguard!")); + if (i==0) Display(Game._INTL("Your team is no longer protected by Safeguard!")); + if (i==1) Display(Game._INTL("The opposing team is no longer protected by Safeguard!")); if (i==0) GameDebug.Log($"[End of effect] Safeguard ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Safeguard ended on the opponent's side"); } @@ -4207,8 +4211,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].Mist>0) { sides[i].Mist-=1; if (sides[i].Mist==0) { - if (i==0) pbDisplay(Game._INTL("Your team's Mist faded!")); - if (i==1) pbDisplay(Game._INTL("The opposing team's Mist faded!")); + if (i==0) Display(Game._INTL("Your team's Mist faded!")); + if (i==1) Display(Game._INTL("The opposing team's Mist faded!")); if (i==0) GameDebug.Log($"[End of effect] Mist ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Mist ended on the opponent's side"); } @@ -4219,8 +4223,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].Tailwind>0) { sides[i].Tailwind-=1; if (sides[i].Tailwind==0) { - if (i==0) pbDisplay(Game._INTL("Your team's Tailwind petered out!")); - if (i==1) pbDisplay(Game._INTL("The opposing team's Tailwind petered out!")); + if (i==0) Display(Game._INTL("Your team's Tailwind petered out!")); + if (i==1) Display(Game._INTL("The opposing team's Tailwind petered out!")); if (i==0) GameDebug.Log($"[End of effect] Tailwind ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Tailwind ended on the opponent's side"); } @@ -4231,8 +4235,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].LuckyChant>0) { sides[i].LuckyChant-=1; if (sides[i].LuckyChant==0) { - if (i==0) pbDisplay(Game._INTL("Your team's Lucky Chant faded!")); - if (i==1) pbDisplay(Game._INTL("The opposing team's Lucky Chant faded!")); + if (i==0) Display(Game._INTL("Your team's Lucky Chant faded!")); + if (i==1) Display(Game._INTL("The opposing team's Lucky Chant faded!")); if (i==0) GameDebug.Log($"[End of effect] Lucky Chant ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Lucky Chant ended on the opponent's side"); } @@ -4243,8 +4247,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].Swamp>0) { sides[i].Swamp-=1; if (sides[i].Swamp==0) { - if (i==0) pbDisplay(Game._INTL("The swamp around your team disappeared!")); - if (i==1) pbDisplay(Game._INTL("The swamp around the opposing team disappeared!")); + if (i==0) Display(Game._INTL("The swamp around your team disappeared!")); + if (i==1) Display(Game._INTL("The swamp around the opposing team disappeared!")); if (i==0) GameDebug.Log($"[End of effect] Grass Pledge's swamp ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Grass Pledge's swamp ended on the opponent's side"); } @@ -4252,8 +4256,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].SeaOfFire>0) { sides[i].SeaOfFire-=1; if (sides[i].SeaOfFire==0) { - if (i==0) pbDisplay(Game._INTL("The sea of fire around your team disappeared!")); - if (i==1) pbDisplay(Game._INTL("The sea of fire around the opposing team disappeared!")); + if (i==0) Display(Game._INTL("The sea of fire around your team disappeared!")); + if (i==1) Display(Game._INTL("The sea of fire around the opposing team disappeared!")); if (i==0) GameDebug.Log($"[End of effect] Fire Pledge's sea of fire ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Fire Pledge's sea of fire ended on the opponent's side"); } @@ -4261,8 +4265,8 @@ void IBattle.pbEndOfRoundPhase() { if (sides[i].Rainbow>0) { sides[i].Rainbow-=1; if (sides[i].Rainbow==0) { - if (i==0) pbDisplay(Game._INTL("The rainbow around your team disappeared!")); - if (i==1) pbDisplay(Game._INTL("The rainbow around the opposing team disappeared!")); + if (i==0) Display(Game._INTL("The rainbow around your team disappeared!")); + if (i==1) Display(Game._INTL("The rainbow around the opposing team disappeared!")); if (i==0) GameDebug.Log($"[End of effect] Water Pledge's rainbow ended on the player's side"); if (i==1) GameDebug.Log($"[End of effect] Water Pledge's rainbow ended on the opponent's side"); } @@ -4272,7 +4276,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.Gravity>0) { @field.Gravity-=1; if (@field.Gravity==0) { - pbDisplay(Game._INTL("Gravity returned to normal.")); + Display(Game._INTL("Gravity returned to normal.")); GameDebug.Log($"[End of effect] Strong gravity ended"); } } @@ -4280,7 +4284,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.TrickRoom>0) { @field.TrickRoom-=1; if (@field.TrickRoom==0) { - pbDisplay(Game._INTL("The twisted dimensions returned to normal.")); + Display(Game._INTL("The twisted dimensions returned to normal.")); GameDebug.Log($"[End of effect] Trick Room ended"); } } @@ -4288,7 +4292,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.WonderRoom>0) { @field.WonderRoom-=1; if (@field.WonderRoom==0) { - pbDisplay(Game._INTL("Wonder Room wore off, and the Defense and Sp. public void stats returned to normal!")); + Display(Game._INTL("Wonder Room wore off, and the Defense and Sp. public void stats returned to normal!")); GameDebug.Log($"[End of effect] Wonder Room ended"); } } @@ -4296,7 +4300,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.MagicRoom>0) { @field.MagicRoom-=1; if (@field.MagicRoom==0) { - pbDisplay(Game._INTL("The area returned to normal.")); + Display(Game._INTL("The area returned to normal.")); GameDebug.Log($"[End of effect] Magic Room ended"); } } @@ -4304,7 +4308,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.MudSportField>0) { @field.MudSportField-=1; if (@field.MudSportField==0) { - pbDisplay(Game._INTL("The effects of Mud Sport have faded.")); + Display(Game._INTL("The effects of Mud Sport have faded.")); GameDebug.Log($"[End of effect] Mud Sport ended"); } } @@ -4312,7 +4316,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.WaterSportField>0) { @field.WaterSportField-=1; if (@field.WaterSportField==0) { - pbDisplay(Game._INTL("The effects of Water Sport have faded.")); + Display(Game._INTL("The effects of Water Sport have faded.")); GameDebug.Log($"[End of effect] Water Sport ended"); } } @@ -4320,7 +4324,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.ElectricTerrain>0) { @field.ElectricTerrain-=1; if (@field.ElectricTerrain==0) { - pbDisplay(Game._INTL("The electric current disappeared from the battlefield.")); + Display(Game._INTL("The electric current disappeared from the battlefield.")); GameDebug.Log($"[End of effect] Electric Terrain ended"); } } @@ -4328,7 +4332,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.GrassyTerrain>0) { @field.GrassyTerrain-=1; if (@field.GrassyTerrain==0) { - pbDisplay(Game._INTL("The grass disappeared from the battlefield.")); + Display(Game._INTL("The grass disappeared from the battlefield.")); GameDebug.Log($"[End of effect] Grassy Terrain ended"); } } @@ -4336,7 +4340,7 @@ void IBattle.pbEndOfRoundPhase() { if (@field.MistyTerrain>0) { @field.MistyTerrain-=1; if (@field.MistyTerrain==0) { - pbDisplay(Game._INTL("The mist disappeared from the battlefield.")); + Display(Game._INTL("The mist disappeared from the battlefield.")); GameDebug.Log($"[End of effect] Misty Terrain ended"); } } @@ -4347,17 +4351,17 @@ void IBattle.pbEndOfRoundPhase() { foreach (var j in priority) { if (!j.isFainted() && j.Status==Status.SLEEP && !j.hasWorkingAbility(Abilities.SOUNDPROOF)) { GameDebug.Log($"[Lingering effect triggered] Uproar woke up #{j.ToString(true)}"); - if (j is IBattlerEffect b) b.pbCureStatus(false); - pbDisplay(Game._INTL("{1} woke up in the uproar!",j.ToString())); + if (j is IBattlerEffect b) b.CureStatus(false); + Display(Game._INTL("{1} woke up in the uproar!",j.ToString())); } } i.effects.Uproar-=1; if (i.effects.Uproar==0) { - pbDisplay(Game._INTL("{1} calmed down.",i.ToString())); + Display(Game._INTL("{1} calmed down.",i.ToString())); GameDebug.Log($"[End of effect] #{i.ToString()} is no longer uproaring"); } else { - pbDisplay(Game._INTL("{1} is making an uproar!",i.ToString())); + Display(Game._INTL("{1} is making an uproar!",i.ToString())); } } } @@ -4366,21 +4370,21 @@ void IBattle.pbEndOfRoundPhase() { // Speed Boost // A Pokémon's turncount is 0 if it became active after the beginning of a round if (i.turncount>0 && i.hasWorkingAbility(Abilities.SPEED_BOOST)) { - if (i is IBattlerEffect b && b.pbIncreaseStatWithCause(Stats.SPEED,1,i,Game._INTL(i.Ability.ToString(TextScripts.Name)))) { + if (i is IBattlerEffect b && b.IncreaseStatWithCause(Stats.SPEED,1,i,Game._INTL(i.Ability.ToString(TextScripts.Name)))) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s #{Game._INTL(i.Ability.ToString(TextScripts.Name))}"); } } // Bad Dreams if (i.Status==Status.SLEEP && !i.hasWorkingAbility(Abilities.MAGIC_GUARD)) { - if (i.pbOpposing1.hasWorkingAbility(Abilities.BAD_DREAMS) || - i.pbOpposing2.hasWorkingAbility(Abilities.BAD_DREAMS)) { + if (i.Opposing1.hasWorkingAbility(Abilities.BAD_DREAMS) || + i.Opposing2.hasWorkingAbility(Abilities.BAD_DREAMS)) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s opponent's Bad Dreams"); - int hploss=i.pbReduceHP((int)Math.Floor(i.TotalHP/8f),true); - if (hploss>0) pbDisplay(Game._INTL("{1} is having a bad dream!",i.ToString())); + int hploss=i.ReduceHP((int)Math.Floor(i.TotalHP/8f),true); + if (hploss>0) Display(Game._INTL("{1} is having a bad dream!",i.ToString())); } } if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; continue; } // Pickup @@ -4388,37 +4392,37 @@ void IBattle.pbEndOfRoundPhase() { Items item=0; int index=-1; int use=0; for (int j = 0; j < battlers.Length; j++) { if (j==i.Index) continue; - if (@battlers[j].effects.PickupUse>use) { - item=@battlers[j].effects.PickupItem; + if (_battlers[j].effects.PickupUse>use) { + item=_battlers[j].effects.PickupItem; index=j; - use=@battlers[j].effects.PickupUse; + use=_battlers[j].effects.PickupUse; } } if (item>0) { i.Item=item; - @battlers[index].effects.PickupItem=0; - @battlers[index].effects.PickupUse=0; - if (@battlers[index].pokemon.itemRecycle==item) @battlers[index].pokemon.itemRecycle=0; + _battlers[index].effects.PickupItem=0; + _battlers[index].effects.PickupUse=0; + if (_battlers[index].pokemon.itemRecycle==item) _battlers[index].pokemon.itemRecycle=0; if (@opponent.Length == 0 && // In a wild battle i.pokemon.itemInitial==0 && - @battlers[index].pokemon.itemInitial==item) { + _battlers[index].pokemon.itemInitial==item) { i.pokemon.itemInitial=item; - @battlers[index].pokemon.itemInitial=0; + _battlers[index].pokemon.itemInitial=0; } - pbDisplay(Game._INTL("{1} found one {2}!",i.ToString(),Game._INTL(item.ToString(TextScripts.Name)))); - i.pbBerryCureCheck(true); + Display(Game._INTL("{1} found one {2}!",i.ToString(),Game._INTL(item.ToString(TextScripts.Name)))); + i.BerryCureCheck(true); } } // Harvest if (i.hasWorkingAbility(Abilities.HARVEST) && i.Item<=0 && i.pokemon.itemRecycle>0) { - if (Kernal.ItemData[i.pokemon.itemRecycle].IsBerry && //pbIsBerry(i.itemRecycle) - (pbWeather==Weather.SUNNYDAY || - pbWeather==Weather.HARSHSUN || pbRandom(10)<5)) { + if (ItemData.IsBerry(i.pokemon.itemRecycle) && //IsBerry(i.itemRecycle) + (Weather==Weather.SUNNYDAY || + Weather==Weather.HARSHSUN || Random(10)<5)) { i.Item=i.pokemon.itemRecycle; i.pokemon.itemRecycle=0; if (i.pokemon.itemInitial==0) i.pokemon.itemInitial=i.Item; - pbDisplay(Game._INTL("{1} harvested one {2}!",i.ToString(),Game._INTL(i.Item.ToString(TextScripts.Name)))); - i.pbBerryCureCheck(true); + Display(Game._INTL("{1} harvested one {2}!",i.ToString(),Game._INTL(i.Item.ToString(TextScripts.Name)))); + i.BerryCureCheck(true); } } // Moody @@ -4426,13 +4430,13 @@ void IBattle.pbEndOfRoundPhase() { List randomup=new List(); List randomdown=new List(); foreach (var j in new Stats[] { Stats.ATTACK,Stats.DEFENSE,Stats.SPEED,Stats.SPATK, Stats.SPDEF,Stats.ACCURACY,Stats.EVASION }) { - if (i is IBattlerEffect b0 && b0.pbCanIncreaseStatStage(j,i)) randomup.Add(j); - if (i is IBattlerEffect b1 && b1.pbCanReduceStatStage(j,i)) randomdown.Add(j); + if (i is IBattlerEffect b0 && b0.CanIncreaseStatStage(j,i)) randomup.Add(j); + if (i is IBattlerEffect b1 && b1.CanReduceStatStage(j,i)) randomdown.Add(j); } if (randomup.Count>0) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s Moody (raise stat)"); - int r=pbRandom(randomup.Count); - if (i is IBattlerEffect b) b.pbIncreaseStatWithCause(randomup[r],2,i,Game._INTL(i.Ability.ToString(TextScripts.Name))); + int r=Random(randomup.Count); + if (i is IBattlerEffect b) b.IncreaseStatWithCause(randomup[r],2,i,Game._INTL(i.Ability.ToString(TextScripts.Name))); for (int j = 0; j < randomdown.Count; j++) { if (randomdown[j]==randomup[r]) { //randomdown[j]=null; randomdown.compact!; @@ -4443,70 +4447,70 @@ void IBattle.pbEndOfRoundPhase() { } if (randomdown.Count>0) { GameDebug.Log($"[Ability triggered] #{i.ToString()}'s Moody (lower stat)"); - int r=pbRandom(randomdown.Count); - if (i is IBattlerEffect b) b.pbReduceStatWithCause(randomdown[r],1,i,Game._INTL(i.Ability.ToString(TextScripts.Name))); + int r=Random(randomdown.Count); + if (i is IBattlerEffect b) b.ReduceStatWithCause(randomdown[r],1,i,Game._INTL(i.Ability.ToString(TextScripts.Name))); } } } foreach (var i in priority) { if (i.isFainted()) continue; // Toxic Orb - if (i.hasWorkingItem(Items.TOXIC_ORB) && i.Status==0 && i is IBattlerEffect b0 && b0.pbCanPoison(null,false)) { + if (i.hasWorkingItem(Items.TOXIC_ORB) && i.Status==0 && i is IBattlerEffect b0 && b0.CanPoison(null,false)) { GameDebug.Log($"[Item triggered] #{i.ToString()}'s Toxic Orb"); - b0.pbPoison(null,Game._INTL("{1} was badly poisoned by its {2}!",i.ToString(), + b0.Poison(null,Game._INTL("{1} was badly poisoned by its {2}!",i.ToString(), Game._INTL(i.Item.ToString(TextScripts.Name))),true); } // Flame Orb - if (i.hasWorkingItem(Items.FLAME_ORB) && i.Status==0 && i is IBattlerEffect b1 && b1.pbCanBurn(null,false)) { + if (i.hasWorkingItem(Items.FLAME_ORB) && i.Status==0 && i is IBattlerEffect b1 && b1.CanBurn(null,false)) { GameDebug.Log($"[Item triggered] #{i.ToString()}'s Flame Orb"); - b1.pbBurn(null,Game._INTL("{1} was burned by its {2}!",i.ToString(),Game._INTL(i.Item.ToString(TextScripts.Name)))); + b1.Burn(null,Game._INTL("{1} was burned by its {2}!",i.ToString(),Game._INTL(i.Item.ToString(TextScripts.Name)))); } // Sticky Barb if (i.hasWorkingItem(Items.STICKY_BARB) && !i.hasWorkingAbility(Abilities.MAGIC_GUARD)) { GameDebug.Log($"[Item triggered] #{i.ToString()}'s Sticky Barb"); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbDamageAnimation(i,0); - i.pbReduceHP((int)Math.Floor(i.TotalHP/8f)); - pbDisplay(Game._INTL("{1} is hurt by its {2}!",i.ToString(),Game._INTL(i.Item.ToString(TextScripts.Name)))); + (@scene as IPokeBattle_DebugSceneNoGraphics).DamageAnimation(i,0); + i.ReduceHP((int)Math.Floor(i.TotalHP/8f)); + Display(Game._INTL("{1} is hurt by its {2}!",i.ToString(),Game._INTL(i.Item.ToString(TextScripts.Name)))); } if (i.isFainted()) { - if (!i.pbFaint()) return; + if (!i.Faint()) return; } } // Form checks for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].isFainted()) continue; - @battlers[i].pbCheckForm(); + if (_battlers[i].isFainted()) continue; + _battlers[i].CheckForm(); } - pbGainEXP(); - pbSwitch(); + GainEXP(); + Switch(); if (@decision>0) return; foreach (var i in priority) { if (i.isFainted()) continue; - i.pbAbilitiesOnSwitchIn(false); + i.AbilitiesOnSwitchIn(false); } // Healing Wish/Lunar Dance - should go here // Spikes/Toxic Spikes/Stealth Rock - should go here (in order of their 1st use) for (int i = 0; i < battlers.Length; i++) { - if (@battlers[i].turncount>0 && @battlers[i].hasWorkingAbility(Abilities.TRUANT)) { - @battlers[i].effects.Truant=!@battlers[i].effects.Truant; - } - if (@battlers[i].effects.LockOn>0) { // Also Mind Reader - @battlers[i].effects.LockOn-=1; - if (@battlers[i].effects.LockOn==0) @battlers[i].effects.LockOnPos=-1; - } - @battlers[i].effects.Flinch=false; - @battlers[i].effects.FollowMe=0; - @battlers[i].effects.HelpingHand=false; - @battlers[i].effects.MagicCoat=false; - @battlers[i].effects.Snatch=false; - if (@battlers[i].effects.Charge>0) @battlers[i].effects.Charge-=1; - @battlers[i].lastHPLost=0; - @battlers[i].tookDamage=false; - @battlers[i].lastAttacker.Clear(); - @battlers[i].effects.Counter=-1; - @battlers[i].effects.CounterTarget=-1; - @battlers[i].effects.MirrorCoat=-1; - @battlers[i].effects.MirrorCoatTarget=-1; + if (_battlers[i].turncount>0 && _battlers[i].hasWorkingAbility(Abilities.TRUANT)) { + _battlers[i].effects.Truant=!_battlers[i].effects.Truant; + } + if (_battlers[i].effects.LockOn>0) { // Also Mind Reader + _battlers[i].effects.LockOn-=1; + if (_battlers[i].effects.LockOn==0) _battlers[i].effects.LockOnPos=-1; + } + _battlers[i].effects.Flinch=false; + _battlers[i].effects.FollowMe=0; + _battlers[i].effects.HelpingHand=false; + _battlers[i].effects.MagicCoat=false; + _battlers[i].effects.Snatch=false; + if (_battlers[i].effects.Charge>0) _battlers[i].effects.Charge-=1; + _battlers[i].lastHPLost=0; + _battlers[i].tookDamage=false; + _battlers[i].lastAttacker.Clear(); + _battlers[i].effects.Counter=-1; + _battlers[i].effects.CounterTarget=-1; + _battlers[i].effects.MirrorCoat=-1; + _battlers[i].effects.MirrorCoatTarget=-1; } for (int i = 0; i < sides.Length; i++) { if (!@sides[i].EchoedVoiceUsed) { @@ -4528,32 +4532,32 @@ void IBattle.pbEndOfRoundPhase() { #endregion #region End of battle. - public BattleResults pbEndOfBattle(bool canlose=false) { + public BattleResults EndOfBattle(bool canlose=false) { //switch (@decision) { //#### WIN ####// if (@decision == BattleResults.WON) { //case BattleResults.WON: GameDebug.Log($""); GameDebug.Log($"***Player won***"); if (@opponent.Length > 0) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbTrainerBattleSuccess(); + (@scene as IPokeBattle_DebugSceneNoGraphics).TrainerBattleSuccess(); if (@opponent.Length > 0) { - pbDisplayPaused(Game._INTL("{1} defeated {2} and {3}!",this.pbPlayer().name,@opponent[0].name,@opponent[1].name)); + DisplayPaused(Game._INTL("{1} defeated {2} and {3}!",this.Player().name,@opponent[0].name,@opponent[1].name)); } else { - pbDisplayPaused(Game._INTL("{1} defeated\r\n{2}!",this.pbPlayer().name,@opponent[0].name)); + DisplayPaused(Game._INTL("{1} defeated\r\n{2}!",this.Player().name,@opponent[0].name)); } - (@scene as IPokeBattle_DebugSceneNoGraphics).pbShowOpponent(0); - pbDisplayPaused(@endspeech.Replace("/\\[Pp][Nn]/",this.pbPlayer().name)); + (@scene as IPokeBattle_DebugSceneNoGraphics).ShowOpponent(0); + DisplayPaused(@endspeech.Replace("/\\[Pp][Nn]/",this.Player().name)); if (@opponent.Length > 0) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbHideOpponent(); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbShowOpponent(1); - pbDisplayPaused(@endspeech2.Replace("/\\[Pp][Nn]/",this.pbPlayer().name)); + (@scene as IPokeBattle_DebugSceneNoGraphics).HideOpponent(); + (@scene as IPokeBattle_DebugSceneNoGraphics).ShowOpponent(1); + DisplayPaused(@endspeech2.Replace("/\\[Pp][Nn]/",this.Player().name)); } // Calculate money gained for winning if (@internalbattle) { int tmoney=0; if (@opponent.Length > 1) { // Double battles - int maxlevel1=0; int maxlevel2=0; int limit=pbSecondPartyBegin(1); + int maxlevel1=0; int maxlevel2=0; int limit=SecondPartyBegin(1); for (int i = 0; i < limit; i++) { if (@party2[i].IsNotNullOrNone()) { if (maxlevel1<@party2[i].Level) maxlevel1=@party2[i].Level; @@ -4577,31 +4581,31 @@ public BattleResults pbEndOfBattle(bool canlose=false) { if (@amuletcoin) tmoney*=2; // If Happy Hour's effect applies, double money earned if (@doublemoney) tmoney*=2; - int oldmoney=this.pbPlayer().Money; - this.pbPlayer().Money+=tmoney; - int moneygained=this.pbPlayer().Money-oldmoney; + int oldmoney=this.Player().Money; + this.Player().Money+=tmoney; + int moneygained=this.Player().Money-oldmoney; if (moneygained>0) { - pbDisplayPaused(Game._INTL("{1} got ${2}\r\nfor winning!",this.pbPlayer().name,tmoney.ToString())); + DisplayPaused(Game._INTL("{1} got ${2}\r\nfor winning!",this.Player().name,tmoney.ToString())); } } } if (@internalbattle && @extramoney>0) { if (@amuletcoin) @extramoney*=2; if (@doublemoney) @extramoney*=2; - int oldmoney=this.pbPlayer().Money; - this.pbPlayer().Money+=@extramoney; - int moneygained=this.pbPlayer().Money-oldmoney; + int oldmoney=this.Player().Money; + this.Player().Money+=@extramoney; + int moneygained=this.Player().Money-oldmoney; if (moneygained>0) { - pbDisplayPaused(Game._INTL("{1} picked up ${2}!",this.pbPlayer().name,@extramoney.ToString())); + DisplayPaused(Game._INTL("{1} picked up ${2}!",this.Player().name,@extramoney.ToString())); } } foreach (var p in @snaggedpokemon) { IPokemon pkmn = this.party2[p]; - pbStorePokemon(pkmn); - //if (this.pbPlayer().shadowcaught == null) this.pbPlayer().shadowcaught=new Dictionary(); - if (this.pbPlayer().shadowcaught == null) this.pbPlayer().shadowcaught=new List(); - //this.pbPlayer().shadowcaught[pkmn.Species]=true; - if (!this.pbPlayer().shadowcaught.Contains(pkmn.Species)) this.pbPlayer().shadowcaught.Add(pkmn.Species); + StorePokemon(pkmn); + //if (this.Player().shadowcaught == null) this.Player().shadowcaught=new Dictionary(); + if (this.Player().shadowcaught == null) this.Player().shadowcaught=new List(); + //this.Player().shadowcaught[pkmn.Species]=true; + if (!this.Player().shadowcaught.Contains(pkmn.Species)) this.Player().shadowcaught.Add(pkmn.Species); } @snaggedpokemon.Clear(); //break; @@ -4612,42 +4616,42 @@ public BattleResults pbEndOfBattle(bool canlose=false) { if (@decision==BattleResults.LOST) GameDebug.Log($"***Player lost***"); if (@decision==BattleResults.DRAW) GameDebug.Log($"***Player drew with opponent***"); if (@internalbattle) { - pbDisplayPaused(Game._INTL("{1} is out of usable Pokémon!",this.pbPlayer().name)); - int moneylost=pbMaxLevelFromIndex(0); // Player's Pokémon only, not partner's + DisplayPaused(Game._INTL("{1} is out of usable Pokémon!",this.Player().name)); + int moneylost=MaxLevelFromIndex(0); // Player's Pokémon only, not partner's int[] multiplier=new int[] { 8, 16, 24, 36, 48, 60, 80, 100, 120 }; - moneylost*=multiplier[(int)Math.Min(multiplier.Length-1,this.pbPlayer().badges.Length)]; - if (moneylost>this.pbPlayer().Money) moneylost=this.pbPlayer().Money; + moneylost*=multiplier[(int)Math.Min(multiplier.Length-1,this.Player().badges.Length)]; + if (moneylost>this.Player().Money) moneylost=this.Player().Money; if (Core.NO_MONEY_LOSS) moneylost=0; - int oldmoney=this.pbPlayer().Money; - this.pbPlayer().Money-=moneylost; - int lostmoney=oldmoney-this.pbPlayer().Money; + int oldmoney=this.Player().Money; + this.Player().Money-=moneylost; + int lostmoney=oldmoney-this.Player().Money; if (@opponent.Length > 0) { if (@opponent.Length > 0) { - pbDisplayPaused(Game._INTL("{1} lost against {2} and {3}!",this.pbPlayer().name,@opponent[0].name,@opponent[1].name)); + DisplayPaused(Game._INTL("{1} lost against {2} and {3}!",this.Player().name,@opponent[0].name,@opponent[1].name)); } else { - pbDisplayPaused(Game._INTL("{1} lost against\r\n{2}!",this.pbPlayer().name,@opponent[0].name)); + DisplayPaused(Game._INTL("{1} lost against\r\n{2}!",this.Player().name,@opponent[0].name)); } if (moneylost>0) { - pbDisplayPaused(Game._INTL("{1} paid ${2}\r\nas the prize money...",this.pbPlayer().name,lostmoney.ToString())); - if (!canlose) pbDisplayPaused(Game._INTL("...")); + DisplayPaused(Game._INTL("{1} paid ${2}\r\nas the prize money...",this.Player().name,lostmoney.ToString())); + if (!canlose) DisplayPaused(Game._INTL("...")); } } else { if (moneylost>0) { - pbDisplayPaused(Game._INTL("{1} panicked and lost\r\n${2}...",this.pbPlayer().name,lostmoney.ToString())); - if (!canlose) pbDisplayPaused(Game._INTL("...")); + DisplayPaused(Game._INTL("{1} panicked and lost\r\n${2}...",this.Player().name,lostmoney.ToString())); + if (!canlose) DisplayPaused(Game._INTL("...")); } } - if (!canlose) pbDisplayPaused(Game._INTL("{1} blacked out!",this.pbPlayer().name)); + if (!canlose) DisplayPaused(Game._INTL("{1} blacked out!",this.Player().name)); } else if (@decision==BattleResults.LOST) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbShowOpponent(0); - pbDisplayPaused(@endspeechwin.Replace("/\\[Pp][Nn]/",this.pbPlayer().name)); + (@scene as IPokeBattle_DebugSceneNoGraphics).ShowOpponent(0); + DisplayPaused(@endspeechwin.Replace("/\\[Pp][Nn]/",this.Player().name)); if (@opponent.Length > 0) { - (@scene as IPokeBattle_DebugSceneNoGraphics).pbHideOpponent(); - (@scene as IPokeBattle_DebugSceneNoGraphics).pbShowOpponent(1); - pbDisplayPaused(@endspeechwin2.Replace("/\\[Pp][Nn]/",this.pbPlayer().name)); + (@scene as IPokeBattle_DebugSceneNoGraphics).HideOpponent(); + (@scene as IPokeBattle_DebugSceneNoGraphics).ShowOpponent(1); + DisplayPaused(@endspeechwin2.Replace("/\\[Pp][Nn]/",this.Player().name)); } } //break; @@ -4663,16 +4667,16 @@ public BattleResults pbEndOfBattle(bool canlose=false) { foreach (var i in infected) { int strain=(Game.GameData.Trainer.party[i] as Monster.Pokemon).PokerusStrain;//.pokerus/16; if (i>0 && !Game.GameData.Trainer.party[i-1].PokerusStage.HasValue) { //Game.GameData.Trainer.party[i-1].PokerusStage==0 - if (pbRandom(3)==0) Game.GameData.Trainer.party[i-1].GivePokerus(strain); + if (Random(3)==0) Game.GameData.Trainer.party[i-1].GivePokerus(strain); } if (i0) return; } else { if (@decision==BattleResults.DRAW) return; } - pbJudge(); + Judge(); if (@decision>0) return; List switched=new List(); - if (@battlers[0].isFainted() && @partyindexes[0]+10) { - IBattler[] priority=pbPriority(); + IBattler[] priority=Priority(); foreach (var i in priority) { - if (switched.Contains(i.Index)) i.pbAbilitiesOnSwitchIn(true); + if (switched.Contains(i.Index)) i.AbilitiesOnSwitchIn(true); } } } - public override void pbOnActiveAll() { + public override void OnActiveAll() { @battlerschanged=true; @mind[0]=0; @mind[1]=0; @@ -106,10 +106,10 @@ public override void pbOnActiveAll() { @starthp[0]=battlers[0].HP; @starthp[1]=battlers[1].HP; @count=0; - base.pbOnActiveAll(); //return + base.OnActiveAll(); //return } - public override bool pbOnActiveOne(IBattler pkmn, bool onlyabilities = false, bool moldbreaker = false) { + public override bool OnActiveOne(IBattler pkmn, bool onlyabilities = false, bool moldbreaker = false) { @battlerschanged=true; @mind[0]=0; @mind[1]=0; @@ -118,10 +118,10 @@ public override bool pbOnActiveOne(IBattler pkmn, bool onlyabilities = false, bo @starthp[0]=battlers[0].HP; @starthp[1]=battlers[1].HP; @count=0; - return base.pbOnActiveOne(pkmn, onlyabilities, moldbreaker); + return base.OnActiveOne(pkmn, onlyabilities, moldbreaker); } - public int pbMindScore(IBattleMove move) { + public int MindScore(IBattleMove move) { if (move.Effect==Attack.Data.Effects.x070 || // Detect/Protect move.Effect==Attack.Data.Effects.x075 || // Endure move.Effect==Attack.Data.Effects.x09F) { // Fake Out @@ -140,25 +140,25 @@ public int pbMindScore(IBattleMove move) { } } - public override void pbCommandPhase() { + public override void CommandPhase() { if (@battlerschanged) { - ((IPokeBattleArena_Scene)@scene).pbBattleArenaBattlers(@battlers[0],@battlers[1]); + ((IPokeBattleArena_Scene)@scene).BattleArenaBattlers(@battlers[0],@battlers[1]); @battlerschanged=false; @count=0; } - base.pbCommandPhase(); + base.CommandPhase(); if (@decision!=0) return; // Update mind rating (asserting that a move was chosen) // TODO: Actually done at Pokémon's turn for (int i = 0; i < 2; i++) { if (@choices[i].Move.IsNotNullOrNone() && @choices[i].Action==ChoiceAction.UseMove) {//[0]==1 - @mind[i]+=pbMindScore(@choices[i].Move); + @mind[i]+=MindScore(@choices[i].Move); } } } - public override void pbEndOfRoundPhase() { - base.pbEndOfRoundPhase(); + public override void EndOfRoundPhase() { + base.EndOfRoundPhase(); if (@decision!=0) return; @count+=1; // Update skill rating @@ -168,8 +168,8 @@ public override void pbEndOfRoundPhase() { GameDebug.Log($"[Mind: #{@mind.ToString()}, Skill: #{@skill.ToString()}]"); if (@count==3) { int[] points=new int[] { 0, 0 }; - @battlers[0].pbCancelMoves(); - @battlers[1].pbCancelMoves(); + @battlers[0].CancelMoves(); + @battlers[1].CancelMoves(); int[] ratings1=new int[] {0,0,0}; int[] ratings2=new int[] {0,0,0}; if (@mind[0]==@mind[1]) { @@ -202,158 +202,158 @@ public override void pbEndOfRoundPhase() { else { ratings2[2]=2; } - ((IPokeBattleArena_Scene)@scene).pbBattleArenaJudgment(@battlers[0],@battlers[1],ratings1,ratings2); + ((IPokeBattleArena_Scene)@scene).BattleArenaJudgment(@battlers[0],@battlers[1],(int[])ratings1.Clone(),(int[])ratings2.Clone()); points=new int[] { 0, 0 }; for (int i = 0; i < 3; i++) { points[0]+=ratings1[i]; points[1]+=ratings2[i]; } if (points[0]==points[1]) { - pbDisplay(Game._INTL("{1} tied the opponent\n{2} in a referee's decision!", + Display(Game._INTL("{1} tied the opponent\n{2} in a referee's decision!", @battlers[0].Name,@battlers[1].Name)) ; @battlers[0].HP=0; // Note: Pokemon doesn't really lose HP, but the effect is mostly the same - @battlers[0].pbFaint(false); + @battlers[0].Faint(false); @battlers[1].HP=0 ; - @battlers[1].pbFaint(false); + @battlers[1].Faint(false); } else if (points[0]>points[1]) { - pbDisplay(Game._INTL("{1} defeated the opponent\n{2} in a referee's decision!", + Display(Game._INTL("{1} defeated the opponent\n{2} in a referee's decision!", @battlers[0].Name,@battlers[1].Name)); @battlers[1].HP=0 ; - @battlers[1].pbFaint(false); + @battlers[1].Faint(false); } else { - pbDisplay(Game._INTL("{1} lost to the opponent\n{2} in a referee's decision!", + Display(Game._INTL("{1} lost to the opponent\n{2} in a referee's decision!", @battlers[0].Name,@battlers[1].Name)); @battlers[0].HP=0 ; - @battlers[0].pbFaint(false); + @battlers[0].Faint(false); } - pbGainEXP(); - pbSwitch(); + GainEXP(); + Switch(); } } } /*public partial class PokeBattle_Scene : IPokeBattleArena_Scene { public void updateJudgment(window,int phase,IBattler battler1,IBattler battler2,int[] ratings1,int[] ratings2) { - int total1=0; - int total2=0; - for (int i = 0; i < phase; i++) { - total1+=ratings1[i]; - total2+=ratings2[i]; - } - window.contents.clear(); - pbSetSystemFont(window.contents); - textpos=new { - //[battler1.Name,64,0,2,new Color(248,0,0),new Color(208,208,200)], - //[Game._INTL("VS"),144,0,2,new Color(72,72,72),new Color(208,208,200)], - //[battler2.Name,224,0,2,new Color(72,72,72),new Color(208,208,200)], - //[Game._INTL("Mind"),144,48,2,new Color(72,72,72),new Color(208,208,200)], - //[Game._INTL("Skill"),144,80,2,new Color(72,72,72),new Color(208,208,200)], - //[Game._INTL("Body"),144,112,2,new Color(72,72,72),new Color(208,208,200)], - //[string.Format("{0}",total1),64,160,2,new Color(72,72,72),new Color(208,208,200)], - //[Game._INTL("Judgment"),144,160,2,new Color(72,72,72),new Color(208,208,200)], - //[string.Format("{0}",total2),224,160,2,new Color(72,72,72),new Color(208,208,200)] - }; - pbDrawTextPositions(window.contents,textpos); - List<> images=new List<>(); - for (int i = 0; i < phase; i++) { - float y=[48,80,112][i]; - float x=(ratings1[i]==ratings2[i]) ? 64 : ((ratings1[i]>ratings2[i]) ? 0 : 32); - images.Add(new { "Graphics/Pictures/judgment", 64 - 16, y, x, 0, 32, 32 }); - x=(ratings1[i]==ratings2[i]) ? 64 : ((ratings1[i]total2) { - Game.pbMessageDisplay(msgwindow, - Game._INTL("REFEREE: Judgment: {1} to {2}!\nThe winner is {3}'s {4}!\\wtnp[40]", - total1,total2,@battle.pbGetOwner(battler1.index).Name,battler1.Name)); { - pbUpdate(); dimmingvp.update(); infowindow.update(); } + for (int i = 0; i < phase; i++) { + total1+=ratings1[i]; + total2+=ratings2[i]; } - else { - Game.pbMessageDisplay(msgwindow, - Game._INTL("REFEREE: Judgment: {1} to {2}!\nThe winner is {3}!\\wtnp[40]", - total1,total2,battler2.Name)); { - pbUpdate(); dimmingvp.update(); infowindow.update(); } - } - infowindow.visible=false; - msgwindow.visible=false; - for (int i = 0; i < 10; i++) { - pbGraphicsUpdate(); - pbInputUpdate(); - msgwindow.update(); - dimmingvp.update(); - dimmingvp.color=new Color(0,0,0,(10-i)*128/10); + window.contents.clear(); + SetSystemFont(window.contents); + textpos=new { + //[battler1.Name,64,0,2,new Color(248,0,0),new Color(208,208,200)], + //[Game._INTL("VS"),144,0,2,new Color(72,72,72),new Color(208,208,200)], + //[battler2.Name,224,0,2,new Color(72,72,72),new Color(208,208,200)], + //[Game._INTL("Mind"),144,48,2,new Color(72,72,72),new Color(208,208,200)], + //[Game._INTL("Skill"),144,80,2,new Color(72,72,72),new Color(208,208,200)], + //[Game._INTL("Body"),144,112,2,new Color(72,72,72),new Color(208,208,200)], + //[string.Format("{0}",total1),64,160,2,new Color(72,72,72),new Color(208,208,200)], + //[Game._INTL("Judgment"),144,160,2,new Color(72,72,72),new Color(208,208,200)], + //[string.Format("{0}",total2),224,160,2,new Color(72,72,72),new Color(208,208,200)] + }; + DrawTextPositions(window.contents,textpos); + List<> images=new List<>(); + for (int i = 0; i < phase; i++) { + float y=[48,80,112][i]; + float x=(ratings1[i]==ratings2[i]) ? 64 : ((ratings1[i]>ratings2[i]) ? 0 : 32); + images.Add(new { "Graphics/Pictures/judgment", 64 - 16, y, x, 0, 32, 32 }); + x=(ratings1[i]==ratings2[i]) ? 64 : ((ratings1[i]total2) { + Game.MessageDisplay(msgwindow, + Game._INTL("REFEREE: Judgment: {1} to {2}!\nThe winner is {3}'s {4}!\\wtnp[40]", + total1,total2,@battle.GetOwner(battler1.index).Name,battler1.Name)); { + Update(); dimmingvp.update(); infowindow.update(); } + } + else { + Game.MessageDisplay(msgwindow, + Game._INTL("REFEREE: Judgment: {1} to {2}!\nThe winner is {3}!\\wtnp[40]", + total1,total2,battler2.Name)); { + Update(); dimmingvp.update(); infowindow.update(); } + } + infowindow.visible=false; + msgwindow.visible=false; + for (int i = 0; i < 10; i++) { + GraphicsUpdate(); + InputUpdate(); + msgwindow.update(); + dimmingvp.update(); + dimmingvp.color=new Color(0,0,0,(10-i)*128/10); + } + } finally { //ensure; + Game.DisposeMessageWindow(msgwindow); + dimmingvp.dispose(); + infowindow.contents.dispose(); + infowindow.dispose(); + } } }*/ } \ No newline at end of file diff --git a/PokemonUnity.Application/Combat/Match/BattlePalace.cs b/PokemonUnity.Application/Combat/Match/BattlePalace.cs index 4c8aabd66..000766fb9 100644 --- a/PokemonUnity.Application/Combat/Match/BattlePalace.cs +++ b/PokemonUnity.Application/Combat/Match/BattlePalace.cs @@ -85,14 +85,14 @@ public PokemonEssentials.Interface.PokeBattle.IBattlePalace initialize(IPokeBatt return this; } - public IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) + public IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) { //return new PokeBattle_RecordedBattlePalace(scene, trainer1[0].party, trainer2[0].party, trainer1, trainer2); //ToDo: Uncomment above and remove below... return new PokeBattle_BattlePalace(scene, trainer1[0].party, trainer2[0].party, trainer1, trainer2); } - public int pbMoveCategory(IBattleMove move) { + public int MoveCategory(IBattleMove move) { if (//Game.MoveData[move.id].Target==Attack.Data.Targets. 0x10 || //ToDo: Finish Convert from Essentials to Veekun move.Effect==Attack.Data.Effects.x01B) { // Bide return 1; @@ -106,12 +106,12 @@ public int pbMoveCategory(IBattleMove move) { } /// - /// Different implementation of pbCanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore + /// Different implementation of CanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore /// /// /// /// - public bool pbCanChooseMovePartial (int idxPokemon,int idxMove) { + public bool CanChooseMovePartial (int idxPokemon,int idxMove) { PokemonEssentials.Interface.PokeBattle.IBattler thispkmn=@battlers[idxPokemon]; IBattleMove thismove=thispkmn.moves[idxMove]; if (!thismove.IsNotNullOrNone()||thismove.id==0) { @@ -134,7 +134,7 @@ public bool pbCanChooseMovePartial (int idxPokemon,int idxMove) { return true; } - public void pbPinchChange(int idxPokemon) { + public void PinchChange(int idxPokemon) { PokemonEssentials.Interface.PokeBattle.IBattler thispkmn=@battlers[idxPokemon]; if (!thispkmn.effects.Pinch && thispkmn.Status!=Status.SLEEP && thispkmn.HP<=(int)Math.Floor(thispkmn.TotalHP/2f)) { @@ -147,7 +147,7 @@ public void pbPinchChange(int idxPokemon) { nature==Natures.HARDY|| nature==Natures.DOCILE|| nature==Natures.SERIOUS) { - pbDisplay(Game._INTL("{1} is eager for more!",thispkmn.ToString())); + Display(Game._INTL("{1} is eager for more!",thispkmn.ToString())); } if (nature==Natures.CAREFUL|| nature==Natures.RASH|| @@ -155,7 +155,7 @@ public void pbPinchChange(int idxPokemon) { nature==Natures.SASSY|| nature==Natures.MILD|| nature==Natures.TIMID) { - pbDisplay(Game._INTL("{1} began growling deeply!",thispkmn.ToString())); + Display(Game._INTL("{1} began growling deeply!",thispkmn.ToString())); } if (nature==Natures.GENTLE|| nature==Natures.ADAMANT|| @@ -163,7 +163,7 @@ public void pbPinchChange(int idxPokemon) { nature==Natures.LONELY|| nature==Natures.RELAXED|| nature==Natures.NAUGHTY) { - pbDisplay(Game._INTL("A glint appears in {1}'s eyes!",thispkmn.ToString(true))); + Display(Game._INTL("A glint appears in {1}'s eyes!",thispkmn.ToString(true))); } if (nature==Natures.JOLLY|| nature==Natures.BOLD|| @@ -171,12 +171,12 @@ public void pbPinchChange(int idxPokemon) { nature==Natures.CALM|| nature==Natures.IMPISH|| nature==Natures.MODEST) { - pbDisplay(Game._INTL("{1} is getting into position!",thispkmn.ToString())); + Display(Game._INTL("{1} is getting into position!",thispkmn.ToString())); } } } - public override bool pbEnemyShouldWithdraw (int index) { + public override bool EnemyShouldWithdraw (int index) { bool shouldswitch=false; if (@battlers[index].effects.PerishSong==1) { shouldswitch=true; @@ -194,9 +194,9 @@ public override bool pbEnemyShouldWithdraw (int index) { int maxindex=-1; int maxpercent=0; int factor=0; - PokemonEssentials.Interface.PokeBattle.IPokemon[] party=pbParty(index); + PokemonEssentials.Interface.PokeBattle.IPokemon[] party=Party(index); for (int i = 0; i < party.Length; i++) { - if (pbCanSwitch(index,i,false)) { + if (CanSwitch(index,i,false)) { percents[i]=party[i].HP*100/party[i].TotalHP; if (percents[i]>maxpercent) { maxindex=i; @@ -230,16 +230,16 @@ public override bool pbEnemyShouldWithdraw (int index) { } shouldswitch=(Core.Rand.Next(100)=0) { - pbRegisterSwitch(index,maxindex); + RegisterSwitch(index,maxindex); return true; } } @justswitched[index]=shouldswitch; if (shouldswitch) { - PokemonEssentials.Interface.PokeBattle.IPokemon[] party=pbParty(index); + PokemonEssentials.Interface.PokeBattle.IPokemon[] party=Party(index); for (int i = 0; i < party.Length; i++) { - if (pbCanSwitch(index,i,false)) { - pbRegisterSwitch(index,i); + if (CanSwitch(index,i,false)) { + RegisterSwitch(index,i); return true; } } @@ -247,7 +247,7 @@ public override bool pbEnemyShouldWithdraw (int index) { return false; } - public override bool pbRegisterMove(int idxPokemon,int idxMove,bool showMessages=true) { + public override bool RegisterMove(int idxPokemon,int idxMove,bool showMessages=true) { PokemonEssentials.Interface.PokeBattle.IBattler thispkmn=@battlers[idxPokemon]; if (idxMove==-2) { //@choices[idxPokemon][0]=1; // Move @@ -266,7 +266,7 @@ public override bool pbRegisterMove(int idxPokemon,int idxMove,bool showMessages return true; } - public override bool pbAutoFightMenu(int idxPokemon) { + public override bool AutoFightMenu(int idxPokemon) { PokemonEssentials.Interface.PokeBattle.IBattler thispkmn=@battlers[idxPokemon]; Natures nature=thispkmn.pokemon.Nature; int randnum=Core.Rand.Next(100); @@ -291,28 +291,28 @@ public override bool pbAutoFightMenu(int idxPokemon) { } int[] moves=new int[4]; for (int i = 0; i < thispkmn.moves.Length; i++) { - if (!pbCanChooseMovePartial(idxPokemon,i)) continue; - if (pbMoveCategory(thispkmn.moves[i])==category) { + if (!CanChooseMovePartial(idxPokemon,i)) continue; + if (MoveCategory(thispkmn.moves[i])==category) { moves[moves.Length]=i; } } if (moves.Length==0) { // No moves of selected category - pbRegisterMove(idxPokemon,-2); + RegisterMove(idxPokemon,-2); } else { int chosenmove=moves[Core.Rand.Next(moves.Length)]; - pbRegisterMove(idxPokemon,chosenmove); + RegisterMove(idxPokemon,chosenmove); } return true; } - public override void pbEndOfRoundPhase() { - base.pbEndOfRoundPhase(); + public override void EndOfRoundPhase() { + base.EndOfRoundPhase(); if (@decision!=0) return; for (int i = 0; i < 4; i++) { if (!@battlers[i].isFainted()) { - pbPinchChange(i); + PinchChange(i); } } } diff --git a/PokemonUnity.Application/Combat/Match/Recorder.cs b/PokemonUnity.Application/Combat/Match/Recorder.cs index d600e31bd..69dffd4bc 100644 --- a/PokemonUnity.Application/Combat/Match/Recorder.cs +++ b/PokemonUnity.Application/Combat/Match/Recorder.cs @@ -1,4 +1,5 @@ using System; +using System.Collections; using System.Collections.Generic; using System.Linq; using PokemonUnity.Inventory; @@ -17,30 +18,33 @@ namespace PokemonUnity.Combat { - public class PokeBattle_RecordedBattleModule : Battle, IRecordedBattleModule, IBattle, IBattleRecordData - where TBattle : IBattle, IBattleRecordData + //public class PokeBattle_RecordedBattleModule : Battle, IRecordedBattleModule, IBattle, IBattleRecordData + public class PokeBattle_RecordedBattleModule : Battle, IRecordedBattleModule, IBattle, IBattleRecordData + where TBattle : IBattle, IBattleRecordData { #region Variables + protected TBattle Instance; + public IList randomnumbers { get; protected set; } //public IList rounds { get; protected set; } - public IList[]> rounds { get; protected set; } + public IList?[]> rounds { get; protected set; } public IList switches { get; protected set; } public int roundindex { get; protected set; } public IBattleMetaData properties { get; protected set; } - //public int pbGetBattleType { get { return battletype; } } - protected int battletype; + //public int GetBattleType { get { return battletype; } } + public int battletype { get; protected set; } #endregion public PokeBattle_RecordedBattleModule(IPokeBattle_Scene scene,PokemonEssentials.Interface.PokeBattle.IPokemon[] p1,PokemonEssentials.Interface.PokeBattle.IPokemon[] p2,PokemonEssentials.Interface.PokeBattle.ITrainer[] player,PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent) : base (scene, p1, p2, player, opponent) - { (this as IRecordedBattleModule).initialize(scene, p1, p2, player, opponent); } + { (this as IRecordedBattleModule).initialize(scene, p1, p2, player, opponent); } public IBattle initialize(IPokeBattle_Scene scene,PokemonEssentials.Interface.PokeBattle.IPokemon[] p1,PokemonEssentials.Interface.PokeBattle.IPokemon[] p2,PokemonEssentials.Interface.PokeBattle.ITrainer[] player,PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent) { - battletype = pbGetBattleType(); + battletype = GetBattleType(); //@randomnumbers=new List(); randomnumbers=new List(); //@rounds=new List(); - @rounds=new List[]>(); + @rounds=new List?[]>(); @switches=new List(); @roundindex=-1; //@properties=new object(); @@ -49,33 +53,34 @@ public IBattle initialize(IPokeBattle_Scene scene,PokemonEssentials.Interface.Po } #region Methods - public virtual int pbGetBattleType() { + public virtual int GetBattleType() { return 0; // Battle Tower } - public ITrainer[] pbGetTrainerInfo(ITrainer[] trainer) { + public ITrainer[] GetTrainerInfo(ITrainer[] trainer) { if (trainer == null) return null; - if (trainer.Length > 0) { + if (trainer.Length > 1) { return trainer; //return new Trainer[] { - // //new Trainer(trainer[0].trainertype,trainer[0].Name,trainer[0].id,trainer[0].badges), - // new Trainer(trainer[0].ID,trainer[0].Name,trainer[0].TrainerID,trainer[0].Badges), - // new Trainer(trainer[1].ID,trainer[1].Name,trainer[1].TrainerID,trainer[0].Badges) + // //new Trainer(trainer[0].trainertype,trainer[0].Name.Clone(),trainer[0].id,trainer[0].badges.Clone()), + // new Trainer(trainer[0].ID,trainer[0].Name.Clone(),trainer[0].TrainerID,trainer[0].Badges.Clong()), + // new Trainer(trainer[1].ID,trainer[1].Name.Clone(),trainer[1].TrainerID,trainer[0].Badges.Clong()) //}; } else { return trainer; //return new Trainer[] { - // new Trainer(trainer.trainertype,trainer.Name,trainer.id,trainer.badges) + // //new Trainer(trainer.trainertype,trainer.Name,trainer.id,trainer.badges) + // new Trainer(trainer.trainertype,trainer.Name.Clone(),trainer.id,trainer.Badges.Clone) //}; } } - public override BattleResults pbStartBattle(bool canlose=false) { - /*@properties=new object(); - @properties["internalbattle"]=@internalbattle; - @properties["player"]=pbGetTrainerInfo(@player); - @properties["opponent"]=pbGetTrainerInfo(@opponent); + public override BattleResults StartBattle(bool canlose=false) { + /*@properties=new IBattleMetaData(); + @properties["internalbattle"]=Core.INTERNAL;//@internalbattle; + @properties["player"]=GetTrainerInfo(@player); + @properties["opponent"]=GetTrainerInfo(@opponent); @properties["party1"]=@party1.Serialize();//Marshal.dump(@party1); @properties["party2"]=@party2.Serialize();//Marshal.dump(@party2); @properties["endspeech"]=@endspeech != null ? @endspeech : ""; @@ -91,23 +96,23 @@ public override BattleResults pbStartBattle(bool canlose=false) { @properties["items"]=Marshal.dump(@items); @properties["environment"]=@environment; @properties["rules"]=Marshal.dump(@rules);*/ - return base.pbStartBattle(canlose); + return base.StartBattle(canlose); } - public string pbDumpRecord() { - //return Marshal.dump([pbGetBattleType,@properties,@rounds,@randomnumbers,@switches]); - //return new { pbGetBattleType(), @properties, @rounds, randomnumbers, @switches }.ToString(); + public string DumpRecord() { + //return Marshal.dump([GetBattleType,@properties,@rounds,@randomnumbers,@switches]); + //return new { GetBattleType(), @properties, @rounds, randomnumbers, @switches }.ToString(); return new { @battletype, @properties, @rounds, randomnumbers, @switches }.ToString(); } - public override int pbSwitchInBetween(int i1,bool i2,bool i3) { - int ret=base.pbSwitchInBetween(i1,i2,i3); + public override int SwitchInBetween(int i1,bool i2,bool i3) { + int ret=base.SwitchInBetween(i1,i2,i3); @switches.Add(ret); return ret; } - public override bool pbRegisterMove(int i1,int i2, bool showMessages=true) { - if (base.pbRegisterMove(i1,i2,showMessages)) { + public override bool RegisterMove(int i1,int i2, bool showMessages=true) { + if (base.RegisterMove(i1,i2,showMessages)) { //@rounds[@roundindex][i1]=new int[] { MenuCommands.FIGHT, i2 }; @rounds[@roundindex][i1]=new KeyValuePair(MenuCommands.FIGHT, i2); return true; @@ -115,30 +120,30 @@ public override bool pbRegisterMove(int i1,int i2, bool showMessages=true) { return false; } - public override int pbRun(int i1,bool duringBattle=false) { - int ret=base.pbRun(i1,duringBattle); + public override int Run(int i1,bool duringBattle=false) { + int ret=base.Run(i1,duringBattle); //@rounds[@roundindex][i1]=new int[] { MenuCommands.RUN, (int)@decision }; @rounds[@roundindex][i1]=new KeyValuePair(MenuCommands.RUN, (int)@decision); return ret; } - public override bool pbRegisterTarget(int i1,int i2) { - bool ret=base.pbRegisterTarget(i1,i2); + public override bool RegisterTarget(int i1,int i2) { + bool ret=base.RegisterTarget(i1,i2); //@rounds[@roundindex][i1][2]=i2; //ToDo: Select target for Move choosen @rounds[@roundindex][i1]=new KeyValuePair(MenuCommands.FIGHT, i2); //@rounds[@roundindex][i1].Value=i2; return ret; } - public override void pbAutoChooseMove(int i1,bool showMessages=true) { + public override void AutoChooseMove(int i1,bool showMessages=true) { //bool ret= //no return value... - base.pbAutoChooseMove(i1,showMessages); + base.AutoChooseMove(i1,showMessages); //@rounds[@roundindex][i1]=new int[] { MenuCommands.FIGHT, -1 }; @rounds[@roundindex][i1]=new KeyValuePair(MenuCommands.FIGHT, -1); return; //ret; } - public override bool pbRegisterSwitch(int i1,int i2) { - if (base.pbRegisterSwitch(i1,i2)) { + public override bool RegisterSwitch(int i1,int i2) { + if (base.RegisterSwitch(i1,i2)) { //@rounds[@roundindex][i1]=new int[] { MenuCommands.POKEMON, i2 }; @rounds[@roundindex][i1]=new KeyValuePair(MenuCommands.POKEMON, i2); return true; @@ -146,8 +151,8 @@ public override bool pbRegisterSwitch(int i1,int i2) { return false; } - public bool pbRegisterItem(int i1,Items i2) { - if (base.pbRegisterItem(i1,i2)) { + public bool RegisterItem(int i1,Items i2) { + if (base.RegisterItem(i1,i2)) { //@rounds[@roundindex][i1]=new int[] { MenuCommands.BAG, (int)i2 }; //MenuCommands.Item == Bag @rounds[@roundindex][i1]=new KeyValuePair(MenuCommands.BAG, (int)i2); return true; @@ -155,19 +160,19 @@ public bool pbRegisterItem(int i1,Items i2) { return false; } - public override void pbCommandPhase() { + public override void CommandPhase() { @roundindex+=1; //@rounds[@roundindex]=new int[4][]; //[[],[],[],[]]; //@rounds.Add(new int[battlers.Length][]); //[[],[],[],[]]; - @rounds.Add(new KeyValuePair[battlers.Length]); - base.pbCommandPhase(); + @rounds.Add(new KeyValuePair?[battlers.Length]); + base.CommandPhase(); } - public override void pbStorePokemon(IPokemon pkmn) { + public override void StorePokemon(IPokemon pkmn) { } - public override int pbRandom(int num) { - int ret=base.pbRandom(num); + public override int Random(int num) { + int ret=base.Random(num); //@randomnumbers.Add(ret); randomnumbers.Add(ret); return ret; @@ -175,33 +180,54 @@ public override int pbRandom(int num) { #endregion } - /*public static class BattlePlayerHelper { - public static ITrainer[] pbGetOpponent(IBattle battle) { - //return this.pbCreateTrainerInfo(battle[1]["opponent"]); - return pbCreateTrainerInfo(battle.opponent); + public static class BattlePlayerHelper { + public static ITrainer[] GetOpponent(IBattle battle) { + //return this.CreateTrainerInfo(battle[1]["opponent"]); + return CreateTrainerInfo(battle.opponent); } - public static IAudioBGM pbGetBattleBGM(IBattle battle) { - return pbGetTrainerBattleBGM(BattlePlayerHelper.pbGetOpponent(battle)); + public static IAudioBGM GetBattleBGM(IBattle battle) { + return (Game.GameData as IGameUtility).GetTrainerBattleBGM(BattlePlayerHelper.GetOpponent(battle)); } - public static ITrainer[] pbCreateTrainerInfo(ITrainer[] trainer) { + public static ITrainer[] CreateTrainerInfo(TrainerData[] trainer) { + if (trainer == null) return null; + if (trainer.Length>1) { + ITrainer[] ret=new Trainer[2]; + ret[0]=new Trainer(trainer[0].Name, trainer[0].ID); //trainer[0][1],trainer[0][0] + ret[0].id=trainer[0].TrainerID; //trainer[0][2]; + //ret[0].badges=trainer[0].badges; //trainer[0][3]; + //ToDo: for-loop, foreach badge in array, assign same value to second variable + ret[1]=new Trainer(trainer[1].Name, trainer[1].ID); //trainer[1][1],trainer[1][0] + ret[1].id=trainer[1].TrainerID; //trainer[1][2]; + //ret[1].badges=trainer[1].badges; //trainer[1][3]; + return ret; + } + else { + ITrainer[] ret=new Trainer[] { new Trainer(trainer[0].Name, trainer[0].ID) };//(trainer[0][1], trainer[0][0]) + ret[0].id=trainer[0].TrainerID; //trainer[0][2]; + //ret[0].badges=trainer[0].badges; //trainer[0][3]; + return ret; + } + } + + public static ITrainer[] CreateTrainerInfo(ITrainer[] trainer) { if (trainer == null) return null; if (trainer.Length>1) { ITrainer[] ret=new Trainer[2]; ret[0]=new Trainer(trainer[0].fullname, trainer[0].trainertype); //trainer[0][1],trainer[0][0] ret[0].id=trainer[0].id; //trainer[0][2]; - //ret[0].badges=trainer[0].badges; //trainer[0][3]; + ret[0].badges=trainer[0].badges; //trainer[0][3]; //ToDo: for-loop, foreach badge in array, assign same value to second variable ret[1]=new Trainer(trainer[1].fullname, trainer[1].trainertype); //trainer[1][1],trainer[1][0] ret[1].id=trainer[1].id; //trainer[1][2]; - //ret[1].badges=trainer[1].badges; //trainer[1][3]; + ret[1].badges=trainer[1].badges; //trainer[1][3]; return ret; } else { ITrainer[] ret=new Trainer[] { new Trainer(trainer[0].fullname, trainer[0].trainertype) };//(trainer[0][1], trainer[0][0]) - ret[0].trainertype=trainer[0].trainertype; //trainer[0][2]; - //ret[0].badges=trainer[0].badges; //trainer[0][3]; + ret[0].id=trainer[0].id; //trainer[0][2]; + ret[0].badges=trainer[0].badges; //trainer[0][3]; return ret; } } @@ -211,70 +237,98 @@ public static ITrainer[] pbCreateTrainerInfo(ITrainer[] trainer) { /// Playback? /// /// - public class PokeBattle_BattlePlayerModule : PokeBattle_RecordedBattleModule, IBattlePlayerModule - //where TBattle : PokeBattle_RecordedBattleModule, IRecordedBattleModule, IBattle, IBattleRecordData + //public class PokeBattle_BattlePlayerModule : Battle, IBattlePlayerModule, IBattle + //public class PokeBattle_BattlePlayerModule : PokeBattle_RecordedBattleModule, IBattlePlayerModule where T : IRecordedBattleModule + //public class PokeBattle_BattlePlayerModule : PokeBattle_RecordedBattleModule, IBattlePlayerModule + // //where TBattle : PokeBattle_RecordedBattleModule, IRecordedBattleModule, IBattle, IBattleRecordData + public class PokeBattle_BattlePlayerModule : PokeBattle_RecordedBattleModule, IBattlePlayerModule where T : IRecordedBattleModule, IBattle, IBattleRecordData { #region Variables public int randomindex { get; protected set; } public int switchindex { get; protected set; } - #endregion - public PokeBattle_BattlePlayerModule(IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle) : base (scene, battle.party1, battle.party2, battle.player, battle.opponent) - { (this as IBattlePlayerModule).initialize(scene, battle); } - public IBattlePlayerModule initialize(IPokeBattle_Scene scene, IBattle battle) + //Inherited from IRecordedBattleModule + /*public IList randomnumbers { get; protected set; } + //public IList rounds { get; protected set; } + public IList?[]> rounds { get; protected set; } + public int battletype { get; protected set; } + public IBattleMetaData properties { get; protected set; } + public int roundindex { get; protected set; } + public IList switches { get; protected set; }*/ + #endregion + + public PokeBattle_BattlePlayerModule(IPokeBattle_Scene scene, IBattle battle) : base (scene, battle.party1, battle.party2, battle.player, battle.opponent) + //{ (this as IBattlePlayerModule).initialize(scene, (IRecordedBattleModule)battle); } + { initialize(scene, (IRecordedBattleModule)battle); } + //public PokeBattle_BattlePlayerModule(IPokeBattle_Scene scene, IRecordedBattleModule battle) : base (scene, battle.party1, battle.party2, battle.player, battle.opponent) + //{ (this as IBattlePlayerModule).initialize(scene, battle); } + public IBattlePlayerModule initialize(IPokeBattle_Scene scene, IRecordedBattleModule battle) { - @battletype=battle.battletype; + @battletype=battle.GetBattleType(); //battle.battletype; @properties=battle.properties; @rounds=battle.rounds; - randomnumbers=battle.randomnums; + randomnumbers=battle.randomnumbers; @switches=battle.switches; @roundindex=-1; @randomindex=0; @switchindex=0; //base.initialize(scene, - // Marshal.restore(new StringInput(@properties["party1"])), - // Marshal.restore(new StringInput(@properties["party2"])), - // BattlePlayerHelper.pbCreateTrainerInfo(@properties["player"]), - // BattlePlayerHelper.pbCreateTrainerInfo(@properties["opponent"]) + // @properties.party1, //(IPokemon[])@properties["party1"], //Marshal.restore(new StringInput(@properties["party1"])), + // @properties.party2, //(IPokemon[])@properties["party2"], //Marshal.restore(new StringInput(@properties["party2"])), + // BattlePlayerHelper.CreateTrainerInfo(@properties.player), //(ITrainer[])@properties["player"]), + // BattlePlayerHelper.CreateTrainerInfo(@properties.opponent) //(ITrainer[])@properties["opponent"]) //); + return this; + } + + //IBattlePlayerModule IBattlePlayerModule.initialize(IPokeBattle_Scene scene, IBattle battle) + IBattlePlayerModule IBattlePlayerModule.initialize(IPokeBattle_Scene scene, IBattle battle) + { + // Check if battle can be cast to IRecordedBattleModule + //if (battle is IRecordedBattleModule recordedBattle) + //{ + // return initialize(scene, recordedBattle); + //} + //throw new ArgumentException("Battle must be of type IRecordedBattleModule"); + return initialize(scene, (IRecordedBattleModule)battle); } #region Methods - public override BattleResults pbStartBattle(bool canlose=false) { - //@internalbattle=@properties["internalbattle"]; - //@endspeech=@properties["endspeech"].ToString(); - //@endspeech2=@properties["endspeech2"].ToString(); - //@endspeechwin=@properties["endspeechwin"].ToString(); - //@endspeechwin2=@properties["endspeechwin2"].ToString(); - //@doublebattle=(bool)@properties["doublebattle"]; - //@weather=@properties["weather"]; - //@weatherduration=@properties["weatherduration"]; - //@cantescape=(bool)@properties["cantescape"]; - //@shiftStyle=(bool)@properties["shiftStyle"]; - //@battlescene=@properties["battlescene"]; - //@items=Marshal.restore(new StringInput(@properties["items"])); - //@rules=Marshal.restore(new StringInput(@properties["rules"])); - //@environment=@properties["environment"]; - return base.pbStartBattle(canlose); - } - - public int pbSwitchInBetween(int i1,int i2,bool i3) { + public override BattleResults StartBattle(bool canlose=false) { + @internalbattle =Core.INTERNAL;//@properties.internalbattle; //Core.INTERNAL;//@properties["internalbattle"]; + @endspeech =@properties.endspeech.ToString(); //@properties["endspeech"].ToString(); + @endspeech2 =@properties.endspeech2.ToString(); //@properties["endspeech2"].ToString(); + @endspeechwin =@properties.endspeechwin.ToString(); //@properties["endspeechwin"].ToString(); + @endspeechwin2 =@properties.endspeechwin2.ToString(); //@properties["endspeechwin2"].ToString(); + @doublebattle =(bool)@properties.doublebattle; //(bool)@properties["doublebattle"]; + @weather =(Weather)@properties.weather; //(Weather)@properties["weather"]; + @weatherduration =(int)@properties.weatherduration; //(int)@properties["weatherduration"]; + @cantescape =(bool)@properties.cantescape; //(bool)@properties["cantescape"]; + @shiftStyle =(bool)@properties.shiftStyle; //(bool)@properties["shiftStyle"]; + @battlescene =(bool)@properties.battlescene; //(bool)@properties["battlescene"]; + @items =(Items[][])@properties.items; //(Items[][])@properties["items"]; //Marshal.restore(new StringInput(@properties["items"])); + @rules =(IDictionary)@properties.rules; //(IDictionary)@properties["rules"]; //Marshal.restore(new StringInput(@properties["rules"])); + @environment =(Overworld.Environments)@properties.environment; //(Overworld.Environments)@properties["environment"]; + return base.StartBattle(canlose); + } + + public int SwitchInBetween(int i1,int i2,bool i3) { int ret=@switches[@switchindex]; @switchindex+=1; return ret; } - public override int pbRandom(int num) { + public override int Random(int num) { int ret=randomnumbers[@randomindex]; @randomindex+=1; return ret; } - public override void pbDisplayPaused(string str) { - pbDisplay(str); + public override void DisplayPaused(string str) { + Display(str); } - public void pbCommandPhaseCore() { + public void CommandPhaseCore() { @roundindex+=1; for (int i = 0; i < battlers.Length; i++) { //if (@rounds[@roundindex][i].Length==0) continue; @@ -284,30 +338,30 @@ public void pbCommandPhaseCore() { //@choices[i][2]=null; //@choices[i][3]=-1; @choices[i]=new Choice(); - switch (@rounds[@roundindex][i].Key) { //@rounds[@roundindex][i][0] + switch (@rounds[@roundindex][i].Value.Key) { //@rounds[@roundindex][i][0] case MenuCommands.FIGHT: - if (@rounds[@roundindex][i].Value==-1) { //@rounds[@roundindex][i][1]==-1 - pbAutoChooseMove(i,false); + if (@rounds[@roundindex][i].Value.Value==-1) { //@rounds[@roundindex][i][1]==-1 + AutoChooseMove(i,false); } else { - ///pbRegisterMove(i,@rounds[@roundindex][i][1]); - pbRegisterMove(i,@rounds[@roundindex][i].Value); + ///RegisterMove(i,@rounds[@roundindex][i][1]); + RegisterMove(i,@rounds[@roundindex][i].Value.Value); } //if (@rounds[@roundindex][i][2]!=null) - //pbRegisterTarget(i,@rounds[@roundindex][i][2]); - pbRegisterTarget(i,@rounds[@roundindex][i].Value); //ToDo: Select target for Move choosen + //RegisterTarget(i,@rounds[@roundindex][i][2]); + RegisterTarget(i,@rounds[@roundindex][i].Value.Value); //ToDo: Select target for Move chosen break; case MenuCommands.POKEMON: - //pbRegisterSwitch(i,@rounds[@roundindex][i][1]); - pbRegisterSwitch(i,@rounds[@roundindex][i].Value); + //RegisterSwitch(i,@rounds[@roundindex][i][1]); + RegisterSwitch(i,@rounds[@roundindex][i].Value.Value); break; case MenuCommands.BAG: - //pbRegisterItem(i,(Items)@rounds[@roundindex][i][1]); - pbRegisterItem(i,(Items)@rounds[@roundindex][i].Value); + //RegisterItem(i,(Items)@rounds[@roundindex][i][1]); + RegisterItem(i,(Items)@rounds[@roundindex][i].Value.Value); break; case MenuCommands.RUN: //@decision=(BattleResults)@rounds[@roundindex][i][1]; - @decision=(BattleResults)@rounds[@roundindex][i].Value; + @decision=(BattleResults)@rounds[@roundindex][i].Value.Value; break; } } @@ -315,24 +369,51 @@ public void pbCommandPhaseCore() { #endregion } - public class PokeBattle_RecordedBattle : PokeBattle_RecordedBattleModule, IRecordedBattle { + //public class PokeBattle_RecordedBattle : PokeBattle_RecordedBattleModule, IRecordedBattle { + /*public class PokeBattle_RecordedBattle : PokeBattle_RecordedBattleModule, IRecordedBattle { //include PokeBattle_RecordedBattleModule; public PokeBattle_RecordedBattle(IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, ITrainer[] player, ITrainer[] opponent) : base(scene, p1, p2, player, opponent) { } - public override int pbGetBattleType() { + public override int GetBattleType() { return 0; } } public class PokeBattle_RecordedBattlePalace : PokeBattle_RecordedBattleModule, IRecordedBattlePalace { //include PokeBattle_RecordedBattleModule; + public int[] BattlePalaceUsualTable { get { return Instance.BattlePalaceUsualTable; } } + + public int[] BattlePalacePinchTable { get { return Instance.BattlePalaceUsualTable; } } + public PokeBattle_RecordedBattlePalace(IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, ITrainer[] player, ITrainer[] opponent) : base(scene, p1, p2, player, opponent) { + //Instance = (TBattle)this; } - public override int pbGetBattleType() { + + PokemonEssentials.Interface.PokeBattle.IBattlePalace PokemonEssentials.Interface.PokeBattle.IBattlePalace.initialize(IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent) + { + throw new NotImplementedException(); + } + + public override int GetBattleType() { return 1; } + + public int MoveCategory(IBattleMove move) + { + throw new NotImplementedException(); + } + + public bool CanChooseMovePartial(int idxPokemon, int idxMove) + { + throw new NotImplementedException(); + } + + public void PinchChange(int idxPokemon) + { + throw new NotImplementedException(); + } } public class PokeBattle_RecordedBattleArena : PokeBattle_RecordedBattleModule, IRecordedBattleArena { @@ -340,29 +421,97 @@ public class PokeBattle_RecordedBattleArena : PokeBattle_RecordedBattleModule>, IBattlePlayer { + public class PokeBattle_BattlePlayer : PokeBattle_BattlePlayerModule>, IBattlePlayerModule, IBattlePlayer { //include PokeBattle_BattlePlayerModule; public PokeBattle_BattlePlayer(IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule battle) : base(scene, battle) { } + public IBattle initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle) + { + throw new NotImplementedException(); + } + + IBattlePlayerModule IBattlePlayerModule.initialize(IPokeBattle_Scene scene, IBattle battle) + { + throw new NotImplementedException(); + } + + IBattlePlayerModule IBattlePlayerModule.initialize(IPokeBattle_Scene scene, IBattle battle) + { + throw new NotImplementedException(); + } } - public class PokeBattle_BattlePalacePlayer : PokeBattle_BattlePlayerModule>, IBattlePalacePlayer { + public class PokeBattle_BattlePalacePlayer : PokeBattle_BattlePlayerModule>, IBattlePlayerModule, IBattlePalacePlayer { //include PokeBattle_BattlePlayerModule; + + public int[] BattlePalaceUsualTable => throw new NotImplementedException(); + + public int[] BattlePalacePinchTable => throw new NotImplementedException(); + public PokeBattle_BattlePalacePlayer(IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule battle) : base(scene, battle) { } + + public IBattle initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle) + { + throw new NotImplementedException(); + } + + IBattlePlayerModule IBattlePlayerModule.initialize(IPokeBattle_Scene scene, IBattle battle) + { + throw new NotImplementedException(); + } + + PokemonEssentials.Interface.PokeBattle.IBattlePalace PokemonEssentials.Interface.PokeBattle.IBattlePalace.initialize(IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent) + { + throw new NotImplementedException(); + } + + IBattlePlayerModule IBattlePlayerModule.initialize(IPokeBattle_Scene scene, IBattle battle) + { + throw new NotImplementedException(); + } + + public bool CanChooseMovePartial(int idxPokemon, int idxMove) + { + throw new NotImplementedException(); + } + + public int MoveCategory(IBattleMove move) + { + throw new NotImplementedException(); + } + + public void PinchChange(int idxPokemon) + { + throw new NotImplementedException(); + } } - public class PokeBattle_BattleArenaPlayer : PokeBattle_BattlePlayerModule>, IBattleArenaPlayer { + public class PokeBattle_BattleArenaPlayer : PokeBattle_BattlePlayerModule>, IBattlePlayerModule, IBattleArenaPlayer { //include PokeBattle_BattlePlayerModule; public PokeBattle_BattleArenaPlayer(IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule battle) : base(scene, battle) { } + public IBattle initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle) + { + throw new NotImplementedException(); + } }*/ } \ No newline at end of file diff --git a/PokemonUnity.Application/Combat/Match/Regulated/OrgBattle.cs b/PokemonUnity.Application/Combat/Match/Regulated/OrgBattle.cs new file mode 100644 index 000000000..29a8bacba --- /dev/null +++ b/PokemonUnity.Application/Combat/Match/Regulated/OrgBattle.cs @@ -0,0 +1,1084 @@ +using System; +using System.Linq; +using System.Text; +using System.Collections.Generic; +using PokemonUnity; +using PokemonUnity.Monster; +using PokemonUnity.Inventory; +using PokemonUnity.Utility; +using PokemonEssentials.Interface; +using PokemonEssentials.Interface.Battle; +using PokemonEssentials.Interface.Screen; +using PokemonEssentials.Interface.PokeBattle; +using PokemonUnity.Combat; + +namespace PokemonUnity +{ + /*public partial class Game : PokemonEssentials.Interface.Battle.IGameOrgBattle + { + // =============================================================================== + // Pokémon Organized Battle + // =============================================================================== + public bool HasEligible (*arg) { + return BattleChallenge.rules.ruleset.hasValidTeam(Game.GameData.Trainer.party); + } + + public void GetBTTrainers(challengeID) { + trlists=(load_data("Data/trainerlists.dat") rescue []); + for (int i = 0; i < trlists.Length; i++) { + tr=trlists[i]; + if (!tr[5] && tr[2].Contains(challengeID)) { + return tr[0]; + } + } + for (int i = 0; i < trlists.Length; i++) { + tr=trlists[i]; + if (tr[5]) { // is default list + return tr[0]; + } + } + return []; + } + + public void GetBTPokemon(challengeID) { + trlists=(load_data("Data/trainerlists.dat") rescue []); + foreach (var tr in trlists) { + if (!tr[5] && tr[2].Contains(challengeID)) { + return tr[1]; + } + } + foreach (var tr in trlists) { + if (tr[5]) { // is default list + return tr[1]; + } + } + return []; + } + + public void RecordLastBattle() { + Game.GameData.Global.lastbattle=Game.GameData.PokemonTemp.lastbattle; + Game.GameData.PokemonTemp.lastbattle=null; + } + + public void PlayBattle(battledata) { + if (battledata) { + scene=NewBattleScene; + scene.abortable=true; + lastbattle=Marshal.restore(new StringInput(battledata)); + switch (lastbattle[0]) { + case BattleChallenge.eattleTower: + battleplayer=new PokeBattle_BattlePlayer(scene,lastbattle); + break; + case BattleChallenge.eattlePalace: + battleplayer=new PokeBattle_BattlePalacePlayer(scene,lastbattle); + break; + case BattleChallenge.eattleArena: + battleplayer=new PokeBattle_BattleArenaPlayer(scene,lastbattle); + break; + } + bgm=BattlePlayerHelper.GetBattleBGM(lastbattle); + BattleAnimation(bgm) { + SceneStandby { + decision=battleplayer.StartBattle; + } + } + } + } + + public void DebugPlayBattle() { + params=new ChooseNumberParams(); + params.setRange(0,500); + params.setInitialValue(0); + params.setCancelValue(-1); + num=Kernel.MessageChooseNumber(_INTL("Choose a battle."),params); + if (num>=0) { + PlayBattleFromFile(string.Format("Battles/Battle%03d.dat",num)); + } + } + + public void PlayLastBattle() { + PlayBattle(Game.GameData.Global.lastbattle); + } + + public void PlayBattleFromFile(filename) { + RgssOpen(filename,"rb"){|f| + PlayBattle(f.read); + } + } + + public void BattleChallenge() { + if (!Game.GameData.Global.challenge) { + Game.GameData.Global.challenge=new BattleChallenge(); + } + return Game.GameData.Global.challenge; + } + + public void BattleChallengeTrainer(numwins,bttrainers) { + table=new int[] + 0,5,0,100, + 6,6,80,40, + 7,12,80,40, + 13,13,120,20, + 14,19,100,40, + 20,20,140,20, + 21,26,120,40, + 27,27,160,20, + 28,33,140,40, + 34,34,180,20, + 35,40,160,40, + 41,41,200,20, + 42,47,180,40, + 48,48,220,40, + 49,-1,200,100 + }; + for (int i = 0; i < table.Length/4; i++) { + if (table[i*4]<=numwins) { + if ((table[i*4+1]<0 || table[i*4+1]>=numwins)) { + offset=((table[i*4+2]*bttrainers.Length).floor/300).floor; + length=((table[i*4+3]*bttrainers.Length).floor/300).floor; + return (offset+Core.Rand.Next(length)).floor; + } + } + } + return 0; + } + + public void BattleChallengeGraphic(event) { + nextTrainer=BattleChallenge.nextTrainer; + bttrainers=GetBTTrainers(BattleChallenge.currentChallenge); + filename=TrainerCharNameFile((bttrainers[nextTrainer][0] rescue 0)); + begin; + bitmap=new AnimatedBitmap("Graphics/Characters/"+filename); + bitmap.dispose(); + event.character_name=filename; + rescue; + event.character_name="NPC 01"; + } + } + + public void BattleChallengeBeginSpeech() { + if (!BattleChallenge.InProgress?) { + return "..."; + } else { + bttrainers=GetBTTrainers(BattleChallenge.currentChallenge); + tr=bttrainers[BattleChallenge.nextTrainer]; + return tr ? GetMessageFromHash(MessageTypes.seginSpeech,tr[2]) : "..."; + } + } + + public void EntryScreen(*arg) { + retval=false; + FadeOutIn(99999){ + scene=new PokemonScreen_Scene(); + screen=new PokemonScreen(scene,Game.GameData.Trainer.party); + ret=screen.PokemonMultipleEntryScreenEx(BattleChallenge.rules.ruleset); + // Set party + if (ret) BattleChallenge.setParty(ret); + // Continue (return true) if Pokémon were chosen + retval=(ret!=null && ret.Length>0); + } + return retval; + } + + public void BattleChallengeBattle() { + return BattleChallenge.Battle; + } + + public void BattleFactoryPokemon(rule,numwins,numswaps,rentals) { + table=null; + btpokemon=GetBTPokemon(BattleChallenge.currentChallenge); + ivtable=new int[] { + 0,6,3,6, + 7,13,6,9, + 14,20,9,12, + 21,27,12,15, + 28,34,15,21, + 35,41,21,31, + 42,-1,31,31 + }; + groups=new int[] + 1,14,6,0, + 15,21,5,1, + 22,28,4,2, + 29,35,3,3, + 36,42,2,4, + 43,-1,1,5 + }; + if (rule.ruleset.suggestedLevel!=100) { + table=new int[] { + 0,6,110,199, + 7,13,162,266, + 14,20,267,371, + 21,27,372,467, + 28,34,468,563, + 35,41,564,659, + 42,48,660,755, + 49,-1,372,849 + }; + } else { // Open Level (Level 100) + table=new int[] { + 0,6,372,467, + 7,13,468,563, + 14,20,564,659, + 21,27,660,755, + 28,34,372,881, + 35,41,372,881, + 42,48,372,881, + 49,-1,372,881 + }; + } + pokemonNumbers= new []{ 0,0 }; + ivs= new []{ 0,0 }; + ivgroups= new []{ 6,0 }; + for (int i = 0; i < table.Length/4; i++) { + if (table[i*4]<=numwins) { + if ((table[i*4+1]<0 || table[i*4+1]>=numwins)) { + pokemonNumbers=new int[] { + table[i*4+2]*btpokemon.Length/882, + table[i*4+3]*btpokemon.Length/882 + }; + } + } + } + for (int i = 0; i < ivtable.Length/4; i++) { + if (ivtable[i*4]<=numwins) { + if ((ivtable[i*4+1]<0 || ivtable[i*4+1]>=numwins)) { + ivs=[ivtable[i*4+2],ivtable[i*4+3]]; + } + } + } + for (int i = 0; i < groups.Length/4; i++) { + if (groups[i*4]<=numswaps) { + if ((groups[i*4+1]<0 || groups[i*4+1]>=numswaps)) { + ivgroups=[groups[i*4+2],groups[i*4+3]]; + } + } + } + party=new List<>(); + do { + party.clear(); + while (party.Length<6) { + rnd=pokemonNumbers[0]+Core.Rand.Next(pokemonNumbers[1]-pokemonNumbers[0]+1); + rndpoke=btpokemon[rnd]; + indvalue=(party.Length shuffle(this IList array) { + // int size = array.Count; + // IPokemon[] tempa = new IPokemon[size]; + // int i = size; do { //|i| + // int r = Kernel.Core.Rand.Next(i); //size + // //array[i], array[r] = array[r], array[i]; + // T temp = array[i]; + // array[i] = array[r]; + // array[r] = temp; + // i--; + // } while (i > 0); //size.times + // return this; + // //unless (method_defined? :shuffle!) + // } + //} + + //public static partial class Enumerable { + // public void transform() { + // ret=[]; + // this.each(){|item| ret.Add(yield(item)) } + // return ret; + // } + //} + + public partial class PBPokemon { + public int species { get; protected set; } + public int item { get; protected set; } + public int nature { get; protected set; } + public int move1 { get; protected set; } + public int move2 { get; protected set; } + public int move3 { get; protected set; } + public int move4 { get; protected set; } + public int ev { get; protected set; } + + //public Pokemon(species,item,nature,move1,move2,move3,move4,ev) { + // @species=species; + // @item=item ? item : 0; + // @nature=nature; + // @move1=move1 ? move1 : 0; + // @move2=move2 ? move2 : 0; + // @move3=move3 ? move3 : 0; + // @move4=move4 ? move4 : 0; + // @ev=ev; + //} + + /*=begin; + public void _dump(depth) { + return [@species,@item,@nature,@move1,@move2, + @move3,@move4,@ev].pack("vvCvvvvC"); + } + + public static void _load(str) { + data=str.unpack("vvCvvvvC"); + return new this( + data[0],data[1],data[2],data[3], + data[4],data[5],data[6],data[7]; + ); + } + =end;*/ + + //public static void fromInspected(str) { + // insp=str.gsub(/^\s+/,"").gsub(/\s+$/,""); + // pieces=insp.split(/\s*;\s*/); + // species=1; + // if ((Species.const_defined(pieces[0]) rescue false)) { + // species=Species.const_get(pieces[0]); + // } + // item=0; + // if ((Items.const_defined(pieces[1]) rescue false)) { + // item=Items.const_get(pieces[1]); + // } + // nature=Natures.const_get(pieces[2]); + // ev=pieces[3].split(/\s*,\s*/); + // evvalue=0; + // for (int i = 0; i < 6; i++) { + // if (!ev[i]||ev[i]=="") continue; + // evupcase=ev[i].upcase; + // if (evupcase=="HP") evvalue|=0x01; + // if (evupcase=="ATK") evvalue|=0x02; + // if (evupcase=="DEF") evvalue|=0x04; + // if (evupcase=="SPD") evvalue|=0x08; + // if (evupcase=="SA") evvalue|=0x10; + // if (evupcase=="SD") evvalue|=0x20; + // } + // moves=pieces[4].split(/\s*,\s*/); + // moveid=[]; + // for (int i = 0; i < 4; i++) { + // if ((Moves.const_defined(moves[i]) rescue false)) { + // moveid.Add(Moves.const_get(moves[i])); + // } + // } + // if (moveid.Length==0) moveid= new []{ 1 }; + // return new this(species,item,nature, + // moveid[0],(moveid[1]||0),(moveid[2]||0),(moveid[3]||0),evvalue); + //} + // + //public static void fromPokemon(pokemon) { + // evvalue=0; + // if (pokemon.ev[0]>60) evvalue|=0x01; + // if (pokemon.ev[1]>60) evvalue|=0x02; + // if (pokemon.ev[2]>60) evvalue|=0x04; + // if (pokemon.ev[3]>60) evvalue|=0x08; + // if (pokemon.ev[4]>60) evvalue|=0x10; + // if (pokemon.ev[5]>60) evvalue|=0x20; + // return new this(pokemon.Species,pokemon.Item,pokemon.nature, + // pokemon.moves[0].id,pokemon.moves[1].id,pokemon.moves[2].id, + // pokemon.moves[3].id,evvalue); + //} + // + //public void inspect() { + // c1=getConstantName(Species,@species); + // c2=(@item==0) ? "" : getConstantName(Items,@item); + // c3=getConstantName(Natures,@nature); + // evlist=""; + // for (int i = 0; i < @ev; i++) { + // if (((@ev&(1<0) evlist+=","; + // evlist+= new []{ "HP","ATK","DEF","SPD","SA","SD" }[i]; + // } + // } + // c4=(@move1==0) ? "" : getConstantName(Moves,@move1); + // c5=(@move2==0) ? "" : getConstantName(Moves,@move2); + // c6=(@move3==0) ? "" : getConstantName(Moves,@move3); + // c7=(@move4==0) ? "" : getConstantName(Moves,@move4); + // return "#{c1};#{c2};#{c3};#{evlist};#{c4},#{c5},#{c6},#{c7}"; + //} + // + //public void tocompact() { + // return "#{species},#{item},#{nature},#{move1},#{move2},#{move3},#{move4},#{ev}"; + //} + // + //public static void constFromStr(mod,str) { + // maxconst=0; + // foreach (var constant in mod.constants) { + // maxconst=[maxconst,mod.const_get(constant.to_sym)].max; + // } + // for (int i = 1; i < maxconst; i++) { + // val=i.ToString(TextScripts.Name); + // if (!val || val=="") continue; + // if (val==str) return i; + // } + // return 0; + //} + // + //public static void fromString(str) { + // return this.fromstring(str); + //} + // + //public static void fromstring(str) { + // s=str.split(/\s*,\s*/); + // species=this.constFromStr(Species,s[1]); + // item=this.constFromStr(Items,s[2]); + // nature=this.constFromStr(Natures,s[3]); + // move1=this.constFromStr(Moves,s[4]); + // move2=(s.Length>=12) ? this.constFromStr(Moves,s[5]) : 0; + // move3=(s.Length>=13) ? this.constFromStr(Moves,s[6]) : 0; + // move4=(s.Length>=14) ? this.constFromStr(Moves,s[7]) : 0; + // ev=0; + // slen=s.Length-6; + // if (s[slen].to_i>0) ev|=0x01; + // if (s[slen+1].to_i>0) ev|=0x02; + // if (s[slen+2].to_i>0) ev|=0x04; + // if (s[slen+3].to_i>0) ev|=0x08; + // if (s[slen+4].to_i>0) ev|=0x10; + // if (s[slen+5].to_i>0) ev|=0x20; + // return new this(species,item,nature,move1,move2,move3,move4,ev); + //} + // + //public void convertMove(move) { + // if (move == Moves.RETURN && hasConst(Moves,:FRUSTRATION)) { + // move=Moves.FRUSTRATION; + // } + // return move; + //} + // + //public void createPokemon(level,iv,trainer) { + // pokemon=new PokeBattle_Pokemon(@species,level,trainer,false); + // pokemon.setItem(@item); + // pokemon.personalID=Core.Rand.Next(65536); + // pokemon.personalID|=Core.Rand.Next(65536)<<8; + // pokemon.personalID-=pokemon.personalID%25; + // pokemon.personalID+=nature; + // pokemon.personalID&=0xFFFFFFFF; + // pokemon.happiness=0; + // pokemon.moves[0]=new Move(this.convertMove(@move1)); + // pokemon.moves[1]=new Move(this.convertMove(@move2)); + // pokemon.moves[2]=new Move(this.convertMove(@move3)); + // pokemon.moves[3]=new Move(this.convertMove(@move4)); + // evcount=0; + // for (int i = 0; i < 6; i++) { + // if (((@ev&(1< trainers;// { get; protected set; } + + public BattleChallengeData() { + initialize(); + } + + public IBattleChallengeData initialize() { + reset(); + return this; + } + + public void setExtraData(IBattleFactoryData value) { + @extraData=value; + } + + public void AddWin() { + if (@inProgress) { + @battleNumber+=1; + @wins+=1; + } + } + + public void AddSwap() { + if (@inProgress) { + @swaps+=1; + } + } + + public bool MatchOver() { + if (!@inProgress) return true; + if (@decision!=0) return true; + return (@battleNumber>@numRounds); + } + + public int nextTrainer { get { + return @trainers[@battleNumber-1]; + } } + + public void GoToStart() { + if (Game.GameData.Scene is ISceneMap) { + Game.GameData.GameTemp.player_transferring = true; + Game.GameData.GameTemp.player_new_map_id = @start.MapId; //@start[0]; + Game.GameData.GameTemp.player_new_x = @start.X; //@start[1]; + Game.GameData.GameTemp.player_new_y = @start.Y; //@start[2]; + Game.GameData.GameTemp.player_new_direction = 8; + Game.GameData.Scene.transfer_player(); + } + } + + public void setParty(IPokemon[] value) { + if (@inProgress) { + Game.GameData.Trainer.party=value; + @party=value; + } else { + @party=value; + } + } + + public void Start(IBattleChallengeType t, int numRounds) { + @inProgress=true; + @resting=false; + @decision=0; + @swaps=t.currentSwaps; + @wins=t.currentWins; + @battleNumber=1; + @trainers=new List(); + //if (numRounds<=0) throw new Exception (Game._INTL("Number of rounds is 0 or less.")); + if (numRounds<=0) { GameDebug.LogError(Game._INTL("Number of rounds is 0 or less.")); numRounds = 1; } + this.numRounds=numRounds; + Character.TrainerMetaData[] btTrainers=null;//GetBTTrainers(BattleChallenge.currentChallenge); + if (Game.GameData is IGameOrgBattle gob) btTrainers=gob.GetBTTrainers(gob.BattleChallenge.currentChallenge); + while (@trainers.Count(); + @oldParty=null; + @party=null; + @extraData=null; + } + + private void SaveInProgress() { + int oldmapid=Game.GameData.GameMap.map_id; + float oldx=Game.GameData.GamePlayer.x; + float oldy=Game.GameData.GamePlayer.y; + int olddirection=Game.GameData.GamePlayer.direction; + Game.GameData.GameMap.map_id=@start.MapId; //@start[0]; + if (Game.GameData.GamePlayer is IGamePlayerOrgBattle gpob) gpob.moveto2(@start.X,@start.Y); //(@start[1],@start[2]); + Game.GameData.GamePlayer.direction=8; // facing up + if (Game.GameData is IGameSave s) s.Save(true); + Game.GameData.GameMap.map_id=oldmapid; + if (Game.GameData.GamePlayer is IGamePlayerOrgBattle gpob2) gpob2.moveto2(oldx,oldy); + Game.GameData.GamePlayer.direction=olddirection; + } + } + + public partial class BattleChallenge : PokemonEssentials.Interface.Battle.IBattleChallenge { + public int currentChallenge { get; protected set; } + protected int id;// { get; protected set; } + protected int numRounds;// { get; protected set; } + protected IBattleChallengeData bc;// { get; protected set; } + protected IPokemonChallengeRules _rules;// { get; protected set; } + protected IList types;// { get; protected set; } + const int BattleTower = 0; + const int BattlePalace = 1; + const int BattleArena = 2; + const int BattleFactory = 3; + + public BattleChallenge() { + initialize(); + } + + public IBattleChallenge initialize() { + @bc=new BattleChallengeData(); + @currentChallenge=-1; + @types=new List(); + return this; + } + + public IPokemonChallengeRules rules { get { + if (_rules == null) { + _rules=modeToRules(this.data.doublebattle, + this.data.numPokemon, + this.data.battletype,this.data.mode); + } + return _rules; + } } + + public IPokemonChallengeRules modeToRules(bool doublebattle, int numPokemon, int battletype, int mode) { + IPokemonChallengeRules rules = new PokemonChallengeRules(); + if (battletype==BattlePalace) { + rules.setBattleType(new BattlePalace()); + } else if (battletype==BattleArena) { + rules.setBattleType(new BattleArena()); + doublebattle=false; + } else { + rules.setBattleType(new BattleTower()); + } + if (mode==1) { // Open Level + rules.setRuleset(new StandardRules(numPokemon,Core.MAXIMUMLEVEL)); //Experiences.MAXLEVEL + rules.setLevelAdjustment(new OpenLevelAdjustment(30)); + } else if (mode==2) { // Battle Tent + rules.setRuleset(new StandardRules(numPokemon,Core.MAXIMUMLEVEL)); //Experiences.MAXLEVEL + rules.setLevelAdjustment(new OpenLevelAdjustment(60)); + } else { + rules.setRuleset(new StandardRules(numPokemon,50)); + rules.setLevelAdjustment(new OpenLevelAdjustment(50)) ; + } + if (doublebattle) { + rules.addBattleRule(new DoubleBattle()); + } else { + rules.addBattleRule(new SingleBattle()); + } + return rules; + } + + public void set(int id, int numrounds, IPokemonChallengeRules rules) { + this._rules=rules; + this.id=id; + this.numRounds=numrounds; + if (Game.GameData is IGameOrgBattleGenerator gobg) gobg.WriteCup(id,rules); + } + + public void start(params object[] args) { + IBattleChallengeType t=ensureType(@id); + @currentChallenge=@id; // must appear before Start + @bc.Start(t,@numRounds); + } + + public void register(int id, bool doublebattle, int numrounds, int numPokemon, int battletype, int mode= 1) { + IBattleChallengeType t=ensureType(id); + if (battletype==BattleFactory) { + @bc.setExtraData(new BattleFactoryData(@bc)); + numPokemon=3; + battletype=BattleTower; + } + t.numRounds=numrounds; + _rules=modeToRules(doublebattle,numPokemon,battletype,mode); + } + + public bool InChallenge { get { + return InProgress; + } } + + public IBattleChallengeType data { get { + if (!InProgress || @currentChallenge<0) return null; + return (IBattleChallengeType)ensureType(@currentChallenge).Clone(); + } } + + public int getCurrentWins(int challenge) { + return ensureType(challenge).currentWins; + } + + public int getPreviousWins(int challenge) { + return ensureType(challenge).previousWins; + } + + public int getMaxWins(int challenge) { + return ensureType(challenge).maxWins; + } + + public int getCurrentSwaps(int challenge) { + return ensureType(challenge).currentSwaps; + } + + public int getPreviousSwaps(int challenge) { + return ensureType(challenge).previousSwaps; + } + + public int getMaxSwaps(int challenge) { + return ensureType(challenge).maxSwaps; + } + + public void Start(int challenge) { + } + + public void End() { + if (@currentChallenge!=-1) { + ensureType(@currentChallenge).saveWins(@bc); + @currentChallenge=-1; + } + @bc.End(); + } + + public BattleResults Battle() { + if (@bc.extraData != null) return @bc.extraData.Battle(this); + ITrainer opponent=null;//GenerateBattleTrainer(this.nextTrainer,this.rules); + if (Game.GameData is IGameOrgBattle gob) opponent=gob.GenerateBattleTrainer(this.nextTrainer,this.rules); + Character.TrainerMetaData[] bttrainers=null; //GetBTTrainers(@id); + if (Game.GameData is IGameOrgBattle gob1) bttrainers = gob1.GetBTTrainers(@id); + Character.TrainerMetaData trainerdata=bttrainers[this.nextTrainer]; + BattleResults ret=BattleResults.InProgress;//OrganizedBattleEx(opponent,this.rules, + if (Game.GameData is IGameOrgBattle gob2) ret=gob2.OrganizedBattleEx(opponent,this.rules, + trainerdata.ScriptBattleEnd[0], //GetMessageFromHash(MessageTypes.EndSpeechLose,trainerdata[4]), + trainerdata.ScriptBattleEnd[1]); //GetMessageFromHash(MessageTypes.EndSpeechWin,trainerdata[3])); + return ret; + } + + public bool InProgress { get { + return @bc.inProgress; + } } + + public bool Resting() { + return @bc.resting; + } + + public void setDecision(BattleResults value) { + @bc.decision=value; + } + + public void setParty(IPokemon[] value) { + @bc.setParty(value); + } + + public IBattleFactoryData extra { get { return @bc.extraData; } } + public BattleResults decision { get { return @bc.decision; } } + public int wins { get { return @bc.wins; } } + public int swaps { get { return @bc.swaps; } } + public int battleNumber { get { return @bc.battleNumber; } } + public int nextTrainer { get { return @bc.nextTrainer; } } + public void GoOn() { @bc.GoOn(); } + public void AddWin() { @bc.AddWin(); } + public void Cancel() { @bc.Cancel(); } + public void Rest() { @bc.Rest(); } + public bool MatchOver() { return @bc.MatchOver(); } + public void GoToStart() { @bc.GoToStart(); } + + //private; + + private IBattleChallengeType ensureType(int id) { + if (@types is Array) { + IList oldtypes=@types; + @types=new List(); + for (int i = 0; i < oldtypes.Count; i++) { + if (oldtypes[i] != null) { + @types[i]=oldtypes[i]; + } + } + } + if (@types[id] == null) { + @types[id]=new BattleChallengeType(); + } + return @types[id]; + } + } + + public partial class Game_Event : PokemonEssentials.Interface.Battle.IGameEventOrgBattle { + public bool InChallenge { get { + if (Game.GameData is IGameOrgBattle gob) return gob.BattleChallenge.InChallenge; + return false;//BattleChallenge.InChallenge; + } } + } + + public partial class BattleFactoryData : PokemonEssentials.Interface.Battle.IBattleFactoryData { + protected IBattleChallengeData bcdata; + protected ITrainer opponent; + protected IPokemon[] rentals; + protected IPokemon[] oldopponent; + protected int trainerid; + + public BattleFactoryData(IBattleChallengeData bcdata) { + initialize(bcdata); + } + + public IBattleFactoryData initialize(IBattleChallengeData bcdata) { + this.bcdata=bcdata; + return this; + } + + public void PrepareRentals() { + //if (Game.GameData is IGameOrgBattle gob) @rentals=gob.BattleFactoryPokemon(1,@bcdata.wins,@bcdata.swaps,new IPokemon[0]); + //@trainerid=@bcdata.nextTrainer; + //Character.TrainerMetaData[] bttrainers=null;//GetBTTrainers(@bcdata.currentChallenge); + //if (Game.GameData is IGameOrgBattle gob2) bttrainers=gob2.GetBTTrainers(@bcdata.currentChallenge); + //Character.TrainerMetaData trainerdata=bttrainers[@trainerid]; + //@opponent=new Trainer( //PokeBattle_Trainer( + // trainerdata.ID.ToString(), //GetMessageFromHash(MessageTypes.TrainerNames,trainerdata[1]), + // trainerdata.ID); //trainerdata[0]); + //IPokemon[] opponentPkmn=null;//BattleFactoryPokemon(1,@bcdata.wins,@bcdata.swaps,@rentals); + //if (Game.GameData is IGameOrgBattle gob3) opponentPkmn=gob3.BattleFactoryPokemon(1,@bcdata.wins,@bcdata.swaps,@rentals); + //@opponent.party=opponentPkmn.Shuffle(0,3);//.shuffle[0,3]; + } + + public void ChooseRentals() { + if (Game.GameData is IGameSpriteWindow g) g.FadeOutIn(99999, block: () => { + IBattleSwapScene scene=Game.GameData.Scenes.BattleSwapScene; //new BattleSwapScene(); + IBattleSwapScreen screen=Game.GameData.Screens.BattleSwapScreen.initialize(scene); //new BattleSwapScreen(scene); + @rentals=screen.StartRent(@rentals); + @bcdata.AddSwap(); + if (Game.GameData is IGameOrgBattle gob) gob.BattleChallenge.setParty(@rentals); + }); + } + + public PokemonUnity.Combat.BattleResults Battle(IBattleChallenge challenge) { + //Character.TrainerMetaData[] bttrainers=null;//GetBTTrainers(@bcdata.currentChallenge); + //if (Game.GameData is IGameOrgBattle gob) bttrainers=gob.GetBTTrainers(@bcdata.currentChallenge); + //Character.TrainerMetaData trainerdata=bttrainers[@trainerid];//Kernal.TrainerMetaData + //if (Game.GameData is IGameOrgBattle gob1) return gob1.OrganizedBattleEx(@opponent, challenge.rules, + // trainerdata.ScriptBattleEnd[0], //GetMessageFromHash(MessageTypes.EndSpeechLose,trainerdata[4]), + // trainerdata.ScriptBattleEnd[1]); //GetMessageFromHash(MessageTypes.EndSpeechWin,trainerdata[3])); + return BattleResults.InProgress; + } + + public void PrepareSwaps() { + //@oldopponent=@opponent.party; + //int trainerid=@bcdata.nextTrainer; + //Character.TrainerMetaData[] bttrainers=null; //GetBTTrainers(@bcdata.currentChallenge); + //if (Game.GameData is IGameOrgBattle gob) bttrainers=gob.GetBTTrainers(@bcdata.currentChallenge); + //Character.TrainerMetaData trainerdata=bttrainers[trainerid]; + //@opponent=new Trainer( //PokeBattle_Trainer( + // trainerdata.ID.ToString(), //GetMessageFromHash(MessageTypes.TrainerNames,trainerdata[1]), + // trainerdata.ID); //trainerdata[0]); + //List pool=new List();pool.AddRange(@rentals);pool.AddRange(@oldopponent); + //IBattleChallenge challenge = null; //ToDo: Not sure how this is assigned... bcdata creates challenge somehow. + //IPokemon[] opponentPkmn=null;//BattleFactoryPokemon( + //if (Game.GameData is IGameOrgBattle gob2) opponentPkmn=gob2.BattleFactoryPokemon( + // challenge.rules,@bcdata.wins,@bcdata.swaps, + // pool.ToArray()); //new IPokemon[0].concat(@rentals).concat(@oldopponent)); + //@opponent.party=opponentPkmn.Shuffle(0,3);//.shuffle[0,3]; + } + + public bool ChooseSwaps() { + bool swapMade=true; + if (Game.GameData is IGameSpriteWindow g) g.FadeOutIn(99999, block: () => { + IBattleSwapScene scene=Game.GameData.Scenes.BattleSwapScene; //new Game.GameData.Scenes.BattleSwapScene(); + IBattleSwapScreen screen=Game.GameData.Screens.BattleSwapScreen.initialize(scene); //new BattleSwapScreen(scene); + swapMade=screen.StartSwap(@rentals,@oldopponent); + if (swapMade) { + @bcdata.AddSwap(); + } + @bcdata.setParty(@rentals); + }); + return swapMade; + } + } +} \ No newline at end of file diff --git a/PokemonUnity.Application/Combat/Match/Regulated/OrgBattleGenerator.cs b/PokemonUnity.Application/Combat/Match/Regulated/OrgBattleGenerator.cs new file mode 100644 index 000000000..f309b4418 --- /dev/null +++ b/PokemonUnity.Application/Combat/Match/Regulated/OrgBattleGenerator.cs @@ -0,0 +1,1564 @@ +using System; +using System.Linq; +using System.Text; +using System.Collections.Generic; +using PokemonUnity; +using PokemonUnity.Monster; +using PokemonUnity.Inventory; +using PokemonUnity.Utility; +using PokemonEssentials.Interface; +using PokemonEssentials.Interface.Battle; +using PokemonEssentials.Interface.Screen; +using PokemonEssentials.Interface.PokeBattle; +using System.Collections; + +namespace PokemonUnity +{ + /*public partial class Game : PokemonEssentials.Interface.Battle.IGameOrgBattleGenerator + { + public Moves RandomMove() { + do { //;loop + Moves move = Moves.NONE; + if (false) { + move=(Moves)Core.Rand.Next(0xA6)+1; + } else { + //move=(Moves)Core.Rand.Next(Moves.maxValue)+1; + move=(Moves)Core.Rand.Next(Kernal.MoveData.Keys.Count)+1; + if (move>384 || move == Moves.SKETCH || move == Moves.STRUGGLE) continue; + } + //if (move.ToString(TextScripts.Name)!="") return move; + if (move!=Moves.NONE) return move; + } while (true); + } + + public void addMove(ref List moves, Moves move, int @base) { + data=moveData(move); + int count=@base+1; + if (data.function==0 && data.basedamage<=40) { + count=@base; + } + if (move == Moves.BUBBLE || + move == Moves.BUBBLE_BEAM) { + count=0; + return; + } + if (data.basedamage<=30 || + move == Moves.GROWL || + move == Moves.TAIL_WHIP || + move == Moves.LEER) { + count=@base; + } + if (data.basedamage>=60 || + move == Moves.REFLECT|| + move == Moves.LIGHT_SCREEN || + move == Moves.SAFEGUARD || + move == Moves.SUBSTITUTE || + move == Moves.FAKE_OUT) { + count=@base+2; + } + if (data.basedamage>=80 && data.type == Types.NORMAL) { + count=@base+5; + } + if (data.basedamage>=80 && data.type == Types.NORMAL) { + count=@base+3; + } + if (move == Moves.PROTECT || + move == Moves.DETECT || + move == Moves.TOXIC || + move == Moves.AERIAL_ACE || + move == Moves.WILL_O_WISP || + move == Moves.SPORE || + move == Moves.THUNDER_WAVE || + move == Moves.HYPNOSIS || + move == Moves.CONFUSE_RAY || + move == Moves.ENDURE || + move == Moves.SWORDS_DANCE) { + count=@base+3; + } + if (!moves.Contains(move)) { + //count.times{moves.Add(move)} + for (int i = 0; i < count; i++) { moves.Add(move); } + } + } + + //private static IDictionary tmData = null; + //private static IDictionary legalMoves = []; + //private static IDictionary legalMovesLevel = 0; + //private static IDictionary moveData = []; + //private static IDictionary baseStatTotal = []; + //private static IDictionary minimumLevel = []; + //private static IDictionary babySpecies = []; + //private static IDictionary evolutions = []; + //private static IDictionary tmMoves = null; + + public IList GetLegalMoves2(Pokemons species,int maxlevel) { + IList moves=new List(); + if (species==null || species<=0) return moves; + //RgssOpen("Data/attacksRS.dat","rb") {|atkdata| + // offset=atkdata.getOffset(species-1); + // length=atkdata.getLength(species-1)>>1; + // atkdata.pos=offset; + for (int k = 0; k < length-1; k++) { + int level=;//atkdata.fgetw; + Moves move=;//atkdata.fgetw; + if (level<=maxlevel) { + addMove(moves,move,1); + } + } + //} + //if (tmData == null) $tmData=load_data("Data/tm.dat"); + if (tmMoves == null) { + tmMoves=new List<>(); + if (itemData==null) itemData=readItemList("Data/items.dat"); + for (int i = 0; i < itemData.Length; i++) { + if (itemData[i]==null) continue; + atk=itemData[i][8]; + if (atk==null || atk==0) continue; + if (tmData[atk]==null) continue; + tmMoves.Add(atk); + } + } + foreach (var atk in tmMoves) { + if (tmData[atk].Contains(species)) { + addMove(moves,atk,0); + } + } + babyspecies=babySpecies(species); + RgssOpen("Data/eggEmerald.dat","rb"){|f| + f.pos=(babyspecies-1)*8; + offset=f.fgetdw; + length=f.fgetdw; + if (length>0) { + f.pos=offset; + i=0; do { //break; loop + atk=f.fgetw; + addMove(moves,atk,2); + i+=1; + } unless(i < length); + } + } + movedatas=[]; + foreach (var move in moves) { + movedatas.Add([move,moveData(move)]); + } + // Delete less powerful moves + deleteAll=proc{|a,item| + while (a.Contains(item)) { + a.delete(item); + } + } + foreach (var move in moves) { + md=moveData(move); + foreach (var move2 in movedatas) { + if (md.function==0xA5 && move2[1].function==0 && md.type==move2[1].type && + md.basedamage>=move2[1].basedamage) { + deleteAll.call(moves,move2[0]); + } else if (md.function==move2[1].function && md.basedamage==0 && + md.accuracy>move2[1].accuracy) { + // Supersonic vs. Confuse Ray, etc. + deleteAll.call(moves,move2[0]); + } else if (md.function==0x06 && move2[1].function==0x05) { + deleteAll.call(moves,move2[0]); + } else if (md.function==move2[1].function && md.basedamage!=0 && + md.type==move2[1].type && + (md.totalpp==15 || md.totalpp==10 || md.totalpp==move2[1].totalpp) && + (md.basedamage>move2[1].basedamage || + (md.basedamage==move2[1].basedamage && md.accuracy>move2[1].accuracy))) { + // Surf, Flamethrower, Thunderbolt, etc. + deleteAll.call(moves,move2[0]); + } + } + } + return moves; + } + + public void baseStatTotal(move) { + if (baseStatTotal[move]==null) { + baseStatTotal[move]=BaseStatTotal(move); + } + return baseStatTotal[move]; + } + + public void babySpecies(move) { + if (babySpecies[move]==null) { + babySpecies[move]=GetBabySpecies(move); + } + return babySpecies[move]; + } + + public void minimumLevel(move) { + if (minimumLevel[move]==null) { + minimumLevel[move]=GetMinimumLevel(move); + } + return minimumLevel[move]; + } + + public void evolutions(move) { + if (evolutions[move]==null) { + evolutions[move]=GetEvolvedFormData(move); + } + return evolutions[move]; + } + + public void moveData(Moves move) { + if (moveData[move]==null) { + moveData[move]=new MoveData(move); + } + return moveData[move]; + } + + /* + [3/10] + 0-266 - 0-500 + [106] + 267-372 - 380-500 + [95] + 373-467 - 400-555 (nonlegendary) + 468-563 - 400-555 (nonlegendary) + 564-659 - 400-555 (nonlegendary) + 660-755 - 400-555 (nonlegendary) + 756-799 - 580-600 [legendary] (compat1==15 or compat2==15, genderbyte=255) + 800-849 - 500- + 850-881 - 580- + * / + + + public void withRestr(rule,minbs,maxbs,legendary) { + ret=new PokemonChallengeRules().addPokemonRule(new BaseStatRestriction(minbs,maxbs)); + if (legendary==0) { + ret.addPokemonRule(new NonlegendaryRestriction()); + } else if (legendary==1) { + ret.addPokemonRule(new InverseRestriction(new NonlegendaryRestriction())); + } + return ret; + } + + // The Pokemon list is already roughly arranged by rank from weakest to strongest + public void ArrangeByTier(pokemonlist,rule) { + tiers=[ + withRestr(rule,0,500,0), + withRestr(rule,380,500,0), + withRestr(rule,400,555,0), + withRestr(rule,400,555,0), + withRestr(rule,400,555,0), + withRestr(rule,400,555,0), + withRestr(rule,580,680,1), + withRestr(rule,500,680,0), + withRestr(rule,580,680,2) + ]; + tierPokemon=[]; + for (int i = 0; i < tiers.Length; i++) { + tierPokemon.Add([]); + } + for (int i = 0; i < pokemonlist.Length; i++) { + if (!rule.ruleset.isPokemonValid(pokemonlist[i])) continue; + validtiers=[]; + for (int j = 0; j < tiers.Length; j++) { + tier=tiers[j]; + if (tier.ruleset.isPokemonValid(pokemonlist[i])) { + validtiers.Add(j); + } + } + if (validtiers.Length>0) { + vt=validtiers.Length*i/pokemonlist.Length; + tierPokemon[validtiers[vt]].Add(pokemonlist[i]); + } + } + // Now for each tier, sort the Pokemon in that tier + ret=[]; + for (int i = 0; i < tiers.Length; i++) { + tierPokemon[i].sort!{|a,b| + bstA=baseStatTotal(a.Species); + bstB=baseStatTotal(b.Species); + if (bstA==bstB) { + a.Species<=>b.Species; + } else { + bstA<=>bstB; + } + } + ret.concat(tierPokemon[i]); + } + return ret; + } + + public void hasMorePowerfulMove(moves,thismove) { + thisdata=moveData(thismove); + if (thisdata.basedamage==0) return false; + foreach (var move in moves) { + if (move==0) continue; + if (moveData(move).type==thisdata.type && + moveData(move).basedamage>thisdata.basedamage) { + return true; + } + } + return false; + } + + public void RandomPokemonFromRule(rule,trainer) { + pkmn=null; + i=0; + iteration=-1; + begin; + iteration+=1; + species=0; + level=rule.ruleset.suggestedLevel; + do { //;loop + species=0; + do { //;loop + species=Core.Rand.Next(Species.maxValue)+1; + cname=getConstantName(Species,species) rescue null; + if (cname) break; + } + r=Core.Rand.Next(20); + bst=baseStatTotal(species); + if (level400) { + continue; + } + if (r<10 && babySpecies(species)!=species) { + continue; + } + } + if (r<10 && babySpecies(species)==species) { + continue; + } + if (r<7 && evolutions(species).Length>0) { + continue; + } + break; + } + ev=Core.Rand.Next(0x3F)+1; + nature=0; + do { //;loop + nature=Core.Rand.Next(25); + nd5=(nature/5).floor; // stat to increase + nm5=(nature%5).floor; // stat to decrease + if (nd5==nm5 || nature==Natures.LAX || nature==Natures.GENTLE) { + // Neutral nature, Lax, or Gentle + if (Core.Rand.Next(20)<19) continue; + } else { + if (((ev>>(1+nd5))&1)==0) { + // If stat to increase isn't emphasized + if (Core.Rand.Next(10)<6) continue; + } + if (((ev>>(1+nm5))&1)!=0) { + // If stat to decrease is emphasized + if (Core.Rand.Next(10)<9) continue; + } + } + break; + } + item=0; + if (level!=$legalMovesLevel) { + $legalMoves=[]; + } + if (!$legalMoves[species]) { + $legalMoves[species]=GetLegalMoves2(species,level); + } + itemlist=[ + :ORANBERRY,:SITRUSBERRY,:ADAMANTORB,:BABIRIBERRY, + :BLACKSLUDGE,:BRIGHTPOWDER,:CHESTOBERRY,:CHOICEBAND, + :CHOICESCARF,:CHOICESPECS,:CHOPLEBERRY,:DAMPROCK, + :DEEPSEATOOTH,:EXPERTBELT,:FLAMEORB,:FOCUSSASH, + :FOCUSBAND,:HEATROCK,:LEFTOVERS,:LIFEORB,:LIGHTBALL, + :LIGHTCLAY,:LUMBERRY,:OCCABERRY,:PETAYABERRY,:SALACBERRY, + :SCOPELENS,:SHEDSHELL,:SHELLBELL,:SHUCABERRY,:LIECHIBERRY, + :SILKSCARF,:THICKCLUB,:TOXICORB,:WIDELENS,:YACHEBERRY, + :HABANBERRY,:SOULDEW,:PASSHOBERRY,:QUICKCLAW,:WHITEHERB; + ]; + // Most used: Leftovers, Life Orb, Choice Band, Choice Scarf, Focus Sash + do { //;loop + if (Core.Rand.Next(40)==0) { + item=Items.LEFTOVERS; + break; + } + itemsym=itemlist[Core.Rand.Next(itemlist.Length)]; + item=getID(Items,itemsym); + if (item==0) continue; + if (itemsym==:LIGHTBALL) { + if (!species == Pokemons.PIKACHU) continue; + } + if (itemsym==:SHEDSHELL) { + if (!species == Pokemons.FORRETRESS || + !species == Pokemons.SKARMORY) continue; + } + if (itemsym==:SOULDEW) { + if (!species == Pokemons.LATIOS || + !species == Pokemons.LATIAS) continue; + } + if (itemsym==:LIECHIBERRY && (ev&0x02)==0) { + if (Core.Rand.Next(2)==0) { + continue; + } else { + ev|=0x02; + } + } + if (itemsym==:FOCUSSASH) { + if (baseStatTotal(species)>450 && Core.Rand.Next(10)<8) continue; + } + if (itemsym==:ADAMANTORB) { + if (!species == Pokemons.DIALGA) continue; + } + if (itemsym==:PASSHOBERRY) { + if (!species == Pokemons.STEELIX) continue; + } + if (itemsym==:BABIRIBERRY ) { + if (!species == Pokemons.TYRANITAR) continue; + } + if (itemsym==:HABANBERRY) { + if (!species == Pokemons.GARCHOMP) continue; + } + if (itemsym==:OCCABERRY) { + if (!species == Pokemons.METAGROSS) continue; + } + if (itemsym==:CHOPLEBERRY) { + if (!species == Pokemons.UMBREON) continue; + } + if (itemsym==:YACHEBERRY) { + if (!species == Pokemons.TORTERRA && + !species == Pokemons.GLISCOR && + !species == Pokemons.DRAGONAIR) continue; + } + if (itemsym==:SHUCABERRY) { + if (!species == Pokemons.HEATRAN) continue; + } + if (itemsym==:SALACBERRY && (ev&0x08)==0) { + if (Core.Rand.Next(2)==0) { + continue; + } else { + ev|=0x08; + } + } + if (itemsym==:PETAYABERRY && (ev&0x10)==0) { + if (Core.Rand.Next(2)==0) { + continue; + } else { + ev|=0x10; + } + } + if (itemsym==(:DEEPSEATOOTH)) { + if (!species == Pokemons.CLAMPERL) continue; + } + if (itemsym==(:THICKCLUB)) { + if (!species == Pokemons.CUBONE && + !species == Pokemons.MAROWAK) continue; + } + break; + } + if (level<10) { + if (Core.Rand.Next(40)==0 || + item == Items.SITRUSBERRY) item=(Items.ORANBERRY || item); + } + if (level>20) { + if (Core.Rand.Next(40)==0 || + item == Items.ORANBERRY) item=(Items.SITRUSBERRY || item); + } + moves=$legalMoves[species]; + sketch=false; + if (moves[0] == Moves.SKETCH) { + sketch=true; + moves[0]=RandomMove; + moves[1]=RandomMove; + moves[2]=RandomMove; + moves[3]=RandomMove; + } + if (moves.Length==0) continue; + if ((moves|[]).Length<4) { + if (moves.Length==0) moves=[Moves.TACKLE]; + moves|=[]; + } else { + newmoves=[]; + rest=(Moves.REST || -1); + spitup=(Moves.SPITUP || -1); + swallow=(Moves.SWALLOW || -1); + stockpile=(Moves.STOCKPILE || -1); + snore=(Moves.SNORE || -1); + sleeptalk=(Moves.SLEEPTALK || -1); + do { //;loop + newmoves.clear(); + while (newmoves.Length<4) { + m=moves[Core.Rand.Next(moves.Length)]; + if (Core.Rand.Next(2)==0 && hasMorePowerfulMove(moves,m)) { + continue; + } + if (!newmoves.Contains(m) && m!=0) { + newmoves.Add(m); + } + } + if ((newmoves.Contains(spitup) || + newmoves.Contains(swallow)) && !newmoves.Contains(stockpile)) { + unless (sketch) continue; + } + if ((!newmoves.Contains(spitup) && !newmoves.Contains(swallow)) && + newmoves.Contains(stockpile)) { + unless (sketch) continue; + } + if (newmoves.Contains(sleeptalk) && !newmoves.Contains(rest)) { + unless ((sketch || !moves.Contains(rest)) && Core.Rand.Next(10)<2) continue; + } + if (newmoves.Contains(snore) && !newmoves.Contains(rest)) { + unless ((sketch || !moves.Contains(rest)) && Core.Rand.Next(10)<2) continue; + } + totalbasedamage=0; + hasPhysical=false; + hasSpecial=false; + hasNormal=false; + foreach (var move in newmoves) { + d=moveData(move); + totalbasedamage+=d.basedamage; + if (d.basedamage>=1) { + if (d.type == Types.NORMAL) hasNormal=true; + if (d.category==0) hasPhysical=true; + if (d.category==1) hasSpecial=true; + } + } + if (!hasPhysical && (ev&0x02)!=0 ) { + // No physical attack, but emphasizes Attack + if (Core.Rand.Next(10)<8) continue; + } + if (!hasSpecial && (ev&0x10)!=0) { + // No special attack, but emphasizes Special Attack + if (Core.Rand.Next(10)<8) continue; + } + r=Core.Rand.Next(10); + if (r>6 && totalbasedamage>180) continue; + if (r>8 && totalbasedamage>140) continue; + if (totalbasedamage==0 && Core.Rand.Next(20)!=0) continue; + // ########### + // Moves accepted + if (hasPhysical && !hasSpecial) { + if (Core.Rand.Next(10)<8) ev&=~0x10; // Deemphasize Special Attack + if (Core.Rand.Next(10)<8) ev|=0x02; // Emphasize Attack + } + if (!hasPhysical && hasSpecial) { + if (Core.Rand.Next(10)<8) ev|=0x10; // Emphasize Special Attack + if (Core.Rand.Next(10)<8) ev&=~0x02; // Deemphasize Attack + } + if (!hasNormal && item == Items.SILKSCARF) { + item=Items.LEFTOVERS; + } + moves=newmoves; + break; + } + } + for (int i = 0; i < 4; i++) { + if (!moves[i] ) moves[i]=0; + } + if (item == Items.LIGHTCLAY && + !moves.Contains((Moves.LIGHTSCREEN || -1)) && + !moves.Contains((Moves.REFLECT || -1))) { + item=Items.LEFTOVERS; + } + if (item == Items.BLACKSLUDGE) { + dexdata=OpenDexData; + DexDataOffset(dexdata,species,8); + type1=dexdata.fgetb; + type2=dexdata.fgetb; + dexdata.close; + if (!type1 == Types.POISON && !type2 == Types.POISON) { + item=Items.LEFTOVERS; + } + } + if (item == Items.HEATROCK && + !moves.Contains((Moves.SUNNYDAY || -1))) { + item=Items.LEFTOVERS; + } + if (item == Items.DAMPROCK && + !moves.Contains((Moves.RAINDANCE || -1))) { + item=Items.LEFTOVERS; + } + if (moves.Contains((Moves.REST || -1))) { + if (Core.Rand.Next(3)==0) item=Items.LUMBERRY; + if (Core.Rand.Next(4)==0) item=Items.CHESTOBERRY; + } + pk=new Pokemon(species,item,nature,moves[0],moves[1],moves[2],moves[3],ev); + pkmn=pk.createPokemon(level,31,trainer); + i+=1; + } while (!rule.ruleset.isPokemonValid(pkmn)); + return pkmn; + } + + public void DecideWinnerEffectiveness(move,otype1,otype2,ability,scores) { + data=moveData(move); + if (data.basedamage==0) return 0; + atype=data.type; + typemod=4; + if (ability == Abilities.LEVITATE && data.type == Types.GROUND) { + typemod=4; + } else { + mod1=Types.getEffectiveness(atype,otype1); + mod2=(otype1==otype2) ? 2 : Types.getEffectiveness(atype,otype2); + if (ability == Abilities.WONDERGUARD) { + if (mod1!=4) mod1=2; + if (mod2!=4) mod2=2; + } + typemod=mod1*mod2; + } + if (typemod==0) return scores[0]; + if (typemod==1) return scores[1]; + if (typemod==2) return scores[2]; + if (typemod==4) return scores[3]; + if (typemod==8) return scores[4]; + if (typemod==16) return scores[5]; + return 0; + } + + public void DecideWinnerScore(party0,party1,rating) { + score=0; + types1=[]; + types2=[]; + abilities=[]; + for (int j = 0; j < party1.Length; j++) { + types1.Add(party1[j].type1); + types2.Add(party1[j].type2); + abilities.Add(party1[j].ability); + } + for (int i = 0; i < party0.Length; i++) { + foreach (var move in party0[i].moves) { + if (move.id==0) continue; + for (int j = 0; j < party1.Length; j++) { + score+=DecideWinnerEffectiveness(move.id, + types1[j],types2[j],abilities[j],[-16,-8,0,4,12,20]); + } + } + basestatsum=baseStatTotal(party0[i].Species); + score+=basestatsum/10; + if (party0[i].Item!=0) score+=10; // Not in Battle Dome ranking + } + score+=rating+Core.Rand.Next(32); + return score; + } + + public void DecideWinner(party0,party1,rating0,rating1) { + rating0=(rating0*15.0/100).round; + rating1=(rating1*15.0/100).round; + score0=DecideWinnerScore(party0,party1,rating0); + score1=DecideWinnerScore(party1,party0,rating1); + if (score0==score1) { + if (rating0==rating1) return 5; + return (rating0>rating1) ? 1 : 2; + } else { + return (score0>score1) ? 1 : 2; + } + } + + public void RuledBattle(team1,team2,rule) { + decision=0; + if (Core.Rand.Next(100)!=0) { + party1=[]; + party2=[]; + team1.Length.times {|i| party1.Add(team1[i]) } + team2.Length.times {|i| party2.Add(team2[i]) } + decision=DecideWinner(party1,party2,team1.rating,team2.rating); + } else { + scene=new PokeBattle_DebugSceneNoLogging(); + trainer1=new PokeBattle_Trainer("PLAYER1",1); + trainer2=new PokeBattle_Trainer("PLAYER2",1); + items1=[]; + items2=[]; + level=rule.ruleset.suggestedLevel; + team1.Length.times {|i| + p=team1[i]; + if (p.level!=level) { + p.level=level; + p.calcStats; + } + items1.Add(p.Item); + trainer1.party.Add(p); + } + team2.Length.times {|i| + p=team2[i]; + if (p.level!=level) { + p.level=level; + p.calcStats; + } + items2.Add(p.Item); + trainer2.party.Add(p); + } + battle=rule.createBattle(scene,trainer1,trainer2); + battle.debug=true; + battle.controlPlayer=true; + battle.endspeech="..."; + battle.internalbattle=false; + decision=battle.StartBattle; + // p [items1,items2] + team1.Length.times {|i| + p=team1[i]; + p.heal; + p.setItem(items1[i]); + } + team2.Length.times {|i| + p=team2[i]; + p.heal; + p.setItem(items2[i]); + } + } + if (decision==1) { // Team 1 wins + team1.addMatch(team2,1); + team2.addMatch(team1,0); + } else if (decision==2) { // Team 2 wins + team1.addMatch(team2,0); + team2.addMatch(team1,1); + } else { + team1.addMatch(team2,-1); + team2.addMatch(team1,-1); + } + } + + public void getTypes(species) { + dexdata=OpenDexData; + DexDataOffset(dexdata,species,8); + type1=dexdata.fgetb; + type2=dexdata.fgetb; + dexdata.close; + return type1==type2 ? [type1] : [type1,type2]; + } + + public void TrainerInfo(pokemonlist,trfile,rules) { + bttrainers=GetBTTrainers(trfile); + btpokemon=GetBTPokemon(trfile); + trainertypes=load_data("Data/trainertypes.dat"); + if (bttrainers.Length==0) { + for (int i = 0; i < 200; i++) { + if (block_given? && i%50==0) yield(null); + trainerid=0; + money=30; + do { //;loop + trainerid=Core.Rand.Next(Trainers.maxValue)+1; + if (Core.Rand.Next(30)==0) trainerid=getID(Trainers,:YOUNGSTER); + if (trainerid.ToString(TextScripts.Name)=="") continue; + money=(!trainertypes[trainerid] || + !trainertypes[trainerid][3]) ? 30 : trainertypes[trainerid][3]; + if (money>=100) continue; + break; + } + gender=(!trainertypes[trainerid] || + !trainertypes[trainerid][7]) ? 2 : trainertypes[trainerid][7]; + randomName=getRandomNameEx(gender,null,0,12); + tr=[trainerid,randomName,_INTL("Here I come!"), + _INTL("Yes, I won!"),_INTL("Man, I lost!"),[]]; + bttrainers.Add(tr); + } + bttrainers.sort!{|a,b| + money1=(!trainertypes[a[0]] || + !trainertypes[a[0]][3]) ? 30 : trainertypes[a[0]][3]; + money2=(!trainertypes[b[0]] || + !trainertypes[b[0]][3]) ? 30 : trainertypes[b[0]][3]; + money1==money2 ? a[0]<=>b[0] : money1<=>money2; + } + } + if (block_given?) yield(null); + suggestedLevel=rules.ruleset.suggestedLevel; + rulesetTeam=rules.ruleset.copy.clearPokemonRules; + pkmntypes=[]; + validities=[]; + t=new Time(); + foreach (var pkmn in pokemonlist) { + if (pkmn.level!=suggestedLevel) pkmn.level=suggestedLevel; + pkmntypes.Add(getTypes(pkmn.Species)); + validities.Add(rules.ruleset.isPokemonValid(pkmn)); + } + newbttrainers=[]; + for (int btt = 0; btt < bttrainers.Length; btt++) { + if (block_given? && btt%50==0) yield(null); + trainerdata=bttrainers[btt]; + pokemonnumbers=trainerdata[5] || []; + species=[]; + types=[]; + // p trainerdata[1] + (Types.maxValue+1).times {|typ| types[typ]=0 } + foreach (var pn in pokemonnumbers) { + pkmn=btpokemon[pn]; + species.Add(pkmn.Species); + t=getTypes(pkmn.Species); + foreach (var typ in t) { + types[typ]+=1; + } + } + species|=[]; // remove duplicates + count=0; + (Types.maxValue+1).times {|typ| + if (types[typ]>=5) { + types[typ]/=4; + if (types[typ]>10) types[typ]=10; + } else { + types[typ]=0; + } + count+=types[typ]; + } + if (count==0) types[0]=1; + if (pokemonnumbers.Length==0) { + int typ = 0; do {|typ| + types[typ]=1; + } while (typ < ); //(Types.maxValue+1).times + } + numbers=[]; + if (pokemonlist) { + numbersPokemon=[]; + // p species + for (int index = 0; index < pokemonlist.Length; index++) { + pkmn=pokemonlist[index]; + if (!validities[index]) continue; + absDiff=((index*8/pokemonlist.Length)-(btt*8/bttrainers.Length)).abs; + sameDiff=(absDiff==0); + if (species.Contains(pkmn.Species)) { + weight= new []{ 32,12,5,2,1,0,0,0 }[[absDiff,7].min]; + if (Core.Rand.Next(40)0 && !numbers.Contains(index)) { + numbers.Add(index); + numbersPokemon.Add(pokemonlist[index]); + break; + } + } + } + if (numbers.Length>=6 && rules.ruleset.hasValidTeam(numbersPokemon)) break; + } + if (numbers.Length<6 || !rules.ruleset.hasValidTeam(numbersPokemon)) { + while (numbers.Length=10) { + ret.delete_at(firstIndex); + } + ret.Add(pk); + } + } + return ret; + } + + public void ReplenishBattlePokemon(party,rule) { + while (party.Length<20) { + pkmn=RandomPokemonFromRule(rule,null); + found=false; + foreach (var pk in party) { + if (isBattlePokemonDuplicate(pkmn,pk)) { + found=true; break; + } + } + if (!found) party.Add(pkmn); + } + } + + public void GenerateChallenge(rule,tag) { + oldrule=rule; + yield(_INTL("Preparing to generate teams")); + rule=rule.copy.setNumber(2); + yield(null); + party=load_data(tag+".rxdata") rescue []; + teams=load_data(tag+"teams.rxdata") rescue []; + if (teams.Length<10) { + btpokemon=GetBTPokemon(tag); + if (btpokemon && btpokemon.Length!=0) { + suggestedLevel=rule.ruleset.suggestedLevel; + foreach (var pk in btpokemon) { + pkmn=pk.createPokemon(suggestedLevel,31,null); + if (rule.ruleset.isPokemonValid(pkmn)) party.Add(pkmn); + } + } + } + yield(null); + party=RemoveDuplicates(party); + yield(null); + maxteams=600; + cutoffrating=65; + toolowrating=40; + iterations=11; + iterations.times do |iter| + save_data(party,tag+".rxdata"); + yield(_INTL("Generating teams ({1} of {2})",iter+1,iterations)); + i=0;while i=80) { + teams[i]=new RuledTeam(party,rule); + } else if (teams[i].Length<2) { + teams[i]=new RuledTeam(party,rule); + } else if (i>=maxteams) { + teams[i]=null; + teams.compact!; + } else if (teams[i].totalGames>=250) { + // retire + for (int j = 0; j < teams[i].Length; j++) { + party.Add(teams[i][j]); + } + teams[i]=new RuledTeam(party,rule); + } else if (teams[i].ratinga.rating } + yield(_INTL("Simulating battles ({1} of {2})",iter+1,iterations)); + i=0; loop do; + changed=false; + teams.Length.times {|j| + yield(null); + other=j;5.times do; + other=Core.Rand.Next(teams.Length); + if (other==j) continue; + } + if (other==j) continue; + changed=true; + RuledBattle(teams[j],teams[other],rule); + } + // i+=1;break if i>=5 + i+=1; + gameCount=0; + foreach (var team in teams) { + gameCount+=team.games; + } + // p [gameCount,teams.Length,gameCount/teams.Length] + yield(null); + if ((gameCount/teams.Length)>=12) { + // p "Iterations: #{i}" + foreach (var team in teams) { + games=team.games; + team.updateRating; + // p [games,team.totalGames,team.ratingRaw] if $INTERNAL + } + // p [gameCount,teams.Length,gameCount/teams.Length] + break; + } + } + teams.sort!{|a,b| b.rating<=>a.rating } + save_data(teams,tag+"teams.rxdata"); + } + party=[]; + yield(null); + teams.sort{|a,b| a.rating<=>b.rating } + foreach (var team in teams) { + if (team.rating>cutoffrating) { + for (int i = 0; i < team.Length; i++) { + party.Add(team[i]); + } + } + } + rule=oldrule; + yield(null); + party=RemoveDuplicates(party); + yield(_INTL("Writing results")); + party=ArrangeByTier(party,rule); + yield(null); + TrainerInfo(party,tag,rule) { yield(null) } + yield(null); + } + + public void WriteCup(id,rules) { + if (!Core.DEBUG) return; + bttrainers=[]; + trlists=(load_data("Data/trainerlists.dat") rescue []); + list=[]; + for (int i = 0; i < trlists.Length; i++) { + tr=trlists[i]; + if (tr[5]) { + list.Add("*"+(tr[3].sub(/\.txt$/,""))); + } else { + list.Add((tr[3].sub(/\.txt$/,""))); + } + } + cmd=0; + if (trlists.Length!=0) { + cmd=Kernel.Message(_INTL("Generate Pokemon teams for this challenge?"), + [_INTL("NO"),_INTL("YES, USE EXISTING"),_INTL("YES, USE NEW")],1); + } else { + cmd=Kernel.Message(_INTL("Generate Pokemon teams for this challenge?"), + [_INTL("YES"),_INTL("NO")],2); + if (cmd==0) { + cmd=2; + } else if (cmd==1) { + cmd=0; + } + } + if (cmd==0 ) return; // No + if (cmd==1 ) { // Yes, use existing + cmd=Kernel.Message(_INTL("Choose a challenge."),list,-1); + if (cmd>=0) { + Kernel.Message(_INTL("This challenge will use the Pokemon list from {1}.",list[cmd])); + for (int i = 0; i < trlists.Length; i++) { + tr=trlists[i]; + while (!tr[5] && tr[2].Contains(id)) { + tr[2].delete(id); + } + } + if (!trlists[cmd][5]) { + trlists[cmd][2].Add(id); + } + save_data(trlists,"Data/trainerlists.dat"); + Graphics.update(); + SaveTrainerLists(); + Graphics.update(); + return; + } else { + return; + } + // Yes, use new + } else if (cmd==2 && !Kernel.ConfirmMessage(_INTL("This may take a long time. Are you sure?"))) { + return; + } + mw=Kernel.CreateMessageWindow; + t=Time.now; + GenerateChallenge(rules,id){|message| + if ((Time.now-t)>=5) { + Graphics.update(); t=Time.now; + } + if (message) { + Kernel.MessageDisplay(mw,message,false); + Graphics.update(); t=Time.now; + } + } + Kernel.DisposeMessageWindow(mw); + Kernel.Message(_INTL("Team generation complete.")); + } + }*/ + + public partial class BaseStatRestriction : PokemonEssentials.Interface.Battle.IBaseStatRestriction { + protected int mn; + protected int mx; + + public BaseStatRestriction(int mn,int mx) { + initialize(mn, mx); + } + + public IBaseStatRestriction initialize(int mn,int mx) { + this.mn=mn;this.mx=mx; + return this; + } + + public bool isValid (IPokemon pkmn) { + int bst=0;//baseStatTotal(pkmn.Species); + if (Game.GameData is IGameOrgBattleGenerator gobg) bst=gobg.baseStatTotal(pkmn.Species); + return bst>=@mn && bst<=@mx; + } + } + + public partial class NonlegendaryRestriction : PokemonEssentials.Interface.Battle.INonlegendaryRestriction { + public bool isValid (IPokemon pkmn) { + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pkmn.Species,31); + PokemonUnity.Monster.Data.PokemonData dexdata = Kernal.PokemonData[pkmn.Species]; + EggGroups compat10=dexdata.EggGroup[0]; //dexdata.fgetb; + EggGroups compat11=dexdata.EggGroup[1]; //dexdata.fgetb; + //DexDataOffset(dexdata,pkmn.Species,18); + //int genderbyte=dexdata.fgetb; + GenderRatio genderbyte=dexdata.GenderEnum; + //dexdata.close; + return (compat10 != EggGroups.UNDISCOVERED && + compat11 != EggGroups.UNDISCOVERED) || + genderbyte!=GenderRatio.Genderless; //genderbyte!=255; + } + } + + public partial class InverseRestriction : PokemonEssentials.Interface.Battle.IInverseRestriction { + protected IBattleRestriction r; + + public InverseRestriction(IBattleRestriction r) { + initialize(r); + } + + public IBattleRestriction initialize(IBattleRestriction r) { + this.r=r; + return this; + } + + public bool isValid (IPokemon pkmn) { + return !@r.isValid(pkmn); + } + } + + public partial class SingleMatch : PokemonEssentials.Interface.Battle.ISingleMatch { + public float opponentRating { get; protected set; } + public float opponentDeviation { get; protected set; } + public int score { get; protected set; } + public int kValue { get; protected set; } + + public SingleMatch(float opponentRating, float opponentDev, int score, int kValue=16) { + initialize(opponentRating, opponentDev, score, kValue); + } + + public ISingleMatch initialize(float opponentRating, float opponentDev, int score, int kValue=16) { + this.opponentRating=opponentRating; + this.opponentDeviation=opponentDev; + this.score= score; // -1=draw, 0=lose, 1=win + this.kValue = kValue; + return this; + } + } + + public partial class MatchHistory : PokemonEssentials.Interface.Battle.IMatchHistory, IEnumerable { + //include Enumerable; + protected List matches;// { get; protected set; } + protected IPlayerRating thisPlayer;// { get; protected set; } + + public IEnumerable each() { + foreach (var item in @matches) { yield return item; } + } + + public int length { get { + return @matches.Count; + } } + + public ISingleMatch this[int i] { get { + return @matches[i]; + } } + + public MatchHistory(IPlayerRating thisPlayer) { + initialize(thisPlayer); + } + + public IMatchHistory initialize(IPlayerRating thisPlayer) { + this.matches=new List(); + this.thisPlayer=thisPlayer; + return this; + } + + public void addMatch(IPlayerRating otherPlayer, int result) { + // 1=I won; 0=Other player won; -1: Draw + @matches.Add(new SingleMatch( + otherPlayer.rating,otherPlayer.deviation,result)); + } + + public void updateAndClear() { + @thisPlayer.update(@matches); + @matches.Clear(); + } + + public IEnumerator GetEnumerator() + { + return ((IEnumerable)matches).GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return ((IEnumerable)matches).GetEnumerator(); + } + } + + public partial class PlayerRatingElo : PlayerRating, PokemonEssentials.Interface.Battle.IPlayerRatingElo { + //public float rating { get; protected set; } + const int K_VALUE = 16; + + public PlayerRatingElo() { + initialize(); + } + + new public IPlayerRatingElo initialize() { + @rating=1600.0f; + @deviation=0; + @volatility=0; + @estimatedRating=null; + return this; + } + + //public float winChancePercent() { + public override float winChancePercent { get { + if (@estimatedRating != null) return @estimatedRating.Value; + float x=1+(float)Math.Pow(10.0f,(@rating-1600.0f)/400.0f); + @estimatedRating=x==0 ? 1.0f : 1.0f/x; + return @estimatedRating.Value; + } } + + public void update(IList matches) { + if (matches.Count == 0) { + return; + } + double stake=0; + //for (int i = 0; i < matches.Length; i++) { + foreach (ISingleMatch match in matches) { + float score=(match.score==-1) ? 0.5f : match.score; + double e=1+Math.Pow(10.0f,(@rating-match.opponentRating)/400.0f); + stake+=match.kValue*(score-e); + } + @rating+=(float)stake; + } + } + + public partial class PlayerRating : PokemonEssentials.Interface.Battle.IPlayerRating { + public float volatility { get; protected set; } + public float deviation { get; protected set; } + public float rating { get; protected set; } + public float? estimatedRating;// { get; protected set; } + + public PlayerRating() { + initialize(); + } + + public virtual IPlayerRating initialize() { + @rating=1500.0f; + @deviation=350.0f; + @volatility=0.9f; + @estimatedRating=null; + return this; + } + + public virtual float winChancePercent { get { + if (@estimatedRating != null) return @estimatedRating.Value; + if (@deviation > 100) { + // http://www.smogon.com/forums/showthread.php?t=55764 + float otherRating=1500.0f; + float otherDeviation=350.0f; + float s=(float)Math.Sqrt(100000.0f+@deviation*@deviation+otherDeviation*otherDeviation); + float g=(float)Math.Pow(10.0f,(otherRating-@rating)*0.79f/s); + @estimatedRating=(1.0f/(1.0f+g))*100.0f; // Percent chance that I win against opponent + } else { + // GLIXARE method + float rds = @deviation * @deviation; + float sqr = (float)Math.Sqrt(15.905694331435d * (rds + 221781.21786254d)); + double inner = (1500.0f - @rating) * Math.PI / sqr; + @estimatedRating=(10000.0f / (1.0f + (float)Math.Pow(10.0f,inner)) + 0.5f) / 100.0f; + } + return @estimatedRating.Value; + } } + + public void update(IList matches,float system=1.2f) { + volatility = volatility2; + deviation = deviation2; + rating = rating2; + if (matches.Count == 0) { + setDeviation2((float)Math.Sqrt(deviation * deviation + volatility * volatility)); + return; + } + List g=new List(); + List e=new List(); + List score=new List(); + for (int i = 0; i < matches.Count; i++) { + ISingleMatch match = matches[i]; + g[i] = (float)getGFactor(match.opponentDeviation); + e[i] = (float)getEFactor(rating,match.opponentRating, g[i]); + score[i] = match.score; + } + // Estimated variance + float variance = 0.0f; + for (int i = 0; i < matches.Count; i++) { + variance += g[i]*g[i]*e[i]*(1-e[i]); + } + variance=1.0f/variance; + // Improvement sum + double sum = 0.0d; + for (int i = 0; i < matches.Count; i++) { + double v = score[i]; + if ((v != -1)) { + sum += g[i]*(((float)v)-e[i]); + } + } + volatility = getUpdatedVolatility(volatility,deviation,variance,(float)sum,system); + // Update deviation + float t = deviation * deviation + volatility * volatility; + deviation = 1.0f / (float)Math.Sqrt(1.0f / t + 1.0f / variance); + // Update rating + rating = rating + deviation * deviation * (float)sum; + setRating2(rating); + setDeviation2(deviation); + setVolatility2(volatility); + } + + //private; + + //private float volatility { get; protected set; } + + private float rating2 { get { + return (@rating-1500.0f)/173.7178f; + } } + + private float deviation2 { get { + return (@deviation)/173.7178f; + } } + + private double getGFactor(float deviation) { + // deviation is not yet in glicko2 + deviation/=173.7178f; + return 1.0d / Math.Sqrt(1.0d + (3.0d*deviation*deviation) / (Math.PI*Math.PI)); + } + + private double getEFactor(float rating,float opponentRating, float g) { + // rating is already in glicko2 + // opponentRating is not yet in glicko2 + opponentRating=(opponentRating-1500.0f)/173.7178f; + return 1.0f / (1.0f + Math.Exp(-g * (rating - opponentRating))); + } + + //alias volatility2 volatility; + private float volatility2 { get { return volatility; } } + + private void setVolatility2(float value) { + @volatility=value; + } + + private void setRating2(float value) { + @estimatedRating=null; + @rating=(value*173.7178f)+1500.0f; + } + + private void setDeviation2(float value) { + @estimatedRating=null; + @deviation=(value*173.7178f); + } + + private float getUpdatedVolatility(float volatility, float deviation, float variance, float improvementSum, float system) { + double improvement = improvementSum * variance; + double a = Math.Log(volatility * volatility); + double squSystem = system * system; + double squDeviation = deviation * deviation; + double squVariance = variance + variance; + double squDevplusVar = squDeviation + variance; + double x0 = a; + int n = 0; do { // Up to 100 iterations to avoid potentially infinite loops + double e = Math.Exp(x0); + double d = squDevplusVar + e; + double squD = d * d; + double i = improvement / d; + double h1 = -(x0 - a) / squSystem - 0.5 * e * i * i; + double h2 = -1.0 / squSystem - 0.5 * e * squDevplusVar / squD; + h2 += 0.5 * squVariance * e * (squDevplusVar - e) / (squD * d); + double x1 = x0; + x0 -= h1 / h2; + if (Math.Abs(x1 - x0) < 0.000001) { + break; + } + } while (n < 100); //100.times + return (float)Math.Exp(x0 / 2.0f); + } + } + + public partial class RuledTeam : PokemonEssentials.Interface.Battle.IRuledTeam { + protected IMatchHistory @history; + protected IPlayerRating _rating; + protected int? _totalGames; + + public float rating { get { + return _rating.winChancePercent; + } } + + public float[] ratingRaw { get { + return new float[] { _rating.rating, _rating.deviation, _rating.volatility, _rating.winChancePercent }; + } } + + public IPlayerRating ratingData { get { + return _rating; + } } + + public int totalGames { get { + return (_totalGames ?? 0) + this.games; + } } + + public void updateRating() { + if (_totalGames == null) _totalGames=0; + int oldgames=this.games; + @history.updateAndClear(); + int newgames=this.games; + _totalGames+=(oldgames-newgames); + } + + public bool compare(IRuledTeam other) { + //return _rating.compare(other.ratingData); //ToDo: Uncomment... + return false; + } + + public void addMatch(IRuledTeam other,int score) { + @history.addMatch(other.ratingData,score); + } + + //public void addMatch(IRuledTeam other,bool? score) { + // @history.addMatch(other.ratingData,score); + //} + + public int games { get { + return @history.length; + } } + + public IList team { get; protected set; } + + public RuledTeam(IList party, IPokemonChallengeRules rule) { + initialize(party, rule); + } + + public IRuledTeam initialize(IList party, IPokemonChallengeRules rule) { + int count=rule.ruleset.suggestedNumber; + @team=new List(); + List retnum=new List(); + do { //;loop + for (int i = 0; i < count; i++) { + retnum[i] = Core.Rand.Next(party.Count); + @team[i] = party[retnum[i]]; + party.RemoveAt(retnum[i]); + } + if (rule.ruleset.isValid(@team.ToArray())) break; + } while (true); + _totalGames=0; + _rating=new PlayerRating(); + @history=new MatchHistory(_rating); + return this; + } + + public IPokemon this[int i] { get { + return @team[i]; + } } + + public override string ToString() { + return "["+((int)rating).ToString()+","+((int)@games).ToString()+"]"; + } + + public int length { get { + return @team.Count; + } } + + public IList load(IList party) { + IList ret = new List(); + for (int i = 0; i < team.Count; i++) { + //ret.Add(party[team[i]]); //ToDo: Uncomment... + } + return ret; + } + } +} \ No newline at end of file diff --git a/PokemonUnity.Application/Combat/Match/Regulated/OrgBattleRules.cs b/PokemonUnity.Application/Combat/Match/Regulated/OrgBattleRules.cs index 0fa0e284b..83f99eb98 100644 --- a/PokemonUnity.Application/Combat/Match/Regulated/OrgBattleRules.cs +++ b/PokemonUnity.Application/Combat/Match/Regulated/OrgBattleRules.cs @@ -6,19 +6,19 @@ using PokemonUnity.Monster; using PokemonUnity.Inventory; using PokemonUnity.Utility; +using PokemonEssentials.Interface; using PokemonEssentials.Interface.Battle; using PokemonEssentials.Interface.Screen; using PokemonEssentials.Interface.PokeBattle; -using PokemonEssentials.Interface; namespace PokemonUnity { public partial class Game : PokemonEssentials.Interface.Battle.IGameOrgBattleRules { - public int pbBaseStatTotal(Pokemons species) + public int BaseStatTotal(Pokemons species) { - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,species,10); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,species,10); //int bst=dexdata.fgetb; int bst = Kernal.PokemonData[species].BaseStatsHP; //dexdata.fgetb; bst += Kernal.PokemonData[species].BaseStatsATK; //dexdata.fgetb; @@ -30,15 +30,15 @@ public int pbBaseStatTotal(Pokemons species) return bst; } - public int pbBalancedLevelFromBST(Pokemons species) + public int BalancedLevelFromBST(Pokemons species) { - return (int)Math.Round(113 - (pbBaseStatTotal(species) * 0.072)); + return (int)Math.Round(113 - (BaseStatTotal(species) * 0.072)); } - public bool pbTooTall(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon, double maxHeightInMeters) + public bool TooTall(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon, double maxHeightInMeters) { - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,pokemon is Numeric ? pokemon : pokemon.Species,33); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pokemon is Numeric ? pokemon : pokemon.Species,33); float height = Kernal.PokemonData[pokemon.Species].Height; //dexdata.fgetw; float weight = Kernal.PokemonData[pokemon.Species].Weight; //dexdata.fgetw; maxHeightInMeters = Math.Round(maxHeightInMeters * 10); @@ -46,10 +46,10 @@ public bool pbTooTall(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon, d return height > maxHeightInMeters; } - public bool pbTooHeavy(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon, double maxWeightInKg) + public bool TooHeavy(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon, double maxWeightInKg) { - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,pokemon is Numeric ? pokemon : pokemon.Species,33); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pokemon is Numeric ? pokemon : pokemon.Species,33); float height = Kernal.PokemonData[pokemon.Species].Height; //dexdata.fgetw; float weight = Kernal.PokemonData[pokemon.Species].Weight; //dexdata.fgetw; maxWeightInKg = Math.Round(maxWeightInKg * 10f); @@ -61,7 +61,7 @@ public bool pbTooHeavy(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon, // ########################################## // Stadium Cups // ########################################## - public IPokemonChallengeRules pbPikaCupRules(bool @double) + public IPokemonChallengeRules PikaCupRules(bool @double) { IPokemonChallengeRules ret = new PokemonChallengeRules(); ret.addPokemonRule(new StandardRestriction()); @@ -75,7 +75,7 @@ public IPokemonChallengeRules pbPikaCupRules(bool @double) return ret; } - public IPokemonChallengeRules pbPokeCupRules(bool @double) + public IPokemonChallengeRules PokeCupRules(bool @double) { IPokemonChallengeRules ret = new PokemonChallengeRules(); ret.addPokemonRule(new StandardRestriction()); @@ -89,7 +89,7 @@ public IPokemonChallengeRules pbPokeCupRules(bool @double) return ret; } - public IPokemonChallengeRules pbPrimeCupRules(bool @double) + public IPokemonChallengeRules PrimeCupRules(bool @double) { IPokemonChallengeRules ret = new PokemonChallengeRules(); ret.setLevelAdjustment(new OpenLevelAdjustment(Core.MAXIMUMLEVEL)); @@ -102,7 +102,7 @@ public IPokemonChallengeRules pbPrimeCupRules(bool @double) return ret; } - public IPokemonChallengeRules pbFancyCupRules(bool @double) + public IPokemonChallengeRules FancyCupRules(bool @double) { IPokemonChallengeRules ret = new PokemonChallengeRules(); ret.addPokemonRule(new StandardRestriction()); @@ -120,7 +120,7 @@ public IPokemonChallengeRules pbFancyCupRules(bool @double) return ret; } - public IPokemonChallengeRules pbLittleCupRules(bool @double) + public IPokemonChallengeRules LittleCupRules(bool @double) { IPokemonChallengeRules ret = new PokemonChallengeRules(); ret.addPokemonRule(new StandardRestriction()); @@ -138,7 +138,7 @@ public IPokemonChallengeRules pbLittleCupRules(bool @double) return ret; } - public IPokemonChallengeRules pbStrictLittleCupRules(bool @double) + public IPokemonChallengeRules StrictLittleCupRules(bool @double) { IPokemonChallengeRules ret = new PokemonChallengeRules(); ret.addPokemonRule(new StandardRestriction()); @@ -160,7 +160,7 @@ public IPokemonChallengeRules pbStrictLittleCupRules(bool @double) // ########################################## // Battle Frontier Rules // ########################################## - public IPokemonChallengeRules pbBattleTowerRules(bool @double, bool openlevel) + public IPokemonChallengeRules BattleTowerRules(bool @double, bool openlevel) { IPokemonChallengeRules ret = new PokemonChallengeRules(); if (openlevel) @@ -179,17 +179,17 @@ public IPokemonChallengeRules pbBattleTowerRules(bool @double, bool openlevel) return ret; } - public IPokemonChallengeRules pbBattlePalaceRules(bool @double, bool openlevel) + public IPokemonChallengeRules BattlePalaceRules(bool @double, bool openlevel) { - return pbBattleTowerRules(@double, openlevel).setBattleType(new BattlePalace()); + return BattleTowerRules(@double, openlevel).setBattleType(new BattlePalace()); } - public IPokemonChallengeRules pbBattleArenaRules(bool openlevel) + public IPokemonChallengeRules BattleArenaRules(bool openlevel) { - return pbBattleTowerRules(false, openlevel).setBattleType(new BattleArena()); + return BattleTowerRules(false, openlevel).setBattleType(new BattleArena()); } - public IPokemonChallengeRules pbBattleFactoryRules(bool @double, bool openlevel) + public IPokemonChallengeRules BattleFactoryRules(bool @double, bool openlevel) { IPokemonChallengeRules ret = new PokemonChallengeRules(); if (openlevel) @@ -515,7 +515,7 @@ public override int[] getAdjustment(PokemonEssentials.Interface.PokeBattle.IPoke int[] ret = new int[6]; for (int i = 0; i < thisTeam.Length; i++) { - ret[i] = (Game.GameData as IGameOrgBattleRules).pbBalancedLevelFromBST(thisTeam[i].Species); + ret[i] = (Game.GameData as IGameOrgBattleRules).BalancedLevelFromBST(thisTeam[i].Species); } return ret; } @@ -702,7 +702,7 @@ public partial class SpeciesRestriction : IBattleRestriction, PokemonEssentials. private Pokemons[] specieslist; public SpeciesRestriction(params Pokemons[] specieslist) { - this.specieslist = specieslist; + this.specieslist = (Pokemons[])specieslist.Clone(); } public bool isSpecies(Pokemons species, Pokemons[] specieslist) @@ -730,7 +730,7 @@ public partial class BannedSpeciesRestriction : IBattleRestriction, PokemonEssen private Pokemons[] specieslist; public BannedSpeciesRestriction(params Pokemons[] specieslist) { - this.specieslist = specieslist; + this.specieslist = (Pokemons[])specieslist.Clone(); } public bool isSpecies(Pokemons species, Pokemons[] specieslist) @@ -758,7 +758,7 @@ public partial class BannedItemRestriction : IBattleRestriction, PokemonEssentia private Items[] specieslist; public BannedItemRestriction(params Items[] specieslist) { - this.specieslist = specieslist; + this.specieslist = (Items[])specieslist.Clone(); } //public bool isSpecies (Pokemons species,Pokemons[] specieslist) { @@ -789,7 +789,7 @@ public partial class RestrictedSpeciesRestriction : IBattleTeamRestriction, Poke private Pokemons[] specieslist; public RestrictedSpeciesRestriction(int maxValue, params Pokemons[] specieslist) { - this.specieslist = specieslist; + this.specieslist = (Pokemons[])specieslist.Clone(); this.maxValue = maxValue; } @@ -837,15 +837,15 @@ public partial class StandardRestriction : IBattleRestriction, PokemonEssentials public bool isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { if (pokemon == null || pokemon.isEgg) return false; - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,pokemon.Species,10); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pokemon.Species,10); int basestatsum = Kernal.PokemonData[pokemon.Species].BaseStatsHP; //dexdata.fgetb; basestatsum += Kernal.PokemonData[pokemon.Species].BaseStatsATK; //dexdata.fgetb; basestatsum += Kernal.PokemonData[pokemon.Species].BaseStatsDEF; //dexdata.fgetb; basestatsum += Kernal.PokemonData[pokemon.Species].BaseStatsSPE; //dexdata.fgetb; basestatsum += Kernal.PokemonData[pokemon.Species].BaseStatsSPD; //dexdata.fgetb; basestatsum += Kernal.PokemonData[pokemon.Species].BaseStatsSPA; //dexdata.fgetb; - //pbDexDataOffset(dexdata,pokemon.Species,2); + //DexDataOffset(dexdata,pokemon.Species,2); Abilities ability1 = Kernal.PokemonData[pokemon.Species].Ability[0]; //dexdata.fgetw; Abilities ability2 = Kernal.PokemonData[pokemon.Species].Ability[1]; //dexdata.fgetw; //dexdata.close(); @@ -918,7 +918,7 @@ public HeightRestriction(int maxHeightInMeters) public bool isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { - return !(Game.GameData as IGameOrgBattleRules).pbTooTall(pokemon, @level); + return !(Game.GameData as IGameOrgBattleRules).TooTall(pokemon, @level); } } @@ -932,7 +932,7 @@ public WeightRestriction(int maxWeightInKg) public bool isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { - return !(Game.GameData as IGameOrgBattleRules).pbTooHeavy(pokemon, @level); + return !(Game.GameData as IGameOrgBattleRules).TooHeavy(pokemon, @level); } } @@ -1055,7 +1055,7 @@ public partial class BabyRestriction : IBattleRestriction, PokemonEssentials.Int public bool isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { //baby=babySpeciesData[pokemon.Species] != null ? babySpeciesData[pokemon.Species] : - // (babySpeciesData[pokemon.Species]=pbGetBabySpecies(pokemon.Species)); + // (babySpeciesData[pokemon.Species]=GetBabySpecies(pokemon.Species)); //return baby==pokemon.Species; return Kernal.PokemonData[pokemon.Species].IsBaby; } @@ -1066,11 +1066,11 @@ public partial class UnevolvedFormRestriction : IBattleRestriction, PokemonEssen public bool isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { //baby=$babySpeciesData[pokemon.Species] ? $babySpeciesData[pokemon.Species] : - // ($babySpeciesData[pokemon.Species]=pbGetBabySpecies(pokemon.Species)) + // ($babySpeciesData[pokemon.Species]=GetBabySpecies(pokemon.Species)) //if (baby!=pokemon.Species) return false; if (!Kernal.PokemonData[pokemon.Species].IsBaby) return false; //bool canEvolve=(canEvolve[pokemon.Species]!=null) ? canEvolve[pokemon.Species] : - // (canEvolve[pokemon.Species]=(pbGetEvolvedFormData(pokemon.Species).Length!=0)); + // (canEvolve[pokemon.Species]=(GetEvolvedFormData(pokemon.Species).Length!=0)); bool canEvolve = Kernal.PokemonEvolutionsData[pokemon.Species].Length != 0; if (!canEvolve) return false; return true; @@ -1141,7 +1141,7 @@ public static bool check(string name, Pokemons species) { return false; } - //foreach (var i in @@namesMaxValue..PBSpecies.maxValue) { + //foreach (var i in @@namesMaxValue..Species.maxValue) { foreach (Pokemons i in Kernal.PokemonData.Keys) { if (i != species) @@ -1272,7 +1272,7 @@ public int suggestedNumber /// /// public int suggestedLevel - { get { + { get { int minLevel = 1; int maxLevel = Core.MAXIMUMLEVEL; int num = this.suggestedNumber; @@ -1325,7 +1325,7 @@ public IPokemonRuleSet addPokemonRule(IBattleRestriction rule) /// /// This rule checks - /// - the entire team to determine whether a subset of the team meets the rule, or + /// - the entire team to determine whether a subset of the team meets the rule, or /// - a list of Pokemon whose length is equal to the suggested number. For an /// entire team, the condition must hold for at least one possible subset of /// the team, but not necessarily for the entire team. @@ -1400,9 +1400,9 @@ public bool hasRegistrableTeam(PokemonEssentials.Interface.PokeBattle.IPokemon[] { if (list == null || list.Length < this.minTeamLength) return false; //Array.ForEach( //PokemonEssentials.Interface.PokeBattle.IPokemon[] |comb| - // (Game.GameData as IGameUtility).pbEachCombination(list, this.maxTeamLength), (comb) => { + // (Game.GameData as IGameUtility).EachCombination(list, this.maxTeamLength), (comb) => { foreach ( PokemonEssentials.Interface.PokeBattle.IPokemon[] comb in - (Game.GameData as IGameUtility).pbEachCombination(list, this.maxTeamLength)) { + (Game.GameData as IGameUtility).EachCombination(list, this.maxTeamLength)) { if (canRegisterTeam(comb)) return true; }; return false; @@ -1443,7 +1443,7 @@ public bool canRegisterTeam(PokemonEssentials.Interface.PokeBattle.IPokemon[] te } if (@subsetRules.Count > 0) { - //pbEachCombination(team,teamNumber){|comb| + //EachCombination(team,teamNumber){|comb| // bool isValid=true; // foreach (var rule in @subsetRules) { // if (!rule.isValid(comb)) { @@ -1486,7 +1486,7 @@ public bool hasValidTeam(PokemonEssentials.Interface.PokeBattle.IPokemon[] team) } if (@teamRules.Count > 0) { - //pbEachCombination(team,teamNumber){|comb| + //EachCombination(team,teamNumber){|comb| // if (isValid(comb)) { // return true; // } @@ -1554,7 +1554,7 @@ public bool isValid(PokemonEssentials.Interface.PokeBattle.IPokemon[] team, ILis public partial class BattleType : IBattleType { - public virtual PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) + public virtual PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) { return (PokemonEssentials.Interface.PokeBattle.IBattle)new Combat.Battle(scene, trainer1[0].party, trainer2[0].party, trainer1, trainer2); @@ -1563,7 +1563,7 @@ public virtual PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle(IPo public partial class BattleTower : BattleType, PokemonEssentials.Interface.Battle.IBattleTower { - public override PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) + public override PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) { //ToDo: Uncomment... After adding recorded battles classes //return (PokemonEssentials.Interface.PokeBattle.IBattle)new Combat.PokeBattle_RecordedBattle(scene, @@ -1574,7 +1574,7 @@ public override PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle(IP public partial class BattlePalace : BattleType, PokemonEssentials.Interface.Battle.IBattlePalace { - public override PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) + public override PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) { //ToDo: Uncomment... After adding recorded battles classes //return (PokemonEssentials.Interface.PokeBattle.IBattle)new Combat.PokeBattle_RecordedBattlePalace(scene, @@ -1585,7 +1585,7 @@ public override PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle(IP public partial class BattleArena : BattleType, PokemonEssentials.Interface.Battle.IBattleArena { - public override PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) + public override PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) { //ToDo: Uncomment... After adding recorded battles classes //return (PokemonEssentials.Interface.PokeBattle.IBattle)new Combat.PokeBattle_RecordedBattleArena(scene, @@ -1617,7 +1617,7 @@ public partial class DoubleBattle : BattleRule, PokemonEssentials.Interface.Batt { public override void setRule(PokemonEssentials.Interface.PokeBattle.IBattle battle) { - battle.doublebattle = battle.pbDoubleBattleAllowed(); + battle.doublebattle = battle.DoubleBattleAllowed(); } } @@ -1815,7 +1815,7 @@ public IPokemonChallengeRules addBattleRule(IBattleRule rule) public PokemonEssentials.Interface.PokeBattle.IBattle createBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2) { - PokemonEssentials.Interface.PokeBattle.IBattle battle = @battletype.pbCreateBattle(scene, trainer1, trainer2); + PokemonEssentials.Interface.PokeBattle.IBattle battle = @battletype.CreateBattle(scene, trainer1, trainer2); foreach (var p in @battlerules) { p.setRule(battle); diff --git a/PokemonUnity.Application/Combat/Match/SafariZone.cs b/PokemonUnity.Application/Combat/Match/SafariZone.cs index 723d4df83..bec1614c1 100644 --- a/PokemonUnity.Application/Combat/Match/SafariZone.cs +++ b/PokemonUnity.Application/Combat/Match/SafariZone.cs @@ -34,7 +34,7 @@ public PokemonEssentials.Interface.Screen.ISafariZone_Scene initialize(PokemonEs base.party2=party; @peer=Monster.PokeBattle_BattlePeer.create(); base.player=new ITrainer[] { player }; - @battlers=new IBattler[] { + _battlers=new IBattler[] { new Pokemon(this,0), //PokeBattle_FakeBattler(party[0],0), new Pokemon(this,1), //PokeBattle_FakeBattler(party[0],1), new Pokemon(this,2), //PokeBattle_FakeBattler(party[0],2), @@ -47,10 +47,10 @@ public PokemonEssentials.Interface.Screen.ISafariZone_Scene initialize(PokemonEs return this; } - //public override bool pbIsOpposing (int index) { + //public override bool IsOpposing (int index) { // return (index%2)==1; //} - //public override bool pbIsDoubleBattler (int index) { + //public override bool IsDoubleBattler (int index) { // return (index>=2); //} //public override IBattler[] battlers { get; private set; } @@ -67,19 +67,19 @@ public int ballCount{ get { @ballcount=(value<0) ? 0 : value; } } - //public Player pbPlayer() { + //public Player Player() { // return @player; //} //public class BattleAbortedException : Exception{ //} - //public override void pbAbort() { + //public override void Abort() { // //throw new BattleAbortedException("Battle aborted"); // GameDebug.LogError("Battle aborted"); //} - public int pbEscapeRate(int rareness) { + public int EscapeRate(int rareness) { int ret=25; if (rareness<200) ret=50; if (rareness<150) ret=75; @@ -88,45 +88,45 @@ public int pbEscapeRate(int rareness) { return ret; } - public BattleResults pbStartBattle() { + public BattleResults StartBattle() { try { //begin PokemonEssentials.Interface.PokeBattle.IPokemon wildpoke=@party2[0]; - this.pbPlayer().seen[wildpoke.Species]=true; + this.Player().seen[wildpoke.Species]=true; //Game.GameData.Player.Pokedex[(int)wildpoke.Species,0]=(byte)1; - //Game.pbSeenForm(wildpoke); - base.pbSetSeen(wildpoke); - if (@scene is PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics s0) s0.pbStartBattle(this); - pbDisplayPaused(Game._INTL("Wild {1} appeared!",wildpoke.Name)); - if (@scene is PokemonEssentials.Interface.Screen.IPokeBattle_Scene s1) s1.pbSafariStart(); - //dexdata=pbOpenDexData; - //pbDexDataOffset(dexdata,wildpoke.Species,16); + //Game.SeenForm(wildpoke); + base.SetSeen(wildpoke); + if (@scene is PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics s0) s0.StartBattle(this); + DisplayPaused(Game._INTL("Wild {1} appeared!",wildpoke.Name)); + if (@scene is PokemonEssentials.Interface.Screen.IPokeBattle_Scene s1) s1.SafariStart(); + //dexdata=OpenDexData; + //DexDataOffset(dexdata,wildpoke.Species,16); //rareness=dexdata.fgetb; // Get rareness from dexdata file //dexdata.close; int rareness = (int)Kernal.PokemonData[wildpoke.Species].Rarity; int g=(rareness*100)/1275; - int e=(pbEscapeRate(rareness)*100)/1275; + int e=(EscapeRate(rareness)*100)/1275; g=(int)Math.Min((int)Math.Max(g,3),20); e=(int)Math.Min((int)Math.Max(e,3),20); int lastCommand=0; do { //begin; - int cmd=(@scene as PokemonEssentials.Interface.Screen.IPokeBattle_Scene).pbSafariCommandMenu(0); + int cmd=(@scene as PokemonEssentials.Interface.Screen.IPokeBattle_Scene).SafariCommandMenu(0); switch (cmd) { case 0: // Ball - if (Game.GameData is PokemonEssentials.Interface.IGameUtility pc && pc.pbBoxesFull()) { + if (Game.GameData is PokemonEssentials.Interface.IGameUtility pc && pc.BoxesFull()) { //if (Game.GameData.Player.PC.hasSpace()) { - pbDisplay(Game._INTL("The boxes are full! You can't catch any more Pokémon!")); + Display(Game._INTL("The boxes are full! You can't catch any more Pokémon!")); continue; } @ballCount-=1; int rare=(g*1275)/100; Items safariBall=Items.SAFARI_BALL; if (safariBall != Items.NONE) { - base.pbThrowPokeball(1,safariBall,rare,true); + base.ThrowPokeball(1,safariBall,rare,true); } break; case 1: // Bait - pbDisplayBrief(Game._INTL("{1} threw some bait at the {2}!",this.pbPlayer().name,wildpoke.Name)); - (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_Scene).pbThrowBait(); + DisplayBrief(Game._INTL("{1} threw some bait at the {2}!",this.Player().name,wildpoke.Name)); + (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_Scene).ThrowBait(); g/=2; // Harder to catch e/=2; // Less likely to escape g=(int)Math.Min((int)Math.Max(g,3),20); @@ -134,8 +134,8 @@ public BattleResults pbStartBattle() { lastCommand=1; break; case 2: // Rock - pbDisplayBrief(Game._INTL("{1} threw a rock at the {2}!",this.pbPlayer().name,wildpoke.Name)); - (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_Scene).pbThrowRock(); + DisplayBrief(Game._INTL("{1} threw a rock at the {2}!",this.Player().name,wildpoke.Name)); + (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_Scene).ThrowRock(); g*=2; // Easier to catch e*=2; // More likely to escape g=(int)Math.Min((int)Math.Max(g,3),20); @@ -143,36 +143,36 @@ public BattleResults pbStartBattle() { lastCommand=2; break; case 3: // Run - pbDisplayPaused(Game._INTL("Got away safely!")); + DisplayPaused(Game._INTL("Got away safely!")); @decision=BattleResults.FORFEIT; break; } if (@decision==0) { if (@ballCount<=0) { - pbDisplay(Game._INTL("PA: You have no Safari Balls left! Game over!")); + Display(Game._INTL("PA: You have no Safari Balls left! Game over!")); @decision=BattleResults.LOST; - } else if (pbRandom(100)<5*e) { - pbDisplay(Game._INTL("{1} fled!",wildpoke.Name)); + } else if (Random(100)<5*e) { + Display(Game._INTL("{1} fled!",wildpoke.Name)); @decision=BattleResults.FORFEIT; } else if (lastCommand==1) { - pbDisplay(Game._INTL("{1} is eating!",wildpoke.Name)); + Display(Game._INTL("{1} is eating!",wildpoke.Name)); } else if (lastCommand==2) { - pbDisplay(Game._INTL("{1} is angry!",wildpoke.Name)); + Display(Game._INTL("{1} is angry!",wildpoke.Name)); } else { - pbDisplay(Game._INTL("{1} is watching carefully!",wildpoke.Name)); + Display(Game._INTL("{1} is watching carefully!",wildpoke.Name)); } } } while (@decision==0); - (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).pbEndBattle(@decision); + (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).EndBattle(@decision); } catch { //rescue BattleAbortedException; @decision=0; - (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).pbEndBattle(@decision); + (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).EndBattle(@decision); } return @decision; } // ############ - public void pbDebugUpdate() { + public void DebugUpdate() { @debugupdate+=1; if (@debugupdate==30) { //Graphics?.update(); @@ -180,50 +180,50 @@ public void pbDebugUpdate() { } } - public override void pbDisplayPaused(string msg) { + public override void DisplayPaused(string msg) { if (@debug) { - pbDebugUpdate(); + DebugUpdate(); GameDebug.Log(msg); } else { - (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).pbDisplayPausedMessage(msg); + (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).DisplayPausedMessage(msg); } } - public override void pbDisplay(string msg) { + public override void Display(string msg) { if (@debug) { - pbDebugUpdate(); + DebugUpdate(); GameDebug.Log(msg); } else { - (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).pbDisplayMessage(msg); + (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).DisplayMessage(msg); } } - public override void pbDisplayBrief(string msg) { + public override void DisplayBrief(string msg) { if (@debug) { - pbDebugUpdate(); + DebugUpdate(); GameDebug.Log(msg); } else { - (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).pbDisplayMessage(msg,true); + (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).DisplayMessage(msg,true); } } - public override bool pbDisplayConfirm(string msg) { + public override bool DisplayConfirm(string msg) { if (@debug) { - pbDebugUpdate(); + DebugUpdate(); GameDebug.Log(msg); return true; } else { - return (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).pbDisplayConfirmMessage(msg); + return (@scene as PokemonEssentials.Interface.Screen.IPokeBattle_DebugSceneNoGraphics).DisplayConfirmMessage(msg); } } - public override void pbGainEXP() { + public override void GainEXP() { } - void IScene.pbRefresh() { } + void IScene.Refresh() { } } } \ No newline at end of file diff --git a/PokemonUnity.Application/Combat/Move.cs b/PokemonUnity.Application/Combat/Move.cs index 4517e370c..86afa38b1 100644 --- a/PokemonUnity.Application/Combat/Move.cs +++ b/PokemonUnity.Application/Combat/Move.cs @@ -54,7 +54,7 @@ public abstract class Move //: IBattleMove //public bool IsPhysical { get; set; }// { return Category == Attack.Category.PHYSICAL; } } //public bool IsSpecial { get; set; }// { return Category == Attack.Category.SPECIAL; } } public bool PowerBoost { get; set; } - //public bool pbIsStatus() { return false; } + //public bool IsStatus() { return false; } public string Name { get { return Game._INTL(Kernal.MoveData[MoveId].Name); } } //public string EffectString { get; set; } //public Battle Battle { get { return this.battle ?? Game.battle; } } @@ -99,7 +99,7 @@ public virtual IBattleMove Initialize(IBattle battle, IMove move) /// /// /// - public static IBattleMove pbFromPBMove(IBattle battle, IMove move) + public static IBattleMove FromMove(IBattle battle, IMove move) { if (move == null) move = new Attack.Move(Moves.NONE); //Attack.Data.MoveData movedata = Kernal.MoveData[move.id]; @@ -137,7 +137,7 @@ public virtual int TotalPP { get { // return MoveId //} - public virtual Types pbModifyType(Types type, IBattler attacker, IBattler opponent){ + public virtual Types ModifyType(Types type, IBattler attacker, IBattler opponent){ if (type>=0){ if (attacker.hasWorkingAbility(Abilities.NORMALIZE)) //&& hasConst? (Types.NORMAL) type=Types.NORMAL; @@ -156,9 +156,9 @@ public virtual Types pbModifyType(Types type, IBattler attacker, IBattler oppone return type; } - public virtual Types pbType(Types type, IBattler attacker, IBattler opponent) { + public virtual Types GetType(Types type, IBattler attacker, IBattler opponent) { PowerBoost = false; - type = pbModifyType(type, attacker, opponent); + type = ModifyType(type, attacker, opponent); if (type>=0){ //&& hasConst? (Types.ELECTRIC) if (battle.field.IonDeluge && type == Types.NORMAL) { type = Types.ELECTRIC; @@ -172,57 +172,57 @@ public virtual Types pbType(Types type, IBattler attacker, IBattler opponent) { return type; } - public virtual bool pbIsPhysical(Types type){ + public virtual bool IsPhysical(Types type){ if (Core.USEMOVECATEGORY) return Category == Attack.Category.PHYSICAL; else return Kernal.TypeData[type].Category == Attack.Category.PHYSICAL; } - public virtual bool pbIsSpecial(Types type){ + public virtual bool IsSpecial(Types type){ if (Core.USEMOVECATEGORY) return Category == Attack.Category.SPECIAL; else return Kernal.TypeData[type].Category == Attack.Category.SPECIAL; } - public virtual bool pbIsStatus{ get{ + public virtual bool IsStatus{ get{ return Category == Attack.Category.STATUS;} } - public virtual bool pbIsDamaging() { //get{ - return !pbIsStatus;//} + public virtual bool IsDamaging() { //get{ + return !IsStatus;//} } - public virtual bool pbTargetsMultiple(IBattler attacker){ + public virtual bool TargetsMultiple(IBattler attacker){ int numtargets = 0; //if (Targets == Attack.Target.AllOpposing) { if (Target == Attack.Data.Targets.ALL_OPPONENTS) { // TODO: should apply even if partner faints during an attack - if (!attacker.pbOpposing1.isFainted())numtargets+=1; - if (!attacker.pbOpposing2.isFainted())numtargets+=1; + if (!attacker.Opposing1.isFainted())numtargets+=1; + if (!attacker.Opposing2.isFainted())numtargets+=1; return numtargets>1; //} else if (Targets == Attack.Target.AllNonUsers) { } else if (Target == Attack.Data.Targets.ALL_OTHER_POKEMON) { // TODO: should apply even if partner faints during an attack - if (!attacker.pbOpposing1.isFainted())numtargets+=1; - if (!attacker.pbOpposing2.isFainted())numtargets+=1; - if (!attacker.pbPartner.isFainted())numtargets+=1; + if (!attacker.Opposing1.isFainted())numtargets+=1; + if (!attacker.Opposing2.isFainted())numtargets+=1; + if (!attacker.Partner.isFainted())numtargets+=1; return numtargets>1; } //ToDo: All pokemons (including user) and entire field (pokemons not off screen)? return false; } - public virtual int pbPriority(IBattler attacker){ + public virtual int GetPriority(IBattler attacker){ int ret=Priority; return ret; } - public virtual int pbNumHits(IBattler attacker){ + public virtual int NumHits(IBattler attacker){ // Parental Bond goes here (for single target moves only) if (attacker.hasWorkingAbility(Abilities.PARENTAL_BOND)) - if (pbIsDamaging() && !pbTargetsMultiple(attacker) && - !pbIsMultiHit() && !pbTwoTurnAttack(attacker)){ + if (IsDamaging() && !TargetsMultiple(attacker) && + !IsMultiHit() && !TwoTurnAttack(attacker)){ List exceptions= new List(){ Attack.Data.Effects.x0BE, // Endeavor Attack.Data.Effects.x008, // Selfdestruct/Explosion @@ -234,7 +234,7 @@ public virtual int pbNumHits(IBattler attacker){ return 2; } } - if (pbIsMultiHit()) + if (IsMultiHit()) return Core.Rand.Next(Kernal.MoveMetaData[MoveId].MinHits.Value, Kernal.MoveMetaData[MoveId].MaxHits.Value); //ToDo: Need to record that Parental Bond applies, to weaken the second attack //attacker.effects.ParentalBondApplied = true; @@ -242,20 +242,20 @@ public virtual int pbNumHits(IBattler attacker){ } /// - /// not the same as pbNumHits>1 + /// not the same as NumHits>1 /// - public virtual bool pbIsMultiHit() { //get { + public virtual bool IsMultiHit() { //get { return (Kernal.MoveMetaData[MoveId].MinHits.HasValue || Kernal.MoveMetaData[MoveId].MaxHits.HasValue);//} } - public virtual bool pbTwoTurnAttack(IBattler attacker){ + public virtual bool TwoTurnAttack(IBattler attacker){ return false; } - public virtual void pbAdditionalEffect(IBattler attacker, IBattler opponent){ } + public virtual void AdditionalEffect(IBattler attacker, IBattler opponent){ } - public virtual bool pbCanUseWhileAsleep() { //get { + public virtual bool CanUseWhileAsleep() { //get { return false;//} } @@ -305,34 +305,34 @@ public virtual bool ignoresSubstitute (IBattler attacker){ #endregion #region This move's type effectiveness - public virtual bool pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent){ + public virtual bool TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent){ if (attacker.Index==opponent.Index)return false; if (attacker.hasMoldBreaker())return false; if (opponent.hasWorkingAbility(Abilities.SAP_SIPPER) && type == Types.GRASS){ GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Sap Sipper (made #{Kernal.MoveData[MoveId].Name} ineffective)"); - if (opponent is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.ATTACK, opponent)) - b.pbIncreaseStatWithCause(Stats.ATTACK,1, opponent, Game._INTL(opponent.Ability.ToString(TextScripts.Name))); + if (opponent is IBattlerEffect b && b.CanIncreaseStatStage(Stats.ATTACK, opponent)) + b.IncreaseStatWithCause(Stats.ATTACK,1, opponent, Game._INTL(opponent.Ability.ToString(TextScripts.Name))); else - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} ineffective!", + battle.Display(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)),Kernal.MoveData[MoveId].Name)); return true; } if ((opponent.hasWorkingAbility(Abilities.STORM_DRAIN) && type == Types.WATER) || (opponent.hasWorkingAbility(Abilities.LIGHTNING_ROD) && type == Types.ELECTRIC)){ GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s #{Game._INTL(opponent.Ability.ToString(TextScripts.Name))} (made #{Kernal.MoveData[MoveId].Name} ineffective)"); - if (opponent is IBattlerEffect b && b.pbCanIncreaseStatStage(Stats.SPATK, opponent)) - b.pbIncreaseStatWithCause(Stats.SPATK,1, opponent, Game._INTL(opponent.Ability.ToString(TextScripts.Name))); + if (opponent is IBattlerEffect b && b.CanIncreaseStatStage(Stats.SPATK, opponent)) + b.IncreaseStatWithCause(Stats.SPATK,1, opponent, Game._INTL(opponent.Ability.ToString(TextScripts.Name))); else - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} ineffective!", + battle.Display(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)),Kernal.MoveData[MoveId].Name)); return true; } if (opponent.hasWorkingAbility(Abilities.MOTOR_DRIVE) && type == Types.ELECTRIC){ GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Motor Drive (made #{Kernal.MoveData[MoveId].Name} ineffective)"); - if (opponent is IBattlerEffect b && b.pbCanIncreaseStatStage (Stats.SPEED, opponent)) - b.pbIncreaseStatWithCause(Stats.SPEED,1, opponent, Game._INTL(opponent.Ability.ToString(TextScripts.Name))); + if (opponent is IBattlerEffect b && b.CanIncreaseStatStage (Stats.SPEED, opponent)) + b.IncreaseStatWithCause(Stats.SPEED,1, opponent, Game._INTL(opponent.Ability.ToString(TextScripts.Name))); else - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} ineffective!", + battle.Display(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)),Kernal.MoveData[MoveId].Name)); return true; } @@ -341,11 +341,11 @@ public virtual bool pbTypeImmunityByAbility(Types type, IBattler attacker, IBatt (opponent.hasWorkingAbility(Abilities.WATER_ABSORB) && type == Types.WATER)){ GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s #{Game._INTL(opponent.Ability.ToString(TextScripts.Name))} (made #{@Name} ineffective)"); if (opponent.effects.HealBlock==0){ - if (opponent.pbRecoverHP((int)Math.Floor(opponent.TotalHP/4d),true)>0) - battle.pbDisplay(Game._INTL("{1}'s {2} restored its HP!", + if (opponent.RecoverHP((int)Math.Floor(opponent.TotalHP/4d),true)>0) + battle.Display(Game._INTL("{1}'s {2} restored its HP!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); else - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} useless!", + battle.Display(Game._INTL("{1}'s {2} made {3} useless!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)),Kernal.MoveData[MoveId].Name)); return true; } @@ -354,31 +354,31 @@ public virtual bool pbTypeImmunityByAbility(Types type, IBattler attacker, IBatt GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Flash Fire (made #{@Name} ineffective)"); if (!opponent.effects.FlashFire) { opponent.effects.FlashFire= true; - battle.pbDisplay(Game._INTL("{1}'s {2} raised its Fire power!", + battle.Display(Game._INTL("{1}'s {2} raised its Fire power!", opponent.ToString(), Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); } else - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} ineffective!", + battle.Display(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)),Kernal.MoveData[MoveId].Name)); return true; } - if (opponent.hasWorkingAbility(Abilities.TELEPATHY) && pbIsDamaging() && - !opponent.pbIsOpposing(attacker.Index)){ + if (opponent.hasWorkingAbility(Abilities.TELEPATHY) && IsDamaging() && + !opponent.IsOpposing(attacker.Index)){ GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Telepathy (made #{@Name} ineffective)"); - battle.pbDisplay(Game._INTL("{1} avoids attacks by its ally Pokémon!",opponent.ToString())); + battle.Display(Game._INTL("{1} avoids attacks by its ally Pokémon!",opponent.ToString())); return true; } if (opponent.hasWorkingAbility(Abilities.BULLETPROOF) && Flags.Ballistics){ GameDebug.Log($"[Ability triggered] #{opponent.ToString()}'s Bulletproof (made #{@Name} ineffective)"); - battle.pbDisplay(Game._INTL("{1}'s {2} made {3} ineffective!", + battle.Display(Game._INTL("{1}'s {2} made {3} ineffective!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)),Kernal.MoveData[MoveId].Name)); return true; } return false; } - public virtual float pbTypeModifier(Types type, IBattler attacker, IBattler opponent){ + public virtual float TypeModifier(Types type, IBattler attacker, IBattler opponent){ if (type<0) return 8; - if (opponent.pbHasType(Types.FLYING) && type == Types.GROUND && + if (opponent.HasType(Types.FLYING) && type == Types.GROUND && opponent.hasWorkingItem(Items.IRON_BALL) && !Core.USENEWBATTLEMECHANICS) return 8; Types atype = type; //# attack type Types otype1= opponent.Type1; @@ -416,7 +416,7 @@ public virtual float pbTypeModifier(Types type, IBattler attacker, IBattler oppo if (otype3 == Types.DARK && atype.GetCombinedEffectiveness(otype3) == TypeEffective.Ineffective)mod3 = 2; // } // Delta Stream's weather - if (battle.pbWeather==Weather.STRONGWINDS) { + if (battle.Weather==Weather.STRONGWINDS) { if (otype1 == Types.FLYING && atype.GetCombinedEffectiveness(otype1) == TypeEffective.SuperEffective)mod1 = 2; // if (otype2 == Types.FLYING && atype.GetCombinedEffectiveness(otype2) == TypeEffective.SuperEffective)mod2 = 2; // if (otype3 == Types.FLYING && atype.GetCombinedEffectiveness(otype3) == TypeEffective.SuperEffective)mod3 = 2; // @@ -439,34 +439,34 @@ public virtual float pbTypeModifier(Types type, IBattler attacker, IBattler oppo return mod1* mod2*mod3; } - public virtual double pbTypeModMessages(Types type, IBattler attacker, IBattler opponent){ + public virtual double TypeModMessages(Types type, IBattler attacker, IBattler opponent){ if (type<0) return 8; - double typemod=pbTypeModifier(type, attacker, opponent); + double typemod=TypeModifier(type, attacker, opponent); if (typemod==0) - battle.pbDisplay(Game._INTL("It doesn't affect {1}...",opponent.ToString(true))); + battle.Display(Game._INTL("It doesn't affect {1}...",opponent.ToString(true))); else - if (pbTypeImmunityByAbility(type, attacker, opponent)) return 0; + if (TypeImmunityByAbility(type, attacker, opponent)) return 0; return typemod; } #endregion #region This move's accuracy check - public virtual int pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent){ + public virtual int ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent){ return baseaccuracy; } - public virtual bool pbAccuracyCheck(IBattler attacker, IBattler opponent){ + public virtual bool AccuracyCheck(IBattler attacker, IBattler opponent){ int baseaccuracy=Accuracy; - baseaccuracy = pbModifyBaseAccuracy(baseaccuracy, attacker, opponent); + baseaccuracy = ModifyBaseAccuracy(baseaccuracy, attacker, opponent); if (opponent.effects.Minimize && tramplesMinimize(1)) baseaccuracy=0; if (baseaccuracy==0) return true; if (attacker.hasWorkingAbility(Abilities.NO_GUARD) || opponent.hasWorkingAbility(Abilities.NO_GUARD)) return true; if (opponent.hasWorkingAbility(Abilities.STORM_DRAIN) - && pbType(this.Type, attacker, opponent) == Types.WATER) + && GetType(this.Type, attacker, opponent) == Types.WATER) return true; if (opponent.hasWorkingAbility(Abilities.LIGHTNING_ROD) - && pbType(this.Type, attacker, opponent) == Types.ELECTRIC) + && GetType(this.Type, attacker, opponent) == Types.ELECTRIC) return true; if (opponent.effects.Telekinesis>0) return true; // One-hit KO accuracy handled elsewhere @@ -485,12 +485,12 @@ public virtual bool pbAccuracyCheck(IBattler attacker, IBattler opponent){ double evasion=(evastage>=0) ? (evastage+3)*100.0/3 : 300.0/(3-evastage); if (attacker.hasWorkingAbility(Abilities.COMPOUND_EYES)) accuracy*=1.3; - if (attacker.hasWorkingAbility(Abilities.HUSTLE) && pbIsDamaging() && - pbIsPhysical(pbType(this.Type, attacker, opponent))) + if (attacker.hasWorkingAbility(Abilities.HUSTLE) && IsDamaging() && + IsPhysical(GetType(this.Type, attacker, opponent))) accuracy*=0.8; if (attacker.hasWorkingAbility(Abilities.VICTORY_STAR)) accuracy*=1.1; - IBattler partner = !battle.doublebattle ? null : attacker.pbPartner; + IBattler partner = !battle.doublebattle ? null : attacker.Partner; if (partner.IsNotNullOrNone() && partner.hasWorkingAbility(Abilities.VICTORY_STAR)) accuracy*=1.1; if (attacker.effects.MicleBerry){ @@ -504,39 +504,39 @@ public virtual bool pbAccuracyCheck(IBattler attacker, IBattler opponent){ opponent.hasMovedThisRound())) // Used a move already accuracy*=1.2; if (!attacker.hasMoldBreaker()){ - if (opponent.hasWorkingAbility(Abilities.WONDER_SKIN) && pbIsStatus && - attacker.pbIsOpposing(opponent.Index)) + if (opponent.hasWorkingAbility(Abilities.WONDER_SKIN) && IsStatus && + attacker.IsOpposing(opponent.Index)) if (accuracy>50) accuracy = 50; if (opponent.hasWorkingAbility(Abilities.TANGLED_FEET) && opponent.effects.Confusion>0) evasion*=1.2; if (opponent.hasWorkingAbility(Abilities.SAND_VEIL) && - battle.pbWeather==Weather.SANDSTORM) + battle.Weather==Weather.SANDSTORM) evasion*=1.25; if (opponent.hasWorkingAbility(Abilities.SNOW_CLOAK) && - battle.pbWeather==Weather.HAIL) + battle.Weather==Weather.HAIL) evasion*=1.25; } if (opponent.hasWorkingItem(Items.BRIGHT_POWDER)) evasion*=1.1; if (opponent.hasWorkingItem(Items.LAX_INCENSE)) evasion*=1.1; - return battle.pbRandom(100)<(baseaccuracy* accuracy/evasion); + return battle.Random(100)<(baseaccuracy* accuracy/evasion); } #endregion #region Damage calculation and modifiers - public virtual bool pbCritialOverride(IBattler attacker, IBattler opponent){ + public virtual bool CritialOverride(IBattler attacker, IBattler opponent){ return false; } - public virtual bool pbIsCritical (IBattler attacker, IBattler opponent){ + public virtual bool IsCritical (IBattler attacker, IBattler opponent){ if (!attacker.hasMoldBreaker()) if (opponent.hasWorkingAbility(Abilities.BATTLE_ARMOR) || opponent.hasWorkingAbility(Abilities.SHELL_ARMOR)) return false; - if (opponent.pbOwnSide.LuckyChant>0) return false; - if (pbCritialOverride(attacker, opponent)) return true; + if (opponent.OwnSide.LuckyChant>0) return false; + if (CritialOverride(attacker, opponent)) return true; int c=0; int[] ratios=Core.USENEWBATTLEMECHANICS?new int[] { 16, 8, 2, 1, 1 } : new int[] { 16, 8, 4, 3, 2 }; c+=attacker.effects.FocusEnergy; @@ -553,23 +553,23 @@ public virtual bool pbIsCritical (IBattler attacker, IBattler opponent){ if (attacker.hasWorkingItem(Items.RAZOR_CLAW))c+=1; if (attacker.hasWorkingItem(Items.SCOPE_LENS))c+=1; if (c>4)c=4; - return battle.pbRandom(ratios[c])==0; + return battle.Random(ratios[c])==0; } - public virtual int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent){ + public virtual int BaseDamage(int basedmg, IBattler attacker, IBattler opponent){ return basedmg; } - public virtual double pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent){ + public virtual double BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent){ return damagemult; } - public virtual double pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent){ + public virtual double ModifyDamage(double damagemult, IBattler attacker, IBattler opponent){ return damagemult; } //ToDo: Do single round at end of calculation and not during... - public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte[] options){ //options= 0 should be param instead + public virtual int CalcDamage(IBattler attacker,IBattler opponent, params byte[] options){ //options= 0 should be param instead opponent.damagestate.Critical=false; opponent.damagestate.TypeMod=0; opponent.damagestate.CalcDamage=0; @@ -579,14 +579,14 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte List stagediv= new List() { 40,35,30,25,20,15,10,10,10,10,10,10,10 }; Types type = Types.NONE; if (options.Contains(Core.NOTYPE)) - type=pbType(Type, attacker, opponent); + type=GetType(Type, attacker, opponent); else type=Types.NONE; // Will be treated as physical if (options.Contains(Core.NOCRITICAL)) - opponent.damagestate.Critical=pbIsCritical (attacker, opponent); + opponent.damagestate.Critical=IsCritical (attacker, opponent); #region ##### Calcuate base power of move ##### - int basedmg = Power; // From PBS file - basedmg = pbBaseDamage(basedmg, attacker, opponent); // Some function codes alter base power + int basedmg = Power; // From S file + basedmg = BaseDamage(basedmg, attacker, opponent); // Some function codes alter base power double damagemult=0x1000; if (attacker.hasWorkingAbility(Abilities.TECHNICIAN) && basedmg<=60 && MoveId>0) damagemult=Math.Round(damagemult*1.5); @@ -599,10 +599,10 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte if (attacker.hasWorkingAbility(Abilities.RECKLESS) && isRecoilMove()) damagemult = Math.Round(damagemult * 1.2); if (attacker.hasWorkingAbility(Abilities.FLARE_BOOST) && - attacker.Status==Status.BURN && pbIsSpecial(type)) + attacker.Status==Status.BURN && IsSpecial(type)) damagemult = Math.Round(damagemult * 1.5); if (attacker.hasWorkingAbility(Abilities.TOXIC_BOOST) && - attacker.Status==Status.POISON && pbIsPhysical(type)) + attacker.Status==Status.POISON && IsPhysical(type)) damagemult = Math.Round(damagemult * 1.5); if (attacker.hasWorkingAbility(Abilities.ANALYTIC) && (battle.choices[opponent.Index].Action != ChoiceAction.UseMove || // Didn't choose a move @@ -616,7 +616,7 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte damagemult=Math.Round(damagemult*0.75); } if (attacker.hasWorkingAbility(Abilities.SAND_FORCE) && - battle.pbWeather==Weather.SANDSTORM + battle.Weather==Weather.SANDSTORM && (type == Types.ROCK || type == Types.GROUND || type == Types.STEEL)) @@ -629,9 +629,9 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte attacker.hasWorkingAbility(Abilities.REFRIGERATE) || attacker.hasWorkingAbility(Abilities.PIXILATE) && PowerBoost) damagemult = Math.Round(damagemult * 1.3); - if ((battle.pbCheckGlobalAbility(Abilities.DARK_AURA).IsNotNullOrNone() && type == Types.DARK) - || (battle.pbCheckGlobalAbility(Abilities.FAIRY_AURA).IsNotNullOrNone() && type == Types.FAIRY)){ - if (battle.pbCheckGlobalAbility(Abilities.AURA_BREAK).IsNotNullOrNone()) + if ((battle.CheckGlobalAbility(Abilities.DARK_AURA).IsNotNullOrNone() && type == Types.DARK) + || (battle.CheckGlobalAbility(Abilities.FAIRY_AURA).IsNotNullOrNone() && type == Types.FAIRY)){ + if (battle.CheckGlobalAbility(Abilities.AURA_BREAK).IsNotNullOrNone()) damagemult=Math.Round(damagemult*2/3); else damagemult=Math.Round(damagemult*4/3); @@ -643,7 +643,7 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte && (type == Types.ICE || type == Types.FIRE)) damagemult=Math.Round(damagemult*0.5); if (opponent.hasWorkingAbility(Abilities.FUR_COAT) && - (pbIsPhysical(type) || Effect==Attack.Data.Effects.x11B)) // Psyshock + (IsPhysical(type) || Effect==Attack.Data.Effects.x11B)) // Psyshock damagemult=Math.Round(damagemult*0.5); if (opponent.hasWorkingAbility(Abilities.DRY_SKIN) && type == Types.FIRE) damagemult=Math.Round(damagemult*1.25); @@ -670,10 +670,10 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte (attacker.hasWorkingItem(Items.DARK_GEM) && type == Types.DARK) || (attacker.hasWorkingItem(Items.FAIRY_GEM) && type == Types.FAIRY)){ damagemult=(Core.USENEWBATTLEMECHANICS)? Math.Round(damagemult*1.3) : Math.Round(damagemult * 1.5); - battle.pbCommonAnimation("UseItem", attacker, null); - battle.pbDisplayBrief(Game._INTL("The {1} strengthened {2}'s power!", + battle.CommonAnimation("UseItem", attacker, null); + battle.DisplayBrief(Game._INTL("The {1} strengthened {2}'s power!", Kernal.ItemData[attacker.Item].ToString(), Kernal.MoveData[MoveId].Name)); - attacker.pbConsumeItem(); + attacker.ConsumeItem(); } } if ((attacker.hasWorkingItem(Items.SILK_SCARF) && type == Types.NORMAL) || @@ -722,9 +722,9 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte damagemult=Math.Round(damagemult*1.2); if (attacker.hasWorkingItem(Items.ODD_INCENSE) && type == Types.PSYCHIC) damagemult=Math.Round(damagemult*1.2); - if (attacker.hasWorkingItem(Items.MUSCLE_BAND) && pbIsPhysical(type)) + if (attacker.hasWorkingItem(Items.MUSCLE_BAND) && IsPhysical(type)) damagemult = Math.Round(damagemult * 1.1); - if (attacker.hasWorkingItem(Items.WISE_GLASSES) && pbIsSpecial (type)) + if (attacker.hasWorkingItem(Items.WISE_GLASSES) && IsSpecial (type)) damagemult = Math.Round(damagemult * 1.1); if (attacker.hasWorkingItem(Items.LUSTROUS_ORB) && attacker.Species == Pokemons.PALKIA && @@ -738,7 +738,7 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte && attacker.Species == Pokemons.GIRATINA && (type == Types.DRAGON || type == Types.GHOST)) damagemult=Math.Round(damagemult*1.2); - damagemult=pbBaseDamageMultiplier(damagemult, attacker, opponent); + damagemult=BaseDamageMultiplier(damagemult, attacker, opponent); if (attacker.effects.MeFirst) damagemult = Math.Round(damagemult * 1.5); if (attacker.effects.HelpingHand && options.Contains(Core.SELFCONFUSE)) @@ -783,7 +783,7 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte atk=opponent.ATK; atkstage = opponent.stages[(int)Stats.ATTACK] + 6; } - if (type>=0 && pbIsSpecial (type)){ + if (type>=0 && IsSpecial (type)){ atk = attacker.SPA; atkstage=attacker.stages[(int)Stats.SPATK]+6; if (Effect==Attack.Data.Effects.x12A){ // Foul Play @@ -795,15 +795,15 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte if (opponent.damagestate.Critical && atkstage<6) atkstage=6; atk=(int)Math.Floor(atk*1.0*stagemul[atkstage]/stagediv[atkstage]); } - if (attacker.hasWorkingAbility(Abilities.HUSTLE) && pbIsPhysical (type)) + if (attacker.hasWorkingAbility(Abilities.HUSTLE) && IsPhysical (type)) atk = (int)Math.Round(atk * 1.5); double atkmult = 0x1000; if (battle.internalbattle){ - if (battle.pbOwnedByPlayer(attacker.Index) && pbIsPhysical (type) && - battle.pbPlayer().badges.Count(b => b == true) >=Core.BADGESBOOSTATTACK) + if (battle.OwnedByPlayer(attacker.Index) && IsPhysical (type) && + battle.Player().badges.Count(b => b == true) >=Core.BADGESBOOSTATTACK) atkmult = Math.Round(atkmult * 1.1); - if (battle.pbOwnedByPlayer(attacker.Index) && pbIsSpecial (type) && - battle.pbPlayer().badges.Count(b => b == true) >= Core.BADGESBOOSTSPATK) + if (battle.OwnedByPlayer(attacker.Index) && IsSpecial (type) && + battle.Player().badges.Count(b => b == true) >= Core.BADGESBOOSTSPATK) atkmult = Math.Round(atkmult * 1.1); } if (attacker.HP<=Math.Floor(attacker.TotalHP/3d)) @@ -813,11 +813,11 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte (attacker.hasWorkingAbility(Abilities.SWARM) && type == Types.BUG)) atkmult=Math.Round(atkmult*1.5); if (attacker.hasWorkingAbility(Abilities.GUTS) && - attacker.Status!=0 && pbIsPhysical (type)) + attacker.Status!=0 && IsPhysical (type)) atkmult = Math.Round(atkmult * 1.5); if ((attacker.hasWorkingAbility(Abilities.PLUS) || attacker.hasWorkingAbility(Abilities.MINUS)) && - pbIsSpecial (type)){ - IBattler partner = !battle.doublebattle ? null : attacker.pbPartner; + IsSpecial (type)){ + IBattler partner = !battle.doublebattle ? null : attacker.Partner; if (partner.hasWorkingAbility(Abilities.PLUS) || partner.hasWorkingAbility(Abilities.MINUS)) atkmult=Math.Round(atkmult*1.5); } @@ -825,31 +825,31 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte attacker.HP<=Math.Floor(attacker.TotalHP/2d)) atkmult = Math.Round(atkmult * 0.5); if ((attacker.hasWorkingAbility(Abilities.PURE_POWER) || - attacker.hasWorkingAbility(Abilities.HUGE_POWER)) && pbIsPhysical(type)) + attacker.hasWorkingAbility(Abilities.HUGE_POWER)) && IsPhysical(type)) atkmult = Math.Round(atkmult * 2.0); - if (attacker.hasWorkingAbility(Abilities.SOLAR_POWER) && pbIsSpecial(type) && - (battle.pbWeather==Weather.SUNNYDAY || - battle.pbWeather==Weather.HARSHSUN)) + if (attacker.hasWorkingAbility(Abilities.SOLAR_POWER) && IsSpecial(type) && + (battle.Weather==Weather.SUNNYDAY || + battle.Weather==Weather.HARSHSUN)) atkmult=Math.Round(atkmult*1.5); if (attacker.hasWorkingAbility(Abilities.FLASH_FIRE) && attacker.effects.FlashFire && type == Types.FIRE) atkmult=Math.Round(atkmult*1.5); if (attacker.hasWorkingAbility(Abilities.SLOW_START) && - attacker.turncount<=5 && pbIsPhysical(type)) + attacker.turncount<=5 && IsPhysical(type)) atkmult = Math.Round(atkmult * 0.5); - if ((battle.pbWeather==Weather.SUNNYDAY || - battle.pbWeather==Weather.HARSHSUN) && pbIsPhysical(type)) + if ((battle.Weather==Weather.SUNNYDAY || + battle.Weather==Weather.HARSHSUN) && IsPhysical(type)) if (attacker.hasWorkingAbility(Abilities.FLOWER_GIFT) || - (battle.doublebattle && attacker.pbPartner.hasWorkingAbility(Abilities.FLOWER_GIFT))) + (battle.doublebattle && attacker.Partner.hasWorkingAbility(Abilities.FLOWER_GIFT))) atkmult=Math.Round(atkmult*1.5); if (attacker.hasWorkingItem(Items.THICK_CLUB) && (attacker.Species == Pokemons.CUBONE || attacker.Species == Pokemons.MAROWAK) && - pbIsPhysical(type)) + IsPhysical(type)) atkmult = Math.Round(atkmult * 2.0); if (attacker.hasWorkingItem(Items.DEEP_SEA_TOOTH) && attacker.Species == Pokemons.CLAMPERL && - pbIsSpecial(type)) + IsSpecial(type)) atkmult = Math.Round(atkmult * 2.0); if (attacker.hasWorkingItem(Items.LIGHT_BALL) && attacker.Species == Pokemons.PIKACHU) @@ -857,12 +857,12 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte if (attacker.hasWorkingItem(Items.SOUL_DEW) && (attacker.Species == Pokemons.LATIAS || attacker.Species == Pokemons.LATIOS) && - pbIsSpecial(type) && + IsSpecial(type) && !battle.rules[BattleRule.SOULDEWCLAUSE]) atkmult = Math.Round(atkmult * 1.5); - if (attacker.hasWorkingItem(Items.CHOICE_BAND) && pbIsPhysical(type)) + if (attacker.hasWorkingItem(Items.CHOICE_BAND) && IsPhysical(type)) atkmult = Math.Round(atkmult * 1.5); - if (attacker.hasWorkingItem(Items.CHOICE_SPECS) && pbIsSpecial(type)) + if (attacker.hasWorkingItem(Items.CHOICE_SPECS) && IsSpecial(type)) atkmult = Math.Round(atkmult * 1.5); atk = (int)Math.Round(atk * atkmult * 1.0 / 0x1000); #endregion @@ -871,7 +871,7 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte int defstage = opponent.stages[(int)Stats.DEFENSE] + 6; // TODO: Wonder Room should apply around here bool applysandstorm=false; - if (type>=0 && pbIsSpecial(type) && Effect!=Attack.Data.Effects.x11B){ // Psyshock + if (type>=0 && IsSpecial(type) && Effect!=Attack.Data.Effects.x11B){ // Psyshock defense=opponent.SPD; defstage = opponent.stages[(int)Stats.SPDEF] + 6; applysandstorm=true; @@ -881,41 +881,41 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte if (opponent.damagestate.Critical && defstage>6)defstage=6; defense=(int)Math.Floor(defense*1.0*stagemul[defstage]/stagediv[defstage]); } - if (battle.pbWeather==Weather.SANDSTORM && - opponent.pbHasType(Types.ROCK) && applysandstorm) + if (battle.Weather==Weather.SANDSTORM && + opponent.HasType(Types.ROCK) && applysandstorm) defense = (int)Math.Round(defense * 1.5); double defmult = 0x1000; if (battle.internalbattle){ - if (battle.pbOwnedByPlayer(opponent.Index) && pbIsPhysical(type) && - battle.pbPlayer().badges.Count(b => b == true) >= Core.BADGESBOOSTDEFENSE) + if (battle.OwnedByPlayer(opponent.Index) && IsPhysical(type) && + battle.Player().badges.Count(b => b == true) >= Core.BADGESBOOSTDEFENSE) defmult = Math.Round(defmult * 1.1); - if (battle.pbOwnedByPlayer(opponent.Index) && pbIsSpecial(type) && - battle.pbPlayer().badges.Count(b => b == true) >= Core.BADGESBOOSTSPDEF) + if (battle.OwnedByPlayer(opponent.Index) && IsSpecial(type) && + battle.Player().badges.Count(b => b == true) >= Core.BADGESBOOSTSPDEF) defmult = Math.Round(defmult * 1.1); } if (battle.field.GrassyTerrain>0) defmult=Math.Round(defmult*1.5); if (!attacker.hasMoldBreaker()){ if (opponent.hasWorkingAbility(Abilities.MARVEL_SCALE) && - opponent.Status>0 && pbIsPhysical(type)) + opponent.Status>0 && IsPhysical(type)) defmult = Math.Round(defmult * 1.5); - if ((battle.pbWeather==Weather.SUNNYDAY || - battle.pbWeather==Weather.HARSHSUN) && pbIsSpecial(type)) + if ((battle.Weather==Weather.SUNNYDAY || + battle.Weather==Weather.HARSHSUN) && IsSpecial(type)) if (opponent.hasWorkingAbility(Abilities.FLOWER_GIFT) || - (battle.doublebattle && opponent.pbPartner.hasWorkingAbility(Abilities.FLOWER_GIFT))) + (battle.doublebattle && opponent.Partner.hasWorkingAbility(Abilities.FLOWER_GIFT))) defmult=Math.Round(defmult*1.5); } - if (opponent.hasWorkingItem(Items.ASSAULT_VEST) && pbIsSpecial(type)) + if (opponent.hasWorkingItem(Items.ASSAULT_VEST) && IsSpecial(type)) defmult = Math.Round(defmult * 1.5); if (opponent.hasWorkingItem(Items.EVIOLITE)){ - //Data.PokemonEvolution[] evos=Evolution.pbGetEvolvedFormData(opponent.Species); + //Data.PokemonEvolution[] evos=Evolution.GetEvolvedFormData(opponent.Species); //if (evos != null && evos.Length>0) if (Kernal.PokemonEvolutionsData[opponent.Species].Length>0) defmult=Math.Round(defmult*1.5); } if (opponent.hasWorkingItem(Items.DEEP_SEA_SCALE) && opponent.Species == Pokemons.CLAMPERL && - pbIsSpecial(type)) + IsSpecial(type)) defmult = Math.Round(defmult * 2.0); if (opponent.hasWorkingItem(Items.METAL_POWDER) && opponent.Species == Pokemons.DITTO && @@ -924,7 +924,7 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte if (opponent.hasWorkingItem(Items.SOUL_DEW) && (opponent.Species == Pokemons.LATIAS || opponent.Species == Pokemons.LATIOS) && - pbIsSpecial(type) && + IsSpecial(type) && !battle.rules[BattleRule.SOULDEWCLAUSE]) defmult = Math.Round(defmult * 1.5); defense = (int)Math.Round(defense * defmult * 1.0 / 0x1000); @@ -932,10 +932,10 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte #region ##### Main damage calculation ##### int damage=(int)Math.Floor(Math.Floor(Math.Floor(2.0*attacker.Level/5+2)* basedmg*atk/defense)/50)+2; // Multi-targeting attacks - if (pbTargetsMultiple(attacker)) + if (TargetsMultiple(attacker)) damage = (int)Math.Round(damage * 0.75); // Weather - switch (battle.pbWeather) { + switch (battle.Weather) { case Weather.SUNNYDAY: case Weather.HARSHSUN: if (type == Types.FIRE) damage=(int)Math.Round(damage*1.5); @@ -954,18 +954,18 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte damage = (Core.USENEWBATTLEMECHANICS) ? (int)Math.Round(damage * 1.5) : (int)Math.Round(damage * 2.0); // Random variance if (options.Contains(Core.NOWEIGHTING)){ //If RNG affects damage - int random=85+battle.pbRandom(16); + int random=85+battle.Random(16); damage=(int)Math.Floor(damage* random/100.0); } // STAB - if (attacker.pbHasType(type) && options.Contains(Core.IGNOREPKMNTYPES)) + if (attacker.HasType(type) && options.Contains(Core.IGNOREPKMNTYPES)) if (attacker.hasWorkingAbility(Abilities.ADAPTABILITY)) damage= (int)Math.Round(damage*2d); else damage= (int)Math.Round(damage*1.5); // Type effectiveness if (options.Contains(Core.IGNOREPKMNTYPES)){ - double typemod=pbTypeModMessages(type, attacker, opponent); + double typemod=TypeModMessages(type, attacker, opponent); damage= (int)Math.Round(damage* typemod/8.0); opponent.damagestate.TypeMod=typemod; if (typemod==0){ @@ -976,7 +976,7 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte } else opponent.damagestate.TypeMod= 8; // Burn - if (attacker.Status==Status.BURN && pbIsPhysical(type) && + if (attacker.Status==Status.BURN && IsPhysical(type) && !attacker.hasWorkingAbility(Abilities.GUTS) && !(Core.USENEWBATTLEMECHANICS && Effect==Attack.Data.Effects.x0AA)) // Facade damage=(int)Math.Round(damage*0.5); @@ -987,13 +987,13 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte if (!opponent.damagestate.Critical && options.Contains(Core.NOREFLECT) && !attacker.hasWorkingAbility(Abilities.INFILTRATOR)){ // Reflect - if (opponent.pbOwnSide.Reflect>0 && pbIsPhysical(type)) + if (opponent.OwnSide.Reflect>0 && IsPhysical(type)) if (battle.doublebattle) finaldamagemult = Math.Round(finaldamagemult * 0.66); else finaldamagemult=Math.Round(finaldamagemult*0.5); // Light Screen - if (opponent.pbOwnSide.LightScreen>0 && pbIsSpecial(type)) + if (opponent.OwnSide.LightScreen>0 && IsSpecial(type)) if (battle.doublebattle) finaldamagemult = Math.Round(finaldamagemult * 0.66); else @@ -1012,7 +1012,7 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte opponent.hasWorkingAbility(Abilities.FILTER)) && opponent.damagestate.TypeMod>8) finaldamagemult=Math.Round(finaldamagemult*0.75); - if (battle.doublebattle && opponent.pbPartner.hasWorkingAbility(Abilities.FRIEND_GUARD)) + if (battle.doublebattle && opponent.Partner.hasWorkingAbility(Abilities.FRIEND_GUARD)) finaldamagemult=Math.Round(finaldamagemult*0.75); } if (attacker.hasWorkingItem(Items.METRONOME)){ @@ -1046,23 +1046,23 @@ public virtual int pbCalcDamage(IBattler attacker,IBattler opponent, params byte (opponent.hasWorkingItem(Items.ROSELI_BERRY) && type == Types.FAIRY)) { finaldamagemult=Math.Round(finaldamagemult*0.5); opponent.damagestate.BerryWeakened=true; - battle.pbCommonAnimation("UseItem", opponent, null); + battle.CommonAnimation("UseItem", opponent, null); } if (opponent.hasWorkingItem(Items.CHILAN_BERRY) && type == Types.NORMAL && options.Contains(Core.IGNOREPKMNTYPES)){ finaldamagemult=Math.Round(finaldamagemult*0.5); opponent.damagestate.BerryWeakened=true; - battle.pbCommonAnimation("UseItem", opponent, null); + battle.CommonAnimation("UseItem", opponent, null); } #endregion - finaldamagemult = pbModifyDamage(finaldamagemult, attacker, opponent); + finaldamagemult = ModifyDamage(finaldamagemult, attacker, opponent); damage= (int)Math.Round(damage* finaldamagemult*1.0/0x1000); opponent.damagestate.CalcDamage=damage; GameDebug.Log($"Move's damage calculated to be #{damage}"); return damage; } - public virtual int pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent){ + public virtual int ReduceHPDamage(int damage, IBattler attacker, IBattler opponent){ //bool endure=false; if (opponent.effects.Substitute>0 && !ignoresSubstitute(attacker) && (attacker.Species == Pokemons.NONE || attacker.Index!=opponent.Index)){ @@ -1070,11 +1070,11 @@ public virtual int pbReduceHPDamage(int damage, IBattler attacker, IBattler oppo if (damage>opponent.effects.Substitute)damage=opponent.effects.Substitute; opponent.effects.Substitute-=damage; opponent.damagestate.Substitute= true; - if (battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbDamageAnimation(opponent,0); - battle.pbDisplayPaused(Game._INTL("The substitute took damage for {1}!",opponent.Name)); + if (battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.DamageAnimation(opponent,0); + battle.DisplayPaused(Game._INTL("The substitute took damage for {1}!",opponent.Name)); if (opponent.effects.Substitute<=0){ opponent.effects.Substitute=0; - battle.pbDisplayPaused(Game._INTL("{1}'s substitute faded!",opponent.Name)); + battle.DisplayPaused(Game._INTL("{1}'s substitute faded!",opponent.Name)); GameDebug.Log($"[End of effect] #{opponent.ToString()}'s Substitute faded"); } opponent.damagestate.HPLost=damage; @@ -1098,7 +1098,7 @@ public virtual int pbReduceHPDamage(int damage, IBattler attacker, IBattler oppo opponent.damagestate.FocusSash=true; damage= damage - 1; GameDebug.Log($"[Item triggered] #{opponent.ToString()}'s Focus Sash"); } - else if (opponent.hasWorkingItem(Items.FOCUS_BAND) && battle.pbRandom(10)==0){ + else if (opponent.hasWorkingItem(Items.FOCUS_BAND) && battle.Random(10)==0){ opponent.damagestate.FocusBand=true; damage=damage-1; GameDebug.Log($"[Item triggered] #{opponent.ToString()}'s Focus Band"); @@ -1114,8 +1114,8 @@ public virtual int pbReduceHPDamage(int damage, IBattler attacker, IBattler oppo else if (opponent.damagestate.TypeMod>8) effectiveness=2; // "Super effective" if (opponent.damagestate.TypeMod!=0) - if (battle.scene is IPokeBattle_DebugSceneNoGraphics s1) s1.pbDamageAnimation(opponent, (TypeEffective)effectiveness); - if (battle.scene is IPokeBattle_DebugSceneNoGraphics s2) s2.pbHPChanged(opponent, oldhp); + if (battle.scene is IPokeBattle_DebugSceneNoGraphics s1) s1.DamageAnimation(opponent, (TypeEffective)effectiveness); + if (battle.scene is IPokeBattle_DebugSceneNoGraphics s2) s2.HPChanged(opponent, oldhp); opponent.damagestate.HPLost=damage; } return damage; @@ -1123,38 +1123,38 @@ public virtual int pbReduceHPDamage(int damage, IBattler attacker, IBattler oppo #endregion #region Effects - public virtual void pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype= false, int[] alltargets= null){ + public virtual void EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype= false, int[] alltargets= null){ if (opponent.damagestate.Critical) if (alltargets != null && alltargets.Length>1) - battle.pbDisplay(Game._INTL("A critical hit on {1}!",opponent.ToString(true))); + battle.Display(Game._INTL("A critical hit on {1}!",opponent.ToString(true))); else - battle.pbDisplay(Game._INTL("A critical hit!")); - if (!pbIsMultiHit() && attacker.effects.ParentalBond==0){ + battle.Display(Game._INTL("A critical hit!")); + if (!IsMultiHit() && attacker.effects.ParentalBond==0){ if (opponent.damagestate.TypeMod>8) if (alltargets != null && alltargets.Length>1) - battle.pbDisplay(Game._INTL("It's super effective on {1}!",opponent.ToString(true))); + battle.Display(Game._INTL("It's super effective on {1}!",opponent.ToString(true))); else - battle.pbDisplay(Game._INTL("It's super effective!")); + battle.Display(Game._INTL("It's super effective!")); else if (opponent.damagestate.TypeMod>=1 && opponent.damagestate.TypeMod<8) if (alltargets != null && alltargets.Length>1) - battle.pbDisplay(Game._INTL("It's not very effective on {1}...",opponent.ToString(true))); + battle.Display(Game._INTL("It's not very effective on {1}...",opponent.ToString(true))); else - battle.pbDisplay(Game._INTL("It's not very effective...")); + battle.Display(Game._INTL("It's not very effective...")); } if (opponent.damagestate.Endured) - battle.pbDisplay(Game._INTL("{1} endured the hit!", opponent.ToString())); + battle.Display(Game._INTL("{1} endured the hit!", opponent.ToString())); else if (opponent.damagestate.Sturdy) - battle.pbDisplay(Game._INTL("{1} hung on with Sturdy!", opponent.ToString())); + battle.Display(Game._INTL("{1} hung on with Sturdy!", opponent.ToString())); else if (opponent.damagestate.FocusSash){ - battle.pbDisplay(Game._INTL("{1} hung on using its Focus Sash!", opponent.ToString())); - opponent.pbConsumeItem(); } + battle.Display(Game._INTL("{1} hung on using its Focus Sash!", opponent.ToString())); + opponent.ConsumeItem(); } else if (opponent.damagestate.FocusBand) - battle.pbDisplay(Game._INTL("{1} hung on using its Focus Band!", opponent.ToString())); + battle.Display(Game._INTL("{1} hung on using its Focus Band!", opponent.ToString())); } - public virtual int pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum= 0, int[] alltargets= null, bool showanimation= true){ - Types type=pbType(this.Type, attacker, opponent); - double typemod=pbTypeModMessages(type, attacker, opponent); + public virtual int EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum= 0, int[] alltargets= null, bool showanimation= true){ + Types type=GetType(this.Type, attacker, opponent); + double typemod=TypeModMessages(type, attacker, opponent); opponent.damagestate.Critical=false; opponent.damagestate.TypeMod=0; opponent.damagestate.CalcDamage=0; @@ -1162,37 +1162,37 @@ public virtual int pbEffectFixedDamage(int damage, IBattler attacker, IBattler o if (typemod!=0){ opponent.damagestate.CalcDamage=damage; opponent.damagestate.TypeMod=8; - pbShowAnimation(MoveId, attacker, opponent, hitnum, alltargets, showanimation); + ShowAnimation(MoveId, attacker, opponent, hitnum, alltargets, showanimation); if (damage<1)damage = 1; // HP reduced can't be less than 1 - damage=pbReduceHPDamage(damage, attacker, opponent); - pbEffectMessages(attacker, opponent, alltargets: alltargets); - pbOnDamageLost(damage, attacker, opponent); + damage=ReduceHPDamage(damage, attacker, opponent); + EffectMessages(attacker, opponent, alltargets: alltargets); + OnDamageLost(damage, attacker, opponent); return damage; } return 0; } - public virtual int pbEffect(IBattler attacker, IBattler opponent, int hitnum= 0, int[] alltargets= null, bool showanimation= true){ + public virtual int GetEffect(IBattler attacker, IBattler opponent, int hitnum= 0, int[] alltargets= null, bool showanimation= true){ if (!opponent.IsNotNullOrNone()) return 0; //.Species == Pokemons.NONE - int damage = pbCalcDamage(attacker, opponent); + int damage = CalcDamage(attacker, opponent); if (opponent.damagestate.TypeMod!=0) - pbShowAnimation(MoveId, attacker, opponent, hitnum, alltargets, showanimation); - damage = pbReduceHPDamage(damage, attacker, opponent); - pbEffectMessages(attacker, opponent); - pbOnDamageLost(damage, attacker, opponent); + ShowAnimation(MoveId, attacker, opponent, hitnum, alltargets, showanimation); + damage = ReduceHPDamage(damage, attacker, opponent); + EffectMessages(attacker, opponent); + OnDamageLost(damage, attacker, opponent); return damage; // The HP lost by the opponent due to this attack } - public virtual void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects){ + public virtual void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects){ } #endregion #region Using the move - public virtual bool pbOnStartUse(IBattler attacker){ + public virtual bool OnStartUse(IBattler attacker){ return true; } - public virtual void pbAddTarget(IList targets, IBattler attacker){ + public virtual void AddTarget(IList targets, IBattler attacker){ } /// @@ -1205,34 +1205,34 @@ public virtual void pbAddTarget(IList targets, IBattler attacker){ /// 1 if the attack should exit as a success /// 2 if Bide is storing energy /// - public virtual int pbDisplayUseMessage(IBattler attacker){ - battle.pbDisplayBrief(Game._INTL("{1} used\r\n{2}!",attacker.ToString(), Kernal.MoveData[MoveId].Name)); + public virtual int DisplayUseMessage(IBattler attacker){ + battle.DisplayBrief(Game._INTL("{1} used\r\n{2}!",attacker.ToString(), Kernal.MoveData[MoveId].Name)); return 0; } - public virtual void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum= 0, int[] alltargets= null, bool showanimation= true){ + public virtual void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum= 0, int[] alltargets= null, bool showanimation= true){ if (!showanimation)return; if (attacker.effects.ParentalBond == 1) { - battle.pbCommonAnimation("ParentalBond",attacker,opponent); + battle.CommonAnimation("ParentalBond",attacker,opponent); return; } - battle.pbAnimation(id, attacker, opponent, hitnum); + battle.Animation(id, attacker, opponent, hitnum); } - public virtual void pbOnDamageLost(int damage, IBattler attacker, IBattler opponent){ + public virtual void OnDamageLost(int damage, IBattler attacker, IBattler opponent){ // Used by Counter/Mirror Coat/Revenge/Focus Punch/Bide Types type= this.Type; - type = pbType(type, attacker, opponent); + type = GetType(type, attacker, opponent); if (opponent.effects.Bide>0){ opponent.effects.BideDamage+=damage; opponent.effects.BideTarget= attacker.Index; } if (Effect==Attack.Data.Effects.x088) // Hidden Power type=Types.NORMAL; //getConst(Types.NORMAL) || 0; - if (pbIsPhysical(type)){ + if (IsPhysical(type)){ opponent.effects.Counter= damage; opponent.effects.CounterTarget= attacker.Index; - } else if (pbIsSpecial(type)){ + } else if (IsSpecial(type)){ opponent.effects.MirrorCoat= damage; opponent.effects.MirrorCoatTarget= attacker.Index; } @@ -1241,7 +1241,7 @@ public virtual void pbOnDamageLost(int damage, IBattler attacker, IBattler oppon opponent.lastAttacker.Add(attacker.Index); // for Revenge/Metal Burst } - public virtual bool pbMoveFailed(IBattler attacker, IBattler opponent){ + public virtual bool MoveFailed(IBattler attacker, IBattler opponent){ // Called to determine whether the move failed return false; } diff --git a/PokemonUnity.Application/Combat/Pokemon/Pokemon.Effect.cs b/PokemonUnity.Application/Combat/Pokemon/Pokemon.Effect.cs index 466d470eb..a28e682a7 100644 --- a/PokemonUnity.Application/Combat/Pokemon/Pokemon.Effect.cs +++ b/PokemonUnity.Application/Combat/Pokemon/Pokemon.Effect.cs @@ -18,62 +18,62 @@ namespace PokemonUnity.Combat public partial class Pokemon : IBattlerEffect { #region Sleep - bool IBattlerEffect.pbCanSleep(IBattler attacker, bool showMessages, IBattleMove move, bool ignorestatus) { + bool IBattlerEffect.CanSleep(IBattler attacker, bool showMessages, IBattleMove move, bool ignorestatus) { if (isFainted()) return false; bool selfsleep=(attacker.IsNotNullOrNone() && attacker.Index==this.Index); if (!ignorestatus && status==Status.SLEEP) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1} is already asleep!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} is already asleep!",ToString())); return false; } if (!selfsleep) { if (this.status!=0 || (effects.Substitute>0 && (!move.IsNotNullOrNone() || !move.ignoresSubstitute(attacker)))) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } } if (!this.isAirborne(attacker.IsNotNullOrNone() && attacker.hasMoldBreaker())) if (@battle.field.ElectricTerrain>0) { - if (showMessages) @battle.pbDisplay(Game._INTL("The Electric Terrain prevented {1} from falling asleep!",ToString(true))); + if (showMessages) @battle.Display(Game._INTL("The Electric Terrain prevented {1} from falling asleep!",ToString(true))); return false; } else if (@battle.field.MistyTerrain>0) { - if (showMessages) @battle.pbDisplay(Game._INTL("The Misty Terrain prevented {1} from falling asleep!",ToString(true))); + if (showMessages) @battle.Display(Game._INTL("The Misty Terrain prevented {1} from falling asleep!",ToString(true))); return false; } if ((attacker.IsNotNullOrNone() && attacker.hasMoldBreaker()) || !hasWorkingAbility(Abilities.SOUNDPROOF)) for (int i = 0; i < @battle.battlers.Length; i++) if (@battle.battlers[i].effects.Uproar>0) { - if (showMessages) @battle.pbDisplay(Game._INTL("But the uproar kept {1} awake!",ToString(true))); + if (showMessages) @battle.Display(Game._INTL("But the uproar kept {1} awake!",ToString(true))); return false; } if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) { if (hasWorkingAbility(Abilities.VITAL_SPIRIT) || hasWorkingAbility(Abilities.INSOMNIA) || hasWorkingAbility(Abilities.SWEET_VEIL) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) { + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) { string abilityname=Game._INTL(this.ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1} stayed awake using its {2}!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1} stayed awake using its {2}!",ToString(),abilityname)); return false; } if (Partner.hasWorkingAbility(Abilities.SWEET_VEIL) || - (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS))) { + (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS))) { string abilityname=Game._INTL(Partner.Ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1} stayed awake using its partner's {2}!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1} stayed awake using its partner's {2}!",ToString(),abilityname)); return false; } } if (!selfsleep) if (OwnSide.Safeguard>0 && (!attacker.IsNotNullOrNone() || !attacker.hasWorkingAbility(Abilities.INFILTRATOR))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); return false; } return true; } - bool IBattlerEffect.pbCanSleepYawn() { + bool IBattlerEffect.CanSleepYawn() { if (status!=0) return false; if (!hasWorkingAbility(Abilities.SOUNDPROOF)) for (int i = 0; i < @battle.battlers.Length; i++) @@ -85,101 +85,101 @@ bool IBattlerEffect.pbCanSleepYawn() { if (hasWorkingAbility(Abilities.VITAL_SPIRIT) || hasWorkingAbility(Abilities.INSOMNIA) || hasWorkingAbility(Abilities.SWEET_VEIL) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) return false; if (Partner.hasWorkingAbility(Abilities.SWEET_VEIL)) return false; return true; } - public void pbSleep(string msg=null) { + public void Sleep(string msg=null) { this.status=Status.SLEEP; - this.StatusCount=2+@battle.pbRandom(3); + this.StatusCount=2+@battle.Random(3); if (this.hasWorkingAbility(Abilities.EARLY_BIRD)) this.StatusCount=(int)Math.Floor(this.StatusCount/2d); - pbCancelMoves(); - @battle.pbCommonAnimation("Sleep",this,null); + CancelMoves(); + @battle.CommonAnimation("Sleep",this,null); if (!string.IsNullOrEmpty(msg)) - @battle.pbDisplay(msg); + @battle.Display(msg); else - @battle.pbDisplay(Game._INTL("{1} fell asleep!",ToString())); + @battle.Display(Game._INTL("{1} fell asleep!",ToString())); GameDebug.Log($"[Status change] #{ToString()} fell asleep (#{this.StatusCount} turns)"); } - public void pbSleepSelf(int duration=-1) { + public void SleepSelf(int duration=-1) { this.status=Status.SLEEP; if (duration>0) this.StatusCount=(byte)duration; else - this.StatusCount=(byte)(2+@battle.pbRandom(3)); + this.StatusCount=(byte)(2+@battle.Random(3)); if (this.hasWorkingAbility(Abilities.EARLY_BIRD)) this.StatusCount=(int)Math.Floor(this.StatusCount/2d); - pbCancelMoves(); - @battle.pbCommonAnimation("Sleep",this,null); + CancelMoves(); + @battle.CommonAnimation("Sleep",this,null); GameDebug.Log($"[Status change] #{ToString()} made itself fall asleep (#{this.StatusCount} turns)"); } #endregion #region Poison - public bool pbCanPoison(IBattler attacker,bool showMessages,IBattleMove move=null) { + public bool CanPoison(IBattler attacker,bool showMessages,IBattleMove move=null) { if (isFainted()) return false; if (status==Status.POISON) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1} is already poisoned.",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} is already poisoned.",ToString())); return false; } if (this.status!=0 || (effects.Substitute>0 && (!move.IsNotNullOrNone() || !move.ignoresSubstitute(attacker)))) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } - if ((pbHasType(Types.POISON) || pbHasType(Types.STEEL)) && !hasWorkingItem(Items.RING_TARGET)) { - if (showMessages) @battle.pbDisplay(Game._INTL("It doesn't affect {1}...",ToString(true))); + if ((HasType(Types.POISON) || HasType(Types.STEEL)) && !hasWorkingItem(Items.RING_TARGET)) { + if (showMessages) @battle.Display(Game._INTL("It doesn't affect {1}...",ToString(true))); return false; } if (@battle.field.MistyTerrain>0 && !this.isAirborne(attacker.IsNotNullOrNone() && attacker.hasMoldBreaker())) { - if (showMessages) @battle.pbDisplay(Game._INTL("The Misty Terrain prevented {1} from being poisoned!",ToString(true))); + if (showMessages) @battle.Display(Game._INTL("The Misty Terrain prevented {1} from being poisoned!",ToString(true))); return false; } if (!attacker.IsNotNullOrNone() || !attacker.hasMoldBreaker()) { if (hasWorkingAbility(Abilities.IMMUNITY) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents poisoning!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) { + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents poisoning!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); return false; } - if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) { + if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) { string abilityname=Game._INTL(Partner.Ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s partner's {2} prevents poisoning!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s partner's {2} prevents poisoning!",ToString(),abilityname)); return false; } } if (OwnSide.Safeguard>0 && (!attacker.IsNotNullOrNone() || !attacker.hasWorkingAbility(Abilities.INFILTRATOR))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); return false; } return true; } - public bool pbCanPoisonSynchronize(IBattler opponent) { + public bool CanPoisonSynchronize(IBattler opponent) { if (isFainted()) return false; - if ((pbHasType(Types.POISON) || pbHasType(Types.STEEL)) && !hasWorkingItem(Items.RING_TARGET)) { - @battle.pbDisplay(Game._INTL("{1}'s {2} had no effect on {3}!", + if ((HasType(Types.POISON) || HasType(Types.STEEL)) && !hasWorkingItem(Items.RING_TARGET)) { + @battle.Display(Game._INTL("{1}'s {2} had no effect on {3}!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)),ToString(true))); return false; } if (this.status!=0) return false; if (hasWorkingAbility(Abilities.IMMUNITY) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) { - @battle.pbDisplay(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) { + @battle.Display(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)), opponent.ToString(true),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; } - if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) { - @battle.pbDisplay(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", + if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) { + @battle.Display(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", Partner.ToString(),Game._INTL(Partner.Ability.ToString(TextScripts.Name)), opponent.ToString(true),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; @@ -187,34 +187,34 @@ public bool pbCanPoisonSynchronize(IBattler opponent) { return true; } - public bool pbCanPoisonSpikes(bool moldbreaker=false) { + public bool CanPoisonSpikes(bool moldbreaker=false) { if (isFainted()) return false; if (this.status!=0) return false; - if (pbHasType(Types.POISON) || pbHasType(Types.STEEL)) return false; + if (HasType(Types.POISON) || HasType(Types.STEEL)) return false; if (!moldbreaker) { if (hasWorkingAbility(Abilities.IMMUNITY) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS))) return false; + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS))) return false; if (hasWorkingAbility(Abilities.LEAF_GUARD) && - (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN)) return false; + (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN)) return false; } if (OwnSide.Safeguard>0) return false; return true; } - public void pbPoison(IBattler attacker,string msg=null, bool toxic=false) { + public void Poison(IBattler attacker,string msg=null, bool toxic=false) { this.status=Status.POISON; this.StatusCount=(toxic) ? 1 : 0; this.effects.Toxic=0; - @battle.pbCommonAnimation("Poison",this,null); + @battle.CommonAnimation("Poison",this,null); if (!string.IsNullOrEmpty(msg)) - @battle.pbDisplay(msg); + @battle.Display(msg); else { if (toxic) - @battle.pbDisplay(Game._INTL("{1} was badly poisoned!",ToString())); + @battle.Display(Game._INTL("{1} was badly poisoned!",ToString())); else - @battle.pbDisplay(Game._INTL("{1} was poisoned!",ToString())); + @battle.Display(Game._INTL("{1} was poisoned!",ToString())); } if (toxic) GameDebug.Log($"[Status change] #{ToString()} was badly poisoned]"); @@ -222,76 +222,76 @@ public void pbPoison(IBattler attacker,string msg=null, bool toxic=false) { GameDebug.Log($"[Status change] #{ToString()} was poisoned"); if (attacker.IsNotNullOrNone() && this.Index!=attacker.Index && this.hasWorkingAbility(Abilities.SYNCHRONIZE)) - if (attacker is IBattlerEffect a && a.pbCanPoisonSynchronize(this)) { + if (attacker is IBattlerEffect a && a.CanPoisonSynchronize(this)) { GameDebug.Log($"[Ability triggered] #{this.ToString()}'s Synchronize"); - a.pbPoison(null,Game._INTL("{1}'s {2} poisoned {3}!",this.ToString(), + a.Poison(null,Game._INTL("{1}'s {2} poisoned {3}!",this.ToString(), Game._INTL(this.ability.ToString(TextScripts.Name)),attacker.ToString(true)),toxic); } } #endregion #region Burn - public bool pbCanBurn(IBattler attacker,bool showMessages,IBattleMove move=null) { + public bool CanBurn(IBattler attacker,bool showMessages,IBattleMove move=null) { if (isFainted()) return false; if (this.status==Status.BURN) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1} already has a burn.",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} already has a burn.",ToString())); return false; } if (this.status!=0 || (effects.Substitute>0 && (!move.IsNotNullOrNone() || !move.ignoresSubstitute(attacker)))) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } if (@battle.field.MistyTerrain>0 && !this.isAirborne(attacker.IsNotNullOrNone() && attacker.hasMoldBreaker())) { - if (showMessages) @battle.pbDisplay(Game._INTL("The Misty Terrain prevented {1} from being burned!",ToString(true))); + if (showMessages) @battle.Display(Game._INTL("The Misty Terrain prevented {1} from being burned!",ToString(true))); return false; } - if (pbHasType(Types.FIRE) && !hasWorkingItem(Items.RING_TARGET)) { - if (showMessages) @battle.pbDisplay(Game._INTL("It doesn't affect {1}...",ToString(true))); + if (HasType(Types.FIRE) && !hasWorkingItem(Items.RING_TARGET)) { + if (showMessages) @battle.Display(Game._INTL("It doesn't affect {1}...",ToString(true))); return false; } if (!attacker.IsNotNullOrNone() || !attacker.hasMoldBreaker()) { if (hasWorkingAbility(Abilities.WATER_VEIL) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents burns!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) { + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents burns!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); return false; } - if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) { + if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) { string abilityname=Game._INTL(Partner.Ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s partner's {2} prevents burns!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s partner's {2} prevents burns!",ToString(),abilityname)); return false; } } if (OwnSide.Safeguard>0 && (!attacker.IsNotNullOrNone() || !attacker.hasWorkingAbility(Abilities.INFILTRATOR))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); return false; } return true; } - public bool pbCanBurnSynchronize(IBattler opponent) { + public bool CanBurnSynchronize(IBattler opponent) { if (isFainted()) return false; if (this.status!=0) return false; - if (pbHasType(Types.FIRE) && !hasWorkingItem(Items.RING_TARGET)) { - @battle.pbDisplay(Game._INTL("{1}'s {2} had no effect on {3}!", + if (HasType(Types.FIRE) && !hasWorkingItem(Items.RING_TARGET)) { + @battle.Display(Game._INTL("{1}'s {2} had no effect on {3}!", opponent.ToString(),Game._INTL(opponent.Ability.ToString(TextScripts.Name)),ToString(true))); return false; } if (hasWorkingAbility(Abilities.WATER_VEIL) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) { - @battle.pbDisplay(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) { + @battle.Display(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)), opponent.ToString(true),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; } - if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) { - @battle.pbDisplay(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", + if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) { + @battle.Display(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", Partner.ToString(),Game._INTL(Partner.Ability.ToString(TextScripts.Name)), opponent.ToString(true),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; @@ -299,83 +299,83 @@ public bool pbCanBurnSynchronize(IBattler opponent) { return true; } - public void pbBurn(IBattler attacker,string msg=null) { + public void Burn(IBattler attacker,string msg=null) { this.status=Status.BURN; this.StatusCount=0; - @battle.pbCommonAnimation("Burn",this,null); + @battle.CommonAnimation("Burn",this,null); if (!string.IsNullOrEmpty(msg)) - @battle.pbDisplay(msg); + @battle.Display(msg); else - @battle.pbDisplay(Game._INTL("{1} was burned!",ToString())); + @battle.Display(Game._INTL("{1} was burned!",ToString())); GameDebug.Log($"[Status change] #{ToString()} was burned"); if (attacker.IsNotNullOrNone() && this.Index!=attacker.Index && this.hasWorkingAbility(Abilities.SYNCHRONIZE)) - if (attacker is IBattlerEffect a && a.pbCanBurnSynchronize(this)) { + if (attacker is IBattlerEffect a && a.CanBurnSynchronize(this)) { GameDebug.Log($"[Ability triggered] #{this.ToString()}'s Synchronize"); - a.pbBurn(null,Game._INTL("{1}'s {2} burned {3}!",this.ToString(), + a.Burn(null,Game._INTL("{1}'s {2} burned {3}!",this.ToString(), Game._INTL(this.ability.ToString(TextScripts.Name)),attacker.ToString(true))); } } #endregion #region Paralyze - public bool pbCanParalyze(IBattler attacker,bool showMessages,IBattleMove move=null) { + public bool CanParalyze(IBattler attacker,bool showMessages,IBattleMove move=null) { if (isFainted()) return false; if (status==Status.PARALYSIS) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1} is already paralyzed!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} is already paralyzed!",ToString())); return false; } if (this.status!=0 || (effects.Substitute>0 && (!move.IsNotNullOrNone() || !move.ignoresSubstitute(attacker)))) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } if (@battle.field.MistyTerrain>0 && !this.isAirborne(attacker.IsNotNullOrNone() && attacker.hasMoldBreaker())) { - if (showMessages) @battle.pbDisplay(Game._INTL("The Misty Terrain prevented {1} from being paralyzed!",ToString(true))); + if (showMessages) @battle.Display(Game._INTL("The Misty Terrain prevented {1} from being paralyzed!",ToString(true))); return false; } - if (pbHasType(Types.ELECTRIC) && !hasWorkingItem(Items.RING_TARGET) && Core.USENEWBATTLEMECHANICS) { - if (showMessages) @battle.pbDisplay(Game._INTL("It doesn't affect {1}...",ToString(true))); + if (HasType(Types.ELECTRIC) && !hasWorkingItem(Items.RING_TARGET) && Core.USENEWBATTLEMECHANICS) { + if (showMessages) @battle.Display(Game._INTL("It doesn't affect {1}...",ToString(true))); return false; } if (!attacker.IsNotNullOrNone() || !attacker.hasMoldBreaker()) { if (hasWorkingAbility(Abilities.LIMBER) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents paralysis!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) { + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents paralysis!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); return false; } - if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) { + if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) { string abilityname=Game._INTL(Partner.Ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s partner's {2} prevents paralysis!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s partner's {2} prevents paralysis!",ToString(),abilityname)); return false; } } if (OwnSide.Safeguard>0 && (!attacker.IsNotNullOrNone() || !attacker.hasWorkingAbility(Abilities.INFILTRATOR))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); return false; } return true; } - public bool pbCanParalyzeSynchronize(IBattler opponent) { + public bool CanParalyzeSynchronize(IBattler opponent) { if (this.status!=0) return false; if (@battle.field.MistyTerrain>0 && !this.isAirborne()) return false; - if (pbHasType(Types.ELECTRIC) && !hasWorkingItem(Items.RING_TARGET) && Core.USENEWBATTLEMECHANICS) return false; + if (HasType(Types.ELECTRIC) && !hasWorkingItem(Items.RING_TARGET) && Core.USENEWBATTLEMECHANICS) return false; if (hasWorkingAbility(Abilities.LIMBER) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) { - @battle.pbDisplay(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) { + @battle.Display(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)), opponent.ToString(true),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; } - if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) { - @battle.pbDisplay(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", + if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) { + @battle.Display(Game._INTL("{1}'s {2} prevents {3}'s {4} from working!", Partner.ToString(),Game._INTL(Partner.Ability.ToString(TextScripts.Name)), opponent.ToString(true),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; @@ -383,125 +383,125 @@ public bool pbCanParalyzeSynchronize(IBattler opponent) { return true; } - public void pbParalyze(IBattler attacker,string msg=null) { + public void Paralyze(IBattler attacker,string msg=null) { this.status=Status.PARALYSIS; this.StatusCount=0; - @battle.pbCommonAnimation("Paralysis",this,null); + @battle.CommonAnimation("Paralysis",this,null); if (!string.IsNullOrEmpty(msg)) - @battle.pbDisplay(msg); + @battle.Display(msg); else - @battle.pbDisplay(Game._INTL("{1} is paralyzed! It may be unable to move!",ToString())); + @battle.Display(Game._INTL("{1} is paralyzed! It may be unable to move!",ToString())); GameDebug.Log($"[Status change] #{ToString()} was paralyzed"); if (attacker.IsNotNullOrNone() && this.Index!=attacker.Index && this.hasWorkingAbility(Abilities.SYNCHRONIZE)) - if (attacker is IBattlerEffect a && a.pbCanParalyzeSynchronize(this)) { + if (attacker is IBattlerEffect a && a.CanParalyzeSynchronize(this)) { GameDebug.Log($"[Ability triggered] #{this.ToString()}'s Synchronize"); - a.pbParalyze(null,Game._INTL("{1}'s {2} paralyzed {3}! It may be unable to move!", + a.Paralyze(null,Game._INTL("{1}'s {2} paralyzed {3}! It may be unable to move!", this.ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)),attacker.ToString(true))); } } #endregion #region Freeze - bool IBattlerEffect.pbCanFreeze(IBattler attacker,bool showMessages,IBattleMove move) { + bool IBattlerEffect.CanFreeze(IBattler attacker,bool showMessages,IBattleMove move) { if (isFainted()) return false; if (status==Status.FROZEN) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1} is already frozen solid!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} is already frozen solid!",ToString())); return false; } if (this.status!=0 || (effects.Substitute>0 && (!move.IsNotNullOrNone() || !move.ignoresSubstitute(attacker))) || - @battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + @battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN) { + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } - if (pbHasType(Types.ICE) && !hasWorkingItem(Items.RING_TARGET)) { - if (showMessages) @battle.pbDisplay(Game._INTL("It doesn't affect {1}...",ToString(true))); + if (HasType(Types.ICE) && !hasWorkingItem(Items.RING_TARGET)) { + if (showMessages) @battle.Display(Game._INTL("It doesn't affect {1}...",ToString(true))); return false; } if (@battle.field.MistyTerrain>0 && !this.isAirborne(attacker.IsNotNullOrNone() && attacker.hasMoldBreaker())) { - if (showMessages) @battle.pbDisplay(Game._INTL("The Misty Terrain prevented {1} from being frozen!",ToString(true))); + if (showMessages) @battle.Display(Game._INTL("The Misty Terrain prevented {1} from being frozen!",ToString(true))); return false; } if (!attacker.IsNotNullOrNone() || !attacker.hasMoldBreaker()) { if (hasWorkingAbility(Abilities.MAGMA_ARMOR) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) || - (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.pbWeather==Weather.SUNNYDAY || - @battle.pbWeather==Weather.HARSHSUN))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents freezing!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) || + (hasWorkingAbility(Abilities.LEAF_GUARD) && (@battle.Weather==Weather.SUNNYDAY || + @battle.Weather==Weather.HARSHSUN))) { + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents freezing!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); return false; } - if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) { + if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) { string abilityname=Game._INTL(Partner.Ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s partner's {2} prevents freezing!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s partner's {2} prevents freezing!",ToString(),abilityname)); return false; } } if (OwnSide.Safeguard>0 && (!attacker.IsNotNullOrNone() || !attacker.hasWorkingAbility(Abilities.INFILTRATOR))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); return false; } return true; } - public void pbFreeze(string msg=null) { + public void Freeze(string msg=null) { this.status=Status.FROZEN; this.StatusCount=0; - pbCancelMoves(); - @battle.pbCommonAnimation("Frozen",this,null); + CancelMoves(); + @battle.CommonAnimation("Frozen",this,null); if (!string.IsNullOrEmpty(msg)) - @battle.pbDisplay(msg); + @battle.Display(msg); else - @battle.pbDisplay(Game._INTL("{1} was frozen solid!",ToString())); + @battle.Display(Game._INTL("{1} was frozen solid!",ToString())); GameDebug.Log($"[Status change] #{ToString()} was frozen"); } #endregion #region Generalized status displays - public void pbContinueStatus(bool showAnim=true) { + public void ContinueStatus(bool showAnim=true) { switch (this.status) { case Status.SLEEP: - @battle.pbCommonAnimation("Sleep",this,null); - @battle.pbDisplay(Game._INTL("{1} is fast asleep.",ToString())); + @battle.CommonAnimation("Sleep",this,null); + @battle.Display(Game._INTL("{1} is fast asleep.",ToString())); break; case Status.POISON: - @battle.pbCommonAnimation("Poison",this,null); - @battle.pbDisplay(Game._INTL("{1} was hurt by poison!",ToString())); + @battle.CommonAnimation("Poison",this,null); + @battle.Display(Game._INTL("{1} was hurt by poison!",ToString())); break; case Status.BURN: - @battle.pbCommonAnimation("Burn",this,null); - @battle.pbDisplay(Game._INTL("{1} was hurt by its burn!",ToString())); + @battle.CommonAnimation("Burn",this,null); + @battle.Display(Game._INTL("{1} was hurt by its burn!",ToString())); break; case Status.PARALYSIS: - @battle.pbCommonAnimation("Paralysis",this,null); - @battle.pbDisplay(Game._INTL("{1} is paralyzed! It can't move!",ToString())) ; + @battle.CommonAnimation("Paralysis",this,null); + @battle.Display(Game._INTL("{1} is paralyzed! It can't move!",ToString())) ; break; case Status.FROZEN: - @battle.pbCommonAnimation("Frozen",this,null); - @battle.pbDisplay(Game._INTL("{1} is frozen solid!",ToString())); + @battle.CommonAnimation("Frozen",this,null); + @battle.Display(Game._INTL("{1} is frozen solid!",ToString())); break; } } - public void pbCureStatus(bool showMessages=true) { + public void CureStatus(bool showMessages=true) { Status oldstatus=this.status; this.status=0; this.StatusCount=0; if (showMessages) switch (oldstatus) { case Status.SLEEP: - @battle.pbDisplay(Game._INTL("{1} woke up!",ToString())); + @battle.Display(Game._INTL("{1} woke up!",ToString())); break; case Status.POISON: case Status.BURN: case Status.PARALYSIS: - @battle.pbDisplay(Game._INTL("{1} was cured of paralysis.",ToString())); + @battle.Display(Game._INTL("{1} was cured of paralysis.",ToString())); break; case Status.FROZEN: - @battle.pbDisplay(Game._INTL("{1} thawed out!",ToString())); + @battle.Display(Game._INTL("{1} thawed out!",ToString())); break; } GameDebug.Log($"[Status change] #{ToString()}'s status was cured"); @@ -509,125 +509,125 @@ public void pbCureStatus(bool showMessages=true) { #endregion #region Confuse - public bool pbCanConfuse(IBattler attacker=null,bool showMessages=true,IBattleMove move=null) { + public bool CanConfuse(IBattler attacker=null,bool showMessages=true,IBattleMove move=null) { if (isFainted()) return false; if (effects.Confusion>0) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1} is already confused!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} is already confused!",ToString())); return false; } if (effects.Substitute>0 && (!move.IsNotNullOrNone() || !move.ignoresSubstitute(attacker))) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } if (!attacker.IsNotNullOrNone() || !attacker.hasMoldBreaker()) if (hasWorkingAbility(Abilities.OWN_TEMPO)) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents confusion!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents confusion!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); return false; } if (OwnSide.Safeguard>0 && (!attacker.IsNotNullOrNone() || !attacker.hasWorkingAbility(Abilities.INFILTRATOR))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1}'s team is protected by Safeguard!",ToString())); return false; } return true; } - public bool pbCanConfuseSelf(bool showMessages) { + public bool CanConfuseSelf(bool showMessages) { if (isFainted()) return false; if (effects.Confusion>0) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1} is already confused!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} is already confused!",ToString())); return false; } if (hasWorkingAbility(Abilities.OWN_TEMPO)) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents confusion!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents confusion!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); return false; } return true; } - public void pbConfuse() { - effects.Confusion=2+@battle.pbRandom(4); - @battle.pbCommonAnimation("Confusion",this,null); + public void Confuse() { + effects.Confusion=2+@battle.Random(4); + @battle.CommonAnimation("Confusion",this,null); GameDebug.Log($"[Lingering effect triggered] #{ToString()} became confused (#{effects.Confusion} turns)"); } - public void pbConfuseSelf() { - if (pbCanConfuseSelf(false)) { - effects.Confusion=2+@battle.pbRandom(4); - @battle.pbCommonAnimation("Confusion",this,null); - @battle.pbDisplay(Game._INTL("{1} became confused!",ToString())); + public void ConfuseSelf() { + if (CanConfuseSelf(false)) { + effects.Confusion=2+@battle.Random(4); + @battle.CommonAnimation("Confusion",this,null); + @battle.Display(Game._INTL("{1} became confused!",ToString())); GameDebug.Log($"[Lingering effect triggered] #{ToString()} became confused (#{effects.Confusion} turns)"); } } - public void pbContinueConfusion() { - @battle.pbCommonAnimation("Confusion",this,null); - @battle.pbDisplayBrief(Game._INTL("{1} is confused!",ToString())); + public void ContinueConfusion() { + @battle.CommonAnimation("Confusion",this,null); + @battle.DisplayBrief(Game._INTL("{1} is confused!",ToString())); } - public void pbCureConfusion(bool showMessages=true) { + public void CureConfusion(bool showMessages=true) { effects.Confusion=0; - if (showMessages) @battle.pbDisplay(Game._INTL("{1} snapped out of confusion!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} snapped out of confusion!",ToString())); GameDebug.Log($"[End of effect] #{ToString()} was cured of confusion"); } #endregion #region Attraction - public bool pbCanAttract(IBattler attacker,bool showMessages=true) { + public bool CanAttract(IBattler attacker,bool showMessages=true) { if (isFainted()) return false; if (!attacker.IsNotNullOrNone() || attacker.isFainted()) return false; if (effects.Attract>=0) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } bool? agender=attacker.Gender; bool? ogender=this.Gender; if (!agender.HasValue || !ogender.HasValue || agender==ogender) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } if ((!attacker.IsNotNullOrNone() || !attacker.hasMoldBreaker()) && hasWorkingAbility(Abilities.OBLIVIOUS)) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents romance!",ToString(), + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents romance!",ToString(), Game._INTL(this.ability.ToString(TextScripts.Name)))); return false; } return true; } - public void pbAttract(IBattler attacker,string msg=null) { + public void Attract(IBattler attacker,string msg=null) { effects.Attract=attacker.Index; - @battle.pbCommonAnimation("Attract",this,null); + @battle.CommonAnimation("Attract",this,null); if (!string.IsNullOrEmpty(msg)) - @battle.pbDisplay(msg); + @battle.Display(msg); else - @battle.pbDisplay(Game._INTL("{1} fell in love!",ToString())); + @battle.Display(Game._INTL("{1} fell in love!",ToString())); GameDebug.Log($"[Lingering effect triggered] #{ToString()} became infatuated (with #{attacker.ToString(true)})"); if (this.hasWorkingItem(Items.DESTINY_KNOT) && - attacker is IBattlerEffect a && a.pbCanAttract(this,false)) { + attacker is IBattlerEffect a && a.CanAttract(this,false)) { GameDebug.Log($"[Item triggered] #{ToString()}'s Destiny Knot"); - a.pbAttract(this,Game._INTL("{1}'s {2} made {3} fall in love!",ToString(), + a.Attract(this,Game._INTL("{1}'s {2} made {3} fall in love!",ToString(), Game._INTL(this.Item.ToString(TextScripts.Name)),attacker.ToString(true))); } } - public void pbAnnounceAttract(IBattler seducer) { - @battle.pbCommonAnimation("Attract",this,null); - @battle.pbDisplayBrief(Game._INTL("{1} is in love with {2}!", + public void AnnounceAttract(IBattler seducer) { + @battle.CommonAnimation("Attract",this,null); + @battle.DisplayBrief(Game._INTL("{1} is in love with {2}!", ToString(),seducer.ToString(true))); } - public void pbContinueAttract() { - @battle.pbDisplay(Game._INTL("{1} is immobilized by love!",ToString())); + public void ContinueAttract() { + @battle.Display(Game._INTL("{1} is immobilized by love!",ToString())); } - public void pbCureAttract() { + public void CureAttract() { effects.Attract=-1; GameDebug.Log($"[End of effect] #{ToString()} was cured of infatuation"); } #endregion #region Flinching - public bool pbFlinch(IBattler attacker) { + public bool Flinch(IBattler attacker) { if ((!attacker.IsNotNullOrNone() || !attacker.hasMoldBreaker()) && hasWorkingAbility(Abilities.INNER_FOCUS)) return false; effects.Flinch=true; return true; @@ -635,29 +635,29 @@ public bool pbFlinch(IBattler attacker) { #endregion #region Increase stat stages - public bool pbTooHigh(Stats stat) { + public bool TooHigh(Stats stat) { return @stages[(int)stat]>=6; } - public bool pbCanIncreaseStatStage(Stats stat,IBattler attacker=null,bool showMessages=false,IBattleMove move=null,bool moldbreaker=false,bool ignoreContrary=false) { + public bool CanIncreaseStatStage(Stats stat,IBattler attacker=null,bool showMessages=false,IBattleMove move=null,bool moldbreaker=false,bool ignoreContrary=false) { if (!moldbreaker) if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) if (hasWorkingAbility(Abilities.CONTRARY) && !ignoreContrary) - return pbCanReduceStatStage(stat,attacker,showMessages,moldbreaker:moldbreaker,ignoreContrary: true); + return CanReduceStatStage(stat,attacker,showMessages,moldbreaker:moldbreaker,ignoreContrary: true); if (isFainted()) return false; - if (pbTooHigh(stat)) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} won't go any higher!", + if (TooHigh(stat)) { + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} won't go any higher!", ToString(),Game._INTL(stat.ToString(TextScripts.Name)))); return false; } return true; } - public int pbIncreaseStatBasic(Stats stat,int increment,IBattler attacker=null,bool moldbreaker=false,bool ignoreContrary=false) { + public int IncreaseStatBasic(Stats stat,int increment,IBattler attacker=null,bool moldbreaker=false,bool ignoreContrary=false) { if (!moldbreaker) if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) { if (hasWorkingAbility(Abilities.CONTRARY) && !ignoreContrary) - return pbReduceStatBasic(stat,increment,attacker,moldbreaker,true); + return ReduceStatBasic(stat,increment,attacker,moldbreaker,true); if (hasWorkingAbility(Abilities.SIMPLE)) increment*=2; } increment=Math.Min(increment,6-@stages[(int)stat]); @@ -666,46 +666,46 @@ public int pbIncreaseStatBasic(Stats stat,int increment,IBattler attacker=null,b return increment; } - public bool pbIncreaseStat(Stats stat,int increment,IBattler attacker,bool showMessages,IBattleMove move=null,bool upanim=true,bool moldbreaker=false,bool ignoreContrary=false) { + public bool IncreaseStat(Stats stat,int increment,IBattler attacker,bool showMessages,IBattleMove move=null,bool upanim=true,bool moldbreaker=false,bool ignoreContrary=false) { if (!moldbreaker) if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) if (hasWorkingAbility(Abilities.CONTRARY) && !ignoreContrary) - return pbReduceStat(stat,increment,attacker,showMessages,move,upanim,moldbreaker,true); + return ReduceStat(stat,increment,attacker,showMessages,move,upanim,moldbreaker,true); if (stat!=Stats.ATTACK && stat!=Stats.DEFENSE && stat!=Stats.SPATK && stat!=Stats.SPDEF && stat!=Stats.SPEED && stat!=Stats.EVASION && stat!=Stats.ACCURACY) return false; - if (pbCanIncreaseStatStage(stat, attacker, showMessages, move, moldbreaker, ignoreContrary)) { - increment=pbIncreaseStatBasic(stat,increment,attacker,moldbreaker,ignoreContrary); + if (CanIncreaseStatStage(stat, attacker, showMessages, move, moldbreaker, ignoreContrary)) { + increment=IncreaseStatBasic(stat,increment,attacker,moldbreaker,ignoreContrary); if (increment > 0) { if (ignoreContrary) - if (upanim) @battle.pbDisplay(Game._INTL("{1}'s {2} activated!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); - if (upanim) @battle.pbCommonAnimation("StatUp", this, null); + if (upanim) @battle.Display(Game._INTL("{1}'s {2} activated!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + if (upanim) @battle.CommonAnimation("StatUp", this, null); string[] arrStatTexts=new string[] {Game._INTL("{1}'s {2} rose!",ToString(),Game._INTL(stat.ToString(TextScripts.Name))), Game._INTL("{1}'s {2} rose sharply!",ToString(),Game._INTL(stat.ToString(TextScripts.Name))), Game._INTL("{1}'s {2} rose drastically!",ToString(),Game._INTL(stat.ToString(TextScripts.Name)))}; - @battle.pbDisplay(arrStatTexts[Math.Min(increment-1,2)]); + @battle.Display(arrStatTexts[Math.Min(increment-1,2)]); return true; } } return false; } - public bool pbIncreaseStatWithCause(Stats stat,int increment,IBattler attacker,string cause,bool showanim=true,bool showmessage=true,bool moldbreaker=false,bool ignoreContrary=false) { + public bool IncreaseStatWithCause(Stats stat,int increment,IBattler attacker,string cause,bool showanim=true,bool showmessage=true,bool moldbreaker=false,bool ignoreContrary=false) { if (!moldbreaker) if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) if (hasWorkingAbility(Abilities.CONTRARY) && !ignoreContrary) - return pbReduceStatWithCause(stat,increment,attacker,cause,showanim,showmessage,moldbreaker,true); + return ReduceStatWithCause(stat,increment,attacker,cause,showanim,showmessage,moldbreaker,true); if (stat!=Stats.ATTACK && stat!=Stats.DEFENSE && stat!=Stats.SPATK && stat!=Stats.SPDEF && stat!=Stats.SPEED && stat!=Stats.EVASION && stat!=Stats.ACCURACY) return false; - if (pbCanIncreaseStatStage(stat,attacker,false,null,moldbreaker,ignoreContrary)) - increment=pbIncreaseStatBasic(stat,increment,attacker,moldbreaker,ignoreContrary); + if (CanIncreaseStatStage(stat,attacker,false,null,moldbreaker,ignoreContrary)) + increment=IncreaseStatBasic(stat,increment,attacker,moldbreaker,ignoreContrary); if (increment > 0) { //if (ignoreContrary) //ToDo: UpAnimation? - // if (upanim) @battle.pbDisplay(Game._INTL("{1}'s {2} activated!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); - if (showanim) @battle.pbCommonAnimation("StatUp", this, null); + // if (upanim) @battle.Display(Game._INTL("{1}'s {2} activated!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + if (showanim) @battle.CommonAnimation("StatUp", this, null); string [] arrStatTexts = null; if (attacker.Index==this.Index) arrStatTexts=new string[] {Game._INTL("{1}'s {2} raised its {3}!",ToString(),cause,Game._INTL(stat.ToString(TextScripts.Name))), @@ -715,7 +715,7 @@ public bool pbIncreaseStatWithCause(Stats stat,int increment,IBattler attacker,s arrStatTexts=new string[] {Game._INTL("{1}'s {2} raised {3}'s {4}!",attacker.ToString(),cause,ToString(true),Game._INTL(stat.ToString(TextScripts.Name))), Game._INTL("{1}'s {2} sharply raised {3}'s {4}!",attacker.ToString(),cause,ToString(true),Game._INTL(stat.ToString(TextScripts.Name))), Game._INTL("{1}'s {2} drastically raised {3}'s {4}!",attacker.ToString(),cause,ToString(true),Game._INTL(stat.ToString(TextScripts.Name)))}; - if (showmessage) @battle.pbDisplay(arrStatTexts[Math.Min(increment-1,2)]); + if (showmessage) @battle.Display(arrStatTexts[Math.Min(increment-1,2)]); return true; } return false; @@ -723,7 +723,7 @@ public bool pbIncreaseStatWithCause(Stats stat,int increment,IBattler attacker,s #endregion #region Decrease stat stages - public bool pbTooLow(Stats stat) { + public bool TooLow(Stats stat) { return @stages[(int)stat]<=-6; } @@ -739,70 +739,70 @@ public bool pbTooLow(Stats stat) { /// /// /// - public bool pbCanReduceStatStage(Stats stat,IBattler attacker=null,bool showMessages=false,IBattleMove move=null,bool moldbreaker=false,bool ignoreContrary=false) { + public bool CanReduceStatStage(Stats stat,IBattler attacker=null,bool showMessages=false,IBattleMove move=null,bool moldbreaker=false,bool ignoreContrary=false) { if (!moldbreaker) if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) if (hasWorkingAbility(Abilities.CONTRARY) && !ignoreContrary) - return pbCanIncreaseStatStage(stat,attacker,showMessages,move,moldbreaker,true); + return CanIncreaseStatStage(stat,attacker,showMessages,move,moldbreaker,true); if (isFainted()) return false; bool selfreduce=(attacker.IsNotNullOrNone() && attacker.Index==this.Index); if (!selfreduce) { if (effects.Substitute>0 && (!move.IsNotNullOrNone() || !move.ignoresSubstitute(attacker))) { - if (showMessages) @battle.pbDisplay(Game._INTL("But it failed!")); + if (showMessages) @battle.Display(Game._INTL("But it failed!")); return false; } if (OwnSide.Mist>0 && (!attacker.IsNotNullOrNone() || !attacker.hasWorkingAbility(Abilities.INFILTRATOR))) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1} is protected by Mist!",ToString())); + if (showMessages) @battle.Display(Game._INTL("{1} is protected by Mist!",ToString())); return false; } string abilityname; if (!moldbreaker && (!attacker.IsNotNullOrNone() || !attacker.hasMoldBreaker())) { if (hasWorkingAbility(Abilities.CLEAR_BODY) || hasWorkingAbility(Abilities.WHITE_SMOKE)) { abilityname=Game._INTL(this.ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents stat loss!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents stat loss!",ToString(),abilityname)); return false; } - if (pbHasType(Types.GRASS)) + if (HasType(Types.GRASS)) if (hasWorkingAbility(Abilities.FLOWER_VEIL)) { abilityname=Game._INTL(this.ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents stat loss!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents stat loss!",ToString(),abilityname)); return false; } else if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL)) { abilityname=Game._INTL(Partner.Ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents {3}'s stat loss!",Partner.ToString(),abilityname,ToString(true))); + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents {3}'s stat loss!",Partner.ToString(),abilityname,ToString(true))); return false; } if (stat==Stats.ATTACK && hasWorkingAbility(Abilities.HYPER_CUTTER)) { abilityname=Game._INTL(this.ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents Attack loss!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents Attack loss!",ToString(),abilityname)); return false; } if (stat==Stats.DEFENSE && hasWorkingAbility(Abilities.BIG_PECKS)) { abilityname=Game._INTL(this.ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents Defense loss!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents Defense loss!",ToString(),abilityname)); return false; } if (stat==Stats.ACCURACY && hasWorkingAbility(Abilities.KEEN_EYE)) { abilityname=Game._INTL(this.ability.ToString(TextScripts.Name)); - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} prevents accuracy loss!",ToString(),abilityname)); + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} prevents accuracy loss!",ToString(),abilityname)); return false; } } } - if (pbTooLow(stat)) { - if (showMessages) @battle.pbDisplay(Game._INTL("{1}'s {2} won't go any lower!", + if (TooLow(stat)) { + if (showMessages) @battle.Display(Game._INTL("{1}'s {2} won't go any lower!", ToString(),Game._INTL(stat.ToString(TextScripts.Name)))); return false; } return true; } - public int pbReduceStatBasic(Stats stat,int increment,IBattler attacker=null,bool moldbreaker=false,bool ignoreContrary=false) { + public int ReduceStatBasic(Stats stat,int increment,IBattler attacker=null,bool moldbreaker=false,bool ignoreContrary=false) { if (!moldbreaker) // moldbreaker is true only when Roar forces out a Pokémon into Sticky Web if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) { if (hasWorkingAbility(Abilities.CONTRARY) && !ignoreContrary) - return pbIncreaseStatBasic(stat,increment,attacker,moldbreaker,true); + return IncreaseStatBasic(stat,increment,attacker,moldbreaker,true); if (hasWorkingAbility(Abilities.SIMPLE)) increment*=2; } increment=Math.Min(increment,6+@stages[(int)stat]); @@ -811,52 +811,52 @@ public int pbReduceStatBasic(Stats stat,int increment,IBattler attacker=null,boo return increment; } - public bool pbReduceStat(Stats stat,int increment,IBattler attacker,bool showMessages,IBattleMove move=null,bool downanim=true,bool moldbreaker=false,bool ignoreContrary=false) { + public bool ReduceStat(Stats stat,int increment,IBattler attacker,bool showMessages,IBattleMove move=null,bool downanim=true,bool moldbreaker=false,bool ignoreContrary=false) { if (!moldbreaker) if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) if (hasWorkingAbility(Abilities.CONTRARY) && !ignoreContrary) - return pbIncreaseStat(stat,increment,attacker,showMessages,move,downanim,moldbreaker,true); + return IncreaseStat(stat,increment,attacker,showMessages,move,downanim,moldbreaker,true); if (stat!=Stats.ATTACK && stat!=Stats.DEFENSE && stat!=Stats.SPATK && stat!=Stats.SPDEF && stat!=Stats.SPEED && stat!=Stats.EVASION && stat!=Stats.ACCURACY) return false; - if (pbCanReduceStatStage(stat,attacker,showMessages,move,moldbreaker,ignoreContrary)) { - increment=pbReduceStatBasic(stat,increment,attacker,moldbreaker,ignoreContrary); + if (CanReduceStatStage(stat,attacker,showMessages,move,moldbreaker,ignoreContrary)) { + increment=ReduceStatBasic(stat,increment,attacker,moldbreaker,ignoreContrary); if (increment > 0) { if (ignoreContrary) - if (downanim) @battle.pbDisplay(Game._INTL("{1}'s {2} activated!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); - if (downanim) @battle.pbCommonAnimation("StatDown", this, null); + if (downanim) @battle.Display(Game._INTL("{1}'s {2} activated!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + if (downanim) @battle.CommonAnimation("StatDown", this, null); string[] arrStatTexts= new string[] {Game._INTL("{1}'s {2} fell!",ToString(),Game._INTL(stat.ToString(TextScripts.Name))), Game._INTL("{1}'s {2} harshly fell!",ToString(),Game._INTL(stat.ToString(TextScripts.Name))), Game._INTL("{1}'s {2} severely fell!",ToString(),Game._INTL(stat.ToString(TextScripts.Name)))}; - @battle.pbDisplay(arrStatTexts[Math.Min(increment-1,2)]); + @battle.Display(arrStatTexts[Math.Min(increment-1,2)]); // Defiant - if (hasWorkingAbility(Abilities.DEFIANT) && (!attacker.IsNotNullOrNone() || attacker.pbIsOpposing(this.Index))) - pbIncreaseStatWithCause(Stats.ATTACK,2,this,Game._INTL(this.ability.ToString(TextScripts.Name))); + if (hasWorkingAbility(Abilities.DEFIANT) && (!attacker.IsNotNullOrNone() || attacker.IsOpposing(this.Index))) + IncreaseStatWithCause(Stats.ATTACK,2,this,Game._INTL(this.ability.ToString(TextScripts.Name))); // Competitive - if (hasWorkingAbility(Abilities.COMPETITIVE) && (!attacker.IsNotNullOrNone() || attacker.pbIsOpposing(this.Index))) - pbIncreaseStatWithCause(Stats.SPATK,2,this,Game._INTL(this.ability.ToString(TextScripts.Name))); + if (hasWorkingAbility(Abilities.COMPETITIVE) && (!attacker.IsNotNullOrNone() || attacker.IsOpposing(this.Index))) + IncreaseStatWithCause(Stats.SPATK,2,this,Game._INTL(this.ability.ToString(TextScripts.Name))); return true; } } return false; } - public bool pbReduceStatWithCause(Stats stat,int increment,IBattler attacker,string cause,bool showanim=true,bool showmessage=true,bool moldbreaker=false,bool ignoreContrary=false) { + public bool ReduceStatWithCause(Stats stat,int increment,IBattler attacker,string cause,bool showanim=true,bool showmessage=true,bool moldbreaker=false,bool ignoreContrary=false) { if (!moldbreaker) if (!attacker.IsNotNullOrNone() || attacker.Index==this.Index || !attacker.hasMoldBreaker()) if (hasWorkingAbility(Abilities.CONTRARY) && !ignoreContrary) - return pbIncreaseStatWithCause(stat,increment,attacker,cause,showanim,showmessage,moldbreaker,true); + return IncreaseStatWithCause(stat,increment,attacker,cause,showanim,showmessage,moldbreaker,true); if (stat!=Stats.ATTACK && stat!=Stats.DEFENSE && stat!=Stats.SPATK && stat!=Stats.SPDEF && stat!=Stats.SPEED && stat!=Stats.EVASION && stat!=Stats.ACCURACY) return false; - if (pbCanReduceStatStage(stat, attacker, false, null, moldbreaker, ignoreContrary)) { - increment=pbReduceStatBasic(stat,increment,attacker,moldbreaker,ignoreContrary); + if (CanReduceStatStage(stat, attacker, false, null, moldbreaker, ignoreContrary)) { + increment=ReduceStatBasic(stat,increment,attacker,moldbreaker,ignoreContrary); if (increment > 0) { if (ignoreContrary) //DownAnimation? must be a typo for "ShowAnimation" -> showanim - if (showanim) @battle.pbDisplay(Game._INTL("{1}'s {2} activated!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); - if (showanim) @battle.pbCommonAnimation("StatDown",this,null); + if (showanim) @battle.Display(Game._INTL("{1}'s {2} activated!",ToString(),Game._INTL(this.ability.ToString(TextScripts.Name)))); + if (showanim) @battle.CommonAnimation("StatDown",this,null); string[] arrStatTexts = null; if (attacker.Index==this.Index) arrStatTexts=new string[] {Game._INTL("{1}'s {2} lowered its {3}!",ToString(),cause,Game._INTL(stat.ToString(TextScripts.Name))), @@ -866,50 +866,50 @@ public bool pbReduceStatWithCause(Stats stat,int increment,IBattler attacker,str arrStatTexts=new string[] {Game._INTL("{1}'s {2} lowered {3}'s {4}!",attacker.ToString(),cause,ToString(true),Game._INTL(stat.ToString(TextScripts.Name))), Game._INTL("{1}'s {2} harshly lowered {3}'s {4}!",attacker.ToString(),cause,ToString(true),Game._INTL(stat.ToString(TextScripts.Name))), Game._INTL("{1}'s {2} severely lowered {3}'s {4}!",attacker.ToString(),cause,ToString(true),Game._INTL(stat.ToString(TextScripts.Name)))}; - if (showmessage) @battle.pbDisplay(arrStatTexts[Math.Min(increment-1,2)]); + if (showmessage) @battle.Display(arrStatTexts[Math.Min(increment-1,2)]); // Defiant - if (hasWorkingAbility(Abilities.DEFIANT) && (!attacker.IsNotNullOrNone() || attacker.pbIsOpposing(this.Index))) - pbIncreaseStatWithCause(Stats.ATTACK,2,this,Game._INTL(this.ability.ToString(TextScripts.Name))); + if (hasWorkingAbility(Abilities.DEFIANT) && (!attacker.IsNotNullOrNone() || attacker.IsOpposing(this.Index))) + IncreaseStatWithCause(Stats.ATTACK,2,this,Game._INTL(this.ability.ToString(TextScripts.Name))); // Competitive - if (hasWorkingAbility(Abilities.COMPETITIVE) && (!attacker.IsNotNullOrNone() || attacker.pbIsOpposing(this.Index))) - pbIncreaseStatWithCause(Stats.SPATK,2,this,Game._INTL(this.ability.ToString(TextScripts.Name))); + if (hasWorkingAbility(Abilities.COMPETITIVE) && (!attacker.IsNotNullOrNone() || attacker.IsOpposing(this.Index))) + IncreaseStatWithCause(Stats.SPATK,2,this,Game._INTL(this.ability.ToString(TextScripts.Name))); return true; } } return false; } - public bool pbReduceAttackStatIntimidate(IBattler opponent) { + public bool ReduceAttackStatIntimidate(IBattler opponent) { if (isFainted()) return false; if (effects.Substitute>0) { - @battle.pbDisplay(Game._INTL("{1}'s substitute protected it from {2}'s {3}!", + @battle.Display(Game._INTL("{1}'s substitute protected it from {2}'s {3}!", ToString(),opponent.ToString(true),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; } if (!opponent.hasWorkingAbility(Abilities.CONTRARY)) { if (OwnSide.Mist>0) { - @battle.pbDisplay(Game._INTL("{1} is protected from {2}'s {3} by Mist!", + @battle.Display(Game._INTL("{1} is protected from {2}'s {3} by Mist!", ToString(),opponent.ToString(true),Game._INTL(opponent.Ability.ToString(TextScripts.Name)))); return false; } if (hasWorkingAbility(Abilities.CLEAR_BODY) || hasWorkingAbility(Abilities.WHITE_SMOKE) || hasWorkingAbility(Abilities.HYPER_CUTTER) || - (hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS))) { + (hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS))) { string abilityname=Game._INTL(this.ability.ToString(TextScripts.Name)); string oppabilityname=Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - @battle.pbDisplay(Game._INTL("{1}'s {2} prevented {3}'s {4} from working!", + @battle.Display(Game._INTL("{1}'s {2} prevented {3}'s {4} from working!", ToString(),abilityname,opponent.ToString(true),oppabilityname)); return false; } - if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && pbHasType(Types.GRASS)) { + if (Partner.hasWorkingAbility(Abilities.FLOWER_VEIL) && HasType(Types.GRASS)) { string abilityname=Game._INTL(Partner.Ability.ToString(TextScripts.Name)); string oppabilityname=Game._INTL(opponent.Ability.ToString(TextScripts.Name)); - @battle.pbDisplay(Game._INTL("{1}'s {2} prevented {3}'s {4} from working!", + @battle.Display(Game._INTL("{1}'s {2} prevented {3}'s {4} from working!", Partner.ToString(),abilityname,opponent.ToString(true),oppabilityname)); return false; } } - return pbReduceStatWithCause(Stats.ATTACK,1,opponent,Game._INTL(opponent.Ability.ToString(TextScripts.Name))); + return ReduceStatWithCause(Stats.ATTACK,1,opponent,Game._INTL(opponent.Ability.ToString(TextScripts.Name))); } #endregion } diff --git a/PokemonUnity.Application/Combat/Pokemon/Pokemon.Shadow.cs b/PokemonUnity.Application/Combat/Pokemon/Pokemon.Shadow.cs index 0657e938f..b48950ac8 100644 --- a/PokemonUnity.Application/Combat/Pokemon/Pokemon.Shadow.cs +++ b/PokemonUnity.Application/Combat/Pokemon/Pokemon.Shadow.cs @@ -11,33 +11,33 @@ namespace PokemonUnity.Combat //ToDo: Rename class to Battler public partial class Pokemon : PokemonEssentials.Interface.PokeBattle.IBattlerShadowPokemon { - public void pbInitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int pkmnIndex) { //, params object[] placeholder - if (pokemonIndex>0 && pkmn is IPokemonShadowPokemon p && inHyperMode() && !isFainted()) { //ToDo: Should move this to an Event Listener based on Battle Menu Selection + public void InitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int pkmnIndex) { //, params object[] placeholder + if (pokemonIndex>=0 && pkmn is IPokemonShadowPokemon p && inHyperMode() && !isFainted()) { //ToDo: Should move this to an Event Listener based on Battle Menu Selection // Called out of hypermode p.hypermode=false; //p.isHyperMode=false; //p.adjustHeart(-50); p.decreaseShadowLevel(Monster.PokemonActions.CallTo); } - (this as IBattler).pbInitPokemon((IPokemon)pkmn, pkmnIndex); //this._InitPokemon(pkmn, pkmnIndex); + (this as IBattler).InitPokemon((IPokemon)pkmn, pkmnIndex); //this._InitPokemon(pkmn, pkmnIndex); // Called into battle if (isShadow()) { //if (hasConst(Types.SHADOW)) Type1=Types.SHADOW; Type2=Types.SHADOW; //} - //if (@battle.pbOwnedByPlayer(@Index)) this.pokemon.adjustHeart(-30); - if (@battle.pbOwnedByPlayer(@Index)) (this.pokemon as IPokemonShadowPokemon).decreaseShadowLevel(Monster.PokemonActions.Battle); + //if (@battle.OwnedByPlayer(@Index)) this.pokemon.adjustHeart(-30); + if (@battle.OwnedByPlayer(@Index)) (this.pokemon as IPokemonShadowPokemon).decreaseShadowLevel(Monster.PokemonActions.Battle); } } - public virtual void pbEndTurn(IBattleChoice choice) { (this as IBattlerShadowPokemon).pbEndTurn(choice); } - void IBattlerShadowPokemon.pbEndTurn(IBattleChoice choice) { //, params object[] placeholder - (this as IBattler).pbEndTurn(choice); //this._pbEndTurn(choice); - if (inHyperMode() && !this.battle.pbAllFainted(this.battle.party1) && - !this.battle.pbAllFainted(this.battle.party2)) { - this.battle.pbDisplay(Game._INTL("Its hyper mode attack hurt {1}!",this.ToString(true))); - pbConfusionDamage(); + public virtual void EndTurn(IBattleChoice choice) { (this as IBattlerShadowPokemon).EndTurn(choice); } + void IBattlerShadowPokemon.EndTurn(IBattleChoice choice) { //, params object[] placeholder + (this as IBattler).EndTurn(choice); //this._EndTurn(choice); + if (inHyperMode() && !this.battle.AllFainted(this.battle.party1) && + !this.battle.AllFainted(this.battle.party2)) { + this.battle.Display(Game._INTL("Its hyper mode attack hurt {1}!",this.ToString(true))); + ConfusionDamage(); } } @@ -56,19 +56,19 @@ public bool inHyperMode() { return false; } - public void pbHyperMode() { + public void HyperMode() { PokemonEssentials.Interface.PokeBattle.IPokemon pkmn=this.pokemon; if (pkmn is IPokemonShadowPokemon p && isShadow() && !IsHyperMode) - if (@battle.pbRandom(p.ShadowLevel.Value)<=Monster.Pokemon.HEARTGAUGESIZE/4) { //p.heartgauge + if (@battle.Random(p.ShadowLevel.Value)<=Monster.Pokemon.HEARTGAUGESIZE/4) { //p.heartgauge isHyperMode=true; - @battle.pbDisplay(Game._INTL("{1}'s emotions rose to a fever pitch!\nIt entered Hyper Mode!",this.ToString())); + @battle.Display(Game._INTL("{1}'s emotions rose to a fever pitch!\nIt entered Hyper Mode!",this.ToString())); } } - public bool pbHyperModeObedience(IBattleMove move) { + public bool HyperModeObedience(IBattleMove move) { if (!move.IsNotNullOrNone()) return true; if (this.inHyperMode() && move.Type!=Types.SHADOW) - return @battle.pbRandom(10)<8 ? false : true; + return @battle.Random(10)<8 ? false : true; return true; } @@ -95,7 +95,7 @@ protected void Events_OnEndBattle(object sender, IOnEndBattleEventArgs e) { IPokemon pokemon = Game.GameData.Trainer.party[i]; if (pokemon is IPokemonShadowPokemon p && (t.heartgauges[i].HasValue && t.heartgauges[i]!=0 && p.heartgauge==0)) { - if (Game.GameData is IGameShadowPokemon g) g.pbReadyToPurify(p); + if (Game.GameData is IGameShadowPokemon g) g.ReadyToPurify(p); } } } @@ -112,20 +112,20 @@ public partial class Battle : PokemonEssentials.Interface.PokeBattle.IBattleShad /// /// /// Specifically for Shadow Pokemon Usage - public bool pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene) - { return (this as IBattleShadowPokemon).pbUseItemOnPokemon(item, pkmnIndex, userPkmn, scene); } - bool IBattleShadowPokemon.pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene) + public bool UseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene) + { return (this as IBattleShadowPokemon).UseItemOnPokemon(item, pkmnIndex, userPkmn, scene); } + bool IBattleShadowPokemon.UseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene) { IPokemon pokemon = this.party1[pkmnIndex]; if (pokemon is IPokemonShadowPokemon p && p.hypermode) { //&& //item != Items.JOY_SCENT && //item != Items.EXCITE_SCENT && //item != Items.VIVID_SCENT) { - scene.pbDisplay(Game._INTL("This item can't be used on that Pokemon.")); + scene.Display(Game._INTL("This item can't be used on that Pokemon.")); return false; } - //return _pbUseItemOnPokemon(item,pkmnIndex,userPkmn,scene); - return (this as IBattle).pbUseItemOnPokemon(item, pkmnIndex, (IBattler)userPkmn, scene); + //return _UseItemOnPokemon(item,pkmnIndex,userPkmn,scene); + return (this as IBattle).UseItemOnPokemon(item, pkmnIndex, (IBattler)userPkmn, scene); } } } \ No newline at end of file diff --git a/PokemonUnity.Application/Combat/Pokemon/Pokemon.cs b/PokemonUnity.Application/Combat/Pokemon/Pokemon.cs index 7a9112a14..a5b89bc5a 100644 --- a/PokemonUnity.Application/Combat/Pokemon/Pokemon.cs +++ b/PokemonUnity.Application/Combat/Pokemon/Pokemon.cs @@ -14,39 +14,37 @@ namespace PokemonUnity.Combat { - /// /// A Pokemon placeholder class to be used while in-battle, /// to prevent changes from being permanent to original pokemon profile /// /// /// This class is called once during battle and persist until end. - /// Values and variables are overwritten using + /// Values and variables are overwritten using /// - public partial class Pokemon : PokemonEssentials.Interface.PokeBattle.IBattler + public partial class Pokemon : PokemonEssentials.Interface.PokeBattle.IBattler, IEquatable, IEqualityComparer, IEquatable, IEqualityComparer, ICloneable { #pragma warning disable 0162 //Warning CS0162 Unreachable code detected #region Variables #region Battle Related - public IBattle battle { get; private set; }//{ return Game.battle; } + public IBattle battle { get; protected set; }//{ return Game.battle; } /// /// Returns the position of this pkmn in battle lineup /// - /// ToDo: Where this.pkmn.index == battle.Party[this.pkmn.index] - public int Index { get; private set; } + public int Index { get; protected set; } /// /// Index list of all pokemons who attacked this battler on this/previous turn /// - public IList lastAttacker { get; private set; } + public IList lastAttacker { get; protected set; } public int turncount { get; set; } //ToDo: Private set? - public IEffectsBattler effects { get; private set; } + public IEffectsBattler effects { get; protected set; } /// /// Int Buffs and debuffs (gains and loss) affecting this pkmn. /// /// /// 0: Attack, 1: Defense, 2: Speed, 3: SpAtk, 4: SpDef, 5: Evasion, 6: Accuracy /// - public int[] stages { get; private set; } + public int[] stages { get; protected set; } /// /// Participants will earn Exp. Points if this battler is defeated /// @@ -64,11 +62,11 @@ public partial class Pokemon : PokemonEssentials.Interface.PokeBattle.IBattler public bool captured { get; set; } #endregion #region Inherit Base Pokemon Data - public int HP { get { return hp; } set { if (value > 0) { hp = value; if (status == Status.FAINT) Status = Status.NONE; } else Status = Status.FAINT; } } + public int HP { get { return hp; } set { if (value > 0) { hp = value; if (status == Status.FAINT) { Status = Status.NONE; fainted = false; } } else Status = Status.FAINT;} } private int hp; public int TotalHP { get; protected set; } public int ATK { get { return effects.PowerTrick ? DEF : attack; } set { attack = value; } } - private int attack; + protected int attack; public int DEF { get { if (effects.PowerTrick) return attack; @@ -76,12 +74,12 @@ public int DEF { get } set { defense = value; } } - private int defense; + protected int defense; public int SPD { get { return battle.field.WonderRoom > 0 ? DEF : spdef; } set { spdef = value; } } - private int spdef; + protected int spdef; public int SPA { get { return spatk; } set { spatk = value; } } - private int spatk; - private int speed; + protected int spatk; + protected int speed; public int SPE { get { int[] stagemul = new int[] { 10, 10, 10, 10, 10, 10, 10, 15, 20, 25, 30, 35, 40 }; @@ -137,7 +135,7 @@ public int SPE { get Status == Status.PARALYSIS) speedmult = (int)Math.Round(speedmult / 4f); if (battle.internalbattle && - battle.pbOwnedByPlayer(Index) && + battle.OwnedByPlayer(Index) && Game.GameData.Trainer.badges.Count(b => b == true) >= Core.BADGESBOOSTSPEED) speedmult = (int)Math.Round(speedmult * 1.1f); spe = (int)Math.Round(spe * speedmult * 1f / 0x1000); @@ -149,7 +147,7 @@ public int Level { get { return level; } //pokemon.IsNotNullOrNone() ? pokemon.Level : 0; } set { level = value; } //if (pokemon.IsNotNullOrNone()) pokemon.SetLevel((byte)value); } } - private int level; + private int level; //ToDo: Do a null check for base.pokemon, and default to 0 if none? public Monster.Natures Nature { get { return pokemon.Nature; } } public int Happiness { get { return pokemon.Happiness; } } //set { happiness = value; } } //private int happiness { get; set; } //{ return pokemon.IsNotNullOrNone() ? pokemon.Happiness : 0; } } @@ -164,14 +162,14 @@ public bool? Gender { get { if (effects.Illusion != null) return effects.Illusion.Gender; return this.gender; } set { gender = value; } } - private bool? gender; + protected bool? gender; public bool IsShiny { get { if (effects.Illusion != null) return effects.Illusion.IsShiny; if (pokemon.IsNotNullOrNone()) return pokemon.IsShiny; return false; } } - public Pokemons Species { get { return pokemon == null ? Pokemons.NONE : Kernal.PokemonFormsData[pokemon.Species][form].Base; } }//ToDo: What about Illusion? + public Pokemons Species { get { return pokemon == null ? Pokemons.NONE : (effects.Illusion != null ? effects.Illusion.Species : Kernal.PokemonFormsData[pokemon.Species][form].Base); } } public int StatusCount { get { return statusCount; } set { statusCount = value; } } private int statusCount; public Status Status @@ -188,9 +186,9 @@ public Status Status if (value != Status.POISON) effects.Toxic = 0; if (value != Status.POISON && value != Status.SLEEP) - StatusCount = 0; - if (value != Status.FAINT) - hp = 0; + statusCount = 0; + if (value == Status.FAINT) + { hp = 0; fainted = true; } } } private Status status; @@ -198,7 +196,7 @@ public Status Status private Items item; public Types Type1 { get; set; } public Types Type2 { get; set; } - public int[] IV { get; private set; } + public int[] IV { get; protected set; } //public int[] IV { get { return pokemon.IV; } } public Abilities Ability { get { return ability; } set { ability = value; } } private Abilities ability; @@ -212,7 +210,7 @@ public Status Status /// In Hyper Mode, a Pokémon may attack its Trainer, but in Reverse Mode, they will not. /// While in Reverse Mode, a Pokémon hurts itself after every turn, whereas a Pokémon in Hyper Mode incurs no self-damage /// - private bool isHyperMode { get; set; } + protected bool isHyperMode { get; set; } /// /// Consumed held item (used in battle only) /// @@ -228,7 +226,7 @@ public Status Status /// ToDo: Move to pkemonBattle class public bool belch { get; set; } #endregion - private bool fainted; //ToDo: Remove because redundancy of `this.Status == Status.FAINT`? + protected bool fainted; //ToDo: Remove because redundancy of `this.Status == Status.FAINT`? public bool isFainted() { return HP == 0 || Status == Status.FAINT || fainted; } public bool isEgg { get { return pokemon?.isEgg??true; } } /// @@ -244,7 +242,7 @@ public bool IsOwned //return Game.GameData.Player.Pokedex[(byte)Species, 1] == 1; } } - public PokemonEssentials.Interface.PokeBattle.IPokemon pokemon { get; private set; } + public PokemonEssentials.Interface.PokeBattle.IPokemon pokemon { get; protected set; } public float Weight(IBattler attacker = null) { @@ -309,24 +307,25 @@ public bool isPrimal { get { #endregion #region Constructors + protected Pokemon() { } public Pokemon(IBattle btl, int idx) //: base() { (this as IBattler).initialize(btl, idx); } - IBattler IBattler.initialize(IBattle btl, int idx) + IBattler IBattler.initialize(IBattle btl, int idx) //because it's meant to be protected... { battle = btl; Index = idx; - HP = 0; + hp = 0; TotalHP = 0; fainted = true; captured = false; - stages = new int[Enum.GetValues(typeof(PokemonUnity.Combat.Stats)).Length]; + stages = new int[7]; //int[Enum.GetValues(typeof(PokemonUnity.Combat.Stats)).Length]; effects = new Effects.Battler(false); damagestate = new DamageState(); - pbInitBlank(); - pbInitEffects(false); - pbInitPermanentEffects(); + InitBlank(); + InitEffects(false); + InitPermanentEffects(); return this; } /// @@ -336,37 +335,57 @@ IBattler IBattler.initialize(IBattle btl, int idx) /// /// /// - public IBattler pbInitialize(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int index, bool batonpass = false) //: base(pkmn) + public virtual IBattler Initialize(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int index, bool batonpass = false) //: base(pkmn) { //Cure status of previous Pokemon with Natural Cure if (this.hasWorkingAbility(Abilities.NATURAL_CURE)) this.Status = 0; if (this.hasWorkingAbility(Abilities.REGENERATOR)) - this.pbRecoverHP((int)Math.Floor((decimal)this.TotalHP / 3)); - pbInitPokemon(pkmn, index); - pbInitEffects(batonpass); + this.RecoverHP((int)Math.Floor((decimal)this.TotalHP / 3)); + InitPokemon(pkmn, index); + InitEffects(batonpass); return this; } - public void pbInitBlank() + public virtual void InitBlank() { - //Pokemon blank = new Pokemon(); - //Level = 0; - pokemonIndex = -1; - participants = new List(); - } - public void pbInitEffects(bool batonpass) + @name = ""; + //@Species = 0; + @level = 0; + @HP = 0; + @TotalHP = 0; + @gender = null; //0; + @ability = 0; + @Type1 = 0; + @Type2 = 0; + @form = 0; + @attack = 0; + @defense = 0; + @speed = 0; + @spatk = 0; + @spdef = 0; + @status = 0; + @statusCount = 0; + @pokemon = null; + pokemonIndex = -1; + participants = new List(); + @moves = new IBattleMove[]{ null,null,null,null }; + @IV = new int[]{ 0,0,0,0,0,0 }; + @item = 0; + //@weight = null; + } + public virtual void InitEffects(bool batonpass) { if (!batonpass) { //These effects are retained if Baton Pass is used - //stages[0] = 0; // [ATTACK] - //stages[1] = 0; // [DEFENSE] - //stages[2] = 0; // [SPEED] - //stages[3] = 0; // [SPATK] - //stages[4] = 0; // [SPDEF] - //stages[5] = 0; // [EVASION] - //stages[6] = 0; // [ACCURACY] - stages = new int[7];//Enum.GetValues(typeof(PokemonUnity.Battle.Stats)).Length + //stages[0] = 0; // [ATTACK] + //stages[1] = 0; // [DEFENSE] + //stages[2] = 0; // [SPEED] + //stages[3] = 0; // [SPATK] + //stages[4] = 0; // [SPDEF] + //stages[5] = 0; // [EVASION] + //stages[6] = 0; // [ACCURACY] + stages = new int[7]; //int[Enum.GetValues(typeof(PokemonUnity.Combat.Stats)).Length]; lastMoveUsedSketch = Moves.NONE; //-1; effects.AquaRing = false; effects.Confusion = 0; @@ -510,6 +529,7 @@ public void pbInitEffects(bool batonpass) { //if (battle.battlers[i].Species == Pokemons.NONE) continue; if (!battle.battlers[i].IsNotNullOrNone()) continue; + if (battle.battlers[i].effects == null) continue; //ToDo: Initialize on all battlers before here?... if (battle.battlers[i].effects.Attract == Index) { battle.battlers[i].effects.Attract = -1; @@ -526,13 +546,13 @@ public void pbInitEffects(bool batonpass) } if (this.hasWorkingAbility(Abilities.ILLUSION)) { - int lastpoke = battle.pbGetLastPokeInTeam(Index); + int lastpoke = battle.GetLastPokeInTeam(Index); if (lastpoke != pokemonIndex){ - effects.Illusion = battle.pbParty(Index)[lastpoke]; + effects.Illusion = battle.Party(Index)[lastpoke]; } } } - public void pbInitPermanentEffects() + public virtual void InitPermanentEffects() { // These effects are always retained even if a Pokémon is replaced effects.FutureSight = 0 ; @@ -545,8 +565,8 @@ public void pbInitPermanentEffects() effects.WishAmount = 0 ; effects.WishMaker = -1 ; } - //private void _InitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, sbyte pkmnIndex) - void IBattler.pbInitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int pkmnIndex) + //protected void _InitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, sbyte pkmnIndex) + void IBattler.InitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int pkmnIndex) { if (pkmn.isEgg) { @@ -558,7 +578,7 @@ void IBattler.pbInitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn name = pkmn.Name; //Species = pkmn.Species; level = pkmn.Level; - hp = pkmn.HP; + HP = pkmn.HP; TotalHP = pkmn.TotalHP; gender = pkmn.Gender; ability = pkmn.Ability; @@ -577,10 +597,10 @@ void IBattler.pbInitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn pokemonIndex = pkmnIndex; participants = new List(); moves = new IBattleMove[] { - PokemonUnity.Combat.Move.pbFromPBMove(@battle,pkmn.moves[0]), - PokemonUnity.Combat.Move.pbFromPBMove(@battle,pkmn.moves[1]), - PokemonUnity.Combat.Move.pbFromPBMove(@battle,pkmn.moves[2]), - PokemonUnity.Combat.Move.pbFromPBMove(@battle,pkmn.moves[3]) + PokemonUnity.Combat.Move.FromMove(@battle,pkmn.moves[0]), + PokemonUnity.Combat.Move.FromMove(@battle,pkmn.moves[1]), + PokemonUnity.Combat.Move.FromMove(@battle,pkmn.moves[2]), + PokemonUnity.Combat.Move.FromMove(@battle,pkmn.moves[3]) }; IV = new int[] { //pkmn.IV; pkmn.IV[0], @@ -592,13 +612,13 @@ void IBattler.pbInitPokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn }; } } - public void pbUpdate(bool fullchange = false) + public void Update(bool fullchange = false) { if(Species != Pokemons.NONE) { pokemon.calcStats(); //Not needed since fetching stats from base ( Pokemon => Battler ) level = pokemon.Level; - hp = pokemon.HP; + HP = pokemon.HP; TotalHP = pokemon.TotalHP; //Pokemon = Pokemon; //so not all stats need to be handpicked if (!effects.Transform) //Changed forms but did not transform? @@ -621,15 +641,16 @@ public void pbUpdate(bool fullchange = false) /// /// Used only to erase the battler of a Shadow Pokémon that has been snagged. /// - public IBattler pbReset() + public IBattler Reset() { pokemon = new PokemonUnity.Monster.Pokemon(); Index = -1; - pbInitEffects(false); + InitEffects(false); //reset status - Status = Status.NONE; //ToDo: Status.FAINT? - StatusCount = 0; + status = Status.NONE; //ToDo: Status.FAINT? + statusCount = 0; fainted = true; + //captured = false; //ToDo: null=default,false=snagged,true=captured? //reset choice battle.choices[Index] = new Choice(ChoiceAction.NoAction); return this; @@ -637,12 +658,12 @@ public IBattler pbReset() /// /// Update Pokémon who will gain EXP if this battler is defeated /// - public void pbUpdateParticipants() + public void UpdateParticipants() { //Can't update if already fainted if (!isFainted()) { - if (battle.pbIsOpposing(Index)) + if (battle.IsOpposing(Index)) { bool found1, found2; found1 = found2 = false; for (int i = 0; i < participants.Count; i++) @@ -662,7 +683,7 @@ public void pbUpdateParticipants() #region About this Battler public string ToString(bool lowercase = false) { - if (battle.pbIsOpposing(Index)) + if (battle.IsOpposing(Index)) { if (battle.opponent.Length == 0)//.ID == TrainerTypes.WildPokemon //return string.Format("The wild {0}", Name); @@ -673,7 +694,7 @@ public string ToString(bool lowercase = false) //return LanguageExtension.Translate(Text.ScriptTexts, lowercase ? "OpponentPokemonL" : "OpponentPokemon", Name).Value; return Game._INTL("The opposing {0}", lowercase ? Game._INTL(Species.ToString(TextScripts.Name)).ToLowerInvariant() : Game._INTL(Species.ToString(TextScripts.Name))); } - else if (battle.pbOwnedByPlayer(Index)) + else if (battle.OwnedByPlayer(Index)) return Name; else //return string.Format("The ally {0}", Name); @@ -697,14 +718,14 @@ public bool hasWorkingAbility(Abilities ability, bool ignorefainted= false) { return this.Ability == ability; } - public bool pbHasType(Types type) { + public bool HasType(Types type) { if (type == Types.NONE || type < 0) return false; bool ret = (this.Type1 == type || this.Type2 == type); if (effects.Type3 >= 0) ret |= (effects.Type3 == type); return ret; } - public bool pbHasMoveType(Types type) { + public bool HasMoveType(Types type) { if (type == Types.NONE || type < 0) return false; for (int i = 0; i < moves.Length; i++) { @@ -766,7 +787,7 @@ public bool hasWorkingBerry(bool ignorefainted= false) { if (effects.Embargo > 0) return false; if (battle.field.MagicRoom > 0) return false; if (this.hasWorkingAbility(Abilities.KLUTZ, ignorefainted)) return false; - return Kernal.ItemData[this.Item].IsBerry;//.Pocket == ItemPockets.BERRY;//pbIsBerry?(@item) + return ItemData.IsBerry(this.Item);//.Pocket == ItemPockets.BERRY;//IsBerry?(@item) } public bool isAirborne(bool ignoreability=false){ @@ -774,7 +795,7 @@ public bool isAirborne(bool ignoreability=false){ if (effects.Ingrain) return false; if (effects.SmackDown) return false; if (battle.field.Gravity > 0) return false; - if (this.pbHasType(Types.FLYING) && !effects.Roost) return true; + if (this.HasType(Types.FLYING) && !effects.Roost) return true; if (this.hasWorkingAbility(Abilities.LEVITATE) && !ignoreability) return true; if (this.hasWorkingItem(Items.AIR_BALLOON)) return true; if (effects.MagnetRise > 0) return true; @@ -784,7 +805,7 @@ public bool isAirborne(bool ignoreability=false){ #endregion #region Change HP - public int pbReduceHP(int amt, bool animate = false, bool registerDamage = true) + public int ReduceHP(int amt, bool animate = false, bool registerDamage = true) { if (amt >= HP) amt = HP; @@ -793,22 +814,22 @@ public int pbReduceHP(int amt, bool animate = false, bool registerDamage = true) int oldhp = HP; HP -= amt; if (HP < 0) - //battle.pbDisplay(Game._INTL("HP less than 0")); - //battle.pbDisplay(LanguageExtension.Translate(Text.Errors, "HpLessThanZero").Value); + //battle.Display(Game._INTL("HP less than 0")); + //battle.Display(LanguageExtension.Translate(Text.Errors, "HpLessThanZero").Value); GameDebug.LogWarning("HP less than 0"); if (HP > TotalHP) - //battle.pbDisplay(Game._INTL("HP greater than total HP")); - //battle.pbDisplay(LanguageExtension.Translate(Text.Errors, "HpGreaterThanTotal").Value); + //battle.Display(Game._INTL("HP greater than total HP")); + //battle.Display(LanguageExtension.Translate(Text.Errors, "HpGreaterThanTotal").Value); GameDebug.LogWarning("HP greater than total HP"); if (amt > 0) //battle.scene.HPChanged(Index, oldhp, animate); - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbHPChanged(this, oldhp, animate); + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.HPChanged(this, oldhp, animate); if (amt > 0 && registerDamage) tookDamage = true; return amt; } - public int pbRecoverHP(int amount, bool animate = false) + public int RecoverHP(int amount, bool animate = false) { // the checks here are redundant, cause they're also placed on HP { set; } if (HP + amount > TotalHP) @@ -818,21 +839,21 @@ public int pbRecoverHP(int amount, bool animate = false) int oldhp = HP; HP += amount; if (HP < 0) - //battle.pbDisplay(Game._INTL("HP less than 0")); - //battle.pbDisplay(LanguageExtension.Translate(Text.Errors, "HpLessThanZero").Value); + //battle.Display(Game._INTL("HP less than 0")); + //battle.Display(LanguageExtension.Translate(Text.Errors, "HpLessThanZero").Value); GameDebug.LogWarning("HP less than 0"); if (HP > TotalHP) - //battle.pbDisplay(Game._INTL("HP greater than total HP")); - //battle.pbDisplay(LanguageExtension.Translate(Text.Errors, "HpGreaterThanTotal").Value); + //battle.Display(Game._INTL("HP greater than total HP")); + //battle.Display(LanguageExtension.Translate(Text.Errors, "HpGreaterThanTotal").Value); GameDebug.LogWarning("HP greater than total HP"); if(amount > 0) //battle.scene.HPChanged(Index, oldhp, animate); - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbHPChanged(this, oldhp, animate); + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.HPChanged(this, oldhp, animate); //ToDo: Fix return return amount; } - public bool pbFaint(bool showMessage = true) + public bool Faint(bool showMessage = true) { if(!isFainted() && HP > 0) { @@ -844,11 +865,11 @@ public bool pbFaint(bool showMessage = true) GameDebug.LogWarning("Can't faint if already fainted"); return true; } - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbFainted(this); - pbInitEffects(false); + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.Fainted(this); + InitEffects(false); // Reset status - //Status = 0; - StatusCount = 0; + //status = 0; + statusCount = 0; if (pokemon != null && battle.internalbattle) (pokemon as Monster.Pokemon).ChangeHappiness(HappinessMethods.FAINT); if (isMega) { @@ -861,15 +882,15 @@ public bool pbFaint(bool showMessage = true) if (pokemon is IPokemonMegaEvolution m) m.makeUnprimal(); form = pokemon is IPokemonMultipleForms f ? f.form : 0; } - HP = 0; + hp = 0; fainted = true; - Status = Status.FAINT; + status = Status.FAINT; //reset choice battle.choices[Index] = new Choice(ChoiceAction.NoAction); OwnSide.LastRoundFainted = battle.turncount; if (showMessage) - battle.pbDisplay(Game._INTL("{1} fainted!", ToString())); - //battle.pbDisplay(LanguageExtension.Translate(Text.Errors, "Fainted", new string[] { ToString() }).Value); + battle.Display(Game._INTL("{1} fainted!", ToString())); + //battle.Display(LanguageExtension.Translate(Text.Errors, "Fainted", new string[] { ToString() }).Value); return true; } #endregion @@ -880,18 +901,17 @@ public bool pbFaint(bool showMessage = true) /// /// Player: 0 and 2; Foe: 1 and 3 public IEffectsSide OwnSide { get { return battle.sides[Index&1]; } } - public IEffectsSide pbOwnSide { get { return OwnSide; } } /// /// Returns the data structure for the opposing Pokémon's side /// /// Player: 1 and 3; Foe: 0 and 2 - public IEffectsSide pbOpposingSide { get { return battle.sides[(Index&1)^1]; } } + public IEffectsSide OpposingSide { get { return battle.sides[(Index&1)^1]; } } /// /// Returns whether the position belongs to the opposing Pokémon's side /// /// /// - public bool pbIsOpposing(int i) + public bool IsOpposing(int i) { return (Index & 1) != (i & 1); } @@ -899,26 +919,25 @@ public bool pbIsOpposing(int i) /// Returns the battler's partner /// public IBattler Partner { get { return battle.battlers[(Index & 1) | ((Index & 2) ^ 2)]; } } - public IBattler pbPartner { get { return Partner; } } /// /// Returns the battler's first opposing Pokémon /// - public IBattler pbOppositeOpposing { get { return battle.battlers[(Index ^ 1)]; } } + public IBattler OppositeOpposing { get { return battle.battlers[(Index ^ 1)]; } } //ToDo: If not double battle return null? - public IBattler pbOppositeOpposing2 { get { return battle.battlers[(Index ^ 1) | ((Index & 2) ^ 2)]; } } - public IBattler pbOpposing1 { get { return battle.battlers[((Index & 1) ^ 1)]; } } + public IBattler OppositeOpposing2 { get { return battle.battlers[(Index ^ 1) | ((Index & 2) ^ 2)]; } } + public IBattler Opposing1 { get { return battle.battlers[((Index & 1) ^ 1)]; } } //ToDo: If not double battle return null? - public IBattler pbOpposing2 { get { return battle.battlers[((Index & 1) ^ 1) + 2]; } } + public IBattler Opposing2 { get { return battle.battlers[((Index & 1) ^ 1) + 2]; } } /// /// Returns the battler's first opposing Pokémon Index /// public int OpposingIndex { get { return (Index ^ 1) | ((Index & 2) ^ 2); } } - public int pbNonActivePokemonCount + public int NonActivePokemonCount { get { int count = 0; - PokemonEssentials.Interface.PokeBattle.IPokemon[] party = battle.pbParty(Index); + PokemonEssentials.Interface.PokeBattle.IPokemon[] party = battle.Party(Index); for (int i = 0; i < party.Length; i++) { if (battle.doublebattle) @@ -943,7 +962,7 @@ public int pbNonActivePokemonCount /// ToDo: Use PokemonUnity.Battle.Form to modify Pokemon._base, /// Which will override and modify base stats for values that inherit it /// Castform and Unown should use (int)Form, and others will use (PokemonData)Form - public void pbCheckForm() + public void CheckForm() { if (effects.Transform) return; if (isFainted()) return; @@ -953,7 +972,7 @@ public void pbCheckForm() { if (hasWorkingAbility(Abilities.FORECAST)) { - switch (battle.pbWeather) + switch (battle.Weather) { case Weather.SUNNYDAY: case Weather.HARSHSUN: @@ -1051,16 +1070,16 @@ public void pbCheckForm() } if (transformed) { - pbUpdate(true); + Update(true); if (@battle.scene is IPokeBattle_Scene s0) //s0.ChangePokemon(); - s0.pbChangePokemon(this, Form.Id); - battle.pbDisplay(Game._INTL("{1} transformed!", ToString())); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "Transformed", ToString()).Value); + s0.ChangePokemon(this, pokemon); + battle.Display(Game._INTL("{1} transformed!", ToString())); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "Transformed", ToString()).Value); GameDebug.Log(string.Format("[Form changed] {0} changed to form {1}", ToString(), Game._INTL(Form.Id.ToString(TextScripts.Name)))); } } - public void pbResetForm() + public void ResetForm() { if (!effects.Transform){ if (Species == Pokemons.CASTFORM || @@ -1071,12 +1090,12 @@ public void pbResetForm() Species == Pokemons.XERNEAS) form = 0; } - pbUpdate(true); + Update(true); } #endregion #region Ability Effects - public void pbAbilitiesOnSwitchIn(bool onactive) + public void AbilitiesOnSwitchIn(bool onactive) { if (isFainted()) return; //if (onactive) @@ -1084,39 +1103,39 @@ public void pbAbilitiesOnSwitchIn(bool onactive) #region Weather if (onactive) { - if(hasWorkingAbility(Abilities.PRIMORDIAL_SEA) && battle.pbWeather != Weather.HEAVYRAIN) + if(hasWorkingAbility(Abilities.PRIMORDIAL_SEA) && battle.Weather != Weather.HEAVYRAIN) { battle.weather = (Weather.HEAVYRAIN); battle.weatherduration = -1; - battle.pbCommonAnimation("HeavyRain", null, null); - battle.pbDisplay(Game._INTL("{1}'s {2} made a heavy rain begin to fall!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "HeavyRainStart", ToString(), Ability.ToString().Translate().Value).Value); + battle.CommonAnimation("HeavyRain", null, null); + battle.Display(Game._INTL("{1}'s {2} made a heavy rain begin to fall!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "HeavyRainStart", ToString(), Ability.ToString().Translate().Value).Value); GameDebug.Log(string.Format("[Ability triggered] {0}'s Primordial Sea made it rain heavily", ToString())); } - if(hasWorkingAbility(Abilities.DESOLATE_LAND) && battle.pbWeather != Weather.HARSHSUN) + if(hasWorkingAbility(Abilities.DESOLATE_LAND) && battle.Weather != Weather.HARSHSUN) { battle.weather = (Weather.HARSHSUN); battle.weatherduration = -1; - battle.pbCommonAnimation("HarshSun", null, null); - battle.pbDisplay(Game._INTL("{1}'s {2} turned the sunlight extremely harsh!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "HarshSunStart", ToString(), Ability.ToString().Translate().Value).Value); + battle.CommonAnimation("HarshSun", null, null); + battle.Display(Game._INTL("{1}'s {2} turned the sunlight extremely harsh!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "HarshSunStart", ToString(), Ability.ToString().Translate().Value).Value); GameDebug.Log(string.Format("[Ability triggered] {0}'s Desolate Land made the sun shine harshly", ToString())); } - if(hasWorkingAbility(Abilities.DELTA_STREAM) && battle.pbWeather != Weather.STRONGWINDS) + if(hasWorkingAbility(Abilities.DELTA_STREAM) && battle.Weather != Weather.STRONGWINDS) { battle.weather = (Weather.STRONGWINDS); battle.weatherduration = -1; - battle.pbCommonAnimation("StrongWinds", null, null); - battle.pbDisplay(Game._INTL("{1}'s {2} caused a mysterious air current that protects Flying-type Pokémon!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "StrongWindsStart", ToString(), Ability.ToString().Translate().Value).Value); + battle.CommonAnimation("StrongWinds", null, null); + battle.Display(Game._INTL("{1}'s {2} caused a mysterious air current that protects Flying-type Pokémon!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "StrongWindsStart", ToString(), Ability.ToString().Translate().Value).Value); GameDebug.Log(string.Format("[Ability triggered] {0}'s Delta Stream made an air current blow", ToString())); } - if (battle.pbWeather != Weather.HEAVYRAIN && - battle.pbWeather != Weather.HARSHSUN && - battle.pbWeather != Weather.STRONGWINDS) + if (battle.Weather != Weather.HEAVYRAIN && + battle.Weather != Weather.HARSHSUN && + battle.Weather != Weather.STRONGWINDS) { if (hasWorkingAbility(Abilities.DRIZZLE) && - (battle.pbWeather != Weather.RAINDANCE || battle.weatherduration != -1)) + (battle.Weather != Weather.RAINDANCE || battle.weatherduration != -1)) { battle.weather = (Weather.RAINDANCE); if (Core.USENEWBATTLEMECHANICS) @@ -1127,13 +1146,13 @@ public void pbAbilitiesOnSwitchIn(bool onactive) } else battle.weatherduration = -1; - battle.pbCommonAnimation("Rain", null, null); - battle.pbDisplay(Game._INTL("{1}'s {2} made it rain!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "RainStart", ToString(), Ability.ToString().Translate().Value).Value); + battle.CommonAnimation("Rain", null, null); + battle.Display(Game._INTL("{1}'s {2} made it rain!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "RainStart", ToString(), Ability.ToString().Translate().Value).Value); GameDebug.Log(string.Format("[Ability triggered] {0}'s Drizzle made it rain", ToString())); } if (hasWorkingAbility(Abilities.DROUGHT) && - (battle.pbWeather != Weather.SUNNYDAY || battle.weatherduration != -1)) + (battle.Weather != Weather.SUNNYDAY || battle.weatherduration != -1)) { battle.weather = (Weather.SUNNYDAY); if (Core.USENEWBATTLEMECHANICS) @@ -1144,14 +1163,14 @@ public void pbAbilitiesOnSwitchIn(bool onactive) } else battle.weatherduration = -1; - battle.pbCommonAnimation("Sunny", null, null); + battle.CommonAnimation("Sunny", null, null); //Output Below: - battle.pbDisplay(Game._INTL("{1}'s {2} intensified the sun's rays!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "SunnyStart", ToString(), Ability.ToString().Translate().Value).Value); + battle.Display(Game._INTL("{1}'s {2} intensified the sun's rays!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "SunnyStart", ToString(), Ability.ToString().Translate().Value).Value); GameDebug.Log(string.Format("[Ability triggered] {0}'s Drought made it sunny", ToString())); } if (hasWorkingAbility(Abilities.SAND_STREAM) && - (battle.pbWeather != Weather.SANDSTORM || battle.weatherduration != -1)) + (battle.Weather != Weather.SANDSTORM || battle.weatherduration != -1)) { battle.weather = (Weather.SANDSTORM); if (Core.USENEWBATTLEMECHANICS) @@ -1162,13 +1181,13 @@ public void pbAbilitiesOnSwitchIn(bool onactive) } else battle.weatherduration = -1; - battle.pbCommonAnimation("Sandstorm", null, null); - battle.pbDisplay(Game._INTL("{1}'s {2} whipped up a sandstorm!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "SandstormStart", ToString(), Ability.ToString().Translate().Value).Value); + battle.CommonAnimation("Sandstorm", null, null); + battle.Display(Game._INTL("{1}'s {2} whipped up a sandstorm!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "SandstormStart", ToString(), Ability.ToString().Translate().Value).Value); GameDebug.Log(string.Format("[Ability triggered] {0}'s Sand Stream made it sandstorm", ToString())); } if (hasWorkingAbility(Abilities.SNOW_WARNING) && - (battle.pbWeather != Weather.HAIL || battle.weatherduration != -1)) + (battle.Weather != Weather.HAIL || battle.weatherduration != -1)) { battle.weather = (Weather.HAIL); if (Core.USENEWBATTLEMECHANICS) @@ -1179,9 +1198,9 @@ public void pbAbilitiesOnSwitchIn(bool onactive) } else battle.weatherduration = -1; - battle.pbCommonAnimation("Hail", null, null); - battle.pbDisplay(Game._INTL("{1}'s {2} made it hail!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "HailStart", ToString(), Ability.ToString().Translate().Value).Value); + battle.CommonAnimation("Hail", null, null); + battle.Display(Game._INTL("{1}'s {2} made it hail!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "HailStart", ToString(), Ability.ToString().Translate().Value).Value); GameDebug.Log(string.Format("[Ability triggered] {0}'s Snow Warning made it hail", ToString())); } } @@ -1189,10 +1208,10 @@ public void pbAbilitiesOnSwitchIn(bool onactive) { battle.weather = (Weather.NONE); battle.weatherduration = 0; - battle.pbDisplay(Game._INTL("{1} has {2}!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "HasAbility", ToString(), Ability.ToString().Translate().Value).Value); - battle.pbDisplay(Game._INTL("The effects of the weather disappeared.")); - //battle.pbDisplay(LanguageExtension.Translate(Text.ScriptTexts, "WeatherNullified").Value); + battle.Display(Game._INTL("{1} has {2}!", ToString(), Game._INTL(Ability.ToString(TextScripts.Name)))); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "HasAbility", ToString(), Ability.ToString().Translate().Value).Value); + battle.Display(Game._INTL("The effects of the weather disappeared.")); + //battle.Display(LanguageExtension.Translate(Text.ScriptTexts, "WeatherNullified").Value); GameDebug.Log(string.Format("[Ability nullified] {0}'s Ability cancelled weather effects", ToString())); } } @@ -1206,7 +1225,7 @@ public void pbAbilitiesOnSwitchIn(bool onactive) for (int i = 0; i < battle.battlers.Length; i++) { IBattler foe = battle.battlers[i]; - if (pbIsOpposing(i) && !foe.isFainted()) + if (IsOpposing(i) && !foe.isFainted()) { Abilities abil = foe.Ability; if (abil > 0 && @@ -1221,12 +1240,12 @@ public void pbAbilitiesOnSwitchIn(bool onactive) } if (choices.Count > 0) { - int choice = choices[@battle.pbRandom(choices.Count)]; + int choice = choices[@battle.Random(choices.Count)]; string battlername = @battle.battlers[choice].ToString(true); Abilities battlerability = @battle.battlers[choice].Ability; @ability = battlerability; string abilityname = battlerability.ToString(); - @battle.pbDisplay(Game._INTL("{1} traced {2}'s {3}!", ToString(), battlername, abilityname)); + @battle.Display(Game._INTL("{1} traced {2}'s {3}!", ToString(), battlername, abilityname)); GameDebug.Log($"[Ability triggered] #{ToString()}'s Trace turned into #{abilityname} from #{battlername}"); } } @@ -1235,53 +1254,53 @@ public void pbAbilitiesOnSwitchIn(bool onactive) if (this.hasWorkingAbility(Abilities.INTIMIDATE) && onactive) { GameDebug.Log($"[Ability triggered] #{ToString()}'s Intimidate"); for (int i = 0; i < 4; i++) - if (pbIsOpposing(i) && !@battle.battlers[i].isFainted() && @battle.battlers[i] is IBattlerEffect b) - b.pbReduceAttackStatIntimidate(this); + if (IsOpposing(i) && !@battle.battlers[i].isFainted() && @battle.battlers[i] is IBattlerEffect b) + b.ReduceAttackStatIntimidate(this); } #endregion Intimidate #region Download if (this.hasWorkingAbility(Abilities.DOWNLOAD) && onactive) { int odef = 0; int ospdef = 0; - if (pbOpposing1.IsNotNullOrNone() && !pbOpposing1.isFainted()) { - odef+=pbOpposing1.DEF; - ospdef+=pbOpposing1.SPD; + if (Opposing1.IsNotNullOrNone() && !Opposing1.isFainted()) { + odef+=Opposing1.DEF; + ospdef+=Opposing1.SPD; } - if (pbOpposing2.IsNotNullOrNone() && !pbOpposing2.isFainted()) { - odef+=pbOpposing2.DEF; - ospdef+=pbOpposing1.SPD; + if (Opposing2.IsNotNullOrNone() && !Opposing2.isFainted()) { + odef+=Opposing2.DEF; + ospdef+=Opposing1.SPD; } if (ospdef>odef) - if (pbIncreaseStatWithCause(Stats.ATTACK,1,this,Game._INTL(ability.ToString(TextScripts.Name)))) + if (IncreaseStatWithCause(Stats.ATTACK,1,this,Game._INTL(ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{ToString()}'s Download (raising Attack)"); else - if (pbIncreaseStatWithCause(Stats.SPATK,1,this,Game._INTL(ability.ToString(TextScripts.Name)))) + if (IncreaseStatWithCause(Stats.SPATK,1,this,Game._INTL(ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{ToString()}'s Download (raising Special Attack)"); } #endregion Download #region Frisk - if (this.hasWorkingAbility(Abilities.FRISK) && @battle.pbOwnedByPlayer(@Index) && onactive) { + if (this.hasWorkingAbility(Abilities.FRISK) && @battle.OwnedByPlayer(@Index) && onactive) { List foes= new List(); - if (pbOpposing1.Item>0 && !pbOpposing1.isFainted()) foes.Add(pbOpposing1); - if (pbOpposing2.Item>0 && !pbOpposing2.isFainted()) foes.Add(pbOpposing2); + if (Opposing1.Item>0 && !Opposing1.isFainted()) foes.Add(Opposing1); + if (Opposing2.Item>0 && !Opposing2.isFainted()) foes.Add(Opposing2); if (Core.USENEWBATTLEMECHANICS) { if (foes.Count>0) GameDebug.Log($"[Ability triggered] #{ToString()}'s Frisk"); foreach (var i in foes) { string itemname=Game._INTL(i.Item.ToString(TextScripts.Name)); - @battle.pbDisplay(Game._INTL("{1} frisked {2} and found its {3}!",ToString(),i.ToString(true),itemname)); + @battle.Display(Game._INTL("{1} frisked {2} and found its {3}!",ToString(),i.ToString(true),itemname)); } } else if (foes.Count>0) { GameDebug.Log($"[Ability triggered] #{ToString()}'s Frisk"); - IBattler foe=foes[@battle.pbRandom(foes.Count)]; + IBattler foe=foes[@battle.Random(foes.Count)]; string itemname=Game._INTL(foe.Item.ToString(TextScripts.Name)); - @battle.pbDisplay(Game._INTL("{1} frisked the foe and found one {2}!",ToString(),itemname)); + @battle.Display(Game._INTL("{1} frisked the foe and found one {2}!",ToString(),itemname)); } } #endregion Frisk #region Anticipation - if (this.hasWorkingAbility(Abilities.ANTICIPATION) && @battle.pbOwnedByPlayer(@Index) && onactive) { + if (this.hasWorkingAbility(Abilities.ANTICIPATION) && @battle.OwnedByPlayer(@Index) && onactive) { GameDebug.Log($"[Ability triggered] #{ToString()} has Anticipation"); bool found=false; - foreach (var foe in new IBattler[] { pbOpposing1, pbOpposing2 }) { + foreach (var foe in new IBattler[] { Opposing1, Opposing2 }) { if (foe.isFainted()) continue; foreach (var j in foe.moves) { Attack.Data.MoveData movedata=Kernal.MoveData[j.id]; @@ -1294,15 +1313,15 @@ public void pbAbilitiesOnSwitchIn(bool onactive) } if (found) break; } - if (found) @battle.pbDisplay(Game._INTL("{1} shuddered with anticipation!",ToString())); + if (found) @battle.Display(Game._INTL("{1} shuddered with anticipation!",ToString())); } #endregion Anticipation #region Forewarn - if (this.hasWorkingAbility(Abilities.FOREWARN) && @battle.pbOwnedByPlayer(@Index) && onactive) { + if (this.hasWorkingAbility(Abilities.FOREWARN) && @battle.OwnedByPlayer(@Index) && onactive) { GameDebug.Log($"[Ability triggered] #{ToString()} has Forewarn"); int highpower=0; List fwmoves= new List(); - foreach (var foe in new IBattler[] { pbOpposing1, pbOpposing2 }) { + foreach (var foe in new IBattler[] { Opposing1, Opposing2 }) { if (foe.isFainted()) continue; foreach (var j in foe.moves) { Attack.Data.MoveData movedata=Kernal.MoveData[j.id]; @@ -1333,36 +1352,36 @@ public void pbAbilitiesOnSwitchIn(bool onactive) } } if (fwmoves.Count>0) { - Moves fwmove=fwmoves[@battle.pbRandom(fwmoves.Count)]; + Moves fwmove=fwmoves[@battle.Random(fwmoves.Count)]; string movename=Game._INTL(fwmove.ToString(TextScripts.Name)); - @battle.pbDisplay(Game._INTL("{1}'s Forewarn alerted it to {2}!",ToString(),movename)); + @battle.Display(Game._INTL("{1}'s Forewarn alerted it to {2}!",ToString(),movename)); } } #endregion Forewarn // Pressure message if (this.hasWorkingAbility(Abilities.PRESSURE) && onactive) - @battle.pbDisplay(Game._INTL("{1} is exerting its pressure!",ToString())); + @battle.Display(Game._INTL("{1} is exerting its pressure!",ToString())); // Mold Breaker message if (this.hasWorkingAbility(Abilities.MOLD_BREAKER) && onactive) - @battle.pbDisplay(Game._INTL("{1} breaks the mold!",ToString())); + @battle.Display(Game._INTL("{1} breaks the mold!",ToString())); // Turboblaze message if (this.hasWorkingAbility(Abilities.TURBOBLAZE) && onactive) - @battle.pbDisplay(Game._INTL("{1} is radiating a blazing aura!",ToString())); + @battle.Display(Game._INTL("{1} is radiating a blazing aura!",ToString())); // Teravolt message if (this.hasWorkingAbility(Abilities.TERAVOLT) && onactive) - @battle.pbDisplay(Game._INTL("{1} is radiating a bursting aura!",ToString())); + @battle.Display(Game._INTL("{1} is radiating a bursting aura!",ToString())); // Dark Aura message if (this.hasWorkingAbility(Abilities.DARK_AURA) && onactive) - @battle.pbDisplay(Game._INTL("{1} is radiating a dark aura!",ToString())); + @battle.Display(Game._INTL("{1} is radiating a dark aura!",ToString())); // Fairy Aura message if (this.hasWorkingAbility(Abilities.FAIRY_AURA) && onactive) - @battle.pbDisplay(Game._INTL("{1} is radiating a fairy aura!",ToString())); + @battle.Display(Game._INTL("{1} is radiating a fairy aura!",ToString())); // Aura Break message if (this.hasWorkingAbility(Abilities.AURA_BREAK) && onactive) - @battle.pbDisplay(Game._INTL("{1} reversed all other Pokémon's auras!",ToString())); + @battle.Display(Game._INTL("{1} reversed all other Pokémon's auras!",ToString())); // Imposter if (this.hasWorkingAbility(Abilities.IMPOSTER) && !@effects.Transform && onactive) { - IBattler choice=pbOppositeOpposing; + IBattler choice=OppositeOpposing; List blacklist=new List() { Attack.Data.Effects.x09C, // Fly Attack.Data.Effects.x101, // Dig @@ -1380,7 +1399,7 @@ public void pbAbilitiesOnSwitchIn(bool onactive) GameDebug.Log($"[Ability triggered] #{ToString()}'s Imposter couldn't transform"); else { GameDebug.Log($"[Ability triggered] #{ToString()}'s Imposter"); - @battle.pbAnimation(Moves.TRANSFORM,this,choice); + @battle.Animation(Moves.TRANSFORM,this,choice); @effects.Transform=true; @Type1=choice.Type1; @Type2=choice.Type2; @@ -1395,89 +1414,89 @@ public void pbAbilitiesOnSwitchIn(bool onactive) Stats.SPATK,Stats.SPDEF,Stats.ACCURACY,Stats.EVASION }) @stages[(int)i]=choice.stages[(int)i]; for (int i = 0; i < 4; i++) { - @moves[i]=Move.pbFromPBMove(@battle,new Attack.Move(choice.moves[i].id)); + @moves[i]=Move.FromMove(@battle,new Attack.Move(choice.moves[i].id)); @moves[i].PP=5; //@moves[i].TotalPP=5; } @effects.Disable=0; @effects.DisableMove=0; - @battle.pbDisplay(Game._INTL("{1} transformed into {2}!",ToString(),choice.ToString(true))); + @battle.Display(Game._INTL("{1} transformed into {2}!",ToString(),choice.ToString(true))); GameDebug.Log($"[Pokémon transformed] #{ToString()} transformed into #{choice.ToString(true)}"); } } // Air Balloon message if (this.hasWorkingItem(Items.AIR_BALLOON) && onactive) - @battle.pbDisplay(Game._INTL("{1} floats in the air with its {2}!",ToString(),Game._INTL(this.Item.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("{1} floats in the air with its {2}!",ToString(),Game._INTL(this.Item.ToString(TextScripts.Name)))); } - public void pbEffectsOnDealingDamage(IBattleMove move, IBattler user,IBattler target,int damage) { - Types movetype=move.pbType(move.Type,user,target); + public void EffectsOnDealingDamage(IBattleMove move, IBattler user,IBattler target,int damage) { + Types movetype=move.GetType(move.Type,user,target); if (damage>0 && move.Flags.Contact) if (!target.damagestate.Substitute) { if (target.hasWorkingItem(Items.STICKY_BARB,true) && user.Item==0 && !user.isFainted()) { user.Item=target.Item; target.Item=0; target.effects.Unburden=true; - if (@battle.opponent.Length == 0 && !@battle.pbIsOpposing(user.Index)) + if (@battle.opponent.Length == 0 && !@battle.IsOpposing(user.Index)) if (user.pokemon.itemInitial==Items.NONE && target.pokemon.itemInitial==user.Item) { user.pokemon.itemInitial=user.Item; target.pokemon.itemInitial=Items.NONE; } - @battle.pbDisplay(Game._INTL("{1}'s {2} was transferred to {3}!", + @battle.Display(Game._INTL("{1}'s {2} was transferred to {3}!", target.ToString(),Game._INTL(user.Item.ToString(TextScripts.Name)),user.ToString(true))); GameDebug.Log($"[Item triggered] #{target.ToString()}'s Sticky Barb moved to #{user.ToString(true)}"); } if (target.hasWorkingItem(Items.ROCKY_HELMET,true) && !user.isFainted()) if (!user.hasWorkingAbility(Abilities.MAGIC_GUARD)) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s Rocky Helmet"); - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbDamageAnimation(user,0); - user.pbReduceHP((int)Math.Floor(user.TotalHP/6d)); - @battle.pbDisplay(Game._INTL("{1} was hurt by the {2}!",user.ToString(), + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.DamageAnimation(user,0); + user.ReduceHP((int)Math.Floor(user.TotalHP/6d)); + @battle.Display(Game._INTL("{1} was hurt by the {2}!",user.ToString(), Game._INTL(target.Item.ToString(TextScripts.Name)))); } if (target.hasWorkingAbility(Abilities.AFTERMATH,true) && target.isFainted() && !user.isFainted()) - if (!@battle.pbCheckGlobalAbility(Abilities.DAMP).IsNotNullOrNone() && + if (!@battle.CheckGlobalAbility(Abilities.DAMP).IsNotNullOrNone() && !user.hasMoldBreaker() && !user.hasWorkingAbility(Abilities.MAGIC_GUARD)) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Aftermath"); - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbDamageAnimation(user,0); - user.pbReduceHP((int)Math.Floor(user.TotalHP/4d)); - @battle.pbDisplay(Game._INTL("{1} was caught in the aftermath!",user.ToString())); + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.DamageAnimation(user,0); + user.ReduceHP((int)Math.Floor(user.TotalHP/4d)); + @battle.Display(Game._INTL("{1} was caught in the aftermath!",user.ToString())); } - if (target.hasWorkingAbility(Abilities.CUTE_CHARM) && @battle.pbRandom(10)<3) - if (!user.isFainted() && user is IBattlerEffect u && u.pbCanAttract(target,false)) { + if (target.hasWorkingAbility(Abilities.CUTE_CHARM) && @battle.Random(10)<3) + if (!user.isFainted() && user is IBattlerEffect u && u.CanAttract(target,false)) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Cute Charm"); - u.pbAttract(target,Game._INTL("{1}'s {2} made {3} fall in love!",target.ToString(), + u.Attract(target,Game._INTL("{1}'s {2} made {3} fall in love!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); } - if (target.hasWorkingAbility(Abilities.EFFECT_SPORE,true) && @battle.pbRandom(10)<3) + if (target.hasWorkingAbility(Abilities.EFFECT_SPORE,true) && @battle.Random(10)<3) if (Core.USENEWBATTLEMECHANICS && - (user.pbHasType(Types.GRASS) || + (user.HasType(Types.GRASS) || user.hasWorkingAbility(Abilities.OVERCOAT) || user.hasWorkingItem(Items.SAFETY_GOGGLES))) { //Not sure what goes here } else { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Effect Spore"); - switch (@battle.pbRandom(3)) { + switch (@battle.Random(3)) { case 0: - if (user is IBattlerEffect b0 && b0.pbCanPoison(null,false)) - b0.pbPoison(target,Game._INTL("{1}'s {2} poisoned {3}!",target.ToString(), + if (user is IBattlerEffect b0 && b0.CanPoison(null,false)) + b0.Poison(target,Game._INTL("{1}'s {2} poisoned {3}!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); break; case 1: - if (user is IBattlerClause b1 && b1.pbCanSleep(null,false)) - if (b1 is IBattlerEffect b1a) b1a.pbSleep(Game._INTL("{1}'s {2} made {3} fall asleep!",target.ToString(), + if (user is IBattlerClause b1 && b1.CanSleep(null,false)) + if (b1 is IBattlerEffect b1a) b1a.Sleep(Game._INTL("{1}'s {2} made {3} fall asleep!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); break; case 2: - if (user is IBattlerEffect b2 && b2.pbCanParalyze(null,false)) - b2.pbParalyze(target,Game._INTL("{1}'s {2} paralyzed {3}! It may be unable to move!", + if (user is IBattlerEffect b2 && b2.CanParalyze(null,false)) + b2.Paralyze(target,Game._INTL("{1}'s {2} paralyzed {3}! It may be unable to move!", target.ToString(),Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); break; } } - if (target.hasWorkingAbility(Abilities.FLAME_BODY,true) && @battle.pbRandom(10)<3 && - user is IBattlerEffect u0 && u0.pbCanBurn(null,false)) { + if (target.hasWorkingAbility(Abilities.FLAME_BODY,true) && @battle.Random(10)<3 && + user is IBattlerEffect u0 && u0.CanBurn(null,false)) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Flame Body"); - u0.pbBurn(target,Game._INTL("{1}'s {2} burned {3}!",target.ToString(), + u0.Burn(target,Game._INTL("{1}'s {2} burned {3}!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); } if (target.hasWorkingAbility(Abilities.MUMMY,true) && !user.isFainted()) @@ -1486,179 +1505,179 @@ public void pbEffectsOnDealingDamage(IBattleMove move, IBattler user,IBattler ta user.Ability != Abilities.MUMMY) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Mummy copied onto #{user.ToString(true)}"); user.Ability=Abilities.MUMMY;// || 0; - @battle.pbDisplay(Game._INTL("{1} was mummified by {2}!", + @battle.Display(Game._INTL("{1} was mummified by {2}!", user.ToString(),target.ToString(true))); } - if (target.hasWorkingAbility(Abilities.POISON_POINT,true) && @battle.pbRandom(10)<3 && - user is IBattlerEffect u1 && u1.pbCanPoison(null,false)) { + if (target.hasWorkingAbility(Abilities.POISON_POINT,true) && @battle.Random(10)<3 && + user is IBattlerEffect u1 && u1.CanPoison(null,false)) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Poison Point"); - u1.pbPoison(target,Game._INTL("{1}'s {2} poisoned {3}!",target.ToString(), + u1.Poison(target,Game._INTL("{1}'s {2} poisoned {3}!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); } if ((target.hasWorkingAbility(Abilities.ROUGH_SKIN,true) || target.hasWorkingAbility(Abilities.IRON_BARBS,true)) && !user.isFainted()) if (!user.hasWorkingAbility(Abilities.MAGIC_GUARD)) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s #{Game._INTL(target.Ability.ToString(TextScripts.Name))}"); - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbDamageAnimation(user,0); - user.pbReduceHP((int)Math.Floor(user.TotalHP/8d)); - @battle.pbDisplay(Game._INTL("{1}'s {2} hurt {3}!",target.ToString(), + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.DamageAnimation(user,0); + user.ReduceHP((int)Math.Floor(user.TotalHP/8d)); + @battle.Display(Game._INTL("{1}'s {2} hurt {3}!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); } - if (target.hasWorkingAbility(Abilities.STATIC,true) && @battle.pbRandom(10)<3 && - user is IBattlerEffect u2 && u2.pbCanParalyze(null,false)) { + if (target.hasWorkingAbility(Abilities.STATIC,true) && @battle.Random(10)<3 && + user is IBattlerEffect u2 && u2.CanParalyze(null,false)) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Static"); - u2.pbParalyze(target,Game._INTL("{1}'s {2} paralyzed {3}! It may be unable to move!", + u2.Paralyze(target,Game._INTL("{1}'s {2} paralyzed {3}! It may be unable to move!", target.ToString(),Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); } if (target.hasWorkingAbility(Abilities.GOOEY,true)) - if (user is IBattlerEffect u3 && u3.pbReduceStatWithCause(Stats.SPEED,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) + if (user is IBattlerEffect u3 && u3.ReduceStatWithCause(Stats.SPEED,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Gooey"); if (user.hasWorkingAbility(Abilities.POISON_TOUCH,true) && - target is IBattlerEffect t && t.pbCanPoison(null,false) && @battle.pbRandom(10)<3) { + target is IBattlerEffect t && t.CanPoison(null,false) && @battle.Random(10)<3) { GameDebug.Log($"[Ability triggered] #{user.ToString()}'s Poison Touch"); - t.pbPoison(user,Game._INTL("{1}'s {2} poisoned {3}!",user.ToString(), + t.Poison(user,Game._INTL("{1}'s {2} poisoned {3}!",user.ToString(), Game._INTL(user.Ability.ToString(TextScripts.Name)),target.ToString(true))); } } if (damage>0) { if (!target.damagestate.Substitute) { - if (target.hasWorkingAbility(Abilities.CURSED_BODY,true) && @battle.pbRandom(10)<3) + if (target.hasWorkingAbility(Abilities.CURSED_BODY,true) && @battle.Random(10)<3) if (user.effects.Disable<=0 && move.PP>0 && !user.isFainted()) { user.effects.Disable=3; user.effects.DisableMove=move.id; - @battle.pbDisplay(Game._INTL("{1}'s {2} disabled {3}!",target.ToString(), + @battle.Display(Game._INTL("{1}'s {2} disabled {3}!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),user.ToString(true))); GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Cursed Body disabled #{user.ToString(true)}"); } if (target.hasWorkingAbility(Abilities.JUSTIFIED) && movetype == Types.DARK) - if (target is IBattlerEffect t && t.pbIncreaseStatWithCause(Stats.ATTACK,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) + if (target is IBattlerEffect t && t.IncreaseStatWithCause(Stats.ATTACK,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Justified"); if (target.hasWorkingAbility(Abilities.RATTLED) && (movetype == Types.BUG || movetype == Types.DARK || movetype == Types.GHOST)) - if (target is IBattlerEffect t && t.pbIncreaseStatWithCause(Stats.SPEED,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) + if (target is IBattlerEffect t && t.IncreaseStatWithCause(Stats.SPEED,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Rattled"); - if (target.hasWorkingAbility(Abilities.WEAK_ARMOR) && move.pbIsPhysical(movetype)) { - if (target is IBattlerEffect t0 && t0.pbReduceStatWithCause(Stats.DEFENSE,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) + if (target.hasWorkingAbility(Abilities.WEAK_ARMOR) && move.IsPhysical(movetype)) { + if (target is IBattlerEffect t0 && t0.ReduceStatWithCause(Stats.DEFENSE,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Weak Armor (lower Defense)"); - if (target is IBattlerEffect t1 && t1.pbIncreaseStatWithCause(Stats.SPEED,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) + if (target is IBattlerEffect t1 && t1.IncreaseStatWithCause(Stats.SPEED,1,target,Game._INTL(target.Ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Weak Armor (raise Speed)"); } if (target.hasWorkingItem(Items.AIR_BALLOON,true)) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s Air Balloon popped"); - @battle.pbDisplay(Game._INTL("{1}'s Air Balloon popped!",target.ToString())); - target.pbConsumeItem(true,false); + @battle.Display(Game._INTL("{1}'s Air Balloon popped!",target.ToString())); + target.ConsumeItem(true,false); } else if (target.hasWorkingItem(Items.ABSORB_BULB) && movetype == Types.WATER) - if (target is IBattlerEffect t0 && t0.pbIncreaseStatWithCause(Stats.SPATK,1,target,Game._INTL(target.Item.ToString(TextScripts.Name)))) { + if (target is IBattlerEffect t0 && t0.IncreaseStatWithCause(Stats.SPATK,1,target,Game._INTL(target.Item.ToString(TextScripts.Name)))) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s #{Game._INTL(target.Item.ToString(TextScripts.Name))}"); - target.pbConsumeItem(); + target.ConsumeItem(); } else if (target.hasWorkingItem(Items.LUMINOUS_MOSS) && movetype == Types.WATER) - if (target is IBattlerEffect t1 && t1.pbIncreaseStatWithCause(Stats.SPDEF,1,target,Game._INTL(target.Item.ToString(TextScripts.Name)))) { + if (target is IBattlerEffect t1 && t1.IncreaseStatWithCause(Stats.SPDEF,1,target,Game._INTL(target.Item.ToString(TextScripts.Name)))) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s #{Game._INTL(target.Item.ToString(TextScripts.Name))}"); - target.pbConsumeItem(); + target.ConsumeItem(); } else if (target.hasWorkingItem(Items.CELL_BATTERY) && movetype == Types.ELECTRIC) - if (target is IBattlerEffect t2 && t2.pbIncreaseStatWithCause(Stats.ATTACK,1,target,Game._INTL(target.Item.ToString(TextScripts.Name)))) { + if (target is IBattlerEffect t2 && t2.IncreaseStatWithCause(Stats.ATTACK,1,target,Game._INTL(target.Item.ToString(TextScripts.Name)))) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s #{Game._INTL(target.Item.ToString(TextScripts.Name))}"); - target.pbConsumeItem(); + target.ConsumeItem(); } else if (target.hasWorkingItem(Items.SNOWBALL) && movetype == Types.ICE) - if (target is IBattlerEffect t3 && t3.pbIncreaseStatWithCause(Stats.ATTACK,1,target,Game._INTL(target.Item.ToString(TextScripts.Name)))) { + if (target is IBattlerEffect t3 && t3.IncreaseStatWithCause(Stats.ATTACK,1,target,Game._INTL(target.Item.ToString(TextScripts.Name)))) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s #{Game._INTL(target.Item.ToString(TextScripts.Name))}"); - target.pbConsumeItem(); + target.ConsumeItem(); } else if (target.hasWorkingItem(Items.WEAKNESS_POLICY) && target.damagestate.TypeMod>8) { bool showanim=true; - if (target is IBattlerEffect t4 && t4.pbIncreaseStatWithCause(Stats.ATTACK,2,target,Game._INTL(target.Item.ToString(TextScripts.Name)),showanim)) { + if (target is IBattlerEffect t4 && t4.IncreaseStatWithCause(Stats.ATTACK,2,target,Game._INTL(target.Item.ToString(TextScripts.Name)),showanim)) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s Weakness Policy (Attack)"); showanim=false; } - if (target is IBattlerEffect t5 && t5.pbIncreaseStatWithCause(Stats.SPATK,2,target,Game._INTL(target.Item.ToString(TextScripts.Name)),showanim)) { + if (target is IBattlerEffect t5 && t5.IncreaseStatWithCause(Stats.SPATK,2,target,Game._INTL(target.Item.ToString(TextScripts.Name)),showanim)) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s Weakness Policy (Special Attack)"); showanim=false; } - if (!showanim) target.pbConsumeItem(); + if (!showanim) target.ConsumeItem(); } else if (target.hasWorkingItem(Items.ENIGMA_BERRY) && target.damagestate.TypeMod>8) - target.pbActivateBerryEffect(); - else if ((target.hasWorkingItem(Items.JABOCA_BERRY) && move.pbIsPhysical(movetype)) || - (target.hasWorkingItem(Items.ROWAP_BERRY) && move.pbIsSpecial(movetype))) + target.ActivateBerryEffect(); + else if ((target.hasWorkingItem(Items.JABOCA_BERRY) && move.IsPhysical(movetype)) || + (target.hasWorkingItem(Items.ROWAP_BERRY) && move.IsSpecial(movetype))) if (!user.hasWorkingAbility(Abilities.MAGIC_GUARD) && !user.isFainted()) { GameDebug.Log($"[Item triggered] #{target.ToString()}'s #{Game._INTL(target.Item.ToString(TextScripts.Name))}"); - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbDamageAnimation(user,0); - user.pbReduceHP((int)Math.Floor(user.TotalHP/8d)); - @battle.pbDisplay(Game._INTL("{1} consumed its {2} and hurt {3}!",target.ToString(), + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.DamageAnimation(user,0); + user.ReduceHP((int)Math.Floor(user.TotalHP/8d)); + @battle.Display(Game._INTL("{1} consumed its {2} and hurt {3}!",target.ToString(), Game._INTL(target.Item.ToString(TextScripts.Name)),user.ToString(true))); - target.pbConsumeItem(); + target.ConsumeItem(); } - else if (target.hasWorkingItem(Items.KEE_BERRY) && move.pbIsPhysical(movetype)) - target.pbActivateBerryEffect(); - else if (target.hasWorkingItem(Items.MARANGA_BERRY) && move.pbIsSpecial(movetype)) - target.pbActivateBerryEffect(); + else if (target.hasWorkingItem(Items.KEE_BERRY) && move.IsPhysical(movetype)) + target.ActivateBerryEffect(); + else if (target.hasWorkingItem(Items.MARANGA_BERRY) && move.IsSpecial(movetype)) + target.ActivateBerryEffect(); } if (target.hasWorkingAbility(Abilities.ANGER_POINT)) if (target.damagestate.Critical && !target.damagestate.Substitute && - target is IBattlerEffect t && t.pbCanIncreaseStatStage(Stats.ATTACK,target)) { + target is IBattlerEffect t && t.CanIncreaseStatStage(Stats.ATTACK,target)) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Anger Point"); target.stages[(int)Stats.ATTACK]=6; - @battle.pbCommonAnimation("StatUp",target,null); - @battle.pbDisplay(Game._INTL("{1}'s {2} maxed its {3}!", + @battle.CommonAnimation("StatUp",target,null); + @battle.Display(Game._INTL("{1}'s {2} maxed its {3}!", target.ToString(),Game._INTL(target.Ability.ToString(TextScripts.Name)),Game._INTL(Stats.ATTACK.ToString(TextScripts.Name)))); } } - user.pbAbilityCureCheck(); - target.pbAbilityCureCheck(); + user.AbilityCureCheck(); + target.AbilityCureCheck(); } - public void pbEffectsAfterHit(IBattler user,IBattler target,IBattleMove thismove,IEffectsMove turneffects) { + public void EffectsAfterHit(IBattler user,IBattler target,IBattleMove thismove,IEffectsMove turneffects) { if (turneffects.TotalDamage==0) return; if (!(user.hasWorkingAbility(Abilities.SHEER_FORCE) && thismove.AddlEffect>0)) { // Target's held items: // Red Card - if (target.hasWorkingItem(Items.RED_CARD) && @battle.pbCanSwitch(user.Index,-1,false)) { + if (target.hasWorkingItem(Items.RED_CARD) && @battle.CanSwitch(user.Index,-1,false)) { user.effects.Roar=true; - @battle.pbDisplay(Game._INTL("{1} held up its {2} against the {3}!", + @battle.Display(Game._INTL("{1} held up its {2} against the {3}!", target.ToString(),Game._INTL(target.Item.ToString(TextScripts.Name)),user.ToString(true))); - target.pbConsumeItem(); + target.ConsumeItem(); // Eject Button - } else if (target.hasWorkingItem(Items.EJECT_BUTTON) && @battle.pbCanChooseNonActive(target.Index)) { + } else if (target.hasWorkingItem(Items.EJECT_BUTTON) && @battle.CanChooseNonActive(target.Index)) { target.effects.Uturn=true; - @battle.pbDisplay(Game._INTL("{1} is switched out with the {2}!", + @battle.Display(Game._INTL("{1} is switched out with the {2}!", target.ToString(),Game._INTL(target.Item.ToString(TextScripts.Name)))); - target.pbConsumeItem(); + target.ConsumeItem(); } // User's held items: // Shell Bell if (user.hasWorkingItem(Items.SHELL_BELL) && user.effects.HealBlock==0) { GameDebug.Log($"[Item triggered] #{user.ToString()}'s Shell Bell (total damage=#{turneffects.TotalDamage})"); - int hpgain=user.pbRecoverHP((int)Math.Floor(turneffects.TotalDamage/8d),true); + int hpgain=user.RecoverHP((int)Math.Floor(turneffects.TotalDamage/8d),true); if (hpgain>0) - @battle.pbDisplay(Game._INTL("{1} restored a little HP using its {2}!", + @battle.Display(Game._INTL("{1} restored a little HP using its {2}!", user.ToString(),Game._INTL(user.Item.ToString(TextScripts.Name)))); } // Life Orb if (user.effects.LifeOrb && !user.hasWorkingAbility(Abilities.MAGIC_GUARD)) { GameDebug.Log($"[Item triggered] #{user.ToString()}'s Life Orb (recoil)"); - int hploss=user.pbReduceHP((int)Math.Floor(user.TotalHP/10d),true); + int hploss=user.ReduceHP((int)Math.Floor(user.TotalHP/10d),true); if (hploss>0) - @battle.pbDisplay(Game._INTL("{1} lost some of its HP!",user.ToString())); + @battle.Display(Game._INTL("{1} lost some of its HP!",user.ToString())); } - if (user.isFainted()) user.pbFaint(); // no return + if (user.isFainted()) user.Faint(); // no return // Color Change - Types movetype=thismove.pbType(thismove.Type,user,target); + Types movetype=thismove.GetType(thismove.Type,user,target); if (target.hasWorkingAbility(Abilities.COLOR_CHANGE) && - !target.pbHasType(movetype)) {//!PBTypes.isPseudoType(movetype) && + !target.HasType(movetype)) {//!Types.isPseudoType(movetype) && GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Color Change made it #{Game._INTL(movetype.ToString(TextScripts.Name))}-type"); target.Type1=movetype; target.Type2=movetype; target.effects.Type3=Types.NONE; - @battle.pbDisplay(Game._INTL("{1}'s {2} made it the {3} type!",target.ToString(), + @battle.Display(Game._INTL("{1}'s {2} made it the {3} type!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),Game._INTL(movetype.ToString(TextScripts.Name)))); } } // Moxie if (user.hasWorkingAbility(Abilities.MOXIE) && target.isFainted()) - if (user is IBattlerEffect u && u.pbIncreaseStatWithCause(Stats.ATTACK,1,user,Game._INTL(user.Ability.ToString(TextScripts.Name)))) + if (user is IBattlerEffect u && u.IncreaseStatWithCause(Stats.ATTACK,1,user,Game._INTL(user.Ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{user.ToString()}'s Moxie"); // Magician if (user.hasWorkingAbility(Abilities.MAGICIAN)) @@ -1666,9 +1685,9 @@ public void pbEffectsAfterHit(IBattler user,IBattler target,IBattleMove thismove user.effects.Substitute==0 && target.effects.Substitute==0 && !target.hasWorkingAbility(Abilities.STICKY_HOLD) && - !@battle.pbIsUnlosableItem(target,target.Item) && - !@battle.pbIsUnlosableItem(user,target.Item) && - (@battle.opponent.Length > 0 || !@battle.pbIsOpposing(user.Index))) { + !@battle.IsUnlosableItem(target,target.Item) && + !@battle.IsUnlosableItem(user,target.Item) && + (@battle.opponent.Length > 0 || !@battle.IsOpposing(user.Index))) { user.Item=target.Item; target.Item=0; target.effects.Unburden=true; @@ -1678,7 +1697,7 @@ public void pbEffectsAfterHit(IBattler user,IBattler target,IBattleMove thismove user.pokemon.itemInitial=user.Item; target.pokemon.itemInitial=Items.NONE; } - @battle.pbDisplay(Game._INTL("{1} stole {2}'s {3} with {4}!",user.ToString(), + @battle.Display(Game._INTL("{1} stole {2}'s {3} with {4}!",user.ToString(), target.ToString(true),Game._INTL(user.Item.ToString(TextScripts.Name)),Game._INTL(user.Ability.ToString(TextScripts.Name)))); GameDebug.Log($"[Ability triggered] #{user.ToString()}'s Magician stole #{target.ToString(true)}'s #{Game._INTL(user.Item.ToString(TextScripts.Name))}"); } @@ -1688,9 +1707,9 @@ public void pbEffectsAfterHit(IBattler user,IBattler target,IBattleMove thismove user.effects.Substitute==0 && target.effects.Substitute==0 && !user.hasWorkingAbility(Abilities.STICKY_HOLD) && - !@battle.pbIsUnlosableItem(user,user.Item) && - !@battle.pbIsUnlosableItem(target,user.Item) && - (@battle.opponent.Length > 0 || !@battle.pbIsOpposing(target.Index))) { + !@battle.IsUnlosableItem(user,user.Item) && + !@battle.IsUnlosableItem(target,user.Item) && + (@battle.opponent.Length > 0 || !@battle.IsOpposing(target.Index))) { target.Item=user.Item; user.Item=0; user.effects.Unburden=true; @@ -1700,70 +1719,70 @@ public void pbEffectsAfterHit(IBattler user,IBattler target,IBattleMove thismove target.pokemon.itemInitial=target.Item; user.pokemon.itemInitial=Items.NONE; } - @battle.pbDisplay(Game._INTL("{1} pickpocketed {2}'s {3}!",target.ToString(), + @battle.Display(Game._INTL("{1} pickpocketed {2}'s {3}!",target.ToString(), user.ToString(true),Game._INTL(target.Item.ToString(TextScripts.Name)))); GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Pickpocket stole #{user.ToString(true)}'s #{Game._INTL(target.Item.ToString(TextScripts.Name))}"); } } - public void pbAbilityCureCheck() { + public void AbilityCureCheck() { if (this.isFainted()) return; switch (this.status) { case Status.SLEEP: if (this.hasWorkingAbility(Abilities.VITAL_SPIRIT) || this.hasWorkingAbility(Abilities.INSOMNIA)) { GameDebug.Log($"[Ability triggered] #{ToString()}'s #{Game._INTL(@ability.ToString(TextScripts.Name))}"); - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} woke it up!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} woke it up!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); } break; case Status.POISON: if (this.hasWorkingAbility(Abilities.IMMUNITY)) { GameDebug.Log($"[Ability triggered] #{ToString()}'s #{Game._INTL(@ability.ToString(TextScripts.Name))}"); - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} cured its poisoning!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} cured its poisoning!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); } break; case Status.BURN: if (this.hasWorkingAbility(Abilities.WATER_VEIL)) { GameDebug.Log($"[Ability triggered] #{ToString()}'s #{Game._INTL(@ability.ToString(TextScripts.Name))}"); - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} healed its burn!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} healed its burn!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); } break; case Status.PARALYSIS: if (this.hasWorkingAbility(Abilities.LIMBER)) { GameDebug.Log($"[Ability triggered] #{ToString()}'s #{Game._INTL(@ability.ToString(TextScripts.Name))}"); - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} cured its paralysis!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} cured its paralysis!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); } break; case Status.FROZEN: if (this.hasWorkingAbility(Abilities.MAGMA_ARMOR)) { GameDebug.Log($"[Ability triggered] #{ToString()}'s #{Game._INTL(@ability.ToString(TextScripts.Name))}"); - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} defrosted it!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} defrosted it!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); } break; } if (@effects.Confusion>0 && this.hasWorkingAbility(Abilities.OWN_TEMPO)) { GameDebug.Log($"[Ability triggered] #{ToString()}'s #{Game._INTL(@ability.ToString(TextScripts.Name))} (attract)"); - pbCureConfusion(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} snapped it out of its confusion!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); + CureConfusion(false); + @battle.Display(Game._INTL("{1}'s {2} snapped it out of its confusion!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); } if (@effects.Attract>=0 && this.hasWorkingAbility(Abilities.OBLIVIOUS)) { GameDebug.Log($"[Ability triggered] #{ToString()}'s #{Game._INTL(@ability.ToString(TextScripts.Name))}"); - pbCureAttract(); - @battle.pbDisplay(Game._INTL("{1}'s {2} cured its infatuation status!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); + CureAttract(); + @battle.Display(Game._INTL("{1}'s {2} cured its infatuation status!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); } if (Core.USENEWBATTLEMECHANICS && @effects.Taunt>0 && this.hasWorkingAbility(Abilities.OBLIVIOUS)) { GameDebug.Log($"[Ability triggered] #{ToString()}'s #{Game._INTL(@ability.ToString(TextScripts.Name))} (taunt)"); @effects.Taunt=0; - @battle.pbDisplay(Game._INTL("{1}'s {2} made its taunt wear off!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("{1}'s {2} made its taunt wear off!",ToString(),Game._INTL(@ability.ToString(TextScripts.Name)))); } } #endregion #region Held Item effects - public void pbConsumeItem(bool recycle=true,bool pickup=true) { + public void ConsumeItem(bool recycle=true,bool pickup=true) { string itemname=Game._INTL(this.Item.ToString(TextScripts.Name)); if (recycle) itemRecycle=this.Item; if (itemInitial==this.Item) itemInitial=0; @@ -1776,79 +1795,79 @@ public void pbConsumeItem(bool recycle=true,bool pickup=true) { // Symbiosis if (Partner.IsNotNullOrNone() && Partner.hasWorkingAbility(Abilities.SYMBIOSIS) && recycle) if (Partner.Item>0 && - !@battle.pbIsUnlosableItem(Partner,Partner.Item) && - !@battle.pbIsUnlosableItem(this,Partner.Item)) { - @battle.pbDisplay(Game._INTL("{1}'s {2} let it share its {3} with {4}!", + !@battle.IsUnlosableItem(Partner,Partner.Item) && + !@battle.IsUnlosableItem(this,Partner.Item)) { + @battle.Display(Game._INTL("{1}'s {2} let it share its {3} with {4}!", Partner.ToString(),Game._INTL(Partner.Ability.ToString(TextScripts.Name)), Game._INTL(Partner.Item.ToString(TextScripts.Name)),ToString(true))); this.Item=Partner.Item; Partner.Item=0; Partner.effects.Unburden=true; - pbBerryCureCheck(); + BerryCureCheck(); } } - public bool pbConfusionBerry(Inventory.Plants.Flavours flavor,string message1,string message2) { - int amt=this.pbRecoverHP((int)Math.Floor(this.TotalHP/8d),true); + public bool ConfusionBerry(Inventory.Plants.Flavours flavor,string message1,string message2) { + int amt=this.RecoverHP((int)Math.Floor(this.TotalHP/8d),true); if (amt>0) { - @battle.pbDisplay(message1); + @battle.Display(message1); //if ((this.Nature%5)==flavor && (int)Math.Floor(this.Nature/5d)!=(this.Nature%5)) { if (Kernal.NatureData[pokemon.Nature].Dislikes==flavor) { - @battle.pbDisplay(message2); - pbConfuseSelf(); + @battle.Display(message2); + ConfuseSelf(); } return true; } return false; } - public bool pbStatIncreasingBerry(Stats stat,string berryname) { - return pbIncreaseStatWithCause(stat,1,this,berryname); + public bool StatIncreasingBerry(Stats stat,string berryname) { + return IncreaseStatWithCause(stat,1,this,berryname); } - public void pbActivateBerryEffect(Items berry=Items.NONE,bool consume=true) { + public void ActivateBerryEffect(Items berry=Items.NONE,bool consume=true) { if (berry==0) berry=this.Item; string berryname=(berry==0) ? "" : Game._INTL(berry.ToString(TextScripts.Name)); GameDebug.Log($"[Item triggered] #{ToString()}'s #{berryname}"); bool consumed=false; if (berry == Items.ORAN_BERRY) { - int amt=this.pbRecoverHP(10,true); + int amt=this.RecoverHP(10,true); if (amt>0) { - @battle.pbDisplay(Game._INTL("{1} restored its health using its {2}!",ToString(),berryname)); + @battle.Display(Game._INTL("{1} restored its health using its {2}!",ToString(),berryname)); consumed=true; } } else if (berry == Items.SITRUS_BERRY || berry == Items.ENIGMA_BERRY) { - int amt=this.pbRecoverHP((int)Math.Floor(this.TotalHP/4d),true); + int amt=this.RecoverHP((int)Math.Floor(this.TotalHP/4d),true); if (amt>0) { - @battle.pbDisplay(Game._INTL("{1} restored its health using its {2}!",ToString(),berryname)); + @battle.Display(Game._INTL("{1} restored its health using its {2}!",ToString(),berryname)); consumed=true; } } else if (berry == Items.CHESTO_BERRY) if (this.status==Status.SLEEP) { - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} cured its sleep problem.",ToString(),berryname)); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} cured its sleep problem.",ToString(),berryname)); consumed=true; } else if (berry == Items.PECHA_BERRY) if (this.status==Status.POISON) { - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} cured its poisoning.",ToString(),berryname)); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} cured its poisoning.",ToString(),berryname)); consumed=true; } else if (berry == Items.RAWST_BERRY) if (this.status==Status.BURN) { - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} healed its burn.",ToString(),berryname)); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} healed its burn.",ToString(),berryname)); consumed=true; } else if (berry == Items.CHERI_BERRY) if (this.status==Status.PARALYSIS) { - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} cured its paralysis.",ToString(),berryname)); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} cured its paralysis.",ToString(),berryname)); consumed=true; } else if (berry == Items.ASPEAR_BERRY) if (this.status==Status.FROZEN) { - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} thawed it out.",ToString(),berryname)); + CureStatus(false); + @battle.Display(Game._INTL("{1}'s {2} thawed it out.",ToString(),berryname)); consumed=true; } else if (berry == Items.LEPPA_BERRY) { @@ -1859,128 +1878,128 @@ public void pbActivateBerryEffect(Items berry=Items.NONE,bool consume=true) { (!consume && @pokemon.moves[i].PP<@pokemon.moves[i].TotalPP)) found.Add(i); if (found.Count>0) { - int choice=(consume) ? found[0] : found[@battle.pbRandom(found.Count)]; + int choice=(consume) ? found[0] : found[@battle.Random(found.Count)]; IMove pokemove=@pokemon.moves[choice]; pokemove.PP+=10; if (pokemove.PP > pokemove.TotalPP) pokemove.PP=pokemove.TotalPP; this.moves[choice].PP=pokemove.PP; string movename=Game._INTL(pokemove.id.ToString(TextScripts.Name)); - @battle.pbDisplay(Game._INTL("{1}'s {2} restored {3}'s PP!",ToString(),berryname,movename)) ; + @battle.Display(Game._INTL("{1}'s {2} restored {3}'s PP!",ToString(),berryname,movename)) ; consumed=true; } } else if (berry == Items.PERSIM_BERRY) if (@effects.Confusion>0) { - pbCureConfusion(false); - @battle.pbDisplay(Game._INTL("{1}'s {2} snapped it out of its confusion!",ToString(),berryname)); + CureConfusion(false); + @battle.Display(Game._INTL("{1}'s {2} snapped it out of its confusion!",ToString(),berryname)); consumed=true; } else if (berry == Items.LUM_BERRY) if (this.status>0 || @effects.Confusion>0) { Status st=this.status; bool conf=(@effects.Confusion>0); - pbCureStatus(false); - pbCureConfusion(false); + CureStatus(false); + CureConfusion(false); switch (st) { case Status.SLEEP: - @battle.pbDisplay(Game._INTL("{1}'s {2} woke it up!",ToString(),berryname)); + @battle.Display(Game._INTL("{1}'s {2} woke it up!",ToString(),berryname)); break; case Status.POISON: - @battle.pbDisplay(Game._INTL("{1}'s {2} cured its poisoning!",ToString(),berryname)); + @battle.Display(Game._INTL("{1}'s {2} cured its poisoning!",ToString(),berryname)); break; case Status.BURN: - @battle.pbDisplay(Game._INTL("{1}'s {2} healed its burn!",ToString(),berryname)); + @battle.Display(Game._INTL("{1}'s {2} healed its burn!",ToString(),berryname)); break; case Status.PARALYSIS: - @battle.pbDisplay(Game._INTL("{1}'s {2} cured its paralysis!",ToString(),berryname)); + @battle.Display(Game._INTL("{1}'s {2} cured its paralysis!",ToString(),berryname)); break; case Status.FROZEN: - @battle.pbDisplay(Game._INTL("{1}'s {2} defrosted it!",ToString(),berryname)); + @battle.Display(Game._INTL("{1}'s {2} defrosted it!",ToString(),berryname)); break; } if (conf) - @battle.pbDisplay(Game._INTL("{1}'s {2} snapped it out of its confusion!",ToString(),berryname)); + @battle.Display(Game._INTL("{1}'s {2} snapped it out of its confusion!",ToString(),berryname)); consumed=true; } else if (berry == Items.FIGY_BERRY) - consumed=pbConfusionBerry(Kernal.BerryData[berry].Flavour, + consumed=ConfusionBerry(Kernal.BerryData[berry].Flavour, Game._INTL("{1}'s {2} restored health!",ToString(),berryname), Game._INTL("For {1}, the {2} was too spicy!",ToString(true),berryname)); else if (berry == Items.WIKI_BERRY) - consumed=pbConfusionBerry(Kernal.BerryData[berry].Flavour, + consumed=ConfusionBerry(Kernal.BerryData[berry].Flavour, Game._INTL("{1}'s {2} restored health!",ToString(),berryname), Game._INTL("For {1}, the {2} was too dry!",ToString(true),berryname)); else if (berry == Items.MAGO_BERRY) - consumed=pbConfusionBerry(Kernal.BerryData[berry].Flavour, + consumed=ConfusionBerry(Kernal.BerryData[berry].Flavour, Game._INTL("{1}'s {2} restored health!",ToString(),berryname), Game._INTL("For {1}, the {2} was too sweet!",ToString(true),berryname)); else if (berry == Items.AGUAV_BERRY) - consumed=pbConfusionBerry(Kernal.BerryData[berry].Flavour, + consumed=ConfusionBerry(Kernal.BerryData[berry].Flavour, Game._INTL("{1}'s {2} restored health!",ToString(),berryname), Game._INTL("For {1}, the {2} was too bitter!",ToString(true),berryname)); else if (berry == Items.IAPAPA_BERRY) - consumed=pbConfusionBerry(Kernal.BerryData[berry].Flavour, + consumed=ConfusionBerry(Kernal.BerryData[berry].Flavour, Game._INTL("{1}'s {2} restored health!",ToString(),berryname), Game._INTL("For {1}, the {2} was too sour!",ToString(true),berryname)); else if (berry == Items.LIECHI_BERRY) - consumed=pbStatIncreasingBerry(Stats.ATTACK,berryname); + consumed=StatIncreasingBerry(Stats.ATTACK,berryname); else if (berry == Items.GANLON_BERRY || berry == Items.KEE_BERRY) - consumed=pbStatIncreasingBerry(Stats.DEFENSE,berryname); + consumed=StatIncreasingBerry(Stats.DEFENSE,berryname); else if (berry == Items.SALAC_BERRY) - consumed=pbStatIncreasingBerry(Stats.SPEED,berryname); + consumed=StatIncreasingBerry(Stats.SPEED,berryname); else if (berry == Items.PETAYA_BERRY) - consumed=pbStatIncreasingBerry(Stats.SPATK,berryname); + consumed=StatIncreasingBerry(Stats.SPATK,berryname); else if (berry == Items.APICOT_BERRY || berry == Items.MARANGA_BERRY) - consumed=pbStatIncreasingBerry(Stats.SPDEF,berryname); + consumed=StatIncreasingBerry(Stats.SPDEF,berryname); else if (berry == Items.LANSAT_BERRY) if (@effects.FocusEnergy<2) { @effects.FocusEnergy=2; - @battle.pbDisplay(Game._INTL("{1} used its {2} to get pumped!",ToString(),berryname)); + @battle.Display(Game._INTL("{1} used its {2} to get pumped!",ToString(),berryname)); consumed=true; } else if (berry == Items.MICLE_BERRY) if (!@effects.MicleBerry) { @effects.MicleBerry=true; - @battle.pbDisplay(Game._INTL("{1} boosted the accuracy of its next move using its {2}!", + @battle.Display(Game._INTL("{1} boosted the accuracy of its next move using its {2}!", ToString(),berryname)); consumed=true; } else if (berry == Items.STARF_BERRY) { List stats= new List(); foreach (Stats i in new Stats[] { Stats.ATTACK, Stats.DEFENSE, Stats.SPATK, Stats.SPDEF, Stats.SPEED }) - if (pbCanIncreaseStatStage(i,this)) stats.Add(i); + if (CanIncreaseStatStage(i,this)) stats.Add(i); if (stats.Count>0) { - Stats stat=stats[@battle.pbRandom(stats.Count)]; - consumed=pbIncreaseStatWithCause(stat,2,this,berryname); + Stats stat=stats[@battle.Random(stats.Count)]; + consumed=IncreaseStatWithCause(stat,2,this,berryname); } } if (consumed) { // Cheek Pouch if (hasWorkingAbility(Abilities.CHEEK_POUCH)) { - int amt=this.pbRecoverHP((int)Math.Floor(@TotalHP/3d),true); + int amt=this.RecoverHP((int)Math.Floor(@TotalHP/3d),true); if (amt>0) - @battle.pbDisplay(Game._INTL("{1}'s {2} restored its health!", + @battle.Display(Game._INTL("{1}'s {2} restored its health!", ToString(),Game._INTL(ability.ToString(TextScripts.Name)))); } - if (consume) pbConsumeItem(); + if (consume) ConsumeItem(); if (this.pokemon.IsNotNullOrNone()) this.belch=true; } } - public void pbBerryCureCheck(bool hpcure=false) { + public void BerryCureCheck(bool hpcure=false) { if (this.isFainted()) return; bool unnerver = false; if (battle.doublebattle) - unnerver = (pbOpposing1.hasWorkingAbility(Abilities.UNNERVE) || pbOpposing2.hasWorkingAbility(Abilities.UNNERVE)); + unnerver = (Opposing1.hasWorkingAbility(Abilities.UNNERVE) || Opposing2.hasWorkingAbility(Abilities.UNNERVE)); else - unnerver = (pbOpposing1.hasWorkingAbility(Abilities.UNNERVE)); + unnerver = (Opposing1.hasWorkingAbility(Abilities.UNNERVE)); string itemname=(this.Item==0) ? "" : Game._INTL(this.Item.ToString(TextScripts.Name)); if (hpcure) if (this.hasWorkingItem(Items.BERRY_JUICE) && this.HP<= (int)Math.Floor(this.TotalHP/2d)) { - int amt=this.pbRecoverHP(20,true); + int amt=this.RecoverHP(20,true); if (amt>0) { - @battle.pbCommonAnimation("UseItem",this,null); - @battle.pbDisplay(Game._INTL("{1} restored its health using its {2}!",ToString(),itemname)); - pbConsumeItem(); + @battle.CommonAnimation("UseItem",this,null); + @battle.Display(Game._INTL("{1} restored its health using its {2}!",ToString(),itemname)); + ConsumeItem(); return; } } @@ -1989,7 +2008,7 @@ public void pbBerryCureCheck(bool hpcure=false) { if (this.HP<= (int)Math.Floor(this.TotalHP/2d)) { if (this.hasWorkingItem(Items.ORAN_BERRY) || this.hasWorkingItem(Items.SITRUS_BERRY)) { - pbActivateBerryEffect(); + ActivateBerryEffect(); return; } if (this.hasWorkingItem(Items.FIGY_BERRY) || @@ -1997,7 +2016,7 @@ public void pbBerryCureCheck(bool hpcure=false) { this.hasWorkingItem(Items.MAGO_BERRY) || this.hasWorkingItem(Items.AGUAV_BERRY) || this.hasWorkingItem(Items.IAPAPA_BERRY)) { - pbActivateBerryEffect(); + ActivateBerryEffect(); return; } } @@ -2009,21 +2028,21 @@ public void pbBerryCureCheck(bool hpcure=false) { this.hasWorkingItem(Items.SALAC_BERRY) || this.hasWorkingItem(Items.PETAYA_BERRY) || this.hasWorkingItem(Items.APICOT_BERRY)) { - pbActivateBerryEffect(); + ActivateBerryEffect(); return; } if (this.hasWorkingItem(Items.LANSAT_BERRY) || this.hasWorkingItem(Items.STARF_BERRY)) { - pbActivateBerryEffect(); + ActivateBerryEffect(); return; } if (this.hasWorkingItem(Items.MICLE_BERRY)) { - pbActivateBerryEffect(); + ActivateBerryEffect(); return; } } if (this.hasWorkingItem(Items.LEPPA_BERRY)) { - pbActivateBerryEffect(); + ActivateBerryEffect(); return; } if (this.hasWorkingItem(Items.CHESTO_BERRY) || @@ -2033,7 +2052,7 @@ public void pbBerryCureCheck(bool hpcure=false) { this.hasWorkingItem(Items.ASPEAR_BERRY) || this.hasWorkingItem(Items.PERSIM_BERRY) || this.hasWorkingItem(Items.LUM_BERRY)) { - pbActivateBerryEffect(); + ActivateBerryEffect(); return; } } @@ -2047,9 +2066,9 @@ public void pbBerryCureCheck(bool hpcure=false) { } if (reducedstats) { GameDebug.Log($"[Item triggered] #{ToString()}'s #{itemname}"); - @battle.pbCommonAnimation("UseItem",this,null); - @battle.pbDisplay(Game._INTL("{1} restored its status using its {2}!",ToString(),itemname)); - pbConsumeItem(); + @battle.CommonAnimation("UseItem",this,null); + @battle.Display(Game._INTL("{1} restored its status using its {2}!",ToString(),itemname)); + ConsumeItem(); return; } } @@ -2061,14 +2080,14 @@ public void pbBerryCureCheck(bool hpcure=false) { @effects.Disable>0 || @effects.HealBlock>0)) { GameDebug.Log($"[Item triggered] #{ToString()}'s #{itemname}"); - @battle.pbCommonAnimation("UseItem",this,null); - if (@effects.Attract>=0) @battle.pbDisplay(Game._INTL("{1} cured its infatuation status using its {2}.",ToString(),itemname)); - if (@effects.Taunt>0) @battle.pbDisplay(Game._INTL("{1}'s taunt wore off!",ToString())); - if (@effects.Encore>0) @battle.pbDisplay(Game._INTL("{1}'s encore ended!",ToString())); - if (@effects.Torment) @battle.pbDisplay(Game._INTL("{1}'s torment wore off!",ToString())); - if (@effects.Disable>0) @battle.pbDisplay(Game._INTL("{1} is no longer disabled!",ToString())); - if (@effects.HealBlock>0) @battle.pbDisplay(Game._INTL("{1}'s Heal Block wore off!",ToString())); - this.pbCureAttract(); + @battle.CommonAnimation("UseItem",this,null); + if (@effects.Attract>=0) @battle.Display(Game._INTL("{1} cured its infatuation status using its {2}.",ToString(),itemname)); + if (@effects.Taunt>0) @battle.Display(Game._INTL("{1}'s taunt wore off!",ToString())); + if (@effects.Encore>0) @battle.Display(Game._INTL("{1}'s encore ended!",ToString())); + if (@effects.Torment) @battle.Display(Game._INTL("{1}'s torment wore off!",ToString())); + if (@effects.Disable>0) @battle.Display(Game._INTL("{1} is no longer disabled!",ToString())); + if (@effects.HealBlock>0) @battle.Display(Game._INTL("{1}'s Heal Block wore off!",ToString())); + this.CureAttract(); @effects.Taunt=0; @effects.Encore=0; @effects.EncoreMove=0; @@ -2076,158 +2095,158 @@ public void pbBerryCureCheck(bool hpcure=false) { @effects.Torment=false; @effects.Disable=0; @effects.HealBlock=0; - pbConsumeItem(); + ConsumeItem(); return; } if (hpcure && this.hasWorkingItem(Items.LEFTOVERS) && this.HP!=this.TotalHP && @effects.HealBlock==0) { GameDebug.Log($"[Item triggered] #{ToString()}'s Leftovers"); - @battle.pbCommonAnimation("UseItem",this,null); - pbRecoverHP((int)Math.Floor(this.TotalHP/16d),true); - @battle.pbDisplay(Game._INTL("{1} restored a little HP using its {2}!",ToString(),itemname)); + @battle.CommonAnimation("UseItem",this,null); + RecoverHP((int)Math.Floor(this.TotalHP/16d),true); + @battle.Display(Game._INTL("{1} restored a little HP using its {2}!",ToString(),itemname)); } if (hpcure && this.hasWorkingItem(Items.BLACK_SLUDGE)) { - if (pbHasType(Types.POISON)) + if (HasType(Types.POISON)) if (this.HP!=this.TotalHP && (!Core.USENEWBATTLEMECHANICS || @effects.HealBlock==0)) { GameDebug.Log($"[Item triggered] #{ToString()}'s Black Sludge (heal)"); - @battle.pbCommonAnimation("UseItem",this,null); - pbRecoverHP((int)Math.Floor(this.TotalHP/16d),true); - @battle.pbDisplay(Game._INTL("{1} restored a little HP using its {2}!",ToString(),itemname)); + @battle.CommonAnimation("UseItem",this,null); + RecoverHP((int)Math.Floor(this.TotalHP/16d),true); + @battle.Display(Game._INTL("{1} restored a little HP using its {2}!",ToString(),itemname)); } else if (!this.hasWorkingAbility(Abilities.MAGIC_GUARD)) { GameDebug.Log($"[Item triggered] #{ToString()}'s Black Sludge (damage)"); - @battle.pbCommonAnimation("UseItem",this,null); - pbReduceHP((int)Math.Floor(this.TotalHP/8d),true); - @battle.pbDisplay(Game._INTL("{1} was hurt by its {2}!",ToString(),itemname)); + @battle.CommonAnimation("UseItem",this,null); + ReduceHP((int)Math.Floor(this.TotalHP/8d),true); + @battle.Display(Game._INTL("{1} was hurt by its {2}!",ToString(),itemname)); } - if (this.isFainted()) pbFaint(); + if (this.isFainted()) Faint(); } } #endregion #region Move user and targets - public IBattler pbFindUser(IBattleChoice choice,IList targets) {//ToDo: ref IList targets) { + public IBattler FindUser(IBattleChoice choice,IList targets) {//ToDo: ref IList targets) { IBattleMove move=choice.Move; int target=choice.Target; IBattler user = this; // Normally, the user is this // Targets in normal cases - switch (pbTarget(move)) { //ToDo: Missing `Select everyone` (including user) + switch (Target(move)) { //ToDo: Missing `Select everyone` (including user) case Attack.Data.Targets.SELECTED_POKEMON: //Attack.Target.SingleNonUser: case Attack.Data.Targets.SELECTED_POKEMON_ME_FIRST: if (target>=0) { IBattler targetBattler=@battle.battlers[target]; - if (!pbIsOpposing(targetBattler.Index)) - if (!pbAddTarget(ref targets,targetBattler)) - if (!pbAddTarget(ref targets,pbOpposing1)) pbAddTarget(ref targets,pbOpposing2); + if (!IsOpposing(targetBattler.Index)) + if (!AddTarget(ref targets,targetBattler)) + if (!AddTarget(ref targets,Opposing1)) AddTarget(ref targets,Opposing2); else - if (!pbAddTarget(ref targets,targetBattler)) pbAddTarget(ref targets,targetBattler.pbPartner); + if (!AddTarget(ref targets,targetBattler)) AddTarget(ref targets,targetBattler.Partner); } else - pbRandomTarget(targets); + RandomTarget(targets); break; //case Attack.Data.Targets.SELECTED_POKEMON: //Attack.Target.SingleOpposing: //case Attack.Data.Targets.SELECTED_POKEMON_ME_FIRST: // if (target>=0) { // IBattler targetBattler=@battle.battlers[target]; // if (!IsOpposing(targetBattler.Index)) - // if (!pbAddTarget(targets,targetBattler)) - // if (!pbAddTarget(targets,pbOpposing1)) pbAddTarget(targets,pbOpposing2); + // if (!AddTarget(targets,targetBattler)) + // if (!AddTarget(targets,Opposing1)) AddTarget(targets,Opposing2); // else - // if (!pbAddTarget(targets,targetBattler)) pbAddTarget(targets,targetBattler.pbPartner); + // if (!AddTarget(targets,targetBattler)) AddTarget(targets,targetBattler.Partner); // } // else - // pbRandomTarget(targets); + // RandomTarget(targets); // break; - case Attack.Data.Targets.OPPONENTS_FIELD: //Attack.Target.pbOppositeOpposing: - if (!pbAddTarget(ref targets,pbOppositeOpposing2)) pbAddTarget(ref targets,pbOppositeOpposing); + case Attack.Data.Targets.OPPONENTS_FIELD: //Attack.Target.OppositeOpposing: + if (!AddTarget(ref targets,OppositeOpposing2)) AddTarget(ref targets,OppositeOpposing); break; case Attack.Data.Targets.RANDOM_OPPONENT: //Attack.Target.RandomOpposing: - pbRandomTarget(targets); + RandomTarget(targets); break; case Attack.Data.Targets.ALL_OPPONENTS: //Attack.Target.AllOpposing: - // Just pbOpposing1 because partner is determined late - if (!pbAddTarget(ref targets,pbOpposing1)) pbAddTarget(ref targets,pbOpposing2); + // Just Opposing1 because partner is determined late + if (!AddTarget(ref targets,Opposing1)) AddTarget(ref targets,Opposing2); break; case Attack.Data.Targets.ALL_OTHER_POKEMON: //Attack.Target.AllNonUsers: for (int i = 0; i < 4; i++) // not ordered by priority - if (i!=@Index) pbAddTarget(ref targets,@battle.battlers[i]); + if (i!=@Index) AddTarget(ref targets,@battle.battlers[i]); break; case Attack.Data.Targets.USER_OR_ALLY: //Attack.Target.UserOrPartner: if (target>=0) { // Pre-chosen target IBattler targetBattler=@battle.battlers[target]; - if (!pbAddTarget(ref targets,targetBattler)) pbAddTarget(ref targets,targetBattler.pbPartner); + if (!AddTarget(ref targets,targetBattler)) AddTarget(ref targets,targetBattler.Partner); } else - pbAddTarget(ref targets,this); + AddTarget(ref targets,this); break; case Attack.Data.Targets.ALLY: //Attack.TargetPartner: - pbAddTarget(ref targets,Partner); + AddTarget(ref targets,Partner); break; default: - move.pbAddTarget(targets,this); + move.AddTarget(targets,this); break; } return user; } - public IBattler pbChangeUser(IBattleMove thismove,IBattler user) { - IBattler[] priority=@battle.pbPriority(); + public IBattler ChangeUser(IBattleMove thismove,IBattler user) { + IBattler[] priority=@battle.Priority(); // Change user to user of Snatch if (thismove.Flags.Snatch) foreach (var i in priority) if (i.effects.Snatch) { - @battle.pbDisplay(Game._INTL("{1} snatched {2}'s move!",i.ToString(),user.ToString(true))); + @battle.Display(Game._INTL("{1} snatched {2}'s move!",i.ToString(),user.ToString(true))); GameDebug.Log($"[Lingering effect triggered] #{i.ToString()}'s Snatch made it use #{user.ToString(true)}'s #{Game._INTL(thismove.id.ToString(TextScripts.Name))}"); i.effects.Snatch=false; IBattler target=user; user=i; // Snatch's PP is reduced if old user has Pressure IBattleChoice userchoice=@battle.choices[user.Index]; - if (target.hasWorkingAbility(Abilities.PRESSURE) && user.pbIsOpposing(target.Index) && userchoice.Action>=0) { + if (target.hasWorkingAbility(Abilities.PRESSURE) && user.IsOpposing(target.Index) && userchoice.Action>=0) { IBattleMove pressuremove=user.moves[(int)userchoice.Move.id]; //ToDo: Change Choice.Move to int - if (pressuremove.PP>0) pbSetPP(pressuremove,(byte)(pressuremove.PP-1)); + if (pressuremove.PP>0) SetPP(pressuremove,(byte)(pressuremove.PP-1)); } if (Core.USENEWBATTLEMECHANICS) break; } return user; } - public Attack.Data.Targets pbTarget(IBattleMove move) { + public Attack.Data.Targets Target(IBattleMove move) { //Attack.Target target=move.Targets; Attack.Data.Targets target=move.Target; - if (move.Effect == Attack.Data.Effects.x06E && pbHasType(Types.GHOST)) // Curse - //target=Attack.Target.pbOppositeOpposing; + if (move.Effect == Attack.Data.Effects.x06E && HasType(Types.GHOST)) // Curse + //target=Attack.Target.OppositeOpposing; target=Attack.Data.Targets.OPPONENTS_FIELD; return target; } - //public bool pbAddTarget(IList targets,IBattler target) { + //public bool AddTarget(IList targets,IBattler target) { // if (!target.isFainted()) { // targets[targets.Count - 1]=target; // Add target to end of the list... // return true; // } // return false; //} - public bool pbAddTarget(ref IList targets,IBattler target) { + public bool AddTarget(ref IList targets,IBattler target) { if (!target.isFainted()) { targets.Add(target); return true; } return false; } - public void pbRandomTarget(IList targets) { + public void RandomTarget(IList targets) { IList choices= new List(); - pbAddTarget(ref choices,pbOpposing1); + AddTarget(ref choices,Opposing1); //if (battle.doublebattle) //Added a null conditional to below function - pbAddTarget(ref choices,pbOpposing2); + AddTarget(ref choices,Opposing2); if (choices.Count>0) - pbAddTarget(ref targets,choices[@battle.pbRandom(choices.Count)]); + AddTarget(ref targets,choices[@battle.Random(choices.Count)]); } - public bool pbChangeTarget(IBattleMove thismove,IBattler[] userandtarget,IBattler[] targets) { - IBattler[] priority=@battle.pbPriority(); + public bool ChangeTarget(IBattleMove thismove,IBattler[] userandtarget,IBattler[] targets) { + IBattler[] priority=@battle.Priority(); int changeeffect=0; IBattler user=userandtarget[0]; IBattler target=userandtarget[1]; // Lightningrod - if (targets.Length==1 && thismove.pbType(thismove.Type,user,target) == Types.ELECTRIC && + if (targets.Length==1 && thismove.GetType(thismove.Type,user,target) == Types.ELECTRIC && !target.hasWorkingAbility(Abilities.LIGHTNING_ROD)) foreach (var i in priority) { // use Pokémon earliest in priority if (user.Index==i.Index || target.Index==i.Index) continue; @@ -2239,7 +2258,7 @@ public bool pbChangeTarget(IBattleMove thismove,IBattler[] userandtarget,IBattle } } // Storm Drain - if (targets.Length==1 && thismove.pbType(thismove.Type,user,target) == Types.WATER && + if (targets.Length==1 && thismove.GetType(thismove.Type,user,target) == Types.WATER && !target.hasWorkingAbility(Abilities.STORM_DRAIN)) foreach (var i in priority) { // use Pokémon earliest in priority if (user.Index==i.Index || target.Index==i.Index) continue; @@ -2255,7 +2274,7 @@ public bool pbChangeTarget(IBattleMove thismove,IBattler[] userandtarget,IBattle if (thismove.Target.TargetsOneOpponent()) { IBattler newtarget=null; int strength=100; foreach (var i in priority) { // use Pokémon latest in priority - if (!user.pbIsOpposing(i.Index)) continue; + if (!user.IsOpposing(i.Index)) continue; if (!i.isFainted() && !@battle.switching && !i.effects.SkyDrop && i.effects.FollowMe>0 && i.effects.FollowMe=0) { + if (target.hasWorkingAbility(Abilities.PRESSURE) && user.IsOpposing(target.Index) && userchoice>=0) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Pressure (part of Snatch)"); IBattleMove pressuremove=user.moves[userchoice]; - if (pressuremove.PP>0) pbSetPP(pressuremove,(byte)(pressuremove.PP-1)); + if (pressuremove.PP>0) SetPP(pressuremove,(byte)(pressuremove.PP-1)); } } if (thismove.Flags.Reflectable)//canMagicCoat() @@ -2297,10 +2316,10 @@ public bool pbChangeTarget(IBattleMove thismove,IBattler[] userandtarget,IBattle target=tmp; // Magic Coat's PP is reduced if old user has Pressure int userchoice=@battle.choices[user.Index].Index; - if (target.hasWorkingAbility(Abilities.PRESSURE) && user.pbIsOpposing(target.Index) && userchoice>=0) { + if (target.hasWorkingAbility(Abilities.PRESSURE) && user.IsOpposing(target.Index) && userchoice>=0) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Pressure (part of Magic Coat)"); IBattleMove pressuremove=user.moves[userchoice]; - if (pressuremove.PP>0) pbSetPP(pressuremove,(byte)(pressuremove.PP-1)); + if (pressuremove.PP>0) SetPP(pressuremove,(byte)(pressuremove.PP-1)); } } else if (!user.hasMoldBreaker() && target.hasWorkingAbility(Abilities.MAGIC_BOUNCE)) { // switch user and target @@ -2311,9 +2330,9 @@ public bool pbChangeTarget(IBattleMove thismove,IBattler[] userandtarget,IBattle target=tmp; } if (changeeffect==1) - @battle.pbDisplay(Game._INTL("{1}'s {2} took the move!",target.ToString(),Game._INTL(target.Ability.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("{1}'s {2} took the move!",target.ToString(),Game._INTL(target.Ability.ToString(TextScripts.Name)))); else if (changeeffect==3) - @battle.pbDisplay(Game._INTL("{1} bounced the {2} back!",user.ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("{1} bounced the {2} back!",user.ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); userandtarget[0]=user; userandtarget[1]=target; if (!user.hasMoldBreaker() && target.hasWorkingAbility(Abilities.SOUNDPROOF) && @@ -2321,7 +2340,7 @@ public bool pbChangeTarget(IBattleMove thismove,IBattler[] userandtarget,IBattle thismove.Effect != Attack.Data.Effects.x073 && // Perish Song handled elsewhere thismove.Effect != Attack.Data.Effects.x15B) { // Parting Shot handled elsewhere GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Soundproof blocked #{user.ToString(true)}'s #{Game._INTL(thismove.id.ToString(TextScripts.Name))}"); - @battle.pbDisplay(Game._INTL("{1}'s {2} blocks {3}!",target.ToString(), + @battle.Display(Game._INTL("{1}'s {2} blocks {3}!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)),Game._INTL(thismove.id.ToString(TextScripts.Name)))); return false; } @@ -2331,13 +2350,13 @@ public bool pbChangeTarget(IBattleMove thismove,IBattler[] userandtarget,IBattle #region Move PP //ToDo: Revisit SetPP, and maybe try (int move, byte pp) or ref move - public void pbSetPP(IBattleMove move,int pp) { + public void SetPP(IBattleMove move,int pp) { move.PP=pp; // Not effects.Mimic, since Mimic can't copy Mimic if (move.thismove.IsNotNullOrNone() && move.id==move.thismove.id && !@effects.Transform) move.thismove.PP=pp; } - //public void pbSetPP(Attack.Move move,byte pp) { + //public void SetPP(Attack.Move move,byte pp) { // move.PP=pp; // // Not effects.Mimic, since Mimic can't copy Mimic // if (move.IsNotNullOrNone() && @@ -2346,7 +2365,7 @@ public void pbSetPP(IBattleMove move,int pp) { // //move.thismove.PP=pp; // pokemon.moves[0].PP=pp; //} - public bool pbReducePP(IBattleMove move) { + public bool ReducePP(IBattleMove move) { if (@effects.TwoTurnAttack>0 || @effects.Bide>0 || @effects.Outrage>0 || @@ -2359,54 +2378,54 @@ public bool pbReducePP(IBattleMove move) { if (move.TotalPP==0) return true; // Infinite PP, can always be used if (move.PP==0) return false; if (move.PP>0) - pbSetPP(move,(byte)(move.PP-1)); + SetPP(move,(byte)(move.PP-1)); return true; } - public void pbReducePPOther(IBattleMove move) { - if (move.PP>0) pbSetPP(move,(byte)(move.PP-1)); + public void ReducePPOther(IBattleMove move) { + if (move.PP>0) SetPP(move,(byte)(move.PP-1)); } #endregion #region Using a move - public bool pbObedienceCheck(IBattleChoice choice) { + public bool ObedienceCheck(IBattleChoice choice) { if (choice.Action!=ChoiceAction.UseMove) return true; - if (@battle.pbOwnedByPlayer(@Index) && @battle.internalbattle) { + if (@battle.OwnedByPlayer(@Index) && @battle.internalbattle) { int badgelevel=10; - if (@battle.pbPlayer().badges.Count(b => b == true)>=1) badgelevel=20 ; - if (@battle.pbPlayer().badges.Count(b => b == true)>=2) badgelevel=30 ; - if (@battle.pbPlayer().badges.Count(b => b == true)>=3) badgelevel=40 ; - if (@battle.pbPlayer().badges.Count(b => b == true)>=4) badgelevel=50 ; - if (@battle.pbPlayer().badges.Count(b => b == true)>=5) badgelevel=60 ; - if (@battle.pbPlayer().badges.Count(b => b == true)>=6) badgelevel=70 ; - if (@battle.pbPlayer().badges.Count(b => b == true)>=7) badgelevel=80 ; - if (@battle.pbPlayer().badges.Count(b => b == true)>=8) badgelevel=100; + if (@battle.Player().badges.Count(b => b == true)>=1) badgelevel=20 ; + if (@battle.Player().badges.Count(b => b == true)>=2) badgelevel=30 ; + if (@battle.Player().badges.Count(b => b == true)>=3) badgelevel=40 ; + if (@battle.Player().badges.Count(b => b == true)>=4) badgelevel=50 ; + if (@battle.Player().badges.Count(b => b == true)>=5) badgelevel=60 ; + if (@battle.Player().badges.Count(b => b == true)>=6) badgelevel=70 ; + if (@battle.Player().badges.Count(b => b == true)>=7) badgelevel=80 ; + if (@battle.Player().badges.Count(b => b == true)>=8) badgelevel=100; IBattleMove move=choice.Move; bool disobedient=false; if (@pokemon.isForeign(@battle.player[0]) && @level>badgelevel) { - int a=(int)Math.Floor((@level+badgelevel)*@battle.pbRandom(256)/255d); + int a=(int)Math.Floor((@level+badgelevel)*@battle.Random(256)/255d); disobedient|=a othermoves= new List(); for (int i = 0; i < 4; i++) { if (i==choice.Index) continue; - if (@battle.pbCanChooseMove(@Index,i,false)) othermoves.Add(i); + if (@battle.CanChooseMove(@Index,i,false)) othermoves.Add(i); } if (othermoves.Count>0) { - @battle.pbDisplay(Game._INTL("{1} ignored orders!",ToString())); - int newchoice=othermoves[@battle.pbRandom(othermoves.Count)]; + @battle.Display(Game._INTL("{1} ignored orders!",ToString())); + int newchoice=othermoves[@battle.Random(othermoves.Count)]; //choice.Action=ChoiceAction.UseMove; //choice.Move=@moves[newchoice]; //choice.Target=-1; @@ -2416,23 +2435,23 @@ public bool pbObedienceCheck(IBattleChoice choice) { } else if (this.status!=Status.SLEEP) { int c=@level-b; - int r=@battle.pbRandom(256); - if (r0) return true; // TODO: "Before Protect" applies to Counter/Mirror Coat if (thismove.Effect == Attack.Data.Effects.x009 && target.Status!=Status.SLEEP) { // Dream Eater - @battle.pbDisplay(Game._INTL("{1} wasn't affected!",target.ToString())); + @battle.Display(Game._INTL("{1} wasn't affected!",target.ToString())); GameDebug.Log($"[Move failed] #{user.ToString()}'s Dream Eater's target isn't asleep"); return false; } if (thismove.Effect == Attack.Data.Effects.x0A2 && user.effects.Stockpile==0) { // Spit Up - @battle.pbDisplay(Game._INTL("But it failed to spit up a thing!")); + @battle.Display(Game._INTL("But it failed to spit up a thing!")); GameDebug.Log($"[Move failed] #{user.ToString()}'s Spit Up did nothing as Stockpile's count is 0"); return false; } if (target.effects.Protect && thismove.Flags.Protectable && !target.effects.ProtectNegation) { - @battle.pbDisplay(Game._INTL("{1} protected itself!",target.ToString())); + @battle.Display(Game._INTL("{1} protected itself!",target.ToString())); @battle.successStates[user.Index].Protected=true; GameDebug.Log($"[Move failed] #{target.ToString()}'s Protect stopped the attack"); return false; @@ -2468,106 +2487,106 @@ public bool pbSuccessCheck(IBattleMove thismove,IBattler user,IBattler target,IE if (user.hasWorkingAbility(Abilities.PRANKSTER) && thismove.Category == Attack.Category.STATUS) p+=1; if (user.hasWorkingAbility(Abilities.GALE_WINGS) && thismove.Type == Types.FLYING) p+=1; } - if (target.pbOwnSide.QuickGuard && thismove.Flags.Protectable && + if (target.OwnSide.QuickGuard && thismove.Flags.Protectable && p>0 && !target.effects.ProtectNegation) { - @battle.pbDisplay(Game._INTL("{1} was protected by Quick Guard!",target.ToString())); + @battle.Display(Game._INTL("{1} was protected by Quick Guard!",target.ToString())); GameDebug.Log($"[Move failed] The opposing side's Quick Guard stopped the attack"); return false; } - if (target.pbOwnSide.WideGuard && + if (target.OwnSide.WideGuard && thismove.Target.HasMultipleTargets() && thismove.Category != Attack.Category.STATUS && !target.effects.ProtectNegation) { - @battle.pbDisplay(Game._INTL("{1} was protected by Wide Guard!",target.ToString())); + @battle.Display(Game._INTL("{1} was protected by Wide Guard!",target.ToString())); GameDebug.Log($"[Move failed] The opposing side's Wide Guard stopped the attack"); return false; } - if (target.pbOwnSide.CraftyShield && thismove.Category == Attack.Category.STATUS && + if (target.OwnSide.CraftyShield && thismove.Category == Attack.Category.STATUS && thismove.Effect != Attack.Data.Effects.x073) { // Perish Song - @battle.pbDisplay(Game._INTL("Crafty Shield protected {1}!",target.ToString(true))); + @battle.Display(Game._INTL("Crafty Shield protected {1}!",target.ToString(true))); GameDebug.Log($"[Move failed] The opposing side's Crafty Shield stopped the attack"); return false; } - if (target.pbOwnSide.MatBlock && thismove.Category != Attack.Category.STATUS && + if (target.OwnSide.MatBlock && thismove.Category != Attack.Category.STATUS && thismove.Flags.Protectable && !target.effects.ProtectNegation) { - @battle.pbDisplay(Game._INTL("{1} was blocked by the kicked-up mat!",Game._INTL(thismove.id.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("{1} was blocked by the kicked-up mat!",Game._INTL(thismove.id.ToString(TextScripts.Name)))); GameDebug.Log($"[Move failed] The opposing side's Mat Block stopped the attack"); return false; } // TODO: Mind Reader/Lock-On // --Sketch/FutureSight/PsychUp work even on Fly/Bounce/Dive/Dig - if (thismove.pbMoveFailed(user,target)) { // TODO: Applies to Snore/Fake Out - @battle.pbDisplay(Game._INTL("But it failed!")); - GameDebug.Log(string.Format("[Move failed] Failed pbMoveFailed (function code %02X)",thismove.Effect)); + if (thismove.MoveFailed(user,target)) { // TODO: Applies to Snore/Fake Out + @battle.Display(Game._INTL("But it failed!")); + GameDebug.Log(string.Format("[Move failed] Failed MoveFailed (function code %02X)",thismove.Effect)); return false; } - // King's Shield (purposely after pbMoveFailed) + // King's Shield (purposely after MoveFailed) if (target.effects.KingsShield && thismove.Category != Attack.Category.STATUS && thismove.Flags.Protectable && !target.effects.ProtectNegation) { - @battle.pbDisplay(Game._INTL("{1} protected itself!",target.ToString())); + @battle.Display(Game._INTL("{1} protected itself!",target.ToString())); @battle.successStates[user.Index].Protected=true; GameDebug.Log($"[Move failed] #{target.ToString()}'s King's Shield stopped the attack"); if (thismove.Flags.Contact && user is IBattlerEffect u) - u.pbReduceStat(Stats.ATTACK,2,null,false); + u.ReduceStat(Stats.ATTACK,2,null,false); return false; } // Spiky Shield if (target.effects.SpikyShield && thismove.Flags.Protectable && !target.effects.ProtectNegation) { - @battle.pbDisplay(Game._INTL("{1} protected itself!",target.ToString())); + @battle.Display(Game._INTL("{1} protected itself!",target.ToString())); @battle.successStates[user.Index].Protected=true; GameDebug.Log($"[Move failed] #{user.ToString()}'s Spiky Shield stopped the attack"); if (thismove.Flags.Contact && !user.isFainted()) { - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbDamageAnimation(user,0); - int amt=user.pbReduceHP((int)Math.Floor(user.TotalHP/8d)); - if (amt>0) @battle.pbDisplay(Game._INTL("{1} was hurt!",user.ToString())); + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.DamageAnimation(user,0); + int amt=user.ReduceHP((int)Math.Floor(user.TotalHP/8d)); + if (amt>0) @battle.Display(Game._INTL("{1} was hurt!",user.ToString())); } return false; } // Immunity to powder-based moves if (Core.USENEWBATTLEMECHANICS && thismove.Flags.PowderBased && - (target.pbHasType(Types.GRASS) || + (target.HasType(Types.GRASS) || (!user.hasMoldBreaker() && target.hasWorkingAbility(Abilities.OVERCOAT)) || target.hasWorkingItem(Items.SAFETY_GOGGLES))) { - @battle.pbDisplay(Game._INTL("It doesn't affect\r\n{1}...",target.ToString(true))); + @battle.Display(Game._INTL("It doesn't affect\r\n{1}...",target.ToString(true))); GameDebug.Log($"[Move failed] #{target.ToString()} is immune to powder-based moves somehow"); return false; } if (thismove.basedamage>0 && thismove.Effect != Attack.Data.Effects.x0FF && // Struggle thismove.Effect != Attack.Data.Effects.x095) { // Future Sight - Types type=thismove.pbType(thismove.Type,user,target); - float typemod=thismove.pbTypeModifier(type,user,target); + Types type=thismove.GetType(thismove.Type,user,target); + float typemod=thismove.TypeModifier(type,user,target); // Airborne-based immunity to Ground moves if (type == Types.GROUND && target.isAirborne(user.hasMoldBreaker()) && !target.hasWorkingItem(Items.RING_TARGET) && thismove.Effect != Attack.Data.Effects.x120) { // Smack Down if (!user.hasMoldBreaker() && target.hasWorkingAbility(Abilities.LEVITATE)) { - @battle.pbDisplay(Game._INTL("{1} makes Ground moves miss with Levitate!",target.ToString())); + @battle.Display(Game._INTL("{1} makes Ground moves miss with Levitate!",target.ToString())); GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Levitate made the Ground-type move miss"); return false; } if (target.hasWorkingItem(Items.AIR_BALLOON)) { - @battle.pbDisplay(Game._INTL("{1}'s Air Balloon makes Ground moves miss!",target.ToString())); + @battle.Display(Game._INTL("{1}'s Air Balloon makes Ground moves miss!",target.ToString())); GameDebug.Log($"[Item triggered] #{target.ToString()}'s Air Balloon made the Ground-type move miss"); return false; } if (target.effects.MagnetRise>0) { - @battle.pbDisplay(Game._INTL("{1} makes Ground moves miss with Magnet Rise!",target.ToString())); + @battle.Display(Game._INTL("{1} makes Ground moves miss with Magnet Rise!",target.ToString())); GameDebug.Log($"[Lingering effect triggered] #{target.ToString()}'s Magnet Rise made the Ground-type move miss"); return false; } if (target.effects.Telekinesis>0) { - @battle.pbDisplay(Game._INTL("{1} makes Ground moves miss with Telekinesis!",target.ToString())); + @battle.Display(Game._INTL("{1} makes Ground moves miss with Telekinesis!",target.ToString())); GameDebug.Log($"[Lingering effect triggered] #{target.ToString()}'s Telekinesis made the Ground-type move miss"); return false; } } if (!user.hasMoldBreaker() && target.hasWorkingAbility(Abilities.WONDER_GUARD) && type>=0 && typemod<=8) { - @battle.pbDisplay(Game._INTL("{1} avoided damage with Wonder Guard!",target.ToString())); + @battle.Display(Game._INTL("{1} avoided damage with Wonder Guard!",target.ToString())); GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Wonder Guard"); return false; } if (typemod==0) { - @battle.pbDisplay(Game._INTL("It doesn't affect\r\n{1}...",target.ToString(true))); + @battle.Display(Game._INTL("It doesn't affect\r\n{1}...",target.ToString(true))); GameDebug.Log($"[Move failed] Type immunity"); return false; } @@ -2626,93 +2645,93 @@ public bool pbSuccessCheck(IBattleMove thismove,IBattler user,IBattler target,IE target.hasWorkingAbility(Abilities.NO_GUARD) || @battle.futuresight) miss=false; if (Core.USENEWBATTLEMECHANICS && thismove.Effect == Attack.Data.Effects.x022 && // Toxic - thismove.basedamage==0 && user.pbHasType(Types.POISON)) _override=true; + thismove.basedamage==0 && user.HasType(Types.POISON)) _override=true; if (!miss && turneffects.SkipAccuracyCheck) _override=true; // Called by another move - if (!_override && (miss || !thismove.pbAccuracyCheck(user,target))) { // Includes Counter/Mirror Coat - GameDebug.Log(string.Format("[Move failed] Failed pbAccuracyCheck (Effect Id: {0}) or target is semi-invulnerable",thismove.Effect)); + if (!_override && (miss || !thismove.AccuracyCheck(user,target))) { // Includes Counter/Mirror Coat + GameDebug.Log(string.Format("[Move failed] Failed AccuracyCheck (Effect Id: {0}) or target is semi-invulnerable",thismove.Effect)); if (thismove.Target==Attack.Data.Targets.ALL_OPPONENTS && //thismove.Targets==Attack.Target.AllOpposing - (!user.pbOpposing1.isFainted() ? 1 : 0) + (!user.pbOpposing2.isFainted() ? 1 : 0) > 1) - @battle.pbDisplay(Game._INTL("{1} avoided the attack!",target.ToString())); + (!user.Opposing1.isFainted() ? 1 : 0) + (!user.Opposing2.isFainted() ? 1 : 0) > 1) + @battle.Display(Game._INTL("{1} avoided the attack!",target.ToString())); else if (thismove.Target==Attack.Data.Targets.ALL_OTHER_POKEMON && //thismove.Targets==Attack.Target.AllNonUsers - (!user.pbOpposing1.isFainted() ? 1 : 0) + (!user.pbOpposing2.isFainted() ? 1 : 0) + (!user.pbPartner.isFainted() ? 1 : 0) > 1) - @battle.pbDisplay(Game._INTL("{1} avoided the attack!",target.ToString())); + (!user.Opposing1.isFainted() ? 1 : 0) + (!user.Opposing2.isFainted() ? 1 : 0) + (!user.Partner.isFainted() ? 1 : 0) > 1) + @battle.Display(Game._INTL("{1} avoided the attack!",target.ToString())); else if (target.effects.TwoTurnAttack>0) - @battle.pbDisplay(Game._INTL("{1} avoided the attack!",target.ToString())); + @battle.Display(Game._INTL("{1} avoided the attack!",target.ToString())); else if (thismove.Effect == Attack.Data.Effects.x055) // Leech Seed - @battle.pbDisplay(Game._INTL("{1} evaded the attack!",target.ToString())); + @battle.Display(Game._INTL("{1} evaded the attack!",target.ToString())); else - @battle.pbDisplay(Game._INTL("{1}'s attack missed!",user.ToString())); + @battle.Display(Game._INTL("{1}'s attack missed!",user.ToString())); return false; } } return true; } - public bool pbTryUseMove(IBattleChoice choice,IBattleMove thismove,IEffectsMove turneffects) { + public bool TryUseMove(IBattleChoice choice,IBattleMove thismove,IEffectsMove turneffects) { if (turneffects.PassedTrying) return true; // TODO: Return true if attack has been Mirror Coated once already //if (!turneffects.SkipAccuracyCheck) - // if (!pbObedienceCheck(choice)) return false; + // if (!ObedienceCheck(choice)) return false; if (@effects.SkyDrop) { // Intentionally no message here GameDebug.Log($"[Move failed] #{ToString()} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of being Sky Dropped"); return false; } if (@battle.field.Gravity>0 && thismove.Flags.Gravity) { - @battle.pbDisplay(Game._INTL("{1} can't use {2} because of gravity!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("{1} can't use {2} because of gravity!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); GameDebug.Log($"[Move failed] #{ToString()} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of Gravity"); return false; } if (@effects.Taunt>0 && thismove.basedamage==0) { - @battle.pbDisplay(Game._INTL("{1} can't use {2} after the taunt!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("{1} can't use {2} after the taunt!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); GameDebug.Log($"[Move failed] #{ToString()} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of Taunt"); return false; } if (@effects.HealBlock>0 && thismove.isHealingMove()) { - @battle.pbDisplay(Game._INTL("{1} can't use {2} because of Heal Block!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("{1} can't use {2} because of Heal Block!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); GameDebug.Log($"[Move failed] #{ToString()} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of Heal Block"); return false; } if (@effects.Torment && thismove.id==@lastMoveUsed && thismove.id!=@battle.struggle.id && @effects.TwoTurnAttack==0) { - @battle.pbDisplayPaused(Game._INTL("{1} can't use the same move in a row due to the torment!",ToString())); + @battle.DisplayPaused(Game._INTL("{1} can't use the same move in a row due to the torment!",ToString())); GameDebug.Log($"[Move failed] #{ToString()} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of Torment"); return false; } - if (pbOpposing1.effects.Imprison && !pbOpposing1.isFainted()) - if(thismove.id==pbOpposing1.moves[0].id || - thismove.id==pbOpposing1.moves[1].id || - thismove.id==pbOpposing1.moves[2].id || - thismove.id==pbOpposing1.moves[3].id) { - @battle.pbDisplay(Game._INTL("{1} can't use the sealed {2}!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); - GameDebug.Log($"[Move failed] #{Game._INTL(thismove.id.ToString(TextScripts.Name))} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of #{pbOpposing1.ToString(true)}'s Imprison"); + if (Opposing1.effects.Imprison && !Opposing1.isFainted()) + if(thismove.id==Opposing1.moves[0].id || + thismove.id==Opposing1.moves[1].id || + thismove.id==Opposing1.moves[2].id || + thismove.id==Opposing1.moves[3].id) { + @battle.Display(Game._INTL("{1} can't use the sealed {2}!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); + GameDebug.Log($"[Move failed] #{Game._INTL(thismove.id.ToString(TextScripts.Name))} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of #{Opposing1.ToString(true)}'s Imprison"); return false; } - if (battle.doublebattle && pbOpposing2.effects.Imprison && !pbOpposing2.isFainted()) - if(thismove.id==pbOpposing2.moves[0].id || - thismove.id==pbOpposing2.moves[1].id || - thismove.id==pbOpposing2.moves[2].id || - thismove.id==pbOpposing2.moves[3].id) { - @battle.pbDisplay(Game._INTL("{1} can't use the sealed {2}!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); - GameDebug.Log($"[Move failed] #{Game._INTL(thismove.id.ToString(TextScripts.Name))} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of #{pbOpposing2.ToString(true)}'s Imprison"); + if (battle.doublebattle && Opposing2.effects.Imprison && !Opposing2.isFainted()) + if(thismove.id==Opposing2.moves[0].id || + thismove.id==Opposing2.moves[1].id || + thismove.id==Opposing2.moves[2].id || + thismove.id==Opposing2.moves[3].id) { + @battle.Display(Game._INTL("{1} can't use the sealed {2}!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); + GameDebug.Log($"[Move failed] #{Game._INTL(thismove.id.ToString(TextScripts.Name))} can't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} because of #{Opposing2.ToString(true)}'s Imprison"); return false; } if (@effects.Disable>0 && thismove.id==@effects.DisableMove && !@battle.switching) { // Pursuit ignores if it's disabled - @battle.pbDisplayPaused(Game._INTL("{1}'s {2} is disabled!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); + @battle.DisplayPaused(Game._INTL("{1}'s {2} is disabled!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); GameDebug.Log($"[Move failed] #{ToString()}'s #{Game._INTL(thismove.id.ToString(TextScripts.Name))} is disabled"); return false; } if (choice.Index==-2) { // Battle Palace - @battle.pbDisplay(Game._INTL("{1} appears incapable of using its power!",ToString())); + @battle.Display(Game._INTL("{1} appears incapable of using its power!",ToString())); GameDebug.Log($"[Move failed] Battle Palace: #{ToString()} is incapable of using its power"); return false; } if (@effects.HyperBeam>0) { - @battle.pbDisplay(Game._INTL("{1} must recharge!",ToString())); - GameDebug.Log($"[Move failed] #{ToString()} must recharge after using #{Combat.Move.pbFromPBMove(@battle,new Attack.Move(@currentMove)).ToString()}"); + @battle.Display(Game._INTL("{1} must recharge!",ToString())); + GameDebug.Log($"[Move failed] #{ToString()} must recharge after using #{Combat.Move.FromMove(@battle,new Attack.Move(@currentMove)).ToString()}"); return false; } if (this.hasWorkingAbility(Abilities.TRUANT) && @effects.Truant) { - @battle.pbDisplay(Game._INTL("{1} is loafing around!",ToString())); + @battle.Display(Game._INTL("{1} is loafing around!",ToString())); GameDebug.Log($"[Ability triggered] #{ToString()}'s Truant"); return false; } @@ -2720,11 +2739,11 @@ public bool pbTryUseMove(IBattleChoice choice,IBattleMove thismove,IEffectsMove if (this.status==Status.SLEEP) { this.StatusCount-=1; if (this.StatusCount<=0) - this.pbCureStatus(); + this.CureStatus(); else { - this.pbContinueStatus(); + this.ContinueStatus(); GameDebug.Log($"[Status] #{ToString()} remained asleep (count: #{this.StatusCount.ToString()})"); - if (!thismove.pbCanUseWhileAsleep()) { // Snore/Sleep Talk/Outrage + if (!thismove.CanUseWhileAsleep()) { // Snore/Sleep Talk/Outrage GameDebug.Log($"[Move failed] #{ToString()} couldn't use #{Game._INTL(thismove.id.ToString(TextScripts.Name))} while asleep"); return false; } @@ -2733,16 +2752,16 @@ public bool pbTryUseMove(IBattleChoice choice,IBattleMove thismove,IEffectsMove if (this.status==Status.FROZEN) { if (thismove.Flags.Defrost) { GameDebug.Log($"[Move effect triggered] #{ToString()} was defrosted by using #{Game._INTL(thismove.id.ToString(TextScripts.Name))}"); - this.pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1} melted the ice!",ToString())); - pbCheckForm(); + this.CureStatus(false); + @battle.Display(Game._INTL("{1} melted the ice!",ToString())); + CheckForm(); } - else if (@battle.pbRandom(10)<2 && !turneffects.SkipAccuracyCheck) { - this.pbCureStatus(); - pbCheckForm(); + else if (@battle.Random(10)<2 && !turneffects.SkipAccuracyCheck) { + this.CureStatus(); + CheckForm(); } else if (!thismove.Flags.Defrost) { - this.pbContinueStatus(); + this.ContinueStatus(); GameDebug.Log($"[Status] #{ToString()} remained frozen and couldn't move"); return false; } @@ -2751,13 +2770,13 @@ public bool pbTryUseMove(IBattleChoice choice,IBattleMove thismove,IEffectsMove if (@effects.Confusion>0) { @effects.Confusion-=1; if (@effects.Confusion<=0) - pbCureConfusion(); + CureConfusion(); else { - pbContinueConfusion(); + ContinueConfusion(); GameDebug.Log($"[Status] #{ToString()} remained confused (count: #{@effects.Confusion})"); - if (@battle.pbRandom(2)==0) { - pbConfusionDamage(); - @battle.pbDisplay(Game._INTL("It hurt itself in its confusion!")) ; + if (@battle.Random(2)==0) { + ConfusionDamage(); + @battle.Display(Game._INTL("It hurt itself in its confusion!")) ; GameDebug.Log($"[Status] #{ToString()} hurt itself in its confusion and couldn't move"); return false; } @@ -2765,25 +2784,25 @@ public bool pbTryUseMove(IBattleChoice choice,IBattleMove thismove,IEffectsMove } if (@effects.Flinch) { @effects.Flinch=false; - @battle.pbDisplay(Game._INTL("{1} flinched and couldn't move!",this.ToString())); + @battle.Display(Game._INTL("{1} flinched and couldn't move!",this.ToString())); GameDebug.Log($"[Lingering effect triggered] #{ToString()} flinched"); if (this.hasWorkingAbility(Abilities.STEADFAST)) - if (pbIncreaseStatWithCause(Stats.SPEED,1,this,Game._INTL(this.ability.ToString(TextScripts.Name)))) + if (IncreaseStatWithCause(Stats.SPEED,1,this,Game._INTL(this.ability.ToString(TextScripts.Name)))) GameDebug.Log($"[Ability triggered] #{ToString()}'s Steadfast"); return false; } if (!turneffects.SkipAccuracyCheck) { if (@effects.Attract>=0) { - pbAnnounceAttract(@battle.battlers[@effects.Attract]); - if (@battle.pbRandom(2)==0) { - pbContinueAttract(); + AnnounceAttract(@battle.battlers[@effects.Attract]); + if (@battle.Random(2)==0) { + ContinueAttract(); GameDebug.Log($"[Lingering effect triggered] #{ToString()} was infatuated and couldn't move"); return false; } } if (this.status==Status.PARALYSIS) - if (@battle.pbRandom(4)==0) { - pbContinueStatus(); + if (@battle.Random(4)==0) { + ContinueStatus(); GameDebug.Log($"[Status] #{ToString()} was fully paralysed and couldn't move"); return false; } @@ -2791,19 +2810,19 @@ public bool pbTryUseMove(IBattleChoice choice,IBattleMove thismove,IEffectsMove turneffects.PassedTrying=true; return true; } - public void pbConfusionDamage() { + public void ConfusionDamage() { this.damagestate.Reset(); //PokeBattle_Confusion confmove=new PokeBattle_Confusion(@battle,null); IBattleMove confmove=new PokeBattle_Confusion().Initialize(@battle,null); - confmove.pbEffect(this,this); - if (this.isFainted()) pbFaint(); + confmove.GetEffect(this,this); + if (this.isFainted()) Faint(); } - public void pbUpdateTargetedMove(IBattleMove thismove,IBattler user) { + public void UpdateTargetedMove(IBattleMove thismove,IBattler user) { // TODO: Snatch, moves that use other moves // TODO: All targeting cases // Two-turn attacks, Magic Coat, Future Sight, Counter/MirrorCoat/Bide handled } - public void pbProcessMoveAgainstTarget(IBattleMove thismove,IBattler user,IBattler target,int numhits,IEffectsMove turneffects,bool nocheck=false,int[] alltargets=null,bool showanimation=true) { + public void ProcessMoveAgainstTarget(IBattleMove thismove,IBattler user,IBattler target,int numhits,IEffectsMove turneffects,bool nocheck=false,int[] alltargets=null,bool showanimation=true) { int realnumhits=0; int totaldamage=0; bool destinybond=false; @@ -2811,20 +2830,20 @@ public void pbProcessMoveAgainstTarget(IBattleMove thismove,IBattler user,IBattl target.damagestate.Reset(); // Check success (accuracy/evasion calculation) if (!nocheck && - !pbSuccessCheck(thismove,user,target,turneffects,i==0 || thismove.successCheckPerHit())) { + !SuccessCheck(thismove,user,target,turneffects,i==0 || thismove.successCheckPerHit())) { if (thismove.Effect == Attack.Data.Effects.x069 && realnumhits>0) // Triple Kick break; // Considered a success if Triple Kick hits at least once else if (thismove.Effect == Attack.Data.Effects.x02E) // Hi Jump Kick, Jump Kick if (!user.hasWorkingAbility(Abilities.MAGIC_GUARD)) { GameDebug.Log($"[Move effect triggered] #{user.ToString()} took crash damage"); //TODO: Not shown if message is "It doesn't affect XXX..." - @battle.pbDisplay(Game._INTL("{1} kept going and crashed!",user.ToString())); + @battle.Display(Game._INTL("{1} kept going and crashed!",user.ToString())); int dmg=(int)Math.Floor(user.TotalHP/2d); if (dmg>0) { - if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.pbDamageAnimation(user,0); - user.pbReduceHP(dmg); + if (@battle.scene is IPokeBattle_DebugSceneNoGraphics s0) s0.DamageAnimation(user,0); + user.ReduceHP(dmg); } - if (user.isFainted()) user.pbFaint(); + if (user.isFainted()) user.Faint(); } if (thismove.Effect == Attack.Data.Effects.x01C) user.effects.Outrage=0; // Outrage if (thismove.Effect == Attack.Data.Effects.x076) user.effects.Rollout=0; // Rollout @@ -2838,64 +2857,64 @@ public void pbProcessMoveAgainstTarget(IBattleMove thismove,IBattler user,IBattl else user.effects.FuryCutter=0; if (thismove.Effect == Attack.Data.Effects.x12F) { // Echoed Voice - if (!user.pbOwnSide.EchoedVoiceUsed && - user.pbOwnSide.EchoedVoiceCounter<5) - user.pbOwnSide.EchoedVoiceCounter+=1; - user.pbOwnSide.EchoedVoiceUsed=true; + if (!user.OwnSide.EchoedVoiceUsed && + user.OwnSide.EchoedVoiceCounter<5) + user.OwnSide.EchoedVoiceCounter+=1; + user.OwnSide.EchoedVoiceUsed=true; } // Count a hit for Parental Bond if it applies if (user.effects.ParentalBond>0) user.effects.ParentalBond-=1; // This hit will happen; count it realnumhits+=1; // Damage calculation and/or main effect - int damage=thismove.pbEffect(user,target,(byte)i,alltargets,showanimation); // Recoil/drain, etc. are applied here + int damage=thismove.GetEffect(user,target,(byte)i,alltargets,showanimation); // Recoil/drain, etc. are applied here if (damage>0) totaldamage+=damage; // Message and consume for type-weakening berries if (target.damagestate.BerryWeakened) { - @battle.pbDisplay(Game._INTL("The {1} weakened the damage to {2}!", + @battle.Display(Game._INTL("The {1} weakened the damage to {2}!", Game._INTL(target.Item.ToString(TextScripts.Name)),target.ToString(true))); - target.pbConsumeItem(); + target.ConsumeItem(); } // Illusion if (target.effects.Illusion.IsNotNullOrNone() && target.hasWorkingAbility(Abilities.ILLUSION) && damage>0 && !target.damagestate.Substitute) { GameDebug.Log($"[Ability triggered] #{target.ToString()}'s Illusion ended"); target.effects.Illusion=null; - if (@battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(target,(target as Pokemon).Form.Id);//target.pokemon.Species); - @battle.pbDisplay(Game._INTL("{1}'s {2} wore off!",target.ToString(), + if (@battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(target,target.pokemon); + @battle.Display(Game._INTL("{1}'s {2} wore off!",target.ToString(), Game._INTL(target.Ability.ToString(TextScripts.Name)))); } if (user.isFainted()) - user.pbFaint(); // no return + user.Faint(); // no return if (numhits>1 && target.damagestate.CalcDamage<=0) return; - @battle.pbJudgeCheckpoint(user,thismove); + @battle.JudgeCheckpoint(user,thismove); // Additional effect if (target.damagestate.CalcDamage>0 && !user.hasWorkingAbility(Abilities.SHEER_FORCE) && (user.hasMoldBreaker() || !target.hasWorkingAbility(Abilities.SHIELD_DUST))) { int addleffect=thismove.AddlEffect; if ((user.hasWorkingAbility(Abilities.SERENE_GRACE) || - user.pbOwnSide.Rainbow>0) && + user.OwnSide.Rainbow>0) && thismove.Effect != Attack.Data.Effects.x0C6) addleffect*=2; // Secret Power if (Core.DEBUG && Input.press((int)PokemonUnity.UX.InputKeys.DEBUG)) addleffect=100; - if (@battle.pbRandom(100)0 && !target.isFainted() && target is IBattlerEffect t) { // Defrost if (target.Status==Status.FROZEN && - (thismove.pbType(thismove.Type,user,target) == Types.FIRE || + (thismove.GetType(thismove.Type,user,target) == Types.FIRE || (Core.USENEWBATTLEMECHANICS && thismove.id == Moves.SCALD))) - t.pbCureStatus(); + t.CureStatus(); // Rage - if (target.effects.Rage && target.pbIsOpposing(user.Index)) + if (target.effects.Rage && target.IsOpposing(user.Index)) // TODO: Apparently triggers if opposing Pokémon uses Future Sight after a Future Sight attack - if (t.pbIncreaseStatWithCause(Stats.ATTACK,1,target,"",true,false)) { + if (t.IncreaseStatWithCause(Stats.ATTACK,1,target,"",true,false)) { GameDebug.Log($"[Lingering effect triggered] #{target.ToString()}'s Rage"); - @battle.pbDisplay(Game._INTL("{1}'s rage is building!",target.ToString())); + @battle.Display(Game._INTL("{1}'s rage is building!",target.ToString())); } } - if (target.isFainted()) target.pbFaint(); // no return - if (user.isFainted()) user.pbFaint(); // no return + if (target.isFainted()) target.Faint(); // no return + if (user.isFainted()) user.Faint(); // no return if (user.isFainted() || target.isFainted()) break; // Berry check (maybe just called by ability effect, since only necessary Berries are checked) for (int j = 0; j < battle.battlers.Length; j++) - @battle.battlers[j].pbBerryCureCheck(); + @battle.battlers[j].BerryCureCheck(); if (user.isFainted() || target.isFainted()) break; - target.pbUpdateTargetedMove(thismove,user); + target.UpdateTargetedMove(thismove,user); if (target.damagestate.CalcDamage<=0) break; } if (totaldamage>0) turneffects.TotalDamage+=totaldamage; @@ -2954,61 +2973,61 @@ public void pbProcessMoveAgainstTarget(IBattleMove thismove,IBattler user,IBattl if (numhits>1) { if (target.damagestate.TypeMod>8) if (alltargets.Length>1) - @battle.pbDisplay(Game._INTL("It's super effective on {1}!",target.ToString(true))); + @battle.Display(Game._INTL("It's super effective on {1}!",target.ToString(true))); else - @battle.pbDisplay(Game._INTL("It's super effective!")); + @battle.Display(Game._INTL("It's super effective!")); else if (target.damagestate.TypeMod>=1 && target.damagestate.TypeMod<8) if (alltargets.Length>1) - @battle.pbDisplay(Game._INTL("It's not very effective on {1}...",target.ToString(true))); + @battle.Display(Game._INTL("It's not very effective on {1}...",target.ToString(true))); else - @battle.pbDisplay(Game._INTL("It's not very effective...")); + @battle.Display(Game._INTL("It's not very effective...")); if (realnumhits==1) - @battle.pbDisplay(Game._INTL("Hit {1} time!",realnumhits.ToString())); + @battle.Display(Game._INTL("Hit {1} time!",realnumhits.ToString())); else - @battle.pbDisplay(Game._INTL("Hit {1} times!",realnumhits.ToString())); + @battle.Display(Game._INTL("Hit {1} times!",realnumhits.ToString())); } GameDebug.Log($"Move did #{numhits} hit(s), total damage=#{turneffects.TotalDamage}"); // Faint if 0 HP - if (target.isFainted()) target.pbFaint(); // no return - if (user.isFainted()) user.pbFaint(); // no return - thismove.pbEffectAfterHit(user,target,turneffects); //ToDo: CONFIRM IF `pbFaint()` IS ASSIGNING `isFaint()` AS TRUE!~ - if (target.isFainted()) target.pbFaint(); // no return - if (user.isFainted()) user.pbFaint(); // no return + if (target.isFainted()) target.Faint(); // no return + if (user.isFainted()) user.Faint(); // no return + thismove.EffectAfterHit(user,target,turneffects); //ToDo: CONFIRM IF `Faint()` IS ASSIGNING `isFaint()` AS TRUE!~ + if (target.isFainted()) target.Faint(); // no return + if (user.isFainted()) user.Faint(); // no return // Destiny Bond if (!user.isFainted() && target.isFainted()) - if (destinybond && target.pbIsOpposing(user.Index)) { + if (destinybond && target.IsOpposing(user.Index)) { GameDebug.Log($"[Lingering effect triggered] #{target.ToString()}'s Destiny Bond"); - @battle.pbDisplay(Game._INTL("{1} took its attacker down with it!",target.ToString())); - user.pbReduceHP(user.HP); - user.pbFaint(); // no return - @battle.pbJudgeCheckpoint(user); + @battle.Display(Game._INTL("{1} took its attacker down with it!",target.ToString())); + user.ReduceHP(user.HP); + user.Faint(); // no return + @battle.JudgeCheckpoint(user); } - pbEffectsAfterHit(user,target,thismove,turneffects); + EffectsAfterHit(user,target,thismove,turneffects); // Berry check for (int j = 0; j < battle.battlers.Length; j++) - @battle.battlers[j].pbBerryCureCheck(); - target.pbUpdateTargetedMove(thismove,user); + @battle.battlers[j].BerryCureCheck(); + target.UpdateTargetedMove(thismove,user); } - public void pbUseMoveSimple(Moves moveid,int index=-1,int target=-1) { + public void UseMoveSimple(Moves moveid,int index=-1,int target=-1) { //IBattleChoice choice= new Choice(); //choice[0]=1; // "Use move" //choice.Action=index; // Index of move to be used in user's moveset - //choice.Move=PokeBattle_Move.pbFromPBMove(@battle,new Attack.Move(moveid)); // PokeBattle_Move object of the move + //choice.Move=PokeBattle_Move.FromMove(@battle,new Attack.Move(moveid)); // PokeBattle_Move object of the move //choice.Move.PP=-1; //choice.Target=target; // Target (-1 means no target yet) - IBattleMove move = Combat.Move.pbFromPBMove(@battle, new Attack.Move(moveid)); + IBattleMove move = Combat.Move.FromMove(@battle, new Attack.Move(moveid)); move.PP = -1; IBattleChoice choice = new Choice(action: ChoiceAction.UseMove, moveIndex: index, move: move, target: target); if (index>=0) //@battle.choices[@Index].Index=index; @battle.choices[@Index]=new Choice(action: @battle.choices[@Index].Action, moveIndex: index, move: @battle.choices[@Index].Move, target: @battle.choices[@Index].Target); GameDebug.Log($"#{ToString()} used simple move #{Game._INTL(choice.Move.id.ToString(TextScripts.Name))}"); - pbUseMove(choice,true); + UseMove(choice,true); return; } - public void pbUseMove(IBattleChoice choice,bool specialusage=false) { + public void UseMove(IBattleChoice choice,bool specialusage=false) { // TODO: lastMoveUsed is not to be updated on nested calls // Note: user.lastMoveUsedType IS to be updated on nested calls; is used for Conversion 2 IEffectsMove turneffects= new Effects.Move(); @@ -3017,7 +3036,7 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { turneffects.PassedTrying=false; turneffects.TotalDamage=0; // Start using the move - pbBeginTurn(choice); + BeginTurn(choice); // Force the use of certain moves if they're already being used if (@effects.TwoTurnAttack>0 || @effects.HyperBeam>0 || @@ -3025,14 +3044,14 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { @effects.Rollout>0 || @effects.Uproar>0 || @effects.Bide>0) { - //choice.Move=Combat.Move.pbFromPBMove(@battle,new Attack.Move(@currentMove)); - choice=new Choice(action: choice.Action, moveIndex: choice.Index, move: Combat.Move.pbFromPBMove(@battle, new Attack.Move(@currentMove))); + //choice.Move=Combat.Move.FromMove(@battle,new Attack.Move(@currentMove)); + choice=new Choice(action: choice.Action, moveIndex: choice.Index, move: Combat.Move.FromMove(@battle, new Attack.Move(@currentMove))); turneffects.SpecialUsage=true; GameDebug.Log($"Continuing multi-turn move #{Game._INTL(choice.Move.id.ToString(TextScripts.Name))}"); } else if (@effects.Encore>0) { - if (@battle.pbCanShowCommands(@Index) && - @battle.pbCanChooseMove(@Index,@effects.EncoreIndex,false)) { + if (@battle.CanShowCommands(@Index) && + @battle.CanChooseMove(@Index,@effects.EncoreIndex,false)) { if (choice.Index!=@effects.EncoreIndex) { // Was Encored mid-round //choice.Index=@effects.EncoreIndex; //choice.Move=@moves[@effects.EncoreIndex]; @@ -3050,51 +3069,51 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { // Stance Change if (hasWorkingAbility(Abilities.STANCE_CHANGE) && Species == Pokemons.AEGISLASH && !@effects.Transform) - if (thismove.pbIsDamaging() && this.form!=1) { + if (thismove.IsDamaging() && this.form!=1) { this.form=1; - pbUpdate(true); - if (@battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(this,Form.Id);//@pokemon.Species - @battle.pbDisplay(Game._INTL("{1} changed to Blade Forme!",ToString())); + Update(true); + if (@battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(this,@pokemon); + @battle.Display(Game._INTL("{1} changed to Blade Forme!",ToString())); GameDebug.Log($"[Form changed] #{ToString()} changed to Blade Forme"); } else if (thismove.id == Moves.KINGS_SHIELD && this.form!=0) { this.form=0; - pbUpdate(true); - if (@battle.scene is IPokeBattle_Scene s0) s0.pbChangePokemon(this,Form.Id);//@pokemon); - @battle.pbDisplay(Game._INTL("{1} changed to Shield Forme!",ToString())); + Update(true); + if (@battle.scene is IPokeBattle_Scene s0) s0.ChangePokemon(this,@pokemon); + @battle.Display(Game._INTL("{1} changed to Shield Forme!",ToString())); GameDebug.Log($"[Form changed] #{ToString()} changed to Shield Forme"); } // Record that user has used a move this round (or at least tried to) this.lastRoundMoved=@battle.turncount; // Try to use the move - if (!pbTryUseMove(choice,thismove,turneffects)) { + if (!TryUseMove(choice,thismove,turneffects)) { this.lastMoveUsed=Moves.NONE; //this.lastMoveUsedType=Types.NONE; if (!turneffects.SpecialUsage) { if (this.effects.TwoTurnAttack==0) this.lastMoveUsedSketch=Moves.NONE; this.lastRegularMoveUsed=Moves.NONE; } - pbCancelMoves(); - @battle.pbGainEXP(); - pbEndTurn(choice); - @battle.pbJudge(); //@battle.pbSwitch + CancelMoves(); + @battle.GainEXP(); + EndTurn(choice); + @battle.Judge(); //@battle.Switch return; } if (!turneffects.SpecialUsage) - if (!pbReducePP(thismove)) { - @battle.pbDisplay(Game._INTL("{1} used\r\n{2}!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); - @battle.pbDisplay(Game._INTL("But there was no PP left for the move!")); + if (!ReducePP(thismove)) { + @battle.Display(Game._INTL("{1} used\r\n{2}!",ToString(),Game._INTL(thismove.id.ToString(TextScripts.Name)))); + @battle.Display(Game._INTL("But there was no PP left for the move!")); this.lastMoveUsed=Moves.NONE; //this.lastMoveUsedType=Types.NONE; if (this.effects.TwoTurnAttack==0) this.lastMoveUsedSketch=Moves.NONE; this.lastRegularMoveUsed=Moves.NONE; - pbEndTurn(choice); - @battle.pbJudge(); //@battle.pbSwitch + EndTurn(choice); + @battle.Judge(); //@battle.Switch GameDebug.Log($"[Move failed] #{Game._INTL(thismove.id.ToString(TextScripts.Name))} has no PP left"); return; } // Remember that user chose a two-turn move - if (thismove.pbTwoTurnAttack(this)) { + if (thismove.TwoTurnAttack(this)) { // Beginning use of two-turn attack @effects.TwoTurnAttack=thismove.id; @currentMove=thismove.id; @@ -3107,12 +3126,12 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { else this.effects.Metronome=0; // "X used Y!" message - int zxy = thismove.pbDisplayUseMessage(this); //switch (thismove.pbDisplayUseMessage(this)) { + int zxy = thismove.DisplayUseMessage(this); //switch (thismove.DisplayUseMessage(this)) { if (zxy == 2) //case 2: // Continuing Bide return; else if (zxy == 1) { //case 1: // Starting Bide this.lastMoveUsed=thismove.id; - //this.lastMoveUsedType=thismove.pbType(thismove.Type,this,null); + //this.lastMoveUsedType=thismove.Type(thismove.Type,this,null); if (!turneffects.SpecialUsage) { if (this.effects.TwoTurnAttack==0) this.lastMoveUsedSketch=thismove.id; this.lastRegularMoveUsed=thismove.id; @@ -3124,7 +3143,7 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { return; } else if (zxy == -1) { //case -1: // Was hurt while readying Focus Punch, fails use this.lastMoveUsed=thismove.id; - //this.lastMoveUsedType=thismove.pbType(thismove.Type,this,null); + //this.lastMoveUsedType=thismove.Type(thismove.Type,this,null); if (!turneffects.SpecialUsage) { if (this.effects.TwoTurnAttack==0) this.lastMoveUsedSketch=thismove.id; this.lastRegularMoveUsed=thismove.id; @@ -3139,36 +3158,36 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { // Find the user and target(s) IList targets= new List(); //targets.Add(null); // Empty for slot 0 - targets.Add(pbOpposing1); - IBattler user=pbFindUser(choice,targets); //ToDo: ref List<> here? + targets.Add(Opposing1); + IBattler user=FindUser(choice,targets); //ToDo: ref List<> here? // Battle Arena only - assume failure @battle.successStates[user.Index].UseState=true; @battle.successStates[user.Index].TypeMod=8; // Check whether Selfdestruct works - if (!thismove.pbOnStartUse(user)) { // Selfdestruct, Natural Gift, Beat Up can return false here - GameDebug.Log(string.Format("[Move failed] Failed pbOnStartUse (function code %02X)",thismove.Effect)); - (user as Pokemon).lastMoveUsed=thismove.id; - //user.lastMoveUsedType=thismove.pbType(thismove.Type,user,null); + if (!thismove.OnStartUse(user)) { // Selfdestruct, Natural Gift, Beat Up can return false here + GameDebug.Log(string.Format("[Move failed] Failed OnStartUse (function code %02X)",thismove.Effect)); + user.lastMoveUsed=thismove.id; + //user.lastMoveUsedType=thismove.Type(thismove.Type,user,null); if (!turneffects.SpecialUsage) { - if (user.effects.TwoTurnAttack==0) (user as Pokemon).lastMoveUsedSketch=thismove.id; - (user as Pokemon).lastRegularMoveUsed=thismove.id; + if (user.effects.TwoTurnAttack==0) user.lastMoveUsedSketch=thismove.id; + user.lastRegularMoveUsed=thismove.id; } @battle.lastMoveUsed=thismove.id; @battle.lastMoveUser=user.Index; return; } // Primordial Sea, Desolate Land - if (thismove.pbIsDamaging()) - switch (@battle.pbWeather) { + if (thismove.IsDamaging()) + switch (@battle.Weather) { case Weather.HEAVYRAIN: - if (thismove.pbType(thismove.Type,user,null) == Types.FIRE) { + if (thismove.GetType(thismove.Type,user,null) == Types.FIRE) { GameDebug.Log($"[Move failed] Primordial Sea's rain cancelled the Fire-type #{Game._INTL(thismove.id.ToString(TextScripts.Name))}"); - @battle.pbDisplay(Game._INTL("The Fire-type attack fizzled out in the heavy rain!")); - (user as Pokemon).lastMoveUsed=thismove.id; - //user.lastMoveUsedType=thismove.pbType(thismove.Type,user,null); + @battle.Display(Game._INTL("The Fire-type attack fizzled out in the heavy rain!")); + user.lastMoveUsed=thismove.id; + //user.lastMoveUsedType=thismove.Type(thismove.Type,user,null); if (!turneffects.SpecialUsage) { - if (user.effects.TwoTurnAttack==0) (user as Pokemon).lastMoveUsedSketch=thismove.id; - (user as Pokemon).lastRegularMoveUsed=thismove.id; + if (user.effects.TwoTurnAttack==0) user.lastMoveUsedSketch=thismove.id; + user.lastRegularMoveUsed=thismove.id; } @battle.lastMoveUsed=thismove.id; @battle.lastMoveUser=user.Index; @@ -3176,14 +3195,14 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { } break; case Weather.HARSHSUN: - if (thismove.pbType(thismove.Type,user,null) == Types.WATER) { + if (thismove.GetType(thismove.Type,user,null) == Types.WATER) { GameDebug.Log($"[Move failed] Desolate Land's sun cancelled the Water-type #{Game._INTL(thismove.id.ToString(TextScripts.Name))}"); - @battle.pbDisplay(Game._INTL("The Water-type attack evaporated in the harsh sunlight!")); - (user as Pokemon).lastMoveUsed=thismove.id; - //user.lastMoveUsedType=thismove.pbType(thismove.Type,user,null); + @battle.Display(Game._INTL("The Water-type attack evaporated in the harsh sunlight!")); + user.lastMoveUsed=thismove.id; + //user.lastMoveUsedType=thismove.Type(thismove.Type,user,null); if (!turneffects.SpecialUsage) { - if (user.effects.TwoTurnAttack==0) (user as Pokemon).lastMoveUsedSketch=thismove.id; - (user as Pokemon).lastRegularMoveUsed=thismove.id; + if (user.effects.TwoTurnAttack==0) user.lastMoveUsedSketch=thismove.id; + user.lastRegularMoveUsed=thismove.id; } @battle.lastMoveUsed=thismove.id; @battle.lastMoveUser=user.Index; @@ -3192,21 +3211,21 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { break; } // Powder - if (user.effects.Powder && thismove.pbType(thismove.Type,user,null) == Types.FIRE) { + if (user.effects.Powder && thismove.GetType(thismove.Type,user,null) == Types.FIRE) { GameDebug.Log($"[Lingering effect triggered] #{ToString()}'s Powder cancelled the Fire move"); - @battle.pbCommonAnimation("Powder",user,null); - @battle.pbDisplay(Game._INTL("When the flame touched the powder on the Pokémon, it exploded!")); - if (!user.hasWorkingAbility(Abilities.MAGIC_GUARD)) user.pbReduceHP(1+(int)Math.Floor(user.TotalHP/4d)); - (user as Pokemon).lastMoveUsed=thismove.id; - //user.lastMoveUsedType=thismove.pbType(thismove.Type,user,null); + @battle.CommonAnimation("Powder",user,null); + @battle.Display(Game._INTL("When the flame touched the powder on the Pokémon, it exploded!")); + if (!user.hasWorkingAbility(Abilities.MAGIC_GUARD)) user.ReduceHP(1+(int)Math.Floor(user.TotalHP/4d)); + user.lastMoveUsed=thismove.id; + //user.lastMoveUsedType=thismove.Type(thismove.Type,user,null); if (!turneffects.SpecialUsage) { - if (user.effects.TwoTurnAttack==0) (user as Pokemon).lastMoveUsedSketch=thismove.id; - (user as Pokemon).lastRegularMoveUsed=thismove.id; + if (user.effects.TwoTurnAttack==0) user.lastMoveUsedSketch=thismove.id; + user.lastRegularMoveUsed=thismove.id; } @battle.lastMoveUsed=thismove.id; @battle.lastMoveUser=user.Index; - if (user.isFainted()) user.pbFaint(); - pbEndTurn(choice); + if (user.isFainted()) user.Faint(); + EndTurn(choice); return; } // Protean @@ -3218,19 +3237,19 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { thismove.Effect != Attack.Data.Effects.x062 && // Sleep Talk thismove.Effect != Attack.Data.Effects.x0B5 && // Assist thismove.Effect != Attack.Data.Effects.x054) { // Metronome - Types movetype=thismove.pbType(thismove.Type,user,null); - if (!user.pbHasType(movetype)) { + Types movetype=thismove.GetType(thismove.Type,user,null); + if (!user.HasType(movetype)) { string typename=Game._INTL(movetype.ToString(TextScripts.Name)); GameDebug.Log($"[Ability triggered] #{ToString()}'s Protean made it #{typename}-type"); user.Type1=movetype; user.Type2=movetype; user.effects.Type3=Types.NONE; - @battle.pbDisplay(Game._INTL("{1} transformed into the {2} type!",user.ToString(),typename)) ; + @battle.Display(Game._INTL("{1} transformed into the {2} type!",user.ToString(),typename)); } } // Try to use move against user if there aren't any targets if (targets.Count==0) { - user=pbChangeUser(thismove,user); + user=ChangeUser(thismove,user); if(thismove.Target==Attack.Data.Targets.SELECTED_POKEMON || //.Targets==Attack.Target.SingleNonUser || thismove.Target==Attack.Data.Targets.RANDOM_OPPONENT || //.Targets==Attack.Target.RandomOpposing || thismove.Target==Attack.Data.Targets.ALL_OPPONENTS || //.Targets==Attack.Target.AllOpposing || @@ -3238,11 +3257,11 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { thismove.Target==Attack.Data.Targets.ALLY || //.Targets==Attack.TargetPartner || thismove.Target==Attack.Data.Targets.USER_OR_ALLY || //.Targets==Attack.Target.UserOrPartner || //thismove.Target==Attack.Data.Targets.SingleOpposing || //.Targets==Attack.Target.SingleOpposing || - thismove.Target==Attack.Data.Targets.OPPONENTS_FIELD) //.Targets==Attack.Target.pbOppositeOpposing) - @battle.pbDisplay(Game._INTL("But there was no target...")); + thismove.Target==Attack.Data.Targets.OPPONENTS_FIELD) //.Targets==Attack.Target.OppositeOpposing) + @battle.Display(Game._INTL("But there was no target...")); else - //GameDebug.logonerr(thismove.pbEffect(user,null)); - try{ thismove.pbEffect(user, null); } catch { GameDebug.Log(""); } + //GameDebug.logonerr(thismove.Effect(user,null)); + try{ thismove.GetEffect(user, null); } catch { GameDebug.Log(""); } } else { // We have targets @@ -3255,23 +3274,23 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { do { // Get next target IBattler[] userandtarget=new IBattler[] { user, targets[i] }; - bool success=pbChangeTarget(thismove,userandtarget,targets.ToArray()); + bool success=ChangeTarget(thismove,userandtarget,targets.ToArray()); user=userandtarget[0]; IBattler target=userandtarget[1]; if (battle.doublebattle && i==0 && thismove.Target==Attack.Data.Targets.ALL_OPPONENTS) //thismove.Targets==Attack.Target.AllOpposing // Add target's partner to list of targets - pbAddTarget(ref targets,target.pbPartner); + AddTarget(ref targets,target.Partner); // If couldn't get the next target if (!success) { i+=1; continue; } // Get the number of hits - int numhits=thismove.pbNumHits(user); + int numhits=thismove.NumHits(user); // Reset damage state, set Focus Band/Focus Sash to available target.damagestate.Reset(); // Use move against the current target - pbProcessMoveAgainstTarget(thismove,user,target,numhits,turneffects,false,alltargets.ToArray(),showanimation); + ProcessMoveAgainstTarget(thismove,user,target,numhits,turneffects,false,alltargets.ToArray(),showanimation); showanimation=false; i+=1; } while (i(); - for (int i = 0; i < battle.battlers.Length; i++) - if (@battle.battlers[i].effects.Roar) { - @battle.battlers[i].effects.Roar=false; - @battle.battlers[i].effects.Uturn=false; - if (@battle.battlers[i].isFainted()) continue; - if (!@battle.pbCanSwitch(i,-1,false)) continue; - List choices= new List(); - PokemonEssentials.Interface.PokeBattle.IPokemon[] party=@battle.pbParty(i); - for (int j = 0; j< party.Length; j++) - if (@battle.pbCanSwitchLax(i,j,false)) choices.Add(j); - if (choices.Count>0) { - int newpoke=choices[@battle.pbRandom(choices.Count)]; - int newpokename=newpoke; - if (party[newpoke].Ability == Abilities.ILLUSION) - newpokename=@battle.pbGetLastPokeInTeam(i); - switched.Add(i); - @battle.battlers[i].pbResetForm(); - @battle.pbRecallAndReplace(i,newpoke,newpokename,false,user.hasMoldBreaker()); - @battle.pbDisplay(Game._INTL("{1} was dragged out!",@battle.battlers[i].ToString())); - //@battle.choices[i]=[0,0,null,-1]; // Replacement Pokémon does nothing this round - @battle.choices[i]=new Choice(); // Replacement Pokémon does nothing this round + for (int i = 0; i < battle.battlers.Length; i++) { + if (@battle.battlers[i].effects.Roar) { + @battle.battlers[i].effects.Roar=false; + @battle.battlers[i].effects.Uturn=false; + if (@battle.battlers[i].isFainted()) continue; + if (!@battle.CanSwitch(i,-1,false)) continue; + List choices= new List(); + PokemonEssentials.Interface.PokeBattle.IPokemon[] party=@battle.Party(i); + for (int j = 0; j< party.Length; j++) + if (@battle.CanSwitchLax(i,j,false)) choices.Add(j); + if (choices.Count>0) { + int newpoke=choices[@battle.Random(choices.Count)]; + int newpokename=newpoke; + if (party[newpoke].Ability == Abilities.ILLUSION) + newpokename=@battle.GetLastPokeInTeam(i); + switched.Add(i); + @battle.battlers[i].ResetForm(); + @battle.RecallAndReplace(i,newpoke,newpokename,false,user.hasMoldBreaker()); + @battle.Display(Game._INTL("{1} was dragged out!",@battle.battlers[i].ToString())); + //@battle.choices[i]=[0,0,null,-1]; // Replacement Pokémon does nothing this round + @battle.choices[i]=new Choice(); // Replacement Pokémon does nothing this round + } } } - foreach(IBattler i in @battle.pbPriority()) { + foreach(IBattler i in @battle.Priority()) { if (!switched.Contains(i.Index)) continue; - i.pbAbilitiesOnSwitchIn(true); + i.AbilitiesOnSwitchIn(true); } } // Pokémon switching caused by U-Turn, Volt Switch, Eject Button @@ -3314,62 +3334,65 @@ public void pbUseMove(IBattleChoice choice,bool specialusage=false) { if (@battle.battlers[i].effects.Uturn) { @battle.battlers[i].effects.Uturn=false; @battle.battlers[i].effects.Roar=false; - if (!@battle.battlers[i].isFainted() && @battle.pbCanChooseNonActive(i) && - !@battle.pbAllFainted(@battle.pbOpposingParty(i))) { + if (!@battle.battlers[i].isFainted() && @battle.CanChooseNonActive(i) && + !@battle.AllFainted(@battle.OpposingParty(i))) { // TODO: Pursuit should go here, and negate this effect if it KO's attacker - @battle.pbDisplay(Game._INTL("{1} went back to {2}!",@battle.battlers[i].ToString(),@battle.pbGetOwner(i).name)); + @battle.Display(Game._INTL("{1} went back to {2}!",@battle.battlers[i].ToString(),@battle.GetOwner(i).name)); int newpoke=0; - newpoke=@battle.pbSwitchInBetween(i,true,false); + newpoke=@battle.SwitchInBetween(i,true,false); int newpokename=newpoke; - if (@battle.pbParty(i)[newpoke].Ability == Abilities.ILLUSION) - newpokename=@battle.pbGetLastPokeInTeam(i); + if (@battle.Party(i)[newpoke].Ability == Abilities.ILLUSION) + newpokename=@battle.GetLastPokeInTeam(i); switched.Add(i); - @battle.battlers[i].pbResetForm(); - @battle.pbRecallAndReplace(i,newpoke,newpokename,@battle.battlers[i].effects.BatonPass); + @battle.battlers[i].ResetForm(); + @battle.RecallAndReplace(i,newpoke,newpokename,@battle.battlers[i].effects.BatonPass); //@battle.choices[i]=[0,0,null,-1]; // Replacement Pokémon does nothing this round @battle.choices[i]= new Choice(); // Replacement Pokémon does nothing this round } } - foreach(IBattler i in @battle.pbPriority()) + foreach(IBattler i in @battle.Priority()) { + if (!switched.Contains(i.Index)) continue; + i.AbilitiesOnSwitchIn(true); + } // Baton Pass if (user.effects.BatonPass) { user.effects.BatonPass=false; - if (!user.isFainted() && @battle.pbCanChooseNonActive(user.Index) && - !@battle.pbAllFainted(@battle.pbParty(user.Index))) { + if (!user.isFainted() && @battle.CanChooseNonActive(user.Index) && + !@battle.AllFainted(@battle.Party(user.Index))) { int newpoke=0; - newpoke=@battle.pbSwitchInBetween(user.Index,true,false); + newpoke=@battle.SwitchInBetween(user.Index,true,false); int newpokename=newpoke; - if (@battle.pbParty(user.Index)[newpoke].Ability == Abilities.ILLUSION) - newpokename=@battle.pbGetLastPokeInTeam(user.Index); - user.pbResetForm(); - @battle.pbRecallAndReplace(user.Index,newpoke,newpokename,true); + if (@battle.Party(user.Index)[newpoke].Ability == Abilities.ILLUSION) + newpokename=@battle.GetLastPokeInTeam(user.Index); + user.ResetForm(); + @battle.RecallAndReplace(user.Index,newpoke,newpokename,true); //@battle.choices[user.Index]=new Battle.Choice(0,0,null,-1); // Replacement Pokémon does nothing this round @battle.choices[user.Index]=new Choice(ChoiceAction.NoAction); // Replacement Pokémon does nothing this round - user.pbAbilitiesOnSwitchIn(true); + user.AbilitiesOnSwitchIn(true); } } // Record move as having been used - (user as Pokemon).lastMoveUsed=thismove.id; - //user.lastMoveUsedType=thismove.pbType(thismove.Type,user,null); + user.lastMoveUsed=thismove.id; + //user.lastMoveUsedType=thismove.Type(thismove.Type,user,null); if (!turneffects.SpecialUsage) { - if (user.effects.TwoTurnAttack==0) (user as Pokemon).lastMoveUsedSketch=thismove.id; - (user as Pokemon).lastRegularMoveUsed=thismove.id; + if (user.effects.TwoTurnAttack==0) user.lastMoveUsedSketch=thismove.id; + user.lastRegularMoveUsed=thismove.id; if (!user.movesUsed.Contains(thismove.id)) user.movesUsed.Add(thismove.id); // For Last Resort } @battle.lastMoveUsed=thismove.id; @battle.lastMoveUser=user.Index; // Gain Exp - @battle.pbGainEXP(); + @battle.GainEXP(); // Battle Arena only - update skills for (int i = 0; i < battle.battlers.Length; i++) @battle.successStates[i].UpdateSkill(); // End of move usage - pbEndTurn(choice); - @battle.pbJudge(); //@battle.pbSwitch(); + EndTurn(choice); + @battle.Judge(); //@battle.Switch(); return; } - public void pbCancelMoves() { - // If failed pbTryUseMove or have already used Pursuit to chase a switching foe + public void CancelMoves() { + // If failed TryUseMove or have already used Pursuit to chase a switching foe // Cancel multi-turn attacks (note: Hyper Beam effect is not canceled here) if (@effects.TwoTurnAttack>0) @effects.TwoTurnAttack=0; @effects.Outrage=0; @@ -3384,7 +3407,7 @@ public void pbCancelMoves() { #endregion #region Turn processing - public void pbBeginTurn(IBattleChoice choice) { + public void BeginTurn(IBattleChoice choice) { // Cancel some lingering effects which only apply until the user next moves @effects.DestinyBond=false; @effects.Grudge=false; @@ -3402,62 +3425,62 @@ public void pbBeginTurn(IBattleChoice choice) { if (this.status==Status.SLEEP && !this.hasWorkingAbility(Abilities.SOUNDPROOF)) for (int i = 0; i < 4; i++) if (@battle.battlers[i].effects.Uproar>0) { - pbCureStatus(false); - @battle.pbDisplay(Game._INTL("{1} woke up in the uproar!",ToString())); + CureStatus(false); + @battle.Display(Game._INTL("{1} woke up in the uproar!",ToString())); } } - //private void _pbEndTurn(IBattleChoice choice) { - void IBattler.pbEndTurn(IBattleChoice choice) { + //protected void _EndTurn(IBattleChoice choice) { + void IBattler.EndTurn(IBattleChoice choice) { // True end(?) if (@effects.ChoiceBand<0 && @lastMoveUsed>=0 && !this.isFainted() && (this.hasWorkingItem(Items.CHOICE_BAND) || this.hasWorkingItem(Items.CHOICE_SPECS) || this.hasWorkingItem(Items.CHOICE_SCARF))) @effects.ChoiceBand=@lastMoveUsed; - @battle.pbPrimordialWeather(); + @battle.PrimordialWeather(); for (int i = 0; i < battle.battlers.Length; i++) - @battle.battlers[i].pbBerryCureCheck(); + @battle.battlers[i].BerryCureCheck(); for (int i = 0; i < battle.battlers.Length; i++) - @battle.battlers[i].pbAbilityCureCheck(); + @battle.battlers[i].AbilityCureCheck(); for (int i = 0; i < battle.battlers.Length; i++) - @battle.battlers[i].pbAbilitiesOnSwitchIn(false); + @battle.battlers[i].AbilitiesOnSwitchIn(false); for (int i = 0; i < battle.battlers.Length; i++) - @battle.battlers[i].pbCheckForm(); + @battle.battlers[i].CheckForm(); } - public bool pbProcessTurn(IBattleChoice choice) { + public bool ProcessTurn(IBattleChoice choice) { // Can't use a move if fainted if (this.isFainted()) return false; // Wild roaming Pokémon always flee if possible - if (@battle.opponent.Length != 0 && @battle.pbIsOpposing(this.Index) && - @battle.rules["alwaysflee"] && @battle.pbCanRun(this.Index)) { - pbBeginTurn(choice); - @battle.pbDisplay(Game._INTL("{1} fled!",this.ToString())); + if (@battle.opponent.Length != 0 && @battle.IsOpposing(this.Index) && + @battle.rules["alwaysflee"] && @battle.CanRun(this.Index)) { + BeginTurn(choice); + @battle.Display(Game._INTL("{1} fled!",this.ToString())); @battle.decision=BattleResults.FORFEIT; - pbEndTurn(choice); + EndTurn(choice); GameDebug.Log($"[Escape] #{ToString()} fled"); return true; } // If this battler's action for this round wasn't "use a move" if (choice.Action!=ChoiceAction.UseMove) { // Clean up effects that end at battler's turn - pbBeginTurn(choice); - pbEndTurn(choice); + BeginTurn(choice); + EndTurn(choice); return false; } // Turn is skipped if Pursuit was used during switch if (@effects.Pursuit) { @effects.Pursuit=false; - pbCancelMoves(); - pbEndTurn(choice); - @battle.pbJudge(); //@battle.pbSwitch + CancelMoves(); + EndTurn(choice); + @battle.Judge(); //@battle.Switch return false; } // Use the move - // @battle.pbDisplayPaused("Before: [#{@lastMoveUsedSketch},#{@lastMoveUsed}]"); //Log instead? + // @battle.DisplayPaused("Before: [#{@lastMoveUsedSketch},#{@lastMoveUsed}]"); //Log instead? GameDebug.Log($"#{ToString()} used #{Game._INTL(choice.Move.id.ToString(TextScripts.Name))}"); - //try{ pbUseMove(choice, choice.Move == @battle.struggle); } catch (Exception e) { GameDebug.Log(e.Message); } //GameDebug.Log(e.StackTrace); - pbUseMove(choice, choice.Move == @battle.struggle); - // @battle.pbDisplayPaused("After: [#{@lastMoveUsedSketch},#{@lastMoveUsed}]"); + //try{ UseMove(choice, choice.Move == @battle.struggle); } catch (Exception e) { GameDebug.Log(e.Message); } //GameDebug.Log(e.StackTrace); + UseMove(choice, choice.Move == @battle.struggle); + // @battle.DisplayPaused("After: [#{@lastMoveUsedSketch},#{@lastMoveUsed}]"); return true; } #endregion @@ -3467,25 +3490,84 @@ public bool pbProcessTurn(IBattleChoice choice) { bool IBattler.isShadow { get { return isShadow(); } } int IBattler.displayGender { get { if (Gender == true) return 1; else if (Gender == false) return 0; else return -1; } } bool IBattler.owned { get { return IsOwned; } } - int IBattler.pbSpeed { get { return SPE; } } + int IBattler.Speed { get { return SPE; } } - void IBattler.pbInitDummyPokemon(IPokemon pkmn, int pkmnIndex) + void IBattler.InitDummyPokemon(IPokemon pkmn, int pkmnIndex) { //throw new NotImplementedException(); } - bool IBattler.pbHasMove(Moves id) + bool IBattler.HasMove(Moves id) { throw new NotImplementedException(); } - bool IBattler.pbHasMoveFunction(int code) + bool IBattler.HasMoveFunction(int code) { throw new NotImplementedException(); } #endregion - #region + #region Explicit Operators + public static bool operator ==(Pokemon x, Pokemon y) + { + if ((object)x == null && (object)y == null) return true; + if ((object)x == null || (object)y == null) return false; + return ((x.pokemon.PersonalId == y.pokemon.PersonalId) && ((x.pokemon as PokemonUnity.Monster.Pokemon).TrainerId == (y.pokemon as PokemonUnity.Monster.Pokemon).TrainerId) && ((x.pokemon as PokemonUnity.Monster.Pokemon).OT == (y.pokemon as PokemonUnity.Monster.Pokemon).OT)) & (x.pokemon.Name == y.pokemon.Name); //ToDo: If Gender is different, are pokemons the same? Check Date/Age of Pokemon? + } + public static bool operator !=(Pokemon x, Pokemon y) + { + if ((object)x == null && (object)y == null) return false; + if ((object)x == null || (object)y == null) return true; + return ((x.pokemon.PersonalId != y.pokemon.PersonalId) || ((x.pokemon as PokemonUnity.Monster.Pokemon).TrainerId != (y.pokemon as PokemonUnity.Monster.Pokemon).TrainerId) || ((x.pokemon as PokemonUnity.Monster.Pokemon).OT != (y.pokemon as PokemonUnity.Monster.Pokemon).OT)) | (x.pokemon.Name == y.pokemon.Name); + } + public bool Equals(Pokemon obj) + { + if (obj == null) return false; + return this == obj; + } + public override bool Equals(object obj) + { + if (obj == null) return false; + if (obj.GetType() == typeof(IBattler) || obj.GetType() == typeof(Pokemon)) + return Equals(obj as Pokemon); + if (obj.GetType() == typeof(IPokemon) || obj.GetType() == typeof(Monster.Pokemon)) + return pokemon.Equals(obj as Monster.Pokemon); + return base.Equals(obj); + } + public override int GetHashCode() + { + return pokemon.PersonalId.GetHashCode(); + } + bool IEquatable.Equals(IBattler other) + { + return Equals(obj: (object)other); + } + bool IEquatable.Equals(Pokemon other) + { + return Equals(obj: (object)other); + } + bool IEqualityComparer.Equals(IBattler x, IBattler y) + { + return x == y; + } + bool IEqualityComparer.Equals(Pokemon x, Pokemon y) + { + return x == y; + } + int IEqualityComparer.GetHashCode(IBattler obj) + { + return obj.GetHashCode(); + } + int IEqualityComparer.GetHashCode(Pokemon obj) + { + return obj.GetHashCode(); + } + object ICloneable.Clone() + { + return MemberwiseClone(); + } + public static IBattler[] GetBattlers(PokemonEssentials.Interface.PokeBattle.IPokemon[] input, Battle btl) { IBattler[] battlers = new IBattler[input.Length]; @@ -3493,7 +3575,7 @@ public static IBattler[] GetBattlers(PokemonEssentials.Interface.PokeBattle.IPok { //battlers[i] = (IBattler)input[i]; battlers[i] = (IBattler)new Pokemon(btl, (sbyte)i); - battlers[i].pbInitPokemon(input[i], (sbyte)i); + battlers[i].InitPokemon(input[i], (sbyte)i); } return battlers; } diff --git a/PokemonUnity.Application/Combat/Rules.cs b/PokemonUnity.Application/Combat/Rules.cs index 8fe9a8f32..5f149c68c 100644 --- a/PokemonUnity.Application/Combat/Rules.cs +++ b/PokemonUnity.Application/Combat/Rules.cs @@ -17,50 +17,50 @@ namespace PokemonUnity.Combat public partial class Battle : IBattleClause { //unless (@__clauses__aliased) { - // alias __clauses__pbDecisionOnDraw pbDecisionOnDraw; - // alias __clauses__pbEndOfRoundPhase pbEndOfRoundPhase; + // alias __clauses__DecisionOnDraw DecisionOnDraw; + // alias __clauses__EndOfRoundPhase EndOfRoundPhase; // @__clauses__aliased=true; //} - public virtual BattleResults pbDecisionOnDraw() { return (this as IBattleClause).pbDecisionOnDraw(); } - BattleResults IBattleClause.pbDecisionOnDraw() { + public virtual BattleResults DecisionOnDraw() { return (this as IBattleClause).DecisionOnDraw(); } + BattleResults IBattleClause.DecisionOnDraw() { if (@rules[BattleRule.SELFKOCLAUSE]) { if (this.lastMoveUser<0) { // in extreme cases there may be no last move user return BattleResults.DRAW; // game is a draw - } else if (pbIsOpposing(this.lastMoveUser)) { + } else if (IsOpposing(this.lastMoveUser)) { return BattleResults.LOST; // loss } else { return BattleResults.WON; // win } } - //return _pbDecisionOnDraw(); - return (this as IBattle).pbDecisionOnDraw(); + //return _DecisionOnDraw(); + return (this as IBattle).DecisionOnDraw(); } - public virtual void pbJudgeCheckpoint(IBattler attacker,IBattleMove move=null) { + public virtual void JudgeCheckpoint(IBattler attacker,IBattleMove move=null) { if (@rules["drawclause"]) { // Note: Also includes Life Orb (not implemented) if (!(move.IsNotNullOrNone() && move.Effect==Attack.Data.Effects.x15A)) { // Not a draw if fainting occurred due to Liquid Ooze - if (pbAllFainted(@party1) && pbAllFainted(@party2)) { - @decision=pbIsOpposing(@attacker.Index) ? BattleResults.WON : BattleResults.LOST; + if (AllFainted(@party1) && AllFainted(@party2)) { + @decision=IsOpposing(@attacker.Index) ? BattleResults.WON : BattleResults.LOST; } } } else if (@rules[BattleRule.MODIFIEDSELFDESTRUCTCLAUSE] && move.IsNotNullOrNone() && move.Effect==Attack.Data.Effects.x008) { // Selfdestruct - if (pbAllFainted(@party1) && pbAllFainted(@party2)) { - @decision=pbIsOpposing(@attacker.Index) ? BattleResults.WON : BattleResults.LOST; + if (AllFainted(@party1) && AllFainted(@party2)) { + @decision=IsOpposing(@attacker.Index) ? BattleResults.WON : BattleResults.LOST; } } } - public virtual void pbEndOfRoundPhase() { (this as IBattleClause).pbEndOfRoundPhase(); } - void IBattleClause.pbEndOfRoundPhase() { - //_pbEndOfRoundPhase(); - (this as IBattle).pbEndOfRoundPhase(); + public virtual void EndOfRoundPhase() { (this as IBattleClause).EndOfRoundPhase(); } + void IBattleClause.EndOfRoundPhase() { + //_EndOfRoundPhase(); + (this as IBattle).EndOfRoundPhase(); if (@rules[BattleRule.SUDDENDEATH] && @decision==BattleResults.ABORTED) { - if (pbPokemonCount(@party1)>pbPokemonCount(@party2)) { + if (PokemonCount(@party1)>PokemonCount(@party2)) { @decision=BattleResults.LOST; // loss - } else if (pbPokemonCount(@party1)0); } - public bool pbCanSleepYawn() { return (this as IBattlerClause).pbCanSleepYawn(); } - bool IBattlerClause.pbCanSleepYawn() { + public bool CanSleepYawn() { return (this as IBattlerClause).CanSleepYawn(); } + bool IBattlerClause.CanSleepYawn() { if ((@battle.rules[BattleRule.SLEEPCLAUSE] || @battle.rules[BattleRule.MODIFIEDSLEEPCLAUSE]) && - pbHasStatusPokemon(Status.SLEEP)) { + HasStatusPokemon(Status.SLEEP)) { return false; } - //return _pbCanSleepYawn(); - return (this as IBattlerEffect).pbCanSleepYawn(); + //return _CanSleepYawn(); + return (this as IBattlerEffect).CanSleepYawn(); } - public bool pbCanFreeze (IBattler attacker,bool showMessages,IBattleMove move=null) { return (this as IBattlerClause).pbCanFreeze(attacker,showMessages,move); } - bool IBattlerClause.pbCanFreeze(IBattler attacker,bool showMessages,IBattleMove move) { - if (@battle.rules[BattleRule.FREEZECLAUSE] && pbHasStatusPokemon(Status.FROZEN)) { + public bool CanFreeze (IBattler attacker,bool showMessages,IBattleMove move=null) { return (this as IBattlerClause).CanFreeze(attacker,showMessages,move); } + bool IBattlerClause.CanFreeze(IBattler attacker,bool showMessages,IBattleMove move) { + if (@battle.rules[BattleRule.FREEZECLAUSE] && HasStatusPokemon(Status.FROZEN)) { return false; } - //return _pbCanFreeze(attacker,showMessages,move); - return (this as IBattlerEffect).pbCanFreeze(attacker,showMessages,move); + //return _CanFreeze(attacker,showMessages,move); + return (this as IBattlerEffect).CanFreeze(attacker,showMessages,move); } - public bool pbCanSleep (IBattler attacker,bool showMessages,IBattleMove move=null,bool ignorestatus=false) { return (this as IBattlerClause).pbCanSleep(attacker,showMessages,move,ignorestatus); } - bool IBattlerClause.pbCanSleep(IBattler attacker,bool showMessages,IBattleMove move,bool ignorestatus) { + public bool CanSleep (IBattler attacker,bool showMessages,IBattleMove move=null,bool ignorestatus=false) { return (this as IBattlerClause).CanSleep(attacker,showMessages,move,ignorestatus); } + bool IBattlerClause.CanSleep(IBattler attacker,bool showMessages,IBattleMove move,bool ignorestatus) { bool selfsleep=(attacker.IsNotNullOrNone() && attacker.Index==this.Index); if (((@battle.rules[BattleRule.MODIFIEDSLEEPCLAUSE]) || (!selfsleep && @battle.rules[BattleRule.SLEEPCLAUSE])) && - pbHasStatusPokemon(Status.SLEEP)) { + HasStatusPokemon(Status.SLEEP)) { if (showMessages) { - @battle.pbDisplay(Game._INTL("But {1} couldn't sleep!",this.ToString(true))); + @battle.Display(Game._INTL("But {1} couldn't sleep!",this.ToString(true))); } return false; } - //return _pbCanSleep(attacker,showMessages,move,ignorestatus); - return (this as IBattlerEffect).pbCanSleep(attacker,showMessages,move,ignorestatus); + //return _CanSleep(attacker,showMessages,move,ignorestatus); + return (this as IBattlerEffect).CanSleep(attacker,showMessages,move,ignorestatus); } } #region Rules that Override Move Effect public partial class PokeBattle_Move_022 : IBattleMove_MoveFailed { // Double Team - public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { + public override bool MoveFailed(IBattler attacker,IBattler opponent) { if (@battle.rules[BattleRule.EVASIONCLAUSE]) return true; return false; } } public partial class PokeBattle_Move_034 : IBattleMove_MoveFailed { // Minimize - public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { + public override bool MoveFailed(IBattler attacker,IBattler opponent) { if (@battle.rules[BattleRule.EVASIONCLAUSE]) return true; return false; } } public partial class PokeBattle_Move_067 : IBattleMove_MoveFailed { // Skill Swap - public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { + public override bool MoveFailed(IBattler attacker,IBattler opponent) { if (@battle.rules[BattleRule.SKILLSWAPCLAUSE]) return true; return false; } } public partial class PokeBattle_Move_06A : IBattleMove_MoveFailed { // Sonicboom - public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { + public override bool MoveFailed(IBattler attacker,IBattler opponent) { if (@battle.rules[BattleRule.SONICBOOMCLAUSE]) return true; return false; } } public partial class PokeBattle_Move_06B : IBattleMove_MoveFailed { // Dragon Rage - public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { + public override bool MoveFailed(IBattler attacker,IBattler opponent) { if (@battle.rules[BattleRule.SONICBOOMCLAUSE]) return true; return false; } } public partial class PokeBattle_Move_070 : IBattleMove_MoveFailed { // OHKO moves - public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { + public override bool MoveFailed(IBattler attacker,IBattler opponent) { if (@battle.rules[BattleRule.OHKOCLAUSE]) return true; return false; } @@ -168,37 +168,37 @@ public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { public partial class PokeBattle_Move_0E0 : IBattleMove_MoveFailed { // Selfdestruct //unless (@__clauses__aliased) { - // alias __clauses__pbOnStartUse pbOnStartUse; + // alias __clauses__OnStartUse OnStartUse; // @__clauses__aliased=true; //} - public override bool pbOnStartUse(IBattler attacker) { + public override bool OnStartUse(IBattler attacker) { if (@battle.rules[BattleRule.SELFKOCLAUSE]) { // Check whether no unfainted Pokemon remain in either party - int count=attacker.pbNonActivePokemonCount; - count+=attacker.pbOppositeOpposing.pbNonActivePokemonCount; + int count=attacker.NonActivePokemonCount; + count+=attacker.OppositeOpposing.NonActivePokemonCount; if (count==0) { - @battle.pbDisplay("But it failed!"); + @battle.Display("But it failed!"); return false; } } if (@battle.rules[BattleRule.SELFDESTRUCTCLAUSE]) { // Check whether no unfainted Pokemon remain in either party - int count=attacker.pbNonActivePokemonCount; - count+=attacker.pbOppositeOpposing.pbNonActivePokemonCount; + int count=attacker.NonActivePokemonCount; + count+=attacker.OppositeOpposing.NonActivePokemonCount; if (count==0) { - @battle.pbDisplay(Game._INTL("{1}'s team was disqualified!",attacker.ToString())); - @battle.decision=@battle.pbIsOpposing(attacker.Index) ? BattleResults.WON : BattleResults.LOST; + @battle.Display(Game._INTL("{1}'s team was disqualified!",attacker.ToString())); + @battle.decision=@battle.IsOpposing(attacker.Index) ? BattleResults.WON : BattleResults.LOST; return false; } } - return (this as IBattleMove).pbOnStartUse(attacker); + return (this as IBattleMove).OnStartUse(attacker); } } public partial class PokeBattle_Move_0E5 : IBattleMove_MoveFailed { // Perish Song - public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { - if (@battle.rules[BattleRule.PERISHSONGCLAUSE] && attacker.pbNonActivePokemonCount==0) { + public override bool MoveFailed(IBattler attacker,IBattler opponent) { + if (@battle.rules[BattleRule.PERISHSONGCLAUSE] && attacker.NonActivePokemonCount==0) { return true; } return false; @@ -206,8 +206,8 @@ public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { } public partial class PokeBattle_Move_0E7 : IBattleMove_MoveFailed { // Destiny Bond - public override bool pbMoveFailed(IBattler attacker,IBattler opponent) { - if (@battle.rules[BattleRule.PERISHSONGCLAUSE] && attacker.pbNonActivePokemonCount==0) { + public override bool MoveFailed(IBattler attacker,IBattler opponent) { + if (@battle.rules[BattleRule.PERISHSONGCLAUSE] && attacker.NonActivePokemonCount==0) { return true; } return false; diff --git a/PokemonUnity.Application/Combat/Trainer/Trainer.cs b/PokemonUnity.Application/Combat/Trainer/Trainer.cs index 15916a7fc..5f1c8dfdb 100644 --- a/PokemonUnity.Application/Combat/Trainer/Trainer.cs +++ b/PokemonUnity.Application/Combat/Trainer/Trainer.cs @@ -19,7 +19,7 @@ public partial class Trainer : PokemonEssentials.Interface.PokeBattle.ITrainer, public int? metaID { get; set; } public TrainerTypes trainertype { get; set; } public int? outfit { get; set; } - public bool[] badges { get; private set; } + public bool[] badges { get; set; } public int money { get; private set; } //public bool[] seen { get; private set; } //ToDo: list? @@ -36,16 +36,16 @@ public partial class Trainer : PokemonEssentials.Interface.PokeBattle.ITrainer, /// /// Whether the Pokédex was obtained /// - public bool pokedex { get; set; } + public bool pokedex { get; set; } /// /// Whether the Pokégear was obtained /// - public bool pokegear { get; set; } + public bool pokegear { get; set; } public Languages? language { get; private set; } /// /// Name of this trainer type (localized) /// - public string trainerTypeName { get { + public string trainerTypeName { get { return @trainertype.ToString() ?? "PkMn Trainer"; } } /// @@ -91,7 +91,7 @@ public Trainer (string name,TrainerTypes trainertype) { ITrainer ITrainer.initialize(string name, TrainerTypes trainertype) { this.name=name; - @language=(Languages)(Game.GameData as PokemonEssentials.Interface.IGameUtility).pbGetLanguage(); + @language=(Languages)(Game.GameData as PokemonEssentials.Interface.IGameUtility).GetLanguage(); this.trainertype=trainertype; @id=Core.Rand.Next(256); @id|=Core.Rand.Next(256)<<8; @@ -130,7 +130,7 @@ public string fullname { get { /// /// /// - public int publicID(int? id=null) { + public int publicID(int? id=null) { return id.HasValue ? (int)id.Value&0xFFFF : this.id&0xFFFF; } @@ -139,7 +139,7 @@ public int publicID(int? id=null) { /// /// /// - public int secretID(int? id=null) { + public int secretID(int? id=null) { return id.HasValue ? (int)id.Value>>16 : this.id>>16; } @@ -147,7 +147,7 @@ public int secretID(int? id=null) { /// Random ID other than this Trainer's ID /// /// - public int getForeignID() { + public int getForeignID() { int fid=0; do { //loop; fid=Core.Rand.Next(256); @@ -175,7 +175,7 @@ public int Outfit { get { } } public Languages Language { get { - if (!@language.HasValue) @language=(Languages)(Game.GameData as PokemonEssentials.Interface.IGameUtility).pbGetLanguage(); + if (!@language.HasValue) @language=(Languages)(Game.GameData as PokemonEssentials.Interface.IGameUtility).GetLanguage(); return @language.Value; } } @@ -187,9 +187,9 @@ public Languages Language { get { /// Money won when trainer is defeated /// /// - public int moneyEarned { get { + public int moneyEarned { get { int ret=0; - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); // if (!Kernal.TrainerMetaData[@trainertype]) return 30; ret=Kernal.TrainerMetaData[@trainertype].BaseMoney; @@ -203,7 +203,7 @@ public int moneyEarned { get { /// public int skill { get { int ret=0; - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); // if (!trainertypes[@trainertype]) return 30; ret= Kernal.TrainerMetaData[@trainertype].SkillLevel; @@ -213,7 +213,7 @@ public int skill { get { public string skillCode { get { string ret=""; - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); // if (!trainertypes[@trainertype]) return ""; ret= Kernal.TrainerMetaData[@trainertype].SkillCodes.Value.ToString(); @@ -231,7 +231,7 @@ public bool hasSkillCode(string code) { /// Number of badges /// /// - public int numbadges { get { + public int numbadges { get { int ret=0; for (int i = 0; i < @badges.Length; i++) { if (@badges[i]) ret+=1; @@ -240,9 +240,9 @@ public int numbadges { get { } } int ITrainer.gender { get { return gender == true ? 1 : (gender == false ? 0 : 2); } } - public bool? gender { get { + public bool? gender { get { bool? ret=null; // 2 = gender unknown - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); // if (!trainertypes || !trainertypes[trainertype]) { // ret=null; @@ -255,9 +255,9 @@ public bool? gender { get { return ret; } } - public bool isMale { get { + public bool isMale { get { return this.gender==true; } } - public bool isFemale { get { + public bool isFemale { get { return this.gender==false; } } public IEnumerable pokemonParty { get { @@ -327,7 +327,7 @@ public PokemonEssentials.Interface.PokeBattle.IPokemon lastAblePokemon { get { /// /// /// - public int pokedexSeen(Regions? region=null) { + public int pokedexSeen(Regions? region=null) { int ret=0; if (region==null) { //for (int i = 0; i < Kernal.PokemonData.Count; i++) { @@ -336,7 +336,7 @@ public int pokedexSeen(Regions? region=null) { return seen.Count; } else { - //int[] regionlist=Game.pbAllRegionalSpecies(region); + //int[] regionlist=Game.AllRegionalSpecies(region); Pokemons[] regionlist=new Pokemons[0]; foreach (Pokemons i in regionlist) { if (@seen[i]) ret+=1; @@ -350,7 +350,7 @@ public int pokedexSeen(Regions? region=null) { /// /// /// - public int pokedexOwned(Regions? region=null) { + public int pokedexOwned(Regions? region=null) { int ret=0; if (region==null) { //for (int i = 0; i < Kernal.PokemonData.Count; i++) { @@ -359,7 +359,7 @@ public int pokedexOwned(Regions? region=null) { return owned.Count; } else { - //int[] regionlist=Game.GameData.pbAllRegionalSpecies(region); + //int[] regionlist=Game.GameData.AllRegionalSpecies(region); Pokemons[] regionlist=new Pokemons[0]; foreach (Pokemons i in regionlist) { if (@owned[i]) ret+=1; @@ -380,28 +380,28 @@ public int numFormsSeen(Pokemons species) { public bool hasSeen (Pokemons species) { //if (Pokemons.is_a(String) || Pokemons.is_a(Symbol)) { - // species=getID(PBSpecies,species); + // species=getID(Species,species); //} return species>0 ? @seen[species] : false; } public bool hasOwned (Pokemons species) { //if (species.is_a(String) || species.is_a(Symbol)) { - // species=getID(PBSpecies,species); + // species=getID(Species,species); //} return species>0 ? @owned[species] : false; } public void setSeen(Pokemons species) { //if (species.is_a(String) || species.is_a(Symbol)) { - // species=getID(PBSpecies,species); + // species=getID(Species,species); //} if (species>0) @seen[species]=true; } public void setOwned(Pokemons species) { //if (species.is_a(String) || species.is_a(Symbol)) { - // species=getID(PBSpecies,species); + // species=getID(Species,species); //} if (species>0) @owned[species]=true; } diff --git a/PokemonUnity.Application/Events.cs b/PokemonUnity.Application/Events.cs index bbf765bcc..0267e6d4a 100644 --- a/PokemonUnity.Application/Events.cs +++ b/PokemonUnity.Application/Events.cs @@ -81,30 +81,32 @@ public static partial class Events //: IEvents /// Triggers whenever a wild Pokémon battle ends /// //public static event EventHandler OnWildBattleEnd; - public static Action OnWildBattleEnd; + public static event Action OnWildBattleEnd; /// /// Triggers whenever a wild Pokémon is created /// //public static event EventHandler OnWildPokemonCreate; - public static Action OnWildPokemonCreate; + public static event Action OnWildPokemonCreate; /// /// Triggers whenever an NPC trainer's Pokémon party is loaded /// //public static event EventHandler OnTrainerPartyLoad; - public static Action OnTrainerPartyLoad; + public static event Action OnTrainerPartyLoad; /// /// Fires whenever a spriteset is created. /// //public static event EventHandler OnSpritesetCreate; - public static Action OnSpritesetCreate; - public static event EventHandler OnStartBattle; + public static event Action OnSpritesetCreate; + //public static event EventHandler OnStartBattle; + public static event Action OnStartBattle; //public static event EventHandler OnEndBattle; public static event Action OnEndBattle; /// /// Fires whenever a map is created. Event handler receives two parameters: the /// map (RPG.Map) and the tileset (RPG.Tileset) /// - public static event EventHandler OnMapCreate; + //public static event EventHandler OnMapCreate; + public static event Action OnMapCreate; /// /// Triggers when the player presses the Action button on the map. /// @@ -112,19 +114,23 @@ public static partial class Events //: IEvents #endregion #region Event Sender / Raise Events - public static void OnMapCreateTrigger() + public static void OnMapCreateTrigger(object sender, int map_id, MapData @map, ITileset tileset) { - //OnMapCreateEventArgs e = new OnMapCreateEventArgs(); - if (OnMapCreate != null) OnMapCreate.Invoke(null, new OnMapCreateEventArgs()); + IOnMapCreateEventArgs e = new OnMapCreateEventArgs() + { + Map = map_id, + Tileset = tileset + }; + if (OnMapCreate != null) OnMapCreate.Invoke(sender, e); } public static void OnMapChangeTrigger() { - IOnMapChangeEventArgs e = new OnMapChangeEventArgs(); + IOnMapChangeEventArgs e = new OnMapChangeEventArgs(); if(OnMapChange != null) OnMapChange.Invoke(null, e); } public static void OnMapChangingTrigger() { - IOnMapChangingEventArgs e = new OnMapChangingEventArgs(); + IOnMapChangingEventArgs e = new OnMapChangingEventArgs(); if(OnMapChanging != null) OnMapChanging.Invoke(null, e); } /// @@ -142,7 +148,7 @@ public static void OnLeaveTileTrigger(IGameCharacter @event, ITilePosition tile) IOnLeaveTileEventArgs e = new OnLeaveTileEventArgs(); //EventHandler handler = OnLeaveTile; //if (handler != null) handler.Invoke(null, e); - if (OnLeaveTile != null) OnLeaveTile.Invoke(null, e); + if (OnLeaveTile != null) OnLeaveTile.Invoke(@event, e); } /// /// Parameters: @@ -161,11 +167,11 @@ public static void OnStepTakenFieldMovementTrigger(object sender, IOnStepTakenFi /// public static void OnStepTakenTransferPossibleTrigger(object sender, IOnStepTakenTransferPossibleEventArgs e) { - //IOnStepTakenTransferPossibleEventArgs e = new OnStepTakenTransferPossibleEventArgs(); - if(OnStepTakenTransferPossible != null) OnStepTakenTransferPossible.Invoke(null, e); + //IOnStepTakenTransferPossibleEventArgs e = new OnStepTakenTransferPossibleEventArgs(); + if(OnStepTakenTransferPossible != null) OnStepTakenTransferPossible.Invoke(sender, e); } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon species /// e[1] - Pokémon level /// e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) @@ -174,10 +180,10 @@ public static void OnStepTakenTransferPossibleTrigger(object sender, IOnStepTake public static void OnWildBattleOverrideTrigger(object sender, IOnWildBattleOverrideEventArgs e) { //IOnWildBattleOverrideEventArgs e = new OnWildBattleOverrideEventArgs(); - if(OnWildBattleOverride != null) OnWildBattleOverride.Invoke(null, e); + if(OnWildBattleOverride != null) OnWildBattleOverride.Invoke(sender, e); } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon species /// e[1] - Pokémon level /// e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) @@ -193,24 +199,32 @@ public static void OnWildBattleEndTrigger(object @event, Pokemons species, int l if(OnWildBattleEnd != null) OnWildBattleEnd.Invoke(@event, e); } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon being created /// - public static void OnWildPokemonCreateTrigger() + public static void OnWildPokemonCreateTrigger(object sender, IPokemon pkmn) { - IOnWildPokemonCreateEventArgs e = new OnWildPokemonCreateEventArgs(); - if(OnWildPokemonCreate != null) OnWildPokemonCreate.Invoke(null, e); + IOnWildPokemonCreateEventArgs e = new OnWildPokemonCreateEventArgs() + { + Pokemon = pkmn + }; + if(OnWildPokemonCreate != null) OnWildPokemonCreate.Invoke(sender, e); } /// - /// Parameters: + /// Parameters: /// e[0] - Trainer /// e[1] - Items possessed by the trainer /// e[2] - Party /// - public static void OnTrainerPartyLoadTrigger() + public static void OnTrainerPartyLoadTrigger(object sender, ITrainer trainer, IList items = null, IList party = null) { - IOnTrainerPartyLoadEventArgs e = new OnTrainerPartyLoadEventArgs(); - if(OnTrainerPartyLoad != null) OnTrainerPartyLoad.Invoke(null, e); + IOnTrainerPartyLoadEventArgs e = new OnTrainerPartyLoadEventArgs() + { + Trainer = trainer, + Items = items, + Party = party + }; + if(OnTrainerPartyLoad != null) OnTrainerPartyLoad.Invoke(sender, e); } /// /// Parameters: @@ -221,7 +235,7 @@ public static void OnTrainerPartyLoadTrigger() /// public static void OnMapSceneChangeTrigger() { - IOnMapSceneChangeEventArgs e = new OnMapSceneChangeEventArgs(); + IOnMapSceneChangeEventArgs e = new OnMapSceneChangeEventArgs(); if(OnMapSceneChange != null) OnMapSceneChange.Invoke(null, e); } /// @@ -230,21 +244,34 @@ public static void OnMapSceneChangeTrigger() /// e[1] = Viewport used for tilemap and characters /// e[0].map = Map associated with the spriteset (not necessarily the current map). /// - public static void OnSpritesetCreateTrigger() + public static void OnSpritesetCreateTrigger(object sender, ISpritesetMap spriteset, IViewport viewport) { - IOnSpritesetCreateEventArgs e = new OnSpritesetCreateEventArgs(); - if(OnSpritesetCreate != null) OnSpritesetCreate.Invoke(null, e); + IOnSpritesetCreateEventArgs e = new OnSpritesetCreateEventArgs() + { + SpritesetId = spriteset, + Viewport = viewport + }; + if(OnSpritesetCreate != null) OnSpritesetCreate.Invoke(sender, e); } public static void OnStepTakenTrigger(object sender) { if (OnStepTaken != null) OnStepTaken.Invoke(sender, EventArgs.Empty); } - public static void OnStartBattleTrigger(object sender) + public static void OnStartBattleTrigger(object sender, IPokemon pkmn) { - if (OnStartBattle != null) OnStartBattle.Invoke(sender, EventArgs.Empty); + IOnWildPokemonCreateEventArgs e = new OnWildPokemonCreateEventArgs() + { + Pokemon = pkmn + }; + if (OnStartBattle != null) OnStartBattle.Invoke(sender, e); } - public static void OnEndBattleTrigger(object sender, IOnEndBattleEventArgs e) + public static void OnEndBattleTrigger(object sender, BattleResults decision, bool canLose) { + IOnEndBattleEventArgs e = new OnEndBattleEventArgs() + { + CanLose = canLose, + Decision = decision + }; if (OnEndBattle != null) OnEndBattle.Invoke(sender, e); } #endregion @@ -259,7 +286,7 @@ public class OnMapCreateEventArgs : EventArgs, IOnMapCreateEventArgs public int Id { get { return EventId; } } //public int Id { get { return Pokemon.GetHashCode(); } } //EventId; public int Map { get; set; } - public int Tileset { get; set; } + public ITileset Tileset { get; set; } } public class OnMapChangeEventArgs : EventArgs, IOnMapChangeEventArgs { @@ -342,7 +369,7 @@ public class OnStepTakenTransferPossibleEventArgs : EventArgs, IOnStepTakenTrans public bool Index { get; set; } } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon species /// e[1] - Pokémon level /// e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) @@ -360,7 +387,7 @@ public class OnWildBattleOverrideEventArgs : EventArgs, IOnWildBattleOverrideEve public BattleResults Result { get; set; } } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon species /// e[1] - Pokémon level /// e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) @@ -378,7 +405,7 @@ public class OnWildBattleEndEventArgs : EventArgs, IOnWildBattleEndEventArgs public BattleResults Result { get; set; } } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon being created /// public class OnWildPokemonCreateEventArgs : EventArgs, IOnWildPokemonCreateEventArgs @@ -392,7 +419,7 @@ public class OnWildPokemonCreateEventArgs : EventArgs, IOnWildPokemonCreateEvent public IPokemon Pokemon { get; set; } } /// - /// Parameters: + /// Parameters: /// e[0] - Trainer /// e[1] - Items possessed by the trainer /// e[2] - Party @@ -406,8 +433,8 @@ public class OnTrainerPartyLoadEventArgs : EventArgs, IOnTrainerPartyLoadEventAr /// /// Items possessed by the trainer /// - public Items[] Items { get; set; } - public IPokemon[] Party { get; set; } + public IList Items { get; set; } + public IList Party { get; set; } } /// /// Parameters: @@ -444,7 +471,7 @@ public class OnSpritesetCreateEventArgs : EventArgs, IOnSpritesetCreateEventArgs /// /// Spriteset being created /// - public int SpritesetId { get; set; } + public ISpritesetMap SpritesetId { get; set; } /// /// Viewport used for tilemap and characters /// diff --git a/PokemonUnity.Application/Game/Game.Conditions.cs b/PokemonUnity.Application/Game/Game.Conditions.cs index 009eb43e0..f8d10c454 100644 --- a/PokemonUnity.Application/Game/Game.Conditions.cs +++ b/PokemonUnity.Application/Game/Game.Conditions.cs @@ -181,7 +181,7 @@ public static int SecondsOfDay return DateTime.UtcNow.Hour * 3600 + DateTime.UtcNow.Minute * 60 + DateTime.UtcNow.Second; } } - public static DateTime GetTimeNow { get { return DateTime.UtcNow; } } + public static DateTime GetTimeNow { get { return DateTime.Now; } } #region Time /// @@ -207,7 +207,7 @@ public static int SecondsOfDay /// /// Is ON if the current day is Tuesday, Thursday or Saturday, and OFF otherwise. /// - public static bool IsWeekday { get { return GetTime == DayTime.Day; } } + //public static bool IsWeekday { get { return GetTime == DayTime.Day; } } #endregion //public void DefaultConditions() @@ -219,6 +219,9 @@ public static int SecondsOfDay // Radio = (byte)ConditionValue.RADIO_OFF; // //Season = Season.Spring; //} + /// + /// + /// public void SetCondition(ConditionValue condition) { switch (condition) @@ -401,11 +404,11 @@ public static FieldWeathers GetRegionWeather(Season season) } #region Day and night system - public static DateTime pbGetTimeNow() { - return DateTime.Now; - } + //public static DateTime GetTimeNow() { + // return DateTime.Now; + //} - public static partial class PBDayNight { + public static partial class DayNight { public static float oneOverSixty=1/60.0f; public static ITone[] HourlyTones=new ITone[] { //new Tone(-142.5,-142.5,-22.5,68), // Midnight @@ -443,7 +446,7 @@ public static partial class PBDayNight { /// /// public static bool isDay(DateTime? @time=null) { - if (@time == null) @time=pbGetTimeNow(); + if (@time == null) @time=GetTimeNow; return (@time.Value.Hour>=6 && @time.Value.Hour<20); } @@ -453,7 +456,7 @@ public static bool isDay(DateTime? @time=null) { /// /// public static bool isNight(DateTime? @time=null) { - if (@time == null) @time=pbGetTimeNow(); + if (@time == null) @time=GetTimeNow; return (@time.Value.Hour>=20 || @time.Value.Hour<6); } @@ -463,7 +466,7 @@ public static bool isNight(DateTime? @time=null) { /// /// public static bool isMorning(DateTime? @time=null) { - if (@time == null) @time=pbGetTimeNow(); + if (@time == null) @time=GetTimeNow; return (@time.Value.Hour>=6 && @time.Value.Hour<12); } @@ -473,7 +476,7 @@ public static bool isMorning(DateTime? @time=null) { /// /// public static bool isAfternoon(DateTime? @time=null) { - if (@time == null) @time=pbGetTimeNow(); + if (@time == null) @time=GetTimeNow; return (@time.Value.Hour>=12 && @time.Value.Hour<20); } @@ -483,12 +486,12 @@ public static bool isAfternoon(DateTime? @time=null) { /// /// public static bool isEvening(DateTime? @time=null) { - if (@time == null) @time=pbGetTimeNow(); + if (@time == null) @time=GetTimeNow; return (@time.Value.Hour>=17 && @time.Value.Hour<20); } - public static int pbGetDayNightMinutes() { - DateTime now=pbGetTimeNow(); // Get the current in-game time + public static int GetDayNightMinutes() { + DateTime now=GetTimeNow; // Get the current in-game time return (now.Hour*60)+now.Minute; } @@ -497,7 +500,7 @@ public static int pbGetDayNightMinutes() { /// /// public static int getShade() { - int @time=pbGetDayNightMinutes(); + int @time=GetDayNightMinutes(); if (@time>(12*60)) @time=(24*60)-@time; int shade=255*@time/(12*60); return shade; @@ -519,7 +522,7 @@ public static int getShade() { public static void getToneInternal() { //Calculates the tone for the current frame, used for day/night effects - int realMinutes=pbGetDayNightMinutes(); + int realMinutes=GetDayNightMinutes(); int hour=realMinutes/60; int minute=realMinutes%60; ITone tone=HourlyTones[hour]; @@ -533,12 +536,12 @@ public static void getToneInternal() { } } - //public void pbDayNightTint(object obj) { + //public void DayNightTint(object obj) { // if (!(Game.GameData.Scene is ISceneMap)) { // return; // } else { - // if (Core.ENABLESHADING && Game.GameData.GameMap != null && pbGetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { - // ITone tone=PBDayNight.getTone(); + // if (Core.ENABLESHADING && Game.GameData.GameMap != null && GetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { + // ITone tone=DayNight.getTone(); // obj.tone.set(tone.red,tone.green,tone.blue,tone.gray); // } else { // obj.tone.set(0,0,0,0); @@ -563,7 +566,7 @@ public static void getToneInternal() { /// 7 - Waning Crescent /// public static int moonphase(DateTime? @time=null) { // in UTC - if (@time == null) time=pbGetTimeNow(); + if (@time == null) time=GetTimeNow; double[] transitions=new double[] { 1.8456618033125, 5.5369854099375, @@ -645,8 +648,8 @@ public static int[] zodiacComplements(int sign) { #endregion #region Days of the week - public static bool pbIsWeekday(int wdayVariable,params int[] arg) { - DateTime timenow=pbGetTimeNow(); + public static bool IsWeekday(int wdayVariable,params int[] arg) { + DateTime timenow=GetTimeNow; int wday=(int)timenow.DayOfWeek;//.wday; bool ret=false; foreach (int wd in arg) { @@ -668,8 +671,8 @@ public static bool pbIsWeekday(int wdayVariable,params int[] arg) { #endregion #region Months - public static bool pbIsMonth(int monVariable,params int[] arg) { - DateTime timenow=pbGetTimeNow(); + public static bool IsMonth(int monVariable,params int[] arg) { + DateTime timenow=GetTimeNow; int thismon=timenow.Month; bool ret=false; foreach (int wd in arg) { @@ -694,7 +697,7 @@ public static bool pbIsMonth(int monVariable,params int[] arg) { return ret; } - public static string pbGetAbbrevMonthName(int month) { + public static string GetAbbrevMonthName(int month) { return new string[] {"", Game._INTL("Jan."), Game._INTL("Feb."), @@ -712,12 +715,12 @@ public static string pbGetAbbrevMonthName(int month) { #endregion #region Seasons - public static int pbGetSeason() { - return (pbGetTimeNow().Month-1)%4; + public static int GetSeason() { + return (GetTimeNow.Month-1)%4; } - public static bool pbIsSeason(int seasonVariable,params int[] arg) { - int thisseason=pbGetSeason(); + public static bool IsSeason(int seasonVariable,params int[] arg) { + int thisseason=GetSeason(); bool ret=false; foreach (int wd in arg) { if (wd==thisseason) ret=true; @@ -733,13 +736,13 @@ public static bool pbIsSeason(int seasonVariable,params int[] arg) { return ret; } - public static bool pbIsSpring() { return pbIsSeason(0,0); } // Jan, May, Sep - public static bool pbIsSummer() { return pbIsSeason(0,1); } // Feb, Jun, Oct - public static bool pbIsAutumn() { return pbIsSeason(0,2); } // Mar, Jul, Nov - public static bool pbIsFall() { return pbIsAutumn(); } - public static bool pbIsWinter() { return pbIsSeason(0,3); } // Apr, Aug, Dec + public static bool IsSpring() { return IsSeason(0,0); } // Jan, May, Sep + public static bool IsSummer() { return IsSeason(0,1); } // Feb, Jun, Oct + public static bool IsAutumn() { return IsSeason(0,2); } // Mar, Jul, Nov + public static bool IsFall() { return IsAutumn(); } + public static bool IsWinter() { return IsSeason(0,3); } // Apr, Aug, Dec - public static string pbGetSeasonName(int season) { + public static string GetSeasonName(int season) { return new string[] { Game._INTL("Spring"), Game._INTL("Summer"), Game._INTL("Autumn"), diff --git a/PokemonUnity.Application/Game/Game.Database.cs b/PokemonUnity.Application/Game/Game.Database.cs index 789cbaa90..1345bc190 100644 --- a/PokemonUnity.Application/Game/Game.Database.cs +++ b/PokemonUnity.Application/Game/Game.Database.cs @@ -75,7 +75,7 @@ public static void ResetSqlConnection(string databasePath) return; } - if (!databasePath.StartsWith("Data Source")) + if (!databasePath.StartsWith("Data Source", StringComparison.InvariantCultureIgnoreCase)) databasePath = "Data Source =" + databasePath; DatabasePath = databasePath; if (con.State == System.Data.ConnectionState.Open) @@ -3400,24 +3400,40 @@ from encounter_slots if (!e.ContainsKey((Method)int.Parse((string)reader["encounter_method_id"].ToString()))) e.Add((Method)int.Parse((string)reader["encounter_method_id"].ToString()), new List()); e[(Method)int.Parse((string)reader["encounter_method_id"].ToString())] - .Add(int.Parse((string)reader["id"].ToString()) - ); - Kernal.EncounterData.Add(int.Parse((string)reader["id"].ToString()), - new EncounterData( - id: int.Parse((string)reader["id"].ToString()) - ,mapId: int.Parse((string)reader["location_area_id"].ToString()) - ,method: (Method)int.Parse((string)reader["encounter_method_id"].ToString()) - ,slotId: int.Parse((string)reader["slot"].ToString()) - //,pokemon: (Pokemons)int.Parse((string)reader["pokemon_id"].ToString()) - ,pokemon: reader["pokemon_group"].ToString().Split(',').Select(x => (Pokemons)int.Parse(x)).ToArray() - ,conditions: reader["encounter_condition_value_group"].ToString().Split(',').Select(x => (ConditionValue)int.Parse(x)).ToArray() - ,generation: int.Parse((string)reader["generation_id"].ToString()) - ,minLevel: int.Parse((string)reader["min_level"].ToString()) - ,maxLevel: int.Parse((string)reader["max_level"].ToString()) - ,rarity: int.Parse((string)reader["rarity"].ToString()) - ,versions: reader["encounter_slot_version_group"].ToString().Split(',').Select(x => (Versions)int.Parse(x)).ToArray() - ) - ); + .Add(int.Parse((string)reader["id"].ToString())); + if (!Kernal.EncounterData.ContainsKey(int.Parse((string)reader["id"].ToString()))) + Kernal.EncounterData.Add(int.Parse((string)reader["id"].ToString()), + new EncounterData( + id: int.Parse((string)reader["id"].ToString()) + ,mapId: int.Parse((string)reader["location_area_id"].ToString()) + ,method: (Method)int.Parse((string)reader["encounter_method_id"].ToString()) + ,slotId: int.Parse((string)reader["slot"].ToString()) + //,pokemon: (Pokemons)int.Parse((string)reader["pokemon_id"].ToString()) + ,pokemon: reader["pokemon_group"].ToString().Split(',').Select(x => (Pokemons)int.Parse(x)).ToArray() + ,conditions: reader["encounter_condition_value_group"].ToString().Split(',').Select(x => (ConditionValue)int.Parse(x)).ToArray() + ,generation: int.Parse((string)reader["generation_id"].ToString()) + ,minLevel: int.Parse((string)reader["min_level"].ToString()) + ,maxLevel: int.Parse((string)reader["max_level"].ToString()) + ,rarity: int.Parse((string)reader["rarity"].ToString()) + ,versions: reader["encounter_slot_version_group"].ToString().Split(',').Select(x => (Versions)int.Parse(x)).ToArray() + ) + ); + //else + // Kernal.EncounterData[int.Parse((string)reader["id"].ToString())] = + // new EncounterData( + // id: int.Parse((string)reader["id"].ToString()) + // ,mapId: int.Parse((string)reader["location_area_id"].ToString()) + // ,method: (Method)int.Parse((string)reader["encounter_method_id"].ToString()) + // ,slotId: int.Parse((string)reader["slot"].ToString()) + // //,pokemon: (Pokemons)int.Parse((string)reader["pokemon_id"].ToString()) + // ,pokemon: reader["pokemon_group"].ToString().Split(',').Select(x => (Pokemons)int.Parse(x)).ToArray() + // ,conditions: reader["encounter_condition_value_group"].ToString().Split(',').Select(x => (ConditionValue)int.Parse(x)).ToArray() + // ,generation: int.Parse((string)reader["generation_id"].ToString()) + // ,minLevel: int.Parse((string)reader["min_level"].ToString()) + // ,maxLevel: int.Parse((string)reader["max_level"].ToString()) + // ,rarity: int.Parse((string)reader["rarity"].ToString()) + // ,versions: reader["encounter_slot_version_group"].ToString().Split(',').Select(x => (Versions)int.Parse(x)).ToArray() + // ); } //Step 5: Closing up reader.Close(); diff --git a/PokemonUnity.Application/Game/Game.Field.cs b/PokemonUnity.Application/Game/Game.Field.cs index ab5015312..469258efa 100644 --- a/PokemonUnity.Application/Game/Game.Field.cs +++ b/PokemonUnity.Application/Game/Game.Field.cs @@ -26,8 +26,8 @@ public partial class GameTemp { public partial class PokemonTemp : ITempMetadataField { - public Method? encounterType { get; set; } - public int[] evolutionLevels { get; set; } + public Method? encounterType { get; set; } + public int[] evolutionLevels { get; set; } public bool batterywarning { get; protected set; } @@ -73,12 +73,12 @@ public partial class Game : IGameField //event EventHandler IGameField.OnStartBattle { add { OnStartBattle += value; } remove { OnStartBattle -= value; } } //event Action IGameField.OnEndBattle { add { OnEndBattle += value; } remove { OnEndBattle -= value; } } - public IPokeBattle_Scene pbNewBattleScene() + public IPokeBattle_Scene NewBattleScene() { return Scenes.BattleScene.initialize(); //new PokeBattle_Scene(); } - public System.Collections.IEnumerator pbSceneStandby(Action block = null) { + public System.Collections.IEnumerator SceneStandby(Action block = null) { if (Scene != null && Scene is ISceneMap s0) { s0.disposeSpritesets(); } @@ -91,7 +91,7 @@ public System.Collections.IEnumerator pbSceneStandby(Action block = null) { } } - public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string trainername="", Action block = null) { + public virtual void BattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string trainername="", Action block = null) { bool handled=false; IAudioBGS playingBGS=null; IAudioBGM playingBGM=null; @@ -101,13 +101,13 @@ public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string s.bgm_pause(); s.bgs_pause(); } - if (this is IGameAudioPlay a0) a0.pbMEFade(0.25f); - pbWait(10); - if (this is IGameAudioPlay a1) a1.pbMEStop(); + if (this is IGameAudioPlay a0) a0.MEFade(0.25f); + Wait(10); + if (this is IGameAudioPlay a1) a1.MEStop(); if (bgm != null) { - if (this is IGameAudioPlay a2) a2.pbBGMPlay(bgm); + if (this is IGameAudioPlay a2) a2.BGMPlay(bgm); } else { - if (this is IGameAudioPlay a2) a2.pbBGMPlay(pbGetWildBattleBGM(0)); + if (this is IGameAudioPlay a2) a2.BGMPlay(GetWildBattleBGM(0)); } IViewport viewport=null; //new Viewport(0,0,Graphics.width,Graphics.height); //viewport.z=99999; @@ -119,13 +119,13 @@ public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string viewport.color.alpha+=30; Graphics?.update(); Input.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); x++; + if (this is IGameMessage m) m.UpdateSceneMap(); x++; } while (x < 6); int y = 0; do { //6.times do; viewport.color.alpha-=30; Graphics?.update(); Input.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); y++; + if (this is IGameMessage m) m.UpdateSceneMap(); y++; } while (y < 6); z++; } while (z < 3); if (GameTemp.background_bitmap != null) { @@ -133,7 +133,7 @@ public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string } GameTemp.background_bitmap=Graphics.snap_to_bitmap(); // Check for custom battle intro animations - handled=pbBattleAnimationOverride(viewport,trainerid,trainername); + handled=BattleAnimationOverride(viewport,trainerid,trainername); // Default battle intro animation if (!handled) { //if (Sprite.method_defined(:wave_amp) && Core.Rand.Next(15)==0) { @@ -151,7 +151,7 @@ public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string // sprite.wave_speed+=30; // do { // Graphics?.update(); - // } while (); //2.times + // } while (); //2.times // } // bitmap.Dispose(); // bm.Dispose(); @@ -168,12 +168,12 @@ public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string // sprite.opacity-=15; // do { // Graphics?.update(); - // } while ();//2.times + // } while ();//2.times // } // bitmap.Dispose(); // bm.Dispose(); // sprite.Dispose(); - //} else + //} else if (Core.Rand.Next(10)==0) { // Custom transition method string[] scroll=new string[] {"ScrollDown","ScrollLeft","ScrollRight","ScrollUp", "ScrollDownRight","ScrollDownLeft","ScrollUpRight","ScrollUpLeft" }; @@ -201,13 +201,13 @@ public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string int i = 0; do { //5.times do; Graphics?.update(); Input.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); + if (this is IGameMessage m) m.UpdateSceneMap(); } while (i < 5); } - pbPushFade(); + PushFade(); //if (block_given?) yield; if (block != null) block.Invoke(); - pbPopFade(); + PopFade(); if (GameSystem != null && Game.GameData.GameSystem is IGameSystem s1) { s1.bgm_resume(playingBGM); s1.bgs_resume(playingBGS); @@ -220,7 +220,7 @@ public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string viewport.color=null; //new Color(0,0,0,(17-j)*15); Graphics?.update(); Input.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); + if (this is IGameMessage m) m.UpdateSceneMap(); } viewport.Dispose(); } @@ -231,23 +231,23 @@ public virtual void pbBattleAnimation(IAudioBGM bgm=null,int trainerid=-1,string // screen. // When the custom animation has finished, the screen should have faded to black // somehow. - public virtual bool pbBattleAnimationOverride(IViewport viewport,int trainerid=-1,string trainername="") { + public virtual bool BattleAnimationOverride(IViewport viewport,int trainerid=-1,string trainername="") { // The following example runs a common event that ought to do a custom // animation if some condition is true: - // + // // if (GameMap != null && GameMap.map_id==20) { // If on map 20 - // pbCommonEvent(20); + // CommonEvent(20); // return true; // Note that the battle animation is done // } - // + // // #### VS. animation, by Luka S.J. ##### // #### Tweaked by Maruno ##### /*if (trainerid>=0) { - string tbargraphic=string.Format("Graphics/Transitions/vsBar%s",trainerid.ToString()); //getConstantName(PBTrainers,trainerid) rescue null; - if (pbResolveBitmap(tbargraphic) == null) tbargraphic=string.Format("Graphics/Transitions/vsBar%d",trainerid); - string tgraphic=string.Format("Graphics/Transitions/vsTrainer%s",trainerid.ToString()); //getConstantName(PBTrainers,trainerid) rescue null; - if (pbResolveBitmap(tgraphic) == null) tgraphic=string.Format("Graphics/Transitions/vsTrainer%d",trainerid); - if (pbResolveBitmap(tbargraphic) != null && pbResolveBitmap(tgraphic) != null) { + string tbargraphic=string.Format("Graphics/Transitions/vsBar%s",trainerid.ToString()); //getConstantName(Trainers,trainerid) rescue null; + if (ResolveBitmap(tbargraphic) == null) tbargraphic=string.Format("Graphics/Transitions/vsBar%d",trainerid); + string tgraphic=string.Format("Graphics/Transitions/vsTrainer%s",trainerid.ToString()); //getConstantName(Trainers,trainerid) rescue null; + if (ResolveBitmap(tgraphic) == null) tgraphic=string.Format("Graphics/Transitions/vsTrainer%d",trainerid); + if (ResolveBitmap(tbargraphic) != null && ResolveBitmap(tgraphic) != null) { int outfit=Trainer != null ? Trainer.outfit??0 : 0; // Set up IViewport viewplayer=new Viewport(0,Graphics.height/3,Graphics.width/2,128); @@ -265,15 +265,15 @@ public virtual bool pbBattleAnimationOverride(IViewport viewport,int trainerid=- fade.opacity=100; ISprite overlay=new Sprite(viewport); overlay.bitmap=new Bitmap(Graphics.width,Graphics.height); - pbSetSystemFont(overlay.bitmap); + SetSystemFont(overlay.bitmap); ISprite bar1=new Sprite(viewplayer); - string pbargraphic=string.Format("Graphics/Transitions/vsBar%s_%d",Trainer.trainertype,outfit); //getConstantName(PBTrainers,Trainer.trainertype) rescue null; - if (pbResolveBitmap(pbargraphic) == null) pbargraphic=string.Format("Graphics/Transitions/vsBar%d_%d",Trainer.trainertype,outfit); - if (pbResolveBitmap(pbargraphic) == null) { - pbargraphic=string.Format("Graphics/Transitions/vsBar%s",Trainer.trainertype); //getConstantName(PBTrainers,Trainer.trainertype) rescue null; + string argraphic=string.Format("Graphics/Transitions/vsBar%s_%d",Trainer.trainertype,outfit); //getConstantName(Trainers,Trainer.trainertype) rescue null; + if (ResolveBitmap(argraphic) == null) argraphic=string.Format("Graphics/Transitions/vsBar%d_%d",Trainer.trainertype,outfit); + if (ResolveBitmap(argraphic) == null) { + argraphic=string.Format("Graphics/Transitions/vsBar%s",Trainer.trainertype); //getConstantName(Trainers,Trainer.trainertype) rescue null; } - if (pbResolveBitmap(pbargraphic) == null) pbargraphic=string.Format("Graphics/Transitions/vsBar%d",Trainer.trainertype); - bar1.bitmap=BitmapCache.load_bitmap(pbargraphic); + if (ResolveBitmap(argraphic) == null) argraphic=string.Format("Graphics/Transitions/vsBar%d",Trainer.trainertype); + bar1.bitmap=BitmapCache.load_bitmap(argraphic); bar1.x=-xoffset; ISprite bar2=new Sprite(viewopp); bar2.bitmap=BitmapCache.load_bitmap(tbargraphic); @@ -292,22 +292,22 @@ public virtual bool pbBattleAnimationOverride(IViewport viewport,int trainerid=- int i = 0; do { //10.times do; bar1.x+=xoffset/10; bar2.x-=xoffset/10; - pbWait(1); i++; + Wait(1); i++; } while (i < 10); - pbSEPlay("Flash2"); - pbSEPlay("Sword2"); + SEPlay("Flash2"); + SEPlay("Sword2"); flash.opacity=255; bar1.Dispose(); bar2.Dispose(); bar1=new AnimatedPlane(viewplayer); - bar1.bitmap=BitmapCache.load_bitmap(pbargraphic); + bar1.bitmap=BitmapCache.load_bitmap(argraphic); ISprite player=new Sprite(viewplayer); - string pgraphic=string.Format("Graphics/Transitions/vsTrainer%s_%d",getConstantName(PBTrainers,Game.GameData.Trainer.trainertype),outfit) rescue null; - if (pbResolveBitmap(pgraphic) == null) pgraphic=string.Format("Graphics/Transitions/vsTrainer%d_%d",Game.GameData.Trainer.trainertype,outfit); - if (pbResolveBitmap(pgraphic) == null) { - pgraphic=string.Format("Graphics/Transitions/vsTrainer%s",getConstantName(PBTrainers,Game.GameData.Trainer.trainertype)) rescue null; + string pgraphic=string.Format("Graphics/Transitions/vsTrainer%s_%d",getConstantName(Trainers,Game.GameData.Trainer.trainertype),outfit) rescue null; + if (ResolveBitmap(pgraphic) == null) pgraphic=string.Format("Graphics/Transitions/vsTrainer%d_%d",Game.GameData.Trainer.trainertype,outfit); + if (ResolveBitmap(pgraphic) == null) { + pgraphic=string.Format("Graphics/Transitions/vsTrainer%s",getConstantName(Trainers,Game.GameData.Trainer.trainertype)) rescue null; } - if (pbResolveBitmap(pgraphic) == null) pgraphic=string.Format("Graphics/Transitions/vsTrainer%d",Game.GameData.Trainer.trainertype); + if (ResolveBitmap(pgraphic) == null) pgraphic=string.Format("Graphics/Transitions/vsTrainer%d",Game.GameData.Trainer.trainertype); player.bitmap=BitmapCache.load_bitmap(pgraphic); player.x=-xoffset; bar2=new AnimatedPlane(viewopp); @@ -320,26 +320,26 @@ public virtual bool pbBattleAnimationOverride(IViewport viewport,int trainerid=- if (flash.opacity>0) flash.opacity-=51; bar1.ox-=16; bar2.ox+=16; - pbWait(1); i++; + Wait(1); i++; } while (i < 25); i = 0; do { //11.times do; bar1.ox-=16; bar2.ox+=16; player.x+=xoffset/10; trainer.x-=xoffset/10; - pbWait(1); i++; + Wait(1); i++; } while (i < 11); i = 0; do { //2.times do; bar1.ox-=16; bar2.ox+=16; player.x-=xoffset/20; trainer.x+=xoffset/20; - pbWait(1); i++; + Wait(1); i++; } while (i < 2); i = 0; do { //10.times do; bar1.ox-=16; bar2.ox+=16; - pbWait(1); i++; + Wait(1); i++; } while (i < 10); int val=2; flash.opacity=255; @@ -351,8 +351,8 @@ public virtual bool pbBattleAnimationOverride(IViewport viewport,int trainerid=- new { _INTL("{1}",trainername),(Graphics.width/4)+(Graphics.width/2),(Graphics.height/1.5)+10,2, new Color(248,248,248),new Color(12*6,12*6,12*6) }; }; - pbDrawTextPositions(overlay.bitmap,textpos); - pbSEPlay("Sword2"); + DrawTextPositions(overlay.bitmap,textpos); + SEPlay("Sword2"); i = 0; do { //70.times do; bar1.ox-=16; bar2.ox+=16; @@ -361,21 +361,21 @@ public virtual bool pbBattleAnimationOverride(IViewport viewport,int trainerid=- vs.y-=val; if (vs.x<=(Graphics.width/2)-2) val=2; if (vs.x>=(Graphics.width/2)+2) val=-2; - pbWait(1); i++; + Wait(1); i++; } while (i < 70); i = 0; do { //30.times do; bar1.ox-=16; bar2.ox+=16; vs.zoom_x+=0.2; vs.zoom_y+=0.2; - pbWait(1); i++; + Wait(1); i++; } while (i < 30); flash.tone=new Tone(-255,-255,-255); i = 0; do { //10.times do; bar1.ox-=16; bar2.ox+=16; flash.opacity+=25.5; - pbWait(1); i++; + Wait(1); i++; } while (i < 10); // } player.Dispose(); @@ -396,7 +396,7 @@ public virtual bool pbBattleAnimationOverride(IViewport viewport,int trainerid=- return false; } - public void pbPrepareBattle(IBattle battle) { + public void PrepareBattle(IBattle battle) { switch (GameScreen.weather_type) { case FieldWeathers.Rain: case FieldWeathers.HeavyRain: case FieldWeathers.Thunderstorm: battle.weather=Combat.Weather.RAINDANCE; @@ -417,16 +417,16 @@ public void pbPrepareBattle(IBattle battle) { } battle.shiftStyle=PokemonSystem.battlestyle==0; battle.battlescene=PokemonSystem.battlescene==0; - battle.environment=pbGetEnvironment(); + battle.environment=GetEnvironment(); } - public Environments pbGetEnvironment() { + public Environments GetEnvironment() { if (GameMap == null) return Environments.None; if (Global != null && Global.diving) { return Environments.Underwater; } else if (PokemonEncounters != null && PokemonEncounters.isCave()) { return Environments.Cave; - } else if (pbGetMetadata(GameMap.map_id,MapMetadatas.MetadataOutdoor) == null) { + } else if (GetMetadata(GameMap.map_id,MapMetadatas.MetadataOutdoor) == null) { return Environments.None; } else { switch (GamePlayer.terrain_tag) { @@ -453,8 +453,8 @@ public Environments pbGetEnvironment() { return Environments.None; } - public IPokemon pbGenerateWildPokemon(Pokemons species,int level,bool isroamer=false) { - Pokemon genwildpoke=new Monster.Pokemon(species,level: (byte)level);//,Trainer + public IPokemon GenerateWildPokemon(Pokemons species,int level,bool isroamer=false) { + IPokemon genwildpoke=new Monster.Pokemon(species,level: (byte)level);//,Trainer //Items items=genwildpoke.wildHoldItems; Items[] items=Kernal.PokemonItemsData[species] //ToDo: Return Items[3]; .OrderByDescending(x => x.Rarirty) @@ -471,11 +471,11 @@ public IPokemon pbGenerateWildPokemon(Pokemons species,int level,bool isroamer=f } else if (itemrnd<(chances[0]+chances[1]+chances[2])) { genwildpoke.setItem(items[2]); } - if (Bag.pbQuantity(Items.SHINY_CHARM)>0) { //hasConst(PBItems,:SHINYCHARM) && + if (Bag.Quantity(Items.SHINY_CHARM)>0) { //hasConst(Items,:SHINYCHARM) && for (int i = 0; i < 2; i++) { // 3 times as likely if (genwildpoke.IsShiny) break; //genwildpoke.PersonalId=Core.Rand.Next(65536)|(Core.Rand.Next(65536)<<16); - genwildpoke.shuffleShiny(); + (genwildpoke as Pokemon).shuffleShiny(); } } if (Core.Rand.Next(65536) i) //moves[i] != null) + pkmn.moves[i] = new Attack.Move(moves[i]); + else //set to none... + pkmn.moves[i] = new Attack.Move(); + } + } + + // Give ability + // NOTE that the ability should be 0, 1 or 2. + if (ability != null && (new List() { 0, 1, 2 }).Contains(ability.Value)) pkmn.setAbility(ability.Value); + + // Give nature + if (nature != null) pkmn.setNature(nature.Value); + + // Give gender + // 0 if male, 1 if female. + if (gender != null) //pkmn.setGender(gender.Value ? 1 : 0); + if (gender.Value) pkmn.makeMale(); else pkmn.makeFemale(); + + // Give item + if (item != null) pkmn.setItem(item.Value); + + // Shiny or not. + if (shiny != null) pkmn.makeShiny(); + + // Start the battle. + // This is copied from WildBattle. + + // Potentially call a different WildBattle-type method instead (for roaming + // Pokémon, Safari battles, Bug Contest battles) + bool?[] handled= new bool?[]{ null }; + //Events.onWildBattleOverride.trigger(null,species,level,handled); + PokemonEssentials.Interface.EventArg.IOnWildBattleOverrideEventArgs e1 = new PokemonUnity.EventArg.OnWildBattleOverrideEventArgs() + { + Species = species, + Level = level + //,Result = handled + }; + Events.OnWildBattleOverrideTrigger(this,e1); + //Events.OnWildBattleOverrideTrigger(this,species,level,handled); + if (handled[0]!=null) { + return handled[0].Value; + //return handled[0].Value ? Combat.BattleResults.WON : Combat.BattleResults.ABORTED; + } + // Set some battle rules + //if (outcomeVar != 1) battle.rules["outcomeVar"] = outcomeVar; //setBattleRule("outcomeVar", outcomeVar); + //if (!canRun) setBattleRule("cannotRun"); + //if (canLose) setBattleRule("canLose"); + // Perform the battle + Combat.BattleResults decision = WildBattleCore(pkmn,outcomeVar,canRun,canLose); + // Used by the Poké Radar to update/break the chain + //Events.onWildBattleEnd.trigger(null,species,level,decision); + PokemonEssentials.Interface.EventArg.IOnWildBattleEndEventArgs e3 = new PokemonUnity.EventArg.OnWildBattleEndEventArgs() + { + Species = species, + Level = level + //,Result = decision + }; + //Events.OnWildBattleEnd?.Invoke(null,e3); + Events.OnWildBattleEndTrigger(this,species, level, decision); + // Return false if the player lost or drew the battle, and true if any other result + return (decision != Combat.BattleResults.LOST && decision != Combat.BattleResults.DRAW); + } + + public Combat.BattleResults WildBattleCore(IPokemon pkmn,int? variable=null,bool canescape=true,bool canlose=false) { if ((Input.press(Input.CTRL) && Core.DEBUG) || Trainer.pokemonCount==0) { if (Trainer.pokemonCount>0 && this is IGameMessage m) { - m.pbMessage(Game._INTL("SKIPPING BATTLE...")); + m.Message(Game._INTL("SKIPPING BATTLE...")); + } + Set(variable,1); + Global.nextBattleBGM=null; + Global.nextBattleME=null; + Global.nextBattleBack=null; + return Combat.BattleResults.WON; //true; + } + //if (species is String || species is Symbol) { + // species=getID(Species,species); + //} + bool?[] handled= new bool?[]{ null }; + //Events.onWildBattleOverride.trigger(null,species,level,handled); + PokemonEssentials.Interface.EventArg.IOnWildBattleOverrideEventArgs e1 = new PokemonUnity.EventArg.OnWildBattleOverrideEventArgs() + { + Species = pkmn.Species, + Level = pkmn.Level + //,Result = handled + }; + //Events.OnWildBattleOverride?.Invoke(null, e1); + Events.OnWildBattleOverrideTrigger(null, e1); + //handled[0] = eventArgs.Result; + if (handled[0]!=null) { + //return handled[0].Value; + return handled[0].Value ? Combat.BattleResults.WON : Combat.BattleResults.ABORTED; + } + List currentlevels=new List(); + foreach (var i in Trainer.party) { + currentlevels.Add(i.Level); + } + //IPokemon genwildpoke=GenerateWildPokemon(species,level); + //Events.onStartBattle.trigger(null,genwildpoke); + PokemonEssentials.Interface.EventArg.IOnWildPokemonCreateEventArgs eventArgs = new PokemonUnity.EventArg.OnWildPokemonCreateEventArgs() + { + Pokemon = pkmn//genwildpoke + }; + //Events.OnStartBattle?.Invoke(this, eventArgs); + Events.OnStartBattleTrigger(this, pkmn); + IPokeBattle_Scene scene=NewBattleScene(); + IBattle battle=new Combat.Battle(scene,Trainer.party,new IPokemon[] { pkmn },new ITrainer[] { Trainer },null); + battle.internalbattle=true; + battle.cantescape=!canescape; + PrepareBattle(battle); + Combat.BattleResults decision=0; + BattleAnimation(GetWildBattleBGM(pkmn.Species), block: () => { + SceneStandby(() => { + decision=battle.StartBattle(canlose); + }); + foreach (var i in Trainer.party) { if (i is IPokemonMegaEvolution f) f.makeUnmega(); } //rescue null + if (Global.partner != null) { + HealAll(); + foreach (IPokemon i in Global.partner.party) { //partner[3] + i.Heal(); + if (i is IPokemonMegaEvolution f) f.makeUnmega(); //rescue null + } + } + if (decision==Combat.BattleResults.LOST || decision==Combat.BattleResults.DRAW) { // If loss or draw + if (canlose) { + foreach (var i in Trainer.party) { i.Heal(); } + for (int i = 0; i < 10; i++) { + Graphics?.update(); + } +// } else { +// if (Game.GameData.GameSystem != null && Game.GameData.GameSystem is IGameSystem s) { +// s.bgm_pause(); +// s.bgs_pause(); +// } +// Game.GameData.StartOver(); + } + } + //Events.onEndBattle.trigger(null,decision,canlose); + PokemonEssentials.Interface.EventArg.IOnEndBattleEventArgs e2 = new PokemonUnity.EventArg.OnEndBattleEventArgs() + { + Decision = decision, + CanLose = canlose + }; + //Events.OnBattleEnd?.Invoke(null,e2); + Events.OnEndBattleTrigger(this, decision, canlose); + }); + Input.update(); + Set(variable,decision); + //Events.onWildBattleEnd.trigger(null,species,level,decision); + PokemonEssentials.Interface.EventArg.IOnWildBattleEndEventArgs e3 = new PokemonUnity.EventArg.OnWildBattleEndEventArgs() + { + Species = pkmn.Species, + Level = pkmn.Level + //,Result = decision + }; + //Events.OnWildBattleEnd?.Invoke(null,e3); + Events.OnWildBattleEndTrigger(this, pkmn.Species, pkmn.Level, decision); + return decision; //!=Combat.BattleResults.LOST; + } + + public Combat.BattleResults WildBattle(Pokemons species,int level,int? variable=null,bool canescape=true,bool canlose=false) { + IPokemon genwildpoke=GenerateWildPokemon(species,level); + return WildBattleCore(genwildpoke, variable, canescape, canlose); + /*if ((Input.press(Input.CTRL) && Core.DEBUG) || Trainer.pokemonCount==0) { + if (Trainer.pokemonCount>0 && this is IGameMessage m) { + m.Message(Game._INTL("SKIPPING BATTLE...")); } - pbSet(variable,1); + Set(variable,1); Global.nextBattleBGM=null; Global.nextBattleME=null; Global.nextBattleBack=null; return Combat.BattleResults.WON; //true; } //if (species is String || species is Symbol) { - // species=getID(PBSpecies,species); + // species=getID(Species,species); //} bool?[] handled= new bool?[]{ null }; //Events.onWildBattleOverride.trigger(null,species,level,handled); @@ -536,7 +712,7 @@ public Combat.BattleResults pbWildBattle(Pokemons species,int level,int? variabl foreach (var i in Trainer.party) { currentlevels.Add(i.Level); } - IPokemon genwildpoke=pbGenerateWildPokemon(species,level); + IPokemon genwildpoke=GenerateWildPokemon(species,level); //Events.onStartBattle.trigger(null,genwildpoke); //PokemonEssentials.Interface.EventArg.IOnWildPokemonCreateEventArgs eventArgs = new PokemonUnity.EventArg.OnWildPokemonCreateEventArgs() //{ @@ -544,19 +720,19 @@ public Combat.BattleResults pbWildBattle(Pokemons species,int level,int? variabl //}; //Events.OnStartBattle?.Invoke(null, EventArgs.Empty); Events.OnStartBattleTrigger(this); - IPokeBattle_Scene scene=pbNewBattleScene(); + IPokeBattle_Scene scene=NewBattleScene(); IBattle battle=new Combat.Battle(scene,Trainer.party,new IPokemon[] { genwildpoke },new ITrainer[] { Trainer },null); battle.internalbattle=true; battle.cantescape=!canescape; - pbPrepareBattle(battle); + PrepareBattle(battle); Combat.BattleResults decision=0; - pbBattleAnimation(pbGetWildBattleBGM(species), block: () => { - pbSceneStandby(() => { - decision=battle.pbStartBattle(canlose); + BattleAnimation(GetWildBattleBGM(species), block: () => { + SceneStandby(() => { + decision=battle.StartBattle(canlose); }); foreach (var i in Trainer.party) { if (i is IPokemonMegaEvolution f) f.makeUnmega(); } //rescue null if (Global.partner != null) { - pbHealAll(); + HealAll(); foreach (IPokemon i in Global.partner.party) { //partner[3] i.Heal(); if (i is IPokemonMegaEvolution f) f.makeUnmega(); //rescue null @@ -569,9 +745,11 @@ public Combat.BattleResults pbWildBattle(Pokemons species,int level,int? variabl Graphics?.update(); } // } else { -// GameSystem.bgm_unpause(); -// GameSystem.bgs_unpause(); -// Game.pbStartOver(); +// if (Game.GameData.GameSystem != null && Game.GameData.GameSystem is IGameSystem s) { +// s.bgm_pause(); +// s.bgs_pause(); +// } +// Game.GameData.StartOver(); } } //Events.onEndBattle.trigger(null,decision,canlose); @@ -584,7 +762,7 @@ public Combat.BattleResults pbWildBattle(Pokemons species,int level,int? variabl Events.OnEndBattleTrigger(this, e2); }); Input.update(); - pbSet(variable,decision); + Set(variable,decision); //Events.onWildBattleEnd.trigger(null,species,level,decision); PokemonEssentials.Interface.EventArg.IOnWildBattleEndEventArgs e3 = new PokemonUnity.EventArg.OnWildBattleEndEventArgs() { @@ -593,36 +771,40 @@ public Combat.BattleResults pbWildBattle(Pokemons species,int level,int? variabl //,Result = decision }; Events.OnWildBattleEnd?.Invoke(null,e3); - return decision; //!=Combat.BattleResults.LOST; + return decision; //!=Combat.BattleResults.LOST;*/ } - public Combat.BattleResults pbDoubleWildBattle(Pokemons species1,int level1,Pokemons species2,int level2,int? variable=null,bool canescape=true,bool canlose=false) { + public Combat.BattleResults DoubleWildBattle(Pokemons species1,int level1,Pokemons species2,int level2,int? variable=null,bool canescape=true,bool canlose=false) { if ((Input.press(Input.CTRL) && Core.DEBUG) || Trainer.pokemonCount==0) { if (Trainer.pokemonCount>0 && this is IGameMessage m) { - m.pbMessage(Game._INTL("SKIPPING BATTLE...")); + m.Message(Game._INTL("SKIPPING BATTLE...")); } - pbSet(variable,1); + Set(variable,1); Global.nextBattleBGM=null; Global.nextBattleME=null; Global.nextBattleBack=null; return Combat.BattleResults.WON; //true; } //if (species1 is String || species1 is Symbol) { - // species1=getID(PBSpecies,species1); + // species1=getID(Species,species1); //} //if (species2 is String || species2 is Symbol) { - // species2=getID(PBSpecies,species2); + // species2=getID(Species,species2); //} List currentlevels=new List(); foreach (var i in Trainer.party) { currentlevels.Add(i.Level); } - IPokemon genwildpoke=pbGenerateWildPokemon(species1,level1); - IPokemon genwildpoke2=pbGenerateWildPokemon(species2,level2); + IPokemon genwildpoke=GenerateWildPokemon(species1,level1); + IPokemon genwildpoke2=GenerateWildPokemon(species2,level2); + PokemonEssentials.Interface.EventArg.IOnWildPokemonCreateEventArgs eventArgs = new PokemonUnity.EventArg.OnWildPokemonCreateEventArgs() + { + Pokemon = genwildpoke + }; //Events.onStartBattle.trigger(null,genwildpoke); - //Events.OnStartBattle?.Invoke(null, EventArgs.Empty); - Events.OnStartBattleTrigger(this); - IPokeBattle_Scene scene=pbNewBattleScene(); + //Events.OnStartBattle?.Invoke(this, eventArgs); + Events.OnStartBattleTrigger(this, genwildpoke); + IPokeBattle_Scene scene=NewBattleScene(); Combat.Battle battle; if (Global.partner != null) { ITrainer othertrainer=new Trainer( @@ -640,22 +822,22 @@ public Combat.BattleResults pbDoubleWildBattle(Pokemons species1,int level1,Poke new ITrainer[] { Trainer,othertrainer },null); battle.fullparty1=true; } else { - battle=new Combat.Battle(scene,Trainer.party,new IPokemon[] { genwildpoke, genwildpoke2 }, - new ITrainer[] { Trainer },null); - battle.fullparty1=false; + battle=new Combat.Battle(scene,Trainer.party,new IPokemon[] { genwildpoke, genwildpoke2 }, + new ITrainer[] { Trainer },null); + battle.fullparty1=false; } battle.internalbattle=true; - battle.doublebattle=battle.pbDoubleBattleAllowed(); + battle.doublebattle=battle.DoubleBattleAllowed(); battle.cantescape=!canescape; - pbPrepareBattle(battle); + PrepareBattle(battle); Combat.BattleResults decision=0; - pbBattleAnimation(pbGetWildBattleBGM(species1), block: () => { - pbSceneStandby(() => { - decision=battle.pbStartBattle(canlose); + BattleAnimation(GetWildBattleBGM(species1), block: () => { + SceneStandby(() => { + decision=battle.StartBattle(canlose); }); foreach (var i in Trainer.party) { if (i is IPokemonMegaEvolution f) f.makeUnmega(); } //rescue null if (Global.partner != null) { - pbHealAll(); + HealAll(); foreach (Monster.Pokemon i in Global.partner.party) {//[3] i.Heal(); i.makeUnmega(); //rescue null @@ -668,9 +850,11 @@ public Combat.BattleResults pbDoubleWildBattle(Pokemons species1,int level1,Poke Graphics?.update(); } // } else { -// GameSystem.bgm_unpause(); -// GameSystem.bgs_unpause(); -// Game.pbStartOver(); +// if (Game.GameData.GameSystem != null && Game.GameData.GameSystem is IGameSystem s) { +// s.bgm_pause(); +// s.bgs_pause(); +// } +// Game.GameData.StartOver(); } } //Events.onEndBattle.trigger(null,decision,canlose); @@ -680,47 +864,47 @@ public Combat.BattleResults pbDoubleWildBattle(Pokemons species1,int level1,Poke CanLose = canlose }; //Events.OnBattleEnd?.Invoke(null,e2); - Events.OnEndBattleTrigger(this,e2); + Events.OnEndBattleTrigger(this,decision,canlose); }); Input.update(); - pbSet(variable,decision); + Set(variable,decision); return decision; //!=Combat.BattleResults.LOST && decision!=Combat.BattleResults.DRAW; } - public void pbCheckAllFainted() { - if (pbAllFainted() && this is IGameMessage m) { - m.pbMessage(Game._INTL("{1} has no usable Pokémon!\\1",Trainer.name)); - m.pbMessage(Game._INTL("{1} blacked out!",Trainer.name)); - if (this is IGameAudioPlay a) a.pbBGMFade(1.0f); - if (this is IGameAudioPlay a1) a1.pbBGSFade(1.0f); - pbFadeOutIn(99999, block: () => { - pbStartOver(); + public void CheckAllFainted() { + if (AllFainted() && this is IGameMessage m) { + m.Message(Game._INTL("{1} has no usable Pokémon!\\1",Trainer.name)); + m.Message(Game._INTL("{1} blacked out!",Trainer.name)); + if (this is IGameAudioPlay a) a.BGMFade(1.0f); + if (this is IGameAudioPlay a1) a1.BGSFade(1.0f); + FadeOutIn(99999, block: () => { + StartOver(); }); } } - public void pbEvolutionCheck(int[] currentlevels) { + public void EvolutionCheck(int[] currentlevels) { // Check conditions for evolution for (int i = 0; i < currentlevels.Length; i++) { IPokemon pokemon=Trainer.party[i]; if (pokemon.IsNotNullOrNone() && (currentlevels[i] == null || pokemon.Level!=currentlevels[i])) { - Pokemons newspecies=EvolutionHelper.pbCheckEvolution(pokemon)[0]; + Pokemons newspecies=EvolutionHelper.CheckEvolution(pokemon)[0]; if (newspecies>0) { // Start evolution scene IPokemonEvolutionScene evo=Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(); + evo.EndScreen(); } } } } - public Items[] pbDynamicItemList(params Items[] args) { + public Items[] DynamicItemList(params Items[] args) { List ret=new List(); for (int i = 0; i < args.Length; i++) { - //if (hasConst(PBItems,args[i])) { - // ret.Add(getConst(PBItems,args[i].to_sym)); + //if (hasConst(Items,args[i])) { + // ret.Add(getConst(Items,args[i].to_sym)); ret.Add(args[i]); //} } @@ -731,7 +915,7 @@ public Items[] pbDynamicItemList(params Items[] args) { /// Runs the Pickup event after a battle if a Pokemon has the ability Pickup. /// /// - public void pbPickup(IPokemon pokemon) { + public void Pickup(IPokemon pokemon) { if (pokemon.Ability != Abilities.PICKUP || pokemon.isEgg) return; if (pokemon.Item!=0) return; if (Core.Rand.Next(10)!=0) return; @@ -791,21 +975,21 @@ public void pbPickup(IPokemon pokemon) { } } - public bool pbEncounter(Method enctype) { + public bool Encounter(Method enctype) { if (Global.partner != null) { - IEncounter encounter1=PokemonEncounters.pbEncounteredPokemon(enctype); + IEncounter encounter1=PokemonEncounters.EncounteredPokemon(enctype); if (!encounter1.IsNotNullOrNone()) return false; - IEncounter encounter2=PokemonEncounters.pbEncounteredPokemon(enctype); + IEncounter encounter2=PokemonEncounters.EncounteredPokemon(enctype); if (!encounter2.IsNotNullOrNone()) return false; if (PokemonTemp is ITempMetadataField f0) f0.encounterType=enctype; - pbDoubleWildBattle(encounter1.Pokemon,encounter1.Level,encounter2.Pokemon,encounter2.Level); //[0]|[1] + DoubleWildBattle(encounter1.Pokemon,encounter1.Level,encounter2.Pokemon,encounter2.Level); //[0]|[1] if (PokemonTemp is ITempMetadataField f1) f1.encounterType=null; return true; } else { - IEncounter encounter=PokemonEncounters.pbEncounteredPokemon(enctype); + IEncounter encounter=PokemonEncounters.EncounteredPokemon(enctype); if (!encounter.IsNotNullOrNone()) return false; if (PokemonTemp is ITempMetadataField f0) f0.encounterType=enctype; - pbWildBattle(encounter.Pokemon,encounter.Level); //[0]|[1] + WildBattle(encounter.Pokemon,encounter.Level); //[0]|[1] if (PokemonTemp is ITempMetadataField f1) f1.encounterType=null; return true; } @@ -813,7 +997,7 @@ public bool pbEncounter(Method enctype) { //Events.onStartBattle+=delegate(object sender, EventArgs e) { //Events.OnStartBattle+=delegate(object sender, PokemonEssentials.Interface.EventArg.IOnStartBattleEventArgs e) { - protected virtual void Events_OnStartBattle(object sender, EventArgs e) { + protected virtual void Events_OnStartBattle(object sender, PokemonEssentials.Interface.EventArg.IOnWildPokemonCreateEventArgs e) { if (PokemonTemp is ITempMetadataField m) { //PokemonTemp.evolutionLevels = new int[6]; @@ -825,7 +1009,7 @@ protected virtual void Events_OnStartBattle(object sender, EventArgs e) { } } } - + //Events.onEndBattle+=delegate(object sender, EventArgs e) { //Events.OnEndBattle+=delegate(object sender, PokemonEssentials.Interface.EventArg.IOnEndBattleEventArgs e) { protected virtual void Events_OnEndBattle(object sender, PokemonEssentials.Interface.EventArg.IOnEndBattleEventArgs e) { @@ -833,17 +1017,17 @@ protected virtual void Events_OnEndBattle(object sender, PokemonEssentials.Inter bool canlose = e.CanLose; //[1]; if (Core.USENEWBATTLEMECHANICS || (decision!=2 && decision!=5)) { // not a loss or a draw if (PokemonTemp is ITempMetadataField m && m.evolutionLevels != null) { - //pbEvolutionCheck(PokemonTemp.evolutionLevels); + //EvolutionCheck(PokemonTemp.evolutionLevels); //PokemonTemp.evolutionLevels=null; - pbEvolutionCheck(m.evolutionLevels); + EvolutionCheck(m.evolutionLevels); m.evolutionLevels=null; } } if (decision==1) { foreach (IPokemon pkmn in Trainer.party) { - pbPickup(pkmn); + Pickup(pkmn); if (pkmn.Ability == Abilities.HONEY_GATHER && !pkmn.isEgg && !pkmn.hasItem()) { - //if (hasConst(PBItems,:HONEY)) { + //if (hasConst(Items,:HONEY)) { int chance = 5 + (int)Math.Floor((pkmn.Level-1)/10d)*5; if (Core.Rand.Next(100)0 && !i.isEgg && i.Ability != Abilities.IMMUNITY) { if (!flashed) { @@ -965,27 +1150,27 @@ protected virtual void Events_OnStepTakenTransferPossible(object sender, Pokemon } if (i.HP==1 && !Core.POISONFAINTINFIELD && this is IGameMessage m0) { i.Status=0; - m0.pbMessage(Game._INTL("{1} survived the poisoning.\\nThe poison faded away!\\1",i.Name)); + m0.Message(Game._INTL("{1} survived the poisoning.\\nThe poison faded away!\\1",i.Name)); continue; } i.HP-=1; if (i.HP==1 && !Core.POISONFAINTINFIELD && this is IGameMessage m1) { i.Status=0; - m1.pbMessage(Game._INTL("{1} survived the poisoning.\\nThe poison faded away!\\1",i.Name)); + m1.Message(Game._INTL("{1} survived the poisoning.\\nThe poison faded away!\\1",i.Name)); } if (i.HP==0 && this is IGameMessage m2) { //i.ChangeHappiness("faint"); i.ChangeHappiness(HappinessMethods.FAINT); i.Status=0; - m2.pbMessage(Game._INTL("{1} fainted...\\1",i.Name)); + m2.Message(Game._INTL("{1} fainted...\\1",i.Name)); } - if (pbAllFainted()) handled[0]=true; - pbCheckAllFainted(); + if (AllFainted()) handled[0]=true; + CheckAllFainted(); } } } } - + //Events.onStepTaken+=proc{ protected virtual void Events_OnStepTaken(object sender, EventArgs e) { //if (Global.happinessSteps == null) Global.happinessSteps=0; @@ -993,15 +1178,15 @@ protected virtual void Events_OnStepTaken(object sender, EventArgs e) { if (Global.happinessSteps==128) { foreach (var pkmn in Trainer.party) { if (pkmn.HP>0 && !pkmn.isEgg) { - if (Core.Rand.Next(2)==0) + if (Core.Rand.Next(2)==0) //pkmn.changeHappiness("walking"); - pkmn.changeHappiness(HappinessMethods.WALKING); + pkmn.ChangeHappiness(HappinessMethods.WALKING); } } Global.happinessSteps=0; } } - + //Events.onStepTakenFieldMovement+=delegate(object sender, EventArgs e) { protected virtual void Events_OnStepTakenFieldMovement(object sender, PokemonEssentials.Interface.EventArg.IOnStepTakenFieldMovementEventArgs e) { //IGamePlayer @event=e[0]; // Get the event affected by field movement @@ -1009,7 +1194,7 @@ protected virtual void Events_OnStepTakenFieldMovement(object sender, PokemonEss ITilePosition thistile=MapFactory.getRealTilePos(@event.map.map_id,@event.x,@event.y); IGameMap map=MapFactory.getMap(thistile.MapId); //thistile[0] int sootlevel=-1; - foreach (int i in new int[] { 2, 1, 0 }) { + foreach (int i in new int[] { 2, 1, 0 }) { //elevation/layer //int? tile_id = map.data[thistile[1],thistile[2],i]; int? tile_id = map.data[(int)thistile.X,(int)thistile.Y,i]; if (tile_id == null) continue; @@ -1019,14 +1204,14 @@ protected virtual void Events_OnStepTakenFieldMovement(object sender, PokemonEss break; } } - if (sootlevel>=0) { //&& hasConst(PBItems,:SOOTSACK) + if (sootlevel>=0) { //&& hasConst(Items,:SOOTSACK) //if (Global.sootsack == null) Global.sootsack=0; //map.data[thistile[1],thistile[2],sootlevel]=0 - //map.data[(int)thistile.X,(int)thistile.Y,sootlevel]=0; - if (@event==GamePlayer && Bag.pbQuantity(Items.SOOT_SACK)>0) { + map.data[(int)thistile.X,(int)thistile.Y,sootlevel]=0; + if (@event==GamePlayer && Bag.Quantity(Items.SOOT_SACK)>0) { Global.sootsack+=1; } - //Scene.createSingleSpriteset(map.map_id) + if (Scene is ISceneMapField m) m.createSingleSpriteset(map.map_id); } //} // @@ -1035,31 +1220,31 @@ protected virtual void Events_OnStepTakenFieldMovement(object sender, PokemonEss // //IGamePlayer @event=e[0]; // Get the event affected by field movement // IGamePlayer @event=e.Index; // Get the event affected by field movement if (Scene is ISceneMap) { - Terrains currentTag=pbGetTerrainTag(@event); - if (Terrain.isJustGrass(pbGetTerrainTag(@event,true))) { // Won't show if under bridge - //Scene.spriteset.addUserAnimation(Core.GRASS_ANIMATION_ID,@event.x,@event.y,true); + Terrains currentTag=GetTerrainTag(@event); + if (Terrain.isJustGrass(GetTerrainTag(@event,true))) { // Won't show if under bridge + if (Scene.spriteset is ISpritesetMapAnimation sma) sma.addUserAnimation(Core.GRASS_ANIMATION_ID,@event.x,@event.y,true); } else if (@event==GamePlayer && currentTag==Terrains.WaterfallCrest) { //Descend waterfall, but only if this event is the player - //if (this is IGameField f0) f0.pbDescendWaterfall(@event); + if (this is IGameHiddenMoves f0) f0.DescendWaterfall(@event); } else if (@event==GamePlayer && Terrain.isIce(currentTag) && !Global.sliding) { - if (this is IGameField f1) f1.pbSlideOnIce(@event); + if (this is IGameField f1) f1.SlideOnIce(@event); } } } - public void pbBattleOnStepTaken() { + public void BattleOnStepTaken() { if (Trainer.party.Length>0) { - Method? encounterType=PokemonEncounters.pbEncounterType(); + Method? encounterType=PokemonEncounters.EncounterType(); if (encounterType>=0) { if (PokemonEncounters.isEncounterPossibleHere()) { - IEncounter encounter=PokemonEncounters.pbGenerateEncounter(encounterType.Value); + IEncounter encounter=PokemonEncounters.GenerateEncounter(encounterType.Value); encounter=EncounterModifier.trigger(encounter); - if (PokemonEncounters.pbCanEncounter(encounter)) { + if (PokemonEncounters.CanEncounter(encounter)) { if (Global.partner != null) { - IEncounter encounter2=PokemonEncounters.pbEncounteredPokemon(encounterType.Value); - pbDoubleWildBattle(encounter.Pokemon,encounter.Level,encounter2.Pokemon,encounter2.Level); + IEncounter encounter2=PokemonEncounters.EncounteredPokemon(encounterType.Value); + DoubleWildBattle(encounter.Pokemon,encounter.Level,encounter2.Pokemon,encounter2.Level); } else { - pbWildBattle(encounter.Pokemon,encounter.Level); + WildBattle(encounter.Pokemon,encounter.Level); } } EncounterModifier.triggerEncounterEnd(); @@ -1068,8 +1253,8 @@ public void pbBattleOnStepTaken() { } } - public void pbOnStepTaken(bool eventTriggered) { - if (GamePlayer.move_route_forcing || (this is IGameMessage g && g.pbMapInterpreterRunning()) || Trainer == null) { + public void OnStepTaken(bool eventTriggered) { + if (GamePlayer.move_route_forcing || (this is IGameMessage g && g.MapInterpreterRunning()) || Trainer == null) { // if forced movement or if no trainer was created yet //Events.onStepTakenFieldMovement.trigger(null,GamePlayer); PokemonEssentials.Interface.EventArg.IOnStepTakenFieldMovementEventArgs e0 = new PokemonUnity.EventArg.OnStepTakenFieldMovementEventArgs() @@ -1086,7 +1271,8 @@ public void pbOnStepTaken(bool eventTriggered) { //Events.onStepTaken.trigger(null); //Events.OnStepTaken?.Invoke(null,EventArgs.Empty); Events.OnStepTakenTrigger(this); - //Events.onStepTakenFieldMovement.trigger(null,GamePlayer) + //Events.onStepTakenFieldMovement.trigger(null,GamePlayer); + //Events.OnStepTakenFieldMovementTrigger(null,GamePlayer); //Was commented out in essentials bool?[] handled= new bool?[]{ null }; //Events.OnStepTakenTransferPossible.trigger(null,handled); PokemonEssentials.Interface.EventArg.IOnStepTakenTransferPossibleEventArgs e1 = new PokemonUnity.EventArg.OnStepTakenTransferPossibleEventArgs(); @@ -1094,77 +1280,77 @@ public void pbOnStepTaken(bool eventTriggered) { Events.OnStepTakenTransferPossibleTrigger(this, e1); if (handled[0]==true) return; if (!eventTriggered) { - pbBattleOnStepTaken(); + BattleOnStepTaken(); } } // This method causes a lot of lag when the game is encrypted - public string pbGetPlayerCharset(MetadataPlayer meta,int charset,ITrainer trainer=null) { + public string GetPlayerCharset(MetadataPlayer meta,int charset,ITrainer trainer=null) { if (trainer == null) trainer=Trainer; int outfit=trainer != null ? trainer.outfit.Value : 0; string ret=meta[charset]; if (ret == null || ret=="") ret=meta[1]; - // if FileTest.image_exist("Graphics/Characters/"+ret+"_"+outfit.ToString()) - if (pbResolveBitmap("Graphics/Characters/"+ret+"_"+outfit.ToString()) != null) { + // if FileTest.image_exist("Graphics/Characters/"+ret+"_"+outfit.ToString()) + if (ResolveBitmap("Graphics/Characters/"+ret+"_"+outfit.ToString()) != null) { ret=ret+"_"+outfit.ToString(); } return ret; } - public virtual void pbUpdateVehicle() { - //string[] meta=(string[])Game.pbGetMetadata(0, GlobalMetadatas.MetadataPlayerA+Global.playerID); - MetadataPlayer meta=pbGetMetadata(0).Global.Players[Global.playerID]; + public virtual void UpdateVehicle() { + //string[] meta=(string[])Game.GetMetadata(0, GlobalMetadatas.MetadataPlayerA+Global.playerID); + MetadataPlayer meta=GetMetadata(0).Global.Players[Global.playerID]; //if (meta != null) { if (Global.diving) { - GamePlayer.character_name=pbGetPlayerCharset(meta,5); // Diving graphic + GamePlayer.character_name=GetPlayerCharset(meta,5); // Diving graphic } else if (Global.surfing) { - GamePlayer.character_name=pbGetPlayerCharset(meta,3); // Surfing graphic + GamePlayer.character_name=GetPlayerCharset(meta,3); // Surfing graphic } else if (Global.bicycle) { - GamePlayer.character_name=pbGetPlayerCharset(meta,2); // Bicycle graphic + GamePlayer.character_name=GetPlayerCharset(meta,2); // Bicycle graphic } else { - GamePlayer.character_name=pbGetPlayerCharset(meta,1); // Regular graphic + GamePlayer.character_name=GetPlayerCharset(meta,1); // Regular graphic } //} } - public void pbCancelVehicles(int? destination=null) { + public void CancelVehicles(int? destination=null) { Global.surfing=false; Global.diving=false; - if (destination == null || !pbCanUseBike(destination.Value)) { + if (destination == null || !CanUseBike(destination.Value)) { Global.bicycle=false; } - pbUpdateVehicle(); + UpdateVehicle(); } - public bool pbCanUseBike (int mapid) { - //if ((bool)pbGetMetadata(mapid,MapMetadatas.MetadataBicycleAlways)) return true; - if (pbGetMetadata(mapid).Map.BicycleAlways) return true; - //bool? val=(bool?)pbGetMetadata(mapid,MapMetadatas.MetadataBicycle); - bool? val=pbGetMetadata(mapid).Map.Bicycle; - //if (val==null) val=(bool?)pbGetMetadata(mapid,MapMetadatas.MetadataOutdoor); - if (val==null) val=pbGetMetadata(mapid).Map.Outdoor; + public bool CanUseBike (int mapid) { + //if ((bool)GetMetadata(mapid,MapMetadatas.MetadataBicycleAlways)) return true; + if (GetMetadata(mapid).Map.BicycleAlways) return true; + //bool? val=(bool?)GetMetadata(mapid,MapMetadatas.MetadataBicycle); + bool? val=GetMetadata(mapid).Map.Bicycle; + //if (val==null) val=(bool?)GetMetadata(mapid,MapMetadatas.MetadataOutdoor); + if (val==null) val=GetMetadata(mapid).Map.Outdoor; return val != null ? true : false; } - public void pbMountBike() { + public void MountBike() { if (Global.bicycle) return; Global.bicycle=true; - pbUpdateVehicle(); - //IAudioObject bikebgm=(IAudioObject)pbGetMetadata(0,GlobalMetadatas.MetadataBicycleBGM); - string bikebgm=pbGetMetadata(0).Global.BicycleBGM; + UpdateVehicle(); + //IAudioObject bikebgm=(IAudioObject)GetMetadata(0,GlobalMetadatas.MetadataBicycleBGM); + string bikebgm=GetMetadata(0).Global.BicycleBGM; if (bikebgm != null) { - if (this is IGameField a) a.pbCueBGM(bikebgm,0.5f); + if (this is IGameField a) a.CueBGM(bikebgm,0.5f); } } - public void pbDismountBike() { + public void DismountBike() { if (!Global.bicycle) return; Global.bicycle=false; - pbUpdateVehicle(); + UpdateVehicle(); GameMap.autoplayAsCue(); } - public void pbSetPokemonCenter() { + public void SetPokemonCenter() { Global.pokecenterMapId=GameMap.map_id; Global.pokecenterX=GamePlayer.x; Global.pokecenterY=GamePlayer.y; @@ -1173,43 +1359,43 @@ public void pbSetPokemonCenter() { #endregion #region Fishing - public virtual void pbFishingBegin() { + public virtual void FishingBegin() { Global.fishing=true; - if (!pbCommonEvent(Core.FISHINGBEGINCOMMONEVENT)) { + if (!CommonEvent(Core.FISHINGBEGINCOMMONEVENT)) { int patternb = 2*GamePlayer.direction - 1; - //TrainerTypes playertrainer=pbGetPlayerTrainerType(); - //string[] meta=(string[])pbGetMetadata(0,GlobalMetadatas.MetadataPlayerA+Global.playerID); - MetadataPlayer meta=pbGetMetadata(0).Global.Players[Global.playerID]; + //TrainerTypes playertrainer=GetPlayerTrainerType(); + //string[] meta=(string[])GetMetadata(0,GlobalMetadatas.MetadataPlayerA+Global.playerID); + MetadataPlayer meta=GetMetadata(0).Global.Players[Global.playerID]; int num=(Global.surfing) ? 7 : 6; //if (meta != null && meta[num]!=null && meta[num]!="") { - string charset=pbGetPlayerCharset(meta,num); + string charset=GetPlayerCharset(meta,num); int pattern = 0; do { //4.times |pattern| if (GamePlayer is IGamePlayerRunMovement p) p.setDefaultCharName(charset,patternb-pattern); - int i = 0; do { //;2.times + int i = 0; do { //;2.times Graphics?.update(); Input.update(); - if (this is IGameMessage a) a.pbUpdateSceneMap(); i++; + if (this is IGameMessage a) a.UpdateSceneMap(); i++; } while (i < 2); pattern++; } while (pattern < 4); //} } } - public virtual void pbFishingEnd() { - if (!pbCommonEvent(Core.FISHINGENDCOMMONEVENT)) { + public virtual void FishingEnd() { + if (!CommonEvent(Core.FISHINGENDCOMMONEVENT)) { int patternb = 2*(GamePlayer.direction - 2); - //TrainerTypes playertrainer=pbGetPlayerTrainerType(); - //string[] meta=(string[])pbGetMetadata(0,GlobalMetadatas.MetadataPlayerA+Global.playerID); - MetadataPlayer meta=pbGetMetadata(0).Global.Players[Global.playerID]; + //TrainerTypes playertrainer=GetPlayerTrainerType(); + //string[] meta=(string[])GetMetadata(0,GlobalMetadatas.MetadataPlayerA+Global.playerID); + MetadataPlayer meta=GetMetadata(0).Global.Players[Global.playerID]; int num=(Global.surfing) ? 7 : 6; //if (meta != null && meta[num]!=null && meta[num]!="") { - string charset=pbGetPlayerCharset(meta,num); + string charset=GetPlayerCharset(meta,num); int pattern = 0; do { //4.times |pattern| if (GamePlayer is IGamePlayerRunMovement p) p.setDefaultCharName(charset,patternb+pattern); - int i = 0; do { //;2.times + int i = 0; do { //;2.times Graphics?.update(); Input.update(); - if (this is IGameMessage a) a.pbUpdateSceneMap(); i++; + if (this is IGameMessage a) a.UpdateSceneMap(); i++; } while (i < 2); pattern++; } while (pattern < 4); //} @@ -1217,7 +1403,7 @@ public virtual void pbFishingEnd() { Global.fishing=false; } - public virtual bool pbFishing(bool hasencounter,int rodtype=1) { + public virtual bool Fishing(bool hasencounter,int rodtype=1) { bool speedup=(Trainer.firstParty.IsNotNullOrNone() && !Trainer.firstParty.isEgg && (Trainer.firstParty.Ability == Abilities.STICKY_HOLD || Trainer.firstParty.Ability == Abilities.SUCTION_CUPS)); @@ -1225,59 +1411,59 @@ public virtual bool pbFishing(bool hasencounter,int rodtype=1) { if (speedup) bitechance*=1.5f; int hookchance=100; int oldpattern=GamePlayer is IGamePlayerRunMovement p ? p.fullPattern() : 0; - pbFishingBegin(); - IWindow_AdvancedTextPokemon msgwindow=this is IGameMessage m ? m.pbCreateMessageWindow() : null; + FishingBegin(); + IWindow_AdvancedTextPokemon msgwindow=this is IGameMessage m ? m.CreateMessageWindow() : null; do { //;loop int time=2+Core.Rand.Next(10); if (speedup) time=Math.Min(time,2+Core.Rand.Next(10)); string message=""; - int i = 0; do { //;time.times + int i = 0; do { //;time.times message+=". "; i++; } while (i < time); - if (pbWaitMessage(msgwindow,time)) { - pbFishingEnd(); + if (WaitMessage(msgwindow,time)) { + FishingEnd(); if (GamePlayer is IGamePlayerRunMovement p0) p0.setDefaultCharName(null,oldpattern); - if (this is IGameMessage m0) m0.pbMessageDisplay(msgwindow,Game._INTL("Not even a nibble...")); - if (this is IGameMessage m1) m1.pbDisposeMessageWindow(msgwindow); + if (this is IGameMessage m0) m0.MessageDisplay(msgwindow,Game._INTL("Not even a nibble...")); + if (this is IGameMessage m1) m1.DisposeMessageWindow(msgwindow); return false; } if (Core.Rand.Next(100)0) message+=". "; - if (this is IGameMessage m0) m0.pbMessageDisplay(msgwindow,message,false); + if (this is IGameMessage m0) m0.MessageDisplay(msgwindow,message,false); int j = 0; do { //20.times ; Graphics?.update(); Input.update(); - if (this is IGameMessage m1) m1.pbUpdateSceneMap(); + if (this is IGameMessage m1) m1.UpdateSceneMap(); if (Input.trigger((int)Input.C) || Input.trigger((int)Input.B)) { return true; } j++; @@ -1307,42 +1493,42 @@ public virtual bool pbWaitMessage(IWindow msgwindow,int time) { //Events.onMapChange+=delegate(object sender, EventArgs e) { protected virtual void Events_OnMapChange(object sender, PokemonEssentials.Interface.EventArg.IOnMapChangeEventArgs e) { int oldid=e.MapId; //[0] previous map ID, 0 if no map ID - ITilePosition healing=pbGetMetadata(GameMap.map_id).Map.HealingSpot; + ITilePosition healing=GetMetadata(GameMap.map_id).Map.HealingSpot; if (healing != null) Global.healingSpot=healing; if (PokemonMap != null) PokemonMap.clear(); if (PokemonEncounters != null) PokemonEncounters.setup(GameMap.map_id); Global.visitedMaps[GameMap.map_id]=true; if (oldid!=0 && oldid!=GameMap.map_id) { IDictionary mapinfos = new Dictionary(); //$RPGVX ? load_data("Data/MapInfos.rvdata") : load_data("Data/MapInfos.rxdata"); - MetadataWeather? weather=pbGetMetadata(GameMap.map_id).Map.Weather; + MetadataWeather? weather=GetMetadata(GameMap.map_id).Map.Weather; if (GameMap.name!=mapinfos[oldid]) { //GameMap.name!=mapinfos[oldid].name //if (weather != null && Core.Rand.Next(100) mapinfos = new Dictionary(); //$RPGVX ? load_data("Data/MapInfos.rvdata") : load_data("Data/MapInfos.rxdata"); if (newmapID>0) { - MetadataWeather? oldweather=pbGetMetadata(GameMap.map_id).Map.Weather; + MetadataWeather? oldweather=GetMetadata(GameMap.map_id).Map.Weather; if (GameMap.name!=mapinfos[newmapID]) { //GameMap.name!=mapinfos[newmapID].name if (oldweather != null) GameScreen.weather(0,0,0); } else { - MetadataWeather? newweather=pbGetMetadata(newmapID).Map.Weather; + MetadataWeather? newweather=GetMetadata(newmapID).Map.Weather; if (oldweather!= null && newweather == null) GameScreen.weather(0,0,0); } } } - + //Events.onMapSceneChange+=delegate(object sender, EventArgs e) { protected virtual void Events_OnMapSceneChange(object sender, PokemonEssentials.Interface.EventArg.IOnMapSceneChangeEventArgs e) { ISceneMap scene = e.Object; //[0]; @@ -1350,10 +1536,10 @@ protected virtual void Events_OnMapSceneChange(object sender, PokemonEssentials. if (scene == null || scene.spriteset == null) return; if (GameMap != null) { ITilePosition lastmapdetails=Global.mapTrail[0] != null ? - pbGetMetadata(Global.mapTrail[0]).Map.MapPosition : new TilePosition(-1, 0, 0); //new int[] { -1, 0, 0 }; + GetMetadata(Global.mapTrail[0]).Map.MapPosition : new TilePosition(-1, 0, 0); //new int[] { -1, 0, 0 }; if (lastmapdetails == null) lastmapdetails = new TilePosition(-1, 0, 0); //new int[]{ -1,0,0 }; ITilePosition newmapdetails=GameMap.map_id != null ? - pbGetMetadata(GameMap.map_id).Map.MapPosition : new TilePosition(-1, 0, 0); //new int[] { -1, 0, 0 }; + GetMetadata(GameMap.map_id).Map.MapPosition : new TilePosition(-1, 0, 0); //new int[] { -1, 0, 0 }; if (newmapdetails == null) newmapdetails = new TilePosition(-1, 0, 0); //new int[]{ -1,0,0 }; if (Global.mapTrail == null) Global.mapTrail=new int[4]; if (Global.mapTrail[0]!=GameMap.map_id) { @@ -1363,7 +1549,7 @@ protected virtual void Events_OnMapSceneChange(object sender, PokemonEssentials. } Global.mapTrail[0]=GameMap.map_id; // Update map trail } - bool darkmap=pbGetMetadata(GameMap.map_id).Map.DarkMap; + bool darkmap=GetMetadata(GameMap.map_id).Map.DarkMap; if (darkmap) { if (Global.flashUsed) { PokemonTemp.darknessSprite.initialize(); //=new DarknessSprite(); @@ -1382,7 +1568,7 @@ protected virtual void Events_OnMapSceneChange(object sender, PokemonEssentials. } } if (mapChanged) { - if (pbGetMetadata(GameMap.map_id).Map.ShowArea) { + if (GetMetadata(GameMap.map_id).Map.ShowArea) { bool nosignpost=false; if (Global.mapTrail.Count > 1) { //(Global.mapTrail[1] != null) for (int i = 0; i < Core.NOSIGNPOSTS.Length/2; i++) { @@ -1394,7 +1580,7 @@ protected virtual void Events_OnMapSceneChange(object sender, PokemonEssentials. string oldmapname=mapinfos[Global.mapTrail[1]]; //mapinfos[Global.mapTrail[1]].name if (GameMap.name==oldmapname) nosignpost=true; } - if (!nosignpost) + if (!nosignpost) if (scene.spriteset is PokemonEssentials.Interface.ISpritesetMapAnimation s2) { //s2.addUserSprite(new LocationWindow(GameMap.name)); @@ -1403,29 +1589,29 @@ protected virtual void Events_OnMapSceneChange(object sender, PokemonEssentials. } } } - if (pbGetMetadata(GameMap.map_id).Map.BicycleAlways) { - pbMountBike(); + if (GetMetadata(GameMap.map_id).Map.BicycleAlways) { + MountBike(); } else { - if (!pbCanUseBike(GameMap.map_id)) { - pbDismountBike(); + if (!CanUseBike(GameMap.map_id)) { + DismountBike(); } } } - public void pbStartOver(bool gameover=false) { - if (this is IGameBugContest c && c.pbInBugContest) { - c.pbBugContestStartOver(); + public void StartOver(bool gameover=false) { + if (this is IGameBugContest c && c.InBugContest) { + c.BugContestStartOver(); return; } - pbHealAll(); + HealAll(); if (Global.pokecenterMapId != null && Global.pokecenterMapId>= 0) { if (gameover) { - if (this is IGameMessage m) m.pbMessage(Game._INTL("\\w[]\\wm\\c[8]\\l[3]After the unfortunate defeat, {1} scurried to a Pokémon Center.",Trainer.name)); + if (this is IGameMessage m) m.Message(Game._INTL("\\w[]\\wm\\c[8]\\l[3]After the unfortunate defeat, {1} scurried to a Pokémon Center.",Trainer.name)); } else { - if (this is IGameMessage m) m.pbMessage(Game._INTL("\\w[]\\wm\\c[8]\\l[3]{1} scurried to a Pokémon Center, protecting the exhausted and fainted Pokémon from further harm.",Trainer.name)); + if (this is IGameMessage m) m.Message(Game._INTL("\\w[]\\wm\\c[8]\\l[3]{1} scurried to a Pokémon Center, protecting the exhausted and fainted Pokémon from further harm.",Trainer.name)); } - pbCancelVehicles(); - if (this is IGameDependantEvents d) d.pbRemoveDependencies(); + CancelVehicles(); + if (this is IGameDependantEvents d) d.RemoveDependencies(); GameSwitches[Core.STARTING_OVER_SWITCH]=true; //ToDo: Use GameData.Feature Features.StartingOver(); GameTemp.player_new_map_id=Global.pokecenterMapId; @@ -1435,25 +1621,25 @@ public void pbStartOver(bool gameover=false) { if (Scene is ISceneMap s) s.transfer_player(); GameMap.refresh(); } else { - //int[] homedata=(int[])pbGetMetadata(0,GlobalMetadatas.MetadataHome); - MetadataPosition? homedata=pbGetMetadata(0).Global.Home; - //ITilePosition homedata=Game.pbGetMetadata(0,GlobalMetadatas.MetadataHome); - if (homedata != null && !pbRxdataExists(string.Format("Data/Map%03d",homedata.Value.MapId))) { //homedata[0] + //int[] homedata=(int[])GetMetadata(0,GlobalMetadatas.MetadataHome); + MetadataPosition? homedata=GetMetadata(0).Global.Home; + //ITilePosition homedata=Game.GetMetadata(0,GlobalMetadatas.MetadataHome); + if (homedata != null && !RxdataExists(string.Format("Data/Map%03d",homedata.Value.MapId))) { //homedata[0] if (Core.DEBUG && this is IGameMessage m) { - m.pbMessage(string.Format("Can't find the map 'Map{0}' in the Data folder. The game will resume at the player's position.",homedata.Value.MapId)); //homedata[0] + m.Message(string.Format("Can't find the map 'Map{0}' in the Data folder. The game will resume at the player's position.",homedata.Value.MapId)); //homedata[0] } - pbHealAll(); + HealAll(); return; } if (gameover) { - if (this is IGameMessage m) m.pbMessage(Game._INTL("\\w[]\\wm\\c[8]\\l[3]After the unfortunate defeat, {1} scurried home.",Trainer.name)); + if (this is IGameMessage m) m.Message(Game._INTL("\\w[]\\wm\\c[8]\\l[3]After the unfortunate defeat, {1} scurried home.",Trainer.name)); } else { - if (this is IGameMessage m) m.pbMessage(Game._INTL("\\w[]\\wm\\c[8]\\l[3]{1} scurried home, protecting the exhausted and fainted Pokémon from further harm.",Trainer.name)); + if (this is IGameMessage m) m.Message(Game._INTL("\\w[]\\wm\\c[8]\\l[3]{1} scurried home, protecting the exhausted and fainted Pokémon from further harm.",Trainer.name)); } if (homedata != null) { - pbCancelVehicles(); - if (this is IGameDependantEvents d) d.pbRemoveDependencies(); - //GameSwitches[STARTING_OVER_SWITCH]=true; + CancelVehicles(); + if (this is IGameDependantEvents d) d.RemoveDependencies(); + GameSwitches[Core.STARTING_OVER_SWITCH]=true; Features.StartingOver(); GameTemp.player_new_map_id=homedata.Value.MapId; //homedata[0] GameTemp.player_new_x=homedata.Value.X; //homedata[1] @@ -1462,13 +1648,13 @@ public void pbStartOver(bool gameover=false) { if (Scene is ISceneMap s) s.transfer_player(); GameMap.refresh(); } else { - pbHealAll(); + HealAll(); } } - pbEraseEscapePoint(); + EraseEscapePoint(); } - public virtual void pbCaveEntranceEx(bool exiting) { + public virtual void CaveEntranceEx(bool exiting) { //sprite=new BitmapSprite(Graphics.width,Graphics.height); //Bitmap sprite=new BitmapSprite(Graphics.width,Graphics.height); ////sprite.z=100000; @@ -1511,9 +1697,9 @@ public virtual void pbCaveEntranceEx(bool exiting) { // Input.update(); j++; //} while (j < totalFrames); //if (exiting) { - // pbToneChangeAll(new Tone(255,255,255),0); + // ToneChangeAll(new Tone(255,255,255),0); //} else { - // pbToneChangeAll(new Tone(-255,-255,-255),0); + // ToneChangeAll(new Tone(-255,-255,-255),0); //} //for (j = 0; j < 15; j++) { // if (exiting) { @@ -1524,7 +1710,7 @@ public virtual void pbCaveEntranceEx(bool exiting) { // Graphics?.update(); // Input.update(); //} - //pbToneChangeAll(new Tone(0,0,0),8); + //ToneChangeAll(new Tone(0,0,0),8); //for (j = 0; j < 5; j++) { // Graphics?.update(); // Input.update(); @@ -1532,21 +1718,21 @@ public virtual void pbCaveEntranceEx(bool exiting) { //sprite.Dispose(); } - public void pbCaveEntrance() { - pbSetEscapePoint(); - pbCaveEntranceEx(false); + public void CaveEntrance() { + SetEscapePoint(); + CaveEntranceEx(false); } - public void pbCaveExit() { - pbEraseEscapePoint(); - pbCaveEntranceEx(true); + public void CaveExit() { + EraseEscapePoint(); + CaveEntranceEx(true); } - public void pbSetEscapePoint() { - if (Global.escapePoint == null) Global.escapePoint=new float[0]; + public void SetEscapePoint() { + if (Global.escapePoint == null) Global.escapePoint=new MetadataPosition(); //float[0]; float xco=GamePlayer.x; float yco=GamePlayer.y; - float dir = 0; + int dir = 0; switch (GamePlayer.direction) { case 2: // Down yco-=1; dir=8; @@ -1561,25 +1747,27 @@ public void pbSetEscapePoint() { yco+=1; dir=2; break; } - Global.escapePoint=new float[] { GameMap.map_id, xco, yco, dir }; + //Global.escapePoint=new float[] { GameMap.map_id, xco, yco, dir }; + Global.escapePoint=new MetadataPosition { MapId = GameMap.map_id, X = xco, Y = yco, Direction = dir }; } - public void pbEraseEscapePoint() { - Global.escapePoint=new float[0]; + public void EraseEscapePoint() { + Global.escapePoint=new MetadataPosition(); //float[0]; } #endregion #region Partner trainer - public void pbRegisterPartner(TrainerTypes trainerid,string trainername,int partyid=0) { - pbCancelVehicles(); - ITrainer trainer = null; //Trainer.pbLoadTrainer(trainerid,trainername,partyid); //ToDo: Uncomment + public void RegisterPartner(TrainerTypes trainerid,string trainername,int partyid=0) { + CancelVehicles(); + ITrainer trainer = null; //Trainer.LoadTrainer(trainerid,trainername,partyid); //ToDo: Uncomment //Events.OnTrainerPartyLoad.trigger(null,trainer); + Events.OnTrainerPartyLoadTrigger(null,trainer); ITrainer trainerobject=new Trainer(Game._INTL(trainer.name),trainerid); trainerobject.setForeignID(Trainer); foreach (IPokemon i in trainer.party) { + (i as Pokemon).SetCatchInfos(trainer:trainerobject); i.trainerID=trainerobject.id; i.ot=trainerobject.name; - //i.SetCatchInfos(trainer:trainerobject); i.calcStats(); } //Global.partner=new Trainer(trainerid,trainerobject.name,trainerobject.id,trainer.party); @@ -1587,7 +1775,7 @@ public void pbRegisterPartner(TrainerTypes trainerid,string trainername,int part Global.partner=t;//new Combat.Trainer(trainerid,trainerobject.name,trainerobject.id,trainer.party); } - public void pbDeregisterPartner() { + public void DeregisterPartner() { Global.partner=null; } #endregion @@ -1597,7 +1785,7 @@ public void pbDeregisterPartner() { //Events.onMapUpdate+=delegate(object sender, EventArgs e) { // Pokérus check protected virtual void Events_OnMapUpdate(object sender, EventArgs e) { // Pokérus check DateTime? last=Global.pokerusTime; - DateTime now=pbGetTimeNow(); + DateTime now=GetTimeNow; if (last == null || last?.Year!=now.Year || last?.Month!=now.Month || last?.Day!=now.Day) { if (Trainer != null && Trainer.party != null) { foreach (IPokemon i in Trainer.pokemonParty) { @@ -1609,20 +1797,20 @@ protected virtual void Events_OnMapUpdate(object sender, EventArgs e) { // Pok //} //Mostly just about showing low batt on screen... //Events.onMapUpdate+=delegate(object sender, EventArgs e) { - // DateTime time=pbGetTimeNow(); + // DateTime time=GetTimeNow(); // if (time.Second==0 && Trainer != null && Global != null && GamePlayer != null && GameMap != null && // !PokemonTemp.batterywarning && !GamePlayer.move_route_forcing && - // !pbMapInterpreterRunning && !GameTemp.message_window_showing) { - // //&& pbBatteryLow()) { + // !MapInterpreterRunning && !GameTemp.message_window_showing) { + // //&& BatteryLow()) { // PokemonTemp.batterywarning=true; - // if (this is IGameMessage m) m.pbMessage(Game._INTL("The game has detected that the battery is low. You should save soon to avoid losing your progress.")); + // if (this is IGameMessage m) m.Message(Game._INTL("The game has detected that the battery is low. You should save soon to avoid losing your progress.")); // } // if (PokemonTemp.cueFrames) { // PokemonTemp.cueFrames-=1; // if (PokemonTemp.cueFrames<=0) { // PokemonTemp.cueFrames=null; // if (GameSystem.getPlayingBGM==null) { - // pbBGMPlay(PokemonTemp.cueBGM); + // BGMPlay(PokemonTemp.cueBGM); // } // } // } @@ -1633,7 +1821,7 @@ protected virtual void Events_OnMapUpdate(object sender, EventArgs e) { // Pok /// healed Pokémon has it. /// /// - public bool pbPokerus() { + public bool Pokerus() { if (GameSwitches[Core.SEEN_POKERUS_SWITCH]) return false; //if (Core.SEEN_POKERUS_SWITCH) return false; if (Features.SeenPokerusSwitch) return false; @@ -1646,11 +1834,11 @@ public bool pbPokerus() { /// - /// Connects to User's OS and checks if laptop battery + /// Connects to User's OS and checks if laptop battery /// life alert should be displayed on screen /// /// - //public bool pbBatteryLow() { + //public bool BatteryLow() { // //int[] power="\0"*12; // int[] power=new int[12]; // try { @@ -1678,53 +1866,53 @@ public bool pbPokerus() { #endregion #region Audio playing - public void pbCueBGM(string bgm, float seconds, int? volume = null, float? pitch = null) { + public void CueBGM(string bgm, float seconds, int? volume = null, float? pitch = null) { if (bgm == null) return; if (this is IGameAudioPlay a) - pbCueBGM((IAudioBGM)a.pbResolveAudioFile(bgm,volume,pitch), seconds, volume, pitch); + CueBGM((IAudioBGM)a.ResolveAudioFile(bgm,volume,pitch), seconds, volume, pitch); //IAudioBGM playingBGM=GameSystem.playing_bgm; //if (playingBGM == null || playingBGM.name!=bgm.name || playingBGM.pitch!=bgm.pitch) { - // pbBGMFade(seconds); + // BGMFade(seconds); // if (PokemonTemp.cueFrames == null) { // PokemonTemp.cueFrames=(int)((seconds*Graphics.frame_rate)*3/5); // } // PokemonTemp.cueBGM=bgm; //} else if (playingBGM != null) { - // pbBGMPlay(bgm); + // BGMPlay(bgm); //} } - - public void pbCueBGM(IAudioBGM bgm, float seconds, int? volume = null, float? pitch = null) { + + public void CueBGM(IAudioBGM bgm, float seconds, int? volume = null, float? pitch = null) { if (bgm == null) return; if (this is IGameAudioPlay a) - bgm=(IAudioBGM)a.pbResolveAudioFile(bgm,volume,pitch); + bgm=(IAudioBGM)a.ResolveAudioFile(bgm,volume,pitch); IAudioBGM playingBGM=GameSystem.playing_bgm; if (playingBGM == null || playingBGM.name!=bgm.name || playingBGM.pitch!=bgm.pitch) { - if (this is IGameAudioPlay a1) a1.pbBGMFade(seconds); + if (this is IGameAudioPlay a1) a1.BGMFade(seconds); if (PokemonTemp is ITempMetadataField f0 && f0.cueFrames == null) { f0.cueFrames=(seconds*Graphics.frame_rate)*3/5; } if (PokemonTemp is ITempMetadataField f1) f1.cueBGM=bgm; } else if (playingBGM != null && this is IGameAudioPlay a2) { - a2.pbBGMPlay(bgm); + a2.BGMPlay(bgm); } } - public void pbAutoplayOnTransition() { - //string surfbgm=pbGetMetadata(0,MetadataSurfBGM); - string surfbgm=pbGetMetadata(0).Global.SurfBGM; + public void AutoplayOnTransition() { + //string surfbgm=GetMetadata(0,MetadataSurfBGM); + string surfbgm=GetMetadata(0).Global.SurfBGM; if (Global.surfing && surfbgm != null && this is IGameAudioPlay a) { - a.pbBGMPlay(surfbgm); + a.BGMPlay(surfbgm); } else { GameMap.autoplayAsCue(); } } - public void pbAutoplayOnSave() { - //string surfbgm=pbGetMetadata(0,MetadataSurfBGM); - string surfbgm=pbGetMetadata(0).Global.SurfBGM; + public void AutoplayOnSave() { + //string surfbgm=GetMetadata(0,MetadataSurfBGM); + string surfbgm=GetMetadata(0).Global.SurfBGM; if (Global.surfing && surfbgm != null && this is IGameAudioPlay a) { - a.pbBGMPlay(surfbgm); + a.BGMPlay(surfbgm); } else { GameMap.autoplay(); } @@ -1732,7 +1920,7 @@ public void pbAutoplayOnSave() { #endregion #region Voice recorder - public virtual IWaveData pbRecord(string text,float maxtime=30.0f) { + public virtual IWaveData Record(string text,float maxtime=30.0f) { if (text == null) text=""; IWindow_UnformattedTextPokemon textwindow = null; //new Window_UnformattedTextPokemon().WithSize(text, // 0,0,Graphics.width,Graphics.height-96); @@ -1741,31 +1929,31 @@ public virtual IWaveData pbRecord(string text,float maxtime=30.0f) { textwindow.visible=false; } IWaveData wave=null; - IWindow_AdvancedTextPokemon msgwindow=(this as IGameMessage).pbCreateMessageWindow(); + IWindow_AdvancedTextPokemon msgwindow=(this as IGameMessage).CreateMessageWindow(); float oldvolume=this is IGameAudio a ? a.Audio_bgm_get_volume : 0; if (this is IGameAudio a1) a1.Audio_bgm_set_volume(0); int delay=2; int i = 0; do { //delay.times |i| - if (this is IGameMessage m) m.pbMessageDisplay(msgwindow, + if (this is IGameMessage m) m.MessageDisplay(msgwindow, string.Format("Recording in {0} second(s)...\nPress ESC to cancel.",delay-i),false); - int n = 0; do { //;Graphics.frame_rate.times + int n = 0; do { //;Graphics.frame_rate.times Graphics?.update(); Input.update(); textwindow.update(); msgwindow.update(); if (Input.trigger(Input.B)) { if (this is IGameAudio a2) a2.Audio_bgm_set_volume(oldvolume); - (this as IGameMessage).pbDisposeMessageWindow(msgwindow); + (this as IGameMessage).DisposeMessageWindow(msgwindow); textwindow.Dispose(); return null; } n++; - } while(n < Graphics.frame_rate); i++; + } while(n < Graphics.frame_rate); i++; } while(i < delay); - (this as IGameMessage).pbMessageDisplay(msgwindow, + (this as IGameMessage).MessageDisplay(msgwindow, Game._INTL("NOW RECORDING\nPress ESC to stop recording."),false); if (beginRecordUI()) { int frames=(int)(maxtime*Graphics.frame_rate); - i = 0; do { //;frames.times + i = 0; do { //;frames.times Graphics?.update(); Input.update(); textwindow.update(); @@ -1778,13 +1966,13 @@ public virtual IWaveData pbRecord(string text,float maxtime=30.0f) { //endRecord(tmpFile); //ToDo: Stops recording and saves the recording to a file. wave =getWaveDataUI(tmpFile,true); if (wave != null) { - (this as IGameMessage).pbMessageDisplay(msgwindow,Game._INTL("PLAYING BACK..."),false); + (this as IGameMessage).MessageDisplay(msgwindow,Game._INTL("PLAYING BACK..."),false); textwindow.update(); msgwindow.update(); Graphics?.update(); Input.update(); wave.play(); - i = 0; do { //(Graphics.frame_rate*wave.time).to_i.times + i = 0; do { //(Graphics.frame_rate*wave.time).to_i.times Graphics?.update(); Input.update(); textwindow.update(); @@ -1793,111 +1981,111 @@ public virtual IWaveData pbRecord(string text,float maxtime=30.0f) { } } if (this is IGameAudio a3) a3.Audio_bgm_set_volume(oldvolume); - (this as IGameMessage).pbDisposeMessageWindow(msgwindow); + (this as IGameMessage).DisposeMessageWindow(msgwindow); textwindow.Dispose(); return wave; } - public bool pbRxdataExists(string file) { + public bool RxdataExists(string file) { if (false) { //$RPGVX - return pbRgssExists(file+".rvdata"); + return RgssExists(file+".rvdata"); } else { - return pbRgssExists(file+".rxdata") ; + return RgssExists(file+".rxdata") ; } } #endregion #region Gaining items - public bool pbItemBall(Items item,int quantity=1) { + public bool ItemBall(Items item,int quantity=1) { //if (item is String || item is Symbol) { - // item=getID(PBItems,item); + // item=getID(Items,item); //} if (item == null || item<=0 || quantity<1) return false; string itemname=(quantity>1) ? Kernal.ItemData[item].Plural : Game._INTL(item.ToString(TextScripts.Name)); - //int pocket=pbGetPocket(item); + //int pocket=GetPocket(item); ItemPockets pocket=Kernal.ItemData[item].Pocket??ItemPockets.MISC; - if (Bag.pbStoreItem(item,quantity)) { // If item can be picked up + if (Bag.StoreItem(item,quantity)) { // If item can be picked up if (Kernal.ItemData[item].Category==ItemCategory.ALL_MACHINES) { //[ITEMUSE]==3 || Kernal.ItemData[item][ITEMUSE]==4) { If item is TM=>3 or HM=>4 - (this as IGameMessage).pbMessage(Game._INTL("\\se[ItemGet]{1} found \\c[1]{2}\\c[0]!\\nIt contained \\c[1]{3}\\c[0].\\wtnp[30]", + (this as IGameMessage).Message(Game._INTL("\\se[ItemGet]{1} found \\c[1]{2}\\c[0]!\\nIt contained \\c[1]{3}\\c[0].\\wtnp[30]", Trainer.name,itemname,Game._INTL(Kernal.ItemData[item].Id.ToString(TextScripts.Name))));//ToDo:[ITEMMACHINE] param for Machine-to-Move Id } else if (item == Items.LEFTOVERS) { - (this as IGameMessage).pbMessage(Game._INTL("\\se[ItemGet]{1} found some \\c[1]{2}\\c[0]!\\wtnp[30]",Trainer.name,itemname)); + (this as IGameMessage).Message(Game._INTL("\\se[ItemGet]{1} found some \\c[1]{2}\\c[0]!\\wtnp[30]",Trainer.name,itemname)); } else if (quantity>1) { - (this as IGameMessage).pbMessage(Game._INTL("\\se[ItemGet]{1} found {2} \\c[1]{3}\\c[0]!\\wtnp[30]",Trainer.name,quantity,itemname)); + (this as IGameMessage).Message(Game._INTL("\\se[ItemGet]{1} found {2} \\c[1]{3}\\c[0]!\\wtnp[30]",Trainer.name,quantity,itemname)); } else { - (this as IGameMessage).pbMessage(Game._INTL("\\se[ItemGet]{1} found one \\c[1]{2}\\c[0]!\\wtnp[30]",Trainer.name,itemname)); + (this as IGameMessage).Message(Game._INTL("\\se[ItemGet]{1} found one \\c[1]{2}\\c[0]!\\wtnp[30]",Trainer.name,itemname)); } - (this as IGameMessage).pbMessage(Game._INTL("{1} put the \\c[1]{2}\\c[0]\r\nin the \\c[1]{3}\\c[0] Pocket.", + (this as IGameMessage).Message(Game._INTL("{1} put the \\c[1]{2}\\c[0]\r\nin the \\c[1]{3}\\c[0] Pocket.", Trainer.name,itemname,pocket.ToString())); //PokemonBag.pocketNames()[pocket] return true; } else { // Can't add the item if (Kernal.ItemData[item].Category==ItemCategory.ALL_MACHINES) { //[ITEMUSE]==3 || Kernal.ItemData[item][ITEMUSE]==4) { - (this as IGameMessage).pbMessage(Game._INTL("{1} found \\c[1]{2}\\c[0]!\\wtnp[20]",Trainer.name,itemname)); + (this as IGameMessage).Message(Game._INTL("{1} found \\c[1]{2}\\c[0]!\\wtnp[20]",Trainer.name,itemname)); } else if (item == Items.LEFTOVERS) { - (this as IGameMessage).pbMessage(Game._INTL("{1} found some \\c[1]{2}\\c[0]!\\wtnp[20]",Trainer.name,itemname)); + (this as IGameMessage).Message(Game._INTL("{1} found some \\c[1]{2}\\c[0]!\\wtnp[20]",Trainer.name,itemname)); } else if (quantity>1) { - (this as IGameMessage).pbMessage(Game._INTL("{1} found {2} \\c[1]{3}\\c[0]!\\wtnp[20]",Trainer.name,quantity,itemname)); + (this as IGameMessage).Message(Game._INTL("{1} found {2} \\c[1]{3}\\c[0]!\\wtnp[20]",Trainer.name,quantity,itemname)); } else { - (this as IGameMessage).pbMessage(Game._INTL("{1} found one \\c[1]{2}\\c[0]!\\wtnp[20]",Trainer.name,itemname)); + (this as IGameMessage).Message(Game._INTL("{1} found one \\c[1]{2}\\c[0]!\\wtnp[20]",Trainer.name,itemname)); } - (this as IGameMessage).pbMessage(Game._INTL("Too bad... The Bag is full...")); + (this as IGameMessage).Message(Game._INTL("Too bad... The Bag is full...")); return false; } } - public bool pbReceiveItem(Items item,int quantity=1) { + public bool ReceiveItem(Items item,int quantity=1) { //if (item is String || item is Symbol) { - // item=getID(PBItems,item); + // item=getID(Items,item); //} if (item == null || item<=0 || quantity<1) return false; string itemname=(quantity>1) ? Kernal.ItemData[item].Plural : Game._INTL(item.ToString(TextScripts.Name)); - //int pocket=pbGetPocket(item); + //int pocket=GetPocket(item); ItemPockets pocket=Kernal.ItemData[item].Pocket??ItemPockets.MISC; if (Kernal.ItemData[item].Category==ItemCategory.ALL_MACHINES) { //[ITEMUSE]==3 || Kernal.ItemData[item][ITEMUSE]==4) { - (this as IGameMessage).pbMessage(Game._INTL("\\se[ItemGet]Obtained \\c[1]{1}\\c[0]!\\nIt contained \\c[1]{2}\\c[0].\\wtnp[30]", + (this as IGameMessage).Message(Game._INTL("\\se[ItemGet]Obtained \\c[1]{1}\\c[0]!\\nIt contained \\c[1]{2}\\c[0].\\wtnp[30]", itemname,Game._INTL(Kernal.ItemData[item].Id.ToString(TextScripts.Name))));//ToDo:[ITEMMACHINE] param for Machine-to-Move Id } else if (item == Items.LEFTOVERS) { - (this as IGameMessage).pbMessage(Game._INTL("\\se[ItemGet]Obtained some \\c[1]{1}\\c[0]!\\wtnp[30]",itemname)); + (this as IGameMessage).Message(Game._INTL("\\se[ItemGet]Obtained some \\c[1]{1}\\c[0]!\\wtnp[30]",itemname)); } else if (quantity>1) { - (this as IGameMessage).pbMessage(Game._INTL("\\se[ItemGet]Obtained \\c[1]{1}\\c[0]!\\wtnp[30]",itemname)); + (this as IGameMessage).Message(Game._INTL("\\se[ItemGet]Obtained \\c[1]{1}\\c[0]!\\wtnp[30]",itemname)); } else { - (this as IGameMessage).pbMessage(Game._INTL("\\se[ItemGet]Obtained \\c[1]{1}\\c[0]!\\wtnp[30]",itemname)); + (this as IGameMessage).Message(Game._INTL("\\se[ItemGet]Obtained \\c[1]{1}\\c[0]!\\wtnp[30]",itemname)); } - if (Bag.pbStoreItem(item,quantity)) { // If item can be added - (this as IGameMessage).pbMessage(Game._INTL("{1} put the \\c[1]{2}\\c[0]\r\nin the \\c[1]{3}\\c[0] Pocket.", + if (Bag.StoreItem(item,quantity)) { // If item can be added + (this as IGameMessage).Message(Game._INTL("{1} put the \\c[1]{2}\\c[0]\r\nin the \\c[1]{3}\\c[0] Pocket.", Trainer.name,itemname,pocket.ToString())); //PokemonBag.pocketNames()[pocket] return true; } return false; // Can't add the item } - public void pbUseKeyItem() { + public void UseKeyItem() { if (Bag.registeredItem== 0 && this is IGameMessage m) { - m.pbMessage(Game._INTL("A Key Item in the Bag can be registered to this key for instant use.")); + m.Message(Game._INTL("A Key Item in the Bag can be registered to this key for instant use.")); } else { - pbUseKeyItemInField(Bag.registeredItem); + UseKeyItemInField(Bag.registeredItem); } } #endregion #region Bridges - public void pbBridgeOn(float height=2) { + public void BridgeOn(float height=2) { Global.bridge=height; } - public void pbBridgeOff() { + public void BridgeOff() { Global.bridge=0; } #endregion #region Event locations, terrain tags - public bool pbEventFacesPlayer (IGameCharacter @event,IGamePlayer player,float distance) { + public bool EventFacesPlayer (IGameCharacter @event,IGamePlayer player,float distance) { if (distance<=0) return false; - // Event can't reach player if no coordinates coincide + // Event can't reach player if no coordinates coincide if (@event.x!=player.x && @event.y!=player.y) return false; float deltaX = (@event.direction == 6 ? 1 : @event.direction == 4 ? -1 : 0); float deltaY = (@event.direction == 2 ? 1 : @event.direction == 8 ? -1 : 0); - // Check for existence of player + // Check for existence of player float curx=@event.x; float cury=@event.y; bool found=false; @@ -1912,13 +2100,13 @@ public bool pbEventFacesPlayer (IGameCharacter @event,IGamePlayer player,float d return found; } - public bool pbEventCanReachPlayer (IGameCharacter @event,IGamePlayer player,float distance) { + public bool EventCanReachPlayer (IGameCharacter @event,IGamePlayer player,float distance) { if (distance<=0) return false; - // Event can't reach player if no coordinates coincide + // Event can't reach player if no coordinates coincide if (@event.x!=player.x && @event.y!=player.y) return false; float deltaX = (@event.direction == 6 ? 1 : @event.direction == 4 ? -1 : 0); float deltaY = (@event.direction == 2 ? 1 : @event.direction == 8 ? -1 : 0); - // Check for existence of player + // Check for existence of player float curx=@event.x; float cury=@event.y; bool found=false; @@ -1933,7 +2121,7 @@ public bool pbEventCanReachPlayer (IGameCharacter @event,IGamePlayer player,floa realdist+=1; } if (!found) return false; - // Check passibility + // Check passibility curx=@event.x; cury=@event.y; for (int i = 0; i < realdist; i++) { @@ -1946,7 +2134,7 @@ public bool pbEventCanReachPlayer (IGameCharacter @event,IGamePlayer player,floa return true; } - public ITilePosition pbFacingTileRegular(float? direction=null,IGameCharacter @event=null) { + public ITilePosition FacingTileRegular(float? direction=null,IGameCharacter @event=null) { if (@event == null) @event=GamePlayer; if (@event == null) return new TilePosition(); float x=@event.x; @@ -1981,17 +2169,17 @@ public ITilePosition pbFacingTileRegular(float? direction=null,IGameCharacter @e return GameMap != null ? new TilePosition(GameMap.map_id, x, y) : new TilePosition(0, x, y); } - public ITilePosition pbFacingTile(float? direction=null,IGameCharacter @event=null) { + public ITilePosition FacingTile(float? direction=null,IGameCharacter @event=null) { if (MapFactory != null) { return MapFactory.getFacingTile(direction,@event); } else { - return pbFacingTileRegular(direction,@event); + return FacingTileRegular(direction,@event); } } - public bool pbFacingEachOther(IGameCharacter event1,IGameCharacter event2) { + public bool FacingEachOther(IGameCharacter event1,IGameCharacter event2) { if (event1 == null || event2 == null) return false; ITilePosition tile1, tile2; - if (MapFactory != null) { + if (MapFactory != null) { tile1=MapFactory.getFacingTile(null,event1); tile2=MapFactory.getFacingTile(null,event2); if (tile1 == null || tile2 == null) return false; @@ -2004,8 +2192,8 @@ public bool pbFacingEachOther(IGameCharacter event1,IGameCharacter event2) { return false; } } else { - tile1=pbFacingTile(null,event1); - tile2=pbFacingTile(null,event2); + tile1=FacingTile(null,event1); + tile2=FacingTile(null,event2); if (tile1 == null || tile2 == null) return false; if (tile1.X==event2.x && tile1.Y==event2.y && tile2.X==event1.x && tile2.Y==event1.y) { @@ -2016,7 +2204,7 @@ public bool pbFacingEachOther(IGameCharacter event1,IGameCharacter event2) { } } - public Terrains pbGetTerrainTag(IGameCharacter @event=null,bool countBridge=false) { + public Terrains GetTerrainTag(IGameCharacter @event=null,bool countBridge=false) { if (@event == null) @event=GamePlayer; if (@event == null) return 0; if (MapFactory != null) { @@ -2026,20 +2214,20 @@ public Terrains pbGetTerrainTag(IGameCharacter @event=null,bool countBridge=fals } } - public Terrains? pbFacingTerrainTag(IGameCharacter @event=null,float? dir=null) { + public Terrains? FacingTerrainTag(IGameCharacter @event=null,float? dir=null) { if (MapFactory != null) { return MapFactory.getFacingTerrainTag(dir,@event); } else { if (@event == null) @event=GamePlayer; if (@event == null) return 0; - ITilePosition facing=pbFacingTile(dir,@event); + ITilePosition facing=FacingTile(dir,@event); return GameMap.terrain_tag(facing.X,facing.Y); //(facing[1],facing[2]); } } #endregion #region Event movement - public virtual void pbTurnTowardEvent(IGameCharacter @event,IGameCharacter otherEvent) { + public virtual void TurnTowardEvent(IGameCharacter @event,IGameCharacter otherEvent) { float sx=0; float sy=0; if (MapFactory != null) { @@ -2062,9 +2250,9 @@ public virtual void pbTurnTowardEvent(IGameCharacter @event,IGameCharacter other } } - public virtual void pbMoveTowardPlayer(IGameCharacter @event) { + public virtual void MoveTowardPlayer(IGameCharacter @event) { int maxsize=Math.Max(GameMap.width,GameMap.height); - if (!pbEventCanReachPlayer(@event,GamePlayer,maxsize)) return; + if (!EventCanReachPlayer(@event,GamePlayer,maxsize)) return; do { //;loop float x=@event.x; float y=@event.y; @@ -2073,13 +2261,13 @@ public virtual void pbMoveTowardPlayer(IGameCharacter @event) { while (@event.moving) { Graphics?.update(); Input.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); + if (this is IGameMessage m) m.UpdateSceneMap(); } } while (true); if (PokemonMap != null) PokemonMap.addMovedEvent(@event.id); } - public virtual bool pbJumpToward(int dist=1,bool playSound=false,bool cancelSurf=false) { + public virtual bool JumpToward(int dist=1,bool playSound=false,bool cancelSurf=false) { float x=GamePlayer.x; float y=GamePlayer.y; switch (GamePlayer.direction) { @@ -2097,12 +2285,12 @@ public virtual bool pbJumpToward(int dist=1,bool playSound=false,bool cancelSurf break; } if (GamePlayer.x!=x || GamePlayer.y!=y) { - if (playSound && this is IGameAudioPlay a) a.pbSEPlay("jump"); - if (cancelSurf) pbCancelVehicles(); + if (playSound && this is IGameAudioPlay a) a.SEPlay("jump"); + if (cancelSurf) CancelVehicles(); while (GamePlayer.jumping) { Graphics?.update(); Input.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); + if (this is IGameMessage m) m.UpdateSceneMap(); } return true; } @@ -2110,22 +2298,22 @@ public virtual bool pbJumpToward(int dist=1,bool playSound=false,bool cancelSurf } //ToDo: One solid coroutine function... - public void pbWait(int numframes) { + public void Wait(int numframes) { if (Core.INTERNAL) return; //if there's no ui connected... - int i = 0; do { //;numframes.times + int i = 0; do { //;numframes.times Graphics?.update(); Input.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); + if (this is IGameMessage m) m.UpdateSceneMap(); } while (i < numframes); } - public virtual IMoveRoute pbMoveRoute(IGameCharacter @event,int[] commands,bool waitComplete=false) { + public virtual IMoveRoute MoveRoute(IGameCharacter @event,int[] commands,bool waitComplete=false) { //IMoveRoute route=new RPG.MoveRoute(); //route.repeat=false; //route.skippable=true; //route.list.Clear(); //route.list.Add(new RPG.MoveCommand(MoveRoutes.ThroughOn)); - //int i=0; while (i, long>(); - long time=Game.pbGetTimeNow().Ticks; + long time=Game.GetTimeNow.Ticks; //time=time.to_i; - if (Game.GameData is IInterpreterMixinMessage i) i.pbSetSelfSwitch(@event_id,"A",true); + if (Game.GameData is IInterpreterMixinMessage i) i.SetSelfSwitch(@event_id,"A",true); Game.GameData.Global.eventvars[new KeyValuePair(@map_id,@event_id)]=time; foreach (var otherevt in arg) { - if (Game.GameData is IInterpreterMixinMessage i0) i0.pbSetSelfSwitch(otherevt,"A",true); + if (Game.GameData is IInterpreterMixinMessage i0) i0.SetSelfSwitch(otherevt,"A",true); Game.GameData.Global.eventvars[new KeyValuePair(@map_id,otherevt)]=time; } } @@ -2376,35 +2564,35 @@ public void setTempSwitchOff(string c) { public void command_352() { scene=new PokemonSaveScene(); screen=new PokemonSave(scene); - screen.pbSaveScreen; + screen.SaveScreen; return true; } public void command_125() { - value = operate_value(pbParams[0], pbParams[1], pbParams[2]); + value = operate_value(Params[0], Params[1], Params[2]); Game.GameData.Trainer.money+=value; return true; } public void command_132() { - Game.GameData.Global.nextBattleBGM=(pbParams[0]) ? pbParams[0].clone : null; + Game.GameData.Global.nextBattleBGM=(Params[0]) ? Params[0].clone : null; return true; } public void command_133() { - Game.GameData.Global.nextBattleME=(pbParams[0]) ? pbParams[0].clone : null; + Game.GameData.Global.nextBattleME=(Params[0]) ? Params[0].clone : null; return true; } public void command_353() { - pbBGMFade(1.0); - pbBGSFade(1.0); - pbFadeOutIn(99999){ Game.pbStartOver(true) } + BGMFade(1.0); + BGSFade(1.0); + FadeOutIn(99999){ Game.StartOver(true) } } public void command_314() { - if (pbParams[0] == 0 && Game.GameData.Trainer && Game.GameData.Trainer.party) { - pbHealAll(); + if (Params[0] == 0 && Game.GameData.Trainer && Game.GameData.Trainer.party) { + HealAll(); } return true; } diff --git a/PokemonUnity.Application/Game/Game.MiscData.cs b/PokemonUnity.Application/Game/Game.MiscData.cs index 1e42bf76b..7a03422f8 100644 --- a/PokemonUnity.Application/Game/Game.MiscData.cs +++ b/PokemonUnity.Application/Game/Game.MiscData.cs @@ -13,10 +13,10 @@ namespace PokemonUnity public partial class Game : IGameMetadataMisc { #region Manipulation methods for metadata, phone data and Pokémon species data - public IDictionary pbLoadMetadata() { + public IDictionary LoadMetadata() { if (PokemonTemp == null) PokemonTemp=new PokemonTemp(); if (PokemonTemp.pokemonMetadata == null) { - //if (pbRgssExists("Data/metadata.dat") == null) { + //if (RgssExists("Data/metadata.dat") == null) { // PokemonTemp.pokemonMetadata=new Dictionary(); //IPokemonMetadata[0] //} else { // PokemonTemp.pokemonMetadata=load_data("Data/metadata.dat"); @@ -25,40 +25,40 @@ public IDictionary pbLoadMetadata() { return PokemonTemp.pokemonMetadata; } - //public object pbGetMetadata(int mapid,int metadataType) { - public IPokemonMetadata pbGetMetadata(int mapid) { //,int metadataType - IDictionary meta=pbLoadMetadata(); + //public object GetMetadata(int mapid,int metadataType) { + public IPokemonMetadata GetMetadata(int mapid) { //,int metadataType + IDictionary meta=LoadMetadata(); //if (meta.ContainsKey(mapid) && meta[mapid] != null) return meta[mapid][metadataType]; if (meta.ContainsKey(mapid) && meta[mapid] != null) return meta[mapid]; return null; } - public PokemonEssentials.Interface.Field.GlobalMetadata? pbGetMetadata(int mapid,GlobalMetadatas metadataType) { - IDictionary meta=pbLoadMetadata(); + public PokemonEssentials.Interface.Field.GlobalMetadata? GetMetadata(int mapid,GlobalMetadatas metadataType) { + IDictionary meta=LoadMetadata(); if (meta[mapid] != null) return meta[mapid].Global; //[metadataType] return null; } - public MapMetadata? pbGetMetadata(int mapid,MapMetadatas metadataType) { - IDictionary meta=pbLoadMetadata(); + public MapMetadata? GetMetadata(int mapid,MapMetadatas metadataType) { + IDictionary meta=LoadMetadata(); if (meta[mapid] != null) return meta[mapid].Map; //[metadataType] return null; } - public IList pbLoadPhoneData() { + public IList LoadPhoneData() { if (PokemonTemp == null) PokemonTemp=new PokemonTemp(); if (PokemonTemp.pokemonPhoneData == null) { - //pbRgssOpen("Data/phone.dat","rb"){|f| + //RgssOpen("Data/phone.dat","rb"){|f| // PokemonTemp.pokemonPhoneData=Marshal.load(f); //} } return PokemonTemp.pokemonPhoneData; } - public IList pbOpenDexData(Func,IList> block = null) { + public IList OpenDexData(Func,IList> block = null) { if (PokemonTemp == null) PokemonTemp=new PokemonTemp(); if (PokemonTemp.pokemonDexData == null) { - //pbRgssOpen("Data/dexdata.dat","rb"){|f| + //RgssOpen("Data/dexdata.dat","rb"){|f| // PokemonTemp.pokemonDexData=f.read(); //} } @@ -71,11 +71,11 @@ public IList pbOpenDexData(Func,IList> block = nul } } - //public void pbDexDataOffset(IList dexdata,Pokemons species,int offset) { + //public void DexDataOffset(IList dexdata,Pokemons species,int offset) { // dexdata.pos=76*(species-1)+offset; //} - public void pbClearData() { + public void ClearData() { if (PokemonTemp != null) { //PokemonTemp.pokemonDexData=null; //PokemonTemp.pokemonMetadata=null; @@ -88,10 +88,10 @@ public void pbClearData() { if (GameMap != null && PokemonEncounters != null) { PokemonEncounters.setup(GameMap.map_id); } - //if (pbRgssExists("Data/Tilesets.rxdata")) { + //if (RgssExists("Data/Tilesets.rxdata")) { // DataTilesets=load_data("Data/Tilesets.rxdata"); //} - //if (pbRgssExists("Data/Tilesets.rvdata")) { + //if (RgssExists("Data/Tilesets.rvdata")) { // DataTilesets=load_data("Data/Tilesets.rvdata"); //} } diff --git a/PokemonUnity.Application/Game/Game.SpriteWindow.cs b/PokemonUnity.Application/Game/Game.SpriteWindow.cs index ed36f1817..f4b36c323 100644 --- a/PokemonUnity.Application/Game/Game.SpriteWindow.cs +++ b/PokemonUnity.Application/Game/Game.SpriteWindow.cs @@ -12,7 +12,7 @@ namespace PokemonUnity { public partial class Game : IGameSpriteWindow { - // pbFadeOutIn(z) { block } + // FadeOutIn(z) { block } /// /// Fades out the screen before a is run and fades it back in after the /// block exits. @@ -20,7 +20,7 @@ public partial class Game : IGameSpriteWindow /// indicates the z-coordinate of the viewport used for this effect /// /// - public void pbFadeOutIn(int z, bool nofadeout= false, Action block = null) + public void FadeOutIn(int z, bool nofadeout= false, Action block = null) { IColor col = null; //new Color(0, 0, 0, 0); IViewport viewport = null; //new Viewport(0, 0, Graphics.width, Graphics.height); @@ -32,11 +32,11 @@ public void pbFadeOutIn(int z, bool nofadeout= false, Action block = null) Graphics?.update(); Input.update(); } - pbPushFade(); + PushFade(); try { //begin; if (block != null) block.Invoke(); //(block_given ?) yield; } finally { //ensure; - pbPopFade(); + PopFade(); if (!nofadeout) { for (int j = 0; j < 17; j++) @@ -51,7 +51,7 @@ public void pbFadeOutIn(int z, bool nofadeout= false, Action block = null) } } - public void pbPushFade() + public void PushFade() { if (GameTemp != null) { @@ -59,7 +59,7 @@ public void pbPushFade() } } - public void pbPopFade() + public void PopFade() { if (GameTemp != null) { @@ -82,57 +82,57 @@ public string[] safeGlob(string dir, string wildcard) throw new NotImplementedException(); } - public IBitmap pbGetTileBitmap(string filename, int tile_id, int hue) + public IBitmap GetTileBitmap(string filename, int tile_id, int hue) { throw new NotImplementedException(); } - public IBitmap[] pbGetAnimation(string name, int hue = 0) + public IBitmap[] GetAnimation(string name, int hue = 0) { throw new NotImplementedException(); } - public IBitmap[] pbGetTileset(string name, int hue = 0) + public IBitmap[] GetTileset(string name, int hue = 0) { throw new NotImplementedException(); } - public IBitmap[] pbGetAutotile(string name, int hue = 0) + public IBitmap[] GetAutotile(string name, int hue = 0) { throw new NotImplementedException(); } - public void pbDrawShadow(IBitmap bitmap, float x, float y, int width, int height, string text) + public void DrawShadow(IBitmap bitmap, float x, float y, int width, int height, string text) { throw new NotImplementedException(); } - public void pbDrawShadowText(IBitmap bitmap, float x, float y, int width, int height, string text, IColor baseColor, IColor shadowColor = null, int align = 0) + public void DrawShadowText(IBitmap bitmap, float x, float y, int width, int height, string text, IColor baseColor, IColor shadowColor = null, int align = 0) { throw new NotImplementedException(); } - public void pbDrawOutlineText(IBitmap bitmap, float x, float y, int width, int height, string text, IColor baseColor, IColor shadowColor = null, int align = 0) + public void DrawOutlineText(IBitmap bitmap, float x, float y, int width, int height, string text, IColor baseColor, IColor shadowColor = null, int align = 0) { throw new NotImplementedException(); } - public void pbBottomRight(IWindow window) + public void BottomRight(IWindow window) { throw new NotImplementedException(); } - public void pbBottomLeft(IWindow window) + public void BottomLeft(IWindow window) { throw new NotImplementedException(); } - public void pbBottomLeftLines(IWindow window, int lines, int? width = null) + public void BottomLeftLines(IWindow window, int lines, int? width = null) { throw new NotImplementedException(); } - public bool pbDisposed(IViewport x) + public bool Disposed(IViewport x) { throw new NotImplementedException(); } @@ -152,87 +152,87 @@ public IColor getDefaultTextColors(int windowskin) throw new NotImplementedException(); } - public IBitmap pbDoEnsureBitmap(IBitmap bitmap, int dwidth, int dheight) + public IBitmap DoEnsureBitmap(IBitmap bitmap, int dwidth, int dheight) { throw new NotImplementedException(); } - public void pbUpdateSpriteHash(IWindow[] windows) + public void UpdateSpriteHash(IWindow[] windows) { throw new NotImplementedException(); } - public void pbDisposeSpriteHash(ISprite[] sprites) + public void DisposeSpriteHash(ISprite[] sprites) { throw new NotImplementedException(); } - public void pbDisposeSprite(ISprite[] sprites, int id) + public void DisposeSprite(ISprite[] sprites, int id) { throw new NotImplementedException(); } - public void pbDrawTextPositions(IBitmap bitmap, IList textpos) + public void DrawTextPositions(IBitmap bitmap, IList textpos) { throw new NotImplementedException(); } - public void pbDrawImagePositions(IBitmap bitmap, IList textpos) + public void DrawImagePositions(IBitmap bitmap, IList textpos) { throw new NotImplementedException(); } - public void pbFadeOutAndHide(ISprite[] sprites) + public void FadeOutAndHide(ISprite[] sprites) { throw new NotImplementedException(); } - public void pbFadeInAndShow(ISprite[] sprites, IList visiblesprites = null, Action block = null) + public void FadeInAndShow(ISprite[] sprites, IList visiblesprites = null, Action block = null) { throw new NotImplementedException(); } - public void pbRestoreActivations(ISprite[] sprites, object activeStatuses) + public void RestoreActivations(ISprite[] sprites, object activeStatuses) { throw new NotImplementedException(); } - public void pbDeactivateWindows(IWindow[] sprites, Action action = null) + public void DeactivateWindows(IWindow[] sprites, Action action = null) { throw new NotImplementedException(); } - public void pbActivateWindow(IWindow[] sprites, int key, Action action = null) + public void ActivateWindow(IWindow[] sprites, int key, Action action = null) { throw new NotImplementedException(); } - public IColor pbAlphaBlend(IColor dstColor, IColor srcColor) + public IColor AlphaBlend(IColor dstColor, IColor srcColor) { throw new NotImplementedException(); } - public IColor pbSrcOver(IColor dstColor, IColor srcColor) + public IColor SrcOver(IColor dstColor, IColor srcColor) { throw new NotImplementedException(); } - public void pbSetSpritesToColor(ISprite[] sprites, IColor color) + public void SetSpritesToColor(ISprite[] sprites, IColor color) { throw new NotImplementedException(); } - public string pbTryString(string x) + public string TryString(string x) { throw new NotImplementedException(); } - public string pbBitmapName(string x) + public string BitmapName(string x) { throw new NotImplementedException(); } - public string pbResolveBitmap(string x) + public string ResolveBitmap(string x) { throw new NotImplementedException(); } @@ -247,52 +247,52 @@ public void addBackgroundOrColoredPlane(ISprite[] sprites, string planename, str throw new NotImplementedException(); } - public void pbSetSystemFont(IBitmap bitmap) + public void SetSystemFont(IBitmap bitmap) { throw new NotImplementedException(); } - public string pbSmallFontName() + public string SmallFontName() { throw new NotImplementedException(); } - public string pbNarrowFontName() + public string NarrowFontName() { throw new NotImplementedException(); } - public void pbSetSmallFont(IBitmap bitmap) + public void SetSmallFont(IBitmap bitmap) { throw new NotImplementedException(); } - public void pbSetNarrowFont(IBitmap bitmap) + public void SetNarrowFont(IBitmap bitmap) { throw new NotImplementedException(); } - public bool pbRgssExists(string filename) + public bool RgssExists(string filename) { throw new NotImplementedException(); } - public IDisposable pbRgssOpen(string file, int? mode = null, Action action = null) + public IDisposable RgssOpen(string file, int? mode = null, Action action = null) { throw new NotImplementedException(); } - public string pbGetFileChar(string file) + public string GetFileChar(string file) { throw new NotImplementedException(); } - public string pbGetFileString(string file) + public string GetFileString(string file) { throw new NotImplementedException(); } - public bool pbIsFaded + public bool IsFaded { get { diff --git a/PokemonUnity.Application/Game/Game.Utility.cs b/PokemonUnity.Application/Game/Game.Utility.cs index b89e2cd55..b3cbdad19 100644 --- a/PokemonUnity.Application/Game/Game.Utility.cs +++ b/PokemonUnity.Application/Game/Game.Utility.cs @@ -50,7 +50,7 @@ public static string _INTL(string message, params object[] param) } #region General purpose utilities - public bool _pbNextComb(int[] comb,int length) { + public bool _NextComb(int[] comb,int length) { int i=comb.Length-1; do { bool valid=true; @@ -78,8 +78,8 @@ public bool _pbNextComb(int[] comb,int length) { /// /// /// - //public IEnumerator pbEachCombination(T[] array,int num) { - public IEnumerable pbEachCombination(T[] array,int num) { + //public IEnumerator EachCombination(T[] array,int num) { + public IEnumerable EachCombination(T[] array,int num) { if (array.Length pbEachCombination(T[] array,int num) { arr[i]=array[currentComb[i]]; } yield return arr; - } while (_pbNextComb(currentComb,array.Length)); + } while (_NextComb(currentComb,array.Length)); } /// @@ -108,19 +108,19 @@ public IEnumerable pbEachCombination(T[] array,int num) { /// /// //ToDo?... - public string pbGetMyDocumentsFolder() { return ""; } + public string GetMyDocumentsFolder() { return ""; } /// /// Returns a country ID /// /// http://msdn.microsoft.com/en-us/library/dd374073%28VS.85%29.aspx? //ToDo?... - public int pbGetCountry() { return 0; } + public int GetCountry() { return 0; } /// /// Returns a language ID /// - public int pbGetLanguage() { + public int GetLanguage() { //getUserDefaultLangID=new Win32API("kernel32","GetUserDefaultLangID","","i"); //rescue null int ret=0; //if (getUserDefaultLangID) { @@ -164,11 +164,11 @@ public double toCelsius(float fahrenheit) { #endregion #region Player-related utilities, random name generator - //public bool pbChangePlayer(int id) { - public void pbChangePlayer(int id) { + //public bool ChangePlayer(int id) { + public void ChangePlayer(int id) { if (id < 0 || id >= 8) return; //false; - //IPokemonMetadata meta=pbGetMetadata(0,MetadataPlayerA+id); - MetadataPlayer? meta=pbGetMetadata(0).Global.Players[id]; + //IPokemonMetadata meta=GetMetadata(0,MetadataPlayerA+id); + MetadataPlayer? meta=GetMetadata(0).Global.Players[id]; if (meta == null) return; //false; if (Trainer != null) Trainer.trainertype=(TrainerTypes)meta?.Type; //meta[0]; GamePlayer.character_name=meta?.Name; //meta[1]; @@ -177,28 +177,28 @@ public void pbChangePlayer(int id) { if (Trainer != null) Trainer.metaID=id; } - public string pbGetPlayerGraphic() { + public string GetPlayerGraphic() { int id=Global.playerID; if (id<0 || id>=8) return ""; - //IPokemonMetadata meta=pbGetMetadata(0,MetadataPlayerA+id); - MetadataPlayer? meta=pbGetMetadata(0).Global.Players[id]; + //IPokemonMetadata meta=GetMetadata(0,MetadataPlayerA+id); + MetadataPlayer? meta=GetMetadata(0).Global.Players[id]; if (meta == null) return ""; - return pbPlayerSpriteFile((TrainerTypes)meta?.Type); //meta[0] + return PlayerSpriteFile((TrainerTypes)meta?.Type); //meta[0] } - public TrainerTypes pbGetPlayerTrainerType() { + public TrainerTypes GetPlayerTrainerType() { int id=Global.playerID; if (id<0 || id>=8) return 0; - //IPokemonMetadata meta=pbGetMetadata(0,MetadataPlayerA+id); - MetadataPlayer? meta=pbGetMetadata(0).Global.Players[id]; + //IPokemonMetadata meta=GetMetadata(0,MetadataPlayerA+id); + MetadataPlayer? meta=GetMetadata(0).Global.Players[id]; if (meta == null) return 0; return (TrainerTypes)meta?.Type; //meta[0]; } - public int pbGetTrainerTypeGender(TrainerTypes trainertype) { - //public bool? pbGetTrainerTypeGender(TrainerTypes trainertype) { + public int GetTrainerTypeGender(TrainerTypes trainertype) { + //public bool? GetTrainerTypeGender(TrainerTypes trainertype) { int? ret=2; // 2 = gender unknown - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); // if (!trainertypes[trainertype]) { if (!Kernal.TrainerMetaData.ContainsKey(trainertype)) { @@ -212,19 +212,19 @@ public int pbGetTrainerTypeGender(TrainerTypes trainertype) { return ret.Value; } - public void pbTrainerName(string name=null,int outfit=0) { + public void TrainerName(string name=null,int outfit=0) { if (Global.playerID<0) { - pbChangePlayer(0); + ChangePlayer(0); } - TrainerTypes trainertype=pbGetPlayerTrainerType(); + TrainerTypes trainertype=GetPlayerTrainerType(); string trname=name; Trainer=new Trainer(trname,trainertype); Trainer.outfit=outfit; if (trname==null && this is IGameTextEntry t) { - trname=t.pbEnterPlayerName(Game._INTL("Your name?"),0,7); + trname=t.EnterPlayerName(Game._INTL("Your name?"),0,7); if (trname=="") { - int gender=pbGetTrainerTypeGender(trainertype); - trname=pbSuggestTrainerName(gender); + int gender=GetTrainerTypeGender(trainertype); + trname=SuggestTrainerName(gender); } } Trainer.name=trname; @@ -232,8 +232,8 @@ public void pbTrainerName(string name=null,int outfit=0) { PokemonTemp.begunNewGame=true; //new game because you changed your name? } - public string pbSuggestTrainerName(int gender) { - string userName=pbGetUserName(); + public string SuggestTrainerName(int gender) { + string userName=GetUserName(); //userName=userName.gsub(/\s+.*$/,""); // trim space if (userName.Length>0 && userName.Length<7) { //userName[0,1]=userName[0,1].upcase; //make first two characters cap @@ -265,7 +265,7 @@ public string pbSuggestTrainerName(int gender) { return getRandomNameEx(gender,null,1,7); } - public string pbGetUserName() { + public string GetUserName() { int buffersize=100; string getUserName=""; //new Win32API('advapi32.dll','GetUserName','pp','i'); int i = 0; do { //10.times; @@ -391,22 +391,22 @@ public string getRandomName(int maxLength=100) { #endregion #region Event timing utilities - public void pbTimeEvent(int? variableNumber,int secs=86400) { + public void TimeEvent(int? variableNumber,int secs=86400) { if (variableNumber != null && variableNumber.Value>=0) { if (GameVariables != null) { if (secs<0) secs=0; - DateTime timenow=Game.pbGetTimeNow(); + DateTime timenow=Game.GetTimeNow; GameVariables[variableNumber.Value]=new float[] {timenow.Ticks,secs}; if (GameMap != null) GameMap.refresh(); } } } - public void pbTimeEventDays(int? variableNumber,int days=0) { + public void TimeEventDays(int? variableNumber,int days=0) { if (variableNumber != null && variableNumber>=0) { if (GameVariables != null) { if (days<0) days=0; - DateTime timenow=Game.pbGetTimeNow(); + DateTime timenow=Game.GetTimeNow; float time=timenow.Ticks; float expiry=(time%86400.0f)+(days*86400.0f); GameVariables[variableNumber.Value]= new []{ time,expiry-time }; @@ -415,12 +415,12 @@ public void pbTimeEventDays(int? variableNumber,int days=0) { } } - public bool pbTimeEventValid(int? variableNumber) { + public bool TimeEventValid(int? variableNumber) { bool retval=false; if (variableNumber != null && variableNumber>=0 && GameVariables != null) { object value=GameVariables[variableNumber.Value]; if (value is float[] v && v.Length > 0) { //is Array - DateTime timenow=Game.pbGetTimeNow(); + DateTime timenow=Game.GetTimeNow; retval=(timenow.Ticks - v[0] > v[1]); // value[1] is age in seconds if (v[1]<=0) retval=false; // zero age } @@ -435,20 +435,20 @@ public bool pbTimeEventValid(int? variableNumber) { #region General-purpose utilities with dependencies /// - /// Similar to , but pauses the music as it fades out. + /// Similar to , but pauses the music as it fades out. /// /// /// Requires scripts "Audio" (for ) - /// and "SpriteWindow" (for ). + /// and "SpriteWindow" (for ). /// /// - public void pbFadeOutInWithMusic(int zViewport, Action block = null) { + public void FadeOutInWithMusic(int zViewport, Action block = null) { PokemonEssentials.Interface.IAudioBGS playingBGS=GameSystem.getPlayingBGS(); PokemonEssentials.Interface.IAudioBGM playingBGM=GameSystem.getPlayingBGM(); GameSystem.bgm_pause(1.0f); GameSystem.bgs_pause(1.0f); int pos=GameSystem.bgm_position; - pbFadeOutIn(zViewport, block: () => { + FadeOutIn(zViewport, block: () => { if (block != null) block.Invoke(); //(block_given ?) yield; GameSystem.bgm_position=pos; GameSystem.bgm_resume(playingBGM); @@ -475,16 +475,16 @@ public IWaveData getWaveDataUI(string filename,bool deleteFile=false) { } //switch (error) { // if (error == 1) //case 1: - // (this as IGameMessage).pbMessage(Game._INTL("The recorded data could not be found or saved.")); + // (this as IGameMessage).Message(Game._INTL("The recorded data could not be found or saved.")); // break; // else if (error == 2) //case 2: - // (this as IGameMessage).pbMessage(Game._INTL("The recorded data was in an invalid format.")); + // (this as IGameMessage).Message(Game._INTL("The recorded data was in an invalid format.")); // break; // else if (error == 3) //case 3: - // (this as IGameMessage).pbMessage(Game._INTL("The recorded data's format is not supported.")); + // (this as IGameMessage).Message(Game._INTL("The recorded data's format is not supported.")); // break; // else if (error == 4) //case 4: - // (this as IGameMessage).pbMessage(Game._INTL("There was no sound in the recording. Please ensure that a microphone is attached to the computer /and/ is ready.")); + // (this as IGameMessage).Message(Game._INTL("There was no sound in the recording. Please ensure that a microphone is attached to the computer /and/ is ready.")); // break; // else //default: // return error; @@ -504,20 +504,20 @@ public bool beginRecordUI() { case 0: return true; case 256+66: - (this as IGameMessage).pbMessage(Game._INTL("All recording devices are in use. Recording is not possible now.")); + (this as IGameMessage).Message(Game._INTL("All recording devices are in use. Recording is not possible now.")); return false; case 256+72: - (this as IGameMessage).pbMessage(Game._INTL("No supported recording device was found. Recording is not possible.")); + (this as IGameMessage).Message(Game._INTL("No supported recording device was found. Recording is not possible.")); return false; default: string buffer=new int[256].ToString(); //"\0"*256; //MciErrorString.call(code,buffer,256); - (this as IGameMessage).pbMessage(Game._INTL("Recording failed: {1}",buffer));//.gsub(/\x00/,"") + (this as IGameMessage).Message(Game._INTL("Recording failed: {1}",buffer));//.gsub(/\x00/,"") return false; } } - public virtual IList pbHideVisibleObjects() + public virtual IList HideVisibleObjects() { IList visibleObjects= new List(); //ToDo: ISpriteWindow? ////ObjectSpace.each_object(Sprite){|o| @@ -529,7 +529,7 @@ public virtual IList pbHideVisibleObjects() //} ////ObjectSpace.each_object(Viewport){|o| //ObjectSpace.each_object(Viewport){|o| - // if (!pbDisposed(o) && o.visible) { + // if (!Disposed(o) && o.visible) { // visibleObjects.Add(o); // o.visible=false; // } @@ -555,21 +555,21 @@ public virtual IList pbHideVisibleObjects() return visibleObjects; } - public void pbShowObjects(IList visibleObjects) { + public void ShowObjects(IList visibleObjects) { foreach (IViewport o in visibleObjects) { - if (this is IGameSpriteWindow s && !s.pbDisposed(o)) { + if (this is IGameSpriteWindow s && !s.Disposed(o)) { o.visible=true; } } } - public void pbLoadRpgxpScene(ISceneMap scene) { + public void LoadRpgxpScene(ISceneMap scene) { if (!(Scene is ISceneMap)) return; ISceneMap oldscene=Scene; Scene=scene; Graphics.freeze(); oldscene.disposeSpritesets(); - IList visibleObjects=pbHideVisibleObjects(); + IList visibleObjects=HideVisibleObjects(); Graphics.transition(15,null,0); //ToDo: revisit this again... Graphics.freeze(); while (Scene != null && !(Scene is ISceneMap)) { @@ -578,7 +578,7 @@ public void pbLoadRpgxpScene(ISceneMap scene) { Graphics.transition(15,null,0); //ToDo: revisit this again... Graphics.freeze(); oldscene.createSpritesets(); - pbShowObjects(visibleObjects); + ShowObjects(visibleObjects); Graphics.transition(20,null,0); //ToDo: revisit this again... Scene=oldscene; } @@ -588,7 +588,7 @@ public void pbLoadRpgxpScene(ISceneMap scene) { /// /// /// - public object pbGet(int? id) { + public object Get(int? id) { if (id == null || GameVariables == null) return 0; return GameVariables[id.Value]; } @@ -598,7 +598,7 @@ public object pbGet(int? id) { /// /// /// - public void pbSet(int? id,object value) { + public void Set(int? id,object value) { if (id != null && id>=0) { if (GameVariables != null) GameVariables[id.Value]=value; if (GameMap != null) GameMap.need_refresh = true; @@ -611,7 +611,7 @@ public void pbSet(int? id,object value) { /// Requires the script "PokemonMessages" /// /// - public bool pbCommonEvent(int id) { + public bool CommonEvent(int id) { if (id<0) return false; IGameCommonEvent ce=DataCommonEvents[id]; if (ce==null) return false; @@ -622,12 +622,12 @@ public bool pbCommonEvent(int id) { Graphics?.update(); Input.update(); interp.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); + if (this is IGameMessage m) m.UpdateSceneMap(); } while (interp.running); return true; } - public void pbExclaim(IGameCharacter[] @event,int id=Core.EXCLAMATION_ANIMATION_ID,bool tinting=false) { + public void Exclaim(IGameCharacter[] @event,int id=Core.EXCLAMATION_ANIMATION_ID,bool tinting=false) { ISprite sprite=null; if (@event?.Length > 0) { //is Array //List done=new List(); @@ -644,61 +644,61 @@ public void pbExclaim(IGameCharacter[] @event,int id=Core.EXCLAMATION_ANIMATION_ while (!sprite.disposed) { Graphics?.update(); Input.update(); - if (this is IGameMessage m) m.pbUpdateSceneMap(); + if (this is IGameMessage m) m.UpdateSceneMap(); } } - public void pbNoticePlayer(IGameCharacter @event) { + public void NoticePlayer(IGameCharacter @event) { if (this is IGameField f) { - if (!f.pbFacingEachOther(@event,GamePlayer)) { - pbExclaim(new IGameCharacter[] { @event }); + if (!f.FacingEachOther(@event,GamePlayer)) { + Exclaim(new IGameCharacter[] { @event }); } - f.pbTurnTowardEvent(GamePlayer,@event); - f.pbMoveTowardPlayer(@event); + f.TurnTowardEvent(GamePlayer,@event); + f.MoveTowardPlayer(@event); } } #endregion #region Loads Pokémon/item/trainer graphics [System.Obsolete("Unused")] - public string pbPokemonBitmapFile(Pokemons species,bool shiny,bool back=false) { + public string PokemonBitmapFile(Pokemons species,bool shiny,bool back=false) { if (shiny) { // Load shiny bitmap string ret=string.Format("Graphics/Battlers/{0}s{1}",species.ToString(),back ? "b" : ""); //rescue null - if ((this is IGameSpriteWindow g0) && g0.pbResolveBitmap(ret) == null) { + if ((this is IGameSpriteWindow g0) && g0.ResolveBitmap(ret) == null) { ret=string.Format("Graphics/Battlers/{0}s{1}",species,back ? "b" : ""); } return ret; } else { // Load normal bitmap string ret=string.Format("Graphics/Battlers/{0}{1}",species.ToString(),back ? "b" : ""); //rescue null - if ((this is IGameSpriteWindow g1) && g1.pbResolveBitmap(ret) == null) { + if ((this is IGameSpriteWindow g1) && g1.ResolveBitmap(ret) == null) { ret=string.Format("Graphics/Battlers/{0}{1}",species,back ? "b" : ""); } return ret; } } - public IAnimatedBitmap pbLoadPokemonBitmap(IPokemon pokemon, bool back = false) + public IAnimatedBitmap LoadPokemonBitmap(IPokemon pokemon, bool back = false) { - return pbLoadPokemonBitmapSpecies(pokemon, pokemon.Species, back); + return LoadPokemonBitmapSpecies(pokemon, pokemon.Species, back); } //Note: Returns an AnimatedBitmap, not a Bitmap - public virtual IAnimatedBitmap pbLoadPokemonBitmapSpecies(IPokemon pokemon, Pokemons species, bool back = false) + public virtual IAnimatedBitmap LoadPokemonBitmapSpecies(IPokemon pokemon, Pokemons species, bool back = false) { IAnimatedBitmap ret = null; //if (pokemon.isEgg?) { // bitmapFileName=string.Format("Graphics/Battlers/%segg",species.ToString()); //rescue null - // if (!pbResolveBitmap(bitmapFileName)) { + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Battlers/%03degg",species); - // if (!pbResolveBitmap(bitmapFileName)) { + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Battlers/egg"); // } // } - // bitmapFileName=pbResolveBitmap(bitmapFileName); + // bitmapFileName=ResolveBitmap(bitmapFileName); //} else { - // bitmapFileName=pbCheckPokemonBitmapFiles([species,back, + // bitmapFileName=CheckPokemonBitmapFiles([species,back, // (pokemon.isFemale?), // pokemon.isShiny?, // (pokemon.form rescue 0), @@ -721,20 +721,20 @@ public virtual IAnimatedBitmap pbLoadPokemonBitmapSpecies(IPokemon pokemon, Poke } //Note: Returns an AnimatedBitmap, not a Bitmap - public virtual IAnimatedBitmap pbLoadSpeciesBitmap(Pokemons species, bool female = false, int form = 0, bool shiny = false, bool shadow = false, bool back = false, bool egg = false) + public virtual IAnimatedBitmap LoadSpeciesBitmap(Pokemons species, bool female = false, int form = 0, bool shiny = false, bool shadow = false, bool back = false, bool egg = false) { IAnimatedBitmap ret = null; //if (egg) { - // bitmapFileName=string.Format("Graphics/Battlers/%segg",getConstantName(PBSpecies,species)) rescue null; - // if (!pbResolveBitmap(bitmapFileName)) { + // bitmapFileName=string.Format("Graphics/Battlers/%segg",getConstantName(Species,species)) rescue null; + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Battlers/%03degg",species); - // if (!pbResolveBitmap(bitmapFileName)) { + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Battlers/egg"); // } // } - // bitmapFileName=pbResolveBitmap(bitmapFileName); + // bitmapFileName=ResolveBitmap(bitmapFileName); //} else { - // bitmapFileName=pbCheckPokemonBitmapFiles([species,back,female,shiny,form,shadow]); + // bitmapFileName=CheckPokemonBitmapFiles([species,back,female,shiny,form,shadow]); //} //if (bitmapFileName) { // ret=new AnimatedBitmap(bitmapFileName); @@ -742,7 +742,7 @@ public virtual IAnimatedBitmap pbLoadSpeciesBitmap(Pokemons species, bool female return ret; } - public virtual string pbCheckPokemonBitmapFiles(params object[] args) { + public virtual string CheckPokemonBitmapFiles(params object[] args) { //Pokemons species=params[0]; //bool back=params[1]; //List<> factors=[]; @@ -773,13 +773,13 @@ public virtual string pbCheckPokemonBitmapFiles(params object[] args) { // } // } // string bitmapFileName=string.Format("Graphics/Battlers/%s%s%s%s%s%s", - // getConstantName(PBSpecies,species), + // getConstantName(Species,species), // tgender ? "f" : "", // tshiny ? "s" : "", // back ? "b" : "", // (tform!="" ? "_"+tform : ""), // tshadow ? "_shadow" : ""); //rescue null - // string ret=pbResolveBitmap(bitmapFileName); + // string ret=ResolveBitmap(bitmapFileName); // if (ret) return ret; // bitmapFileName=string.Format("Graphics/Battlers/%03d%s%s%s%s%s", // species, @@ -788,19 +788,19 @@ public virtual string pbCheckPokemonBitmapFiles(params object[] args) { // back ? "b" : "", // (tform!="" ? "_"+tform : ""), // tshadow ? "_shadow" : ""); - // ret=pbResolveBitmap(bitmapFileName); + // ret=ResolveBitmap(bitmapFileName); // if (ret != null) return ret; //} return null; } - public string pbLoadPokemonIcon(IPokemon pokemon) { - return null; //new AnimatedBitmap(pbPokemonIconFile(pokemon)).deanimate; + public string LoadPokemonIcon(IPokemon pokemon) { + return null; //new AnimatedBitmap(PokemonIconFile(pokemon)).deanimate; } - public virtual string pbPokemonIconFile(IPokemon pokemon) { + public virtual string PokemonIconFile(IPokemon pokemon) { string bitmapFileName=null; - //bitmapFileName=pbCheckPokemonIconFiles([pokemon.Species, + //bitmapFileName=CheckPokemonIconFiles([pokemon.Species, // (pokemon.isFemale?), // pokemon.isShiny?, // (pokemon.form rescue 0), @@ -809,17 +809,17 @@ public virtual string pbPokemonIconFile(IPokemon pokemon) { return bitmapFileName; } - public virtual string pbCheckPokemonIconFiles(object[] param,bool egg=false) { + public virtual string CheckPokemonIconFiles(object[] param,bool egg=false) { //Pokemons species=params[0]; //if (egg) { - // bitmapFileName=string.Format("Graphics/Icons/icon%segg",getConstantName(PBSpecies,species)); //rescue null - // if (!pbResolveBitmap(bitmapFileName)) { + // bitmapFileName=string.Format("Graphics/Icons/icon%segg",getConstantName(Species,species)); //rescue null + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Icons/icon%03degg",species) ; - // if (!pbResolveBitmap(bitmapFileName)) { + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Icons/iconEgg"); // } // } - // return pbResolveBitmap(bitmapFileName); + // return ResolveBitmap(bitmapFileName); //} else { // List<> factors=[]; // if (params[4] && params[4]!=false ) factors.Add([4,params[4],false]); // shadow @@ -849,12 +849,12 @@ public virtual string pbCheckPokemonIconFiles(object[] param,bool egg=false) { // } // } // bitmapFileName=string.Format("Graphics/Icons/icon%s%s%s%s%s", - // getConstantName(PBSpecies,species), + // getConstantName(Species,species), // tgender ? "f" : "", // tshiny ? "s" : "", // (tform!="" ? "_"+tform : ""), // tshadow ? "_shadow" : "") rescue null; - // string ret=pbResolveBitmap(bitmapFileName); + // string ret=ResolveBitmap(bitmapFileName); // if (ret != null) return ret; // bitmapFileName=string.Format("Graphics/Icons/icon%03d%s%s%s%s", // species, @@ -862,7 +862,7 @@ public virtual string pbCheckPokemonIconFiles(object[] param,bool egg=false) { // tshiny ? "s" : "", // (tform!="" ? "_"+tform : ""), // tshadow ? "_shadow" : ""); - // ret=pbResolveBitmap(bitmapFileName); + // ret=ResolveBitmap(bitmapFileName); // if (ret != null) return ret; // } //} @@ -874,148 +874,148 @@ public virtual string pbCheckPokemonIconFiles(object[] param,bool egg=false) { /// /// /// - public virtual string pbPokemonFootprintFile(Pokemons pokemon) { + public virtual string PokemonFootprintFile(Pokemons pokemon) { //if (!pokemon) return null; string bitmapFileName = null; //if (pokemon is Numeric) { - //bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%s",getConstantName(PBSpecies,pokemon)) rescue null; - //if (!pbResolveBitmap(bitmapFileName)) bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%03d",pokemon); + //bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%s",getConstantName(Species,pokemon)) rescue null; + //if (!ResolveBitmap(bitmapFileName)) bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%03d",pokemon); //} - //return pbResolveBitmap(bitmapFileName); + //return ResolveBitmap(bitmapFileName); return null; } - public virtual string pbPokemonFootprintFile(IPokemon pokemon) { + public virtual string PokemonFootprintFile(IPokemon pokemon) { if (pokemon == null) return null; string bitmapFileName = null; //{ - // bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%s_%d",getConstantName(PBSpecies,pokemon.Species),(pokemon.form rescue 0)); //rescue null - // if (!pbResolveBitmap(bitmapFileName)) { + // bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%s_%d",getConstantName(Species,pokemon.Species),(pokemon.form rescue 0)); //rescue null + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%03d_%d",pokemon.Species,(pokemon.form rescue 0)); //rescue null - // if (!pbResolveBitmap(bitmapFileName)) { - // bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%s",getConstantName(PBSpecies,pokemon.Species)); //rescue null - // if (!pbResolveBitmap(bitmapFileName)) { + // if (!ResolveBitmap(bitmapFileName)) { + // bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%s",getConstantName(Species,pokemon.Species)); //rescue null + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Icons/Footprints/footprint%03d",pokemon.Species); // } // } // } //} - //return pbResolveBitmap(bitmapFileName); + //return ResolveBitmap(bitmapFileName); return null; } - public virtual string pbItemIconFile(Items item) { + public virtual string ItemIconFile(Items item) { //if (!item) return null; string bitmapFileName=null; //if (item==0) { // bitmapFileName=string.Format("Graphics/Icons/itemBack"); //} else { - // bitmapFileName=string.Format("Graphics/Icons/item%s",getConstantName(PBItems,item)); //rescue null - // if (!pbResolveBitmap(bitmapFileName)) { + // bitmapFileName=string.Format("Graphics/Icons/item%s",getConstantName(Items,item)); //rescue null + // if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Icons/item%03d",item); // } //} return bitmapFileName; } - public virtual string pbMailBackFile(Items item) { + public virtual string MailBackFile(Items item) { //if (!item) return null; - //string bitmapFileName=string.Format("Graphics/Pictures/mail%s",getConstantName(PBItems,item)); //rescue null - //if (!pbResolveBitmap(bitmapFileName)) { + //string bitmapFileName=string.Format("Graphics/Pictures/mail%s",getConstantName(Items,item)); //rescue null + //if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Pictures/mail%03d",item); //} //return bitmapFileName; return null; } - public virtual string pbTrainerCharFile(TrainerTypes type) { + public virtual string TrainerCharFile(TrainerTypes type) { //if (!type) return null; - //bitmapFileName=string.Format("Graphics/Characters/trchar%s",getConstantName(PBTrainers,type)) rescue null; - //if (!pbResolveBitmap(bitmapFileName)) { + //bitmapFileName=string.Format("Graphics/Characters/trchar%s",getConstantName(Trainers,type)) rescue null; + //if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Characters/trchar%03d",type); //} //return bitmapFileName; return null; } - public virtual string pbTrainerCharNameFile(TrainerTypes type) { + public virtual string TrainerCharNameFile(TrainerTypes type) { //if (!type) return null; - //bitmapFileName=string.Format("trchar%s",getConstantName(PBTrainers,type)) rescue null; - //if (!pbResolveBitmap(string.Format("Graphics/Characters/"+bitmapFileName))) { + //bitmapFileName=string.Format("trchar%s",getConstantName(Trainers,type)) rescue null; + //if (!ResolveBitmap(string.Format("Graphics/Characters/"+bitmapFileName))) { // bitmapFileName=string.Format("trchar%03d",type); //} //return bitmapFileName; return null; } - public virtual string pbTrainerHeadFile(TrainerTypes type) { + public virtual string TrainerHeadFile(TrainerTypes type) { //if (!type) return null; - //bitmapFileName=string.Format("Graphics/Pictures/mapPlayer%s",getConstantName(PBTrainers,type)) rescue null; - //if (!pbResolveBitmap(bitmapFileName)) { + //bitmapFileName=string.Format("Graphics/Pictures/mapPlayer%s",getConstantName(Trainers,type)) rescue null; + //if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Pictures/mapPlayer%03d",type); //} //return bitmapFileName; return null; } - public virtual string pbPlayerHeadFile(TrainerTypes type) { + public virtual string PlayerHeadFile(TrainerTypes type) { //if (!type) return null; //int outfit=Game.GameData.Trainer ? Game.GameData.Trainer.outfit : 0; //string bitmapFileName=string.Format("Graphics/Pictures/mapPlayer%s_%d", - // getConstantName(PBTrainers,type),outfit); //rescue null - //if (!pbResolveBitmap(bitmapFileName)) { + // getConstantName(Trainers,type),outfit); //rescue null + //if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Pictures/mapPlayer%03d_%d",type,outfit); - // if (!pbResolveBitmap(bitmapFileName)) { - // bitmapFileName=pbTrainerHeadFile(type); + // if (!ResolveBitmap(bitmapFileName)) { + // bitmapFileName=TrainerHeadFile(type); // } //} //return bitmapFileName; return null; } - public virtual string pbTrainerSpriteFile(TrainerTypes type) { + public virtual string TrainerSpriteFile(TrainerTypes type) { //if (!type) return null; - //string bitmapFileName=string.Format("Graphics/Characters/trainer%s",getConstantName(PBTrainers,type)) rescue null; - //if (!pbResolveBitmap(bitmapFileName)) { + //string bitmapFileName=string.Format("Graphics/Characters/trainer%s",getConstantName(Trainers,type)) rescue null; + //if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Characters/trainer%03d",type); //} //return bitmapFileName; return null; } - public virtual string pbTrainerSpriteBackFile(TrainerTypes type) { + public virtual string TrainerSpriteBackFile(TrainerTypes type) { //if (!type) return null; - //bitmapFileName=string.Format("Graphics/Characters/trback%s",getConstantName(PBTrainers,type)) rescue null; - //if (!pbResolveBitmap(bitmapFileName)) { + //bitmapFileName=string.Format("Graphics/Characters/trback%s",getConstantName(Trainers,type)) rescue null; + //if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Characters/trback%03d",type); //} //return bitmapFileName; return null; } - public virtual string pbPlayerSpriteFile(TrainerTypes type) { + public virtual string PlayerSpriteFile(TrainerTypes type) { //if (!type) return null; //int outfit=Game.GameData.Trainer ? Game.GameData.Trainer.outfit : 0; //string bitmapFileName=string.Format("Graphics/Characters/trainer%s_%d", - // getConstantName(PBTrainers,type),outfit); //rescue null - //if (!pbResolveBitmap(bitmapFileName)) { + // getConstantName(Trainers,type),outfit); //rescue null + //if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Characters/trainer%03d_%d",type,outfit); - // if (!pbResolveBitmap(bitmapFileName)) { - // bitmapFileName=pbTrainerSpriteFile(type); + // if (!ResolveBitmap(bitmapFileName)) { + // bitmapFileName=TrainerSpriteFile(type); // } //} //return bitmapFileName; return null; } - public virtual string pbPlayerSpriteBackFile(TrainerTypes type) { + public virtual string PlayerSpriteBackFile(TrainerTypes type) { //if (!type) return null; //int outfit=Game.GameData.Trainer ? Game.GameData.Trainer.outfit : 0; //string bitmapFileName=string.Format("Graphics/Characters/trback%s_%d", - // getConstantName(PBTrainers,type),outfit); //rescue null - //if (!pbResolveBitmap(bitmapFileName)) { + // getConstantName(Trainers,type),outfit); //rescue null + //if (!ResolveBitmap(bitmapFileName)) { // bitmapFileName=string.Format("Graphics/Characters/trback%03d_%d",type,outfit); - // if (!pbResolveBitmap(bitmapFileName)) { - // bitmapFileName=pbTrainerSpriteBackFile(type); + // if (!ResolveBitmap(bitmapFileName)) { + // bitmapFileName=TrainerSpriteBackFile(type); // } //} //return bitmapFileName; @@ -1024,7 +1024,7 @@ public virtual string pbPlayerSpriteBackFile(TrainerTypes type) { #endregion #region Loads music and sound effects - public string pbResolveAudioSE(string file) { + public string ResolveAudioSE(string file) { if (file == null) return null; //if (RTP.exists("Audio/SE/"+file,new string[] { "", ".wav", ".mp3", ".ogg" })) { // return RTP.getPath("Audio/SE/"+file,new string[] { "", ".wav", ".mp3", ".ogg" }); @@ -1032,21 +1032,21 @@ public string pbResolveAudioSE(string file) { return null; } - public int pbCryFrameLength(Pokemons pokemon,float? pitch=null) { + public int CryFrameLength(Pokemons pokemon,float? pitch=null) { if (pokemon == Pokemons.NONE) return 0; if (pitch == null) pitch=100; pitch=pitch/100; if (pitch<=0) return 0; float playtime=0.0f; //if (pokemon is Numeric) { - string pkmnwav=pbResolveAudioSE(pbCryFile(pokemon)); + string pkmnwav=ResolveAudioSE(CryFile(pokemon)); if (pkmnwav != null) playtime = 0; //getPlayTime(pkmnwav); //ToDo: uncomment and finish... //} else if (!pokemon.isEgg) { // if (pokemon is IPokemonChatter p && p.chatter != null) { //pokemon.respond_to("chatter") // playtime=p.chatter.time; // pitch=1.0f; // } else { - // string pkmnwav=pbResolveAudioSE(pbCryFile(pokemon)); + // string pkmnwav=ResolveAudioSE(CryFile(pokemon)); // if (pkmnwav != null) playtime=getPlayTime(pkmnwav); // } //} @@ -1055,14 +1055,14 @@ public int pbCryFrameLength(Pokemons pokemon,float? pitch=null) { return (int)Math.Ceiling(playtime*Graphics.frame_rate)+4; } - public int pbCryFrameLength(IPokemon pokemon,float? pitch=null) { + public int CryFrameLength(IPokemon pokemon,float? pitch=null) { if (!pokemon.IsNotNullOrNone()) return 0; if (pitch == null) pitch=100; pitch=pitch/100; if (pitch<=0) return 0; float playtime=0.0f; //if (pokemon is Numeric) { - // string pkmnwav=pbResolveAudioSE(pbCryFile(pokemon)); + // string pkmnwav=ResolveAudioSE(CryFile(pokemon)); // if (pkmnwav != null) playtime=getPlayTime(pkmnwav); //} else if (!pokemon.isEgg) { @@ -1070,7 +1070,7 @@ public int pbCryFrameLength(IPokemon pokemon,float? pitch=null) { playtime=p.chatter.time(); pitch=1.0f; } else { - string pkmnwav=pbResolveAudioSE(pbCryFile(pokemon)); + string pkmnwav=ResolveAudioSE(CryFile(pokemon)); if (pkmnwav != null) playtime = 0; //getPlayTime(pkmnwav); //ToDo: uncomment and finish... } } @@ -1079,114 +1079,114 @@ public int pbCryFrameLength(IPokemon pokemon,float? pitch=null) { return (int)Math.Ceiling(playtime*Graphics.frame_rate)+4; } - public void pbPlayCry(IPokemon pokemon,int volume=90,float? pitch=null) { + public void PlayCry(IPokemon pokemon,int volume=90,float? pitch=null) { if (pokemon == null) return; if (!pokemon.isEgg) { if (pokemon is IPokemonChatter p && p.chatter != null) { //pokemon.respond_to("chatter") p.chatter.play(); } else { - string pkmnwav=pbCryFile(pokemon); + string pkmnwav=CryFile(pokemon); if (pkmnwav != null) { - //pbSEPlay(new AudioTrack().initialize(pkmnwav,volume, + //SEPlay(new AudioTrack().initialize(pkmnwav,volume, // pitch != null ? pitch : (pokemon.HP*25/pokemon.TotalHP)+75)); //rescue null } } } } - public void pbPlayCry(Pokemons pokemon,int volume=90,float? pitch=null) { + public void PlayCry(Pokemons pokemon,int volume=90,float? pitch=null) { if (pokemon == Pokemons.NONE) return; //if (pokemon is Numeric) { - string pkmnwav=pbCryFile(pokemon); + string pkmnwav=CryFile(pokemon); if (pkmnwav != null) { - //pbSEPlay(new AudioTrack().initialize(pkmnwav,volume,pitch != null ? pitch : 100)); //rescue null + //SEPlay(new AudioTrack().initialize(pkmnwav,volume,pitch != null ? pitch : 100)); //rescue null } //} } - public string pbCryFile(Pokemons pokemon) { + public string CryFile(Pokemons pokemon) { if (pokemon == Pokemons.NONE) return null; //if (pokemon is Numeric) { string filename=string.Format("Cries/{0}Cry",pokemon.ToString()); //rescue null - if (pbResolveAudioSE(filename) == null) filename=string.Format("Cries/%03dCry",pokemon); - if (pbResolveAudioSE(filename) != null) return filename; + if (ResolveAudioSE(filename) == null) filename=string.Format("Cries/%03dCry",pokemon); + if (ResolveAudioSE(filename) != null) return filename; //} return null; } - public string pbCryFile(IPokemon pokemon) { + public string CryFile(IPokemon pokemon) { if (pokemon == null) return null; if (!pokemon.isEgg) { string filename=string.Format("Cries/{0}Cry_{1}",pokemon.Species.ToString(),pokemon is IPokemonMultipleForms f0 ? f0.form : 0); //rescue 0 rescue null - if (pbResolveAudioSE(filename) == null) filename=string.Format("Cries/{0}Cry_{1}",pokemon.Species,pokemon is IPokemonMultipleForms f1 ? f1.form : 0); //rescue 0 - if (pbResolveAudioSE(filename) == null) { + if (ResolveAudioSE(filename) == null) filename=string.Format("Cries/{0}Cry_{1}",pokemon.Species,pokemon is IPokemonMultipleForms f1 ? f1.form : 0); //rescue 0 + if (ResolveAudioSE(filename) == null) { filename=string.Format("Cries/{0}Cry",pokemon.Species.ToString()); //rescue null; } - if (pbResolveAudioSE(filename) == null) filename=string.Format("Cries/{0}Cry",pokemon.Species); - if (pbResolveAudioSE(filename) != null) return filename; + if (ResolveAudioSE(filename) == null) filename=string.Format("Cries/{0}Cry",pokemon.Species); + if (ResolveAudioSE(filename) != null) return filename; } return null; } - public IAudioBGM pbGetWildBattleBGM(Pokemons species) { + public IAudioBGM GetWildBattleBGM(Pokemons species) { if (Global.nextBattleBGM != null) { return Global.nextBattleBGM.clone(); } IAudioBGM ret=null; if (ret == null && GameMap != null) { // Check map-specific metadata - //IPokemonMetadata music=pbGetMetadata(GameMap.map_id,MetadataMapWildBattleBGM); - string music=pbGetMetadata(GameMap.map_id).Map.WildBattleBGM; + //IPokemonMetadata music=GetMetadata(GameMap.map_id,MetadataMapWildBattleBGM); + string music=GetMetadata(GameMap.map_id).Map.WildBattleBGM; if (music != null && music!="") { - ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile(music); } } if (ret == null) { // Check global metadata - //IPokemonMetadata music=pbGetMetadata(0,MetadataWildBattleBGM); - string music=pbGetMetadata(0).Map.WildBattleBGM; + //IPokemonMetadata music=GetMetadata(0,MetadataWildBattleBGM); + string music=GetMetadata(0).Map.WildBattleBGM; if (music != null && music!="") { - ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile(music); } } - if (ret == null) ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile("002-Battle02"); + if (ret == null) ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile("002-Battle02"); return ret; } - public IAudioME pbGetWildVictoryME() { + public IAudioME GetWildVictoryME() { if (Global.nextBattleME != null) { return Global.nextBattleME.clone(); } IAudioME ret=null; if (ret == null && GameMap != null) { // Check map-specific metadata - //string music=pbGetMetadata(GameMap.map_id,MetadataMapWildVictoryME); - string music=pbGetMetadata(GameMap.map_id).Map.WildVictoryME; + //string music=GetMetadata(GameMap.map_id,MetadataMapWildVictoryME); + string music=GetMetadata(GameMap.map_id).Map.WildVictoryME; if (music != null && music!="") { - ret=(IAudioME)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioME)(this as IGameAudioPlay).StringToAudioFile(music); } } if (ret == null) { // Check global metadata - //string music=pbGetMetadata(0,MetadataWildVictoryME); - string music=pbGetMetadata(GameMap.map_id).Map.WildVictoryME; + //string music=GetMetadata(0,MetadataWildVictoryME); + string music=GetMetadata(GameMap.map_id).Map.WildVictoryME; if (music != null && music!="") { - ret=(IAudioME)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioME)(this as IGameAudioPlay).StringToAudioFile(music); } } - if (ret == null) ret=(IAudioME)(this as IGameAudioPlay).pbStringToAudioFile("001-Victory01"); + if (ret == null) ret=(IAudioME)(this as IGameAudioPlay).StringToAudioFile("001-Victory01"); ret.name="../../Audio/ME/"+ret.name; return ret; } - public void pbPlayTrainerIntroME(TrainerTypes trainertype) { - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + public void PlayTrainerIntroME(TrainerTypes trainertype) { + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); if (Kernal.TrainerMetaData.ContainsKey(trainertype)) { //Kernal.TrainerMetaData[trainertype] != null string bgm=Kernal.TrainerMetaData[trainertype].IntroME; //trainertypes[trainertype][6]; if (!string.IsNullOrEmpty(bgm)) { //!=null && bgm!="" - IAudioME bgm_=(IAudioME)(this as IGameAudioPlay).pbStringToAudioFile(bgm); - (this as IGameAudioPlay).pbMEPlay(bgm_); + IAudioME bgm_=(IAudioME)(this as IGameAudioPlay).StringToAudioFile(bgm); + (this as IGameAudioPlay).MEPlay(bgm_); return; } } @@ -1194,12 +1194,12 @@ public void pbPlayTrainerIntroME(TrainerTypes trainertype) { } // can be a PokeBattle_Trainer or an array of PokeBattle_Trainer - public IAudioBGM pbGetTrainerBattleBGM(params ITrainer[] trainer) { + public IAudioBGM GetTrainerBattleBGM(params ITrainer[] trainer) { if (Global.nextBattleBGM != null) { return Global.nextBattleBGM.clone(); } string music=null; - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); ITrainer[] trainerarray=new ITrainer[0]; if (trainer == null) { //is Array && trainer.Length > 1 @@ -1216,34 +1216,34 @@ public IAudioBGM pbGetTrainerBattleBGM(params ITrainer[] trainer) { //} IAudioBGM ret=null; if (music != null && music!="") { - ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile(music); } if (ret == null && GameMap != null) { // Check map-specific metadata - //music=pbGetMetadata(GameMap.map_id,MetadataMapTrainerBattleBGM); - music=pbGetMetadata(GameMap.map_id).Map.TrainerBattleBGM; + //music=GetMetadata(GameMap.map_id,MetadataMapTrainerBattleBGM); + music=GetMetadata(GameMap.map_id).Map.TrainerBattleBGM; if (music!=null && music!="") { - ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile(music); } } if (ret == null) { // Check global metadata - //music=pbGetMetadata(0,MetadataTrainerBattleBGM); - music=pbGetMetadata(GameMap.map_id).Map.TrainerBattleBGM; + //music=GetMetadata(0,MetadataTrainerBattleBGM); + music=GetMetadata(GameMap.map_id).Map.TrainerBattleBGM; if (music!=null && music!="") { - ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile(music); } } - if (ret == null) ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile("005-Boss01"); + if (ret == null) ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile("005-Boss01"); return ret; } - public IAudioBGM pbGetTrainerBattleBGMFromType(TrainerTypes trainertype) { + public IAudioBGM GetTrainerBattleBGMFromType(TrainerTypes trainertype) { if (Global.nextBattleBGM != null) { return Global.nextBattleBGM.clone(); } string music=null; - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); if (Kernal.TrainerMetaData.ContainsKey(trainertype)) { //trainertypes[trainertype] != null music=Kernal.TrainerMetaData[trainertype].BattleBGM; //trainertypes[trainertype][4]; @@ -1251,35 +1251,35 @@ public IAudioBGM pbGetTrainerBattleBGMFromType(TrainerTypes trainertype) { //} IAudioBGM ret=null; if (music!=null && music!="") { - ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile(music); } if (ret == null && GameMap != null) { // Check map-specific metadata - //music=pbGetMetadata(GameMap.map_id,MetadataMapTrainerBattleBGM); - music=pbGetMetadata(GameMap.map_id).Map.TrainerBattleBGM; + //music=GetMetadata(GameMap.map_id,MetadataMapTrainerBattleBGM); + music=GetMetadata(GameMap.map_id).Map.TrainerBattleBGM; if (music!=null && music!="") { - ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile(music); } } if (ret == null) { // Check global metadata - //music=pbGetMetadata(0,MetadataTrainerBattleBGM); - music=pbGetMetadata(GameMap.map_id).Map.TrainerBattleBGM; + //music=GetMetadata(0,MetadataTrainerBattleBGM); + music=GetMetadata(GameMap.map_id).Map.TrainerBattleBGM; if (music!=null && music!="") { - ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile(music); } } - if (ret == null) ret=(IAudioBGM)(this as IGameAudioPlay).pbStringToAudioFile("005-Boss01"); + if (ret == null) ret=(IAudioBGM)(this as IGameAudioPlay).StringToAudioFile("005-Boss01"); return ret; } // can be a PokeBattle_Trainer or an array of PokeBattle_Trainer - public IAudioME pbGetTrainerVictoryME(params ITrainer[] trainer) { + public IAudioME GetTrainerVictoryME(params ITrainer[] trainer) { if (Global.nextBattleME != null) { return Global.nextBattleME.clone(); } string music=null; - //pbRgssOpen("Data/trainertypes.dat","rb"){|f| + //RgssOpen("Data/trainertypes.dat","rb"){|f| // trainertypes=Marshal.load(f); //if (!trainer is Array) { // trainerarray= new []{ trainer }; @@ -1295,222 +1295,222 @@ public IAudioME pbGetTrainerVictoryME(params ITrainer[] trainer) { //} IAudioME ret=null; if (music!=null && music!="") { - ret=(IAudioME)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioME)(this as IGameAudioPlay).StringToAudioFile(music); } if (ret == null && GameMap != null) { // Check map-specific metadata - //music=pbGetMetadata(GameMap.map_id,MetadataMapTrainerVictoryME); - music=pbGetMetadata(GameMap.map_id).Map.TrainerVictoryME; + //music=GetMetadata(GameMap.map_id,MetadataMapTrainerVictoryME); + music=GetMetadata(GameMap.map_id).Map.TrainerVictoryME; if (music!=null && music!="") { - ret=(IAudioME)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioME)(this as IGameAudioPlay).StringToAudioFile(music); } } if (ret == null) { // Check global metadata - //music=pbGetMetadata(0,MetadataTrainerVictoryME); - music=pbGetMetadata(GameMap.map_id).Map.TrainerVictoryME; + //music=GetMetadata(0,MetadataTrainerVictoryME); + music=GetMetadata(GameMap.map_id).Map.TrainerVictoryME; if (music!=null && music!="") { - ret=(IAudioME)(this as IGameAudioPlay).pbStringToAudioFile(music); + ret=(IAudioME)(this as IGameAudioPlay).StringToAudioFile(music); } } - if (ret == null) ret=(IAudioME)(this as IGameAudioPlay).pbStringToAudioFile("001-Victory01"); + if (ret == null) ret=(IAudioME)(this as IGameAudioPlay).StringToAudioFile("001-Victory01"); ret.name="../../Audio/ME/"+ret.name; return ret; } #endregion #region Creating and storing Pokémon - public bool pbBoxesFull() { + public bool BoxesFull() { return Trainer == null || (Trainer.party.Length==Features.LimitPokemonPartySize && PokemonStorage.full); } - public void pbNickname(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { + public void Nickname(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { string speciesname=Game._INTL(pokemon.Species.ToString(TextScripts.Name)); - if ((this as IGameMessage).pbConfirmMessage(Game._INTL("Would you like to give a nickname to {1}?",speciesname))) { + if ((this as IGameMessage).ConfirmMessage(Game._INTL("Would you like to give a nickname to {1}?",speciesname))) { string helptext=Game._INTL("{1}'s nickname?",speciesname); - string newname=this is IGameTextEntry t ? t.pbEnterPokemonName(helptext,0,Pokemon.NAMELIMIT,"",pokemon) : speciesname; + string newname=this is IGameTextEntry t ? t.EnterPokemonName(helptext,0,Pokemon.NAMELIMIT,"",pokemon) : speciesname; //if (newname!="") pokemon.Name=newname; if (newname!="") (pokemon as Pokemon).SetNickname(newname); } } - public void pbStorePokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { - if (pbBoxesFull()) { - (this as IGameMessage).pbMessage(Game._INTL(@"There's no more room for Pokémon!\1")); - (this as IGameMessage).pbMessage(Game._INTL("The Pokémon Boxes are full and can't accept any more!")); + public void StorePokemon(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { + if (BoxesFull()) { + (this as IGameMessage).Message(Game._INTL(@"There's no more room for Pokémon!\1")); + (this as IGameMessage).Message(Game._INTL("The Pokémon Boxes are full and can't accept any more!")); return; } - pokemon.pbRecordFirstMoves(); + pokemon.RecordFirstMoves(); if (Trainer.party.Length < Features.LimitPokemonPartySize) { //ToDo: Change to `.Add(Pokemon)`? Trainer.party[Trainer.party.Length]=pokemon; } else { int oldcurbox=PokemonStorage.currentBox; - int storedbox=PokemonStorage.pbStoreCaught(pokemon); + int storedbox=PokemonStorage.StoreCaught(pokemon); string curboxname=PokemonStorage[oldcurbox].name; string boxname=PokemonStorage[storedbox].name; string creator=null; - if (Global.seenStorageCreator) creator=pbGetStorageCreator(); + if (Global.seenStorageCreator) creator=GetStorageCreator(); if (storedbox!=oldcurbox) { if (!string.IsNullOrEmpty(creator)) { - (this as IGameMessage).pbMessage(Game._INTL(@"Box ""{1}"" on {2}'s PC was full.\1",curboxname,creator)); + (this as IGameMessage).Message(Game._INTL(@"Box ""{1}"" on {2}'s PC was full.\1",curboxname,creator)); } else { - (this as IGameMessage).pbMessage(Game._INTL(@"Box ""{1}"" on someone's PC was full.\1",curboxname)); + (this as IGameMessage).Message(Game._INTL(@"Box ""{1}"" on someone's PC was full.\1",curboxname)); } - (this as IGameMessage).pbMessage(Game._INTL("{1} was transferred to box \"{2}.\"",pokemon.Name,boxname)); + (this as IGameMessage).Message(Game._INTL("{1} was transferred to box \"{2}.\"",pokemon.Name,boxname)); } else { if (!string.IsNullOrEmpty(creator)) { - (this as IGameMessage).pbMessage(Game._INTL(@"{1} was transferred to {2}'s PC.\1",pokemon.Name,creator)); + (this as IGameMessage).Message(Game._INTL(@"{1} was transferred to {2}'s PC.\1",pokemon.Name,creator)); } else { - (this as IGameMessage).pbMessage(Game._INTL(@"{1} was transferred to someone's PC.\1",pokemon.Name)); + (this as IGameMessage).Message(Game._INTL(@"{1} was transferred to someone's PC.\1",pokemon.Name)); } - (this as IGameMessage).pbMessage(Game._INTL("It was stored in box \"{1}.\"",boxname)); + (this as IGameMessage).Message(Game._INTL("It was stored in box \"{1}.\"",boxname)); } } } - public void pbNicknameAndStore(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { - if (pbBoxesFull()) { - (this as IGameMessage).pbMessage(Game._INTL(@"There's no more room for Pokémon!\1")); - (this as IGameMessage).pbMessage(Game._INTL("The Pokémon Boxes are full and can't accept any more!")); + public void NicknameAndStore(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { + if (BoxesFull()) { + (this as IGameMessage).Message(Game._INTL(@"There's no more room for Pokémon!\1")); + (this as IGameMessage).Message(Game._INTL("The Pokémon Boxes are full and can't accept any more!")); return; } Trainer.seen[pokemon.Species]=true; Trainer.owned[pokemon.Species]=true; - pbNickname(pokemon); - pbStorePokemon(pokemon); + Nickname(pokemon); + StorePokemon(pokemon); } - public bool pbAddPokemon(Pokemons pkmn,int? level=null,bool seeform=true) { + public bool AddPokemon(Pokemons pkmn,int? level=null,bool seeform=true) { if (pkmn == Pokemons.NONE || Trainer == null) return false; IPokemon pokemon = null; - if (pbBoxesFull()) { - (this as IGameMessage).pbMessage(Game._INTL(@"There's no more room for Pokémon!\1")); - (this as IGameMessage).pbMessage(Game._INTL("The Pokémon Boxes are full and can't accept any more!")); + if (BoxesFull()) { + (this as IGameMessage).Message(Game._INTL(@"There's no more room for Pokémon!\1")); + (this as IGameMessage).Message(Game._INTL("The Pokémon Boxes are full and can't accept any more!")); return false; } //if (pokemon is String || pokemon is Symbol) { - // pokemon=getID(PBSpecies,pokemon); + // pokemon=getID(Species,pokemon); //} if (level != null) { //pokemon is Pokemons && level is int //pokemon=new Pokemon(pokemon.Species,level:(byte)level.Value,original:Trainer); pokemon=new Monster.Pokemon(pkmn,level:(byte)level.Value,original:Trainer); } string speciesname=Game._INTL(pokemon.Species.ToString(TextScripts.Name)); - (this as IGameMessage).pbMessage(Game._INTL(@"{1} obtained {2}!\\se[PokemonGet]\1",Trainer.name,speciesname)); - pbNicknameAndStore(pokemon); - if (seeform) pbSeenForm(pokemon); + (this as IGameMessage).Message(Game._INTL(@"{1} obtained {2}!\\se[PokemonGet]\1",Trainer.name,speciesname)); + NicknameAndStore(pokemon); + if (seeform) SeenForm(pokemon); return true; } - public bool pbAddPokemon(IPokemon pokemon,int? level=null,bool seeform=true) { + public bool AddPokemon(IPokemon pokemon,int? level=null,bool seeform=true) { if (!pokemon.IsNotNullOrNone() || Trainer == null) return false; - if (pbBoxesFull()) { - (this as IGameMessage).pbMessage(Game._INTL(@"There's no more room for Pokémon!\1")); - (this as IGameMessage).pbMessage(Game._INTL("The Pokémon Boxes are full and can't accept any more!")); + if (BoxesFull()) { + (this as IGameMessage).Message(Game._INTL(@"There's no more room for Pokémon!\1")); + (this as IGameMessage).Message(Game._INTL("The Pokémon Boxes are full and can't accept any more!")); return false; } string speciesname=Game._INTL(pokemon.Species.ToString(TextScripts.Name)); - (this as IGameMessage).pbMessage(Game._INTL(@"{1} obtained {2}!\\se[PokemonGet]\1",Trainer.name,speciesname)); - pbNicknameAndStore(pokemon); - if (seeform) pbSeenForm(pokemon); + (this as IGameMessage).Message(Game._INTL(@"{1} obtained {2}!\\se[PokemonGet]\1",Trainer.name,speciesname)); + NicknameAndStore(pokemon); + if (seeform) SeenForm(pokemon); return true; } - public bool pbAddPokemonSilent(Pokemons pkmn,int? level=null,bool seeform=true) { - if (pkmn == Pokemons.NONE || pbBoxesFull() || Trainer == null) return false; + public bool AddPokemonSilent(Pokemons pkmn,int? level=null,bool seeform=true) { + if (pkmn == Pokemons.NONE || BoxesFull() || Trainer == null) return false; IPokemon pokemon = null; //if (pokemon is String || pokemon is Symbol) { - // pokemon=getID(PBSpecies,pokemon); + // pokemon=getID(Species,pokemon); //} if (level != null) { //pokemon is Integer && level is int pokemon=new Pokemon(pkmn,level:(byte)level.Value,original:Trainer); } Trainer.seen[pokemon.Species]=true; Trainer.owned[pokemon.Species]=true; - if (seeform) pbSeenForm(pokemon); - pokemon.pbRecordFirstMoves(); + if (seeform) SeenForm(pokemon); + pokemon.RecordFirstMoves(); if (Trainer.party.Length=Features.LimitPokemonPartySize) return false; IPokemon pokemon = null; //if (pokemon is String || pokemon is Symbol) { - // pokemon=getID(PBSpecies,pokemon); + // pokemon=getID(Species,pokemon); //} if (level != null) { //pokemon is Integer && level is int pokemon=new Pokemon(pkmn,level:(byte)level.Value,original:Trainer); } string speciesname=Game._INTL(pokemon.Species.ToString(TextScripts.Name)); - (this as IGameMessage).pbMessage(Game._INTL(@"{1} obtained {2}!\\se[PokemonGet]\1",Trainer.name,speciesname)); - pbNicknameAndStore(pokemon); - if (seeform) pbSeenForm(pokemon); + (this as IGameMessage).Message(Game._INTL(@"{1} obtained {2}!\\se[PokemonGet]\1",Trainer.name,speciesname)); + NicknameAndStore(pokemon); + if (seeform) SeenForm(pokemon); return true; } - public bool pbAddToParty(IPokemon pokemon,int? level=null,bool seeform=true) { + public bool AddToParty(IPokemon pokemon,int? level=null,bool seeform=true) { if (!pokemon.IsNotNullOrNone() || Trainer == null || Trainer.party.Length>=Features.LimitPokemonPartySize) return false; string speciesname=Game._INTL(pokemon.Species.ToString(TextScripts.Name)); - (this as IGameMessage).pbMessage(Game._INTL(@"{1} obtained {2}!\\se[PokemonGet]\1",Trainer.name,speciesname)); - pbNicknameAndStore(pokemon); - if (seeform) pbSeenForm(pokemon); + (this as IGameMessage).Message(Game._INTL(@"{1} obtained {2}!\\se[PokemonGet]\1",Trainer.name,speciesname)); + NicknameAndStore(pokemon); + if (seeform) SeenForm(pokemon); return true; } - public bool pbAddToPartySilent(Pokemons pkmn,int? level=null,bool seeform=true) { + public bool AddToPartySilent(Pokemons pkmn,int? level=null,bool seeform=true) { if (pkmn == Pokemons.NONE || Trainer == null || Trainer.party.Length>=Features.LimitPokemonPartySize) return false; IPokemon pokemon = null; //if (pokemon is String || pokemon is Symbol) { - // pokemon=getID(PBSpecies,pokemon); + // pokemon=getID(Species,pokemon); //} if (level != null) { //pokemon is Integer && level is int pokemon=new Pokemon(pkmn,level:(byte)level.Value,original:Trainer); } Trainer.seen[pokemon.Species]=true; Trainer.owned[pokemon.Species]=true; - if (seeform) pbSeenForm(pokemon); - pokemon.pbRecordFirstMoves(); + if (seeform) SeenForm(pokemon); + pokemon.RecordFirstMoves(); Trainer.party[Trainer.party.Length]=pokemon; return true; } - public bool pbAddToPartySilent(IPokemon pokemon,int? level=null,bool seeform=true) { + public bool AddToPartySilent(IPokemon pokemon,int? level=null,bool seeform=true) { if (!pokemon.IsNotNullOrNone() || Trainer == null || Trainer.party.Length>=Features.LimitPokemonPartySize) return false; Trainer.seen[pokemon.Species]=true; Trainer.owned[pokemon.Species]=true; - if (seeform) pbSeenForm(pokemon); - pokemon.pbRecordFirstMoves(); + if (seeform) SeenForm(pokemon); + pokemon.RecordFirstMoves(); Trainer.party[Trainer.party.Length]=pokemon; return true; } - public bool pbAddForeignPokemon(Pokemons pkmn,int? level=null,string ownerName=null,string nickname=null,int ownerGender=0,bool seeform=true) { + public bool AddForeignPokemon(Pokemons pkmn,int? level=null,string ownerName=null,string nickname=null,int ownerGender=0,bool seeform=true) { if (pkmn == Pokemons.NONE || Trainer == null || Trainer.party.Length>=Features.LimitPokemonPartySize) return false; IPokemon pokemon = null; //if (pokemon is String || pokemon is Symbol) { - // pokemon=getID(PBSpecies,pokemon); + // pokemon=getID(Species,pokemon); //} if (level != null) { //pokemon is Integer && level is int pokemon=new Pokemon(pkmn,level:(byte)level.Value,original:Trainer); @@ -1527,18 +1527,18 @@ public bool pbAddForeignPokemon(Pokemons pkmn,int? level=null,string ownerName=n //Recalculate stats pokemon.calcStats(); if (ownerName != null) { - (this as IGameMessage).pbMessage(Game._INTL("{1} received a Pokémon from {2}.\\se[PokemonGet]\\1",Trainer.name,ownerName)); + (this as IGameMessage).Message(Game._INTL("{1} received a Pokémon from {2}.\\se[PokemonGet]\\1",Trainer.name,ownerName)); } else { - (this as IGameMessage).pbMessage(Game._INTL("{1} received a Pokémon.\\se[PokemonGet]\\1",Trainer.name)); + (this as IGameMessage).Message(Game._INTL("{1} received a Pokémon.\\se[PokemonGet]\\1",Trainer.name)); } - pbStorePokemon(pokemon); + StorePokemon(pokemon); Trainer.seen[pokemon.Species]=true; Trainer.owned[pokemon.Species]=true; - if (seeform) pbSeenForm(pokemon); + if (seeform) SeenForm(pokemon); return true; } - public bool pbAddForeignPokemon(IPokemon pokemon,int? level=null,string ownerName=null,string nickname=null,int ownerGender=0,bool seeform=true) { + public bool AddForeignPokemon(IPokemon pokemon,int? level=null,string ownerName=null,string nickname=null,int ownerGender=0,bool seeform=true) { if (!pokemon.IsNotNullOrNone() || Trainer == null || Trainer.party.Length>=Features.LimitPokemonPartySize) return false; //Set original trainer to a foreign one (if ID isn't already foreign) if (pokemon.trainerID==Trainer.id) { @@ -1552,30 +1552,30 @@ public bool pbAddForeignPokemon(IPokemon pokemon,int? level=null,string ownerNam //Recalculate stats pokemon.calcStats(); if (ownerName != null) { - (this as IGameMessage).pbMessage(Game._INTL("{1} received a Pokémon from {2}.\\se[PokemonGet]\\1",Trainer.name,ownerName)); + (this as IGameMessage).Message(Game._INTL("{1} received a Pokémon from {2}.\\se[PokemonGet]\\1",Trainer.name,ownerName)); } else { - (this as IGameMessage).pbMessage(Game._INTL("{1} received a Pokémon.\\se[PokemonGet]\\1",Trainer.name)); + (this as IGameMessage).Message(Game._INTL("{1} received a Pokémon.\\se[PokemonGet]\\1",Trainer.name)); } - pbStorePokemon(pokemon); + StorePokemon(pokemon); Trainer.seen[pokemon.Species]=true; Trainer.owned[pokemon.Species]=true; - if (seeform) pbSeenForm(pokemon); + if (seeform) SeenForm(pokemon); return true; } - public bool pbGenerateEgg(Pokemons pkmn,string text="") { + public bool GenerateEgg(Pokemons pkmn,string text="") { if (pkmn == Pokemons.NONE || Trainer == null || Trainer.party.Length>=Features.LimitPokemonPartySize) return false; IPokemon pokemon = null; //if (pokemon is String || pokemon is Symbol) { - // pokemon=getID(PBSpecies,pokemon); + // pokemon=getID(Species,pokemon); //} //if (pokemon is int) { //pokemon=new Pokemon(pokemon.Species,level:Core.EGGINITIALLEVEL,orignal:Trainer); pokemon=new Pokemon(pokemon.Species,isEgg:true); //} // Get egg steps - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,pokemon.Species,21); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pokemon.Species,21); int eggsteps=0; //dexdata.fgetw(); //dexdata.close(); // Set egg's details @@ -1588,11 +1588,11 @@ public bool pbGenerateEgg(Pokemons pkmn,string text="") { return true; } - public bool pbGenerateEgg(IPokemon pokemon,string text="") { + public bool GenerateEgg(IPokemon pokemon,string text="") { if (!pokemon.IsNotNullOrNone() || Trainer == null || Trainer.party.Length>=Features.LimitPokemonPartySize) return false; // Get egg steps - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,pokemon.Species,21); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pokemon.Species,21); int eggsteps=0; //dexdata.fgetw(); //dexdata.close(); // Set egg's details @@ -1605,7 +1605,7 @@ public bool pbGenerateEgg(IPokemon pokemon,string text="") { return true; } - public bool pbRemovePokemonAt(int index) { + public bool RemovePokemonAt(int index) { if (index<0 || Trainer == null || index>=Trainer.party.Length) return false; bool haveAble=false; for (int i = 0; i < Trainer.party.Length; i++) { @@ -1618,11 +1618,11 @@ public bool pbRemovePokemonAt(int index) { return true; } - public void pbSeenForm(IPokemon poke) {//, int gender = 0, int form = 0 + public void SeenForm(IPokemon poke) {//, int gender = 0, int form = 0 //if (Trainer.formseen==null) Trainer.formseen=new[]; //if (Trainer.formlastseen==null) Trainer.formlastseen=new[]; //if (poke is String || poke is Symbol) { - // poke=getID(PBSpecies,poke); + // poke=getID(Species,poke); //} Pokemons species = Pokemons.NONE; //if (poke is IPokemon) { @@ -1630,14 +1630,14 @@ public void pbSeenForm(IPokemon poke) {//, int gender = 0, int form = 0 int form = poke is IPokemonMultipleForms f ? f.form : 0; //rescue 0 species = poke.Species; //} - pbSeenForm(species, gender, form); + SeenForm(species, gender, form); } - public void pbSeenForm(Pokemons poke,int gender=0,int form=0) { //ToDo: redo this function... + public void SeenForm(Pokemons poke,int gender=0,int form=0) { //ToDo: redo this function... if (Trainer.formseen==null) Trainer.formseen=new int?[0][] { }; if (Trainer.formlastseen==null) Trainer.formlastseen=new KeyValuePair[0]; //int?[0]; //if (poke is String || poke is Symbol) { - // poke=getID(PBSpecies,poke); + // poke=getID(Species,poke); //} Pokemons species = Pokemons.NONE; //if (poke is IPokemon) { @@ -1649,7 +1649,7 @@ public void pbSeenForm(Pokemons poke,int gender=0,int form=0) { //ToDo: redo thi //} if (species<=0) return; //!species || if (gender>1) gender=0; - string formnames = ""; //pbGetMessage(MessageTypes.FormNames,species); + string formnames = ""; //GetMessage(MessageTypes.FormNames,species); if (string.IsNullOrEmpty(formnames)) form=0; //ToDo: Rework pokedex logic below... //if (Trainer.formseen[(int)species] == null) Trainer.formseen[(int)species] = new int?[0]; //Trainer.formseen[(int)species][gender][form]=true; @@ -1663,7 +1663,7 @@ public void pbSeenForm(Pokemons poke,int gender=0,int form=0) { //ToDo: redo thi #region Analysing Pokémon // Heals all Pokémon in the party. - public void pbHealAll() { + public void HealAll() { if (Trainer == null) return; foreach (IPokemon i in Trainer.party) { i.Heal(); @@ -1671,21 +1671,21 @@ public void pbHealAll() { } // Returns the first unfainted, non-egg Pokémon in the player's party. - public IPokemon pbFirstAblePokemon(int variableNumber) { + public IPokemon FirstAblePokemon(int variableNumber) { for (int i = 0; i < Trainer.party.Length; i++) { IPokemon p=Trainer.party[i]; if (p != null && !p.isEgg && p.HP>0) { - pbSet(variableNumber,i); + Set(variableNumber,i); return Trainer.party[i]; } } - pbSet(variableNumber,-1); + Set(variableNumber,-1); return null; } // Checks whether the player would still have an unfainted Pokémon if the // Pokémon given by _pokemonIndex_ were removed from the party. - public bool pbCheckAble(int pokemonIndex) { + public bool CheckAble(int pokemonIndex) { for (int i = 0; i < Trainer.party.Length; i++) { IPokemon p=Trainer.party[i]; if (i==pokemonIndex) continue; @@ -1695,14 +1695,14 @@ public bool pbCheckAble(int pokemonIndex) { } // Returns true if there are no usable Pokémon in the player's party. - public bool pbAllFainted() { + public bool AllFainted() { foreach (var i in Trainer.party) { if (!i.isEgg && i.HP>0) return false; } return true; } - public double pbBalancedLevel(IPokemon[] party) { + public double BalancedLevel(IPokemon[] party) { if (party.Length==0) return 1; // Calculate the mean of all levels int sum=0; @@ -1756,9 +1756,9 @@ public double pbBalancedLevel(IPokemon[] party) { /// /// /// - public int pbSize(IPokemon pokemon) { - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,pokemon.Species,33); + public int Size(IPokemon pokemon) { + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,pokemon.Species,33); //int baseheight=dexdata.fgetw(); // Gets the base height in tenths of a meter float baseheight=Kernal.PokemonData[pokemon.Species].Height; //dexdata.close(); @@ -1811,15 +1811,15 @@ public int pbSize(IPokemon pokemon) { /// /// /// - public bool pbHasEgg (Pokemons species) { + public bool HasEgg (Pokemons species) { //if (species is String || species is Symbol) { - // species=getID(PBSpecies,species); + // species=getID(Species,species); //} - //Pokemons[][] evospecies=pbGetEvolvedFormData(species); //Kernal.PokemonEvolutionsData[species][0]. + //Pokemons[][] evospecies=GetEvolvedFormData(species); //Kernal.PokemonEvolutionsData[species][0]. //Kernal.PokemonData[species].IsBaby //Pokemons compatspecies=(evospecies != null && evospecies[0] != null) ? evospecies[0][2] : species; - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,compatspecies,31); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,compatspecies,31); EggGroups compat1=Kernal.PokemonData[species].EggGroup[0]; //dexdata.fgetb(); // Get egg group 1 of this species EggGroups compat2=Kernal.PokemonData[species].EggGroup[1]; //dexdata.fgetb(); // Get egg group 2 of this species //dexdata.close(); @@ -1827,9 +1827,9 @@ public bool pbHasEgg (Pokemons species) { compat1 == EggGroups.UNDISCOVERED || compat2 == EggGroups.DITTO || compat2 == EggGroups.UNDISCOVERED) return false; - Pokemons baby=EvolutionHelper.pbGetBabySpecies(species); + Pokemons baby=EvolutionHelper.GetBabySpecies(species); if (species==baby) return true; // Is a basic species - baby=EvolutionHelper.pbGetBabySpecies(species,0,0); + baby=EvolutionHelper.GetBabySpecies(species,0,0); if (species==baby) return true; // Is an egg species without incense return false; } @@ -1840,7 +1840,7 @@ public bool pbHasEgg (Pokemons species) { /// Yields every Pokémon/egg in storage in turn. /// /// - public IEnumerable> pbEachPokemon() { + public IEnumerable> EachPokemon() { for (int i = -1; i < PokemonStorage.maxBoxes; i++) { for (int j = 0; j < PokemonStorage.maxPokemon(i); j++) { IPokemon poke=PokemonStorage[i][j]; @@ -1853,9 +1853,9 @@ public IEnumerable> pbEachPokemon() { /// Yields every Pokémon in storage in turn. /// /// - public IEnumerable> pbEachNonEggPokemon() { - //pbEachPokemon(){|pokemon,box| - foreach(KeyValuePair pokemon in pbEachPokemon()) { + public IEnumerable> EachNonEggPokemon() { + //EachPokemon(){|pokemon,box| + foreach(KeyValuePair pokemon in EachPokemon()) { //if (!pokemon.isEgg) yield return (pokemon,box); if (!pokemon.Key.isEgg) yield return pokemon; //(pokemon.Key,pokemon.Value); } @@ -1872,46 +1872,46 @@ public IEnumerable> pbEachNonEggPokemon() { /// /// Supposed to return a value of pokemon chosen by player... as an int... /// ToDo: Instead of assigning value to variable, change void to return int - public void pbChoosePokemon(int variableNumber,int nameVarNumber,Predicate ableProc=null,bool allowIneligible=false) { + public void ChoosePokemon(int variableNumber,int nameVarNumber,Predicate ableProc=null,bool allowIneligible=false) { int chosen=0; - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IPartyDisplayScene scene=Scenes.Party; //new PokemonScreen_Scene(); IPartyDisplayScreen screen=Screens.Party.initialize(scene,Trainer.party); //new PokemonScreen(scene,Trainer.party); if (ableProc != null) { - chosen=screen.pbChooseAblePokemon(ableProc,allowIneligible); + chosen=screen.ChooseAblePokemon(ableProc,allowIneligible); } else { - screen.pbStartScene(Game._INTL("Choose a Pokémon."),false); - chosen=screen.pbChoosePokemon(); - screen.pbEndScene(); + screen.StartScene(Game._INTL("Choose a Pokémon."),false); + chosen=screen.ChoosePokemon(); + screen.EndScene(); } }); - pbSet(variableNumber,chosen); + Set(variableNumber,chosen); if (chosen>=0) { - pbSet(nameVarNumber,Trainer.party[chosen].Name); + Set(nameVarNumber,Trainer.party[chosen].Name); } else { - pbSet(nameVarNumber,""); + Set(nameVarNumber,""); } } - public void pbChooseNonEggPokemon(int variableNumber,int nameVarNumber) { - //pbChoosePokemon(variableNumber,nameVarNumber,proc {|poke| - pbChoosePokemon(variableNumber,nameVarNumber, poke => + public void ChooseNonEggPokemon(int variableNumber,int nameVarNumber) { + //ChoosePokemon(variableNumber,nameVarNumber,proc {|poke| + ChoosePokemon(variableNumber,nameVarNumber, poke => !poke.isEgg ); } - public void pbChooseAblePokemon(int variableNumber,int nameVarNumber) { - //pbChoosePokemon(variableNumber,nameVarNumber,proc {|poke| - pbChoosePokemon(variableNumber,nameVarNumber, poke => + public void ChooseAblePokemon(int variableNumber,int nameVarNumber) { + //ChoosePokemon(variableNumber,nameVarNumber,proc {|poke| + ChoosePokemon(variableNumber,nameVarNumber, poke => !poke.isEgg && poke.HP>0 ); } - public void pbChoosePokemonForTrade(int variableNumber,int nameVarNumber,Pokemons wanted) { - //pbChoosePokemon(variableNumber,nameVarNumber,proc {|poke| - pbChoosePokemon(variableNumber, nameVarNumber, poke => + public void ChoosePokemonForTrade(int variableNumber,int nameVarNumber,Pokemons wanted) { + //ChoosePokemon(variableNumber,nameVarNumber,proc {|poke| + ChoosePokemon(variableNumber, nameVarNumber, poke => //if (wanted is String || wanted is Symbol) { - // wanted=getID(PBSpecies,wanted); + // wanted=getID(Species,wanted); //} !poke.isEgg && !((IPokemonShadowPokemon)poke).isShadow && poke.Species==wanted ///rescue false ); @@ -1919,9 +1919,9 @@ public void pbChoosePokemonForTrade(int variableNumber,int nameVarNumber,Pokemon #endregion #region Checks through the party for something - public bool pbHasSpecies (Pokemons species) { + public bool HasSpecies (Pokemons species) { //if (species is String || species is Symbol) { - // species=getID(PBSpecies,species); + // species=getID(Species,species); //} foreach (var pokemon in Trainer.party) { if (pokemon.isEgg) continue; @@ -1930,9 +1930,9 @@ public bool pbHasSpecies (Pokemons species) { return false; } - public bool pbHasFatefulSpecies (Pokemons species) { + public bool HasFatefulSpecies (Pokemons species) { //if (species is String || species is Symbol) { - // species=getID(PBSpecies,species); + // species=getID(Species,species); //} foreach (Pokemon pokemon in Trainer.party) { if (pokemon.isEgg) continue; @@ -1941,9 +1941,9 @@ public bool pbHasFatefulSpecies (Pokemons species) { return false; } - public bool pbHasType (Types type) { + public bool HasType (Types type) { //if (type is String || type is Symbol) { - // type=getID(PBTypes,type); + // type=getID(Types,type); //} foreach (var pokemon in Trainer.party) { if (pokemon.isEgg) continue; @@ -1954,8 +1954,8 @@ public bool pbHasType (Types type) { // Checks whether any Pokémon in the party knows the given move, and returns // the index of that Pokémon, or null if no Pokémon has that move. - public IPokemon pbCheckMove(Moves move) { - //move=getID(PBMoves,move); + public IPokemon CheckMove(Moves move) { + //move=getID(Moves,move); if (move<=0) return null; //!move || foreach (IPokemon i in Trainer.party) { if (i.isEgg) continue; @@ -1971,12 +1971,12 @@ public IPokemon pbCheckMove(Moves move) { // Gets the Regional Pokédex number of the national species for the specified // Regional Dex. The parameter "region" is zero-based. For example, if two // regions are defined, they would each be specified as 0 and 1. - public int pbGetRegionalNumber(int region,Pokemons nationalSpecies) { + public int GetRegionalNumber(int region,Pokemons nationalSpecies) { if (nationalSpecies<=0 || (int)nationalSpecies>Kernal.PokemonData.Count) { // Return 0 if national species is outside range return 0; } - //pbRgssOpen("Data/regionals.dat","rb"){|f| + //RgssOpen("Data/regionals.dat","rb"){|f| // int numRegions=f.fgetw; // int numDexDatas=f.fgetw; // if (region>=0 && region=0 && region=0 && region - public int pbGetCurrentRegion(int defaultRegion=-1) { - //int[] mappos=GameMap == null ? null : (int[])pbGetMetadata(GameMap.map_id,MapMetadatas.MetadataMapPosition); - ITilePosition mappos=GameMap == null ? null : pbGetMetadata(GameMap.map_id).Map.MapPosition; + public int GetCurrentRegion(int defaultRegion=-1) { + //int[] mappos=GameMap == null ? null : (int[])GetMetadata(GameMap.map_id,MapMetadatas.MetadataMapPosition); + ITilePosition mappos=GameMap == null ? null : GetMetadata(GameMap.map_id).Map.MapPosition; if (mappos == null) { return defaultRegion; // No region defined } else { @@ -2064,10 +2064,10 @@ public int pbGetCurrentRegion(int defaultRegion=-1) { /// a species in the current region has been seen - doesn't look at other regions. /// Here, just used to decide whether to show the Pokédex in the Pause menu. /// - public void pbSetViableDexes() { + public void SetViableDexes() { Global.pokedexViable=new List(); if (Core.DEXDEPENDSONLOCATION) { - int region=pbGetCurrentRegion(); + int region=GetCurrentRegion(); if (region>=Global.pokedexUnlocked.Length-1) region=-1; if (Trainer.pokedexSeen((Regions)region)>0) { Global.pokedexViable.Add(region); //[0]=region; @@ -2101,7 +2101,7 @@ public void pbSetViableDexes() { /// Unlocks a Dex list. The National Dex is -1 here (or null argument). /// /// - public void pbUnlockDex(int dex=-1) { + public void UnlockDex(int dex=-1) { int index=dex; if (index<0) index=Global.pokedexUnlocked.Length-1; if (index>Global.pokedexUnlocked.Length-1) index=Global.pokedexUnlocked.Length-1; @@ -2112,7 +2112,7 @@ public void pbUnlockDex(int dex=-1) { /// Locks a Dex list. The National Dex is -1 here (or null argument). /// /// - public void pbLockDex(int dex=-1) { + public void LockDex(int dex=-1) { int index=dex; if (index<0) index=Global.pokedexUnlocked.Length-1; if (index>Global.pokedexUnlocked.Length-1) index=Global.pokedexUnlocked.Length-1; @@ -2121,12 +2121,12 @@ public void pbLockDex(int dex=-1) { #endregion #region Other utilities - public void pbTextEntry(string helptext,int minlength,int maxlength,int variableNumber) { - if (this is IGameTextEntry t) GameVariables[variableNumber]=t.pbEnterText(helptext,minlength,maxlength); + public void TextEntry(string helptext,int minlength,int maxlength,int variableNumber) { + if (this is IGameTextEntry t) GameVariables[variableNumber]=t.EnterText(helptext,minlength,maxlength); if (GameMap != null) GameMap.need_refresh = true; } - public string[] pbMoveTutorAnnotations(Moves move,Pokemons[] movelist=null) { + public string[] MoveTutorAnnotations(Moves move,Pokemons[] movelist=null) { string[] ret=new string[Core.MAXPARTYSIZE]; for (int i = 0; i < Core.MAXPARTYSIZE; i++) { ret[i]=null; @@ -2144,7 +2144,7 @@ public string[] pbMoveTutorAnnotations(Moves move,Pokemons[] movelist=null) { // Checked data from movelist ret[i]=Game._INTL("ABLE"); } else if (!Trainer.party[i].isEgg && Trainer.party[i].isCompatibleWithMove(move)) { - // Checked data from PBS/tm.txt + // Checked data from S/tm.txt ret[i]=Game._INTL("ABLE"); } else { ret[i]=Game._INTL("NOT ABLE"); @@ -2153,40 +2153,40 @@ public string[] pbMoveTutorAnnotations(Moves move,Pokemons[] movelist=null) { return ret; } - public bool pbMoveTutorChoose(Moves move,Pokemons[] movelist=null,bool bymachine=false) { + public bool MoveTutorChoose(Moves move,Pokemons[] movelist=null,bool bymachine=false) { bool ret=false; //if (move is String || move is Symbol) { - // move=getID(PBMoves,move); + // move=getID(Moves,move); //} if (movelist!=null && movelist.Length>0) { //&& movelist is Array for (int i = 0; i < movelist.Length; i++) { //if (movelist[i] is String || movelist[i] is Symbol) { - // movelist[i]=getID(PBSpecies,movelist[i]); + // movelist[i]=getID(Species,movelist[i]); //} } } - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IPartyDisplayScene scene=Scenes.Party; //new PokemonScreen_Scene(); string movename=Game._INTL(move.ToString(TextScripts.Name)); IPartyDisplayScreen screen=Screens.Party.initialize(scene,Trainer.party); //new PokemonScreen(scene,Trainer.party); - string[] annot=pbMoveTutorAnnotations(move,movelist); - screen.pbStartScene(Game._INTL("Teach which Pokémon?"),false,annot); + string[] annot=MoveTutorAnnotations(move,movelist); + screen.StartScene(Game._INTL("Teach which Pokémon?"),false,annot); do { //;loop - int chosen=screen.pbChoosePokemon(); + int chosen=screen.ChoosePokemon(); if (chosen>=0) { IPokemon pokemon=Trainer.party[chosen]; if (pokemon.isEgg) { - (this as IGameMessage).pbMessage(Game._INTL("{1} can't be taught to an Egg.",movename)); + (this as IGameMessage).Message(Game._INTL("{1} can't be taught to an Egg.",movename)); } else if (pokemon is IPokemonShadowPokemon p && p.isShadow) { //rescue false - (this as IGameMessage).pbMessage(Game._INTL("Shadow Pokémon can't be taught any moves.")); + (this as IGameMessage).Message(Game._INTL("Shadow Pokémon can't be taught any moves.")); } else if (movelist != null && !movelist.Any(j => j==pokemon.Species )) { - (this as IGameMessage).pbMessage(Game._INTL("{1} and {2} are not compatible.",pokemon.Name,movename)); - (this as IGameMessage).pbMessage(Game._INTL("{1} can't be learned.",movename)); + (this as IGameMessage).Message(Game._INTL("{1} and {2} are not compatible.",pokemon.Name,movename)); + (this as IGameMessage).Message(Game._INTL("{1} can't be learned.",movename)); } else if (!pokemon.isCompatibleWithMove(move)) { - (this as IGameMessage).pbMessage(Game._INTL("{1} and {2} are not compatible.",pokemon.Name,movename)); - (this as IGameMessage).pbMessage(Game._INTL("{1} can't be learned.",movename)); + (this as IGameMessage).Message(Game._INTL("{1} and {2} are not compatible.",pokemon.Name,movename)); + (this as IGameMessage).Message(Game._INTL("{1} can't be learned.",movename)); } else { - if (pbLearnMove(pokemon,move,false,bymachine)) { + if (LearnMove(pokemon,move,false,bymachine)) { ret=true; break; } @@ -2195,18 +2195,18 @@ public bool pbMoveTutorChoose(Moves move,Pokemons[] movelist=null,bool bymachine break; } } while (true); - screen.pbEndScene(); + screen.EndScene(); }); return ret; // Returns whether the move was learned by a Pokemon } - public void pbChooseMove(IPokemon pokemon,int variableNumber,int nameVarNumber) { + public void ChooseMove(IPokemon pokemon,int variableNumber,int nameVarNumber) { if (!pokemon.IsNotNullOrNone()) return; int ret=-1; - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IPokemonSummaryScene scene=Scenes.Summary; //new PokemonSummaryScene(); IPokemonSummaryScreen screen=Screens.Summary.initialize(scene); //new PokemonSummary(scene); - ret=screen.pbStartForgetScreen(pokemon,0,0); + ret=screen.StartForgetScreen(pokemon,0,0); }); GameVariables[variableNumber]=ret; if (ret>=0) { diff --git a/PokemonUnity.Application/Game/Game.Variable.cs b/PokemonUnity.Application/Game/Game.Variable.cs index 2a4d1fa05..376dc2c96 100644 --- a/PokemonUnity.Application/Game/Game.Variable.cs +++ b/PokemonUnity.Application/Game/Game.Variable.cs @@ -26,7 +26,7 @@ public partial class Game : PokemonEssentials.Interface.IGame public PokemonEssentials.Interface.Screen.IPokemonSystemOption PokemonSystem { get; private set; } public PokemonEssentials.Interface.Field.ITempMetadata PokemonTemp { get; set; } public PokemonEssentials.Interface.Field.IEncounters PokemonEncounters { get; private set; } - public PokemonEssentials.Interface.Screen.IPokemonStorage PokemonStorage { get; private set; } + public PokemonEssentials.Interface.Screen.IPCPokemonStorage PokemonStorage { get; private set; } public PokemonEssentials.Interface.Screen.IBag Bag { get; private set; } public PokemonEssentials.Interface.ISceneMap Scene { get; set; } public PokemonEssentials.Interface.IGameTemp GameTemp { get; private set; } @@ -45,7 +45,7 @@ public partial class Game : PokemonEssentials.Interface.IGame //public PokemonEssentials.Interface.IGameMessage GameMessage { get; set; } //public static PokemonUnity.UX.IFrontEnd UI { get; private set; } - + /// /// Singleton Instance of Game class to store current/active play state. /// @@ -91,7 +91,7 @@ public partial class Game : PokemonEssentials.Interface.IGame //public Pokemon[,] PC_Poke { get; set; } //public string[] PC_boxNames { get; set; } //public int[] PC_boxTexture { get; set; } - //public List PC_Items { get; set; } + //public List PC_Items { get; set; } //public List Bag_Items { get; set; } //public Character.PC PC { get; private set; } //public Character.Bag Bag { get; private set; } @@ -127,7 +127,7 @@ public partial class Game : PokemonEssentials.Interface.IGame /// /// Fires whenever the player takes a step. /// - public event EventHandler OnStepTaken; + public event EventHandler OnStepTakenEvent; /// /// Fires whenever the player takes a step. The event handler may possibly move /// the player elsewhere. @@ -164,7 +164,7 @@ public partial class Game : PokemonEssentials.Interface.IGame /// Fires whenever a spriteset is created. /// //event EventHandler OnSpritesetCreate; - public event Action OnSpritesetCreate; + public event Action OnSpritesetCreateEvent; public event EventHandler OnStartBattle; //event EventHandler OnEndBattle; public event Action OnEndBattle; diff --git a/PokemonUnity.Application/Game/Item.cs b/PokemonUnity.Application/Game/Item.cs index 093a11471..321fa88db 100644 --- a/PokemonUnity.Application/Game/Item.cs +++ b/PokemonUnity.Application/Game/Item.cs @@ -34,11 +34,11 @@ public partial class Game : IGameItem, IItemCheck /// /// /// - public bool pbIsHiddenMove (Moves move) { + public bool IsHiddenMove (Moves move) { //if (Kernal.ItemData == null) return false; ////for (int i = 0; i < Kernal.ItemData.Count; i++) { //for (int i = 0; i < Kernal.MachineData.Count; i++) { - // //if (!pbIsHiddenMachine(i)) continue; + // //if (!IsHiddenMachine(i)) continue; // //if(Kernal.ItemData[i].Pocket == ItemPockets.MACHINE) // //atk=Kernal.ItemData[i][ITEMMACHINE]; // MachineData atk = Kernal.MachineData[i]; //HiddenMachine is not HiddenMove @@ -62,11 +62,11 @@ public bool pbIsHiddenMove (Moves move) { return hidden.Contains(move); } - public int pbGetPrice(Items item) { + public int GetPrice(Items item) { return Kernal.ItemData[item].Price; //[ITEMPRICE]; } - public ItemPockets? pbGetPocket(Items item) { + public ItemPockets? GetPocket(Items item) { return Kernal.ItemData[item].Pocket; //[ITEMPOCKET]; } @@ -75,51 +75,51 @@ public int pbGetPrice(Items item) { /// /// /// - public bool pbIsImportantItem (Items item) { - return Kernal.ItemData.ContainsKey(item) && (pbIsKeyItem(item) || - pbIsHiddenMachine(item) || - (Core.INFINITETMS && pbIsTechnicalMachine(item))); + public bool IsImportantItem (Items item) { + return Kernal.ItemData.ContainsKey(item) && (IsKeyItem(item) || + IsHiddenMachine(item) || + (Core.INFINITETMS && IsTechnicalMachine(item))); } - public bool pbIsMachine (Items item) { - return Kernal.ItemData[item].Category == ItemCategory.ALL_MACHINES || (pbIsTechnicalMachine(item) || pbIsHiddenMachine(item)); + public bool IsMachine (Items item) { + return Kernal.ItemData[item].Category == ItemCategory.ALL_MACHINES || (IsTechnicalMachine(item) || IsHiddenMachine(item)); } - public bool pbIsTechnicalMachine (Items item) { + public bool IsTechnicalMachine (Items item) { //return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item][ITEMUSE]==3); Items[] TMs = new Items[] { Items.TM_ALL }; //Items.TM01, Items.TM02, Items.TM03, Items.TM04, Items.TM05, Items.TM06, Items.TM07, Items.TM08, Items.TM09, Items.TM10, Items.TM11, Items.TM12, Items.TM13, Items.TM14, Items.TM15, Items.TM16, Items.TM17, Items.TM18, Items.TM19, Items.TM20, Items.TM21, Items.TM22, Items.TM23, Items.TM24, Items.TM25, Items.TM26, Items.TM27, Items.TM28, Items.TM29, Items.TM30, Items.TM31, Items.TM32, Items.TM33, Items.TM34, Items.TM35, Items.TM36, Items.TM37, Items.TM38, Items.TM39, Items.TM40, Items.TM41, Items.TM42, Items.TM43, Items.TM44, Items.TM45, Items.TM46, Items.TM47, Items.TM48, Items.TM49, Items.TM50, Items.TM51, Items.TM52, Items.TM53, Items.TM54, Items.TM55, Items.TM56, Items.TM57, Items.TM58, Items.TM59, Items.TM60, Items.TM61, Items.TM62, Items.TM63, Items.TM64, Items.TM65, Items.TM66, Items.TM67, Items.TM68, Items.TM69, Items.TM70, Items.TM71, Items.TM72, Items.TM73, Items.TM74, Items.TM75, Items.TM76, Items.TM77, Items.TM78, Items.TM79, Items.TM80, Items.TM81, Items.TM82, Items.TM83, Items.TM84, Items.TM85, Items.TM86, Items.TM87, Items.TM88, Items.TM89, Items.TM90, Items.TM91, Items.TM92, Items.TM93, Items.TM94, Items.TM95, Items.TM96, Items.TM97, Items.TM98, Items.TM99, Items.TM100 }; return TMs.Contains(item); } - public bool pbIsHiddenMachine (Items item) { + public bool IsHiddenMachine (Items item) { //return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item][ITEMUSE]==4); Items[] HMs = new Items[] { Items.HM01, Items.HM02, Items.HM03, Items.HM04, Items.HM05, Items.HM06, Items.HM07, Items.HM08 }; return HMs.Contains(item); } - public bool pbIsMail (Items item) { - return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item].IsLetter); //[ITEMTYPE]==1 || Kernal.ItemData[item][ITEMTYPE]==2 + public bool IsMail (Items item) { + return Kernal.ItemData.ContainsKey(item) && (ItemData.IsLetter(item)); //[ITEMTYPE]==1 || Kernal.ItemData[item][ITEMTYPE]==2 } - public bool pbIsSnagBall (Items item) { + public bool IsSnagBall (Items item) { //return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item].IsPokeBall || Kernal.ItemData[item].Pocket == ItemPockets.POKEBALL) && //[ITEMTYPE]==3 // Global.snagMachine; //Kernal.ItemData[item][ITEMTYPE]==4 && 4: SnagBall Item - return pbIsPokeBall(item) && Global.snagMachine; + return IsPokeBall(item) && Global.snagMachine; } - public bool pbIsPokeBall (Items item) { - return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item].IsPokeBall || Kernal.ItemData[item].Pocket == ItemPockets.POKEBALL);//[ITEMTYPE]==4 + public bool IsPokeBall (Items item) { + return Kernal.ItemData.ContainsKey(item) && (ItemData.IsPokeBall(item) || Kernal.ItemData[item].Pocket == ItemPockets.POKEBALL);//[ITEMTYPE]==4 } - public bool pbIsBerry (Items item) { - return Kernal.ItemData.ContainsKey(item) && Kernal.ItemData[item].IsBerry; //[ITEMTYPE]==5 + public bool IsBerry (Items item) { + return Kernal.ItemData.ContainsKey(item) && ItemData.IsBerry(item); //[ITEMTYPE]==5 } - public bool pbIsKeyItem (Items item) { + public bool IsKeyItem (Items item) { return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item].Pocket == ItemPockets.KEY);//[ITEMTYPE]==6 } - public bool pbIsGem (Items item) { + public bool IsGem (Items item) { Items[] gems=new Items[] {Items.FIRE_GEM,Items.WATER_GEM,Items.ELECTRIC_GEM,Items.GRASS_GEM,Items.ICE_GEM, Items.FIGHTING_GEM,Items.POISON_GEM,Items.GROUND_GEM,Items.FLYING_GEM,Items.PSYCHIC_GEM, Items.BUG_GEM,Items.ROCK_GEM,Items.GHOST_GEM,Items.DRAGON_GEM,Items.DARK_GEM, @@ -131,7 +131,7 @@ public bool pbIsGem (Items item) { return gems.Contains(item) || Kernal.ItemData[item].Category == ItemCategory.JEWELS; } - public bool pbIsEvolutionStone (Items item) { + public bool IsEvolutionStone (Items item) { Items[] stones=new Items[] {Items.FIRE_STONE,Items.THUNDER_STONE,Items.WATER_STONE,Items.LEAF_STONE,Items.MOON_STONE, Items.SUN_STONE,Items.DUSK_STONE,Items.DAWN_STONE,Items.SHINY_STONE}; //foreach (Items i in stones) { @@ -141,7 +141,7 @@ public bool pbIsEvolutionStone (Items item) { return stones.Contains(item) || Kernal.ItemData[item].Category == ItemCategory.EVOLUTION; } - public bool pbIsMegaStone (Items item) { // Does NOT include Red Orb/Blue Orb + public bool IsMegaStone (Items item) { // Does NOT include Red Orb/Blue Orb Items[] stones=new Items[] { Items.ABOMASITE,Items.ABSOLITE,Items.AERODACTYLITE,Items.AGGRONITE,Items.ALAKAZITE, Items.ALTARIANITE,Items.AMPHAROSITE,Items.AUDINITE,Items.BANETTITE,Items.BEEDRILLITE, Items.BLASTOISINITE,Items.BLAZIKENITE,Items.CAMERUPTITE,Items.CHARIZARDITE_X,Items.CHARIZARDITE_Y, @@ -159,7 +159,7 @@ public bool pbIsMegaStone (Items item) { // Does NOT include Red Orb/Blue Orb return stones.Contains(item) || Kernal.ItemData[item].Category == ItemCategory.MEGA_STONES; } - public bool pbIsMulch (Items item) { + public bool IsMulch (Items item) { Items[] mulches= new Items[] { Items.GROWTH_MULCH,Items.DAMP_MULCH,Items.STABLE_MULCH,Items.GOOEY_MULCH }; //foreach (Items i in mulches) { // if (item == i) return true; @@ -170,7 +170,7 @@ public bool pbIsMulch (Items item) { #endregion Item Check #region Game Item Interface - public void pbChangeLevel(IPokemon pokemon,int newlevel,IScene scene) { + public void ChangeLevel(IPokemon pokemon,int newlevel,IScene scene) { if (newlevel<1) newlevel=1; if (newlevel>Core.MAXIMUMLEVEL) newlevel=Core.MAXIMUMLEVEL; if (pokemon.Level>newlevel) { @@ -184,20 +184,20 @@ public void pbChangeLevel(IPokemon pokemon,int newlevel,IScene scene) { (pokemon as Pokemon).SetLevel((byte)newlevel); //pokemon.Exp=Experience.GetStartExperience(pokemon.GrowthRate, newlevel); pokemon.calcStats(); - scene.pbRefresh(); - (this as IGameMessage).pbMessage(Game._INTL("{1} was downgraded to Level {2}!",pokemon.Name,pokemon.Level)); + scene.Refresh(); + (this as IGameMessage).Message(Game._INTL("{1} was downgraded to Level {2}!",pokemon.Name,pokemon.Level)); attackdiff=pokemon.ATK-attackdiff; defensediff=pokemon.DEF-defensediff; speeddiff=pokemon.SPE-speeddiff; spatkdiff=pokemon.SPA-spatkdiff; spdefdiff=pokemon.SPD-spdefdiff; totalhpdiff=pokemon.TotalHP-totalhpdiff; - pbTopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", + TopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", totalhpdiff,attackdiff,defensediff,spatkdiff,spdefdiff,speeddiff)); - pbTopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", + TopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", pokemon.TotalHP,pokemon.ATK,pokemon.DEF,pokemon.SPA,pokemon.SPD,pokemon.SPE)); } else if (pokemon.Level==newlevel) { - (this as IGameMessage).pbMessage(Game._INTL("{1}'s level remained unchanged.",pokemon.Name)); + (this as IGameMessage).Message(Game._INTL("{1}'s level remained unchanged.",pokemon.Name)); } else { int attackdiff=pokemon.ATK; int defensediff=pokemon.DEF; @@ -211,38 +211,38 @@ public void pbChangeLevel(IPokemon pokemon,int newlevel,IScene scene) { //pokemon.Exp = Experience.GetStartExperience(pokemon.GrowthRate, newlevel); (pokemon as Pokemon).ChangeHappiness(HappinessMethods.LEVELUP); pokemon.calcStats(); - scene.pbRefresh(); - (this as IGameMessage).pbMessage(Game._INTL("{1} was elevated to Level {2}!",pokemon.Name,pokemon.Level)); + scene.Refresh(); + (this as IGameMessage).Message(Game._INTL("{1} was elevated to Level {2}!",pokemon.Name,pokemon.Level)); attackdiff=pokemon.ATK-attackdiff; defensediff=pokemon.DEF-defensediff; speeddiff=pokemon.SPE-speeddiff; spatkdiff=pokemon.SPA-spatkdiff; spdefdiff=pokemon.SPD-spdefdiff; totalhpdiff=pokemon.TotalHP-totalhpdiff; - pbTopRightWindow(Game._INTL("Max. HP+{1}\r\nAttack+{2}\r\nDefense+{3}\r\nSp. Atk+{4}\r\nSp. Def+{5}\r\nSpeed+{6}", + TopRightWindow(Game._INTL("Max. HP+{1}\r\nAttack+{2}\r\nDefense+{3}\r\nSp. Atk+{4}\r\nSp. Def+{5}\r\nSpeed+{6}", totalhpdiff,attackdiff,defensediff,spatkdiff,spdefdiff,speeddiff)); - pbTopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", + TopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", pokemon.TotalHP,pokemon.ATK,pokemon.DEF,pokemon.SPA,pokemon.SPD,pokemon.SPE)); //Moves[] movelist=pokemon.getMoveList(); //foreach (Moves i in pokemon.getMoveList(LearnMethod.levelup)) { //movelist foreach (KeyValuePair i in Kernal.PokemonMovesData[pokemon.Species].LevelUp) { if (i.Value==pokemon.Level) { // Learned a new move - pbLearnMove(pokemon,i.Key,true); + LearnMove(pokemon,i.Key,true); } } - Pokemons newspecies=EvolutionHelper.pbCheckEvolution(pokemon)[0]; + Pokemons newspecies=EvolutionHelper.CheckEvolution(pokemon)[0]; if (newspecies>0) { - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo=Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(); + evo.EndScreen(); }); } } } - public int pbItemRestoreHP(IPokemon pokemon,int restorehp) { + public int ItemRestoreHP(IPokemon pokemon,int restorehp) { int newhp=pokemon.HP+restorehp; if (newhp>pokemon.TotalHP) newhp=pokemon.TotalHP; int hpgain=newhp-pokemon.HP; @@ -250,32 +250,32 @@ public int pbItemRestoreHP(IPokemon pokemon,int restorehp) { return hpgain; } - public bool pbHPItem(IPokemon pokemon,int restorehp,IScene scene) { + public bool HPItem(IPokemon pokemon,int restorehp,IScene scene) { if (pokemon.HP<=0 || pokemon.HP==pokemon.TotalHP || pokemon.isEgg) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - int hpgain=pbItemRestoreHP(pokemon,restorehp); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); + int hpgain=ItemRestoreHP(pokemon,restorehp); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); return true; } } - public bool pbBattleHPItem(IPokemon pokemon,IBattler battler,int restorehp,IScene scene) { + public bool BattleHPItem(IPokemon pokemon,IBattler battler,int restorehp,IScene scene) { if (pokemon.HP<=0 || pokemon.HP==pokemon.TotalHP || pokemon.isEgg) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } else { - int hpgain=pbItemRestoreHP(pokemon,restorehp); + int hpgain=ItemRestoreHP(pokemon,restorehp); if (battler.IsNotNullOrNone()) battler.HP=pokemon.HP; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name,hpgain)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name,hpgain)); return true; } } - public int pbJustRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain) { + public int JustRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain) { int totalev=0; for (int i = 0; i < 6; i++) { totalev+=pokemon.EV[i]; @@ -296,7 +296,7 @@ public int pbJustRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain) { return evgain; } - public int pbRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain=10,bool evlimit=true) { + public int RaiseEffortValues(IPokemon pokemon,Stats ev,int evgain=10,bool evlimit=true) { if (pokemon.EV[(int)ev]>=100 && evlimit) { return 0; } @@ -321,11 +321,11 @@ public int pbRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain=10,bool evli return evgain; } - public bool pbRaiseHappinessAndLowerEV(IPokemon pokemon,IScene scene,Stats ev,string[] messages) { + public bool RaiseHappinessAndLowerEV(IPokemon pokemon,IScene scene,Stats ev,string[] messages) { bool h=(pokemon.Happiness<255); bool e=(pokemon.EV[(int)ev]>0); if (!h && !e) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } if (h) { @@ -336,12 +336,12 @@ public bool pbRaiseHappinessAndLowerEV(IPokemon pokemon,IScene scene,Stats ev,st if (pokemon.EV[(int)ev]<0) pokemon.EV[(int)ev]=0; pokemon.calcStats(); } - scene.pbRefresh(); - scene.pbDisplay(messages[2-(h ? 0 : 1)-(e ? 0 : 2)]); + scene.Refresh(); + scene.Display(messages[2-(h ? 0 : 1)-(e ? 0 : 2)]); return true; } - public int pbRestorePP(IPokemon pokemon,int move,int pp) { + public int RestorePP(IPokemon pokemon,int move,int pp) { if (pokemon.moves[move].id==0) return 0; if (pokemon.moves[move].TotalPP==0) return 0; int newpp=pokemon.moves[move].PP+pp; @@ -353,45 +353,45 @@ public int pbRestorePP(IPokemon pokemon,int move,int pp) { return newpp-oldpp; } - public int pbBattleRestorePP(IPokemon pokemon,IBattler battler,int move,int pp) { - int ret=pbRestorePP(pokemon,move,pp); + public int BattleRestorePP(IPokemon pokemon,IBattler battler,int move,int pp) { + int ret=RestorePP(pokemon,move,pp); if (ret>0) { - if (battler.IsNotNullOrNone()) battler.pbSetPP(battler.moves[move],pokemon.moves[move].PP); + if (battler.IsNotNullOrNone()) battler.SetPP(battler.moves[move],pokemon.moves[move].PP); } return ret; } - public bool pbBikeCheck() { + public bool BikeCheck() { if (Global.surfing || - (!Global.bicycle && Terrain.onlyWalk((this as PokemonEssentials.Interface.Field.IGameField).pbGetTerrainTag()))) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (!Global.bicycle && Terrain.onlyWalk((this as PokemonEssentials.Interface.Field.IGameField).GetTerrainTag()))) { + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); return false; } - if (GamePlayer.pbHasDependentEvents()) { - (this as IGameMessage).pbMessage(Game._INTL("It can't be used when you have someone with you.")); + if (GamePlayer.HasDependentEvents()) { + (this as IGameMessage).Message(Game._INTL("It can't be used when you have someone with you.")); return false; } if (Global.bicycle) { - //if (pbGetMetadata(GameMap.map_id,MetadataBicycleAlways)) { - if (pbGetMetadata(GameMap.map_id).Map.BicycleAlways) { - (this as IGameMessage).pbMessage(Game._INTL("You can't dismount your Bike here.")); + //if (GetMetadata(GameMap.map_id,MetadataBicycleAlways)) { + if (GetMetadata(GameMap.map_id).Map.BicycleAlways) { + (this as IGameMessage).Message(Game._INTL("You can't dismount your Bike here.")); return false; } return true; } else { - //bool? val=pbGetMetadata(GameMap.map_id,MetadataBicycle); - bool? val=pbGetMetadata(GameMap.map_id).Map.Bicycle; - //if (val == null) val=pbGetMetadata(GameMap.map_id,MetadataOutdoor); - if (val == null) val=pbGetMetadata(GameMap.map_id).Map.Outdoor; + //bool? val=GetMetadata(GameMap.map_id,MetadataBicycle); + bool? val=GetMetadata(GameMap.map_id).Map.Bicycle; + //if (val == null) val=GetMetadata(GameMap.map_id,MetadataOutdoor); + if (val == null) val=GetMetadata(GameMap.map_id).Map.Outdoor; if (val == null) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); return false; } return true; } } - public IGameCharacter pbClosestHiddenItem() { + public IGameCharacter ClosestHiddenItem() { List result = new List(); float playerX=GamePlayer.x; float playerY=GamePlayer.y; @@ -415,13 +415,13 @@ public IGameCharacter pbClosestHiddenItem() { return ret; } - public void pbUseKeyItemInField(Items item) { + public void UseKeyItemInField(Items item) { if (!ItemHandlers.triggerUseInField(item)) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); } } - public bool pbSpeciesCompatible (Pokemons species,Moves move) { + public bool SpeciesCompatible (Pokemons species,Moves move) { //bool ret=false; //if (species<=0) return false; //data=load_data("Data/tm.dat"); @@ -430,74 +430,74 @@ public bool pbSpeciesCompatible (Pokemons species,Moves move) { return Kernal.PokemonMovesData[species].Machine.Contains(move); } - public int pbForgetMove(IPokemon pokemon,Moves moveToLearn) { + public int ForgetMove(IPokemon pokemon,Moves moveToLearn) { int ret=-1; - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IPokemonSummaryScene scene=Scenes.Summary; //new PokemonSummaryScene(); IPokemonSummaryScreen screen=Screens.Summary.initialize(scene); //new PokemonSummary(scene); - ret=screen.pbStartForgetScreen(pokemon,0,moveToLearn); + ret=screen.StartForgetScreen(pokemon,0,moveToLearn); }); return ret; } - public bool pbLearnMove(IPokemon pokemon,Moves move,bool ignoreifknown=false,bool bymachine=false) { + public bool LearnMove(IPokemon pokemon,Moves move,bool ignoreifknown=false,bool bymachine=false) { if (!pokemon.IsNotNullOrNone()) return false; string movename=Game._INTL(move.ToString(TextScripts.Name)); if (pokemon.isEgg && !Core.DEBUG) { - (this as IGameMessage).pbMessage(Game._INTL("{1} can't be taught to an Egg.",movename)); + (this as IGameMessage).Message(Game._INTL("{1} can't be taught to an Egg.",movename)); return false; } if (pokemon is IPokemonShadowPokemon p && p.isShadow) { - (this as IGameMessage).pbMessage(Game._INTL("{1} can't be taught to this Pokémon.",movename)); + (this as IGameMessage).Message(Game._INTL("{1} can't be taught to this Pokémon.",movename)); return false; } string pkmnname=pokemon.Name; for (int i = 0; i < 4; i++) { if (pokemon.moves[i].id==move) { - if (!ignoreifknown) (this as IGameMessage).pbMessage(Game._INTL("{1} already knows {2}.",pkmnname,movename)); + if (!ignoreifknown) (this as IGameMessage).Message(Game._INTL("{1} already knows {2}.",pkmnname,movename)); return false; } if (pokemon.moves[i].id==0) { pokemon.moves[i]=new Attack.Move(move); - (this as IGameMessage).pbMessage(Game._INTL("\\se[]{1} learned {2}!\\se[MoveLearnt]",pkmnname,movename)); + (this as IGameMessage).Message(Game._INTL("\\se[]{1} learned {2}!\\se[MoveLearnt]",pkmnname,movename)); return true; } } do { //;loop - (this as IGameMessage).pbMessage(Game._INTL("{1} wants to learn the move {2}.",pkmnname,movename)); - (this as IGameMessage).pbMessage(Game._INTL("However, {1} already knows four moves.",pkmnname)); - if ((this as IGameMessage).pbConfirmMessage(Game._INTL("Should a move be deleted and replaced with {1}?",movename))) { - (this as IGameMessage).pbMessage(Game._INTL("Which move should be forgotten?")); - int forgetmove=pbForgetMove(pokemon,move); + (this as IGameMessage).Message(Game._INTL("{1} wants to learn the move {2}.",pkmnname,movename)); + (this as IGameMessage).Message(Game._INTL("However, {1} already knows four moves.",pkmnname)); + if ((this as IGameMessage).ConfirmMessage(Game._INTL("Should a move be deleted and replaced with {1}?",movename))) { + (this as IGameMessage).Message(Game._INTL("Which move should be forgotten?")); + int forgetmove=ForgetMove(pokemon,move); if (forgetmove>=0) { string oldmovename=Game._INTL(pokemon.moves[forgetmove].id.ToString(TextScripts.Name)); int oldmovepp=pokemon.moves[forgetmove].PP; pokemon.moves[forgetmove]=new Attack.Move(move); // Replaces current/total PP if (bymachine) pokemon.moves[forgetmove].PP=Math.Min(oldmovepp,pokemon.moves[forgetmove].TotalPP); - (this as IGameMessage).pbMessage(Game._INTL("\\se[]1,\\wt[16] 2, and\\wt[16]...\\wt[16] ...\\wt[16] ... Ta-da!\\se[balldrop]")); - (this as IGameMessage).pbMessage(Game._INTL("\\se[]{1} forgot how to use {2}. And... {1} learned {3}!\\se[MoveLearnt]",pkmnname,oldmovename,movename)); + (this as IGameMessage).Message(Game._INTL("\\se[]1,\\wt[16] 2, and\\wt[16]...\\wt[16] ...\\wt[16] ... Ta-da!\\se[balldrop]")); + (this as IGameMessage).Message(Game._INTL("\\se[]{1} forgot how to use {2}. And... {1} learned {3}!\\se[MoveLearnt]",pkmnname,oldmovename,movename)); return true; - } else if ((this as IGameMessage).pbConfirmMessage(Game._INTL("Give up on learning the move {1}?",movename))) { - (this as IGameMessage).pbMessage(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); + } else if ((this as IGameMessage).ConfirmMessage(Game._INTL("Give up on learning the move {1}?",movename))) { + (this as IGameMessage).Message(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); return false; } - } else if ((this as IGameMessage).pbConfirmMessage(Game._INTL("Give up on learning the move {1}?",movename))) { - (this as IGameMessage).pbMessage(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); + } else if ((this as IGameMessage).ConfirmMessage(Game._INTL("Give up on learning the move {1}?",movename))) { + (this as IGameMessage).Message(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); return false; } } while (true); } - public bool pbCheckUseOnPokemon(Items item,IPokemon pokemon,IScreen screen) { + public bool CheckUseOnPokemon(Items item,IPokemon pokemon,IScreen screen) { return pokemon.IsNotNullOrNone() && !pokemon.isEgg; } - public bool pbConsumeItemInBattle(IBag bag,Items item) { + public bool ConsumeItemInBattle(IBag bag,Items item) { if (item!=0 && Kernal.ItemData[item].Flags.Consumable && //!=3 disappear after use //Kernal.ItemData[item].Flags!=4 && //used on enemy and disappears after use (i.e. pokeball) Kernal.ItemData[item].Flags.Useable_In_Battle) { //!=0 cannot be used in battle // Delete the item just used from stock - return Bag.pbDeleteItem(item); + return Bag.DeleteItem(item); } return false; } @@ -510,28 +510,28 @@ public bool pbConsumeItemInBattle(IBag bag,Items item) { /// /// /// - public bool pbUseItemOnPokemon(Items item,IPokemon pokemon,IPartyDisplayScreen scene) { + public bool UseItemOnPokemon(Items item,IPokemon pokemon,IPartyDisplayScreen scene) { //if (Kernal.ItemData[item][ITEMUSE]==3 || Kernal.ItemData[item][ITEMUSE]==4) { // TM or HM - if (pbIsMachine(item)) { + if (IsMachine(item)) { Moves machine=Kernal.MachineData[(int)item].Move; if (machine==Moves.NONE) return false; string movename=Game._INTL(machine.ToString(TextScripts.Name)); if (pokemon is IPokemonShadowPokemon p && p.isShadow) { //? rescue false - (this as IGameMessage).pbMessage(Game._INTL("Shadow Pokémon can't be taught any moves.")); + (this as IGameMessage).Message(Game._INTL("Shadow Pokémon can't be taught any moves.")); } else if (!pokemon.isCompatibleWithMove(machine)) { - (this as IGameMessage).pbMessage(Game._INTL("{1} and {2} are not compatible.",pokemon.Name,movename)); - (this as IGameMessage).pbMessage(Game._INTL("{1} can't be learned.",movename)); + (this as IGameMessage).Message(Game._INTL("{1} and {2} are not compatible.",pokemon.Name,movename)); + (this as IGameMessage).Message(Game._INTL("{1} can't be learned.",movename)); } else { - if (pbIsHiddenMachine(item)) { - (this as IGameMessage).pbMessage(Game._INTL("\\se[accesspc]Booted up an HM.")); - (this as IGameMessage).pbMessage(Game._INTL(@"It contained {1}.\1",movename)); + if (IsHiddenMachine(item)) { + (this as IGameMessage).Message(Game._INTL("\\se[accesspc]Booted up an HM.")); + (this as IGameMessage).Message(Game._INTL(@"It contained {1}.\1",movename)); } else { - (this as IGameMessage).pbMessage(Game._INTL("\\se[accesspc]Booted up a TM.")); - (this as IGameMessage).pbMessage(Game._INTL(@"It contained {1}.\1",movename)); + (this as IGameMessage).Message(Game._INTL("\\se[accesspc]Booted up a TM.")); + (this as IGameMessage).Message(Game._INTL(@"It contained {1}.\1",movename)); } - if ((this as IGameMessage).pbConfirmMessage(Game._INTL("Teach {1} to {2}?",movename,pokemon.Name))) { - if (pbLearnMove(pokemon,machine,false,true)) { - if (pbIsTechnicalMachine(item) && !Core.INFINITETMS) Bag.pbDeleteItem(item); + if ((this as IGameMessage).ConfirmMessage(Game._INTL("Teach {1} to {2}?",movename,pokemon.Name))) { + if (LearnMove(pokemon,machine,false,true)) { + if (IsTechnicalMachine(item) && !Core.INFINITETMS) Bag.DeleteItem(item); return true; } } @@ -539,78 +539,78 @@ public bool pbUseItemOnPokemon(Items item,IPokemon pokemon,IPartyDisplayScreen s //return false; } else { bool ret=ItemHandlers.triggerUseOnPokemon(item,pokemon,scene); - scene.pbClearAnnotations(); - scene.pbHardRefresh(); + scene.ClearAnnotations(); + scene.HardRefresh(); if (ret && Kernal.ItemData[item].Flags.Consumable) { //[ITEMUSE]==1 Usable on Pokémon, consumed - Bag.pbDeleteItem(item); + Bag.DeleteItem(item); } - if (Bag.pbQuantity(item)<=0) { - (this as IGameMessage).pbMessage(Game._INTL("You used your last {1}.",Game._INTL(item.ToString(TextScripts.Name)))); + if (Bag.Quantity(item)<=0) { + (this as IGameMessage).Message(Game._INTL("You used your last {1}.",Game._INTL(item.ToString(TextScripts.Name)))); } return ret; } - (this as IGameMessage).pbMessage(Game._INTL("Can't use that on {1}.",pokemon.Name)); + (this as IGameMessage).Message(Game._INTL("Can't use that on {1}.",pokemon.Name)); return false; } - public int pbUseItem(IBag bag,Items item,IScene bagscene=null) { + public int UseItem(IBag bag,Items item,IScene bagscene=null) { //bool found=false; //if (Kernal.ItemData[item][ITEMUSE]==3 || Kernal.ItemData[item][ITEMUSE]==4) { // TM or HM - if (pbIsMachine(item)) { + if (IsMachine(item)) { Moves machine=Kernal.MachineData[(int)item].Move; if (machine==Moves.NONE) return 0; if (Trainer.pokemonCount==0) { - (this as IGameMessage).pbMessage(Game._INTL("There is no Pokémon.")); + (this as IGameMessage).Message(Game._INTL("There is no Pokémon.")); return 0; } string movename=Game._INTL(machine.ToString(TextScripts.Name)); - if (pbIsHiddenMachine(item)) { - (this as IGameMessage).pbMessage(Game._INTL("\\se[accesspc]Booted up an HM.")); - (this as IGameMessage).pbMessage(Game._INTL(@"It contained {1}.\1",movename)); + if (IsHiddenMachine(item)) { + (this as IGameMessage).Message(Game._INTL("\\se[accesspc]Booted up an HM.")); + (this as IGameMessage).Message(Game._INTL(@"It contained {1}.\1",movename)); } else { - (this as IGameMessage).pbMessage(Game._INTL("\\se[accesspc]Booted up a TM.")); - (this as IGameMessage).pbMessage(Game._INTL(@"It contained {1}.\1",movename)); + (this as IGameMessage).Message(Game._INTL("\\se[accesspc]Booted up a TM.")); + (this as IGameMessage).Message(Game._INTL(@"It contained {1}.\1",movename)); } - if (!(this as IGameMessage).pbConfirmMessage(Game._INTL("Teach {1} to a Pokémon?",movename))) { + if (!(this as IGameMessage).ConfirmMessage(Game._INTL("Teach {1} to a Pokémon?",movename))) { return 0; - } else if (pbMoveTutorChoose(machine,null,true)) { - if (pbIsTechnicalMachine(item) && !Core.INFINITETMS) bag.pbDeleteItem(item); + } else if (MoveTutorChoose(machine,null,true)) { + if (IsTechnicalMachine(item) && !Core.INFINITETMS) bag.DeleteItem(item); return 1; } else { return 0; } } else if (Kernal.ItemData[item].Flags.Consumable) { //[ITEMUSE]==1|[ITEMUSE]==5 Item is usable on a Pokémon if (Trainer.pokemonCount==0) { - (this as IGameMessage).pbMessage(Game._INTL("There is no Pokémon.")); + (this as IGameMessage).Message(Game._INTL("There is no Pokémon.")); return 0; } bool ret=false; List annot=null; - if (pbIsEvolutionStone(item)) { + if (IsEvolutionStone(item)) { annot=new List(); foreach (var pkmn in Trainer.party) { - bool elig=EvolutionHelper.pbCheckEvolution(pkmn,item).Length>0; + bool elig=EvolutionHelper.CheckEvolution(pkmn,item).Length>0; annot.Add(elig ? Game._INTL("ABLE") : Game._INTL("NOT ABLE")); } } - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IPartyDisplayScene scene=Scenes.Party; //new PokemonScreen_Scene(); IPartyDisplayScreen screen=Screens.Party.initialize(scene,Trainer.party); //new PokemonScreen(scene,Trainer.party); - screen.pbStartScene(Game._INTL("Use on which Pokémon?"),false,annot.ToArray()); + screen.StartScene(Game._INTL("Use on which Pokémon?"),false,annot.ToArray()); do { //;loop - scene.pbSetHelpText(Game._INTL("Use on which Pokémon?")); - int chosen=screen.pbChoosePokemon(); + scene.SetHelpText(Game._INTL("Use on which Pokémon?")); + int chosen=screen.ChoosePokemon(); if (chosen>=0) { IPokemon pokemon=Trainer.party[chosen]; - if (!pbCheckUseOnPokemon(item,pokemon,screen)) { - (this as IGameAudioPlay).pbPlayBuzzerSE(); + if (!CheckUseOnPokemon(item,pokemon,screen)) { + (this as IGameAudioPlay).PlayBuzzerSE(); } else { ret=ItemHandlers.triggerUseOnPokemon(item,pokemon,(IHasDisplayMessage)screen); if (ret && Kernal.ItemData[item].Flags.Consumable) { //[ITEMUSE]==1 Usable on Pokémon, consumed - bag.pbDeleteItem(item); + bag.DeleteItem(item); } - if (bag.pbQuantity(item)<=0) { - (this as IGameMessage).pbMessage(Game._INTL("You used your last {1}.",Game._INTL(item.ToString(TextScripts.Name)))); + if (bag.Quantity(item)<=0) { + (this as IGameMessage).Message(Game._INTL("You used your last {1}.",Game._INTL(item.ToString(TextScripts.Name)))); break; } } @@ -619,8 +619,8 @@ public int pbUseItem(IBag bag,Items item,IScene bagscene=null) { break; } } while (true); - screen.pbEndScene(); - if (bagscene!=null) bagscene.pbRefresh(); + screen.EndScene(); + if (bagscene!=null) bagscene.Refresh(); }); return ret ? 1 : 0; } else if (Kernal.ItemData[item].Flags.Useable_Overworld) { //[ITEMUSE]==2 Item is usable from bag @@ -633,27 +633,27 @@ public int pbUseItem(IBag bag,Items item,IScene bagscene=null) { case 2: // Item used, end screen return 2; case 3: // Item used, consume item - bag.pbDeleteItem(item); + bag.DeleteItem(item); return 1; case 4: // Item used, end screen and consume item - bag.pbDeleteItem(item); + bag.DeleteItem(item); return 2; default: - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); return 0; } } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); return 0; } } - public Items pbChooseItem(int var=0,params Items[] args) { + public Items ChooseItem(int var=0,params Items[] args) { Items ret=0; //int? IBagScene scene=Scenes.Bag; //new PokemonBag_Scene(); IBagScreen screen=Screens.Bag.initialize(scene,Bag); //new PokemonBagScreen(scene,Bag); - pbFadeOutIn(99999, block: () => { - ret=screen.pbChooseItemScreen(); + FadeOutIn(99999, block: () => { + ret=screen.ChooseItemScreen(); }); if (var>0) GameVariables[var]=ret; return ret; @@ -667,13 +667,13 @@ public Items pbChooseItem(int var=0,params Items[] args) { /// /// /// - public Items pbChooseItemFromList(string message,int variable,params Items[] args) { + public Items ChooseItemFromList(string message,int variable,params Items[] args) { List commands=new List(); List itemid=new List(); foreach (Items item in args) { - //if (hasConst(PBItems,item)) { + //if (hasConst(Items,item)) { Items id=(Items)item; - if (Bag.pbQuantity(id)>0) { + if (Bag.Quantity(id)>0) { commands.Add(Game._INTL(id.ToString(TextScripts.Name))); itemid.Add(id); } @@ -685,7 +685,7 @@ public Items pbChooseItemFromList(string message,int variable,params Items[] arg } commands.Add(Game._INTL("Cancel")); itemid.Add(0); - int ret=(this as IGameMessage).pbMessage(message,commands.ToArray(),-1); + int ret=(this as IGameMessage).Message(message,commands.ToArray(),-1); if (ret<0 || ret>=commands.Count-1) { GameVariables[variable]=-1; return Items.NONE; @@ -695,13 +695,13 @@ public Items pbChooseItemFromList(string message,int variable,params Items[] arg } } - public void pbTopRightWindow(string text) { + public void TopRightWindow(string text) { IWindow_AdvancedTextPokemon window = null; //new Window_AdvancedTextPokemon(text); window.z=99999; window.width=198; window.y=0; window.x=Graphics.width-window.width; - (this as IGameAudioPlay).pbPlayDecisionSE(); + (this as IGameAudioPlay).PlayDecisionSE(); do { //;loop Graphics?.update(); Input.update(); diff --git a/PokemonUnity.Application/Game/Options.cs b/PokemonUnity.Application/Game/Options.cs index fba9a3645..a9bd21d8d 100644 --- a/PokemonUnity.Application/Game/Options.cs +++ b/PokemonUnity.Application/Game/Options.cs @@ -200,7 +200,7 @@ public partial class Game { new string[] { "Power Clear" } }; - public int pbSettingToTextSpeed(int speed) { + public int SettingToTextSpeed(int speed) { if (speed==0) return 2; if (speed==1) return 1; if (speed==2) return -2; @@ -211,35 +211,35 @@ public int pbSettingToTextSpeed(int speed) { } /*public static partial class MessageConfig { - public static string pbDefaultSystemFrame { get { + public static string DefaultSystemFrame { get { if (Game.GameData.PokemonSystem == null) { - return pbResolveBitmap("Graphics/Windowskins/"+MessageConfig.ChoiceSkinName)??""; + return ResolveBitmap("Graphics/Windowskins/"+MessageConfig.ChoiceSkinName)??""; } else { - return pbResolveBitmap(TextFrames[Game.GameData.PokemonSystem.frame])??""; + return ResolveBitmap(TextFrames[Game.GameData.PokemonSystem.frame])??""; } } } - public static string pbDefaultSpeechFrame { get { + public static string DefaultSpeechFrame { get { if (Game.GameData.PokemonSystem == null) { - return pbResolveBitmap("Graphics/Windowskins/"+MessageConfig.TextSkinName)??""; + return ResolveBitmap("Graphics/Windowskins/"+MessageConfig.TextSkinName)??""; } else { - return pbResolveBitmap("Graphics/Windowskins/"+SpeechFrames[Game.GameData.PokemonSystem.textskin])??""; + return ResolveBitmap("Graphics/Windowskins/"+SpeechFrames[Game.GameData.PokemonSystem.textskin])??""; } } } - public static string pbDefaultSystemFontName { get { + public static string DefaultSystemFontName { get { if (Game.GameData.PokemonSystem == null) { - return MessageConfig.pbTryFonts(MessageConfig.FontName,"Arial Narrow","Arial"); + return MessageConfig.TryFonts(MessageConfig.FontName,"Arial Narrow","Arial"); } else { - return MessageConfig.pbTryFonts(VersionStyles[Game.GameData.PokemonSystem.font][0],"Arial Narrow","Arial"); + return MessageConfig.TryFonts(VersionStyles[Game.GameData.PokemonSystem.font][0],"Arial Narrow","Arial"); } } } - public static int? pbDefaultTextSpeed { get { - return pbSettingToTextSpeed(Game.GameData.PokemonSystem != null ? Game.GameData.PokemonSystem.textspeed : null); + public static int? DefaultTextSpeed { get { + return SettingToTextSpeed(Game.GameData.PokemonSystem != null ? Game.GameData.PokemonSystem.textspeed : null); } } - public static int pbGetSystemTextSpeed { get { + public static int GetSystemTextSpeed { get { return Game.GameData.PokemonSystem != null ? Game.GameData.PokemonSystem.textspeed : ((Graphics.frame_rate>40) ? 2 : 3); } } }*/ diff --git a/PokemonUnity.Application/Game/Temporary/GlobalMetadata.cs b/PokemonUnity.Application/Game/Temporary/GlobalMetadata.cs index 525d0adae..7e2683e7c 100644 --- a/PokemonUnity.Application/Game/Temporary/GlobalMetadata.cs +++ b/PokemonUnity.Application/Game/Temporary/GlobalMetadata.cs @@ -18,45 +18,45 @@ public partial class Game : IGameMetadataMisc /// /// Opens the Pokémon screen /// - public void pbPokemonScreen() { + public void PokemonScreen() { if (Trainer == null) return; IPartyDisplayScene sscene = Scenes.Party; //new PokemonScreen_Scene(); IPartyDisplayScreen sscreen = Screens.Party.initialize(sscene, Trainer.party); //new PokemonScreen(sscene,GameData.Trainer.party); - pbFadeOutIn(99999, block: () => { sscreen.pbPokemonScreen(); }); + FadeOutIn(99999, block: () => { sscreen.PokemonScreen(); }); } - public bool pbSaveScreen() { + public bool SaveScreen() { bool ret=false; ISaveScene scene = Scenes.Save; //new PokemonSaveScene(); ISaveScreen screen = Screens.Save.initialize(scene); //new PokemonSave(scene); - ret=screen.pbSaveScreen(); + ret=screen.SaveScreen(); return ret; } - public void pbConvertItemToItem(int? variable, object[] array) { - Items item=(Items)pbGet(variable); - pbSet(variable,0); + public void ConvertItemToItem(int? variable, object[] array) { + Items item=(Items)Get(variable); + Set(variable,0); for (int i = 0; i < (array.Length/2); i++) { - if (array[2*i] is Items) { //isConst(item,PBItems,array[2*i]) - pbSet(variable,array[2*i+1] as Items?); //getID(PBItems,array[2*i+1]) + if (array[2*i] is Items) { //isConst(item,Items,array[2*i]) + Set(variable,array[2*i+1] as Items?); //getID(Items,array[2*i+1]) return; } } } - - public void pbConvertItemToPokemon(int? variable,object[] array) { - Pokemons item=(Pokemons)pbGet(variable); - pbSet(variable,0); + + public void ConvertItemToPokemon(int? variable,object[] array) { + Pokemons item=(Pokemons)Get(variable); + Set(variable,0); for (int i = 0; i < (array.Length/2); i++) { - if (array[2*i] is Pokemons) { //isConst(item,PBItems,array[2*i]) - pbSet(variable,array[2*i+1]); //getID(PBSpecies,array[2*i+1]) + if (array[2*i] is Pokemons) { //isConst(item,Items,array[2*i]) + Set(variable,array[2*i+1]); //getID(Species,array[2*i+1]) return; } } } - public bool pbRecordTrainer() { - IWaveData wave = this is IGameField f ? f.pbRecord(null,10) : null; + public bool RecordTrainer() { + IWaveData wave = this is IGameField f ? f.Record(null,10) : null; if (wave != null) { Global.trainerRecording=wave; return true; @@ -76,7 +76,7 @@ public partial class GlobalMetadata : PokemonEssentials.Interface.Field.IGlobalM public bool runtoggle { get; set; } /// /// - /// Should not stack (encourage users to deplete excessive money); + /// Should not stack (encourage users to deplete excessive money); /// reset count based on repel used. ///ToDo: Missing Variables for RepelType, Swarm public int repel { get; set; } @@ -108,7 +108,7 @@ public partial class GlobalMetadata : PokemonEssentials.Interface.Field.IGlobalM public int[] pokedexIndex { get; set; } // Last species viewed per Dex public int pokedexMode { get; set; } // Search mode public ITilePosition healingSpot { get; set; } - public float[] escapePoint { get; set; } + public MetadataPosition? escapePoint { get; set; } public int pokecenterMapId { get; set; } public float pokecenterX { get; set; } public float pokecenterY { get; set; } @@ -169,7 +169,7 @@ public GlobalMetadata() { @daycareEgg = false;//0; @daycareEggSteps = 0; int numRegions = 0; - //pbRgssOpen("Data/regionals.dat","rb"){|f| numRegions = f.fgetw } + //RgssOpen("Data/regionals.dat","rb"){|f| numRegions = f.fgetw } @pokedexUnlocked = new bool[numRegions]; @pokedexViable = new List(); @pokedexDex = (numRegions==0) ? -1 : 0; @@ -180,7 +180,7 @@ public GlobalMetadata() { @pokedexUnlocked[i] = (i==0); } @healingSpot = null; - @escapePoint = new float[0]; + @escapePoint = new MetadataPosition();//float[0]; @pokecenterMapId = -1; @pokecenterX = -1; @pokecenterY = -1; diff --git a/PokemonUnity.Application/GameState.cs b/PokemonUnity.Application/GameState.cs index edba8cb61..3efd84bab 100644 --- a/PokemonUnity.Application/GameState.cs +++ b/PokemonUnity.Application/GameState.cs @@ -1,11 +1,18 @@ using System; using System.Collections.Generic; using System.Linq; +using PokemonUnity; using PokemonUnity.Inventory; using PokemonUnity.Saving.SerializableClasses; using PokemonUnity.Application; using PokemonUnity.Utility; using PokemonEssentials.Interface; +using PokemonEssentials.Interface.Battle; +using PokemonEssentials.Interface.Item; +using PokemonEssentials.Interface.Field; +using PokemonEssentials.Interface.Screen; +using PokemonEssentials.Interface.PokeBattle; +using PokemonEssentials.Interface.PokeBattle.Effects; namespace PokemonUnity.Saving { @@ -15,7 +22,7 @@ public struct GameState : IEquatable, IEqualityComparer #region ImportantInfo //public string BuildVersion { get; private set; } //SaveManager.GetBuildVersion(); /// - /// Creation date of this save file; The UTC DateTime this save file was created + /// Creation date of this save file; The UTC DateTime this save file was created /// public DateTime TimeCreated { get; private set; } public Feature Features { get; private set; } @@ -42,8 +49,8 @@ public struct GameState : IEquatable, IEqualityComparer // , secretid: SecretID // ); // } - //} - public string PlayerName { get; private set; } + //} + public string PlayerName { get; private set; } public int TrainerID { get; private set; } public int SecretID { get; private set; } public bool IsMale { get; private set; } @@ -93,11 +100,11 @@ public struct GameState : IEquatable, IEqualityComparer #endregion #region Constructors - //public GameState (Player player, int? money = null, int? coin = null, byte[,] pokedex = null, - // TimeSpan? time = null, Vector position = new Vector(), float? direction = null, int? scene = null, - // int? pokecenter = null, KeyValuePair[] gym = null, Items[] bag = null, + //public GameState (Player player, int? money = null, int? coin = null, byte[,] pokedex = null, + // TimeSpan? time = null, Vector position = new Vector(), float? direction = null, int? scene = null, + // int? pokecenter = null, KeyValuePair[] gym = null, Items[] bag = null, // SeriPC pc = null - // ) + // ) // : this(name: player.Name, money: money, coin: coin, trainer: player.Trainer.TrainerID, // secret: player.Trainer.SecretID, gender: player.Trainer.Gender, pokedex: pokedex, // time: time, position: position, direction: direction, map: scene, pokecenter: pokecenter, @@ -106,9 +113,9 @@ public struct GameState : IEquatable, IEqualityComparer //{ //} - //public GameState (string name, Challenges? challenge = null, Feature? features = null, int? money = null, int? coin = null, int? trainer = null, int? secret = null, + //public GameState (string name, Challenges? challenge = null, Feature? features = null, int? money = null, int? coin = null, int? trainer = null, int? secret = null, // bool? gender = null, byte[,] pokedex = null, TimeSpan? time = null, Vector? position = null, float? direction = null, byte? follower = null, - // bool? creator = null, int? map = null, byte? box = null, int? pokecenter = null, KeyValuePair[] gym = null, Items[] bag = null, + // bool? creator = null, int? map = null, byte? box = null, int? pokecenter = null, KeyValuePair[] gym = null, Items[] bag = null, // SeriPokemon[] party = null, Character.PC pc = null // ) //{ @@ -154,17 +161,17 @@ public struct GameState : IEquatable, IEqualityComparer // Pokedex[i][j] = (byte)dex2[i, j]; // } // } - // - // PlayerPC = pc != null - // ? new SeriPC(pc) + // + // PlayerPC = pc != null + // ? new SeriPC(pc) // : new SeriPC(new Monster.Pokemon[Core.STORAGEBOXES, 30], new string[Core.STORAGEBOXES], new int[Core.STORAGEBOXES], new List()); //} public GameState (IGamePlayer player, Challenges? challenge = null, Feature? features = null, string overworld = null, string daycare = null, string berry = null, string apricon = null, string npc = null - //, string name, int? money = null, int? coin = null, int? trainer = null, int? secret = null, + //, string name, int? money = null, int? coin = null, int? trainer = null, int? secret = null, //bool? gender = null, byte[,] pokedex = null, TimeSpan? time = null, Vector? position = null, float? direction = null, byte? follower = null, - //bool? creator = null, int? map = null, byte? box = null, int? pokecenter = null, KeyValuePair[] gym = null, Items[] bag = null, + //bool? creator = null, int? map = null, byte? box = null, int? pokecenter = null, KeyValuePair[] gym = null, Items[] bag = null, //SeriPokemon[] party = null, Character.PC pc = null ) { @@ -213,15 +220,15 @@ public GameState (IGamePlayer player, Challenges? challenge = null, Feature? fea Pokedex[i][j] = (byte)player.Pokedex[i, j]; } } - - PlayerPC = player.PC != null - ? new SeriPC(player.PC) + + PlayerPC = player.PC != null + ? new SeriPC(player.PC) : new SeriPC(new Monster.Pokemon[Core.STORAGEBOXES, 30], new string[Core.STORAGEBOXES], new int[Core.STORAGEBOXES], new List()); } #endregion #region Methods - public IGamePlayer GetPlayer() + public ITrainer GetPlayer() { //return new Character.Player( // name: PlayerName @@ -245,7 +252,7 @@ public IGamePlayer GetPlayer() // //, direction: PlayerDirection // , follower: FollowerPokemon // , creator: IsCreator - // //, map: + // //, map: // , pokecenter: PokeCenterId // , gym: GymsChallenged // //, daycare: PlayerDayCare @@ -266,10 +273,10 @@ public static implicit operator GameState(Game game) return state; } /// - /// Two games are the same, - /// if the same player character exist both games + /// Two games are the same, + /// if the same player character exist both games /// (regardless of when files were created, or progress made) - /// with identical settings and configurations. + /// with identical settings and configurations. /// /// /// diff --git a/PokemonUnity.Application/Input.cs b/PokemonUnity.Application/Input.cs index f360347fc..1857f0303 100644 --- a/PokemonUnity.Application/Input.cs +++ b/PokemonUnity.Application/Input.cs @@ -5,7 +5,7 @@ namespace PokemonUnity { - //public bool pbSameThread(wnd) { + //public bool SameThread(wnd) { // if (wnd==0) return false; // processid= new int[]{ 0 }; //.pack('l') // getCurrentThreadId=new Win32API('kernel32','GetCurrentThreadId', '%w()','l'); @@ -118,7 +118,7 @@ public static bool getstate(int key) { } public static void updateKeyState(int i) { - //bool gfw=pbSameThread(@GetForegroundWindow.call()); + //bool gfw=SameThread(@GetForegroundWindow.call()); if (!@stateUpdated[i]) { bool newstate=Input.getstate(i); //&& gfw @triggerstate[i]=(newstate&&@keystate[i]==0); diff --git a/PokemonUnity.Application/Inventory/Item/Item.Effects.cs b/PokemonUnity.Application/Inventory/Item/Item.Effects.cs index ad6c8c788..8e9d8eb65 100644 --- a/PokemonUnity.Application/Inventory/Item/Item.Effects.cs +++ b/PokemonUnity.Application/Inventory/Item/Item.Effects.cs @@ -76,13 +76,13 @@ public class UseInBattleEventArgs : EventArgs, IUseInBattleEventArgs //public static partial class ItemHandlers public partial class Game : IGameItemEffect { - public ItemUseResults pbRepel(Items item,int steps) { + public ItemUseResults Repel(Items item,int steps) { if (RepelSteps>0) { - (this as IGameMessage).pbMessage(Game._INTL("But the effects of a Repel lingered from earlier.")); + (this as IGameMessage).Message(Game._INTL("But the effects of a Repel lingered from earlier.")); //return 0; return ItemUseResults.NotUsed; } else { - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Trainer.name,Game._INTL(item.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Trainer.name,Game._INTL(item.ToString(TextScripts.Name)))); RepelSteps=steps; //return 3; return ItemUseResults.UsedItemConsumed; @@ -93,20 +93,20 @@ public ItemUseResults pbRepel(Items item,int steps) { /*private void RegisterItemHandlers() { //Events.OnStepTaken+=OnStepTakenEventHandler; #region UseFromBag handlers - UseFromBag.Add(Items.REPEL, () => { return pbRepel(Items.REPEL, 100); }); - UseFromBag.Add(Items.SUPER_REPEL, () => { return pbRepel(Items.SUPER_REPEL,200); }); - UseFromBag.Add(Items.MAX_REPEL, () => { return pbRepel(Items.MAX_REPEL,250); }); + UseFromBag.Add(Items.REPEL, () => { return Repel(Items.REPEL, 100); }); + UseFromBag.Add(Items.SUPER_REPEL, () => { return Repel(Items.SUPER_REPEL,200); }); + UseFromBag.Add(Items.MAX_REPEL, () => { return Repel(Items.MAX_REPEL,250); }); UseFromBag.Add(Items.BLACK_FLUTE, () => { - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.BLACK_FLUTE.ToString(TextScripts.Name)))); - (this as IGameMessage).pbMessage(Game._INTL("Wild Pokémon will be repelled.")); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.BLACK_FLUTE.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL("Wild Pokémon will be repelled.")); MapData.blackFluteUsed=true; MapData.whiteFluteUsed=false; //next 1; return ItemUseResults.UsedNotConsumed; }); UseFromBag.Add(Items.WHITE_FLUTE, () => { - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.WHITE_FLUTE.ToString(TextScripts.Name)))); - (this as IGameMessage).pbMessage(Game._INTL("Wild Pokémon will be lured.")); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.WHITE_FLUTE.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL("Wild Pokémon will be lured.")); MapData.blackFluteUsed=false; MapData.whiteFluteUsed=true; //next 1; @@ -114,8 +114,8 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseFromBag.Add(Items.HONEY, () => { return ItemUseResults.CloseBagItemConsumed; }); UseFromBag.Add(Items.ESCAPE_ROPE, () => { - if (GamePlayer.pbHasDependentEvents()) { - (this as IGameMessage).pbMessage(Game._INTL("It can't be used when you have someone with you.")); + if (GamePlayer.HasDependentEvents()) { + (this as IGameMessage).Message(Game._INTL("It can't be used when you have someone with you.")); //next 0; return ItemUseResults.NotUsed; } @@ -123,7 +123,7 @@ public ItemUseResults pbRepel(Items item,int steps) { //next 4; // End screen and consume item return ItemUseResults.CloseBagItemConsumed; } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next 0; return ItemUseResults.NotUsed; } @@ -131,80 +131,80 @@ public ItemUseResults pbRepel(Items item,int steps) { UseFromBag.Add(Items.SACRED_ASH, () => { int revived=0; if (Trainer.pokemonCount==0) { - (this as IGameMessage).pbMessage(Game._INTL("There is no Pokémon.")); + (this as IGameMessage).Message(Game._INTL("There is no Pokémon.")); //next 0; return ItemUseResults.NotUsed; } //ToDo: Redo below into an Event Listener (Subscribe to on Frontend) - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IPartyDsplayScene scene=Scenes.Party; //new PokemonScreen_Scene(); IPartyDsplayScreen screen = Screens.Party.initialize(scene,Trainer.party); //new PokemonScreen(scene,Trainer.party); - screen.pbStartScene(Game._INTL("Using item..."),false); + screen.StartScene(Game._INTL("Using item..."),false); foreach (Pokemon i in Trainer.party) { if (i.HP<=0 && !i.isEgg) { revived+=1; i.Heal(); - screen.pbDisplay(Game._INTL("{1}'s HP was restored.",i.Name)); + screen.Display(Game._INTL("{1}'s HP was restored.",i.Name)); } } if (revived==0) { - screen.pbDisplay(Game._INTL("It won't have any effect.")); + screen.Display(Game._INTL("It won't have any effect.")); } - screen.pbEndScene(); + screen.EndScene(); }); //next (revived==0) ? 0 : 3; return (revived==0) ? ItemUseResults.NotUsed : ItemUseResults.UsedItemConsumed; }); UseFromBag.Add(Items.BICYCLE, () => { - //next pbBikeCheck ? 2 : 0; - return pbBikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; + //next BikeCheck ? 2 : 0; + return BikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; //return ItemUseResults.NotUsed; }); UseFromBag.Add(Items.MACH_BIKE, () => { - //next pbBikeCheck ? 2 : 0; - return pbBikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; + //next BikeCheck ? 2 : 0; + return BikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; //return ItemUseResults.NotUsed; }); UseFromBag.Add(Items.ACRO_BIKE, () => { - //next pbBikeCheck ? 2 : 0; - return pbBikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; + //next BikeCheck ? 2 : 0; + return BikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; //return ItemUseResults.NotUsed; }); UseFromBag.Add(Items.OLD_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if ((Terrain.isWater(terrain) && !Global.surfing && notCliff) || (Terrain.isWater(terrain) && Global.surfing)) { //next 2; return ItemUseResults.CloseBagNotConsumed; } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next 0; return ItemUseResults.NotUsed; } }); UseFromBag.Add(Items.GOOD_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if ((Terrain.isWater(terrain) && !Global.surfing && notCliff) || (Terrain.isWater(terrain) && Global.surfing)) { //next 2; return ItemUseResults.CloseBagNotConsumed; } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next 0; return ItemUseResults.NotUsed; } }); UseFromBag.Add(Items.SUPER_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if ((Terrain.isWater(terrain) && !Global.surfing && notCliff) || (Terrain.isWater(terrain) && Global.surfing)) { //next 2; return ItemUseResults.CloseBagNotConsumed; } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next 0; return ItemUseResults.NotUsed; } @@ -212,24 +212,24 @@ public ItemUseResults pbRepel(Items item,int steps) { //UseFromBag.Add(Items.ITEM_FINDER, () => { return ItemUseResults.CloseBagNotConsumed; }); UseFromBag.Add(Items.DOWSING_MACHINE, () => { return ItemUseResults.CloseBagNotConsumed; }); UseFromBag.Add(Items.TOWN_MAP, () => { - pbShowMap(-1,false); + ShowMap(-1,false); //next 1; // Continue return ItemUseResults.UsedNotConsumed; }); UseFromBag.Add(Items.COIN_CASE, () => { - (this as IGameMessage).pbMessage(Game._INTL("Coins: {1}",Player.Coins)); + (this as IGameMessage).Message(Game._INTL("Coins: {1}",Player.Coins)); //next 1; // Continue return ItemUseResults.UsedNotConsumed; }); UseFromBag.Add(Items.EXP_ALL, () => { - Bag.pbChangeItem(Items.EXP_ALL, Items.EXP_ALL_OFF); - (this as IGameMessage).pbMessage(Game._INTL("The Exp Share was turned off.")); + Bag.ChangeItem(Items.EXP_ALL, Items.EXP_ALL_OFF); + (this as IGameMessage).Message(Game._INTL("The Exp Share was turned off.")); //next 1; // Continue return ItemUseResults.UsedNotConsumed; }); UseFromBag.Add(Items.EXP_ALL_OFF, () => { - Bag.pbChangeItem(Items.EXP_ALL_OFF, Items.EXP_ALL); - (this as IGameMessage).pbMessage(Game._INTL("The Exp Share was turned on.")); + Bag.ChangeItem(Items.EXP_ALL_OFF, Items.EXP_ALL); + (this as IGameMessage).Message(Game._INTL("The Exp Share was turned on.")); //next 1; // Continue return ItemUseResults.UsedNotConsumed; }); @@ -237,24 +237,24 @@ public ItemUseResults pbRepel(Items item,int steps) { #region UseInField handlers UseInField.Add(Items.HONEY, () => { - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.HONEY.ToString(TextScripts.Name)))); - pbSweetScent(); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.HONEY.ToString(TextScripts.Name)))); + SweetScent(); }); UseInField.Add(Items.ESCAPE_ROPE, () => { int[] escape=Global.escapePoint; //rescue null if (escape == null || escape.Length==0) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next; return; } - if (GamePlayer.pbHasDependentEvents()) { - (this as IGameMessage).pbMessage(Game._INTL("It can't be used when you have someone with you.")); + if (GamePlayer.HasDependentEvents()) { + (this as IGameMessage).Message(Game._INTL("It can't be used when you have someone with you.")); //next; return; } - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(item.ToString(TextScripts.Name)))); - pbFadeOutIn(99999, block: () => { - pbCancelVehicles(); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(item.ToString(TextScripts.Name)))); + FadeOutIn(99999, block: () => { + CancelVehicles(); GameTemp.player_new_map_id=escape[0]; GameTemp.player_new_x=escape[1]; GameTemp.player_new_y=escape[2]; @@ -263,83 +263,83 @@ public ItemUseResults pbRepel(Items item,int steps) { GameMap.autoplay(); GameMap.refresh(); }); - pbEraseEscapePoint(); + EraseEscapePoint(); }); UseInField.Add(Items.BICYCLE, () => { - if (pbBikeCheck()) { + if (BikeCheck()) { if (Global.bicycle) { - pbDismountBike(); + DismountBike(); } else { - pbMountBike(); + MountBike(); } } }); UseInField.Add(Items.MACH_BIKE, () => { - if (pbBikeCheck()) { + if (BikeCheck()) { if (Global.bicycle) { - pbDismountBike(); + DismountBike(); } else { - pbMountBike(); + MountBike(); } } }); UseInField.Add(Items.ACRO_BIKE, () => { - if (pbBikeCheck()) { + if (BikeCheck()) { if (Global.bicycle) { - pbDismountBike(); + DismountBike(); } else { - pbMountBike(); + MountBike(); } } }); UseInField.Add(Items.OLD_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable/(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if (!Terrain.isWater(terrain) || (!notCliff && !Global.surfing)) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next; return; } bool encounter=PokemonEncounters.hasEncounter(EncounterTypes.OldRod); - if (pbFishing(encounter,1)) { - pbEncounter(EncounterTypes.OldRod); + if (Fishing(encounter,1)) { + Encounter(EncounterTypes.OldRod); } }); UseInField.Add(Items.GOOD_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if (!Terrain.isWater(terrain) || (!notCliff && !Global.surfing)) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next; return; } bool encounter=PokemonEncounters.hasEncounter(EncounterTypes.GoodRod); - if (pbFishing(encounter,2)) { - pbEncounter(EncounterTypes.GoodRod); + if (Fishing(encounter,2)) { + Encounter(EncounterTypes.GoodRod); } }); UseInField.Add(Items.SUPER_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if (!Terrain.isWater(terrain) || (!notCliff && !Global.surfing)) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next; return; } bool encounter=PokemonEncounters.hasEncounter(EncounterTypes.SuperRod); - if (pbFishing(encounter,3)) { - pbEncounter(EncounterTypes.SuperRod); + if (Fishing(encounter,3)) { + Encounter(EncounterTypes.SuperRod); } }); UseInField.Add(Items.DOWSING_MACHINE, () => {//item == Items.ITEM_FINDER || item == Items.DOWSING_MCHN || - @event=Item.pbClosestHiddenItem(); + @event=Item.ClosestHiddenItem(); if (@event == null) { - (this as IGameMessage).pbMessage(Game._INTL("... ... ... ...Nope!\r\nThere's no response.")); + (this as IGameMessage).Message(Game._INTL("... ... ... ...Nope!\r\nThere's no response.")); } else { int offsetX=@event.x-GamePlayer.x; int offsetY=@event.y-GamePlayer.y; @@ -348,9 +348,9 @@ public ItemUseResults pbRepel(Items item,int steps) { Graphics?.update(); Input.update(); if ((i&7)==0) GamePlayer.turn_right_90(); - pbUpdateSceneMap(); + UpdateSceneMap(); } - (this as IGameMessage).pbMessage(Game._INTL(@"The {1}'s indicating something right underfoot!\1",Game._INTL(item.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL(@"The {1}'s indicating something right underfoot!\1",Game._INTL(item.ToString(TextScripts.Name)))); } else { int direction=GamePlayer.direction; if (Math.Abs(offsetX)>Math.Abs(offsetY)) { @@ -367,20 +367,20 @@ public ItemUseResults pbRepel(Items item,int steps) { if (direction==6) GamePlayer.turn_right(); if (direction==8) GamePlayer.turn_up(); } - pbUpdateSceneMap(); + UpdateSceneMap(); } - (this as IGameMessage).pbMessage(Game._INTL(@"Huh?\nThe {1}'s responding!\1",Game._INTL(item.ToString(TextScripts.Name)))); - (this as IGameMessage).pbMessage(Game._INTL("There's an item buried around here!")); + (this as IGameMessage).Message(Game._INTL(@"Huh?\nThe {1}'s responding!\1",Game._INTL(item.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL("There's an item buried around here!")); } } }); UseInField.Add(Items.TOWN_MAP, () => { - pbShowMap(-1,false); + ShowMap(-1,false); }); UseInField.Add(Items.COIN_CASE, () => { - (this as IGameMessage).pbMessage(Game._INTL("Coins: {1}",Player.Coins)); + (this as IGameMessage).Message(Game._INTL("Coins: {1}",Player.Coins)); //next 1; // Continue //return ItemUseResults.UsedNotConsumed; }); @@ -390,26 +390,26 @@ public ItemUseResults pbRepel(Items item,int steps) { #region UseOnPokemon handlers UseOnPokemon.Add(Items.FIRE_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -418,26 +418,26 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.THUNDER_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -446,26 +446,26 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.WATER_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -474,26 +474,26 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.LEAF_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -502,26 +502,26 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.MOON_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -530,26 +530,26 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.SUN_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -558,26 +558,26 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.DUSK_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -586,26 +586,26 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.DAWN_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -614,26 +614,26 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.SHINY_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo= Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IPokemonBag_Scene) { - //scene.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - scene.pbRefreshAnnotations(() => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - scene.pbRefresh(); + //scene.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + scene.RefreshAnnotations(() => { Evolution.CheckEvolution(p, item)[0] > 0; }); + scene.Refresh(); } }); //next true; @@ -642,118 +642,118 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.POTION, (item, pokemon, scene) => { - //next pbHPItem(pokemon,20,scene); - return Item.pbHPItem(pokemon,20,scene); + //next HPItem(pokemon,20,scene); + return Item.HPItem(pokemon,20,scene); }); UseOnPokemon.Add(Items.SUPER_POTION, (item, pokemon, scene) => { - //next pbHPItem(pokemon,50,scene); - return Item.pbHPItem(pokemon,50,scene); + //next HPItem(pokemon,50,scene); + return Item.HPItem(pokemon,50,scene); }); UseOnPokemon.Add(Items.HYPER_POTION, (item, pokemon, scene) => { - //next pbHPItem(pokemon,200,scene); - return Item.pbHPItem(pokemon,200,scene); + //next HPItem(pokemon,200,scene); + return Item.HPItem(pokemon,200,scene); }); UseOnPokemon.Add(Items.MAX_POTION, (item, pokemon, scene) => { - //next pbHPItem(pokemon,pokemon.TotalHP-pokemon.HP,scene); - return Item.pbHPItem(pokemon,pokemon.TotalHP-pokemon.HP,scene); + //next HPItem(pokemon,pokemon.TotalHP-pokemon.HP,scene); + return Item.HPItem(pokemon,pokemon.TotalHP-pokemon.HP,scene); }); UseOnPokemon.Add(Items.BERRY_JUICE, (item, pokemon, scene) => { - //next pbHPItem(pokemon,20,scene); - return Item.pbHPItem(pokemon,20,scene); + //next HPItem(pokemon,20,scene); + return Item.HPItem(pokemon,20,scene); }); UseOnPokemon.Add(Items.RAGE_CANDY_BAR, (item, pokemon, scene) => { - //next pbHPItem(pokemon,20,scene); - return Item.pbHPItem(pokemon,20,scene); + //next HPItem(pokemon,20,scene); + return Item.HPItem(pokemon,20,scene); }); UseOnPokemon.Add(Items.SWEET_HEART, (item, pokemon, scene) => { - //next pbHPItem(pokemon,20,scene); - return Item.pbHPItem(pokemon,20,scene); + //next HPItem(pokemon,20,scene); + return Item.HPItem(pokemon,20,scene); }); UseOnPokemon.Add(Items.FRESH_WATER, (item, pokemon, scene) => { - //next pbHPItem(pokemon,50,scene); - return Item.pbHPItem(pokemon,50,scene); + //next HPItem(pokemon,50,scene); + return Item.HPItem(pokemon,50,scene); }); UseOnPokemon.Add(Items.SODA_POP, (item, pokemon, scene) => { - //next pbHPItem(pokemon,60,scene); - return Item.pbHPItem(pokemon,60,scene); + //next HPItem(pokemon,60,scene); + return Item.HPItem(pokemon,60,scene); }); UseOnPokemon.Add(Items.LEMONADE, (item, pokemon, scene) => { - //next pbHPItem(pokemon,80,scene); - return Item.pbHPItem(pokemon,80,scene); + //next HPItem(pokemon,80,scene); + return Item.HPItem(pokemon,80,scene); }); UseOnPokemon.Add(Items.MOOMOO_MILK, (item, pokemon, scene) => { - //next pbHPItem(pokemon,100,scene); - return Item.pbHPItem(pokemon,100,scene); + //next HPItem(pokemon,100,scene); + return Item.HPItem(pokemon,100,scene); }); UseOnPokemon.Add(Items.ORAN_BERRY, (item, pokemon, scene) => { - //next pbHPItem(pokemon,10,scene); - return Item.pbHPItem(pokemon,10,scene); + //next HPItem(pokemon,10,scene); + return Item.HPItem(pokemon,10,scene); }); UseOnPokemon.Add(Items.SITRUS_BERRY, (item, pokemon, scene) => { - //next pbHPItem(pokemon,Math.Floor(pokemon.TotalHP/4),scene); - return Item.pbHPItem(pokemon,(int)Math.Floor(pokemon.TotalHP/4f),scene); + //next HPItem(pokemon,Math.Floor(pokemon.TotalHP/4),scene); + return Item.HPItem(pokemon,(int)Math.Floor(pokemon.TotalHP/4f),scene); }); UseOnPokemon.Add(Items.AWAKENING, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.CHESTO_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.BLUE_FLUTE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.POKE_FLUTE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); //next true; return true; } @@ -761,26 +761,26 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.ANTIDOTE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.POISON) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.PECHA_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.POISON) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); //next true; return true; } @@ -788,26 +788,26 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.BURN_HEAL, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.BURN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s burn was healed.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s burn was healed.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.RAWST_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.BURN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s burn was healed.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s burn was healed.",pokemon.Name)); //next true; return true; } @@ -815,26 +815,26 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.PARALYZE_HEAL, (item, pokemon, scene) => {//item == Items.PARLYZHEAL || if (pokemon.HP<=0 || pokemon.Status!=Status.PARALYSIS) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.CHERI_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.PARALYSIS) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); //next true; return true; } @@ -842,26 +842,26 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.ICE_HEAL, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.FROZEN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was thawed out.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was thawed out.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.ASPEAR_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.FROZEN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was thawed out.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was thawed out.",pokemon.Name)); //next true; return true; } @@ -869,91 +869,91 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.FULL_HEAL, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.LAVA_COOKIE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.OLD_GATEAU, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.CASTELIACONE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.LUMIOSE_GALETTE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.SHALOUR_SABLE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.LUM_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } @@ -961,17 +961,17 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.FULL_RESTORE, (item, pokemon, scene) => { if (pokemon.HP<=0 || (pokemon.HP==pokemon.TotalHP && pokemon.Status==0)) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { - int hpgain=Item.pbItemRestoreHP(pokemon,pokemon.TotalHP-pokemon.HP); + int hpgain=Item.ItemRestoreHP(pokemon,pokemon.TotalHP-pokemon.HP); pokemon.HealStatus(); - scene.pbRefresh(); + scene.Refresh(); if (hpgain>0) { - scene.pbDisplay(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); + scene.Display(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); } else { - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); } //next true; return true; @@ -980,14 +980,14 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.REVIVE, (item, pokemon, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HP=(int)Math.Floor(pokemon.TotalHP/2f); pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); //next true; return true; } @@ -995,21 +995,21 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.MAX_REVIVE, (item, pokemon, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealHP(); pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.ENERGY_POWDER, (item, pokemon, scene) => { - if (Item.pbHPItem(pokemon,50,scene)) { + if (Item.HPItem(pokemon,50,scene)) { pokemon.ChangeHappiness(HappinessMethods.POWDER); //next true; return true; @@ -1019,7 +1019,7 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.ENERGY_ROOT, (item, pokemon, scene) => { - if (Item.pbHPItem(pokemon,200,scene)) { + if (Item.HPItem(pokemon,200,scene)) { pokemon.ChangeHappiness(HappinessMethods.ENERGYROOT); //next true; return true; @@ -1030,14 +1030,14 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.HEAL_POWDER, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); pokemon.ChangeHappiness(HappinessMethods.POWDER); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } @@ -1045,29 +1045,29 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.REVIVAL_HERB, (item, pokemon, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealHP(); pokemon.HealStatus(); pokemon.ChangeHappiness(HappinessMethods.REVIVALHERB); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.ETHER, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbRestorePP(pokemon,move,10)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RestorePP(pokemon,move,10)==0) { + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); //next true; return true; } @@ -1076,14 +1076,14 @@ public ItemUseResults pbRepel(Items item,int steps) { return false; }); UseOnPokemon.Add(Items.LEPPA_BERRY, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbRestorePP(pokemon,move,10)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RestorePP(pokemon,move,10)==0) { + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); //next true; return true; } @@ -1093,13 +1093,13 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.MAX_ETHER, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbRestorePP(pokemon,move,pokemon.moves[move].TotalPP-pokemon.moves[move].PP)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RestorePP(pokemon,move,pokemon.moves[move].TotalPP-pokemon.moves[move].PP)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } } @@ -1109,13 +1109,13 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.ELIXIR, (item, pokemon, scene) => { int pprestored=0; for (int i = 0; i < pokemon.moves.Length; i++) { - pprestored+=Item.pbRestorePP(pokemon,i,10); + pprestored+=Item.RestorePP(pokemon,i,10); } if (pprestored==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } }); @@ -1123,27 +1123,27 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.MAX_ELIXIR, (item, pokemon, scene) => { int pprestored=0; for (int i = 0; i < pokemon.moves.Length; i++) { - pprestored+=Item.pbRestorePP(pokemon,i,pokemon.moves[i].TotalPP-pokemon.moves[i].PP); + pprestored+=Item.RestorePP(pokemon,i,pokemon.moves[i].TotalPP-pokemon.moves[i].PP); } if (pprestored==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } }); UseOnPokemon.Add(Items.PP_UP, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Boost PP of which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Boost PP of which move?")); if (move>=0) { if (pokemon.moves[move].TotalPP==0 || pokemon.moves[move].PPups>=3) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.moves[move].PPups+=1; string movename=Game._INTL(pokemon.moves[move].id.ToString(TextScripts.Name)); - scene.pbDisplay(Game._INTL("{1}'s PP increased.",movename)); + scene.Display(Game._INTL("{1}'s PP increased.",movename)); return true; } } @@ -1151,15 +1151,15 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.PP_MAX, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Boost PP of which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Boost PP of which move?")); if (move>=0) { if (pokemon.moves[move].TotalPP==0 || pokemon.moves[move].PPups>=3) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.moves[move].PPups=3; string movename=Game._INTL(pokemon.moves[move].id.ToString(TextScripts.Name)); - scene.pbDisplay(Game._INTL("{1}'s PP increased.",movename)); + scene.Display(Game._INTL("{1}'s PP increased.",movename)); return true; } } @@ -1167,134 +1167,134 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.HP_UP, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.HP)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.HP)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP increased.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.PROTEIN, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.ATTACK)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.ATTACK)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Attack increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Attack increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.IRON, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.DEFENSE)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.DEFENSE)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Defense increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Defense increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.CALCIUM, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPATK)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPATK)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Special Attack increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Special Attack increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.ZINC, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPDEF)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPDEF)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Special Defense increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Special Defense increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.CARBOS, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPEED)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPEED)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Speed increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Speed increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.HEALTH_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.HP,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.HP,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP increased.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.MUSCLE_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.ATTACK,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.ATTACK,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Attack increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Attack increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.RESIST_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.DEFENSE,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.DEFENSE,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Defense increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Defense increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.GENIUS_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPATK,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPATK,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Special Attack increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Special Attack increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.CLEVER_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPDEF,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPDEF,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Special Defense increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Special Defense increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.SWIFT_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPEED,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPEED,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Speed increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Speed increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } @@ -1302,17 +1302,17 @@ public ItemUseResults pbRepel(Items item,int steps) { UseOnPokemon.Add(Items.RARE_CANDY, (item, pokemon, scene) => { if (pokemon.Level>=Core.MAXIMUMLEVEL || (pokemon.isShadow)) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - Item.pbChangeLevel(pokemon,pokemon.Level+1,scene); - scene.pbHardRefresh(); + Item.ChangeLevel(pokemon,pokemon.Level+1,scene); + scene.HardRefresh(); return true; } }); UseOnPokemon.Add(Items.POMEG_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.HP,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.HP,new string[] { Game._INTL("{1} adores you! Its base HP fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base HP can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base HP fell!",pokemon.Name) @@ -1320,7 +1320,7 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.KELPSY_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.ATTACK,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.ATTACK,new string[] { Game._INTL("{1} adores you! Its base Attack fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Attack can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Attack fell!",pokemon.Name) @@ -1328,7 +1328,7 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.QUALOT_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.DEFENSE,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.DEFENSE,new string[] { Game._INTL("{1} adores you! Its base Defense fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Defense can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Defense fell!",pokemon.Name) @@ -1336,7 +1336,7 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.HONDEW_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.SPATK,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.SPATK,new string[] { Game._INTL("{1} adores you! Its base Special Attack fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Special Attack can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Special Attack fell!",pokemon.Name) @@ -1344,7 +1344,7 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.GREPA_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.SPDEF,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.SPDEF,new string[] { Game._INTL("{1} adores you! Its base Special Defense fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Special Defense can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Special Defense fell!",pokemon.Name) @@ -1352,7 +1352,7 @@ public ItemUseResults pbRepel(Items item,int steps) { }); UseOnPokemon.Add(Items.TAMATO_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.SPEED,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.SPEED,new string[] { Game._INTL("{1} adores you! Its base Speed fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Speed can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Speed fell!",pokemon.Name) @@ -1364,14 +1364,14 @@ public ItemUseResults pbRepel(Items item,int steps) { pokemon.Status!=Status.FROZEN && !IsNight) { if (pokemon.HP>0) { pokemon.SetForm(1); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } else { - scene.pbDisplay(Game._INTL("This can't be used on the fainted Pokémon.")); + scene.Display(Game._INTL("This can't be used on the fainted Pokémon.")); } } else { - scene.pbDisplay(Game._INTL("It had no effect.")); + scene.Display(Game._INTL("It had no effect.")); return false; } return false; @@ -1383,14 +1383,14 @@ public ItemUseResults pbRepel(Items item,int steps) { pokemon.Species == Pokemons.LANDORUS)) { if (pokemon.HP>0) { pokemon.SetForm((pokemon.FormId==0) ? 1 : 0); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } else { - scene.pbDisplay(Game._INTL("This can't be used on the fainted Pokémon.")); + scene.Display(Game._INTL("This can't be used on the fainted Pokémon.")); } } else { - scene.pbDisplay(Game._INTL("It had no effect.")); + scene.Display(Game._INTL("It had no effect.")); return false; } return false; @@ -1401,18 +1401,18 @@ public ItemUseResults pbRepel(Items item,int steps) { if (pokemon.HP>0) { if (pokemon.fused!=null) { if (Trainer.party.Length>=6) { //ToDo: Party count has 2 slots open - scene.pbDisplay(Game._INTL("You have no room to separate the Pokémon.")); + scene.Display(Game._INTL("You have no room to separate the Pokémon.")); return false; } else { Trainer.party[Trainer.party.Length]=pokemon.fused[1]; pokemon.fused=null; pokemon.SetForm(0); - scene.pbHardRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + scene.HardRefresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } } else { - int chosen=scene.pbChoosePokemon(Game._INTL("Fuse with which Pokémon?")); + int chosen=scene.ChoosePokemon(Game._INTL("Fuse with which Pokémon?")); if (chosen>=0) { Pokemon poke2=Trainer.party[chosen]; if ((poke2.Species == Pokemons.RESHIRAM || @@ -1421,28 +1421,28 @@ public ItemUseResults pbRepel(Items item,int steps) { if (poke2.Species == Pokemons.ZEKROM) pokemon.SetForm(2); pokemon.fused=new Pokemon[] { pokemon, poke2 }; //poke2; //ToDo: Combine stats and divide down the middle? (IV/EV) - pbRemovePokemonAt(chosen); - scene.pbHardRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + RemovePokemonAt(chosen); + scene.HardRefresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } else if (poke2.isEgg) { - scene.pbDisplay(Game._INTL("It cannot be fused with an Egg.")); + scene.Display(Game._INTL("It cannot be fused with an Egg.")); } else if (poke2.HP<=0) { - scene.pbDisplay(Game._INTL("It cannot be fused with that fainted Pokémon.")); + scene.Display(Game._INTL("It cannot be fused with that fainted Pokémon.")); } else if (pokemon==poke2) { - scene.pbDisplay(Game._INTL("It cannot be fused with itself.")); + scene.Display(Game._INTL("It cannot be fused with itself.")); } else { - scene.pbDisplay(Game._INTL("It cannot be fused with that Pokémon.")); + scene.Display(Game._INTL("It cannot be fused with that Pokémon.")); } } else { return false; } } } else { - scene.pbDisplay(Game._INTL("This can't be used on the fainted Pokémon.")); + scene.Display(Game._INTL("This can't be used on the fainted Pokémon.")); } } else { - scene.pbDisplay(Game._INTL("It had no effect.")); + scene.Display(Game._INTL("It had no effect.")); return false; } return false; @@ -1452,14 +1452,14 @@ public ItemUseResults pbRepel(Items item,int steps) { if (pokemon.Species == Pokemons.HOOPA) { if (pokemon.HP>0) { pokemon.SetForm((pokemon.FormId==0) ? 1 : 0); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } else { - scene.pbDisplay(Game._INTL("This can't be used on the fainted Pokémon.")); + scene.Display(Game._INTL("This can't be used on the fainted Pokémon.")); } } else { - scene.pbDisplay(Game._INTL("It had no effect.")); + scene.Display(Game._INTL("It had no effect.")); return false; } return false; @@ -1476,16 +1476,16 @@ public ItemUseResults pbRepel(Items item,int steps) { n++; } if (abil1<=0 || abil2<=0 || pokemon.hasHiddenAbility()) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } int newabil=(pokemon.abilityIndex+1)%2; string newabilname=(newabil==0) ? Game._INTL(abil1.ToString(TextScripts.Name)) : Game._INTL(abil2.ToString(TextScripts.Name)); - if (scene.pbConfirm(Game._INTL("Would you like to change {1}'s Ability to {2}?", + if (scene.Confirm(Game._INTL("Would you like to change {1}'s Ability to {2}?", pokemon.Name,newabilname))) { pokemon.setAbility(newabil); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s Ability changed to {2}!",pokemon.Name, + scene.Refresh(); + scene.Display(Game._INTL("{1}'s Ability changed to {2}!",pokemon.Name, Game._INTL(pokemon.Ability.ToString(TextScripts.Name)))); return true; } @@ -1495,294 +1495,294 @@ public ItemUseResults pbRepel(Items item,int steps) { #region BattleUseOnPokemon handlers BattleUseOnPokemon.Add(Items.POTION, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,20,scene); + return Item.BattleHPItem(pokemon,battler,20,scene); }); BattleUseOnPokemon.Add(Items.SUPER_POTION, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,50,scene); + return Item.BattleHPItem(pokemon,battler,50,scene); }); BattleUseOnPokemon.Add(Items.HYPER_POTION, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,200,scene); + return Item.BattleHPItem(pokemon,battler,200,scene); }); BattleUseOnPokemon.Add(Items.MAX_POTION, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,pokemon.TotalHP-pokemon.HP,scene); + return Item.BattleHPItem(pokemon,battler,pokemon.TotalHP-pokemon.HP,scene); }); BattleUseOnPokemon.Add(Items.BERRY_JUICE, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,20,scene); + return Item.BattleHPItem(pokemon,battler,20,scene); }); BattleUseOnPokemon.Add(Items.RAGE_CANDY_BAR, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,20,scene); + return Item.BattleHPItem(pokemon,battler,20,scene); }); BattleUseOnPokemon.Add(Items.SWEET_HEART, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,20,scene); + return Item.BattleHPItem(pokemon,battler,20,scene); }); BattleUseOnPokemon.Add(Items.FRESH_WATER, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,50,scene); + return Item.BattleHPItem(pokemon,battler,50,scene); }); BattleUseOnPokemon.Add(Items.SODA_POP, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,60,scene); + return Item.BattleHPItem(pokemon,battler,60,scene); }); BattleUseOnPokemon.Add(Items.LEMONADE, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,80,scene); + return Item.BattleHPItem(pokemon,battler,80,scene); }); BattleUseOnPokemon.Add(Items.MOOMOO_MILK, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,100,scene); + return Item.BattleHPItem(pokemon,battler,100,scene); }); BattleUseOnPokemon.Add(Items.ORAN_BERRY, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,10,scene); + return Item.BattleHPItem(pokemon,battler,10,scene); }); BattleUseOnPokemon.Add(Items.SITRUS_BERRY, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,(int)Math.Floor(pokemon.TotalHP/4f),scene); + return Item.BattleHPItem(pokemon,battler,(int)Math.Floor(pokemon.TotalHP/4f),scene); }); BattleUseOnPokemon.Add(Items.AWAKENING, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.CHESTO_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.BLUE_FLUTE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.POKE_FLUTE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ANTIDOTE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.POISON) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.PECHA_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.POISON) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.BURN_HEAL, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.BURN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s burn was healed.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s burn was healed.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.RAWST_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.BURN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s burn was healed.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s burn was healed.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.PARALYZE_HEAL, (pokemon, battler, scene) => {//item == Items.PARLYZHEAL || if (pokemon.HP<=0 || pokemon.Status!=Status.PARALYSIS) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.CHERI_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.PARALYSIS) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ICE_HEAL, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.FROZEN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was thawed out.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was thawed out.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ASPEAR_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.FROZEN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was thawed out.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was thawed out.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.FULL_HEAL, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.LAVA_COOKIE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.OLD_GATEAU, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.CASTELIACONE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.LUMIOSE_GALETTE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.SHALOUR_SABLE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.LUM_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); @@ -1790,19 +1790,19 @@ public ItemUseResults pbRepel(Items item,int steps) { BattleUseOnPokemon.Add(Items.FULL_RESTORE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.HP==pokemon.TotalHP && pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - int hpgain=Item.pbItemRestoreHP(pokemon,pokemon.TotalHP-pokemon.HP); + int hpgain=Item.ItemRestoreHP(pokemon,pokemon.TotalHP-pokemon.HP); if (battler.IsNotNullOrNone()) battler.HP=pokemon.HP; pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); + scene.Refresh(); if (hpgain>0) { - scene.pbDisplay(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); + scene.Display(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); } else { - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); } return true; } @@ -1810,11 +1810,11 @@ public ItemUseResults pbRepel(Items item,int steps) { BattleUseOnPokemon.Add(Items.REVIVE, (pokemon, battler, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HP=(int)Math.Floor(pokemon.TotalHP/2f); - //Item.pbItemRestoreHP(pokemon,(int)Math.Floor(pokemon.TotalHP/2f)); + //Item.ItemRestoreHP(pokemon,(int)Math.Floor(pokemon.TotalHP/2f)); pokemon.HealStatus(); for (int i = 0; i < Trainer.party.Length; i++) { if (Trainer.party[i]==pokemon) { @@ -1822,15 +1822,15 @@ public ItemUseResults pbRepel(Items item,int steps) { break; } } - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.MAX_REVIVE, (pokemon, battler, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealHP(); @@ -1841,14 +1841,14 @@ public ItemUseResults pbRepel(Items item,int steps) { break; } } - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ENERGY_POWDER, (pokemon, battler, scene) => { - if (Item.pbBattleHPItem(pokemon,battler,50,scene)) { + if (Item.BattleHPItem(pokemon,battler,50,scene)) { pokemon.ChangeHappiness(HappinessMethods.POWDER); return true; } @@ -1856,7 +1856,7 @@ public ItemUseResults pbRepel(Items item,int steps) { }); BattleUseOnPokemon.Add(Items.ENERGY_ROOT, (pokemon, battler, scene) => { - if (Item.pbBattleHPItem(pokemon,battler,200,scene)) { + if (Item.BattleHPItem(pokemon,battler,200,scene)) { pokemon.ChangeHappiness(HappinessMethods.ENERGYROOT); return true; } @@ -1865,22 +1865,22 @@ public ItemUseResults pbRepel(Items item,int steps) { BattleUseOnPokemon.Add(Items.HEAL_POWDER, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; pokemon.ChangeHappiness(HappinessMethods.POWDER); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.REVIVAL_HERB, (pokemon, battler, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); @@ -1893,33 +1893,33 @@ public ItemUseResults pbRepel(Items item,int steps) { } } pokemon.ChangeHappiness(HappinessMethods.REVIVALHERB); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ETHER, (pokemon, battler, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbBattleRestorePP(pokemon,battler,move,10)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.BattleRestorePP(pokemon,battler,move,10)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } } return false; }); BattleUseOnPokemon.Add(Items.LEPPA_BERRY, (pokemon, battler, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbBattleRestorePP(pokemon,battler,move,10)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.BattleRestorePP(pokemon,battler,move,10)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } } @@ -1927,13 +1927,13 @@ public ItemUseResults pbRepel(Items item,int steps) { }); BattleUseOnPokemon.Add(Items.MAX_ETHER, (pokemon, battler, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbBattleRestorePP(pokemon,battler,move,pokemon.moves[move].TotalPP-pokemon.moves[move].PP)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.BattleRestorePP(pokemon,battler,move,pokemon.moves[move].TotalPP-pokemon.moves[move].PP)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } } @@ -1943,13 +1943,13 @@ public ItemUseResults pbRepel(Items item,int steps) { BattleUseOnPokemon.Add(Items.ELIXIR, (pokemon, battler, scene) => { int pprestored=0; for (int i = 0; i < pokemon.moves.Length; i++) { - pprestored+=Item.pbBattleRestorePP(pokemon,battler,i,10); + pprestored+=Item.BattleRestorePP(pokemon,battler,i,10); } if (pprestored==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } }); @@ -1957,13 +1957,13 @@ public ItemUseResults pbRepel(Items item,int steps) { BattleUseOnPokemon.Add(Items.MAX_ELIXIR, (pokemon, battler, scene) => { int pprestored=0; for (int i = 0; i < pokemon.moves.Length; i++) { - pprestored+=Item.pbBattleRestorePP(pokemon,battler,i,pokemon.moves[i].TotalPP-pokemon.moves[i].PP); + pprestored+=Item.BattleRestorePP(pokemon,battler,i,pokemon.moves[i].TotalPP-pokemon.moves[i].PP); } if (pprestored==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } }); @@ -1971,10 +1971,10 @@ public ItemUseResults pbRepel(Items item,int steps) { BattleUseOnPokemon.Add(Items.RED_FLUTE, (pokemon, battler, scene) => { if (battler.IsNotNullOrNone() && battler.effects.Attract>=0) { battler.effects.Attract=-1; - scene.pbDisplay(Game._INTL("{1} got over its infatuation.",pokemon.Name)); + scene.Display(Game._INTL("{1} got over its infatuation.",pokemon.Name)); return true; // Items.consumed: } else { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } }); @@ -1982,20 +1982,20 @@ public ItemUseResults pbRepel(Items item,int steps) { BattleUseOnPokemon.Add(Items.YELLOW_FLUTE, (pokemon, battler, scene) => { if (battler.IsNotNullOrNone() && battler.effects.Confusion>0) { battler.effects.Confusion=0; - scene.pbDisplay(Game._INTL("{1} snapped out of confusion.",pokemon.Name)); + scene.Display(Game._INTL("{1} snapped out of confusion.",pokemon.Name)); return true; // Items.consumed: } else { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } }); BattleUseOnPokemon.Add(Items.PERSIM_BERRY, (pokemon, battler, scene) => { if (battler.IsNotNullOrNone() && battler.effects.Confusion>0) { battler.effects.Confusion=0; - scene.pbDisplay(Game._INTL("{1} snapped out of confusion.",pokemon.Name)); + scene.Display(Game._INTL("{1} snapped out of confusion.",pokemon.Name)); return true; // Items.consumed: } else { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } }); @@ -2003,339 +2003,339 @@ public ItemUseResults pbRepel(Items item,int steps) { #region BattleUseOnBattler handlers BattleUseOnBattler.Add(Items.X_ATTACK, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ATTACK,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { + battler.IncreaseStat(Combat.Stats.ATTACK,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ATTACK_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ATTACK,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { + battler.IncreaseStat(Combat.Stats.ATTACK,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ATTACK_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ATTACK,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { + battler.IncreaseStat(Combat.Stats.ATTACK,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ATTACK_6, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.ATTACK,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.ATTACK,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_DEFENSE, (item, battler, scene) => { //item == Items.X_DEFEND || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.DEFENSE,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { + battler.IncreaseStat(Combat.Stats.DEFENSE,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false ; } }); BattleUseOnBattler.Add(Items.X_DEFENSE_2, (item, battler, scene) => { //item == Items.XDEFEND2 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.DEFENSE,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { + battler.IncreaseStat(Combat.Stats.DEFENSE,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_DEFENSE_3, (item, battler, scene) => { //item == Items.XDEFEND3 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.DEFENSE,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { + battler.IncreaseStat(Combat.Stats.DEFENSE,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_DEFENSE_6, (item, battler, scene) => { //item == Items.XDEFEND6 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.DEFENSE,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.DEFENSE,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_ATK, (item, battler, scene) => { //item == Items.X_SPECIAL || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPATK,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPATK,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_ATK_2, (item, battler, scene) => { //item == Items.XSPECIAL2 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPATK,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPATK,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_ATK_3, (item, battler, scene) => { //item == Items.XSPECIAL3 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPATK,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPATK,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_ATK_6, (item, battler, scene) => { //item == Items.XSPECIAL6 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.SPATK,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.SPATK,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_DEF, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPDEF,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPDEF,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_DEF_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPDEF,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPDEF,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_DEF_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPDEF,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPDEF,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_DEF_6, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.SPDEF,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.SPDEF,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SPEED, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPEED,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPEED,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SPEED_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPEED,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPEED,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SPEED_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPEED,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPEED,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SPEED_6, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.SPEED,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.SPEED,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ACCURACY, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ACCURACY,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { + battler.IncreaseStat(Combat.Stats.ACCURACY,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ACCURACY_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ACCURACY,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { + battler.IncreaseStat(Combat.Stats.ACCURACY,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ACCURACY_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ACCURACY,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { + battler.IncreaseStat(Combat.Stats.ACCURACY,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false ; } }); BattleUseOnBattler.Add(Items.X_ACCURACY_6, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.ACCURACY,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.ACCURACY,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.DIRE_HIT, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); if (battler.effects.FocusEnergy>=1) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } else { battler.effects.FocusEnergy=1; - scene.pbDisplay(Game._INTL("{1} is getting pumped!",battler.ToString())); + scene.Display(Game._INTL("{1} is getting pumped!",battler.ToString())); return true; } }); BattleUseOnBattler.Add(Items.DIRE_HIT_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); if (battler.effects.FocusEnergy>=2) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } else { battler.effects.FocusEnergy=2; - scene.pbDisplay(Game._INTL("{1} is getting pumped!",battler.ToString())); + scene.Display(Game._INTL("{1} is getting pumped!",battler.ToString())); return true; } }); BattleUseOnBattler.Add(Items.DIRE_HIT_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); if (battler.effects.FocusEnergy>=3) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } else { battler.effects.FocusEnergy=3; - scene.pbDisplay(Game._INTL("{1} is getting pumped!",battler.ToString())); + scene.Display(Game._INTL("{1} is getting pumped!",battler.ToString())); return true; } }); BattleUseOnBattler.Add(Items.GUARD_SPEC, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbOwnSide.Mist>0) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.OwnSide.Mist>0) { + scene.Display(Game._INTL("But it had no effect!")); return false; } else { - battler.pbOwnSide.Mist=5; - if (!scene.pbIsOpposing(battler.Index)) { //Create new Delegate for attacker? - //if (!scene.pbIsOpposing(battler.Index)) { //if player's pokemon... - scene.pbDisplay(Game._INTL("Your team became shrouded in mist!")); + battler.OwnSide.Mist=5; + if (!scene.IsOpposing(battler.Index)) { //Create new Delegate for attacker? + //if (!scene.IsOpposing(battler.Index)) { //if player's pokemon... + scene.Display(Game._INTL("Your team became shrouded in mist!")); } else { - scene.pbDisplay(Game._INTL("The foe's team became shrouded in mist!")); + scene.Display(Game._INTL("The foe's team became shrouded in mist!")); } return true; } @@ -2344,455 +2344,455 @@ public ItemUseResults pbRepel(Items item,int steps) { BattleUseOnBattler.Add(Items.POKE_DOLL, (item, battler, scene) => { IBattle battle=battler.battle; if (battle.opponent != null) { - scene.pbDisplay(Game._INTL("Can't use that here.")); + scene.Display(Game._INTL("Can't use that here.")); return false; } else { - string playername=battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); return true; } }); BattleUseOnBattler.Add(Items.FLUFFY_TAIL, (item, battler, scene) => { IBattle battle=battler.battle; if (battle.opponent != null) { - scene.pbDisplay(Game._INTL("Can't use that here.")); + scene.Display(Game._INTL("Can't use that here.")); return false; } else { - string playername=battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); return true; } }); BattleUseOnBattler.Add(Items.POKE_TOY, (item, battler, scene) => { IBattle battle=battler.battle; if (battle.opponent != null) { - scene.pbDisplay(Game._INTL("Can't use that here.")); + scene.Display(Game._INTL("Can't use that here.")); return false; } else { - string playername=battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); return true; } }); - //if (Item.pbIsPokeBall(item)) { // Any Poké Ball + //if (Item.IsPokeBall(item)) { // Any Poké Ball BattleUseOnBattler.Add(Items.POKE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - //if (battle.pbPlayer().party.Length>=6 && !PC.full) { - if (battle.pbPlayer().party.GetCount()>=Features.LimitPokemonPartySize && !Player.PC.hasSpace()) { - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + //if (battle.Player().party.Length>=6 && !PC.full) { + if (battle.Player().party.GetCount()>=Features.LimitPokemonPartySize && !Player.PC.hasSpace()) { + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.BEAST_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.CHERISH_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.DIVE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.DREAM_BALL, (item, battler, scene) => { //ToDo: Only in dreamworld? IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.DUSK_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.FAST_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.FRIEND_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.GREAT_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.HEAL_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.HEAVY_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.IRON_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LEVEL_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LIGHT_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LOVE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LURE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LUXURY_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.MASTER_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.MOON_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.NEST_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.NET_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.PARK_BALL, (item, battler, scene) => { //ToDo: Only in park? IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.PREMIER_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.QUICK_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.REPEAT_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.SAFARI_BALL, (item, battler, scene) => { //ToDo: Only during safari contest? IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.SMOKE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.SPORT_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.TIMER_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.ULTRA_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; @@ -2802,107 +2802,107 @@ public ItemUseResults pbRepel(Items item,int steps) { #region UseInBattle handlers UseInBattle.Add(Items.POKE_DOLL, (item, battler, battle) => { battle.decision=Combat.BattleResults.FORFEIT; - battle.pbDisplayPaused(Game._INTL("Got away safely!")); + battle.DisplayPaused(Game._INTL("Got away safely!")); }); UseInBattle.Add(Items.FLUFFY_TAIL, (item, battler, battle) => { battle.decision=Combat.BattleResults.FORFEIT; - battle.pbDisplayPaused(Game._INTL("Got away safely!")); + battle.DisplayPaused(Game._INTL("Got away safely!")); }); UseInBattle.Add(Items.POKE_TOY, (item, battler, battle) => { battle.decision=Combat.BattleResults.FORFEIT; - battle.pbDisplayPaused(Game._INTL("Got away safely!")); + battle.DisplayPaused(Game._INTL("Got away safely!")); }); - //if (Item.pbIsPokeBall(item))// Any Poké Ball + //if (Item.IsPokeBall(item))// Any Poké Ball UseInBattle.Add(Items.POKE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.BEAST_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.CHERISH_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.DIVE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.DREAM_BALL, (item, battler, battle) => { //ToDo: Only in dreamworld? - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.DUSK_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.FAST_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.FRIEND_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.GREAT_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.HEAL_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.HEAVY_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.IRON_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LEVEL_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LIGHT_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LOVE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LURE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LUXURY_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.MASTER_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.MOON_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.NEST_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.NET_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.PARK_BALL, (item, battler, battle) => { //ToDo: Only in park? - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.PREMIER_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.QUICK_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.REPEAT_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.SAFARI_BALL, (item, battler, battle) => { //ToDo: Only during safari contest? - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.SMOKE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.SPORT_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.TIMER_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.ULTRA_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); #endregion }*/ @@ -2914,10 +2914,10 @@ private void OnStepTakenEventHandler(object sender, EventArgs e) if (RepelSteps>0) { RepelSteps-=1; if (RepelSteps<=0) { - (this as IGameMessage).pbMessage(Game._INTL("Repel's effect wore off...")); - Items ret=this is IGameItem g ? g.pbChooseItemFromList(Game._INTL("Do you want to use another Repel?"),1, + (this as IGameMessage).Message(Game._INTL("Repel's effect wore off...")); + Items ret=this is IGameItem g ? g.ChooseItemFromList(Game._INTL("Do you want to use another Repel?"),1, Items.REPEL, Items.SUPER_REPEL, Items.MAX_REPEL) : Items.NONE; - if (ret>0) pbUseItem(Bag,ret); //Item.pbUseItem(Bag,ret); + if (ret>0) UseItem(Bag,ret); //Item.UseItem(Bag,ret); } } } diff --git a/PokemonUnity.Application/Inventory/Item/Item.Helper.cs b/PokemonUnity.Application/Inventory/Item/Item.Helper.cs index cebb6fdae..7fc6a46a1 100644 --- a/PokemonUnity.Application/Inventory/Item/Item.Helper.cs +++ b/PokemonUnity.Application/Inventory/Item/Item.Helper.cs @@ -22,7 +22,7 @@ public static partial class ItemStorageHelper { /// /// /// - public static int pbQuantity(Items[] items,int maxsize,Items item) { + public static int Quantity(Items[] items,int maxsize,Items item) { int ret=0; for (int i = 0; i < maxsize; i++) { if (items[i]==item) { @@ -39,7 +39,7 @@ public static int pbQuantity(Items[] items,int maxsize,Items item) { /// /// /// - public static int pbQuantity(KeyValuePair[] items,int maxsize,Items item) { + public static int Quantity(KeyValuePair[] items,int maxsize,Items item) { int ret=0; for (int i = 0; i < maxsize; i++) { KeyValuePair? itemslot=items[i]; @@ -58,10 +58,13 @@ public static int pbQuantity(KeyValuePair[] items,int maxsize,Items /// /// /// - public static bool pbDeleteItem(ref Items[] items,int maxsize,Items item,int qty) { - if (qty<0) + public static bool DeleteItem(ref Items[] items,int maxsize,Items item,int qty) { + if (qty < 0) + { //throw new Exception($"Invalid value for qty: #{qty}"); GameDebug.LogWarning($"Invalid value for qty: #{qty}"); + qty = 0; return false; + } if (qty==0) return true; bool ret=false; for (int i = 0; i < maxsize; i++, qty--) { @@ -86,10 +89,13 @@ public static bool pbDeleteItem(ref Items[] items,int maxsize,Items item,int qty /// /// /// - public static bool pbDeleteItem(ref KeyValuePair[] items,int maxsize,Items item,int qty) { - if (qty<0) + public static bool DeleteItem(ref KeyValuePair[] items,int maxsize,Items item,int qty) { + if (qty < 0) + { //throw new Exception($"Invalid value for qty: #{qty}"); GameDebug.LogWarning($"Invalid value for qty: #{qty}"); + qty = 0; return false; + } if (qty==0) return true; bool ret=false; for (int i = 0; i < maxsize; i++) { @@ -111,10 +117,13 @@ public static bool pbDeleteItem(ref KeyValuePair[] items,int maxsize return ret; } - public static bool pbCanStore(Items[] items,int maxsize,int maxPerSlot,Items item,int qty) { - if (qty<0) + public static bool CanStore(Items[] items,int maxsize,int maxPerSlot,Items item,int qty) { + if (qty < 0) + { //throw new Exception($"Invalid value for qty: #{qty}"); GameDebug.LogWarning($"Invalid value for qty: #{qty}"); + qty = 0; return false; + } if (qty==0) return true; for (int i = 0, count = 0; i < items.Length && count[] items,int maxsize,int maxPerSlot,Items item,int qty) { - if (qty<0) + public static bool CanStore(KeyValuePair[] items,int maxsize,int maxPerSlot,Items item,int qty) { + if (qty < 0) + { //throw new Exception($"Invalid value for qty: #{qty}"); GameDebug.LogWarning($"Invalid value for qty: #{qty}"); + qty = 0; return false; + } if (qty==0) return true; for (int i = 0; i < maxsize; i++) { KeyValuePair? itemslot=items[i]; @@ -150,39 +162,45 @@ public static bool pbCanStore(KeyValuePair[] items,int maxsize,int m } [System.Obsolete("Use keyvaluepair array as input param for array")] //ToDo: Refactor and Finish below... - public static bool pbStoreItem(ref Items[] items,int maxsize,int maxPerSlot,Items item,int qty,bool sorting=false) { - if (qty<0) + public static bool StoreItem(ref Items[] items,int maxsize,int maxPerSlot,Items item,int qty,bool sorting=false) { + if (qty < 0) + { //throw new Exception($"Invalid value for qty: #{qty}"); GameDebug.LogWarning($"Invalid value for qty: #{qty}"); + qty = 0; return false; + } if (qty==0) return true; - List list = items.ToList(); + //List list = items.ToList(); for (int i = 0, count = 0; i < items.Length && count < maxsize * maxPerSlot; i++) { Items itemslot=items[i]; - if (itemslot == Items.NONE) { - //items[i]=new KeyValuePair (item, Math.Min(qty, maxPerSlot)); - //qty-=items[i].Value; + //if (itemslot == Items.NONE) { + ((IList)items).Insert(i, item);//, Math.Min(qty, maxPerSlot)); + qty--;//qty-=items[i].Value; if (sorting) { //if (Core.POCKETAUTOSORT[ItemData[item][ITEMPOCKET]]) items.Sort(); if (Core.POCKETAUTOSORT[(int)(Kernal.ItemData[item].Pocket??0)]) items.OrderBy(x => x); } if (qty==0) return true; - } else if (itemslot==item && count(itemslot.Value.Key,newamt); - if (qty==0) return true; - } + //} else if (itemslot==item && count(itemslot.Value.Key,newamt); + // if (qty==0) return true; + //} } return false; } - public static bool pbStoreItem(ref KeyValuePair[] items,int maxsize,int maxPerSlot,Items item,int qty,bool sorting=false) { - if (qty<0) + public static bool StoreItem(ref KeyValuePair[] items,int maxsize,int maxPerSlot,Items item,int qty,bool sorting=false) { + if (qty < 0) + { //throw new Exception($"Invalid value for qty: #{qty}"); GameDebug.LogWarning($"Invalid value for qty: #{qty}"); + qty = 0; return false; + } if (qty==0) return true; for (int i = 0; i < maxsize; i++) { KeyValuePair? itemslot=items[i]; diff --git a/PokemonUnity.Application/Inventory/Item/Item.Pokeball.cs b/PokemonUnity.Application/Inventory/Item/Item.Pokeball.cs index d7dbf4dd3..63db95b21 100644 --- a/PokemonUnity.Application/Inventory/Item/Item.Pokeball.cs +++ b/PokemonUnity.Application/Inventory/Item/Item.Pokeball.cs @@ -94,7 +94,7 @@ public static int ModifyCatchRate(Items ball,int catchRate,IBattle battle,IBattl return (int)Math.Floor(catchRate*3/2f); } else if (ball == Items.NET_BALL) { - if (battler.pbHasType(Types.BUG) || battler.pbHasType(Types.WATER)) catchRate*=3; + if (battler.HasType(Types.BUG) || battler.HasType(Types.WATER)) catchRate*=3; return catchRate; } else if (ball == Items.DIVE_BALL) { @@ -108,8 +108,8 @@ public static int ModifyCatchRate(Items ball,int catchRate,IBattle battle,IBattl return catchRate; } else if (ball == Items.REPEAT_BALL) { - if (battle.pbPlayer().owned[battler.Species]) catchRate*=3; - //if (battle.pbPlayer().Pokedex[(int)battler.Species,1] == 1) catchRate*=3; + if (battle.Player().owned[battler.Species]) catchRate*=3; + //if (battle.Player().Pokedex[(int)battler.Species,1] == 1) catchRate*=3; return catchRate; } else if (ball == Items.TIMER_BALL) { @@ -118,7 +118,7 @@ public static int ModifyCatchRate(Items ball,int catchRate,IBattle battle,IBattl return catchRate; } else if (ball == Items.DUSK_BALL) { - //if (PBDayNight.isNight()) catchRate*=7/2; + //if (DayNight.isNight()) catchRate*=7/2; if (Game.GetTime == Overworld.DayTime.Night) catchRate*=7/2; return catchRate; } @@ -127,8 +127,8 @@ public static int ModifyCatchRate(Items ball,int catchRate,IBattle battle,IBattl return catchRate; } else if (ball == Items.FAST_BALL) { - //dexdata=pbOpenDexData; - //pbDexDataOffset(dexdata,battler.Species,13); + //dexdata=OpenDexData; + //DexDataOffset(dexdata,battler.Species,13); //basespeed=dexdata.fgetb; //dexdata.close; int basespeed=Kernal.PokemonData[battler.Species].BaseStatsSPE; @@ -136,14 +136,14 @@ public static int ModifyCatchRate(Items ball,int catchRate,IBattle battle,IBattl return (int)Math.Min(catchRate,255); } else if (ball == Items.LEVEL_BALL) { - int pbattler=battle.battlers[0].Level; + int attler=battle.battlers[0].Level; if (battle.battlers[2].IsNotNullOrNone() && - battle.battlers[2].Level>pbattler) pbattler=battle.battlers[2].Level; - if (pbattler>=battler.Level*4) { + battle.battlers[2].Level>attler) attler=battle.battlers[2].Level; + if (attler>=battler.Level*4) { catchRate*=8; - } else if (pbattler>=battler.Level*2) { + } else if (attler>=battler.Level*2) { catchRate*=4; - } else if (pbattler>battler.Level) { + } else if (attler>battler.Level) { catchRate*=2; } return (int)Math.Min(catchRate,255); @@ -172,16 +172,16 @@ public static int ModifyCatchRate(Items ball,int catchRate,IBattle battle,IBattl return (int)Math.Min(catchRate,255); } else if (ball == Items.LOVE_BALL) { - IBattler pbattler=battle.battlers[0]; - IBattler pbattler2=null; - if (battle.battlers[2].IsNotNullOrNone()) pbattler2=battle.battlers[2]; - if (pbattler.Species==battler.Species && - ((battler.Gender==false && pbattler.Gender==true) || - (battler.Gender==true && pbattler.Gender==false))) { + IBattler attler=battle.battlers[0]; + IBattler attler2=null; + if (battle.battlers[2].IsNotNullOrNone()) attler2=battle.battlers[2]; + if (attler.Species==battler.Species && + ((battler.Gender==false && attler.Gender==true) || + (battler.Gender==true && attler.Gender==false))) { catchRate*=8; - } else if (pbattler2.IsNotNullOrNone() && pbattler2.Species==battler.Species && - ((battler.Gender==false && pbattler2.Gender==true) || - (battler.Gender==true && pbattler2.Gender==false))) { + } else if (attler2.IsNotNullOrNone() && attler2.Species==battler.Species && + ((battler.Gender==false && attler2.Gender==true) || + (battler.Gender==true && attler2.Gender==false))) { catchRate*=8; } return (int)Math.Min(catchRate,255); @@ -254,7 +254,7 @@ public static void OnFailCatch(object sender, IOnFailCatchEventArgs e) { return; } - public static Items pbBallTypeToBall(int balltype) { + public static Items BallTypeToBall(int balltype) { Items ret = Items.POKE_BALL; //if (BallTypes[balltype]) { if (balltype > 0 && balltype < BallTypes.Length) { @@ -268,8 +268,8 @@ public static Items pbBallTypeToBall(int balltype) { return ret; //Items.POKEBALL; } - public static int pbGetBallType(Items ball) { - //ball=getID(PBItems,ball); + public static int GetBallType(Items ball) { + //ball=getID(Items,ball); //foreach (var key in BallTypes) { for (int key = 0; key < BallTypes.Length; key++) { if (ball==BallTypes[key]) return key; diff --git a/PokemonUnity.Application/Inventory/Item/Item.cs b/PokemonUnity.Application/Inventory/Item/Item.cs index 5add0e5ea..aabf4735c 100644 --- a/PokemonUnity.Application/Inventory/Item/Item.cs +++ b/PokemonUnity.Application/Inventory/Item/Item.cs @@ -33,11 +33,11 @@ public static partial class Item { /// /// /// - public static bool pbIsHiddenMove (Moves move) { //ToDo: Move to Game Class + public static bool IsHiddenMove (Moves move) { //ToDo: Move to Game Class //if (Kernal.ItemData == null) return false; ////for (int i = 0; i < Kernal.ItemData.Count; i++) { //for (int i = 0; i < Kernal.MachineData.Count; i++) { - // //if (!pbIsHiddenMachine(i)) continue; + // //if (!IsHiddenMachine(i)) continue; // //if(Kernal.ItemData[i].Pocket == ItemPockets.MACHINE) // //atk=Kernal.ItemData[i][ITEMMACHINE]; // MachineData atk = Kernal.MachineData[i]; //HiddenMachine is not HiddenMove @@ -61,11 +61,11 @@ public static bool pbIsHiddenMove (Moves move) { //ToDo: Move to Game Class return hidden.Contains(move); } - public static int pbGetPrice(Items item) { + public static int GetPrice(Items item) { return Kernal.ItemData[item].Price; //[ITEMPRICE]; } - public static ItemPockets? pbGetPocket(Items item) { + public static ItemPockets? GetPocket(Items item) { return Kernal.ItemData[item].Pocket; //[ITEMPOCKET]; } @@ -74,50 +74,50 @@ public static int pbGetPrice(Items item) { /// /// /// - public static bool pbIsImportantItem (Items item) { - return Kernal.ItemData.ContainsKey(item) && (pbIsKeyItem(item) || - pbIsHiddenMachine(item) || - (Core.INFINITETMS && pbIsTechnicalMachine(item))); + public static bool IsImportantItem (Items item) { + return Kernal.ItemData.ContainsKey(item) && (IsKeyItem(item) || + IsHiddenMachine(item) || + (Core.INFINITETMS && IsTechnicalMachine(item))); } - public static bool pbIsMachine (Items item) { - return Kernal.ItemData[item].Category == ItemCategory.ALL_MACHINES || (pbIsTechnicalMachine(item) || pbIsHiddenMachine(item)); + public static bool IsMachine (Items item) { + return Kernal.ItemData[item].Category == ItemCategory.ALL_MACHINES || (IsTechnicalMachine(item) || IsHiddenMachine(item)); } - public static bool pbIsTechnicalMachine (Items item) { + public static bool IsTechnicalMachine (Items item) { //return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item][ITEMUSE]==3); Items[] TMs = new Items[] { Items.TM_ALL }; //Items.TM01, Items.TM02, Items.TM03, Items.TM04, Items.TM05, Items.TM06, Items.TM07, Items.TM08, Items.TM09, Items.TM10, Items.TM11, Items.TM12, Items.TM13, Items.TM14, Items.TM15, Items.TM16, Items.TM17, Items.TM18, Items.TM19, Items.TM20, Items.TM21, Items.TM22, Items.TM23, Items.TM24, Items.TM25, Items.TM26, Items.TM27, Items.TM28, Items.TM29, Items.TM30, Items.TM31, Items.TM32, Items.TM33, Items.TM34, Items.TM35, Items.TM36, Items.TM37, Items.TM38, Items.TM39, Items.TM40, Items.TM41, Items.TM42, Items.TM43, Items.TM44, Items.TM45, Items.TM46, Items.TM47, Items.TM48, Items.TM49, Items.TM50, Items.TM51, Items.TM52, Items.TM53, Items.TM54, Items.TM55, Items.TM56, Items.TM57, Items.TM58, Items.TM59, Items.TM60, Items.TM61, Items.TM62, Items.TM63, Items.TM64, Items.TM65, Items.TM66, Items.TM67, Items.TM68, Items.TM69, Items.TM70, Items.TM71, Items.TM72, Items.TM73, Items.TM74, Items.TM75, Items.TM76, Items.TM77, Items.TM78, Items.TM79, Items.TM80, Items.TM81, Items.TM82, Items.TM83, Items.TM84, Items.TM85, Items.TM86, Items.TM87, Items.TM88, Items.TM89, Items.TM90, Items.TM91, Items.TM92, Items.TM93, Items.TM94, Items.TM95, Items.TM96, Items.TM97, Items.TM98, Items.TM99, Items.TM100 }; return TMs.Contains(item); } - public static bool pbIsHiddenMachine (Items item) { + public static bool IsHiddenMachine (Items item) { //return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item][ITEMUSE]==4); Items[] HMs = new Items[] { Items.HM01, Items.HM02, Items.HM03, Items.HM04, Items.HM05, Items.HM06, Items.HM07, Items.HM08 }; return HMs.Contains(item); } - public static bool pbIsMail (Items item) { - return Kernal.ItemData.ContainsKey(item) && (ItemData.pbIsLetter(item)); //[ITEMTYPE]==1 || Kernal.ItemData[item][ITEMTYPE]==2 + public static bool IsMail (Items item) { + return Kernal.ItemData.ContainsKey(item) && (ItemData.IsLetter(item)); //[ITEMTYPE]==1 || Kernal.ItemData[item][ITEMTYPE]==2 } - public static bool pbIsSnagBall (Items item) { - return Kernal.ItemData.ContainsKey(item) && (ItemData.pbIsPokeBall(item) || Kernal.ItemData[item].Pocket == ItemPockets.POKEBALL);// || //[ITEMTYPE]==3 + public static bool IsSnagBall (Items item) { + return Kernal.ItemData.ContainsKey(item) && (ItemData.IsPokeBall(item) || Kernal.ItemData[item].Pocket == ItemPockets.POKEBALL);// || //[ITEMTYPE]==3 //(Game.GameData.Global.snagMachine)); //Kernal.ItemData[item][ITEMTYPE]==4 && 4: SnagBall Item } - public static bool pbIsPokeBall (Items item) { - return Kernal.ItemData.ContainsKey(item) && (ItemData.pbIsPokeBall(item) || Kernal.ItemData[item].Pocket == ItemPockets.POKEBALL);//[ITEMTYPE]==4 + public static bool IsPokeBall (Items item) { + return Kernal.ItemData.ContainsKey(item) && (ItemData.IsPokeBall(item) || Kernal.ItemData[item].Pocket == ItemPockets.POKEBALL);//[ITEMTYPE]==4 } - public static bool pbIsBerry (Items item) { - return Kernal.ItemData.ContainsKey(item) && ItemData.pbIsBerry(item); //[ITEMTYPE]==5 + public static bool IsBerry (Items item) { + return Kernal.ItemData.ContainsKey(item) && ItemData.IsBerry(item); //[ITEMTYPE]==5 } - public static bool pbIsKeyItem (Items item) { + public static bool IsKeyItem (Items item) { return Kernal.ItemData.ContainsKey(item) && (Kernal.ItemData[item].Pocket == ItemPockets.KEY);//[ITEMTYPE]==6 } - public static bool pbIsGem (Items item) { + public static bool IsGem (Items item) { Items[] gems=new Items[] {Items.FIRE_GEM,Items.WATER_GEM,Items.ELECTRIC_GEM,Items.GRASS_GEM,Items.ICE_GEM, Items.FIGHTING_GEM,Items.POISON_GEM,Items.GROUND_GEM,Items.FLYING_GEM,Items.PSYCHIC_GEM, Items.BUG_GEM,Items.ROCK_GEM,Items.GHOST_GEM,Items.DRAGON_GEM,Items.DARK_GEM, @@ -129,7 +129,7 @@ public static bool pbIsGem (Items item) { return gems.Contains(item) || Kernal.ItemData[item].Category == ItemCategory.JEWELS; } - public static bool pbIsEvolutionStone (Items item) { + public static bool IsEvolutionStone (Items item) { Items[] stones=new Items[] {Items.FIRE_STONE,Items.THUNDER_STONE,Items.WATER_STONE,Items.LEAF_STONE,Items.MOON_STONE, Items.SUN_STONE,Items.DUSK_STONE,Items.DAWN_STONE,Items.SHINY_STONE}; //foreach (Items i in stones) { @@ -139,7 +139,7 @@ public static bool pbIsEvolutionStone (Items item) { return stones.Contains(item) || Kernal.ItemData[item].Category == ItemCategory.EVOLUTION; } - public static bool pbIsMegaStone (Items item) { // Does NOT include Red Orb/Blue Orb + public static bool IsMegaStone (Items item) { // Does NOT include Red Orb/Blue Orb Items[] stones=new Items[] { Items.ABOMASITE,Items.ABSOLITE,Items.AERODACTYLITE,Items.AGGRONITE,Items.ALAKAZITE, Items.ALTARIANITE,Items.AMPHAROSITE,Items.AUDINITE,Items.BANETTITE,Items.BEEDRILLITE, Items.BLASTOISINITE,Items.BLAZIKENITE,Items.CAMERUPTITE,Items.CHARIZARDITE_X,Items.CHARIZARDITE_Y, @@ -157,7 +157,7 @@ public static bool pbIsMegaStone (Items item) { // Does NOT include Red Orb/Bl return stones.Contains(item) || Kernal.ItemData[item].Category == ItemCategory.MEGA_STONES; } - public static bool pbIsMulch (Items item) { + public static bool IsMulch (Items item) { Items[] mulches= new Items[] { Items.GROWTH_MULCH,Items.DAMP_MULCH,Items.STABLE_MULCH,Items.GOOEY_MULCH }; //foreach (Items i in mulches) { // if (item == i) return true; @@ -167,7 +167,7 @@ public static bool pbIsMulch (Items item) { } #region Move to Game class? - public static void pbChangeLevel(IPokemon pokemon,int newlevel,IScene scene) { + public static void ChangeLevel(IPokemon pokemon,int newlevel,IScene scene) { if (newlevel<1) newlevel=1; if (newlevel>Core.MAXIMUMLEVEL) newlevel=Core.MAXIMUMLEVEL; if (pokemon.Level>newlevel) { @@ -181,20 +181,20 @@ public static void pbChangeLevel(IPokemon pokemon,int newlevel,IScene scene) { (pokemon as Pokemon).SetLevel((byte)newlevel); //pokemon.Exp=Experience.GetStartExperience(pokemon.GrowthRate, newlevel); pokemon.calcStats(); - scene.pbRefresh(); - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("{1} was downgraded to Level {2}!",pokemon.Name,pokemon.Level)); + scene.Refresh(); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("{1} was downgraded to Level {2}!",pokemon.Name,pokemon.Level)); attackdiff=pokemon.ATK-attackdiff; defensediff=pokemon.DEF-defensediff; speeddiff=pokemon.SPE-speeddiff; spatkdiff=pokemon.SPA-spatkdiff; spdefdiff=pokemon.SPD-spdefdiff; totalhpdiff=pokemon.TotalHP-totalhpdiff; - pbTopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", + TopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", totalhpdiff,attackdiff,defensediff,spatkdiff,spdefdiff,speeddiff)); - pbTopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", + TopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", pokemon.TotalHP,pokemon.ATK,pokemon.DEF,pokemon.SPA,pokemon.SPD,pokemon.SPE)); } else if (pokemon.Level==newlevel) { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("{1}'s level remained unchanged.",pokemon.Name)); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("{1}'s level remained unchanged.",pokemon.Name)); } else { int attackdiff=pokemon.ATK; int defensediff=pokemon.DEF; @@ -208,38 +208,38 @@ public static void pbChangeLevel(IPokemon pokemon,int newlevel,IScene scene) { //pokemon.Exp = Experience.GetStartExperience(pokemon.GrowthRate, newlevel); (pokemon as Pokemon).ChangeHappiness(HappinessMethods.LEVELUP); pokemon.calcStats(); - scene.pbRefresh(); - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("{1} was elevated to Level {2}!",pokemon.Name,pokemon.Level)); + scene.Refresh(); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("{1} was elevated to Level {2}!",pokemon.Name,pokemon.Level)); attackdiff=pokemon.ATK-attackdiff; defensediff=pokemon.DEF-defensediff; speeddiff=pokemon.SPE-speeddiff; spatkdiff=pokemon.SPA-spatkdiff; spdefdiff=pokemon.SPD-spdefdiff; totalhpdiff=pokemon.TotalHP-totalhpdiff; - pbTopRightWindow(Game._INTL("Max. HP+{1}\r\nAttack+{2}\r\nDefense+{3}\r\nSp. Atk+{4}\r\nSp. Def+{5}\r\nSpeed+{6}", + TopRightWindow(Game._INTL("Max. HP+{1}\r\nAttack+{2}\r\nDefense+{3}\r\nSp. Atk+{4}\r\nSp. Def+{5}\r\nSpeed+{6}", totalhpdiff,attackdiff,defensediff,spatkdiff,spdefdiff,speeddiff)); - pbTopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", + TopRightWindow(Game._INTL("Max. HP{1}\r\nAttack{2}\r\nDefense{3}\r\nSp. Atk{4}\r\nSp. Def{5}\r\nSpeed{6}", pokemon.TotalHP,pokemon.ATK,pokemon.DEF,pokemon.SPA,pokemon.SPD,pokemon.SPE)); //Moves[] movelist=pokemon.getMoveList(); //foreach (Moves i in pokemon.getMoveList(LearnMethod.levelup)) { //movelist foreach (KeyValuePair i in Kernal.PokemonMovesData[pokemon.Species].LevelUp) { if (i.Value==pokemon.Level) { // Learned a new move - pbLearnMove(pokemon,i.Key,true); + LearnMove(pokemon,i.Key,true); } } - Pokemons newspecies=EvolutionHelper.pbCheckEvolution(pokemon)[0]; + Pokemons newspecies=EvolutionHelper.CheckEvolution(pokemon)[0]; if (newspecies>0 && Game.GameData is IGameUtility u) { - u.pbFadeOutInWithMusic(99999, block: () => { + u.FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo=(Game.GameData as Game).Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(); + evo.EndScreen(); }); } } } - public static int pbItemRestoreHP(IPokemon pokemon,int restorehp) { + public static int ItemRestoreHP(IPokemon pokemon,int restorehp) { int newhp=pokemon.HP+restorehp; if (newhp>pokemon.TotalHP) newhp=pokemon.TotalHP; int hpgain=newhp-pokemon.HP; @@ -247,32 +247,32 @@ public static int pbItemRestoreHP(IPokemon pokemon,int restorehp) { return hpgain; } - public static bool pbHPItem(IPokemon pokemon,int restorehp,IScene scene) { + public static bool HPItem(IPokemon pokemon,int restorehp,IScene scene) { if (pokemon.HP<=0 || pokemon.HP==pokemon.TotalHP || pokemon.isEgg) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - int hpgain=pbItemRestoreHP(pokemon,restorehp); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); + int hpgain=ItemRestoreHP(pokemon,restorehp); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); return true; } } - public static bool pbBattleHPItem(IPokemon pokemon,IBattler battler,int restorehp,IScene scene) { + public static bool BattleHPItem(IPokemon pokemon,IBattler battler,int restorehp,IScene scene) { if (pokemon.HP<=0 || pokemon.HP==pokemon.TotalHP || pokemon.isEgg) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } else { - int hpgain=pbItemRestoreHP(pokemon,restorehp); + int hpgain=ItemRestoreHP(pokemon,restorehp); if (battler.IsNotNullOrNone()) battler.HP=pokemon.HP; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name,hpgain)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name,hpgain)); return true; } } - public static int pbJustRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain) { + public static int JustRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain) { int totalev=0; for (int i = 0; i < 6; i++) { totalev+=pokemon.EV[i]; @@ -293,7 +293,7 @@ public static int pbJustRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain) return evgain; } - public static int pbRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain=10,bool evlimit=true) { + public static int RaiseEffortValues(IPokemon pokemon,Stats ev,int evgain=10,bool evlimit=true) { if (pokemon.EV[(int)ev]>=100 && evlimit) { return 0; } @@ -318,11 +318,11 @@ public static int pbRaiseEffortValues(IPokemon pokemon,Stats ev,int evgain=10,bo return evgain; } - public static bool pbRaiseHappinessAndLowerEV(IPokemon pokemon,IScene scene,Stats ev,string[] messages) { + public static bool RaiseHappinessAndLowerEV(IPokemon pokemon,IScene scene,Stats ev,string[] messages) { bool h=(pokemon.Happiness<255); bool e=(pokemon.EV[(int)ev]>0); if (!h && !e) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } if (h) { @@ -333,12 +333,12 @@ public static bool pbRaiseHappinessAndLowerEV(IPokemon pokemon,IScene scene,Stat if (pokemon.EV[(int)ev]<0) pokemon.EV[(int)ev]=0; pokemon.calcStats(); } - scene.pbRefresh(); - scene.pbDisplay(messages[2-(h ? 0 : 1)-(e ? 0 : 2)]); + scene.Refresh(); + scene.Display(messages[2-(h ? 0 : 1)-(e ? 0 : 2)]); return true; } - public static int pbRestorePP(IPokemon pokemon,int move,int pp) { + public static int RestorePP(IPokemon pokemon,int move,int pp) { if (pokemon.moves[move].id==0) return 0; if (pokemon.moves[move].TotalPP==0) return 0; int newpp=pokemon.moves[move].PP+pp; @@ -350,45 +350,45 @@ public static int pbRestorePP(IPokemon pokemon,int move,int pp) { return newpp-oldpp; } - public static int pbBattleRestorePP(IPokemon pokemon,IBattler battler,int move,int pp) { - int ret=pbRestorePP(pokemon,move,pp); + public static int BattleRestorePP(IPokemon pokemon,IBattler battler,int move,int pp) { + int ret=RestorePP(pokemon,move,pp); if (ret>0) { - if (battler.IsNotNullOrNone()) battler.pbSetPP(battler.moves[move],pokemon.moves[move].PP); + if (battler.IsNotNullOrNone()) battler.SetPP(battler.moves[move],pokemon.moves[move].PP); } return ret; } - public static bool pbBikeCheck() { + public static bool BikeCheck() { if (Game.GameData.Global.surfing || - (!Game.GameData.Global.bicycle && Terrain.onlyWalk(Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.pbGetTerrainTag() : (Terrains?)null))) { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("Can't use that here.")); + (!Game.GameData.Global.bicycle && Terrain.onlyWalk(Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.GetTerrainTag() : (Terrains?)null))) { + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("Can't use that here.")); return false; } - if (Game.GameData.GamePlayer.pbHasDependentEvents()) { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("It can't be used when you have someone with you.")); + if (Game.GameData.GamePlayer.HasDependentEvents()) { + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("It can't be used when you have someone with you.")); return false; } if (Game.GameData.Global.bicycle) { - //if (Game.GameData.pbGetMetadata(Game.GameData.GameMap.map_id,MetadataBicycleAlways)) { - if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e ? e.pbGetMetadata(Game.GameData.GameMap.map_id).Map.BicycleAlways : false) { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("You can't dismount your Bike here.")); + //if (Game.GameData.GetMetadata(Game.GameData.GameMap.map_id,MetadataBicycleAlways)) { + if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e ? e.GetMetadata(Game.GameData.GameMap.map_id).Map.BicycleAlways : false) { + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("You can't dismount your Bike here.")); return false; } return true; } else { - //bool? val=Game.GameData.pbGetMetadata(Game.GameData.GameMap.map_id,MetadataBicycle); - bool? val=Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e0 ? e0.pbGetMetadata(Game.GameData.GameMap.map_id).Map.Bicycle : (bool?)null; - //if (val == null) val=Game.GameData.pbGetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor); - if (val == null) val=Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e1 ? e1.pbGetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor : false; + //bool? val=Game.GameData.GetMetadata(Game.GameData.GameMap.map_id,MetadataBicycle); + bool? val=Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e0 ? e0.GetMetadata(Game.GameData.GameMap.map_id).Map.Bicycle : (bool?)null; + //if (val == null) val=Game.GameData.GetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor); + if (val == null) val=Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e1 ? e1.GetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor : false; if (val == null) { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("Can't use that here.")); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("Can't use that here.")); return false; } return true; } } - public static IGameCharacter pbClosestHiddenItem() { + public static IGameCharacter ClosestHiddenItem() { List result = new List(); float playerX=Game.GameData.GamePlayer.x; float playerY=Game.GameData.GamePlayer.y; @@ -412,13 +412,13 @@ public static IGameCharacter pbClosestHiddenItem() { return ret; } - public static void pbUseKeyItemInField(Items item) { //Move to game class + public static void UseKeyItemInField(Items item) { //Move to game class if (!ItemHandlers.triggerUseInField(item)) { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("Can't use that here.")); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("Can't use that here.")); } } - public static bool pbSpeciesCompatible (Pokemons species,Moves move) { + public static bool SpeciesCompatible (Pokemons species,Moves move) { //bool ret=false; //if (species<=0) return false; //data=load_data("Data/tm.dat"); @@ -427,102 +427,102 @@ public static bool pbSpeciesCompatible (Pokemons species,Moves move) { return Kernal.PokemonMovesData[species].Machine.Contains(move); } - public static int pbForgetMove(IPokemon pokemon,Moves moveToLearn) { + public static int ForgetMove(IPokemon pokemon,Moves moveToLearn) { int ret=-1; - if (Game.GameData is IGameSpriteWindow w) w.pbFadeOutIn(99999, block: () => { + if (Game.GameData is IGameSpriteWindow w) w.FadeOutIn(99999, block: () => { IPokemonSummaryScene scene= (Game.GameData as Game).Scenes.Summary; //new PokemonSummaryScene(); IPokemonSummaryScreen screen=(Game.GameData as Game).Screens.Summary.initialize(scene); //new PokemonSummary(scene); - ret=screen.pbStartForgetScreen(pokemon,0,moveToLearn); + ret=screen.StartForgetScreen(pokemon,0,moveToLearn); }); return ret; } - public static bool pbLearnMove(IPokemon pokemon,Moves move,bool ignoreifknown=false,bool bymachine=false) { + public static bool LearnMove(IPokemon pokemon,Moves move,bool ignoreifknown=false,bool bymachine=false) { if (!pokemon.IsNotNullOrNone()) return false; string movename=Game._INTL(move.ToString(TextScripts.Name)); if (pokemon.isEgg && !Core.DEBUG) { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("{1} can't be taught to an Egg.",movename)); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("{1} can't be taught to an Egg.",movename)); return false; } if (pokemon is IPokemonShadowPokemon p && p.isShadow) { - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("{1} can't be taught to this Pokémon.",movename)); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("{1} can't be taught to this Pokémon.",movename)); return false; } string pkmnname=pokemon.Name; for (int i = 0; i < 4; i++) { if (pokemon.moves[i].id==move) { - if (!ignoreifknown && Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("{1} already knows {2}.",pkmnname,movename)); + if (!ignoreifknown && Game.GameData is IGameMessage m) m.Message(Game._INTL("{1} already knows {2}.",pkmnname,movename)); return false; } if (pokemon.moves[i].id==0) { pokemon.moves[i]=new Attack.Move(move); - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("\\se[]{1} learned {2}!\\se[MoveLearnt]",pkmnname,movename)); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("\\se[]{1} learned {2}!\\se[MoveLearnt]",pkmnname,movename)); return true; } } do { //;loop - if (Game.GameData is IGameMessage m0) m0.pbMessage(Game._INTL("{1} wants to learn the move {2}.",pkmnname,movename)); - if (Game.GameData is IGameMessage m1) m1.pbMessage(Game._INTL("However, {1} already knows four moves.",pkmnname)); - if (Game.GameData is IGameMessage m2 && m2.pbConfirmMessage(Game._INTL("Should a move be deleted and replaced with {1}?",movename))) { - m2.pbMessage(Game._INTL("Which move should be forgotten?")); - int forgetmove=pbForgetMove(pokemon,move); + if (Game.GameData is IGameMessage m0) m0.Message(Game._INTL("{1} wants to learn the move {2}.",pkmnname,movename)); + if (Game.GameData is IGameMessage m1) m1.Message(Game._INTL("However, {1} already knows four moves.",pkmnname)); + if (Game.GameData is IGameMessage m2 && m2.ConfirmMessage(Game._INTL("Should a move be deleted and replaced with {1}?",movename))) { + m2.Message(Game._INTL("Which move should be forgotten?")); + int forgetmove=ForgetMove(pokemon,move); if (forgetmove>=0) { string oldmovename=Game._INTL(pokemon.moves[forgetmove].id.ToString(TextScripts.Name)); int oldmovepp=pokemon.moves[forgetmove].PP; pokemon.moves[forgetmove]=new Attack.Move(move); // Replaces current/total PP if (bymachine) pokemon.moves[forgetmove].PP=Math.Min(oldmovepp,pokemon.moves[forgetmove].TotalPP); - m2.pbMessage(Game._INTL("\\se[]1,\\wt[16] 2, and\\wt[16]...\\wt[16] ...\\wt[16] ... Ta-da!\\se[balldrop]")); - m2.pbMessage(Game._INTL("\\se[]{1} forgot how to use {2}. And... {1} learned {3}!\\se[MoveLearnt]",pkmnname,oldmovename,movename)); + m2.Message(Game._INTL("\\se[]1,\\wt[16] 2, and\\wt[16]...\\wt[16] ...\\wt[16] ... Ta-da!\\se[balldrop]")); + m2.Message(Game._INTL("\\se[]{1} forgot how to use {2}. And... {1} learned {3}!\\se[MoveLearnt]",pkmnname,oldmovename,movename)); return true; - } else if (m2.pbConfirmMessage(Game._INTL("Give up on learning the move {1}?",movename))) { - m2.pbMessage(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); + } else if (m2.ConfirmMessage(Game._INTL("Give up on learning the move {1}?",movename))) { + m2.Message(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); return false; } - } else if (Game.GameData is IGameMessage m3 && m3.pbConfirmMessage(Game._INTL("Give up on learning the move {1}?",movename))) { - m3.pbMessage(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); + } else if (Game.GameData is IGameMessage m3 && m3.ConfirmMessage(Game._INTL("Give up on learning the move {1}?",movename))) { + m3.Message(Game._INTL("{1} did not learn {2}.",pkmnname,movename)); return false; } } while (true); } - public static bool pbCheckUseOnPokemon(Items item,IPokemon pokemon,IScreen screen) { + public static bool CheckUseOnPokemon(Items item,IPokemon pokemon,IScreen screen) { return pokemon.IsNotNullOrNone() && !pokemon.isEgg; } - public static bool pbConsumeItemInBattle(PokemonBag bag,Items item) { + public static bool ConsumeItemInBattle(PokemonBag bag,Items item) { if (item!=0 && Kernal.ItemData[item].Flags.Consumable && //!=3 disappear after use //Kernal.ItemData[item].Flags!=4 && //used on enemy and disappears after use (i.e. pokeball) Kernal.ItemData[item].Flags.Useable_In_Battle) { //!=0 cannot be used in battle // Delete the item just used from stock - return Game.GameData.Bag.pbDeleteItem(item); + return Game.GameData.Bag.DeleteItem(item); } return false; } // Only called when in the party screen and having chosen an item to be used on // the selected Pokémon - /*public static bool pbUseItemOnPokemon(Items item,IPokemon pokemon,IScene scene) { + /*public static bool UseItemOnPokemon(Items item,IPokemon pokemon,IScene scene) { //if (Kernal.ItemData[item][ITEMUSE]==3 || Kernal.ItemData[item][ITEMUSE]==4) { // TM or HM - if (Item.pbIsMachine(item)) { + if (Item.IsMachine(item)) { Moves machine=Kernal.MachineData[(int)item].Move; if (machine==Moves.NONE) return false; string movename=Game._INTL(machine.ToString(TextScripts.Name)); if (pokemon.isShadow) { //? rescue false - Game.GameData.pbMessage(Game._INTL("Shadow Pokémon can't be taught any moves.")); + Game.GameData.Message(Game._INTL("Shadow Pokémon can't be taught any moves.")); } else if (!pokemon.isCompatibleWithMove(machine)) { - Game.GameData.pbMessage(Game._INTL("{1} and {2} are not compatible.",pokemon.Name,movename)); - Game.GameData.pbMessage(Game._INTL("{1} can't be learned.",movename)); + Game.GameData.Message(Game._INTL("{1} and {2} are not compatible.",pokemon.Name,movename)); + Game.GameData.Message(Game._INTL("{1} can't be learned.",movename)); } else { - if (pbIsHiddenMachine(item)) { - Game.GameData.pbMessage(Game._INTL("\\se[accesspc]Booted up an HM.")); - Game.GameData.pbMessage(Game._INTL(@"It contained {1}.\1",movename)); + if (IsHiddenMachine(item)) { + Game.GameData.Message(Game._INTL("\\se[accesspc]Booted up an HM.")); + Game.GameData.Message(Game._INTL(@"It contained {1}.\1",movename)); } else { - Game.GameData.pbMessage(Game._INTL("\\se[accesspc]Booted up a TM.")); - Game.GameData.pbMessage(Game._INTL(@"It contained {1}.\1",movename)); + Game.GameData.Message(Game._INTL("\\se[accesspc]Booted up a TM.")); + Game.GameData.Message(Game._INTL(@"It contained {1}.\1",movename)); } - if (Game.GameData.pbConfirmMessage(Game._INTL("Teach {1} to {2}?",movename,pokemon.Name))) { - if (pbLearnMove(pokemon,machine,false,true)) { - if (pbIsTechnicalMachine(item) && !Core.INFINITETMS) Game.GameData.Bag.pbDeleteItem(item); + if (Game.GameData.ConfirmMessage(Game._INTL("Teach {1} to {2}?",movename,pokemon.Name))) { + if (LearnMove(pokemon,machine,false,true)) { + if (IsTechnicalMachine(item) && !Core.INFINITETMS) Game.GameData.Bag.DeleteItem(item); return true; } } @@ -530,78 +530,78 @@ public static bool pbConsumeItemInBattle(PokemonBag bag,Items item) { return false; } else { bool ret=ItemHandlers.triggerUseOnPokemon(item,pokemon,scene); - scene.pbClearAnnotations(); - scene.pbHardRefresh(); + scene.ClearAnnotations(); + scene.HardRefresh(); if (ret && Kernal.ItemData[item].Flags.Consumable) { //[ITEMUSE]==1 Usable on Pokémon, consumed - Game.GameData.Bag.pbDeleteItem(item); + Game.GameData.Bag.DeleteItem(item); } - if (Game.GameData.Bag.pbQuantity(item)<=0) { - Game.GameData.pbMessage(Game._INTL("You used your last {1}.",Game._INTL(item.ToString(TextScripts.Name)))); + if (Game.GameData.Bag.Quantity(item)<=0) { + Game.GameData.Message(Game._INTL("You used your last {1}.",Game._INTL(item.ToString(TextScripts.Name)))); } return ret; } - Game.GameData.pbMessage(Game._INTL("Can't use that on {1}.",pokemon.Name)); + Game.GameData.Message(Game._INTL("Can't use that on {1}.",pokemon.Name)); return false; } - public static int pbUseItem(PokemonBag bag,Items item,IScene bagscene=null) { + public static int UseItem(PokemonBag bag,Items item,IScene bagscene=null) { //bool found=false; //if (Kernal.ItemData[item][ITEMUSE]==3 || Kernal.ItemData[item][ITEMUSE]==4) { // TM or HM - if (Item.pbIsMachine(item)) { + if (Item.IsMachine(item)) { Moves machine=Kernal.MachineData[(int)item].Move; if (machine==Moves.NONE) return 0; if (Game.GameData.Trainer.pokemonCount==0) { - Game.GameData.pbMessage(Game._INTL("There is no Pokémon.")); + Game.GameData.Message(Game._INTL("There is no Pokémon.")); return 0; } string movename=Game._INTL(machine.ToString(TextScripts.Name)); - if (pbIsHiddenMachine(item)) { - Game.GameData.pbMessage(Game._INTL("\\se[accesspc]Booted up an HM.")); - Game.GameData.pbMessage(Game._INTL(@"It contained {1}.\1",movename)); + if (IsHiddenMachine(item)) { + Game.GameData.Message(Game._INTL("\\se[accesspc]Booted up an HM.")); + Game.GameData.Message(Game._INTL(@"It contained {1}.\1",movename)); } else { - Game.GameData.pbMessage(Game._INTL("\\se[accesspc]Booted up a TM.")); - Game.GameData.pbMessage(Game._INTL(@"It contained {1}.\1",movename)); + Game.GameData.Message(Game._INTL("\\se[accesspc]Booted up a TM.")); + Game.GameData.Message(Game._INTL(@"It contained {1}.\1",movename)); } - if (!Game.GameData.pbConfirmMessage(Game._INTL("Teach {1} to a Pokémon?",movename))) { + if (!Game.GameData.ConfirmMessage(Game._INTL("Teach {1} to a Pokémon?",movename))) { return 0; - } else if (Game.pbMoveTutorChoose(machine,null,true)) { - if (pbIsTechnicalMachine(item) && !Core.INFINITETMS) bag.pbDeleteItem(item); + } else if (Game.MoveTutorChoose(machine,null,true)) { + if (IsTechnicalMachine(item) && !Core.INFINITETMS) bag.DeleteItem(item); return 1; } else { return 0; } } else if (Kernal.ItemData[item].Flags.Consumable || Kernal.ItemData[item][ITEMUSE]==5) { //[ITEMUSE]==1| Item is usable on a Pokémon if (Game.GameData.Trainer.pokemonCount==0) { - Game.GameData.pbMessage(Game._INTL("There is no Pokémon.")); + Game.GameData.Message(Game._INTL("There is no Pokémon.")); return 0; } bool ret=false; List annot=null; - if (pbIsEvolutionStone(item)) { + if (IsEvolutionStone(item)) { annot=new List(); foreach (var pkmn in Game.GameData.Trainer.party) { - bool elig=(Evolution.pbCheckEvolution(pkmn,item).Length>0); + bool elig=(Evolution.CheckEvolution(pkmn,item).Length>0); annot.Add(elig ? Game._INTL("ABLE") : Game._INTL("NOT ABLE")); } } - if (Game.GameData is IGameSpriteWindow w) w.pbFadeOutIn(99999, block: () => { + if (Game.GameData is IGameSpriteWindow w) w.FadeOutIn(99999, block: () => { IPokemonScreen_Scene scene=Game.PokemonScreenScene.initialize(); //new PokemonScreen_Scene(); IPokemonScreen screen=Game.PokemonScreen.initialize(scene,Game.GameData.Trainer.party); //new PokemonScreen(scene,Game.GameData.Trainer.party); - screen.pbStartScene(Game._INTL("Use on which Pokémon?"),false,annot); + screen.StartScene(Game._INTL("Use on which Pokémon?"),false,annot); do { //;loop - scene.pbSetHelpText(Game._INTL("Use on which Pokémon?")); - int chosen=screen.pbChoosePokemon(); + scene.SetHelpText(Game._INTL("Use on which Pokémon?")); + int chosen=screen.ChoosePokemon(); if (chosen>=0) { IPokemon pokemon=Game.GameData.Trainer.party[chosen]; - if (!pbCheckUseOnPokemon(item,pokemon,screen)) { - Game.UI.pbPlayBuzzerSE(); + if (!CheckUseOnPokemon(item,pokemon,screen)) { + Game.UI.PlayBuzzerSE(); } else { ret=ItemHandlers.triggerUseOnPokemon(item,pokemon,screen); if (ret && Kernal.ItemData[item].Flags.Consumable) { //[ITEMUSE]==1 Usable on Pokémon, consumed - bag.pbDeleteItem(item); + bag.DeleteItem(item); } - if (bag.pbQuantity(item)<=0) { - Game.GameData.pbMessage(Game._INTL("You used your last {1}.",Game._INTL(item.ToString(TextScripts.Name)))); + if (bag.Quantity(item)<=0) { + Game.GameData.Message(Game._INTL("You used your last {1}.",Game._INTL(item.ToString(TextScripts.Name)))); break; } } @@ -610,8 +610,8 @@ public static int pbUseItem(PokemonBag bag,Items item,IScene bagscene=null) { break; } } while (true); - screen.pbEndScene(); - if (bagscene!=null) bagscene.pbRefresh(); + screen.EndScene(); + if (bagscene!=null) bagscene.Refresh(); }); return ret ? 1 : 0; } else if (Kernal.ItemData[item][ITEMUSE]==2) { // Item is usable from bag @@ -627,29 +627,29 @@ public static int pbUseItem(PokemonBag bag,Items item,IScene bagscene=null) { return 2; break; case 3: // Item used, consume item - bag.pbDeleteItem(item); + bag.DeleteItem(item); return 1; break; case 4: // Item used, end screen and consume item - bag.pbDeleteItem(item); + bag.DeleteItem(item); return 2; break; default: - Game.GameData.pbMessage(Game._INTL("Can't use that here.")); + Game.GameData.Message(Game._INTL("Can't use that here.")); return 0; } } else { - Game.GameData.pbMessage(Game._INTL("Can't use that here.")); + Game.GameData.Message(Game._INTL("Can't use that here.")); return 0; } } - public static Items pbChooseItem(int var=0,params Items[] args) { + public static Items ChooseItem(int var=0,params Items[] args) { Items ret=0; //int? IPokemonBag_Scene scene=Game.PokemonBagScene; //new PokemonBag_Scene(); IPokemonBagScreen screen=Game.PokemonBagScreen.initialize(scene,Game.GameData.Bag); //new PokemonBagScreen(scene,Game.GameData.Bag); - Game.UI.pbFadeOutIn(99999, block: () => { - ret=screen.pbChooseItemScreen(); + Game.UI.FadeOutIn(99999, block: () => { + ret=screen.ChooseItemScreen(); }); if (var>0) Game.GameData.GameVariables[var]=ret; return ret; @@ -663,13 +663,13 @@ public static Items pbChooseItem(int var=0,params Items[] args) { /// /// /// - public static Items pbChooseItemFromList(string message,int variable,params Items[] args) { + public static Items ChooseItemFromList(string message,int variable,params Items[] args) { List commands=new List(); List itemid=new List(); foreach (Items item in args) { - //if (hasConst(PBItems,item)) { + //if (hasConst(Items,item)) { Items id=(Items)item; - if (Game.GameData.Bag.pbQuantity(id)>0) { + if (Game.GameData.Bag.Quantity(id)>0) { commands.Add(Game._INTL(id.ToString(TextScripts.Name))); itemid.Add(id); } @@ -681,7 +681,7 @@ public static Items pbChooseItemFromList(string message,int variable,params Item } commands.Add(Game._INTL("Cancel")); itemid.Add(0); - int ret=Game.GameData is IGameMessage m ? m.pbMessage(message,commands.ToArray(),-1) : -1; + int ret=Game.GameData is IGameMessage m ? m.Message(message,commands.ToArray(),-1) : -1; if (ret<0 || ret>=commands.Count-1) { Game.GameData.GameVariables[variable]=-1; return Items.NONE; @@ -691,13 +691,13 @@ public static Items pbChooseItemFromList(string message,int variable,params Item } } - private static void pbTopRightWindow(string text) { + private static void TopRightWindow(string text) { IWindow_AdvancedTextPokemon window = null; //new Window_AdvancedTextPokemon(text); window.z=99999; window.width=198; window.y=0; window.x=(Game.GameData as Game).Graphics.width-window.width; - if (Game.GameData is IGameAudioPlay a) a.pbPlayDecisionSE(); + if (Game.GameData is IGameAudioPlay a) a.PlayDecisionSE(); do { //;loop //Graphics?.update(); Input.update(); @@ -713,7 +713,7 @@ private static void pbTopRightWindow(string text) { //public partial class ItemHandlerHash : HandlerHash { // public void initialize() { - // super(:PBItems); + // super(:Items); // } //} @@ -900,20 +900,20 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle /*private static void RegisterItemHandlers() { //Events.OnStepTaken+=OnStepTakenEventHandler; #region UseFromBag handlers - UseFromBag.Add(Items.REPEL, () => { return pbRepel(Items.REPEL, 100); }); - UseFromBag.Add(Items.SUPER_REPEL, () => { return pbRepel(Items.SUPER_REPEL,200); }); - UseFromBag.Add(Items.MAX_REPEL, () => { return pbRepel(Items.MAX_REPEL,250); }); + UseFromBag.Add(Items.REPEL, () => { return Repel(Items.REPEL, 100); }); + UseFromBag.Add(Items.SUPER_REPEL, () => { return Repel(Items.SUPER_REPEL,200); }); + UseFromBag.Add(Items.MAX_REPEL, () => { return Repel(Items.MAX_REPEL,250); }); UseFromBag.Add(Items.BLACK_FLUTE, () => { - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.BLACK_FLUTE.ToString(TextScripts.Name)))); - (this as IGameMessage).pbMessage(Game._INTL("Wild Pokémon will be repelled.")); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.BLACK_FLUTE.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL("Wild Pokémon will be repelled.")); MapData.blackFluteUsed=true; MapData.whiteFluteUsed=false; //next 1; return ItemUseResults.UsedNotConsumed; }); UseFromBag.Add(Items.WHITE_FLUTE, () => { - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.WHITE_FLUTE.ToString(TextScripts.Name)))); - (this as IGameMessage).pbMessage(Game._INTL("Wild Pokémon will be lured.")); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.WHITE_FLUTE.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL("Wild Pokémon will be lured.")); MapData.blackFluteUsed=false; MapData.whiteFluteUsed=true; //next 1; @@ -921,8 +921,8 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseFromBag.Add(Items.HONEY, () => { return ItemUseResults.CloseBagItemConsumed; }); UseFromBag.Add(Items.ESCAPE_ROPE, () => { - if (GamePlayer.pbHasDependentEvents()) { - (this as IGameMessage).pbMessage(Game._INTL("It can't be used when you have someone with you.")); + if (GamePlayer.HasDependentEvents()) { + (this as IGameMessage).Message(Game._INTL("It can't be used when you have someone with you.")); //next 0; return ItemUseResults.NotUsed; } @@ -930,7 +930,7 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle //next 4; // End screen and consume item return ItemUseResults.CloseBagItemConsumed; } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next 0; return ItemUseResults.NotUsed; } @@ -938,80 +938,80 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseFromBag.Add(Items.SACRED_ASH, () => { int revived=0; if (Trainer.pokemonCount==0) { - (this as IGameMessage).pbMessage(Game._INTL("There is no Pokémon.")); + (this as IGameMessage).Message(Game._INTL("There is no Pokémon.")); //next 0; return ItemUseResults.NotUsed; } //ToDo: Redo below into an Event Listener (Subscribe to on Frontend) - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IPartyDsplayScene scene=Scenes.Party; //new PokemonScreen_Scene(); IPartyDsplayScreen screen = Screens.Party.initialize(scene,Trainer.party); //new PokemonScreen(scene,Trainer.party); - screen.pbStartScene(Game._INTL("Using item..."),false); + screen.StartScene(Game._INTL("Using item..."),false); foreach (Pokemon i in Trainer.party) { if (i.HP<=0 && !i.isEgg) { revived+=1; i.Heal(); - screen.pbDisplay(Game._INTL("{1}'s HP was restored.",i.Name)); + screen.Display(Game._INTL("{1}'s HP was restored.",i.Name)); } } if (revived==0) { - screen.pbDisplay(Game._INTL("It won't have any effect.")); + screen.Display(Game._INTL("It won't have any effect.")); } - screen.pbEndScene(); + screen.EndScene(); }); //next (revived==0) ? 0 : 3; return (revived==0) ? ItemUseResults.NotUsed : ItemUseResults.UsedItemConsumed; }); UseFromBag.Add(Items.BICYCLE, () => { - //next pbBikeCheck ? 2 : 0; - return pbBikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; + //next BikeCheck ? 2 : 0; + return BikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; //return ItemUseResults.NotUsed; }); UseFromBag.Add(Items.MACH_BIKE, () => { - //next pbBikeCheck ? 2 : 0; - return pbBikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; + //next BikeCheck ? 2 : 0; + return BikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; //return ItemUseResults.NotUsed; }); UseFromBag.Add(Items.ACRO_BIKE, () => { - //next pbBikeCheck ? 2 : 0; - return pbBikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; + //next BikeCheck ? 2 : 0; + return BikeCheck() ? ItemUseResults.CloseBagNotConsumed : ItemUseResults.NotUsed; //return ItemUseResults.NotUsed; }); UseFromBag.Add(Items.OLD_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if ((Terrain.isWater(terrain) && !Global.surfing && notCliff) || (Terrain.isWater(terrain) && Global.surfing)) { //next 2; return ItemUseResults.CloseBagNotConsumed; } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next 0; return ItemUseResults.NotUsed; } }); UseFromBag.Add(Items.GOOD_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if ((Terrain.isWater(terrain) && !Global.surfing && notCliff) || (Terrain.isWater(terrain) && Global.surfing)) { //next 2; return ItemUseResults.CloseBagNotConsumed; } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next 0; return ItemUseResults.NotUsed; } }); UseFromBag.Add(Items.SUPER_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if ((Terrain.isWater(terrain) && !Global.surfing && notCliff) || (Terrain.isWater(terrain) && Global.surfing)) { //next 2; return ItemUseResults.CloseBagNotConsumed; } else { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next 0; return ItemUseResults.NotUsed; } @@ -1019,24 +1019,24 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle //UseFromBag.Add(Items.ITEM_FINDER, () => { return ItemUseResults.CloseBagNotConsumed; }); UseFromBag.Add(Items.DOWSING_MACHINE, () => { return ItemUseResults.CloseBagNotConsumed; }); UseFromBag.Add(Items.TOWN_MAP, () => { - pbShowMap(-1,false); + ShowMap(-1,false); //next 1; // Continue return ItemUseResults.UsedNotConsumed; }); UseFromBag.Add(Items.COIN_CASE, () => { - (this as IGameMessage).pbMessage(Game._INTL("Coins: {1}",Player.Coins)); + (this as IGameMessage).Message(Game._INTL("Coins: {1}",Player.Coins)); //next 1; // Continue return ItemUseResults.UsedNotConsumed; }); UseFromBag.Add(Items.EXP_ALL, () => { - Bag.pbChangeItem(Items.EXP_ALL, Items.EXP_ALL_OFF); - (this as IGameMessage).pbMessage(Game._INTL("The Exp Share was turned off.")); + Bag.ChangeItem(Items.EXP_ALL, Items.EXP_ALL_OFF); + (this as IGameMessage).Message(Game._INTL("The Exp Share was turned off.")); //next 1; // Continue return ItemUseResults.UsedNotConsumed; }); UseFromBag.Add(Items.EXP_ALL_OFF, () => { - Bag.pbChangeItem(Items.EXP_ALL_OFF, Items.EXP_ALL); - (this as IGameMessage).pbMessage(Game._INTL("The Exp Share was turned on.")); + Bag.ChangeItem(Items.EXP_ALL_OFF, Items.EXP_ALL); + (this as IGameMessage).Message(Game._INTL("The Exp Share was turned on.")); //next 1; // Continue return ItemUseResults.UsedNotConsumed; }); @@ -1044,24 +1044,24 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle #region UseInField handlers UseInField.Add(Items.HONEY, () => { - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.HONEY.ToString(TextScripts.Name)))); - pbSweetScent(); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(Items.HONEY.ToString(TextScripts.Name)))); + SweetScent(); }); UseInField.Add(Items.ESCAPE_ROPE, () => { int[] escape=Global.escapePoint; //rescue null if (escape == null || escape.Length==0) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next; return; } - if (GamePlayer.pbHasDependentEvents()) { - (this as IGameMessage).pbMessage(Game._INTL("It can't be used when you have someone with you.")); + if (GamePlayer.HasDependentEvents()) { + (this as IGameMessage).Message(Game._INTL("It can't be used when you have someone with you.")); //next; return; } - (this as IGameMessage).pbMessage(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(item.ToString(TextScripts.Name)))); - pbFadeOutIn(99999, block: () => { - pbCancelVehicles(); + (this as IGameMessage).Message(Game._INTL("{1} used the {2}.",Player.Name,Game._INTL(item.ToString(TextScripts.Name)))); + FadeOutIn(99999, block: () => { + CancelVehicles(); GameTemp.player_new_map_id=escape[0]; GameTemp.player_new_x=escape[1]; GameTemp.player_new_y=escape[2]; @@ -1070,83 +1070,83 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle GameMap.autoplay(); GameMap.refresh(); }); - pbEraseEscapePoint(); + EraseEscapePoint(); }); UseInField.Add(Items.BICYCLE, () => { - if (pbBikeCheck()) { + if (BikeCheck()) { if (Global.bicycle) { - pbDismountBike(); + DismountBike(); } else { - pbMountBike(); + MountBike(); } } }); UseInField.Add(Items.MACH_BIKE, () => { - if (pbBikeCheck()) { + if (BikeCheck()) { if (Global.bicycle) { - pbDismountBike(); + DismountBike(); } else { - pbMountBike(); + MountBike(); } } }); UseInField.Add(Items.ACRO_BIKE, () => { - if (pbBikeCheck()) { + if (BikeCheck()) { if (Global.bicycle) { - pbDismountBike(); + DismountBike(); } else { - pbMountBike(); + MountBike(); } } }); UseInField.Add(Items.OLD_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable/(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if (!Terrain.isWater(terrain) || (!notCliff && !Global.surfing)) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next; return; } bool encounter=PokemonEncounters.hasEncounter(EncounterTypes.OldRod); - if (pbFishing(encounter,1)) { - pbEncounter(EncounterTypes.OldRod); + if (Fishing(encounter,1)) { + Encounter(EncounterTypes.OldRod); } }); UseInField.Add(Items.GOOD_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if (!Terrain.isWater(terrain) || (!notCliff && !Global.surfing)) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next; return; } bool encounter=PokemonEncounters.hasEncounter(EncounterTypes.GoodRod); - if (pbFishing(encounter,2)) { - pbEncounter(EncounterTypes.GoodRod); + if (Fishing(encounter,2)) { + Encounter(EncounterTypes.GoodRod); } }); UseInField.Add(Items.SUPER_ROD, () => { - Terrains terrain=pbFacingTerrainTag(); + Terrains terrain=FacingTerrainTag(); bool notCliff=GameMap.passable(GamePlayer.x,GamePlayer.y,GamePlayer.direction); if (!Terrain.isWater(terrain) || (!notCliff && !Global.surfing)) { - (this as IGameMessage).pbMessage(Game._INTL("Can't use that here.")); + (this as IGameMessage).Message(Game._INTL("Can't use that here.")); //next; return; } bool encounter=PokemonEncounters.hasEncounter(EncounterTypes.SuperRod); - if (pbFishing(encounter,3)) { - pbEncounter(EncounterTypes.SuperRod); + if (Fishing(encounter,3)) { + Encounter(EncounterTypes.SuperRod); } }); UseInField.Add(Items.DOWSING_MACHINE, () => {//item == Items.ITEM_FINDER || item == Items.DOWSING_MCHN || - @event=Game.GameData is IItemCheck i && i.pbClosestHiddenItem(); + @event=Game.GameData is IItemCheck i && i.ClosestHiddenItem(); if (@event == null) { - (this as IGameMessage).pbMessage(Game._INTL("... ... ... ...Nope!\r\nThere's no response.")); + (this as IGameMessage).Message(Game._INTL("... ... ... ...Nope!\r\nThere's no response.")); } else { int offsetX=@event.x-GamePlayer.x; int offsetY=@event.y-GamePlayer.y; @@ -1155,9 +1155,9 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle Graphics?.update(); Input.update(); if ((i&7)==0) GamePlayer.turn_right_90(); - pbUpdateSceneMap(); + UpdateSceneMap(); } - (this as IGameMessage).pbMessage(Game._INTL(@"The {1}'s indicating something right underfoot!\1",Game._INTL(item.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL(@"The {1}'s indicating something right underfoot!\1",Game._INTL(item.ToString(TextScripts.Name)))); } else { int direction=GamePlayer.direction; if (Math.Abs(offsetX)>Math.Abs(offsetY)) { @@ -1174,20 +1174,20 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle if (direction==6) GamePlayer.turn_right(); if (direction==8) GamePlayer.turn_up(); } - pbUpdateSceneMap(); + UpdateSceneMap(); } - (this as IGameMessage).pbMessage(Game._INTL(@"Huh?\nThe {1}'s responding!\1",Game._INTL(item.ToString(TextScripts.Name)))); - (this as IGameMessage).pbMessage(Game._INTL("There's an item buried around here!")); + (this as IGameMessage).Message(Game._INTL(@"Huh?\nThe {1}'s responding!\1",Game._INTL(item.ToString(TextScripts.Name)))); + (this as IGameMessage).Message(Game._INTL("There's an item buried around here!")); } } }); UseInField.Add(Items.TOWN_MAP, () => { - pbShowMap(-1,false); + ShowMap(-1,false); }); UseInField.Add(Items.COIN_CASE, () => { - (this as IGameMessage).pbMessage(Game._INTL("Coins: {1}",Player.Coins)); + (this as IGameMessage).Message(Game._INTL("Coins: {1}",Player.Coins)); //next 1; // Continue //return ItemUseResults.UsedNotConsumed; }); @@ -1197,26 +1197,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle #region UseOnPokemon handlers UseOnPokemon.Add(Items.FIRE_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -1225,26 +1225,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.THUNDER_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -1253,26 +1253,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.WATER_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -1281,26 +1281,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.LEAF_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -1309,26 +1309,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.MOON_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -1337,26 +1337,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.SUN_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -1365,26 +1365,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.DUSK_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -1393,26 +1393,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.DAWN_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo = Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IBagScene s) { //IPokemonBag_Scene - //s.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - s.pbRefreshAnnotations((p) => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - s.pbRefresh(); + //s.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + s.RefreshAnnotations((p) => { Evolution.CheckEvolution(p, item)[0] > 0; }); + s.Refresh(); } }); //next true; @@ -1421,26 +1421,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.SHINY_STONE, (item, pokemon, scene) => { if (pokemon.isShadow) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } - Pokemons newspecies=Pokemons.NONE; //Evolution.pbCheckEvolution(pokemon,item)[0]; + Pokemons newspecies=Pokemons.NONE; //Evolution.CheckEvolution(pokemon,item)[0]; if (newspecies<=0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { //ToDo: Add a check to cycle through all evolves - pbFadeOutInWithMusic(99999, block: () => { + FadeOutInWithMusic(99999, block: () => { IPokemonEvolutionScene evo= Scenes.EvolvingScene; //new PokemonEvolutionScene(); - evo.pbStartScreen(pokemon,newspecies); - evo.pbEvolution(false); - evo.pbEndScreen(); + evo.StartScreen(pokemon,newspecies); + evo.Evolution(false); + evo.EndScreen(); if (scene is IPokemonBag_Scene) { - //scene.pbRefreshAnnotations(proc{|p| Evolution.pbCheckEvolution(p,item)[0]>0 } - scene.pbRefreshAnnotations(() => { Evolution.pbCheckEvolution(p, item)[0] > 0; }); - scene.pbRefresh(); + //scene.RefreshAnnotations(proc{|p| Evolution.CheckEvolution(p,item)[0]>0 } + scene.RefreshAnnotations(() => { Evolution.CheckEvolution(p, item)[0] > 0; }); + scene.Refresh(); } }); //next true; @@ -1449,118 +1449,118 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.POTION, (item, pokemon, scene) => { - //next pbHPItem(pokemon,20,scene); - return Game.GameData is IGameItem i && i.pbHPItem(pokemon,20,scene); + //next HPItem(pokemon,20,scene); + return Game.GameData is IGameItem i && i.HPItem(pokemon,20,scene); }); UseOnPokemon.Add(Items.SUPER_POTION, (item, pokemon, scene) => { - //next pbHPItem(pokemon,50,scene); - return Item.pbHPItem(pokemon,50,scene); + //next HPItem(pokemon,50,scene); + return Item.HPItem(pokemon,50,scene); }); UseOnPokemon.Add(Items.HYPER_POTION, (item, pokemon, scene) => { - //next pbHPItem(pokemon,200,scene); - return Item.pbHPItem(pokemon,200,scene); + //next HPItem(pokemon,200,scene); + return Item.HPItem(pokemon,200,scene); }); UseOnPokemon.Add(Items.MAX_POTION, (item, pokemon, scene) => { - //next pbHPItem(pokemon,pokemon.TotalHP-pokemon.HP,scene); - return Item.pbHPItem(pokemon,pokemon.TotalHP-pokemon.HP,scene); + //next HPItem(pokemon,pokemon.TotalHP-pokemon.HP,scene); + return Item.HPItem(pokemon,pokemon.TotalHP-pokemon.HP,scene); }); UseOnPokemon.Add(Items.BERRY_JUICE, (item, pokemon, scene) => { - //next pbHPItem(pokemon,20,scene); - return Item.pbHPItem(pokemon,20,scene); + //next HPItem(pokemon,20,scene); + return Item.HPItem(pokemon,20,scene); }); UseOnPokemon.Add(Items.RAGE_CANDY_BAR, (item, pokemon, scene) => { - //next pbHPItem(pokemon,20,scene); - return Item.pbHPItem(pokemon,20,scene); + //next HPItem(pokemon,20,scene); + return Item.HPItem(pokemon,20,scene); }); UseOnPokemon.Add(Items.SWEET_HEART, (item, pokemon, scene) => { - //next pbHPItem(pokemon,20,scene); - return Item.pbHPItem(pokemon,20,scene); + //next HPItem(pokemon,20,scene); + return Item.HPItem(pokemon,20,scene); }); UseOnPokemon.Add(Items.FRESH_WATER, (item, pokemon, scene) => { - //next pbHPItem(pokemon,50,scene); - return Item.pbHPItem(pokemon,50,scene); + //next HPItem(pokemon,50,scene); + return Item.HPItem(pokemon,50,scene); }); UseOnPokemon.Add(Items.SODA_POP, (item, pokemon, scene) => { - //next pbHPItem(pokemon,60,scene); - return Item.pbHPItem(pokemon,60,scene); + //next HPItem(pokemon,60,scene); + return Item.HPItem(pokemon,60,scene); }); UseOnPokemon.Add(Items.LEMONADE, (item, pokemon, scene) => { - //next pbHPItem(pokemon,80,scene); - return Item.pbHPItem(pokemon,80,scene); + //next HPItem(pokemon,80,scene); + return Item.HPItem(pokemon,80,scene); }); UseOnPokemon.Add(Items.MOOMOO_MILK, (item, pokemon, scene) => { - //next pbHPItem(pokemon,100,scene); - return Item.pbHPItem(pokemon,100,scene); + //next HPItem(pokemon,100,scene); + return Item.HPItem(pokemon,100,scene); }); UseOnPokemon.Add(Items.ORAN_BERRY, (item, pokemon, scene) => { - //next pbHPItem(pokemon,10,scene); - return Item.pbHPItem(pokemon,10,scene); + //next HPItem(pokemon,10,scene); + return Item.HPItem(pokemon,10,scene); }); UseOnPokemon.Add(Items.SITRUS_BERRY, (item, pokemon, scene) => { - //next pbHPItem(pokemon,Math.Floor(pokemon.TotalHP/4),scene); - return Item.pbHPItem(pokemon,(int)Math.Floor(pokemon.TotalHP/4f),scene); + //next HPItem(pokemon,Math.Floor(pokemon.TotalHP/4),scene); + return Item.HPItem(pokemon,(int)Math.Floor(pokemon.TotalHP/4f),scene); }); UseOnPokemon.Add(Items.AWAKENING, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.CHESTO_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.BLUE_FLUTE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.POKE_FLUTE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); //next true; return true; } @@ -1568,26 +1568,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.ANTIDOTE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.POISON) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.PECHA_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.POISON) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); //next true; return true; } @@ -1595,26 +1595,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.BURN_HEAL, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.BURN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s burn was healed.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s burn was healed.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.RAWST_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.BURN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s burn was healed.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s burn was healed.",pokemon.Name)); //next true; return true; } @@ -1622,26 +1622,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.PARALYZE_HEAL, (item, pokemon, scene) => {//item == Items.PARLYZHEAL || if (pokemon.HP<=0 || pokemon.Status!=Status.PARALYSIS) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.CHERI_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.PARALYSIS) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); //next true; return true; } @@ -1649,26 +1649,26 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.ICE_HEAL, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.FROZEN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was thawed out.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was thawed out.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.ASPEAR_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.FROZEN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was thawed out.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was thawed out.",pokemon.Name)); //next true; return true; } @@ -1676,91 +1676,91 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.FULL_HEAL, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.LAVA_COOKIE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.OLD_GATEAU, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.CASTELIACONE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.LUMIOSE_GALETTE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.SHALOUR_SABLE, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.LUM_BERRY, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } @@ -1768,17 +1768,17 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.FULL_RESTORE, (item, pokemon, scene) => { if (pokemon.HP<=0 || (pokemon.HP==pokemon.TotalHP && pokemon.Status==0)) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { - int hpgain=Item.pbItemRestoreHP(pokemon,pokemon.TotalHP-pokemon.HP); + int hpgain=Item.ItemRestoreHP(pokemon,pokemon.TotalHP-pokemon.HP); pokemon.HealStatus(); - scene.pbRefresh(); + scene.Refresh(); if (hpgain>0) { - scene.pbDisplay(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); + scene.Display(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); } else { - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); } //next true; return true; @@ -1787,14 +1787,14 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.REVIVE, (item, pokemon, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HP=(int)Math.Floor(pokemon.TotalHP/2f); pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); //next true; return true; } @@ -1802,21 +1802,21 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.MAX_REVIVE, (item, pokemon, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealHP(); pokemon.HealStatus(); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.ENERGY_POWDER, (item, pokemon, scene) => { - if (Item.pbHPItem(pokemon,50,scene)) { + if (Item.HPItem(pokemon,50,scene)) { pokemon.ChangeHappiness(HappinessMethods.POWDER); //next true; return true; @@ -1826,7 +1826,7 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.ENERGY_ROOT, (item, pokemon, scene) => { - if (Item.pbHPItem(pokemon,200,scene)) { + if (Item.HPItem(pokemon,200,scene)) { pokemon.ChangeHappiness(HappinessMethods.ENERGYROOT); //next true; return true; @@ -1837,14 +1837,14 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.HEAL_POWDER, (item, pokemon, scene) => { if (pokemon.HP<=0 || pokemon.Status==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealStatus(); pokemon.ChangeHappiness(HappinessMethods.POWDER); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); //next true; return true; } @@ -1852,29 +1852,29 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.REVIVAL_HERB, (item, pokemon, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { pokemon.HealHP(); pokemon.HealStatus(); pokemon.ChangeHappiness(HappinessMethods.REVIVALHERB); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); //next true; return true; } }); UseOnPokemon.Add(Items.ETHER, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbRestorePP(pokemon,move,10)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RestorePP(pokemon,move,10)==0) { + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); //next true; return true; } @@ -1883,14 +1883,14 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle return false; }); UseOnPokemon.Add(Items.LEPPA_BERRY, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbRestorePP(pokemon,move,10)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RestorePP(pokemon,move,10)==0) { + scene.Display(Game._INTL("It won't have any effect.")); //next false; return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); //next true; return true; } @@ -1900,13 +1900,13 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.MAX_ETHER, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbRestorePP(pokemon,move,pokemon.moves[move].TotalPP-pokemon.moves[move].PP)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RestorePP(pokemon,move,pokemon.moves[move].TotalPP-pokemon.moves[move].PP)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } } @@ -1916,13 +1916,13 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.ELIXIR, (item, pokemon, scene) => { int pprestored=0; for (int i = 0; i < pokemon.moves.Length; i++) { - pprestored+=Item.pbRestorePP(pokemon,i,10); + pprestored+=Item.RestorePP(pokemon,i,10); } if (pprestored==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } }); @@ -1930,27 +1930,27 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.MAX_ELIXIR, (item, pokemon, scene) => { int pprestored=0; for (int i = 0; i < pokemon.moves.Length; i++) { - pprestored+=Item.pbRestorePP(pokemon,i,pokemon.moves[i].TotalPP-pokemon.moves[i].PP); + pprestored+=Item.RestorePP(pokemon,i,pokemon.moves[i].TotalPP-pokemon.moves[i].PP); } if (pprestored==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } }); UseOnPokemon.Add(Items.PP_UP, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Boost PP of which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Boost PP of which move?")); if (move>=0) { if (pokemon.moves[move].TotalPP==0 || pokemon.moves[move].PPups>=3) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.moves[move].PPups+=1; string movename=Game._INTL(pokemon.moves[move].id.ToString(TextScripts.Name)); - scene.pbDisplay(Game._INTL("{1}'s PP increased.",movename)); + scene.Display(Game._INTL("{1}'s PP increased.",movename)); return true; } } @@ -1958,15 +1958,15 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.PP_MAX, (item, pokemon, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Boost PP of which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Boost PP of which move?")); if (move>=0) { if (pokemon.moves[move].TotalPP==0 || pokemon.moves[move].PPups>=3) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.moves[move].PPups=3; string movename=Game._INTL(pokemon.moves[move].id.ToString(TextScripts.Name)); - scene.pbDisplay(Game._INTL("{1}'s PP increased.",movename)); + scene.Display(Game._INTL("{1}'s PP increased.",movename)); return true; } } @@ -1974,134 +1974,134 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.HP_UP, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.HP)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.HP)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP increased.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.PROTEIN, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.ATTACK)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.ATTACK)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Attack increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Attack increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.IRON, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.DEFENSE)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.DEFENSE)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Defense increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Defense increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.CALCIUM, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPATK)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPATK)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Special Attack increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Special Attack increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.ZINC, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPDEF)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPDEF)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Special Defense increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Special Defense increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.CARBOS, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPEED)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPEED)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Speed increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Speed increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.HEALTH_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.HP,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.HP,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP increased.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.MUSCLE_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.ATTACK,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.ATTACK,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Attack increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Attack increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.RESIST_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.DEFENSE,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.DEFENSE,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Defense increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Defense increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.GENIUS_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPATK,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPATK,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Special Attack increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Special Attack increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.CLEVER_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPDEF,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPDEF,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Special Defense increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Special Defense increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } }); UseOnPokemon.Add(Items.SWIFT_WING, (item, pokemon, scene) => { - if (Item.pbRaiseEffortValues(pokemon,Stats.SPEED,1,false)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.RaiseEffortValues(pokemon,Stats.SPEED,1,false)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("{1}'s Speed increased.",pokemon.Name)); + scene.Display(Game._INTL("{1}'s Speed increased.",pokemon.Name)); pokemon.ChangeHappiness(HappinessMethods.VITAMIN); return true; } @@ -2109,17 +2109,17 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle UseOnPokemon.Add(Items.RARE_CANDY, (item, pokemon, scene) => { if (pokemon.Level>=Core.MAXIMUMLEVEL || (pokemon.isShadow)) { //rescue false - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - Item.pbChangeLevel(pokemon,pokemon.Level+1,scene); - scene.pbHardRefresh(); + Item.ChangeLevel(pokemon,pokemon.Level+1,scene); + scene.HardRefresh(); return true; } }); UseOnPokemon.Add(Items.POMEG_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.HP,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.HP,new string[] { Game._INTL("{1} adores you! Its base HP fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base HP can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base HP fell!",pokemon.Name) @@ -2127,7 +2127,7 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.KELPSY_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.ATTACK,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.ATTACK,new string[] { Game._INTL("{1} adores you! Its base Attack fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Attack can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Attack fell!",pokemon.Name) @@ -2135,7 +2135,7 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.QUALOT_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.DEFENSE,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.DEFENSE,new string[] { Game._INTL("{1} adores you! Its base Defense fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Defense can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Defense fell!",pokemon.Name) @@ -2143,7 +2143,7 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.HONDEW_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.SPATK,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.SPATK,new string[] { Game._INTL("{1} adores you! Its base Special Attack fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Special Attack can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Special Attack fell!",pokemon.Name) @@ -2151,7 +2151,7 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.GREPA_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.SPDEF,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.SPDEF,new string[] { Game._INTL("{1} adores you! Its base Special Defense fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Special Defense can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Special Defense fell!",pokemon.Name) @@ -2159,7 +2159,7 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); UseOnPokemon.Add(Items.TAMATO_BERRY, (item, pokemon, scene) => { - return Item.pbRaiseHappinessAndLowerEV(pokemon,scene,Stats.SPEED,new string[] { + return Item.RaiseHappinessAndLowerEV(pokemon,scene,Stats.SPEED,new string[] { Game._INTL("{1} adores you! Its base Speed fell!",pokemon.Name), Game._INTL("{1} became more friendly. Its base Speed can't go lower.",pokemon.Name), Game._INTL("{1} became more friendly. However, its base Speed fell!",pokemon.Name) @@ -2171,14 +2171,14 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle pokemon.Status!=Status.FROZEN && !IsNight) { if (pokemon.HP>0) { pokemon.SetForm(1); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } else { - scene.pbDisplay(Game._INTL("This can't be used on the fainted Pokémon.")); + scene.Display(Game._INTL("This can't be used on the fainted Pokémon.")); } } else { - scene.pbDisplay(Game._INTL("It had no effect.")); + scene.Display(Game._INTL("It had no effect.")); return false; } return false; @@ -2190,14 +2190,14 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle pokemon.Species == Pokemons.LANDORUS)) { if (pokemon.HP>0) { pokemon.SetForm((pokemon.FormId==0) ? 1 : 0); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } else { - scene.pbDisplay(Game._INTL("This can't be used on the fainted Pokémon.")); + scene.Display(Game._INTL("This can't be used on the fainted Pokémon.")); } } else { - scene.pbDisplay(Game._INTL("It had no effect.")); + scene.Display(Game._INTL("It had no effect.")); return false; } return false; @@ -2208,18 +2208,18 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle if (pokemon.HP>0) { if (pokemon.fused!=null) { if (Trainer.party.Length>=6) { //ToDo: Party count has 2 slots open - scene.pbDisplay(Game._INTL("You have no room to separate the Pokémon.")); + scene.Display(Game._INTL("You have no room to separate the Pokémon.")); return false; } else { Trainer.party[Trainer.party.Length]=pokemon.fused[1]; pokemon.fused=null; pokemon.SetForm(0); - scene.pbHardRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + scene.HardRefresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } } else { - int chosen=scene.pbChoosePokemon(Game._INTL("Fuse with which Pokémon?")); + int chosen=scene.ChoosePokemon(Game._INTL("Fuse with which Pokémon?")); if (chosen>=0) { Pokemon poke2=Trainer.party[chosen]; if ((poke2.Species == Pokemons.RESHIRAM || @@ -2228,28 +2228,28 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle if (poke2.Species == Pokemons.ZEKROM) pokemon.SetForm(2); pokemon.fused=new Pokemon[] { pokemon, poke2 }; //poke2; //ToDo: Combine stats and divide down the middle? (IV/EV) - pbRemovePokemonAt(chosen); - scene.pbHardRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + RemovePokemonAt(chosen); + scene.HardRefresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } else if (poke2.isEgg) { - scene.pbDisplay(Game._INTL("It cannot be fused with an Egg.")); + scene.Display(Game._INTL("It cannot be fused with an Egg.")); } else if (poke2.HP<=0) { - scene.pbDisplay(Game._INTL("It cannot be fused with that fainted Pokémon.")); + scene.Display(Game._INTL("It cannot be fused with that fainted Pokémon.")); } else if (pokemon==poke2) { - scene.pbDisplay(Game._INTL("It cannot be fused with itself.")); + scene.Display(Game._INTL("It cannot be fused with itself.")); } else { - scene.pbDisplay(Game._INTL("It cannot be fused with that Pokémon.")); + scene.Display(Game._INTL("It cannot be fused with that Pokémon.")); } } else { return false; } } } else { - scene.pbDisplay(Game._INTL("This can't be used on the fainted Pokémon.")); + scene.Display(Game._INTL("This can't be used on the fainted Pokémon.")); } } else { - scene.pbDisplay(Game._INTL("It had no effect.")); + scene.Display(Game._INTL("It had no effect.")); return false; } return false; @@ -2259,14 +2259,14 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle if (pokemon.Species == Pokemons.HOOPA) { if (pokemon.HP>0) { pokemon.SetForm((pokemon.FormId==0) ? 1 : 0); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} changed Forme!",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} changed Forme!",pokemon.Name)); return true; } else { - scene.pbDisplay(Game._INTL("This can't be used on the fainted Pokémon.")); + scene.Display(Game._INTL("This can't be used on the fainted Pokémon.")); } } else { - scene.pbDisplay(Game._INTL("It had no effect.")); + scene.Display(Game._INTL("It had no effect.")); return false; } return false; @@ -2283,16 +2283,16 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle n++; } if (abil1<=0 || abil2<=0 || pokemon.hasHiddenAbility()) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } int newabil=(pokemon.abilityIndex+1)%2; string newabilname=(newabil==0) ? Game._INTL(abil1.ToString(TextScripts.Name)) : Game._INTL(abil2.ToString(TextScripts.Name)); - if (scene.pbConfirm(Game._INTL("Would you like to change {1}'s Ability to {2}?", + if (scene.Confirm(Game._INTL("Would you like to change {1}'s Ability to {2}?", pokemon.Name,newabilname))) { pokemon.setAbility(newabil); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s Ability changed to {2}!",pokemon.Name, + scene.Refresh(); + scene.Display(Game._INTL("{1}'s Ability changed to {2}!",pokemon.Name, Game._INTL(pokemon.Ability.ToString(TextScripts.Name)))); return true; } @@ -2302,294 +2302,294 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle #region BattleUseOnPokemon handlers BattleUseOnPokemon.Add(Items.POTION, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,20,scene); + return Item.BattleHPItem(pokemon,battler,20,scene); }); BattleUseOnPokemon.Add(Items.SUPER_POTION, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,50,scene); + return Item.BattleHPItem(pokemon,battler,50,scene); }); BattleUseOnPokemon.Add(Items.HYPER_POTION, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,200,scene); + return Item.BattleHPItem(pokemon,battler,200,scene); }); BattleUseOnPokemon.Add(Items.MAX_POTION, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,pokemon.TotalHP-pokemon.HP,scene); + return Item.BattleHPItem(pokemon,battler,pokemon.TotalHP-pokemon.HP,scene); }); BattleUseOnPokemon.Add(Items.BERRY_JUICE, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,20,scene); + return Item.BattleHPItem(pokemon,battler,20,scene); }); BattleUseOnPokemon.Add(Items.RAGE_CANDY_BAR, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,20,scene); + return Item.BattleHPItem(pokemon,battler,20,scene); }); BattleUseOnPokemon.Add(Items.SWEET_HEART, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,20,scene); + return Item.BattleHPItem(pokemon,battler,20,scene); }); BattleUseOnPokemon.Add(Items.FRESH_WATER, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,50,scene); + return Item.BattleHPItem(pokemon,battler,50,scene); }); BattleUseOnPokemon.Add(Items.SODA_POP, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,60,scene); + return Item.BattleHPItem(pokemon,battler,60,scene); }); BattleUseOnPokemon.Add(Items.LEMONADE, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,80,scene); + return Item.BattleHPItem(pokemon,battler,80,scene); }); BattleUseOnPokemon.Add(Items.MOOMOO_MILK, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,100,scene); + return Item.BattleHPItem(pokemon,battler,100,scene); }); BattleUseOnPokemon.Add(Items.ORAN_BERRY, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,10,scene); + return Item.BattleHPItem(pokemon,battler,10,scene); }); BattleUseOnPokemon.Add(Items.SITRUS_BERRY, (pokemon, battler, scene) => { - return Item.pbBattleHPItem(pokemon,battler,(int)Math.Floor(pokemon.TotalHP/4f),scene); + return Item.BattleHPItem(pokemon,battler,(int)Math.Floor(pokemon.TotalHP/4f),scene); }); BattleUseOnPokemon.Add(Items.AWAKENING, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.CHESTO_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.BLUE_FLUTE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.POKE_FLUTE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.SLEEP) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} woke up.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} woke up.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ANTIDOTE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.POISON) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.PECHA_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.POISON) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of its poisoning.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.BURN_HEAL, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.BURN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s burn was healed.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s burn was healed.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.RAWST_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.BURN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s burn was healed.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s burn was healed.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.PARALYZE_HEAL, (pokemon, battler, scene) => {//item == Items.PARLYZHEAL || if (pokemon.HP<=0 || pokemon.Status!=Status.PARALYSIS) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.CHERI_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.PARALYSIS) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was cured of paralysis.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ICE_HEAL, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.FROZEN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was thawed out.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was thawed out.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ASPEAR_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || pokemon.Status!=Status.FROZEN) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} was thawed out.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} was thawed out.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.FULL_HEAL, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.LAVA_COOKIE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.OLD_GATEAU, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.CASTELIACONE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.LUMIOSE_GALETTE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.SHALOUR_SABLE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.LUM_BERRY, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); @@ -2597,19 +2597,19 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle BattleUseOnPokemon.Add(Items.FULL_RESTORE, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.HP==pokemon.TotalHP && pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - int hpgain=Item.pbItemRestoreHP(pokemon,pokemon.TotalHP-pokemon.HP); + int hpgain=Item.ItemRestoreHP(pokemon,pokemon.TotalHP-pokemon.HP); if (battler.IsNotNullOrNone()) battler.HP=pokemon.HP; pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; - scene.pbRefresh(); + scene.Refresh(); if (hpgain>0) { - scene.pbDisplay(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); + scene.Display(Game._INTL("{1}'s HP was restored by {2} points.",pokemon.Name,hpgain)); } else { - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); } return true; } @@ -2617,11 +2617,11 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle BattleUseOnPokemon.Add(Items.REVIVE, (pokemon, battler, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HP=(int)Math.Floor(pokemon.TotalHP/2f); - //Item.pbItemRestoreHP(pokemon,(int)Math.Floor(pokemon.TotalHP/2f)); + //Item.ItemRestoreHP(pokemon,(int)Math.Floor(pokemon.TotalHP/2f)); pokemon.HealStatus(); for (int i = 0; i < Trainer.party.Length; i++) { if (Trainer.party[i]==pokemon) { @@ -2629,15 +2629,15 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle break; } } - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.MAX_REVIVE, (pokemon, battler, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealHP(); @@ -2648,14 +2648,14 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle break; } } - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ENERGY_POWDER, (pokemon, battler, scene) => { - if (Item.pbBattleHPItem(pokemon,battler,50,scene)) { + if (Item.BattleHPItem(pokemon,battler,50,scene)) { pokemon.ChangeHappiness(HappinessMethods.POWDER); return true; } @@ -2663,7 +2663,7 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); BattleUseOnPokemon.Add(Items.ENERGY_ROOT, (pokemon, battler, scene) => { - if (Item.pbBattleHPItem(pokemon,battler,200,scene)) { + if (Item.BattleHPItem(pokemon,battler,200,scene)) { pokemon.ChangeHappiness(HappinessMethods.ENERGYROOT); return true; } @@ -2672,22 +2672,22 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle BattleUseOnPokemon.Add(Items.HEAL_POWDER, (pokemon, battler, scene) => { if (pokemon.HP<=0 || (pokemon.Status==0 && (!battler.IsNotNullOrNone() || battler.effects.Confusion==0))) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); if (battler.IsNotNullOrNone()) battler.Status=0; if (battler.IsNotNullOrNone()) battler.effects.Confusion=0; pokemon.ChangeHappiness(HappinessMethods.POWDER); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1} became healthy.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1} became healthy.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.REVIVAL_HERB, (pokemon, battler, scene) => { if (pokemon.HP>0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { pokemon.HealStatus(); @@ -2700,33 +2700,33 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle } } pokemon.ChangeHappiness(HappinessMethods.REVIVALHERB); - scene.pbRefresh(); - scene.pbDisplay(Game._INTL("{1}'s HP was restored.",pokemon.Name)); + scene.Refresh(); + scene.Display(Game._INTL("{1}'s HP was restored.",pokemon.Name)); return true; } }); BattleUseOnPokemon.Add(Items.ETHER, (pokemon, battler, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbBattleRestorePP(pokemon,battler,move,10)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.BattleRestorePP(pokemon,battler,move,10)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } } return false; }); BattleUseOnPokemon.Add(Items.LEPPA_BERRY, (pokemon, battler, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbBattleRestorePP(pokemon,battler,move,10)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.BattleRestorePP(pokemon,battler,move,10)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } } @@ -2734,13 +2734,13 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle }); BattleUseOnPokemon.Add(Items.MAX_ETHER, (pokemon, battler, scene) => { - int move=scene.pbChooseMove(pokemon,Game._INTL("Restore which move?")); + int move=scene.ChooseMove(pokemon,Game._INTL("Restore which move?")); if (move>=0) { - if (Item.pbBattleRestorePP(pokemon,battler,move,pokemon.moves[move].TotalPP-pokemon.moves[move].PP)==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + if (Item.BattleRestorePP(pokemon,battler,move,pokemon.moves[move].TotalPP-pokemon.moves[move].PP)==0) { + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } } @@ -2750,13 +2750,13 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle BattleUseOnPokemon.Add(Items.ELIXIR, (pokemon, battler, scene) => { int pprestored=0; for (int i = 0; i < pokemon.moves.Length; i++) { - pprestored+=Item.pbBattleRestorePP(pokemon,battler,i,10); + pprestored+=Item.BattleRestorePP(pokemon,battler,i,10); } if (pprestored==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } }); @@ -2764,13 +2764,13 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle BattleUseOnPokemon.Add(Items.MAX_ELIXIR, (pokemon, battler, scene) => { int pprestored=0; for (int i = 0; i < pokemon.moves.Length; i++) { - pprestored+=Item.pbBattleRestorePP(pokemon,battler,i,pokemon.moves[i].TotalPP-pokemon.moves[i].PP); + pprestored+=Item.BattleRestorePP(pokemon,battler,i,pokemon.moves[i].TotalPP-pokemon.moves[i].PP); } if (pprestored==0) { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } else { - scene.pbDisplay(Game._INTL("PP was restored.")); + scene.Display(Game._INTL("PP was restored.")); return true; } }); @@ -2778,10 +2778,10 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle BattleUseOnPokemon.Add(Items.RED_FLUTE, (pokemon, battler, scene) => { if (battler.IsNotNullOrNone() && battler.effects.Attract>=0) { battler.effects.Attract=-1; - scene.pbDisplay(Game._INTL("{1} got over its infatuation.",pokemon.Name)); + scene.Display(Game._INTL("{1} got over its infatuation.",pokemon.Name)); return true; // Items.consumed: } else { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } }); @@ -2789,20 +2789,20 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle BattleUseOnPokemon.Add(Items.YELLOW_FLUTE, (pokemon, battler, scene) => { if (battler.IsNotNullOrNone() && battler.effects.Confusion>0) { battler.effects.Confusion=0; - scene.pbDisplay(Game._INTL("{1} snapped out of confusion.",pokemon.Name)); + scene.Display(Game._INTL("{1} snapped out of confusion.",pokemon.Name)); return true; // Items.consumed: } else { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } }); BattleUseOnPokemon.Add(Items.PERSIM_BERRY, (pokemon, battler, scene) => { if (battler.IsNotNullOrNone() && battler.effects.Confusion>0) { battler.effects.Confusion=0; - scene.pbDisplay(Game._INTL("{1} snapped out of confusion.",pokemon.Name)); + scene.Display(Game._INTL("{1} snapped out of confusion.",pokemon.Name)); return true; // Items.consumed: } else { - scene.pbDisplay(Game._INTL("It won't have any effect.")); + scene.Display(Game._INTL("It won't have any effect.")); return false; } }); @@ -2810,339 +2810,339 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle #region BattleUseOnBattler handlers BattleUseOnBattler.Add(Items.X_ATTACK, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ATTACK,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { + battler.IncreaseStat(Combat.Stats.ATTACK,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ATTACK_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ATTACK,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { + battler.IncreaseStat(Combat.Stats.ATTACK,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ATTACK_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ATTACK,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ATTACK,battler,false)) { + battler.IncreaseStat(Combat.Stats.ATTACK,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ATTACK_6, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.ATTACK,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.ATTACK,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_DEFENSE, (item, battler, scene) => { //item == Items.X_DEFEND || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.DEFENSE,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { + battler.IncreaseStat(Combat.Stats.DEFENSE,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false ; } }); BattleUseOnBattler.Add(Items.X_DEFENSE_2, (item, battler, scene) => { //item == Items.XDEFEND2 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.DEFENSE,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { + battler.IncreaseStat(Combat.Stats.DEFENSE,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_DEFENSE_3, (item, battler, scene) => { //item == Items.XDEFEND3 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.DEFENSE,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.DEFENSE,battler,false)) { + battler.IncreaseStat(Combat.Stats.DEFENSE,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_DEFENSE_6, (item, battler, scene) => { //item == Items.XDEFEND6 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.DEFENSE,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.DEFENSE,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_ATK, (item, battler, scene) => { //item == Items.X_SPECIAL || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPATK,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPATK,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_ATK_2, (item, battler, scene) => { //item == Items.XSPECIAL2 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPATK,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPATK,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_ATK_3, (item, battler, scene) => { //item == Items.XSPECIAL3 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPATK,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPATK,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPATK,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_ATK_6, (item, battler, scene) => { //item == Items.XSPECIAL6 || - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.SPATK,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.SPATK,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_DEF, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPDEF,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPDEF,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_DEF_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPDEF,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPDEF,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_DEF_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPDEF,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPDEF,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPDEF,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SP_DEF_6, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.SPDEF,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.SPDEF,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SPEED, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPEED,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPEED,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SPEED_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPEED,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPEED,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SPEED_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.SPEED,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.SPEED,battler,false)) { + battler.IncreaseStat(Combat.Stats.SPEED,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_SPEED_6, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.SPEED,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.SPEED,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ACCURACY, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ACCURACY,1,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { + battler.IncreaseStat(Combat.Stats.ACCURACY,1,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ACCURACY_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ACCURACY,2,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { + battler.IncreaseStat(Combat.Stats.ACCURACY,2,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.X_ACCURACY_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbCanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { - battler.pbIncreaseStat(Combat.Stats.ACCURACY,3,battler,true); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.CanIncreaseStatStage(Combat.Stats.ACCURACY,battler,false)) { + battler.IncreaseStat(Combat.Stats.ACCURACY,3,battler,true); return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false ; } }); BattleUseOnBattler.Add(Items.X_ACCURACY_6, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbIncreaseStatWithCause(Combat.Stats.ACCURACY,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.IncreaseStatWithCause(Combat.Stats.ACCURACY,6,battler,Game._INTL(item.ToString(TextScripts.Name)))) { return true; } else { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } }); BattleUseOnBattler.Add(Items.DIRE_HIT, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); if (battler.effects.FocusEnergy>=1) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } else { battler.effects.FocusEnergy=1; - scene.pbDisplay(Game._INTL("{1} is getting pumped!",battler.ToString())); + scene.Display(Game._INTL("{1} is getting pumped!",battler.ToString())); return true; } }); BattleUseOnBattler.Add(Items.DIRE_HIT_2, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); if (battler.effects.FocusEnergy>=2) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } else { battler.effects.FocusEnergy=2; - scene.pbDisplay(Game._INTL("{1} is getting pumped!",battler.ToString())); + scene.Display(Game._INTL("{1} is getting pumped!",battler.ToString())); return true; } }); BattleUseOnBattler.Add(Items.DIRE_HIT_3, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); if (battler.effects.FocusEnergy>=3) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + scene.Display(Game._INTL("But it had no effect!")); return false; } else { battler.effects.FocusEnergy=3; - scene.pbDisplay(Game._INTL("{1} is getting pumped!",battler.ToString())); + scene.Display(Game._INTL("{1} is getting pumped!",battler.ToString())); return true; } }); BattleUseOnBattler.Add(Items.GUARD_SPEC, (item, battler, scene) => { - string playername=battler.battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); - if (battler.pbOwnSide.Mist>0) { - scene.pbDisplay(Game._INTL("But it had no effect!")); + string playername=battler.battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + if (battler.OwnSide.Mist>0) { + scene.Display(Game._INTL("But it had no effect!")); return false; } else { - battler.pbOwnSide.Mist=5; - //if (!scene.pbIsOpposing(battler.Index)) { //Create new Delegate for attacker? - if (!battler.battle.pbOwnedByPlayer(battler.Index)) { //if player's pokemon... - scene.pbDisplay(Game._INTL("Your team became shrouded in mist!")); + battler.OwnSide.Mist=5; + //if (!scene.IsOpposing(battler.Index)) { //Create new Delegate for attacker? + if (!battler.battle.OwnedByPlayer(battler.Index)) { //if player's pokemon... + scene.Display(Game._INTL("Your team became shrouded in mist!")); } else { - scene.pbDisplay(Game._INTL("The foe's team became shrouded in mist!")); + scene.Display(Game._INTL("The foe's team became shrouded in mist!")); } return true; } @@ -3151,455 +3151,455 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle BattleUseOnBattler.Add(Items.POKE_DOLL, (item, battler, scene) => { IBattle battle=battler.battle; if (battle.opponent != null) { - scene.pbDisplay(Game._INTL("Can't use that here.")); + scene.Display(Game._INTL("Can't use that here.")); return false; } else { - string playername=battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); return true; } }); BattleUseOnBattler.Add(Items.FLUFFY_TAIL, (item, battler, scene) => { IBattle battle=battler.battle; if (battle.opponent != null) { - scene.pbDisplay(Game._INTL("Can't use that here.")); + scene.Display(Game._INTL("Can't use that here.")); return false; } else { - string playername=battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); return true; } }); BattleUseOnBattler.Add(Items.POKE_TOY, (item, battler, scene) => { IBattle battle=battler.battle; if (battle.opponent != null) { - scene.pbDisplay(Game._INTL("Can't use that here.")); + scene.Display(Game._INTL("Can't use that here.")); return false; } else { - string playername=battle.pbPlayer().name; - scene.pbDisplay(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); + string playername=battle.Player().name; + scene.Display(Game._INTL("{1} used the {2}.",playername,Game._INTL(item.ToString(TextScripts.Name)))); return true; } }); - //if (Item.pbIsPokeBall(item)) { // Any Poké Ball + //if (Item.IsPokeBall(item)) { // Any Poké Ball BattleUseOnBattler.Add(Items.POKE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - //if (battle.pbPlayer().party.Length>=6 && !PC.full) { - if (battle.pbPlayer().party.GetCount()>=Features.LimitPokemonPartySize && !Player.PC.hasSpace()) { - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + //if (battle.Player().party.Length>=6 && !PC.full) { + if (battle.Player().party.GetCount()>=Features.LimitPokemonPartySize && !Player.PC.hasSpace()) { + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.BEAST_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.CHERISH_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.DIVE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.DREAM_BALL, (item, battler, scene) => { //ToDo: Only in dreamworld? IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.DUSK_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.FAST_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.FRIEND_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.GREAT_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.HEAL_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.HEAVY_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.IRON_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LEVEL_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LIGHT_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LOVE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LURE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.LUXURY_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.MASTER_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.MOON_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.NEST_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.NET_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.PARK_BALL, (item, battler, scene) => { //ToDo: Only in park? IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.PREMIER_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.QUICK_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.REPEAT_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.SAFARI_BALL, (item, battler, scene) => { //ToDo: Only during safari contest? IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.SMOKE_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.SPORT_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.TIMER_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; }); BattleUseOnBattler.Add(Items.ULTRA_BALL, (item, battler, scene) => { IBattle battle=battler.battle; - if (!battler.pbOpposing1.isFainted() && !battler.pbOpposing2.isFainted()) { - if (!(Game.GameData as IItemCheck).pbIsSnagBall(item)) { //battle.pbIsSnagBall(item) - scene.pbDisplay(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); + if (!battler.Opposing1.isFainted() && !battler.Opposing2.isFainted()) { + if (!(Game.GameData as IItemCheck).IsSnagBall(item)) { //battle.IsSnagBall(item) + scene.Display(Game._INTL("It's no good! It's impossible to aim when there are two Pokémon!")); return false; } } - if (battle.pbPlayer().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full - scene.pbDisplay(Game._INTL("There is no room left in the PC!")); + if (battle.Player().party.Length>=6 && !Player.PC.hasSpace()) { //PC.full + scene.Display(Game._INTL("There is no room left in the PC!")); return false; } return true; @@ -3609,107 +3609,107 @@ public static void triggerUseInBattle(Items item,IBattler battler,IBattle battle #region UseInBattle handlers UseInBattle.Add(Items.POKE_DOLL, (item, battler, battle) => { battle.decision=Combat.BattleResults.FORFEIT; - battle.pbDisplayPaused(Game._INTL("Got away safely!")); + battle.DisplayPaused(Game._INTL("Got away safely!")); }); UseInBattle.Add(Items.FLUFFY_TAIL, (item, battler, battle) => { battle.decision=Combat.BattleResults.FORFEIT; - battle.pbDisplayPaused(Game._INTL("Got away safely!")); + battle.DisplayPaused(Game._INTL("Got away safely!")); }); UseInBattle.Add(Items.POKE_TOY, (item, battler, battle) => { battle.decision=Combat.BattleResults.FORFEIT; - battle.pbDisplayPaused(Game._INTL("Got away safely!")); + battle.DisplayPaused(Game._INTL("Got away safely!")); }); - //if (Item.pbIsPokeBall(item))// Any Poké Ball + //if (Item.IsPokeBall(item))// Any Poké Ball UseInBattle.Add(Items.POKE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.BEAST_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.CHERISH_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.DIVE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.DREAM_BALL, (item, battler, battle) => { //ToDo: Only in dreamworld? - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.DUSK_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.FAST_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.FRIEND_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.GREAT_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.HEAL_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.HEAVY_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.IRON_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LEVEL_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LIGHT_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LOVE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LURE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.LUXURY_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.MASTER_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.MOON_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.NEST_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.NET_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.PARK_BALL, (item, battler, battle) => { //ToDo: Only in park? - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.PREMIER_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.QUICK_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.REPEAT_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.SAFARI_BALL, (item, battler, battle) => { //ToDo: Only during safari contest? - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.SMOKE_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.SPORT_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.TIMER_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); UseInBattle.Add(Items.ULTRA_BALL, (item, battler, battle) => { - battle.pbThrowPokeball(battler.Index, item); + battle.ThrowPokeball(battler.Index, item); }); #endregion }*/ diff --git a/PokemonUnity.Application/Monster/BattlePeer.cs b/PokemonUnity.Application/Monster/BattlePeer.cs index 4b0c52ed0..9874cd48e 100644 --- a/PokemonUnity.Application/Monster/BattlePeer.cs +++ b/PokemonUnity.Application/Monster/BattlePeer.cs @@ -10,43 +10,43 @@ namespace PokemonUnity.Monster { public partial class PokeBattle_NullBattlePeer : PokemonEssentials.Interface.PokeBattle.IBattlePeer, PokemonEssentials.Interface.PokeBattle.IBattlePeerMultipleForms { - public void pbOnEnteringBattle(PokemonEssentials.Interface.PokeBattle.IBattle battle, PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { + public void OnEnteringBattle(PokemonEssentials.Interface.PokeBattle.IBattle battle, PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { } - public int pbStorePokemon(PokemonEssentials.Interface.PokeBattle.ITrainer player, PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { + public int StorePokemon(PokemonEssentials.Interface.PokeBattle.ITrainer player, PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { if (player.party.GetCount()<6) { player.party[player.party.GetCount()]=pokemon; } return -1; } - public string pbGetStorageCreator() { + public string GetStorageCreator() { return null; } - public int pbCurrentBox() { + public int CurrentBox() { return -1; } - public string pbBoxName(int box) { + public string BoxName(int box) { return ""; } } public partial class PokeBattle_RealBattlePeer : PokemonEssentials.Interface.PokeBattle.IBattlePeer { - public int pbStorePokemon(ITrainer player, IPokemon pokemon) { + public int StorePokemon(ITrainer player, IPokemon pokemon) { if (player.party.GetCount()<6) { player.party[player.party.GetCount()]=pokemon; return -1; } else { (pokemon as IPokemon).Heal(); int oldcurbox=Game.GameData.PokemonStorage.currentBox; - int storedbox=Game.GameData.PokemonStorage.pbStoreCaught(pokemon); + int storedbox=Game.GameData.PokemonStorage.StoreCaught(pokemon); //int oldcurbox=Game.GameData.Player.PC.ActiveBox; //int? storedbox = Game.GameData.Player.PC.getIndexOfFirstEmpty(); if (storedbox<0) { //if (!storedbox.HasValue) { - //Game.GameData.pbDisplayPaused(Game._INTL("Can't catch any more...")); //ToDo: Relationship to ui from here? + //Game.GameData.DisplayPaused(Game._INTL("Can't catch any more...")); //ToDo: Relationship to ui from here? return oldcurbox; } else { return storedbox; @@ -54,22 +54,22 @@ public int pbStorePokemon(ITrainer player, IPokemon pokemon) { } } - public string pbGetStorageCreator() { + public string GetStorageCreator() { string creator=null; if (Game.GameData != null && Game.GameData.Global.seenStorageCreator) { //if (Game.GameData != null && Game.GameData.Player.IsCreator) { - creator=(Game.GameData as PokemonEssentials.Interface.Screen.IGamePCStorage).pbGetStorageCreator(); + creator=(Game.GameData as PokemonEssentials.Interface.Screen.IGamePCStorage).GetStorageCreator(); //creator="someone"; //ToDo... } return creator; } - public int pbCurrentBox() { + public int CurrentBox() { return Game.GameData.PokemonStorage.currentBox; //return Game.GameData.Player.PC.ActiveBox; } - public string pbBoxName(int box) { + public string BoxName(int box) { return box<0 ? "" : Game.GameData.PokemonStorage[box].name; //return box<0 ? "" : Game.GameData.Player.PC.BoxNames[box]; } diff --git a/PokemonUnity.Application/Monster/Chatter.cs b/PokemonUnity.Application/Monster/Chatter.cs index b017b3b7a..a910d0937 100644 --- a/PokemonUnity.Application/Monster/Chatter.cs +++ b/PokemonUnity.Application/Monster/Chatter.cs @@ -16,25 +16,25 @@ public partial class Pokemon : PokemonEssentials.Interface.PokeBattle.IPokemonCh } } public partial class Game : PokemonEssentials.Interface.IGameChatter { - public void pbChatter(PokemonEssentials.Interface.PokeBattle.IPokemonChatter pokemon) { + public void Chatter(PokemonEssentials.Interface.PokeBattle.IPokemonChatter pokemon) { //using (PokemonEssentials.Interface.IPictureWindow iconwindow = null) { - IPictureWindow iconwindow=null; //new PictureWindow(UI.pbLoadPokemonBitmap(pokemon)); + IPictureWindow iconwindow=null; //new PictureWindow(UI.LoadPokemonBitmap(pokemon)); iconwindow.x=(Graphics.width/2)-(iconwindow.width/2); iconwindow.y=((Graphics.height-96)/2)-(iconwindow.height/2); if (pokemon.chatter != null) { - (this as IGameMessage).pbMessage(_INTL("It will forget the song it knows.")); - if (!(this as IGameMessage).pbConfirmMessage(_INTL("Are you sure you want to change it?"))) + (this as IGameMessage).Message(_INTL("It will forget the song it knows.")); + if (!(this as IGameMessage).ConfirmMessage(_INTL("Are you sure you want to change it?"))) { iconwindow.Dispose(); return; } } - if ((this as IGameMessage).pbConfirmMessage(_INTL("Do you want to change its song now?"))) { - PokemonEssentials.Interface.IWaveData wave=null;//pbRecord(null,5); + if ((this as IGameMessage).ConfirmMessage(_INTL("Do you want to change its song now?"))) { + PokemonEssentials.Interface.IWaveData wave=null;//Record(null,5); if (wave != null && pokemon is IPokemon p) { pokemon.chatter=wave; - (this as IGameMessage).pbMessage(_INTL("{1} learned a new song!",p.Name)); + (this as IGameMessage).Message(_INTL("{1} learned a new song!",p.Name)); } } iconwindow.Dispose(); @@ -48,14 +48,14 @@ public void pbChatter(PokemonEssentials.Interface.PokeBattle.IPokemonChatter pok //}); // //HiddenMoveHandlers.addUseMove(:CHATTER,proc {|item,pokemon| - // pbChatter(pokemon); + // Chatter(pokemon); // return true; //}); //public partial class PokeBattle_Scene : IBattle, ISceneHasChatter { - // public System.Collections.IEnumerator pbChatter(IBattler attacker,IBattler opponent) { + // public System.Collections.IEnumerator Chatter(IBattler attacker,IBattler opponent) { // //if (attacker.pokemon.IsNotNullOrNone()) { - // // pbPlayCry(attacker.pokemon,90,100); + // // PlayCry(attacker.pokemon,90,100); // //} // //int i = 0; do { //;Graphics.frame_rate.times // // Graphics?.update(); diff --git a/PokemonUnity.Application/Monster/EvolutionHelper.cs b/PokemonUnity.Application/Monster/EvolutionHelper.cs index 0b4ef1733..4579314c6 100644 --- a/PokemonUnity.Application/Monster/EvolutionHelper.cs +++ b/PokemonUnity.Application/Monster/EvolutionHelper.cs @@ -36,12 +36,12 @@ public static class EvolutionHelper }; #region Evolution helper functions - public static Data.PokemonEvolution[] pbGetEvolvedFormData(Pokemons species) { + public static Data.PokemonEvolution[] GetEvolvedFormData(Pokemons species) { System.Collections.Generic.List ret=new System.Collections.Generic.List(); //int _EVOTYPEMASK=0x3F; //int _EVODATAMASK=0xC0; //int _EVONEXTFORM=0x00; - { //pbRgssOpen("Data/evolutions.dat","rb"){|f| + { //RgssOpen("Data/evolutions.dat","rb"){|f| //f.pos=(species-1)*8; //offset=f.fgetdw(); int length=Kernal.PokemonEvolutionsData[species].Length; //f.fgetdw(); @@ -65,11 +65,11 @@ public static Data.PokemonEvolution[] pbGetEvolvedFormData(Pokemons species) { //Loops through each pokemon in db with evolution, //every 5 pokemons, log in debug output pokemon evolution - //public static void pbEvoDebug() { + //public static void EvoDebug() { // int _EVOTYPEMASK=0x3F; // int _EVODATAMASK=0xC0; - // { //pbRgssOpen("Data/evolutions.dat","rb"){|f| - // for (int species = 1; species < PBSpecies.maxValue; species++) { + // { //RgssOpen("Data/evolutions.dat","rb"){|f| + // for (int species = 1; species < Species.maxValue; species++) { // //f.pos=(species-1)*8; // //offset=f.fgetdw; // int length=f.fgetdw; @@ -94,11 +94,11 @@ public static Data.PokemonEvolution[] pbGetEvolvedFormData(Pokemons species) { // } //} - public static Pokemons pbGetPreviousForm(Pokemons species) { + public static Pokemons GetPreviousForm(Pokemons species) { //int _EVOTYPEMASK=0x3F; //int _EVODATAMASK=0xC0; //int _EVOPREVFORM=0x40; - { //pbRgssOpen("Data/evolutions.dat","rb"){|f| + { //RgssOpen("Data/evolutions.dat","rb"){|f| //f.pos=(species-1)*8; //offset=f.fgetdw(); int length=Kernal.PokemonData[species].EvoChainId; //f.fgetdw(); @@ -120,12 +120,12 @@ public static Pokemons pbGetPreviousForm(Pokemons species) { return species; } - public static int pbGetMinimumLevel(Pokemons species) { + public static int GetMinimumLevel(Pokemons species) { int ret=-1; //int _EVOTYPEMASK=0x3F; //int _EVODATAMASK=0xC0; //int _EVOPREVFORM=0x40; - { //pbRgssOpen("Data/evolutions.dat","rb"){|f| + { //RgssOpen("Data/evolutions.dat","rb"){|f| //f.pos=(species-1)*8; //offset=f.fgetdw(); int length=Kernal.PokemonEvolutionsData[species].Length; //f.fgetdw(); @@ -136,7 +136,7 @@ public static int pbGetMinimumLevel(Pokemons species) { EvolutionMethod evonib=evo.EvolveMethod; //evo&_EVOTYPEMASK; int level=(int)evo.EvolveValue; //f.fgetw(); //Pokemons poke=evo.Species; //f.fgetw(); - if (//poke<=Kernal.PokemonData.Count && //PBSpecies.maxValue + if (//poke<=Kernal.PokemonData.Count && //Species.maxValue //(evo&_EVODATAMASK)==_EVOPREVFORM && // evolved from new EvolutionMethod[] {EvolutionMethod.Level,EvolutionMethod.LevelMale, EvolutionMethod.LevelFemale,EvolutionMethod.AttackGreater, @@ -155,12 +155,12 @@ public static int pbGetMinimumLevel(Pokemons species) { return (ret==-1) ? 1 : ret; } - public static Pokemons pbGetBabySpecies(Pokemons species,Items item1=Items.NONE,Items item2=Items.NONE) { + public static Pokemons GetBabySpecies(Pokemons species,Items item1=Items.NONE,Items item2=Items.NONE) { Pokemons ret=species; //int _EVOTYPEMASK=0x3F; //int _EVODATAMASK=0xC0; //int _EVOPREVFORM=0x40; - { //pbRgssOpen("Data/evolutions.dat","rb"){ |f| + { //RgssOpen("Data/evolutions.dat","rb"){ |f| //f.pos=(species-1)*8; //offset=f.fgetdw(); int length=Kernal.PokemonEvolutionsData[species].Length; //f.fgetdw(); @@ -171,12 +171,12 @@ public static Pokemons pbGetBabySpecies(Pokemons species,Items item1=Items.NONE, EvolutionMethod evonib=evo.EvolveMethod; //evo&_EVOTYPEMASK; int level=(int)evo.EvolveValue; //f.fgetw(); Pokemons poke=evo.Species; //f.fgetw(); - //if (poke<=PBSpecies.maxValue && (evo&_EVODATAMASK)==_EVOPREVFORM) { // evolved from + //if (poke<=Species.maxValue && (evo&_EVODATAMASK)==_EVOPREVFORM) { // evolved from if (//poke<=Kernal.PokemonData.Keys.Count && Kernal.PokemonData[poke].IsBaby) { // evolved from if (item1>=0 && item2>=0) { - //dexdata=pbOpenDexData(); - //pbDexDataOffset(dexdata,poke,54); + //dexdata=OpenDexData(); + //DexDataOffset(dexdata,poke,54); Items incense=Kernal.PokemonData[poke].Incense; //dexdata.fgetw(); //dexdata.close(); if (item1==incense || item2==incense) ret=poke; @@ -190,14 +190,14 @@ public static Pokemons pbGetBabySpecies(Pokemons species,Items item1=Items.NONE, } } if (ret!=species) { - ret=pbGetBabySpecies(ret); + ret=GetBabySpecies(ret); } return ret; } #endregion #region Evolution methods - public static Pokemons pbMiniCheckEvolution(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon,EvolutionMethod evonib,int level,Pokemons poke) { + public static Pokemons MiniCheckEvolution(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon,EvolutionMethod evonib,int level,Pokemons poke) { switch (evonib) { case EvolutionMethod.Happiness: if (pokemon.Happiness>=220) return poke; @@ -312,7 +312,7 @@ public static Pokemons pbMiniCheckEvolution(PokemonEssentials.Interface.PokeBatt return Pokemons.NONE; //-1; } - public static Pokemons pbMiniCheckEvolutionItem(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon,EvolutionMethod evonib,Items level,Pokemons poke,Items item) { + public static Pokemons MiniCheckEvolutionItem(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon,EvolutionMethod evonib,Items level,Pokemons poke,Items item) { // Checks for when an item is used on the Pokémon (e.g. an evolution stone) switch (evonib) { case EvolutionMethod.Item: @@ -334,13 +334,13 @@ public static Pokemons pbMiniCheckEvolutionItem(PokemonEssentials.Interface.Poke /// Pokemon to check; evolution type; level or other parameter; ID of the new Pokemon species /// /// - public static Pokemons pbCheckEvolutionEx(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { + public static Pokemons CheckEvolutionEx(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { if (pokemon.Species<=0 || pokemon.isEgg) return 0; if (pokemon.Species == Pokemons.PICHU && pokemon is PokemonEssentials.Interface.PokeBattle.IPokemonMultipleForms f && f.form==1) return 0; if (pokemon.Item == Items.EVERSTONE && pokemon.Species != Pokemons.KADABRA) return 0; Pokemons ret=0; - //foreach (var form in pbGetEvolvedFormData(pokemon.Species)) { + //foreach (var form in GetEvolvedFormData(pokemon.Species)) { foreach (Data.PokemonEvolution form in Kernal.PokemonEvolutionsData[pokemon.Species]) { //ret=yield pokemon,form[0],form[1],form[2]; //EvolveMethod evonib,int level,poke ret=form.Species; @@ -355,24 +355,24 @@ public static Pokemons pbCheckEvolutionEx(PokemonEssentials.Interface.PokeBattle /// /// /// - public static Pokemons[] pbCheckEvolution(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon,Items item=0) { + public static Pokemons[] CheckEvolution(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon,Items item=0) { if (pokemon.Species<=0 || pokemon.isEgg) return new Pokemons[0]; if (pokemon.Species == Pokemons.PICHU && pokemon is PokemonEssentials.Interface.PokeBattle.IPokemonMultipleForms f && f.form==1) return new Pokemons[0]; if (pokemon.Item == Items.EVERSTONE && pokemon.Species != Pokemons.KADABRA) return new Pokemons[0]; if (item==0) { - //return pbCheckEvolutionEx(pokemon) { //|pokemon,evonib,level,poke| - // next pbMiniCheckEvolution(pokemon,evonib,level,poke); + //return CheckEvolutionEx(pokemon) { //|pokemon,evonib,level,poke| + // next MiniCheckEvolution(pokemon,evonib,level,poke); //} return Kernal.PokemonEvolutionsData[pokemon.Species].Where(a => - pbMiniCheckEvolution(pokemon,a.EvolveMethod,(int)a.EvolveValue,a.Species) != Pokemons.NONE + MiniCheckEvolution(pokemon,a.EvolveMethod,(int)a.EvolveValue,a.Species) != Pokemons.NONE ).Select(b => b.Species).ToArray(); } else { - //return pbCheckEvolutionEx(pokemon) { //|pokemon,evonib,level,poke| - // next pbMiniCheckEvolutionItem(pokemon,evonib,level,poke,item); + //return CheckEvolutionEx(pokemon) { //|pokemon,evonib,level,poke| + // next MiniCheckEvolutionItem(pokemon,evonib,level,poke,item); //} return Kernal.PokemonEvolutionsData[pokemon.Species].Where(a => - pbMiniCheckEvolutionItem(pokemon,a.EvolveMethod,(Items)a.EvolveValue,a.Species, item) != Pokemons.NONE + MiniCheckEvolutionItem(pokemon,a.EvolveMethod,(Items)a.EvolveValue,a.Species, item) != Pokemons.NONE ).Select(b => b.Species).ToArray(); } } diff --git a/PokemonUnity.Application/Monster/Pokemon/Pokemon.Form.cs b/PokemonUnity.Application/Monster/Pokemon/Pokemon.Form.cs index accb05611..ee25f2c0a 100644 --- a/PokemonUnity.Application/Monster/Pokemon/Pokemon.Form.cs +++ b/PokemonUnity.Application/Monster/Pokemon/Pokemon.Form.cs @@ -61,7 +61,7 @@ public int FormId { get { //MultipleForms.call("onSetForm",this,value); MultipleForms.onSetForm(this,value); this.calcStats(); - if(Game.GameData is PokemonEssentials.Interface.IGameUtility g) g.pbSeenForm(this); + if(Game.GameData is PokemonEssentials.Interface.IGameUtility g) g.SeenForm(this); } } // Maybe a method, where when a form is changed // checks pokemon value and overwrites name and stats @@ -94,7 +94,7 @@ public int form { get { //MultipleForms.call("onSetForm",this,value); MultipleForms.onSetForm(this,value); this.calcStats(); - if(Game.GameData is PokemonEssentials.Interface.IGameUtility g) g.pbSeenForm(this); + if(Game.GameData is PokemonEssentials.Interface.IGameUtility g) g.SeenForm(this); } } public int formNoCall { set { @@ -233,7 +233,7 @@ public PokemonEssentials.Interface.PokeBattle.IPokemon initialize(Pokemons speci } public partial class PokeBattle_RealBattlePeer : PokemonEssentials.Interface.PokeBattle.IBattlePeerMultipleForms { - public void pbOnEnteringBattle(PokemonEssentials.Interface.PokeBattle.IBattle battle,PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { + public void OnEnteringBattle(PokemonEssentials.Interface.PokeBattle.IBattle battle,PokemonEssentials.Interface.PokeBattle.IPokemon pokemon) { if (pokemon is PokemonEssentials.Interface.PokeBattle.IPokemonMultipleForms p) { //int? f=MultipleForms.call("getFormOnEnteringBattle",pokemon); int? f=MultipleForms.getFormOnEnteringBattle(pokemon); @@ -271,7 +271,7 @@ public void pbOnEnteringBattle(PokemonEssentials.Interface.PokeBattle.IBattle ba } } - public void pbSpindaSpots(pokemon,bitmap) { + public void SpindaSpots(pokemon,bitmap) { spot1=[ [0,0,1,1,1,1,0,0], [0,1,1,1,1,1,1,0], @@ -388,7 +388,7 @@ public static int getForm(PokemonEssentials.Interface.PokeBattle.IPokemonMultipl } else if (pokemon.Species == Pokemons.DEERLING || pokemon.Species == Pokemons.SAWSBUCK) { - return (int)Game.Season;//pbGetSeason(); + return (int)Game.Season;//GetSeason(); } else if (pokemon.Species == Pokemons.KELDEO) { @@ -424,9 +424,9 @@ public static int getForm(PokemonEssentials.Interface.PokeBattle.IPokemonMultipl { if (pokemon.Species == Pokemons.BURMY) { - Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.pbGetEnvironment() : Environments.None; - //if (!Game.GameData.pbGetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { - if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.pbGetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { + Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.GetEnvironment() : Environments.None; + //if (!Game.GameData.GetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { + if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.GetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { //if (Kernal.TileData[Game.GameData.Player.Area] == Indoor) { return 2; // Trash Cloak } else if (env==Environments.Sand || @@ -466,20 +466,20 @@ public static void onSetForm(PokemonEssentials.Interface.PokeBattle.IPokemon pok } if (form>0) { Moves newmove=moves[form-1]; - if (newmove!=Moves.NONE) { //&& hasConst(PBMoves,newmove) + if (newmove!=Moves.NONE) { //&& hasConst(Moves,newmove) if (hasoldmove>=0 && Game.GameData is PokemonEssentials.Interface.IGameMessage m) { // Automatically replace the old form's special move with the new one's string oldmovename=Game._INTL(pokemon.moves[hasoldmove].id.ToString(TextScripts.Name)); string newmovename=Game._INTL(newmove.ToString(TextScripts.Name)); pokemon.moves[hasoldmove]=new Attack.Move(newmove); - m.pbMessage(Game._INTL("\\se[]1,\\wt[4] 2,\\wt[4] and...\\wt[8] ...\\wt[8] ...\\wt[8] Poof!\\se[balldrop]\\1")); - m.pbMessage(Game._INTL("{1} forgot how to\r\nuse {2}.\\1",pokemon.Name,oldmovename)); - m.pbMessage(Game._INTL("And...\\1")); - m.pbMessage(Game._INTL("\\se[]{1} learned {2}!\\se[MoveLearnt]",pokemon.Name,newmovename)); + m.Message(Game._INTL("\\se[]1,\\wt[4] 2,\\wt[4] and...\\wt[8] ...\\wt[8] ...\\wt[8] Poof!\\se[balldrop]\\1")); + m.Message(Game._INTL("{1} forgot how to\r\nuse {2}.\\1",pokemon.Name,oldmovename)); + m.Message(Game._INTL("And...\\1")); + m.Message(Game._INTL("\\se[]{1} learned {2}!\\se[MoveLearnt]",pokemon.Name,newmovename)); } else { // Try to learn the new form's special move - if (Game.GameData is PokemonEssentials.Interface.Item.IGameItem i) i.pbLearnMove(pokemon,newmove,true); + if (Game.GameData is PokemonEssentials.Interface.Item.IGameItem i) i.LearnMove(pokemon,newmove,true); //pokemon.LearnMove(newmove, out bool s); } } @@ -488,10 +488,10 @@ public static void onSetForm(PokemonEssentials.Interface.PokeBattle.IPokemon pok if (hasoldmove>=0) { // Forget the old form's special move string oldmovename=Game._INTL(pokemon.moves[hasoldmove].id.ToString(TextScripts.Name)); - pokemon.pbDeleteMoveAtIndex(hasoldmove); - if (Game.GameData is PokemonEssentials.Interface.IGameMessage m) m.pbMessage(Game._INTL("{1} forgot {2}...",pokemon.Name,oldmovename)); + pokemon.DeleteMoveAtIndex(hasoldmove); + if (Game.GameData is PokemonEssentials.Interface.IGameMessage m) m.Message(Game._INTL("{1} forgot {2}...",pokemon.Name,oldmovename)); if (pokemon.moves.Count(i => i.id!=0)==0) { - if (Game.GameData is PokemonEssentials.Interface.Item.IGameItem i) i.pbLearnMove(pokemon,Moves.THUNDER_SHOCK); + if (Game.GameData is PokemonEssentials.Interface.Item.IGameItem i) i.LearnMove(pokemon,Moves.THUNDER_SHOCK); //pokemon.LearnMove(Moves.THUNDER_SHOCK, out bool s); } } @@ -511,9 +511,9 @@ public static int getFormOnCreation(PokemonEssentials.Interface.PokeBattle.IPoke } else if (pokemon.Species == Pokemons.BURMY) { - Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.pbGetEnvironment() : Environments.None; - //if (!Game.GameData.pbGetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { - if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.pbGetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { + Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.GetEnvironment() : Environments.None; + //if (!Game.GameData.GetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { + if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.GetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { //if (Kernal.TileData[Game.GameData.Player.Area] == Indoor) { return 2; // Trash Cloak } else if (env==Environments.Sand || @@ -527,9 +527,9 @@ public static int getFormOnCreation(PokemonEssentials.Interface.PokeBattle.IPoke } else if (pokemon.Species == Pokemons.WORMADAM) { - Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.pbGetEnvironment() : Environments.None; - //if (!Game.GameData.pbGetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { - if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.pbGetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { + Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.GetEnvironment() : Environments.None; + //if (!Game.GameData.GetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { + if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.GetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { //if (Kernal.TileData[Game.GameData.Player.Area] == Indoor) { return 2; // Trash Cloak } else if (env==Environments.Sand || env==Environments.Rock || @@ -610,9 +610,9 @@ public static int getFormOnCreation(PokemonEssentials.Interface.PokeBattle.IPoke } else if (pokemon == Pokemons.BURMY) { - Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.pbGetEnvironment() : Environments.None; - //if (!Game.GameData.pbGetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { - if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.pbGetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { + Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.GetEnvironment() : Environments.None; + //if (!Game.GameData.GetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { + if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.GetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { //if (Kernal.TileData[Game.GameData.Player.Area] == Indoor) { return Forms.BURMY_TRASH; //2; // Trash Cloak } else if (env==Environments.Sand || @@ -626,9 +626,9 @@ public static int getFormOnCreation(PokemonEssentials.Interface.PokeBattle.IPoke } else if (pokemon == Pokemons.WORMADAM) { - Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.pbGetEnvironment() : Environments.None; - //if (!Game.GameData.pbGetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { - if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.pbGetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { + Environments env=Game.GameData is PokemonEssentials.Interface.Field.IGameField f ? f.GetEnvironment() : Environments.None; + //if (!Game.GameData.GetMetadata(Game.GameData.GameMap.map_id,MetadataOutdoor)) { + if (Game.GameData is PokemonEssentials.Interface.Field.IGameMetadataMisc e && !e.GetMetadata(Game.GameData.GameMap.map_id).Map.Outdoor) { //if (Kernal.TileData[Game.GameData.Player.Area] == Indoor) { return Forms.WORMADAM_TRASH; //2; // Trash Cloak } else if (env==Environments.Sand || env==Environments.Rock || diff --git a/PokemonUnity.Application/Monster/Pokemon/Pokemon.MegaEvolution.cs b/PokemonUnity.Application/Monster/Pokemon/Pokemon.MegaEvolution.cs index 7346eeb27..a807e4757 100644 --- a/PokemonUnity.Application/Monster/Pokemon/Pokemon.MegaEvolution.cs +++ b/PokemonUnity.Application/Monster/Pokemon/Pokemon.MegaEvolution.cs @@ -8,6 +8,7 @@ using PokemonUnity.Monster; using PokemonUnity.Character; using PokemonUnity.Monster.Data; +using PokemonEssentials.Interface.PokeBattle; namespace PokemonUnity.Monster { @@ -21,7 +22,7 @@ public partial class Pokemon : PokemonEssentials.Interface.PokeBattle.IPokemonMe { public bool IsMega { get { return Kernal.PokemonFormsData[Species][form].IsMega; } } //public override bool hasMegaForm { get { if (effects.Transform) return false; return base.hasMegaForm; } } - public bool IsPrimal { get; private set; } + public bool IsPrimal { get { Forms f = Kernal.PokemonFormsData[Species][form].Id; return f == Forms.GROUDON_PRIMAL || f == Forms.KYOGRE_PRIMAL; } } //public override bool hasPrimalForm { get { if (effects.Transform) return false; return base.hasPrimalForm; } } public bool hasMegaForm() { //v=MultipleForms.getMegaForm(this); @@ -47,6 +48,7 @@ public void makeUnmega() { public string megaName() { string v=null; //MultipleForms.getMegaName(this); + if (IsMega) v = Kernal.PokemonFormsData[Species][form].Id.ToString(TextScripts.Name); return (v!=null) ? v : Game._INTL("Mega {1}",Game._INTL(this.Species.ToString(TextScripts.Name))); } @@ -79,7 +81,7 @@ public void makeUnprimal() { } public static partial class MultipleForms { - public static int? getMegaForm(Pokemon pokemon) { + public static int? getMegaForm(IPokemon pokemon) { #region XY Mega Evolution if (pokemon.Species == Pokemons.VENUSAUR) { if (pokemon.Item == Items.VENUSAURITE) return 1; @@ -163,7 +165,7 @@ public static partial class MultipleForms { } #endregion - #region ORAS Mega Evolution + #region ORAS Mega Evolution if (pokemon.Species == Pokemons.BEEDRILL) { if (pokemon.Item == Items.BEEDRILLITE) return 1; } @@ -225,12 +227,12 @@ public static partial class MultipleForms { if (pokemon.Item == Items.DIANCITE) return 1; } #endregion - + //return (int)pokemon.form; return null; } - public static int? getPrimalForm(Pokemon pokemon) { + public static int? getPrimalForm(IPokemon pokemon) { #region Primal Reversion if (pokemon.Species == Pokemons.KYOGRE) { if (pokemon.Item == Items.BLUE_ORB) return 1; @@ -239,1098 +241,1099 @@ public static partial class MultipleForms { if (pokemon.Item == Items.RED_ORB) return (int)Forms.GROUDON_PRIMAL; } #endregion - + //return (int)pokemon.form; return null; } - /*public int getMegaForm(Pokemon pokemon) { - #region XY Mega Evolution -if (pokemon.Species == Pokemons.VENUSAUR) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.VENUSAURITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [80,100,123,80,122,120]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.THICKFAT,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 24; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1555; - return; -} -}); -if (pokemon.Species == Pokemons.CHARIZARD) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.CHARIZARDITEX) return 1; - if (pokemon.Item == Items.CHARIZARDITEY) return 2; - return; -}, -"getMegaName"=>proc{|pokemon| - if (pokemon.form==1) return Game._INTL("Mega Charizard X"); - if (pokemon.form==2) return Game._INTL("Mega Charizard Y"); - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [78,130,111,100,130,85]; - if (pokemon.form==2) return [78,104,78,100,159,115]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.DRAGON; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.TOUGHCLAWS,0]]; - if (pokemon.form==2) return [[Abilities.DROUGHT,0]]; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1105; - if (pokemon.form==2) return 1005; - return; -} -}); + /*public int getMegaForm(IPokemon pokemon) { + #region XY Mega Evolution + if (pokemon.Species == Pokemons.VENUSAUR) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.VENUSAURITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [80,100,123,80,122,120]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.THICKFAT,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 24; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1555; + return; + } + }); -if (pokemon.Species == Pokemons.BLASTOISE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.BLASTOISINITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [79,103,120,78,135,115]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.MEGALAUNCHER,0]]; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1011; - return; -} -}); + if (pokemon.Species == Pokemons.CHARIZARD) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.CHARIZARDITEX) return 1; + if (pokemon.Item == Items.CHARIZARDITEY) return 2; + return; + }, + "getMegaName"=>proc{|pokemon| + if (pokemon.form==1) return Game._INTL("Mega Charizard X"); + if (pokemon.form==2) return Game._INTL("Mega Charizard Y"); + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [78,130,111,100,130,85]; + if (pokemon.form==2) return [78,104,78,100,159,115]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.DRAGON; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.TOUGHCLAWS,0]]; + if (pokemon.form==2) return [[Abilities.DROUGHT,0]]; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1105; + if (pokemon.form==2) return 1005; + return; + } + }); -if (pokemon.Species == Pokemons.ALAKAZAM) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.ALAKAZITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [55,50,65,150,175,95]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.TRACE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 12; - return; -} -}); + if (pokemon.Species == Pokemons.BLASTOISE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.BLASTOISINITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [79,103,120,78,135,115]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.MEGALAUNCHER,0]]; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1011; + return; + } + }); -if (pokemon.Species == Pokemons.GENGAR) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.GENGARITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [60,65,80,130,170,95]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SHADOWTAG,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 14; - return; -} -}); + if (pokemon.Species == Pokemons.ALAKAZAM) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.ALAKAZITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [55,50,65,150,175,95]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.TRACE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 12; + return; + } + }); -if (pokemon.Species == Pokemons.KANGASKHAN) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.KANGASKHANITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [105,125,100,100,60,100]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.PARENTALBOND,0]]; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1000; - return; -} -}); + if (pokemon.Species == Pokemons.GENGAR) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.GENGARITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [60,65,80,130,170,95]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SHADOWTAG,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 14; + return; + } + }); -if (pokemon.Species == Pokemons.PINSIR) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.PINSIRITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [65,155,120,105,65,90]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.FLYING; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.AERILATE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 17; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 590; - return; -} -}); + if (pokemon.Species == Pokemons.KANGASKHAN) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.KANGASKHANITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [105,125,100,100,60,100]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.PARENTALBOND,0]]; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1000; + return; + } + }); -if (pokemon.Species == Pokemons.GYARADOS) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.GYARADOSITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [95,155,109,81,70,130]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.DARK; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.MOLDBREAKER,0]]; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 3050; - return; -} -}); + if (pokemon.Species == Pokemons.PINSIR) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.PINSIRITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [65,155,120,105,65,90]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.FLYING; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.AERILATE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 17; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 590; + return; + } + }); -if (pokemon.Species == Pokemons.AERODACTYL) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.AERODACTYLITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [80,135,85,150,70,95]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.TOUGHCLAWS,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 21; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 790; - return; -} -}); + if (pokemon.Species == Pokemons.GYARADOS) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.GYARADOSITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [95,155,109,81,70,130]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.DARK; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.MOLDBREAKER,0]]; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 3050; + return; + } + }); -if (pokemon.Species == Pokemons.MEWTWO) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.MEWTWONITEX) return 1; - if (pokemon.Item == Items.MEWTWONITEY) return 2; - return; -}, -"getMegaName"=>proc{|pokemon| - if (pokemon.form==1) return Game._INTL("Mega Mewtwo X"); - if (pokemon.form==2) return Game._INTL("Mega Mewtwo Y"); - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [106,190,100,130,154,100]; - if (pokemon.form==2) return [106,150,70,140,194,120]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.FIGHTING; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.STEADFAST,0]]; - if (pokemon.form==2) return [[Abilities.INSOMNIA,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 23; - if (pokemon.form==2) return 15; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1270; - if (pokemon.form==2) return 330; - return; -} -}); + if (pokemon.Species == Pokemons.AERODACTYL) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.AERODACTYLITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [80,135,85,150,70,95]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.TOUGHCLAWS,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 21; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 790; + return; + } + }); -if (pokemon.Species == Pokemons.AMPHAROS) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.AMPHAROSITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [90,95,105,45,165,110]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.DRAGON; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.MOLDBREAKER,0]]; - return; -} -}); + if (pokemon.Species == Pokemons.MEWTWO) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.MEWTWONITEX) return 1; + if (pokemon.Item == Items.MEWTWONITEY) return 2; + return; + }, + "getMegaName"=>proc{|pokemon| + if (pokemon.form==1) return Game._INTL("Mega Mewtwo X"); + if (pokemon.form==2) return Game._INTL("Mega Mewtwo Y"); + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [106,190,100,130,154,100]; + if (pokemon.form==2) return [106,150,70,140,194,120]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.FIGHTING; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.STEADFAST,0]]; + if (pokemon.form==2) return [[Abilities.INSOMNIA,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 23; + if (pokemon.form==2) return 15; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1270; + if (pokemon.form==2) return 330; + return; + } + }); -if (pokemon.Species == Pokemons.SCIZOR) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.SCIZORITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [70,150,140,75,65,100]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.TECHNICIAN,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 20; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1250; - return; -} -}); + if (pokemon.Species == Pokemons.AMPHAROS) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.AMPHAROSITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [90,95,105,45,165,110]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.DRAGON; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.MOLDBREAKER,0]]; + return; + } + }); -if (pokemon.Species == Pokemons.HERACROSS) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.HERACRONITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [80,185,115,75,40,105]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SKILLLINK,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 17; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 625; - return; -} -}); + if (pokemon.Species == Pokemons.SCIZOR) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.SCIZORITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [70,150,140,75,65,100]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.TECHNICIAN,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 20; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1250; + return; + } + }); -if (pokemon.Species == Pokemons.HOUNDOOM) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.HOUNDOOMINITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [75,90,90,115,140,90]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SOLARPOWER,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 19; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 495; - return; -} -}); + if (pokemon.Species == Pokemons.HERACROSS) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.HERACRONITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [80,185,115,75,40,105]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SKILLLINK,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 17; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 625; + return; + } + }); -if (pokemon.Species == Pokemons.TYRANITAR) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.TYRANITARITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [100,164,150,71,95,120]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SANDSTREAM,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 25; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 2550; - return; -} -}); + if (pokemon.Species == Pokemons.HOUNDOOM) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.HOUNDOOMINITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [75,90,90,115,140,90]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SOLARPOWER,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 19; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 495; + return; + } + }); -if (pokemon.Species == Pokemons.BLAZIKEN) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.BLAZIKENITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [80,160,80,100,130,80]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SPEEDBOOST,0]]; - return; -} -}); + if (pokemon.Species == Pokemons.TYRANITAR) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.TYRANITARITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [100,164,150,71,95,120]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SANDSTREAM,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 25; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 2550; + return; + } + }); -if (pokemon.Species == Pokemons.GARDEVOIR) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.GARDEVOIRITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [68,85,65,100,165,135]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.PIXILATE,0]]; - return; -} -}); + if (pokemon.Species == Pokemons.BLAZIKEN) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.BLAZIKENITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [80,160,80,100,130,80]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SPEEDBOOST,0]]; + return; + } + }); -if (pokemon.Species == Pokemons.MAWILE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.MAWILITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [50,105,125,50,55,95]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.HUGEPOWER,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 10; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 235; - return; -} -}); + if (pokemon.Species == Pokemons.GARDEVOIR) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.GARDEVOIRITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [68,85,65,100,165,135]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.PIXILATE,0]]; + return; + } + }); -if (pokemon.Species == Pokemons.AGGRON) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.AGGRONITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [70,140,230,50,60,80]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.STEEL; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.FILTER,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 22; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 3950; - return; -} -}); + if (pokemon.Species == Pokemons.MAWILE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.MAWILITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [50,105,125,50,55,95]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.HUGEPOWER,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 10; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 235; + return; + } + }); -if (pokemon.Species == Pokemons.MEDICHAM) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.MEDICHAMITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [60,100,85,100,80,85]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.PUREPOWER,0]]; - return; -} -}); + if (pokemon.Species == Pokemons.AGGRON) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.AGGRONITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [70,140,230,50,60,80]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.STEEL; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.FILTER,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 22; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 3950; + return; + } + }); -if (pokemon.Species == Pokemons.MANECTRIC) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.MANECTITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [70,75,80,135,135,80]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.INTIMIDATE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 18; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 440; - return; -} -}); + if (pokemon.Species == Pokemons.MEDICHAM) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.MEDICHAMITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [60,100,85,100,80,85]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.PUREPOWER,0]]; + return; + } + }); -if (pokemon.Species == Pokemons.BANETTE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.BANETTTITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [64,165,75,75,93,83]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.PRANKSTER,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 12; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 130; - return; -} -}); + if (pokemon.Species == Pokemons.MANECTRIC) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.MANECTITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [70,75,80,135,135,80]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.INTIMIDATE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 18; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 440; + return; + } + }); -if (pokemon.Species == Pokemons.ABSOL) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.ABSOLITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [65,150,60,115,115,60]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.MAGICBOUNCE,0]]; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 490; - return; -} -}); + if (pokemon.Species == Pokemons.BANETTE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.BANETTTITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [64,165,75,75,93,83]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.PRANKSTER,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 12; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 130; + return; + } + }); -if (pokemon.Species == Pokemons.GARCHOMP) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.GARCHOMPITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [108,170,115,92,120,95]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SANDFORCE,0]]; - return; -} -}); + if (pokemon.Species == Pokemons.ABSOL) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.ABSOLITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [65,150,60,115,115,60]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.MAGICBOUNCE,0]]; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 490; + return; + } + }); -if (pokemon.Species == Pokemons.LUCARIO) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.LUCARIONITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [70,145,88,112,140,70]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.ADAPTABILITY,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 13; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 575; - return; -} -}); + if (pokemon.Species == Pokemons.GARCHOMP) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.GARCHOMPITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [108,170,115,92,120,95]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SANDFORCE,0]]; + return; + } + }); -if (pokemon.Species == Pokemons.ABOMASNOW) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.ABOMASITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [90,132,105,30,132,105]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SNOWWARNING,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 27; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1850; - return; -} -}); - #endregion + if (pokemon.Species == Pokemons.LUCARIO) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.LUCARIONITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [70,145,88,112,140,70]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.ADAPTABILITY,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 13; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 575; + return; + } + }); - #region ORAS Mega Evolution -if (pokemon.Species == Pokemons.BEEDRILL) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.BEEDRILLITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [65,150,40,145,15,80]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.ADAPTABILITY,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 14; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 405; - return; -} -}); + if (pokemon.Species == Pokemons.ABOMASNOW) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.ABOMASITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [90,132,105,30,132,105]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SNOWWARNING,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 27; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1850; + return; + } + }); + #endregion + + #region ORAS Mega Evolution + if (pokemon.Species == Pokemons.BEEDRILL) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.BEEDRILLITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [65,150,40,145,15,80]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.ADAPTABILITY,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 14; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 405; + return; + } + }); -if (pokemon.Species == Pokemons.PIDGEOT) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.PIDGEOTITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [83,80,80,121,135,80]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.NOGUARD,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 22; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 505; - return; -} -}); + if (pokemon.Species == Pokemons.PIDGEOT) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.PIDGEOTITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [83,80,80,121,135,80]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.NOGUARD,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 22; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 505; + return; + } + }); -if (pokemon.Species == Pokemons.SLOWBRO) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.SLOWBRONITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [95,75,180,30,130,80]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SHELLARMOR,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 20; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1200; - return; -} -}); + if (pokemon.Species == Pokemons.SLOWBRO) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.SLOWBRONITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [95,75,180,30,130,80]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SHELLARMOR,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 20; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1200; + return; + } + }); -if (pokemon.Species == Pokemons.STEELIX) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.STEELIXITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [75,125,230,30,55,95]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SANDFORCE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 105; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 7400; - return; -} -}); + if (pokemon.Species == Pokemons.STEELIX) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.STEELIXITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [75,125,230,30,55,95]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SANDFORCE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 105; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 7400; + return; + } + }); -if (pokemon.Species == Pokemons.SCEPTILE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.SCEPTILITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [70,110,75,145,145,85]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.DRAGON; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.LIGHTNINGROD,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 19; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 552; - return; -} -}); + if (pokemon.Species == Pokemons.SCEPTILE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.SCEPTILITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [70,110,75,145,145,85]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.DRAGON; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.LIGHTNINGROD,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 19; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 552; + return; + } + }); -if (pokemon.Species == Pokemons.SWAMPERT) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.SWAMPERTITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [100,150,110,70,95,110]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SWIFTSWIM,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 19; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1020; - return; -} -}); + if (pokemon.Species == Pokemons.SWAMPERT) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.SWAMPERTITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [100,150,110,70,95,110]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SWIFTSWIM,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 19; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1020; + return; + } + }); -if (pokemon.Species == Pokemons.SABLEYE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.SABLENITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [50,85,125,20,85,115]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.MAGICBOUNCE,0]]; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1610; - return; -} -}); + if (pokemon.Species == Pokemons.SABLEYE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.SABLENITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [50,85,125,20,85,115]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.MAGICBOUNCE,0]]; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1610; + return; + } + }); -if (pokemon.Species == Pokemons.SHARPEDO) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.SHARPEDONITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [70,140,70,105,110,65]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.STRONGJAW,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 25; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1303; - return; -} -}); + if (pokemon.Species == Pokemons.SHARPEDO) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.SHARPEDONITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [70,140,70,105,110,65]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.STRONGJAW,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 25; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1303; + return; + } + }); -if (pokemon.Species == Pokemons.CAMERUPT) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.CAMERUPTITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [70,120,100,20,145,105]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SHEERFORCE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 25; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 3205; - return; -} -}); + if (pokemon.Species == Pokemons.CAMERUPT) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.CAMERUPTITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [70,120,100,20,145,105]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SHEERFORCE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 25; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 3205; + return; + } + }); -if (pokemon.Species == Pokemons.ALTARIA) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.ALTARIANITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [75,110,110,80,110,105]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.FAIRY; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.PIXILATE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 15; - return; -} -}); + if (pokemon.Species == Pokemons.ALTARIA) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.ALTARIANITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [75,110,110,80,110,105]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.FAIRY; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.PIXILATE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 15; + return; + } + }); -if (pokemon.Species == Pokemons.GLALIE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.GLALITITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [80,120,80,100,120,80]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.REFRIGERATE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 21; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 3502; - return; -} -}); + if (pokemon.Species == Pokemons.GLALIE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.GLALITITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [80,120,80,100,120,80]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.REFRIGERATE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 21; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 3502; + return; + } + }); -if (pokemon.Species == Pokemons.SALAMENCE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.SALAMENCITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [95,145,130,120,120,90]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.AERILATE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 18; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 1126; - return; -} -}); + if (pokemon.Species == Pokemons.SALAMENCE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.SALAMENCITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [95,145,130,120,120,90]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.AERILATE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 18; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 1126; + return; + } + }); -if (pokemon.Species == Pokemons.METAGROSS) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.METAGROSSITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [80,145,150,110,105,110]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.TOUGHCLAWS,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 25; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 9429; - return; -} -}); + if (pokemon.Species == Pokemons.METAGROSS) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.METAGROSSITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [80,145,150,110,105,110]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.TOUGHCLAWS,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 25; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 9429; + return; + } + }); -if (pokemon.Species == Pokemons.LATIAS) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.LATIASITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [80,100,120,110,140,150]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 18; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 520; - return; -} -}); + if (pokemon.Species == Pokemons.LATIAS) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.LATIASITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [80,100,120,110,140,150]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 18; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 520; + return; + } + }); -if (pokemon.Species == Pokemons.LATIOS) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.LATIOSITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [80,130,100,110,160,120]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 23; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 700; - return; -} -}); + if (pokemon.Species == Pokemons.LATIOS) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.LATIOSITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [80,130,100,110,160,120]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 23; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 700; + return; + } + }); -if (pokemon.Species == Pokemons.RAYQUAZA) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.hasMove?(:DRAGONASCENT)) return 1; - return; -}, -"megaMessage"=>proc{|pokemon| - return 1; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [105,180,100,115,180,100]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.DELTASTREAM,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 108; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 3920; - return; -} -}); + if (pokemon.Species == Pokemons.RAYQUAZA) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.hasMove?(:DRAGONASCENT)) return 1; + return; + }, + "megaMessage"=>proc{|pokemon| + return 1; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [105,180,100,115,180,100]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.DELTASTREAM,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 108; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 3920; + return; + } + }); -if (pokemon.Species == Pokemons.LOPUNNY) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.LOPUNNITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [65,136,94,135,54,96]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.FIGHTING; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.SCRAPPY,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 13; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 283; - return; -} -}); + if (pokemon.Species == Pokemons.LOPUNNY) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.LOPUNNITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [65,136,94,135,54,96]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.FIGHTING; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.SCRAPPY,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 13; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 283; + return; + } + }); -if (pokemon.Species == Pokemons.GALLADE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.GALLADITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [68,165,95,110,65,115]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.INNERFOCUS,0]]; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 564; - return; -} -}); + if (pokemon.Species == Pokemons.GALLADE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.GALLADITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [68,165,95,110,65,115]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.INNERFOCUS,0]]; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 564; + return; + } + }); -if (pokemon.Species == Pokemons.AUDINO) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.AUDINITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [103,60,126,50,80,126]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.FAIRY; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.HEALER,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 15; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 320; - return; -} -}); + if (pokemon.Species == Pokemons.AUDINO) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.AUDINITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [103,60,126,50,80,126]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.FAIRY; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.HEALER,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 15; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 320; + return; + } + }); -if (pokemon.Species == Pokemons.DIANCIE) { -"getMegaForm"=>proc{|pokemon| - if (pokemon.Item == Items.DIANCITE) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [50,160,110,110,160,110]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.MAGICBOUNCE,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 11; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 278; - return; -} -}); - #endregion + if (pokemon.Species == Pokemons.DIANCIE) { + "getMegaForm"=>proc{|pokemon| + if (pokemon.Item == Items.DIANCITE) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [50,160,110,110,160,110]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.MAGICBOUNCE,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 11; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 278; + return; + } + }); + #endregion - #region Primal Reversion -if (pokemon.Species == Pokemons.KYOGRE) { -"getPrimalForm"=>proc{|pokemon| - if (pokemon.Item == Items.BLUEORB) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [100,150,90,90,180,160]; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.PRIMORDIALSEA,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 98; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 4300; - return; -} -}); + #region Primal Reversion + if (pokemon.Species == Pokemons.KYOGRE) { + "getPrimalForm"=>proc{|pokemon| + if (pokemon.Item == Items.BLUEORB) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [100,150,90,90,180,160]; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.PRIMORDIALSEA,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 98; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 4300; + return; + } + }); -if (pokemon.Species == Pokemons.GROUDON) { -"getPrimalForm"=>proc{|pokemon| - if (pokemon.Item == Items.REDORB) return 1; - return; -}, -"getBaseStats"=>proc{|pokemon| - if (pokemon.form==1) return [100,180,160,90,150,90]; - return; -}, -"type2"=>proc{|pokemon| - if (pokemon.form==1) return Types.FIRE; - return; -}, -"getAbilityList"=>proc{|pokemon| - if (pokemon.form==1) return [[Abilities.DESOLATELAND,0]]; - return; -}, -"height"=>proc{|pokemon| - if (pokemon.form==1) return 50; - return; -}, -"weight"=>proc{|pokemon| - if (pokemon.form==1) return 9997; - return; -} -}) - #endregion - }*/ + if (pokemon.Species == Pokemons.GROUDON) { + "getPrimalForm"=>proc{|pokemon| + if (pokemon.Item == Items.REDORB) return 1; + return; + }, + "getBaseStats"=>proc{|pokemon| + if (pokemon.form==1) return [100,180,160,90,150,90]; + return; + }, + "type2"=>proc{|pokemon| + if (pokemon.form==1) return Types.FIRE; + return; + }, + "getAbilityList"=>proc{|pokemon| + if (pokemon.form==1) return [[Abilities.DESOLATELAND,0]]; + return; + }, + "height"=>proc{|pokemon| + if (pokemon.form==1) return 50; + return; + }, + "weight"=>proc{|pokemon| + if (pokemon.form==1) return 9997; + return; + } + }) + #endregion + }*/ } } \ No newline at end of file diff --git a/PokemonUnity.Application/Monster/Pokemon/Pokemon.Shadow.cs b/PokemonUnity.Application/Monster/Pokemon/Pokemon.Shadow.cs index cf398fdba..0fac47e7f 100644 --- a/PokemonUnity.Application/Monster/Pokemon/Pokemon.Shadow.cs +++ b/PokemonUnity.Application/Monster/Pokemon/Pokemon.Shadow.cs @@ -27,42 +27,42 @@ public partial class Game : IGameShadowPokemon //event EventHandler IGameShadowPokemon.OnStartBattle { add { OnStartBattle += value; } remove { OnStartBattle -= value; } } //event Action IGameShadowPokemon.OnEndBattle { add { OnEndBattle += value; } remove { OnEndBattle -= value; } } - public void pbPurify(IPokemonShadowPokemon pkmn, IPurifyChamberScene scene) + public void Purify(IPokemonShadowPokemon pkmn, IPurifyChamberScene scene) { if (pkmn.heartgauge == 0 && pkmn.shadow && pkmn is IPokemon pokemon) { if (pkmn.savedev == null && pkmn.savedexp == 0) return; pkmn.shadow = false; pokemon.giveRibbon(Ribbons.NATIONAL); - scene.pbDisplay(Game._INTL("{1} opened the door to its heart!", pokemon.Name)); + scene.Display(Game._INTL("{1} opened the door to its heart!", pokemon.Name)); Moves[] oldmoves = new Moves[4]; //for (int i = 0; i < 4; i++) { oldmoves.Add(pokemon.moves[i].id); } for (int i = 0; i < 4; i++) { oldmoves[i] = pokemon.moves[i].id; } - pkmn.pbUpdateShadowMoves(); + pkmn.UpdateShadowMoves(); for (int i = 0; i < 4; i++) { if (pokemon.moves[i].id != 0 && pokemon.moves[i].id != oldmoves[i]) { - scene.pbDisplay(Game._INTL("{1} regained the move \n{2}!", + scene.Display(Game._INTL("{1} regained the move \n{2}!", pokemon.Name, Game._INTL(pokemon.moves[i].id.ToString(TextScripts.Name)))); } } - pokemon.pbRecordFirstMoves(); + pokemon.RecordFirstMoves(); if (pkmn.savedev != null) { for (int i = 0; i < 6; i++) { - pbApplyEVGain(pokemon, (Stats)i, pkmn.savedev[i]); + ApplyEVGain(pokemon, (Stats)i, pkmn.savedev[i]); } pkmn.savedev = null; } - int newexp = Experience.pbAddExperience(pokemon.Exp, pkmn.savedexp, pokemon.GrowthRate); + int newexp = Experience.AddExperience(pokemon.Exp, pkmn.savedexp, pokemon.GrowthRate); pkmn.savedexp = 0; int newlevel = Experience.GetLevelFromExperience(pokemon.GrowthRate, newexp); int curlevel = pokemon.Level; if (newexp != pokemon.Exp) { - scene.pbDisplay(Game._INTL("{1} regained {2} Exp. Points!", pokemon.Name, newexp - pokemon.Exp)); + scene.Display(Game._INTL("{1} regained {2} Exp. Points!", pokemon.Name, newexp - pokemon.Exp)); } if (newlevel == curlevel) { @@ -71,14 +71,14 @@ public void pbPurify(IPokemonShadowPokemon pkmn, IPurifyChamberScene scene) } else { - //Game.pbChangeLevel(pokemon, newlevel, scene); // for convenience + //Game.ChangeLevel(pokemon, newlevel, scene); // for convenience pokemon.Exp = newexp; } string speciesname = Game._INTL(pokemon.Species.ToString(TextScripts.Name)); - if (scene.pbConfirm(Game._INTL("Would you like to give a nickname to {1}?", speciesname))) + if (scene.Confirm(Game._INTL("Would you like to give a nickname to {1}?", speciesname))) { string helptext = Game._INTL("{1}'s nickname?", speciesname); - string newname = this is IGameTextEntry t ? t.pbEnterPokemonName(helptext, 0, 10, "", pokemon) : speciesname; + string newname = this is IGameTextEntry t ? t.EnterPokemonName(helptext, 0, 10, "", pokemon) : speciesname; //if (newname != "") pokemon.Name = newname; if (newname != "") (pokemon as Pokemon).SetNickname(newname); } @@ -86,19 +86,19 @@ public void pbPurify(IPokemonShadowPokemon pkmn, IPurifyChamberScene scene) } #region Use with Relic Stone (Move to separate class?) - public void pbRelicStoneScreen(IPokemonShadowPokemon pkmn) + public void RelicStoneScreen(IPokemonShadowPokemon pkmn) { //bool retval = true; - pbFadeOutIn(99999, block: () => { + FadeOutIn(99999, block: () => { IRelicStoneScene scene = Scenes.RelicStone; //new RelicStoneScene(); IRelicStoneScreen screen = Screens.RelicStone.initialize(scene); //new RelicStoneScreen(scene); - screen.pbStartScreen(pkmn); //retval = - screen.pbStartScreen(pkmn); + screen.StartScreen(pkmn); //retval = + screen.StartScreen(pkmn); }); //return retval; } - public bool pbIsPurifiable(IPokemonShadowPokemon pkmn) + public bool IsPurifiable(IPokemonShadowPokemon pkmn) { if (!(pkmn as IPokemon).IsNotNullOrNone()) return false; if (pkmn.isShadow && pkmn.heartgauge == 0) @@ -109,68 +109,68 @@ public bool pbIsPurifiable(IPokemonShadowPokemon pkmn) return false; } - public bool pbHasPurifiableInParty() + public bool HasPurifiableInParty() { - return Trainer.party.Any(item => pbIsPurifiable(item as IPokemonShadowPokemon)); + return Trainer.party.Any(item => IsPurifiable(item as IPokemonShadowPokemon)); } - public void pbRelicStone() + public void RelicStone() { - if (pbHasPurifiableInParty()) + if (HasPurifiableInParty()) { - (this as IGameMessage).pbMessage(Game._INTL("There's a Pokemon that may open the door to its heart!")); + (this as IGameMessage).Message(Game._INTL("There's a Pokemon that may open the door to its heart!")); // Choose a purifiable Pokemon - //pbChoosePokemon(1, 2, proc {| poke | - pbChoosePokemon(1, 2, ableProc: poke => //Trainer.party.Select(poke => + //ChoosePokemon(1, 2, proc {| poke | + ChoosePokemon(1, 2, ableProc: poke => //Trainer.party.Select(poke => !poke.isEgg && poke.HP > 0 && poke is IPokemonShadowPokemon p && p.isShadow && p.heartgauge == 0 ); if ((int)GameVariables[1] >= 0) { - pbRelicStoneScreen(Trainer.party[(int)GameVariables[1]] as IPokemonShadowPokemon); + RelicStoneScreen(Trainer.party[(int)GameVariables[1]] as IPokemonShadowPokemon); } } else { - (this as IGameMessage).pbMessage(_INTL("You have no Pokemon that can be purified.")); + (this as IGameMessage).Message(_INTL("You have no Pokemon that can be purified.")); } } - public bool pbRaiseHappinessAndReduceHeart(IPokemonShadowPokemon pokemon,IScene scene,int amount) + public bool RaiseHappinessAndReduceHeart(IPokemonShadowPokemon pokemon,IScene scene,int amount) { if (!pokemon.isShadow) { - scene.pbDisplay(_INTL("It won't have any effect.")); + scene.Display(_INTL("It won't have any effect.")); return false; } if ((pokemon as IPokemon).Happiness == 255 && pokemon.heartgauge == 0) { - scene.pbDisplay(_INTL("It won't have any effect.")); + scene.Display(_INTL("It won't have any effect.")); return false; } else if ((pokemon as IPokemon).Happiness == 255) { pokemon.adjustHeart(-amount); - scene.pbDisplay(Game._INTL("{1} adores you!\nThe door to its heart opened a little.", (pokemon as IPokemon).Name)); - pbReadyToPurify(pokemon); + scene.Display(Game._INTL("{1} adores you!\nThe door to its heart opened a little.", (pokemon as IPokemon).Name)); + ReadyToPurify(pokemon); return true; } else if (pokemon.heartgauge == 0) { (pokemon as Pokemon).ChangeHappiness(HappinessMethods.VITAMIN); - scene.pbDisplay(_INTL("{1} turned friendly.", (pokemon as IPokemon).Name)); + scene.Display(_INTL("{1} turned friendly.", (pokemon as IPokemon).Name)); return true; } else { (pokemon as Pokemon).ChangeHappiness(HappinessMethods.VITAMIN); pokemon.adjustHeart(-amount); - scene.pbDisplay(_INTL("{1} turned friendly.\nThe door to its heart opened a little.", (pokemon as IPokemon).Name)); - pbReadyToPurify(pokemon); + scene.Display(_INTL("{1} turned friendly.\nThe door to its heart opened a little.", (pokemon as IPokemon).Name)); + ReadyToPurify(pokemon); return true; } } - public void pbApplyEVGain(IPokemon pokemon,Stats ev,int evgain) + public void ApplyEVGain(IPokemon pokemon,Stats ev,int evgain) { int totalev = 0; for (int i = 0; i < 6; i++) @@ -192,7 +192,7 @@ public void pbApplyEVGain(IPokemon pokemon,Stats ev,int evgain) } } - public void pbReplaceMoves(IPokemon pokemon,Moves move1,Moves move2= 0,Moves move3= 0,Moves move4= 0) + public void ReplaceMoves(IPokemon pokemon,Moves move1,Moves move2= 0,Moves move3= 0,Moves move4= 0) { if (!pokemon.IsNotNullOrNone()) return; //new Moves[] { move1, move2, move3, move4 }.each{|move| @@ -227,13 +227,13 @@ public void pbReplaceMoves(IPokemon pokemon,Moves move1,Moves move2= 0,Moves mov } #endregion - public void pbReadyToPurify(IPokemonShadowPokemon pokemon) + public void ReadyToPurify(IPokemonShadowPokemon pokemon) { if (!(pokemon as IPokemon).IsNotNullOrNone() || !pokemon.isShadow) return; - pokemon.pbUpdateShadowMoves(); + pokemon.UpdateShadowMoves(); if (pokemon.heartgauge == 0) { - (this as IGameMessage).pbMessage(Game._INTL("{1} can now be purified!", (pokemon as IPokemon).Name)); + (this as IGameMessage).Message(Game._INTL("{1} can now be purified!", (pokemon as IPokemon).Name)); } } @@ -241,7 +241,7 @@ public void pbReadyToPurify(IPokemonShadowPokemon pokemon) foreach (Pokemon pkmn in Trainer.party) { if (pkmn.HP>0 && !pkmn.isEgg && pkmn.heartgauge>0) { pkmn.adjustHeart(-1); - if (pkmn.heartgauge==0) pbReadyToPurify(pkmn); + if (pkmn.heartgauge==0) ReadyToPurify(pkmn); } } if ((Global.purifyChamber!- null)) { //rescue null @@ -251,7 +251,7 @@ public void pbReadyToPurify(IPokemonShadowPokemon pokemon) Pokemon pkmn=Global.daycare[i][0]; if (!pkmn) continue; pkmn.adjustHeart(-1); - pkmn.pbUpdateShadowMoves(); + pkmn.UpdateShadowMoves(); } }*/ } @@ -283,7 +283,7 @@ public int Exp { return this.Experience.Current; } - set + set { if (this is IPokemonShadowPokemon s && s.isShadow) { @@ -308,19 +308,19 @@ public int HP { this.hp = value < 0 ? 0 : (value > this.TotalHP ? TotalHP : value); //this.hp = (this.HP + value).Clamp(0, this.TotalHP); - if (isFainted()) - { - this.Status = Status.FAINT; - StatusCount = 0; + if (isFainted()) + { + this.Status = Status.FAINT; + StatusCount = 0; ChangeHappiness(HappinessMethods.FAINT); - @hypermode = false; + @hypermode = false; } } } public const int HEARTGAUGESIZE = 3840; - int IPokemonShadowPokemon.exp { get; set; } - int IPokemonShadowPokemon.hp { get; set; } + int IPokemonShadowPokemon.exp { get { return Exp; } set { Exp = value; } } + int IPokemonShadowPokemon.hp { get { return this.hp; } set { HP = value; } } #endregion #region Shadow @@ -338,9 +338,9 @@ public int HP public bool IsAbleToPurify { get { return ShadowLevel.HasValue && ShadowLevel.Value == 0 && HeartGuageSize != 0; } } public bool IsPurified { get { return (ShadowLevel.HasValue && ShadowLevel.Value == -1) || HeartGuageSize == 0; } } /// - /// Shadow Pokémon don't have a set Nature or a set gender, but once encountered, the personality value, - /// Nature and IVs are saved to the memory for the Shadow Monitor to be able to keep track of their exact status and location. - /// This means that once a Shadow Pokémon is encountered for the first time, its Nature, IVs and gender will remain the same for the rest of the game, + /// Shadow Pokémon don't have a set Nature or a set gender, but once encountered, the personality value, + /// Nature and IVs are saved to the memory for the Shadow Monitor to be able to keep track of their exact status and location. + /// This means that once a Shadow Pokémon is encountered for the first time, its Nature, IVs and gender will remain the same for the rest of the game, /// even if the player fails to capture it or is forced to re-battle it later. /// public bool isShadow @@ -380,10 +380,10 @@ public void makeShadow() { // Save old moves this.shadowmoves[4 + i] = this.moves[i].id; } - pbUpdateShadowMoves(); + UpdateShadowMoves(); } - public void pbUpdateShadowMoves(bool allmoves = false) + public void UpdateShadowMoves(bool allmoves = false) { if (@shadowmoves != null) { @@ -391,7 +391,7 @@ public void pbUpdateShadowMoves(bool allmoves = false) if (!@shadow) { // No shadow moves - if (Game.GameData is IGameShadowPokemon g) g.pbReplaceMoves(this, m[4], m[5], m[6], m[7]); + if (Game.GameData is IGameShadowPokemon g) g.ReplaceMoves(this, m[4], m[5], m[6], m[7]); @shadowmoves = null; } else @@ -411,7 +411,7 @@ public void pbUpdateShadowMoves(bool allmoves = false) moves.Add(m[i + 4]); relearned += 1; } } - if (Game.GameData is IGameShadowPokemon g) g.pbReplaceMoves(this, moves[0] != null ? moves[0] : Moves.NONE, moves[1] != null ? moves[1] : Moves.NONE, moves[2] != null ? moves[2] : Moves.NONE, moves[3] != null ? moves[3] : Moves.NONE); + if (Game.GameData is IGameShadowPokemon g) g.ReplaceMoves(this, moves[0] != null ? moves[0] : Moves.NONE, moves[1] != null ? moves[1] : Moves.NONE, moves[2] != null ? moves[2] : Moves.NONE, moves[3] != null ? moves[3] : Moves.NONE); } } } diff --git a/PokemonUnity.Application/Monster/Pokemon/Pokemon.cs b/PokemonUnity.Application/Monster/Pokemon/Pokemon.cs index a5adc27e1..1b09fe589 100644 --- a/PokemonUnity.Application/Monster/Pokemon/Pokemon.cs +++ b/PokemonUnity.Application/Monster/Pokemon/Pokemon.cs @@ -16,7 +16,7 @@ namespace PokemonUnity.Monster { - public partial class Pokemon : IPokemon, IEquatable, IEqualityComparer //ToDo: ICloneable? + public partial class Pokemon : IPokemon, IEquatable, IEqualityComparer, ICloneable { #region Variables private Pokemons pokemons; @@ -126,7 +126,7 @@ public virtual int SPE /// public int Happiness { get; private set; } /// - /// Status problem (PBStatuses) + /// Status problem (Statuses) /// public Status Status { get; set; } /// @@ -150,7 +150,7 @@ public int EggSteps if (eggSteps > 0 && value == 0) { this.Level = Core.EGGINITIALLEVEL; - //if hatching, generate new moves to include egg moves + //if hatching, generate new moves to include egg moves //and everything from current level to below this.GenerateMoveset(egg: true); if (OT != null) @@ -161,7 +161,7 @@ public int EggSteps } eggSteps = //if egg hatch counter is going up in positive count - //eggSteps + + //eggSteps + value > eggSteps ? //return the same value eggSteps @@ -171,7 +171,7 @@ public int EggSteps } private int eggSteps; /// - /// Moves (PBMove) + /// Moves (Move) /// public IMove[] moves { get; private set; } /// @@ -217,7 +217,7 @@ public Pokemon() PersonalId |= Core.Rand.Next(256) << 24; Ability = Abilities.NONE; Nature = (Natures)(Core.Rand.Next(Kernal.NatureData.Count));//Kernal.NatureData.Keys.ToArray()[Core.Rand.Next(Kernal.NatureData.Keys.Count) + 1]; - shinyFlag = IsShiny; //isShiny(); + shinyFlag = IsShiny; //isShiny(); //Gender = isMale(); //IV = new int[] { 10, 10, 10, 10, 10, 10 }; IV = new int[] { (int)(Core.Rand.Next(33)), (int)(Core.Rand.Next(33)), (int)(Core.Rand.Next(33)), (int)(Core.Rand.Next(33)), (int)(Core.Rand.Next(33)), (int)(Core.Rand.Next(33)) }; @@ -232,23 +232,23 @@ public Pokemon() StatusCount = 0; ballUsed = Items.NONE; Item = Items.NONE; - ribbons = new List(); - //calcStats(); - //if (Game.GameData.GameMap != null) - //{ - // @ObtainMap = (Locations)Game.GameData.GameMap.map_id; - // //@ObtainText = null; - // @ObtainLevel = Level; - //} - //else - //{ - // @ObtainMap = 0; - // //@ObtainText = null; - // @ObtainLevel = Level; - //} + ribbons = new HashSet(); + calcStats(); + if (Game.GameData.GameMap != null) + { + @ObtainMap = (Locations)Game.GameData.GameMap.map_id; + //@ObtainText = null; + @ObtainLevel = Level; + } + else + { + @ObtainMap = 0; + //@ObtainText = null; + @ObtainLevel = Level; + } @ObtainedMode = ObtainedMethod.MET; // Met //if (Game.GameData.GameSwitches != null && Game.GameData.GameSwitches[Core.FATEFUL_ENCOUNTER_SWITCH]) - if (Core.FATEFUL_ENCOUNTER_SWITCH) + if (Core.FATEFUL_ENCOUNTER_SWITCH) @ObtainedMode = ObtainedMethod.FATEFUL_ENCOUNTER; } @@ -261,8 +261,8 @@ public Pokemon(Pokemons pokemon) : this() //_base = PokemonData.GetPokemon(pokemon); pokemons = pokemon; eggSteps = 0; - Ability = abilityFlag; - gender = getGender(); + assignAbility(); //abilityFlag = getAbility(); + genderFlag = getGender(); if (Core.Rand.Next(65356) < Core.POKERUSCHANCE) GivePokerus();//pokerus Heal(); //if (pokemons == Pokemons.UNOWN) @@ -274,8 +274,7 @@ public Pokemon(Pokemons pokemon) : this() //this.form = f; SetForm(f.Value); this.resetMoves(); - //} else - //{ + //} else { // SetForm((Forms)pokemons); // this.resetMoves(); } @@ -288,24 +287,24 @@ public Pokemon(Pokemons pokemon) : this() } /// - /// Instializes a new Pokemon, with values at default. - /// Pokemon is created at the lowest possible level, + /// Initializes a new Pokemon, with values at default. + /// Pokemon is created at the lowest possible level, /// with all stats randomly generated/assigned (new roll) /// /// Pokemon being generated - /// Whether or not this level + /// Whether or not this level /// pokemon is hatched. public Pokemon(Pokemons pkmn, bool isEgg) : this(pkmn) { if (isEgg) eggSteps = _base.HatchTime; } /// - /// Instializes a new Pokemon, with values at default. - /// Pokemon is created at the level assigned in parameter, + /// Initializes a new Pokemon, with values at default. + /// Pokemon is created at the level assigned in parameter, /// with all stats randomly generated/assigned (new roll) /// /// Pokemon being generated /// Level this pokemon start ats - /// Whether or not this pokemon is hatched; - /// if pokemon is false, it loses benefits + /// Whether or not this pokemon is hatched; + /// if pokemon is false, it loses benefits /// of learning egg moves public Pokemon(Pokemons pkmn, byte level, bool isEgg = false) : this(pkmn, isEgg) { Level = level; GenerateMoveset(level, isEgg); Heal(); } @@ -349,13 +348,13 @@ public Pokemon(Pokemons pkmn, byte level, Move[] moves, int ivs = 0, Items pokeb } /// - /// Initializes a new Pokemon, with values at default. - /// Pokemon is created at the level assigned in parameter, + /// Initializes a new Pokemon, with values at default. + /// Pokemon is created at the level assigned in parameter, /// with all stats randomly generated/assigned (new roll). /// /// Pokemon being generated - /// Assigns original - /// of this pokemon. + /// Assigns original + /// of this pokemon. /// Affects ability to command pokemon, if player is not OT /// Level this pokemon starts at /// @@ -427,7 +426,7 @@ public Pokemon(Pokemons TPSPECIES = Pokemons.NONE, } /// - /// This is used SPECIFICALLY for regenerating a pokemon from + /// This is used SPECIFICALLY for regenerating a pokemon from /// /// /// @@ -465,7 +464,7 @@ public Pokemon(Pokemons species, ITrainer original, string nickName, int form, Abilities ability, Natures nature, - bool isShiny, bool? genderflag, + bool isShiny, bool? gender, int[] pokerus, int heartSize, //bool ishyper, int? shadowLevel, int currentHp, Items item, @@ -495,7 +494,7 @@ public Pokemon(Pokemons species, PersonalId = personalId; shinyFlag = isShiny; - gender = genderflag; + genderFlag = gender; this.pokerus = pokerus; @@ -511,9 +510,9 @@ public Pokemon(Pokemons species, //Experience.AddExperience(currentExp - Experience.Current); Exp = currentExp; - //Current Hp cant be greater than Max hp, + //Current Hp cant be greater than Max hp, //Level up pokemon first using exp points - HP = currentHp; + HP = currentHp; Item = item; Happiness = happiness; @@ -524,16 +523,16 @@ public Pokemon(Pokemons species, EggSteps = eggSteps; this.ballUsed = ballUsed; - if (Kernal.ItemData[item].IsLetter) + if (ItemData.IsLetter(item)) { this.mail = new Inventory.Mail((Items)item); - this.mail.Message = mail; + this.mail.message = mail; } this.moves = moves; firstmoves = new List(history); - this.ribbons = ribbons.ToList(); + this.ribbons = new HashSet(ribbons); Markings = markings; ObtainedMode = obtainedMethod; @@ -555,7 +554,7 @@ public Pokemon(Pokemon pkmn, Items pokeball, ObtainedMethod obtain = ObtainedMet original: Game.GameData.Trainer, nickName: nickname, form: pkmn.FormId, ability: pkmn.Ability, nature: pkmn.Nature, - isShiny: pkmn.IsShiny, genderflag: pkmn.Gender, + isShiny: pkmn.IsShiny, gender: pkmn.Gender, pokerus: pkmn.Pokerus, heartSize: pkmn.HeartGuageSize, //ishyper: pkmn.isHyperMode, shadowLevel: pkmn.ShadowLevel, currentHp: pkmn.HP, item: pkmn.Item, iv: pkmn.IV, ev: pkmn.EV, @@ -572,7 +571,7 @@ public Pokemon(Pokemon pkmn, Items pokeball, ObtainedMethod obtain = ObtainedMet } #endregion -#pragma warning disable 0162 //Warning CS0162 Unreachable code detected +#pragma warning disable 0162 //Warning CS0162 Unreachable code detected #region Ownership, obtained information /// /// Manner Obtained: @@ -595,6 +594,7 @@ public enum ObtainedMethod FATEFUL_ENCOUNTER = 4 } //ToDo: Nintendo has variable for location where egg hatched + public Locations HatchedMap { get; private set; } /// /// Map where obtained (as egg, or in wild). /// Return no results if Traded/Gift... @@ -715,6 +715,7 @@ public DateTimeOffset? TimeEggHatched } else //throw new Exception("Trainer did not acquire Pokemon as an egg."); + GameDebug.LogError("Trainer did not acquire Pokemon as an egg."); return null; } //set { this.hatchedWhen = value; } @@ -725,28 +726,32 @@ public DateTimeOffset? TimeEggHatched /// /// The Pokéball this Pokémon got captured in. /// The capture method. - public Pokemon SetCatchInfos(ITrainer Trainer, Items Ball = Items.POKE_BALL, ObtainedMethod Method = ObtainedMethod.MET) + public Pokemon SetCatchInfos(ITrainer trainer, Items ball = Items.POKE_BALL, ObtainedMethod method = ObtainedMethod.MET) { //ToDo: If OT != null, dont change it... Pokemon is already captured... Unless Pokeball.SnagBall? - //this.obtainMap = Game.GameData.Level.MapName; + //if not npc? + if(Game.GameData.GameMap != null) + this.ObtainMap = (Locations)Game.GameData.GameMap.map_id; //todo: remove locations enum from code? + else + this.ObtainMap = 0; //this.CatchTrainerName = Game.GameData.Player.Name; //this.OT = Game.GameData.Player.Trainer; - this.OT = Trainer; + this.OT = trainer; this.ObtainLevel = Level; - this.ObtainedMode = Method; + this.ObtainedMode = method; this.obtainWhen = DateTimeOffset.UtcNow; - if (Kernal.ItemData[Ball].Pocket == ItemPockets.POKEBALL) - this.ballUsed = Ball; + if (Kernal.ItemData[ball].Pocket == ItemPockets.POKEBALL) + this.ballUsed = ball; else this.ballUsed = Items.POKE_BALL; - pbRecordFirstMoves(); + RecordFirstMoves(); return this; } #endregion #region Level /// - /// Current experience points. + /// Current experience points. /// Total accumulated - Level minimum /// /// @@ -761,7 +766,7 @@ private int _Exp //{ // return this.Experience.Current; //} - set + set { if (value < 0) //|| value > this.Experience.GetMaxExperience(this.GrowthRate) GameDebug.LogError(string.Format("The experience number {0} is invalid", value)); @@ -784,7 +789,7 @@ private set { if (value < 1 || value > Core.MAXIMUMLEVEL) GameDebug.LogError(string.Format("The level number {0} is invalid", value)); - if (value > this.Level) { + if (value > this.Level) { GameDebug.Log(string.Format("Pokemon level manually changed to {0}", value)); //this.Experience.AddExperience(Experience.GetStartExperience(this.GrowthRate, value) - this.Experience.Total); Exp = Experience.GetStartExperience(this.GrowthRate, value); @@ -837,7 +842,7 @@ public int baseExp public void AddSteps(byte steps = 1) { int i = EggSteps - steps; - //Set EggSteps to 0 first, to trigger the hatching process... + //Set EggSteps to 0 first, to trigger the hatching process... EggSteps = i < 0 ? 0 : i; //then if we want to continue beyond 0 and into negative values, we may continue... if (i < 0) EggSteps = i; @@ -1106,14 +1111,14 @@ public Pokemons[] CanEvolveAfter(EvolutionMethod method, Types type) // int oldspatk = SPA; // int oldspdef = SPD; // pokemons = evolveTo; - // + // // if(scene != null) // { // calcStats(); //Refresh HP - // scene.pbRefresh(); + // scene.Refresh(); // //ToDo: sort out issues here - // Game.GameData.pbDisplayPaused(Game._INTL("{1} evolved to {2}!", Name, Game._INTL(Species.ToString(TextScripts.Name)))); - // scene.pbLevelUp(this, null,//battler, + // Game.GameData.DisplayPaused(Game._INTL("{1} evolved to {2}!", Name, Game._INTL(Species.ToString(TextScripts.Name)))); + // scene.LevelUp(this, null,//battler, // oldtotalhp, oldattack, olddefense, oldspeed, oldspatk, oldspdef); // } //} @@ -1133,12 +1138,12 @@ public Pokemons[] CanEvolveAfter(EvolutionMethod method, Types type) /// Should consider gender as byte? bool takes up same amount of space /// /// isMale; null = genderless? - public virtual bool? Gender { get { return gender; } } + public virtual bool? Gender { get { return genderFlag; } } /// - /// Helper function that determines whether the input values would make a female. + /// Helper function that determines whether the input values would make a female. /// /// isMale/isFemale/isGenderless - private bool? gender { get; set; } + private bool? genderFlag; private bool? getGender() { @@ -1179,17 +1184,17 @@ public Pokemons[] CanEvolveAfter(EvolutionMethod method, Types type) /// Sets this Pokémon's gender to a particular gender (if possible). /// /// - public void setGender(bool? value) + public void setGender(bool value) { - //dexdata = pbOpenDexData; - //pbDexDataOffset(dexdata, @species, 18); + //dexdata = OpenDexData; + //DexDataOffset(dexdata, @species, 18); //genderbyte = dexdata.fgetb; //dexdata.close(); //if (genderbyte != 255 && genderbyte != 0 && genderbyte != 254) if (_base.GenderEnum != GenderRatio.AlwaysMale && _base.GenderEnum != GenderRatio.AlwaysFemale && _base.GenderEnum != GenderRatio.Genderless) { - //@genderflag = value; - gender = value; + @genderFlag = value; + //gender = value; } } @@ -1207,45 +1212,19 @@ public int abilityIndex { //int abil = Ability != null ? @abilityflag : (@personalID & 1); //return abil; - if (getAbilityList()[0] == Ability) return 0; - else if (getAbilityList()[1] == Ability) return 1; - else if (getAbilityList()[2] == Ability) return 2; + if (getAbilityList()[0] == abilityFlag) return 0; + else if (getAbilityList()[1] == abilityFlag) return 1; + else if (getAbilityList()[2] == abilityFlag) return 2; else return 0; } } - /// - /// RNG forces the first/second/hidden (0/1/2) ability - /// - private Abilities abilityFlag - { - get - { - if (isEgg && hasHiddenAbility()) - { - if (_base.Ability[1] != Abilities.NONE) - { - return _base.Ability[Core.Rand.Next(0, 3)]; - } - else - { - return _base.Ability[Core.Rand.Next(0, 2) == 1 ? 2 : 0]; - } - } - else - { - if (_base.Ability[1] != Abilities.NONE) - { - return _base.Ability[Core.Rand.Next(0, 2)]; - } - return _base.Ability[0]; - } - } - } + private Abilities abilityFlag; + /// /// Returns the ID of the Pokemons Ability. /// - public Abilities Ability { get; set; }//{ get { return abilityFlag; } set { abilityFlag = value; } } + public Abilities Ability { get { return abilityFlag; } set { abilityFlag = value; } } /// /// Returns whether this Pokemon has a particular ability @@ -1254,13 +1233,13 @@ private Abilities abilityFlag /// public bool hasAbility(Abilities ability = Abilities.NONE) { - if (ability == Abilities.NONE) + if (ability == Abilities.NONE) //return (int)_base.Ability[0] > 0 || (int)_base.Ability[1] > 0;// || (int)_base.Ability[2] > 0; - return (int)Ability > 0; + return (int)abilityFlag > 0; else { //return _base.Ability[0] == ability || _base.Ability[1] == ability;// || Abilities[2] == ability; - return Ability == ability; + return abilityFlag == ability; } //return false; } @@ -1272,7 +1251,33 @@ public bool hasAbility(Abilities ability = Abilities.NONE) public void setAbility(int value) { //Ability = value; - if (value >= 0 && value <= 2) Ability = _base.Ability[value]; + if (value >= 0 && value <= 2) abilityFlag = _base.Ability[value]; + } + + /// + /// RNG forces the first/second/hidden (0/1/2) ability + /// + private void assignAbility() + { + if (isEgg && hasHiddenAbility()) + { + if (_base.Ability[1] != Abilities.NONE) + { + abilityFlag = _base.Ability[Core.Rand.Next(0, 3)]; return; + } + else + { + abilityFlag = _base.Ability[Core.Rand.Next(0, 2) == 1 ? 2 : 0]; return; + } + } + else + { + if (_base.Ability[1] != Abilities.NONE) + { + abilityFlag = _base.Ability[Core.Rand.Next(0, 2)]; return; + } + abilityFlag = _base.Ability[0]; return; + } } public bool hasHiddenAbility() @@ -1296,11 +1301,13 @@ public Abilities[] getAbilityList() #endregion #region Nature + private Natures natureFlag; + /// /// Returns the ID of this Pokemon's nature or /// Sets this Pokemon's nature to a particular nature (and calculates the stat modifications). /// - public Natures Nature { get; private set; } + public Natures Nature { get { return natureFlag; } private set { natureFlag = value; } } /// /// Returns whether this Pokemon has a particular nature @@ -1309,10 +1316,10 @@ public Abilities[] getAbilityList() /// public bool hasNature(Natures nature = 0) //None { - if ((int)nature < 1) return (int)this.Nature >= 1; + if ((int)nature < 1) return (int)natureFlag >= 1; else { - return this.Nature == nature; + return natureFlag == nature; } } @@ -1324,7 +1331,7 @@ public bool hasNature(Natures nature = 0) //None public void setNature(Natures nature = 0) //None { //if ((int)nature < 1) return; - this.Nature = nature; + natureFlag = nature; } #endregion @@ -1428,7 +1435,7 @@ public void makeNotShiny() /// Returns the Pokerus infection stage for this Pokemon /// /// - /// if null, not infected; + /// if null, not infected; /// true infected, and false cured? /// /*public bool? PokerusStage() @@ -1509,7 +1516,7 @@ public int countMoves() { int ret = 0; for (int i = 0; i < 4; i++) - {//foreach(var move in this.moves){ + {//foreach(var move in this.moves){ if (this.moves[i].id != Moves.NONE) ret += 1;//move.id } return ret; @@ -1640,7 +1647,7 @@ public void GenerateMoveset(int? level = null, bool egg = false) { //For a truly random approach, instead of just adding moves in the order they're listed int x; - do { + do { x = Core.Rand.Next(movelist.Count); } while (rejected.Contains(x)); rejected[n] = x; @@ -1659,7 +1666,7 @@ public void GenerateMoveset(int? level = null, bool egg = false) rejected = new int?[movelist.Count]; //int listend = movelist.Count - 4; //listend = listend < 0 ? 0 : listend + 4; - //int j = 0; + //int j = 0; for (int n = 0; n < movelist.Count; n++) { bool err = false; @@ -1667,7 +1674,7 @@ public void GenerateMoveset(int? level = null, bool egg = false) { //For a truly random approach, instead of just adding moves in the order they're listed int x; - do { + do { x = Core.Rand.Next(movelist.Count); } while (rejected.Contains(x)); rejected[n] = x; @@ -1684,7 +1691,7 @@ public void GenerateMoveset(int? level = null, bool egg = false) } break; } - pbRecordFirstMoves(); + RecordFirstMoves(); } /// @@ -1710,7 +1717,7 @@ public void resetMoves() /// /// Forces move to be learned by pokemon by overriding fourth regardless of player's choice /// - //ToDo: Change void to string, return errors as in-game prompts; + //ToDo: Change void to string, return errors as in-game prompts; //remove `out bool success` or replace with `out string error` public void LearnMove(Moves move, out bool success, bool silently = false) { @@ -1767,18 +1774,18 @@ public void LearnMove(Moves move, out bool success, bool silently = false) /// /// /// - public void pbLearnMove(Moves move) + public void LearnMove(Moves move) { //if (move is String || move is Symbol) //{ - // move = getID(PBMoves, move); + // move = getID(Moves, move); //} if (move <= 0) return; for (int i = 0; i < 4; i++) { if (moves[i].id == move) { - int j = i + 1; while (j < 4) { + int j = i + 1; while (j < 4) { if (@moves[j].id == 0) break; IMove tmp = @moves[j]; @moves[j] = @moves[j - 1]; @@ -1815,7 +1822,7 @@ public Moves GetMove(int level, bool egg = false) rejected = new int?[movelist.Count]; //int listend = movelist.Count - 4; //listend = listend < 0 ? 0 : listend + 4; - //int j = 0; + //int j = 0; for (int n = 0; n < movelist.Count; n++) { if (!moveLearned) //j @@ -1898,7 +1905,7 @@ public void DeleteAllMoves() /// /// Copies currently known moves into a separate array, for Move Relearner. /// - public void pbRecordFirstMoves() + public void RecordFirstMoves() { for (int i = 0; i < 4; i++) { @@ -1925,20 +1932,20 @@ public void ClearFirstMoves() public bool isCompatibleWithMove(Moves move) { - //return pbSpeciesCompatible(this.Species, move); + //return SpeciesCompatible(this.Species, move); return getMoveList().Contains(move); } #endregion #region Contest attributes, ribbons //ToDo: This is actually a hashset, and not list, because only store one of each - private List ribbons { get; set; } + private HashSet ribbons { get; set; } /// /// Each region/ribbon sprite should have it's own Ribbon.EnumId /// /// Pokemon acquired beauty ribbon in region 1 AND 2? /// Make each ribbon into sets, where next number up is upgrade. - /// Does it make a difference if pokemon won contest in different regions? + /// Does it make a difference if pokemon won contest in different regions? /// No -- ribbons are named after region; Do not need to record region data /// ToDo: Dictionary(Ribbon,struct[DateTime/Bool]) public Ribbons[] Ribbons { get { return this.ribbons.ToArray(); } } @@ -1946,22 +1953,22 @@ public bool isCompatibleWithMove(Moves move) /// Contest stats; Max value is 255 /// public byte[] Contest { get; private set; } - public int Cool { get { return Contest[(int)Contests.Cool]; } } - public int Beauty { get { return Contest[(int)Contests.Beauty]; } } - public int Cute { get { return Contest[(int)Contests.Cute]; } } - public int Smart { get { return Contest[(int)Contests.Smart]; } } - public int Tough { get { return Contest[(int)Contests.Tough]; } } - public int Sheen { get { return Contest[(int)Contests.Sheen]; } } + public int Cool { get { return Contest[(int)Contests.Cool]; } set { Contest[(int)Contests.Cool] = (byte)value; } } + public int Beauty { get { return Contest[(int)Contests.Beauty]; } set { Contest[(int)Contests.Beauty] = (byte)value; } } + public int Cute { get { return Contest[(int)Contests.Cute]; } set { Contest[(int)Contests.Cute] = (byte)value; } } + public int Smart { get { return Contest[(int)Contests.Smart]; } set { Contest[(int)Contests.Smart] = (byte)value; } } + public int Tough { get { return Contest[(int)Contests.Tough]; } set { Contest[(int)Contests.Tough] = (byte)value; } } + public int Sheen { get { return Contest[(int)Contests.Sheen]; } set { Contest[(int)Contests.Sheen] = (byte)value; } } /// /// Returns the number of ribbons this Pokemon has. /// - public int ribbonCount - { + public int ribbonCount + { get { - if (@ribbons == null) @ribbons = new List(); + if (@ribbons == null) @ribbons = new HashSet(); return @ribbons.Count; - } + } } /// /// Returns whether this Pokémon has the specified ribbon. @@ -1970,7 +1977,7 @@ public int ribbonCount /// public bool hasRibbon(Ribbons ribbon) { - if (@ribbons == null) @ribbons = new List(); + if (@ribbons == null) @ribbons = new HashSet(); if (ribbon == PokemonUnity.Ribbons.NONE) return false; //if (Ribbons.Count == 0) return false; return Ribbons.Contains(ribbon); @@ -1981,7 +1988,7 @@ public bool hasRibbon(Ribbons ribbon) /// public void giveRibbon(Ribbons ribbon) { - if (@ribbons == null) @ribbons = new List(); + if (@ribbons == null) @ribbons = new HashSet(); if (ribbon == PokemonUnity.Ribbons.NONE) return; if (!Ribbons.Contains(ribbon)) this.ribbons.Add(ribbon); } @@ -1992,16 +1999,18 @@ public void giveRibbon(Ribbons ribbon) /// ToDo: Redo code below to something more hardcoded public Ribbons upgradeRibbon(params Ribbons[] arg) { - if (@ribbons == null) @ribbons = new List(); + if (@ribbons == null) @ribbons = new HashSet(); for (int i = 0; i < arg.Length - 1; i++) { for (int j = 0; j < @ribbons.Count; j++) { Ribbons thisribbon = arg[i]; - if (@ribbons[j] == thisribbon) + //if (@ribbons[j] == thisribbon) + if (@ribbons.Contains(thisribbon)) { - Ribbons nextribbon = arg[i + 1]; - @ribbons[j] = nextribbon; + Ribbons nextribbon = arg[i + 1]; //grab next in series + //@ribbons[j] = nextribbon; + @ribbons.Add(nextribbon); return nextribbon; } } @@ -2028,11 +2037,12 @@ public void takeRibbon(Ribbons ribbon) if (Ribbons[i] == ribbon) { //ribbons[i] = Ribbon.NONE; - ribbons.RemoveAt(i); + //ribbons.RemoveAt(i); + ribbons.Remove(ribbon); break; } } - //ribbons.Remove(Ribbon.NONE); + //ribbons.Remove(Ribbon.NONE); //ribbons.RemoveAll(r => r == Ribbon.NONE); //ribbons.RemoveAll(r => r == ribbon); } @@ -2087,7 +2097,7 @@ public Items[] wildHoldItems() if (!Kernal.PokemonItemsData.ContainsKey(pokemons)) return new Items[0]; //_base.HeldItem PokemonWildItems[] dexdata = Kernal.PokemonItemsData[pokemons]; - //pbDexDataOffset(dexdata, @species, 48); + //DexDataOffset(dexdata, @species, 48); Items itemcommon = Items.NONE; //dexdata.fgetw; Items itemuncommon = Items.NONE; //dexdata.fgetw; Items itemrare = Items.NONE; //dexdata.fgetw; @@ -2098,11 +2108,40 @@ public Items[] wildHoldItems() return new Items[] { itemcommon, itemuncommon, itemrare }; } + /// + /// Pools all the values into a 100% encounter chance, and selects from those results + /// + /// RNG Bagging Technique using Dice Roll, without fallback (no matter rng, wont artificially modify results) + public void SetWildHoldItem() + { + List list = new List(); + + //loop through each position of list + foreach (PokemonWildItems item in Kernal.PokemonItemsData[pokemons]) + { + //add encounter once for every Likelihood + for (int i = 0; i < item.Rarirty; i++) + { + list.Add(item.ItemId); + } + } + + //Get list of 100 pokemons for given (specific to this) encounter... + for (int n = list.Count; n < 100; n++) + { + list.Add(Items.NONE); + } + + //From list of 100 pokemons, select 1. + Item = list[Core.Rand.Next(list.Count)]; + } + #region Mail /// /// Mail?... /// - private PokemonUnity.Inventory.Mail mail { get; set; } + //public PokemonUnity.Inventory.Mail mail { get; set; } + public PokemonEssentials.Interface.Item.IMail mail { get; set; } /// /// Perform a null check; if anything other than null, there is a message /// @@ -2110,17 +2149,17 @@ public string Mail { get { - if (this.mail == null || !Kernal.ItemData[this.Item].IsLetter) return null; //If empty return null + if (this.mail == null || !ItemData.IsLetter(this.Item)) return null; //If empty return null //if (mail.Message.Length == 0 || this.Inventory == 0)//|| this.item.Category != Items.Category.Mail ) //{ // //mail = null; // return null; //} - return mail.Message; + return mail.message; } //set { mail = value; } } - /*public bool pbMoveToMailbox() + /*public bool MoveToMailbox() { //if (PC.MailBox == null) PC.MailBox = []; if (PC.MailBox.Length>=10) return false; @@ -2131,7 +2170,7 @@ public string Mail return true; } - public void pbStoreMail(string message, TrainerId sender)//pkmn, item, message, poke1= nil, poke2= nil, poke3= nil) + public void StoreMail(string message, TrainerId sender)//pkmn, item, message, poke1= nil, poke2= nil, poke3= nil) { //raise Game._INTL("Pokémon already has mail") if pkmn.mail if (Mail == null) GameDebug.LogError("Pokémon already has mail"); @@ -2139,97 +2178,97 @@ public void pbStoreMail(string message, TrainerId sender)//pkmn, item, message, mail = new Mail(Item, message, sender); } - public void pbTakeMail() + public void TakeMail() { if (Item == Items.NONE) { - pbDisplay(Game._INTL("{1} isn't holding anything.", Name)); + Display(Game._INTL("{1} isn't holding anything.", Name)); } - else if (!Game.GameData.Player.Bag.pbCanStore(Item)) + else if (!Game.GameData.Player.Bag.CanStore(Item)) { - pbDisplay(Game._INTL("The Bag is full. The Pokémon's item could not be removed.")); + Display(Game._INTL("The Bag is full. The Pokémon's item could not be removed.")); } else if (mail != null) { } - if (pbConfirm(Game._INTL("Send the removed mail to your PC?"))) + if (Confirm(Game._INTL("Send the removed mail to your PC?"))) { - if (!pbMoveToMailbox()) - pbDisplay(Game._INTL("Your PC's Mailbox is full.")); + if (!MoveToMailbox()) + Display(Game._INTL("Your PC's Mailbox is full.")); else - pbDisplay(Game._INTL("The mail was sent to your PC.")); + Display(Game._INTL("The mail was sent to your PC.")); //setItem(0); Item = Items.NONE; } - else if (pbConfirm(Game._INTL("If the mail is removed, the message will be lost. OK?"))) + else if (Confirm(Game._INTL("If the mail is removed, the message will be lost. OK?"))) { - pbDisplay(Game._INTL("Mail was taken from the Pokémon.")); - Game.GameData.Player.Bag.pbStoreItem(Item); + Display(Game._INTL("Mail was taken from the Pokémon.")); + Game.GameData.Player.Bag.StoreItem(Item); //setItem(0); Item = Items.NONE; mail = null; } else { - Game.GameData.Player.Bag.pbStoreItem(Item); + Game.GameData.Player.Bag.StoreItem(Item); string itemname = Game._INTL(Item.ToString(TextScripts.Name)); - pbDisplay(Game._INTL("Received the {1} from {2}.", itemname, Name)); + Display(Game._INTL("Received the {1} from {2}.", itemname, Name)); //setItem(0); Item = Items.NONE; } } - public bool pbGiveMail(Items item)//, pkmn, pkmnid= 0) + public bool GiveMail(Items item)//, pkmn, pkmnid= 0) { string thisitemname = Game._INTL(item.ToString(TextScripts.Name)); if (isEgg) { - pbDisplay(Game._INTL("Eggs can't hold items.")); + Display(Game._INTL("Eggs can't hold items.")); return false; } if (mail != null) { - pbDisplay(Game._INTL("Mail must be removed before holding an item.")); + Display(Game._INTL("Mail must be removed before holding an item.")); return false; } if (item!=Items.NONE) { string itemname = Game._INTL(Item.ToString(TextScripts.Name)); - pbDisplay(Game._INTL("{1} is already holding one {2}.\1", name, itemname)); - if (pbConfirm(Game._INTL("Would you like to switch the two items?"))) + Display(Game._INTL("{1} is already holding one {2}.\1", name, itemname)); + if (Confirm(Game._INTL("Would you like to switch the two items?"))) { - Game.GameData.Player.Bag.pbDeleteItem(item); - if (!Game.GameData.Player.Bag.pbStoreItem(item)) + Game.GameData.Player.Bag.DeleteItem(item); + if (!Game.GameData.Player.Bag.StoreItem(item)) { - if (!Game.GameData.Player.Bag.pbStoreItem(item)) // Compensate + if (!Game.GameData.Player.Bag.StoreItem(item)) // Compensate { //raise Game._INTL("Can't re-store deleted item in bag"); GameDebug.LogError(Game._INTL("Can't re-store deleted item in bag")); } - pbDisplay(Game._INTL("The Bag is full. The Pokémon's item could not be removed.")); + Display(Game._INTL("The Bag is full. The Pokémon's item could not be removed.")); } else { - if (Kernal.ItemData[Item].IsLetter)//(pbIsMail(item)) + if (Kernal.ItemData[Item].IsLetter)//(IsMail(item)) { - //if (pbMailScreen(item, pkmn, pkmnid)) - if (pbMailScreen(item, this)) + //if (MailScreen(item, pkmn, pkmnid)) + if (MailScreen(item, this)) { //setItem(item); Item = item; - pbDisplay(Game._INTL("The {1} was taken and replaced with the {2}.", itemname, thisitemname)); + Display(Game._INTL("The {1} was taken and replaced with the {2}.", itemname, thisitemname)); return true; } else { - if (!Game.GameData.Player.Bag.pbStoreItem(item)) { // Compensate + if (!Game.GameData.Player.Bag.StoreItem(item)) { // Compensate //raise Game._INTL("Can't re-store deleted item in bag"); GameDebug.LogError(Game._INTL("Can't re-store deleted item in bag")); } @@ -2240,7 +2279,7 @@ public bool pbGiveMail(Items item)//, pkmn, pkmnid= 0) //setItem(item); Item=item; - pbDisplay(Game._INTL("The {1} was taken and replaced with the {2}.", itemname, thisitemname)); + Display(Game._INTL("The {1} was taken and replaced with the {2}.", itemname, thisitemname)); return true; } } @@ -2248,14 +2287,14 @@ public bool pbGiveMail(Items item)//, pkmn, pkmnid= 0) } else { - if (!pbIsMail(item) || pbMailScreen(item, pkmn, pkmnid)) // Open the mail screen if necessary - if (!Kernal.ItemData[Item].IsLetter || pbMailScreen(item, this)) // Open the mail screen if necessary + if (!IsMail(item) || MailScreen(item, pkmn, pkmnid)) // Open the mail screen if necessary + if (!Kernal.ItemData[Item].IsLetter || MailScreen(item, this)) // Open the mail screen if necessary { - Game.GameData.Player.Bag.pbDeleteItem(item); + Game.GameData.Player.Bag.DeleteItem(item); //setItem(item); Item=item; - pbDisplay(Game._INTL("{1} was given the {2} to hold.", name, thisitemname)); + Display(Game._INTL("{1} was given the {2} to hold.", name, thisitemname)); return true; } } @@ -2278,13 +2317,13 @@ public bool pbGiveMail(Items item)//, pkmn, pkmnid= 0) /// /// Nickname /// - private string name { get; set; } + private string name; /// /// Nickname /// - public bool IsNicknamed { get { return !string.IsNullOrEmpty(name); } } + public bool IsNicknamed { get { return !string.IsNullOrEmpty(name.Trim()); } } /// - /// Nickname; + /// Nickname; /// Returns Pokemon species name if not nicknamed. /// public virtual string Name { get { if (Species == Pokemons.NONE) return string.Empty; if (isEgg) return "Egg"; return IsNicknamed ? name : Game._INTL(Species.ToString(TextScripts.Name)); } set { name = value; } } @@ -2300,11 +2339,14 @@ public bool pbGiveMail(Items item)//, pkmn, pkmnid= 0) /// Returns a string stating the Unown form of this Pokemon /// /// - public char UnknownShape() + public char UnownShape { - if (this.pokemons == Pokemons.UNOWN) - return "ABCDEFGHIJKLMNOPQRSTUVWXYZ?!".ToCharArray()[FormId]; - else return '*'; + get + { + if (this.pokemons == Pokemons.UNOWN) + return "ABCDEFGHIJKLMNOPQRSTUVWXYZ?!".ToCharArray()[FormId]; + else return '*'; + } } /// @@ -2401,7 +2443,8 @@ public void ChangeHappiness(HappinessMethods method) gain += Happiness < 200 ? 1 : 0; //ToDo: if trainer is on map pkmn was captured on, add more happiness on walk //gain += this.metMap.Id == currentMap.Id ? 1 : 0; //change to "obtainMap"? - //if ((int)this.ObtainMap == Game.GameData.GameMap.map_id) gain += 1; + if ((int)this.ObtainMap == Game.GameData.GameMap.map_id) gain += 1; + luxury = true; break; case HappinessMethods.LEVELUP: gain = 2; @@ -2440,7 +2483,7 @@ public void ChangeHappiness(HappinessMethods method) if (Happiness < 200) gain = -15; break; default: - if (Game.GameData is IGameMessage m) m.pbMessage(Game._INTL("Unknown happiness-changing method.")); + if (Game.GameData is IGameMessage m) m.Message(Game._INTL("Unknown happiness-changing method.")); //break; //If not listed above, then stop //Otherwise rest of code will add points @@ -2452,7 +2495,7 @@ public void ChangeHappiness(HappinessMethods method) Happiness += gain; //Happiness = Math.Max(Math.Min(255, Happiness), 0); Happiness = //Max 255, Min 0 - Happiness > 255 ? //if + Happiness > 255 ? //if 255 : Happiness < 0 ? //if else 0 @@ -2462,15 +2505,15 @@ public void ChangeHappiness(HappinessMethods method) #region Stat calculations, Pokemon creation /// - /// Returns this Pokémon's base stats. + /// Returns this Pokémon's base stats. /// /// An array of six values. public int[] baseStats { get { - //dexdata = pbOpenDexData; - //pbDexDataOffset(dexdata, @species, 10); + //dexdata = OpenDexData; + //DexDataOffset(dexdata, @species, 10); int[] ret = new int[] { _base.BaseStatsHP, //dexdata.fgetb, // HP _base.BaseStatsATK, //dexdata.fgetb, // Attack @@ -2514,7 +2557,7 @@ public int calcStat(int orig,int level,int iv,int ev,int pv) /// Recalculates this Pokémon's stats. /// /// - /// Stats are already hardcoded, + /// Stats are already hardcoded, /// will use this to adjust hp values instead /// public void calcStats() @@ -2543,11 +2586,11 @@ public void calcStats() stats[i] = calcStat(orig, level, @IV[i], @EV[i], pvalues[i - 1]); } } - int diff = @TotalHP - @HP; + int diff = @TotalHP - @hp; //@TotalHP = stats[0]; - @HP = @TotalHP - diff; - if (@HP <= 0) @HP = 0; - if (@HP > @TotalHP) @HP = @TotalHP; + @hp = @TotalHP - diff; + if (@hp <= 0) @hp = 0; + if (@hp > @TotalHP) @hp = @TotalHP; //@attack = stats[1]; //@defense = stats[2]; //@speed = stats[3]; @@ -2922,114 +2965,89 @@ private void GainEffort(Items UsedItem) else GameDebug.LogWarning($"Single-stat EV limit #{EVSTATLIMIT} exceeded.\r\nStat: #{Stats.SPEED.ToString()} EV gain: #{gainEVSpeed} EVs: #{EV.ToString()}"); } #endregion -#pragma warning restore 0162 //Warning CS0162 Unreachable code detected +#pragma warning restore 0162 //Warning CS0162 Unreachable code detected //ToDo: Finish migrating interface implementation - #region Explicit Interface Implemenation - int IPokemon.trainerID { get; set; } - IMail IPokemon.mail { get; set; } - IPokemon[] IPokemon.fused { get; set; } - int IPokemon.obtainMode { get; set; } - int IPokemon.obtainMap { get; set; } - string IPokemon.obtainText { get; set; } - int IPokemon.obtainLevel { get; set; } - int IPokemon.hatchedMap { get; set; } - int IPokemon.language { get; } - string IPokemon.ot { get; set; } - int IPokemon.otgender { get; set; } - int IPokemon.abilityflag { get; set; } - bool IPokemon.genderflag { get; set; } - int IPokemon.natureflag { get; set; } - bool IPokemon.shinyflag { get; set; } - IList IPokemon.ribbons { get; set; } - int IPokemon.cool { get; set; } - int IPokemon.beauty { get; set; } - int IPokemon.cute { get; set; } - int IPokemon.smart { get; set; } - int IPokemon.tough { get; set; } - int IPokemon.sheen { get; set; } - int IPokemon.publicID { get; } - DateTime? IPokemon.timeReceived { get; set; } - DateTime? IPokemon.timeEggHatched { get; set; } - bool IPokemon.isSingleGendered { get; } - char IPokemon.unownShape { get; } - float IPokemon.height { get; } - float IPokemon.weight { get; } - int[] IPokemon.evYield { get; } - string IPokemon.kind { get; } - string IPokemon.dexEntry { get; } - - bool IPokemon.isForeign(ITrainer trainer) - { - throw new NotImplementedException(); - } + #region Explicit Interface Implementation + int IPokemon.trainerID { get { return OT.publicID(); } set { OT.publicID(value); } } + int IPokemon.obtainMode { get { return (int)ObtainedMode; } set { ObtainedMode = (ObtainedMethod)value; } } + int IPokemon.obtainMap { get { return (int)ObtainMap; } set { ObtainMap = (Locations)value; } } + string IPokemon.obtainText { get { return obtainString; } set { obtainString = value; } } + int IPokemon.obtainLevel { get { return ObtainLevel; } set { ObtainLevel = value; } } + int IPokemon.hatchedMap { get { return (int)HatchedMap; } set { HatchedMap = (Locations)value; } } + int IPokemon.language { get { return (int?)OT.language??9; } } + string IPokemon.ot { get { return OT.name; } set { OT.name = value; } } + int IPokemon.otgender { get { return OT.gender; } set { } } //OT.gender = value; + int IPokemon.abilityflag { set { abilityFlag = (Abilities)value; } } + bool IPokemon.genderflag { set { genderFlag = value; } } + int IPokemon.natureflag { set { natureFlag = (Natures)value; } } + bool IPokemon.shinyflag { set { shinyFlag = value; } } + IList IPokemon.ribbons { get { return ribbons.ToArray(); } set { ribbons = new HashSet(value); } } + int IPokemon.cool { get { return Cool; } set { Cool = value; } } + int IPokemon.beauty { get { return Beauty; } set { Beauty = value; } } + int IPokemon.cute { get { return Cute; } set { Cute = value; } } + int IPokemon.smart { get { return Smart; } set { Smart = value; } } + int IPokemon.tough { get { return Tough; } set { Tough = value; } } + int IPokemon.sheen { get { return Sheen; } set { Sheen = value; } } + int IPokemon.publicID { get { return PersonalId; } } + DateTime? IPokemon.timeReceived { get { return TimeReceived.UtcDateTime; } set { obtainWhen = (DateTimeOffset)DateTime.SpecifyKind(value.Value, DateTimeKind.Utc); } } + DateTime? IPokemon.timeEggHatched { get { return TimeEggHatched?.UtcDateTime; } set { hatchedWhen = value != null ? (DateTimeOffset)DateTime.SpecifyKind(value.Value, DateTimeKind.Utc) : (DateTimeOffset?)null; } } + bool IPokemon.isSingleGendered { get { return IsSingleGendered; } } + char IPokemon.unownShape { get { return UnownShape; } } + float IPokemon.height { get { return _base.Height; } } + float IPokemon.weight { get { return _base.Weight; } } + int[] IPokemon.evYield { get { return EV.Select(i=>(int)i).ToArray(); } } + string IPokemon.kind { get; } //{ return Species.ToString(TextScripts.Description); } } + string IPokemon.dexEntry { get { return pokemons.ToString(TextScripts.Description); } } bool IPokemon.isFemale(int b, int genderRate) { - throw new NotImplementedException(); + if (genderRate == 254) return true; // AlwaysFemale + if (genderRate == 255) return false; // Genderless + return b <= genderRate; } void IPokemon.setGender(int value) { - throw new NotImplementedException(); - } - - bool IPokemon.hasNature(Natures? value) - { - throw new NotImplementedException(); + setGender(value == 0); } void IPokemon.resetPokerusTime() { - throw new NotImplementedException(); + ResetPokerusTime(); } void IPokemon.lowerPokerusCount() { - throw new NotImplementedException(); - } - - void IPokemon.pbDeleteMove(Moves move) - { - throw new NotImplementedException(); + LowerPokerusCount(); } - void IPokemon.pbDeleteMoveAtIndex(int index) + void IPokemon.DeleteMove(Moves move) { - throw new NotImplementedException(); + DeleteMove(move); } - void IPokemon.pbDeleteAllMoves() + void IPokemon.DeleteMoveAtIndex(int index) { - throw new NotImplementedException(); + DeleteMoveAtIndex(index); } - int IPokemon.ribbonCount() + void IPokemon.DeleteAllMoves() { - throw new NotImplementedException(); + DeleteAllMoves(); } int IPokemon.upgradeRibbon(params Ribbons[] arg) { - throw new NotImplementedException(); - } - - void IPokemon.changeHappiness(HappinessMethods method) - { - throw new NotImplementedException(); - } - - void IPokemon.calcStat(int _base, int level, int iv, int ev, int pv) - { - throw new NotImplementedException(); + return (int)upgradeRibbon(arg); } IPokemon IPokemon.initialize(Pokemons species, int level, ITrainer player, bool withMoves) { throw new NotImplementedException(); } - #endregion - + #endregion + #region Explicit Operators public static bool operator ==(Pokemon x, Pokemon y) { @@ -3051,13 +3069,13 @@ public bool Equals(Pokemon obj) //public bool Equals(PokemonUnity.Saving.SerializableClasses.SeriPokemon obj) //{ // //if (obj == null) return false; - // return this == obj; + // return this == obj; //} public override bool Equals(object obj) { if (obj == null) return false; - if (obj.GetType() == typeof(Pokemon)) - return Equals((Pokemon)obj); + if (obj.GetType() == typeof(IPokemon) || obj.GetType() == typeof(Pokemon)) + return Equals(obj as Pokemon); //if (obj.GetType() == typeof(PokemonUnity.Saving.SerializableClasses.SeriPokemon)) // return Equals((PokemonUnity.Saving.SerializableClasses.SeriPokemon)obj); return base.Equals(obj); @@ -3066,30 +3084,46 @@ public override int GetHashCode() { return PersonalId.GetHashCode(); } + bool IEquatable.Equals(IPokemon other) + { + return Equals(obj: (object)other); + } bool IEquatable.Equals(Pokemon other) { return Equals(obj: (object)other); } + bool IEqualityComparer.Equals(IPokemon x, IPokemon y) + { + return x == y; + } bool IEqualityComparer.Equals(Pokemon x, Pokemon y) { return x == y; } + int IEqualityComparer.GetHashCode(IPokemon obj) + { + return obj.GetHashCode(); + } int IEqualityComparer.GetHashCode(Pokemon obj) { return obj.GetHashCode(); } - + object ICloneable.Clone() + { + return MemberwiseClone(); + } + public static implicit operator SeriPokemon(Pokemon pokemon) { SeriPokemon seriPokemon = new SeriPokemon(); if (pokemon == null) return seriPokemon; - + if(pokemon.IsNotNullOrNone())// != null && pokemon.Species != Pokemons.NONE) { /*seriPokemon.PersonalId = pokemon.PersonalId; //PublicId in pokemon is null, so Pokemon returns null //seriPokemon.PublicId = pokemon.PublicId; - + if (!pokemon.OT.Equals((object)null)) { seriPokemon.TrainerName = pokemon.OT.name; @@ -3097,57 +3131,57 @@ public static implicit operator SeriPokemon(Pokemon pokemon) seriPokemon.TrainerTrainerId = pokemon.OT.publicID(); seriPokemon.TrainerSecretId = pokemon.OT.secretID(); } - + seriPokemon.Species = (int)pokemon.Species; seriPokemon.Form = pokemon.FormId; //Creates an error System OutOfBounds inside Pokemon seriPokemon.NickName = pokemon.Name; - + seriPokemon.Ability = (int)pokemon.Ability; - + //seriPokemon.Nature = pokemon.getNature(); seriPokemon.Nature = (int)pokemon.Nature; - seriPokemon.IsShiny = pokemon.IsShiny; + seriPokemon.IsShiny = pokemon.IsShiny; seriPokemon.Gender = pokemon.Gender; - + //seriPokemon.PokerusStage = pokemon.PokerusStage; seriPokemon.Pokerus = pokemon.Pokerus; //seriPokemon.PokerusStrain = pokemon.PokerusStrain; - + //seriPokemon.IsHyperMode = pokemon.isHyperMode; //seriPokemon.IsShadow = pokemon.isShadow; seriPokemon.HeartGuageSize = pokemon.HeartGuageSize; seriPokemon.ShadowLevel = pokemon.ShadowLevel; - + seriPokemon.IV = pokemon.IV; seriPokemon.EV = pokemon.EV; - + seriPokemon.ObtainedLevel = pokemon.ObtainLevel; //seriPokemon.CurrentLevel = pokemon.Level; seriPokemon.CurrentExp = pokemon.Experience.Total; - + seriPokemon.CurrentHP = pokemon.HP; seriPokemon.Item = (int)pokemon.Item; - + seriPokemon.Happiness = pokemon.Happiness; - + seriPokemon.Status = (int)pokemon.Status; seriPokemon.StatusCount = pokemon.StatusCount; - + seriPokemon.EggSteps = pokemon.EggSteps; - + seriPokemon.BallUsed = (int)pokemon.ballUsed; if (pokemon.Item != Items.NONE && Kernal.ItemData[pokemon.Item].IsLetter)//PokemonUnity.Inventory.Mail.IsMail(pokemon.Item)) { seriPokemon.Mail = new SeriMail(pokemon.Item, pokemon.Mail); } - + seriPokemon.Moves = new SeriMove[4]; for (int i = 0; i < 4; i++) { seriPokemon.Moves[i] = (Move)pokemon.moves[i]; } - + if (pokemon.MoveArchive != null) { seriPokemon.Archive = new int[pokemon.MoveArchive.Length]; @@ -3156,7 +3190,7 @@ public static implicit operator SeriPokemon(Pokemon pokemon) seriPokemon.Archive[i] = (int)pokemon.MoveArchive[i]; } } - + //Ribbons is also null, we add a null check if (pokemon.Ribbons != null) { @@ -3171,7 +3205,7 @@ public static implicit operator SeriPokemon(Pokemon pokemon) // seriPokemon.Ribbons = new int[0]; //} seriPokemon.Markings = pokemon.Markings; - + seriPokemon.ObtainedMethod = (int)pokemon.ObtainedMode; seriPokemon.TimeReceived = pokemon.TimeReceived; //try @@ -3179,7 +3213,7 @@ public static implicit operator SeriPokemon(Pokemon pokemon) seriPokemon.TimeEggHatched = pokemon.TimeEggHatched; //} //catch (Exception) { seriPokemon.TimeEggHatched = new DateTimeOffset(); }*/ - + return new SeriPokemon ( (int)pokemon.Species, //(pokemon.TrainerName == null && @@ -3193,13 +3227,13 @@ public static implicit operator SeriPokemon(Pokemon pokemon) pokemon.ObtainLevel, /*pokemon.CurrentLevel,*/ pokemon.Experience.Total, pokemon.Happiness, (int)pokemon.Status, pokemon.StatusCount, pokemon.EggSteps, (int)pokemon.ballUsed, new SeriMail(), //pokemon.Mail.Message, - //(SeriMove[])pokemon.moves, (int[])pokemon.MoveArchive, (int[])pokemon.Ribbons, + //(SeriMove[])pokemon.moves, (int[])pokemon.MoveArchive, (int[])pokemon.Ribbons, null, null, null, //ToDo: Remove this line, and uncomment the above pokemon.Markings, pokemon.PersonalId, (int)pokemon.ObtainedMode, pokemon.TimeReceived, pokemon.TimeEggHatched ); } - + return seriPokemon; } @@ -3212,23 +3246,23 @@ public static implicit operator Pokemon(SeriPokemon pokemon) { ribbons[i] = (Ribbons)pokemon.Ribbons[i]; } - + Move[] moves = new Attack.Move[pokemon.Moves.Length]; for (int i = 0; i < moves.Length; i++) { moves[i] = pokemon.Moves[i]; } - + Moves[] history = new Moves[pokemon.Archive.Length]; for (int i = 0; i < pokemon.Archive.Length; i++) { history[i] = (Moves)pokemon.Archive[i]; } - + Pokemon normalPokemon = new Pokemon ( - (Pokemons)pokemon.Species, (pokemon.TrainerName == null && + (Pokemons)pokemon.Species, (pokemon.TrainerName == null && pokemon.TrainerTrainerId == 0 && pokemon.TrainerSecretId == 0) ? (ITrainer)null : new Trainer(pokemon.TrainerName, TrainerTypes.PLAYER), pokemon.NickName, pokemon.Form, (Abilities)pokemon.Ability, diff --git a/PokemonUnity.Application/Overworld/Map.cs b/PokemonUnity.Application/Overworld/Map.cs index d83cbcf07..6e4ae5e53 100644 --- a/PokemonUnity.Application/Overworld/Map.cs +++ b/PokemonUnity.Application/Overworld/Map.cs @@ -10,7 +10,7 @@ namespace PokemonUnity { - public partial class Game { + public partial class Game { /// /// This class handles the map. It includes scrolling and passable determining /// functions. Refer to for the instance of this class. @@ -60,7 +60,7 @@ public Game_Map() { @display_y = 0; } #endregion - + #region Methods public void setup(int map_id) { this.map_id = map_id; @@ -86,6 +86,7 @@ public void setup(int map_id) { @need_refresh = false; //Events.onMapCreate.trigger(this,map_id, @map, tileset); //Events.OnMapCreate.Invoke(this,map_id, @map, tileset); + Events.OnMapCreateTrigger(this,map_id, @map, tileset); @events = new Dictionary(); foreach (int i in @map.events.Keys) { //@events[i] = new Game_Event(@map_id, @map.events[i],this); @@ -136,13 +137,13 @@ public int encounter_step { get { public void autoplayAsCue() { if (@map.autoplay_bgm) { if (IsNight) { //&& FileTest.audio_exist("Audio/BGM/"+ @map.bgm.name+ "n") - if (GameData is PokemonEssentials.Interface.Field.IGameField f) f.pbCueBGM(@map.bgm.name+"n",1.0f,@map.bgm.volume,@map.bgm.pitch); + if (GameData is PokemonEssentials.Interface.Field.IGameField f) f.CueBGM(@map.bgm.name+"n",1.0f,@map.bgm.volume,@map.bgm.pitch); } else { - if (GameData is PokemonEssentials.Interface.Field.IGameField f) f.pbCueBGM(@map.bgm,1.0f); + if (GameData is PokemonEssentials.Interface.Field.IGameField f) f.CueBGM(@map.bgm,1.0f); } } if (@map.autoplay_bgs) { - if (GameData is PokemonEssentials.Interface.IGameAudioPlay a) a.pbBGSPlay(@map.bgs); + if (GameData is PokemonEssentials.Interface.IGameAudioPlay a) a.BGSPlay(@map.bgs); } } /// @@ -152,13 +153,13 @@ public void autoplayAsCue() { public void autoplay() { if (@map.autoplay_bgm) { if (IsNight) { //&& FileTest.audio_exist("Audio/BGM/"+ @map.bgm.name+ "n") - if (GameData is PokemonEssentials.Interface.IGameAudioPlay a) a.pbBGMPlay(@map.bgm.name+"n",@map.bgm.volume,@map.bgm.pitch); + if (GameData is PokemonEssentials.Interface.IGameAudioPlay a) a.BGMPlay(@map.bgm.name+"n",@map.bgm.volume,@map.bgm.pitch); } else { - if (GameData is PokemonEssentials.Interface.IGameAudioPlay a) a.pbBGMPlay(@map.bgm); + if (GameData is PokemonEssentials.Interface.IGameAudioPlay a) a.BGMPlay(@map.bgm); } } if (@map.autoplay_bgs) { - if (GameData is PokemonEssentials.Interface.IGameAudioPlay a) a.pbBGSPlay(@map.bgs); + if (GameData is PokemonEssentials.Interface.IGameAudioPlay a) a.BGSPlay(@map.bgs); } } @@ -398,7 +399,7 @@ public bool counter (float x,float y) { int? tile_id = data[(int)System.Math.Floor(x), (int)System.Math.Floor(y), i]; if (tile_id == null) { return false; - } else if (//@passages[tile_id.Value] != null && + } else if (//@passages[tile_id.Value] != null && (@passages[tile_id.Value] & 0x80) == 0x80) { return true; } @@ -415,7 +416,7 @@ public Terrains terrain_tag(float x,float y,bool countBridge=false) { GameData.Global != null && GameData.Global.bridge==0 && !countBridge) continue; if (tile_id == null) { return 0; - } else if (//@terrain_tags[tile_id.Value] != null && + } else if (//@terrain_tags[tile_id.Value] != null && @terrain_tags[tile_id.Value] > 0 && @terrain_tags[tile_id.Value]!=Terrains.Neutral) { return @terrain_tags[tile_id.Value]; @@ -484,10 +485,10 @@ public void update() { case 2: scroll_down(distance); break; - case 4: + case 4: scroll_left(distance); break; - case 6: + case 6: scroll_right(distance); break; case 8: @@ -526,7 +527,7 @@ public void update() { public partial class Game_Map { public string name { get { - string ret=""; //GameData.pbGetMessage(MessageTypes.MapNames,this.map_id); //Dictionary of Static Strings + string ret=""; //GameData.GetMessage(MessageTypes.MapNames,this.map_id); //Dictionary of Static Strings if (GameData.Trainer != null) { // Replace "\PN" with the Trainer.Name //ret.gsub!(/\\PN/,GameData.Trainer.name); @@ -551,7 +552,7 @@ public static int realResY { get { //public int display_x { set { // @display_x=value; - // if (pbGetMetadata(this.map_id,MetadataSnapEdges)) { + // if (GetMetadata(this.map_id,MetadataSnapEdges)) { // max_x = (this.width - Graphics.width*1.0f/Game_Map.TILEWIDTH) * Game_Map.realResX; // @display_x = Math.Max(0, Math.Min(@display_x, max_x)); // } @@ -560,13 +561,13 @@ public static int realResY { get { // //public int display_y { set { // @display_y=value; - // if (pbGetMetadata(this.map_id,MetadataSnapEdges)) { + // if (GetMetadata(this.map_id,MetadataSnapEdges)) { // int max_y = (this.height - Graphics.height*1.0f/Game_Map.TILEHEIGHT) * Game_Map.realResY; // @display_y = Math.Max(0, Math.Min(@display_y, max_y)); // } // if (GameData.MapFactory != null) GameData.MapFactory.setMapsInRange; //} } - + public void start_scroll(int direction,int distance,int speed) { @scroll_direction = direction; if (direction==2 || direction==8) { @@ -576,19 +577,19 @@ public void start_scroll(int direction,int distance,int speed) { } @scroll_speed = speed; } - + public void scroll_down(int distance) { this.display_y+=distance; } - + public void scroll_left(int distance) { this.display_x-=distance; } - + public void scroll_right(int distance) { this.display_x+=distance; } - + public void scroll_up(int distance) { this.display_y-=distance; } diff --git a/PokemonUnity.Application/Overworld/Safari.cs b/PokemonUnity.Application/Overworld/Safari.cs index a018dd4ff..b2c947a65 100644 --- a/PokemonUnity.Application/Overworld/Safari.cs +++ b/PokemonUnity.Application/Overworld/Safari.cs @@ -5,6 +5,7 @@ using PokemonEssentials.Interface.PokeBattle; using PokemonEssentials.Interface.Screen; using PokemonEssentials.Interface.EventArg; +using PokemonUnity.EventArg; namespace PokemonUnity { @@ -17,13 +18,13 @@ public partial class SafariState : PokemonEssentials.Interface.Field.ISafariStat public SafariState() { initialize(); - - Events.OnMapChange+=Events_OnMapChange; - Events.OnStepTakenTransferPossible+=Events_OnStepTakenTransferPossible; + + Events.OnMapChange+=Events_OnMapChange; + Events.OnStepTakenTransferPossible+=Events_OnStepTakenTransferPossible; Events.OnWildBattleOverride+=Events_OnWildBattleOverride; } - public int pbReceptionMap { get { + public int ReceptionMap { get { //return @inProgress ? @start[0] : 0; //returns mapId return @inProgress ? @start?.MapId??0 : 0; } } @@ -34,9 +35,9 @@ public bool InProgress { get { //bool ISafariState.inprogress { get { return inProgress; } } - public void pbGoToStart() { + public void GoToStart() { if (Game.GameData.Scene is ISceneMap s && Game.GameData is IGameSpriteWindow g) { - g.pbFadeOutIn(99999, block: () => { + g.FadeOutIn(99999, block: () => { Game.GameData.GameTemp.player_transferring = true; Game.GameData.GameTemp.transition_processing = true; Game.GameData.GameTemp.player_new_map_id = @start?.MapId??0; //@start[0]; @@ -48,14 +49,14 @@ public void pbGoToStart() { } } - public void pbStart(int ballcount_) { + public void Start(int ballcount_) { @start=new MetadataPosition() { MapId = Game.GameData.GameMap.map_id, X = Game.GameData.GamePlayer.x, Y = Game.GameData.GamePlayer.y, Direction = Game.GameData.GamePlayer.direction }; @ballcount=ballcount_; @inProgress=true; @steps=Core.SAFARISTEPS; } - public void pbEnd() { + public void End() { @start=null; @ballcount=0; @inProgress=false; @@ -77,26 +78,26 @@ public ISafariState initialize() @inProgress=false; @steps=0; @decision=0; - + return this; } protected virtual void Events_OnMapChange(object sender, IOnMapChangeEventArgs e) { - if (Game.GameData is IGameSafari s && !s.pbInSafari) { - s.pbSafariState.pbEnd(); + if (Game.GameData is IGameSafari s && !s.InSafari) { + s.SafariState.End(); } } protected virtual void Events_OnStepTakenTransferPossible(object sender, IOnStepTakenTransferPossibleEventArgs e) { bool handled=e.Index; if (!handled) return; //(handled) continue; - if (Game.GameData is IGameSafari s && s.pbInSafari && s.pbSafariState.decision==0 && Core.SAFARISTEPS>0) { - s.pbSafariState.steps-=1; - if (s.pbSafariState.steps<=0) { - if (Game.GameData is IGameMessage m0) m0.pbMessage(Game._INTL("PA: Ding-dong!\\1")); - if (Game.GameData is IGameMessage m1) m1.pbMessage(Game._INTL("PA: Your safari game is over!")); - s.pbSafariState.decision=Combat.BattleResults.WON; //1; - s.pbSafariState.pbGoToStart(); + if (Game.GameData is IGameSafari s && s.InSafari && s.SafariState.decision==0 && Core.SAFARISTEPS>0) { + s.SafariState.steps-=1; + if (s.SafariState.steps<=0) { + if (Game.GameData is IGameMessage m0) m0.Message(Game._INTL("PA: Ding-dong!\\1")); + if (Game.GameData is IGameMessage m1) m1.Message(Game._INTL("PA: Your safari game is over!")); + s.SafariState.decision=Combat.BattleResults.WON; //1; + s.SafariState.GoToStart(); handled=true; } } @@ -107,60 +108,67 @@ protected virtual void Events_OnWildBattleOverride(object sender, IOnWildBattleO int level=e.Level; Combat.BattleResults? handled=e.Result; if (handled==null) return; //(handled!=null) continue; - if (Game.GameData is IGameSafari s && s.pbInSafari) return; //(!GameData.pbInSafari) continue; - handled=Game.GameData is IGameSafari s0 ? s0.pbSafariBattle(species,level) : (Combat.BattleResults?)null; + if (Game.GameData is IGameSafari s && s.InSafari) return; //(!GameData.InSafari) continue; + handled=Game.GameData is IGameSafari s0 ? s0.SafariBattle(species,level) : (Combat.BattleResults?)null; } } - public partial class Game : IGameSafari { + public partial class Game : IGameSafari { //event EventHandler IGameSafari.OnMapChange { add { OnMapChange += value; } remove { OnMapChange -= value; } } //event Action IGameSafari.OnStepTakenTransferPossible { add { OnStepTakenTransferPossible += value; } remove { OnStepTakenTransferPossible += value; } } //event Action IGameSafari.OnWildBattleOverride { add { OnWildBattleOverride += value; } remove { OnWildBattleOverride += value; } } - public bool pbInSafari { get { - if (pbSafariState.InProgress) { + public bool InSafari { get { + if (SafariState.InProgress) { // Reception map is handled separately from safari map since the reception // map can be outdoors, with its own grassy patches. - int reception=pbSafariState.pbReceptionMap; + int reception=SafariState.ReceptionMap; if (GameMap.map_id==reception) return true; - //if (pbGetMetadata(GameMap.map_id,MetadataSafariMap)) { - if (pbGetMetadata(GameMap.map_id).Map.SafariMap) { + //if (GetMetadata(GameMap.map_id,MetadataSafariMap)) { + if (GetMetadata(GameMap.map_id).Map.SafariMap) { return true; } } return false; } } - public ISafariState pbSafariState { get { + public ISafariState SafariState { get { if (Global.safariState == null) { Global.safariState=new SafariState(); } return Global.safariState; } } - public Combat.BattleResults pbSafariBattle(Pokemons species,int level) { - IPokemon genwildpoke=(this as IGameField).pbGenerateWildPokemon(species,level); - IPokeBattle_Scene scene=(this as IGameField).pbNewBattleScene(); + public Combat.BattleResults SafariBattle(Pokemons species,int level) { + IPokemon genwildpoke=(this as IGameField).GenerateWildPokemon(species,level); + IPokeBattle_Scene scene=(this as IGameField).NewBattleScene(); ISafariZone_Scene battle=new Combat.PokeBattle_SafariZone(scene,Trainer,null,new IPokemon[] { genwildpoke }); - battle.ballCount=pbSafariState.ballcount; - if (this is IGameField f0) battle.environment=f0.pbGetEnvironment(); + battle.ballCount=SafariState.ballcount; + if (this is IGameField f0) battle.environment=f0.GetEnvironment(); Combat.BattleResults decision=Combat.BattleResults.ABORTED; //0 - if (this is IGameField f1) f1.pbBattleAnimation(pbGetWildBattleBGM(species), block: () => { - f1.pbSceneStandby(block: () => { - decision=battle.pbStartBattle(); + if (this is IGameField f1) f1.BattleAnimation(GetWildBattleBGM(species), block: () => { + f1.SceneStandby(block: () => { + decision=battle.StartBattle(); }); }); - pbSafariState.ballcount=battle.ballCount; + SafariState.ballcount=battle.ballCount; Input.update(); - if (pbSafariState.ballcount<=0) { + if (SafariState.ballcount<=0) { if (decision!=Combat.BattleResults.LOST && decision!=Combat.BattleResults.DRAW) { //!=2 && !=5 - if (Game.GameData is IGameMessage m) m.pbMessage(_INTL("Announcer: You're out of Safari Balls! Game over!")); + if (Game.GameData is IGameMessage m) m.Message(_INTL("Announcer: You're out of Safari Balls! Game over!")); } - pbSafariState.decision=Combat.BattleResults.WON; //1 - pbSafariState.pbGoToStart(); + SafariState.decision=Combat.BattleResults.WON; //1 + SafariState.GoToStart(); } + IOnWildBattleEndEventArgs e = new OnWildBattleEndEventArgs + { + Level = level, + Species = species, + Result = decision + }; //Events.onWildBattleEnd.trigger(null,species,level,decision); - //Events.OnWildBattleEndTrigger(null,species,level,decision); + Events.OnWildBattleEndTrigger(null,species,level,decision); + //Events.OnWildBattleEnd?.Invoke(this, e); return decision; } } diff --git a/PokemonUnity.Application/Overworld/Wild/EncounterData.cs b/PokemonUnity.Application/Overworld/Wild/EncounterData.cs index 743dc4434..c8006f6b4 100644 --- a/PokemonUnity.Application/Overworld/Wild/EncounterData.cs +++ b/PokemonUnity.Application/Overworld/Wild/EncounterData.cs @@ -7,8 +7,8 @@ namespace PokemonUnity.Overworld { /// - /// Data records of pokemon profiles used for pooling together - /// a random chance enounter for a battle against wild pokemons + /// Data records of pokemon profiles used for pooling together + /// a random chance encounter for a battle against wild pokemons /// public struct EncounterData : IEncounterData { @@ -67,7 +67,7 @@ public EncounterData(int id, int mapId, Method method, int slotId, Pokemons[] po /// /// /// - /// ToDo: Consider increasing chance on rarity as encounter increases + /// ToDo: Consider increasing chance on rarity as encounter increases //static PokemonEssentials.Interface.PokeBattle.IPokemon GetWildPokemon(Method method); //static Pokemon WildPokemonRNG(Method method); //conditions diff --git a/PokemonUnity.Application/PokemonUnity.Application.csproj b/PokemonUnity.Application/PokemonUnity.Application.csproj index 86b8f92bd..8167978a2 100644 --- a/PokemonUnity.Application/PokemonUnity.Application.csproj +++ b/PokemonUnity.Application/PokemonUnity.Application.csproj @@ -46,8 +46,8 @@ - + @@ -60,6 +60,8 @@ + + @@ -115,6 +117,8 @@ PokemonUnity.Shared - + + + \ No newline at end of file diff --git a/PokemonUnity.Console/Program.cs b/PokemonUnity.Console/Program.cs index 5b2d5a56b..5252d573d 100644 --- a/PokemonUnity.Console/Program.cs +++ b/PokemonUnity.Console/Program.cs @@ -84,7 +84,7 @@ static void Main(string[] args) battle.weather = Weather.SUNNYDAY; - battle.pbStartBattle(true); + battle.StartBattle(true); } private static void GameDebug_OnLog(object sender, OnDebugEventArgs e) @@ -130,8 +130,8 @@ public IPokeBattle_DebugSceneNoGraphics initialize() return this; } - public void pbDisplay(string v) - //void IHasDisplayMessage.pbDisplay(string v) + public void Display(string v) + //void IHasDisplayMessage.Display(string v) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -139,27 +139,27 @@ public void pbDisplay(string v) System.Console.WriteLine(v); } - void IPokeBattle_DebugSceneNoGraphics.pbDisplayMessage(string msg, bool brief) + void IPokeBattle_DebugSceneNoGraphics.DisplayMessage(string msg, bool brief) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - pbDisplay(msg); + Display(msg); @messageCount += 1; } - void IPokeBattle_DebugSceneNoGraphics.pbDisplayPausedMessage(string msg) + void IPokeBattle_DebugSceneNoGraphics.DisplayPausedMessage(string msg) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - pbDisplay(msg); + Display(msg); @messageCount += 1; } - bool IPokeBattle_DebugSceneNoGraphics.pbDisplayConfirmMessage(string msg) + bool IPokeBattle_DebugSceneNoGraphics.DisplayConfirmMessage(string msg) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - pbDisplay(msg); + Display(msg); @messageCount += 1; System.Console.WriteLine("Y/N?"); @@ -183,14 +183,14 @@ bool IPokeBattle_DebugSceneNoGraphics.pbDisplayConfirmMessage(string msg) return result; } - bool IHasDisplayMessage.pbDisplayConfirm(string v) + bool IHasDisplayMessage.DisplayConfirm(string v) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - return (this as IPokeBattle_DebugSceneNoGraphics).pbDisplayConfirmMessage(v); + return (this as IPokeBattle_DebugSceneNoGraphics).DisplayConfirmMessage(v); } - bool IPokeBattle_DebugSceneNoGraphics.pbShowCommands(string msg, string[] commands, bool defaultValue) + bool IPokeBattle_DebugSceneNoGraphics.ShowCommands(string msg, string[] commands, bool defaultValue) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -199,7 +199,7 @@ bool IPokeBattle_DebugSceneNoGraphics.pbShowCommands(string msg, string[] comman return false; } - int IPokeBattle_DebugSceneNoGraphics.pbShowCommands(string msg, string[] commands, int defaultValue) + int IPokeBattle_DebugSceneNoGraphics.ShowCommands(string msg, string[] commands, int defaultValue) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -208,7 +208,7 @@ int IPokeBattle_DebugSceneNoGraphics.pbShowCommands(string msg, string[] command return 0; } - void IPokeBattle_DebugSceneNoGraphics.pbBeginCommandPhase() + void IPokeBattle_DebugSceneNoGraphics.BeginCommandPhase() { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -219,7 +219,7 @@ void IPokeBattle_DebugSceneNoGraphics.pbBeginCommandPhase() @messageCount = 0; } - void IPokeBattle_DebugSceneNoGraphics.pbStartBattle(PokemonEssentials.Interface.PokeBattle.IBattle battle) + void IPokeBattle_DebugSceneNoGraphics.StartBattle(PokemonEssentials.Interface.PokeBattle.IBattle battle) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -256,41 +256,36 @@ void IPokeBattle_DebugSceneNoGraphics.pbStartBattle(PokemonEssentials.Interface. } } - void IPokeBattle_DebugSceneNoGraphics.pbEndBattle(BattleResults result) + void IPokeBattle_DebugSceneNoGraphics.EndBattle(BattleResults result) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbTrainerSendOut(IBattle battle, IPokemon pkmn) - { - GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - } - - void IPokeBattle_DebugSceneNoGraphics.pbSendOut(IBattle battle, IPokemon pkmn) - { - GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - } + //void IPokeBattle_DebugSceneNoGraphics.TrainerSendOut(IBattle battle, IPokemon pkmn) + //{ + // GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); + //} - void IPokeBattle_DebugSceneNoGraphics.pbTrainerWithdraw(IBattle battle, IPokemon pkmn) + void IPokeBattle_DebugSceneNoGraphics.TrainerWithdraw(IBattle battle, IBattler pkmn) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbWithdraw(IBattle battle, IPokemon pkmn) + void IPokeBattle_DebugSceneNoGraphics.Withdraw(IBattle battle, IBattler pkmn) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - int IPokeBattle_DebugSceneNoGraphics.pbForgetMove(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon, Moves moveToLearn) + int IPokeBattle_DebugSceneNoGraphics.ForgetMove(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon, Moves moveToLearn) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); IMove[] moves = pokemon.moves; string[] commands = new string[4] { - pbMoveString(moves[0], 1), - pbMoveString(moves[1], 2), - pbMoveString(moves[2], 3), - pbMoveString(moves[3], 4) }; + MoveString(moves[0], 1), + MoveString(moves[1], 2), + MoveString(moves[2], 3), + MoveString(moves[3], 4) }; for (int i = 0; i < commands.Length; i++) { System.Console.WriteLine(commands[i]); @@ -331,23 +326,23 @@ int IPokeBattle_DebugSceneNoGraphics.pbForgetMove(PokemonEssentials.Interface.Po return -1; } - void IPokeBattle_DebugSceneNoGraphics.pbBeginAttackPhase() + void IPokeBattle_DebugSceneNoGraphics.BeginAttackPhase() { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - int IPokeBattle_DebugSceneNoGraphics.pbCommandMenu(int index) + int IPokeBattle_DebugSceneNoGraphics.CommandMenu(int index) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - bool shadowTrainer = //(hasConst(PBTypes,:SHADOW) && //Game has shadow pokemons + bool shadowTrainer = //(hasConst(Types,:SHADOW) && //Game has shadow pokemons //@battle.opponent != null; battle.battlers[index] is IPokemonShadowPokemon p && p.hypermode; - System.Console.WriteLine("Enemy: {0} HP: {1}/{2}", battle.battlers[index].pbOpposing1.Name, battle.battlers[index].pbOpposing1.HP, battle.battlers[index].pbOpposing1.TotalHP); - if (battle.battlers[index].pbOpposing2.IsNotNullOrNone()) - System.Console.WriteLine("Enemy: {0} HP: {1}/{2}", battle.battlers[index].pbOpposing2.Name, battle.battlers[index].pbOpposing2.HP, battle.battlers[index].pbOpposing2.TotalHP); + System.Console.WriteLine("Enemy: {0} HP: {1}/{2}", battle.battlers[index].Opposing1.Name, battle.battlers[index].Opposing1.HP, battle.battlers[index].Opposing1.TotalHP); + if (battle.battlers[index].Opposing2.IsNotNullOrNone()) + System.Console.WriteLine("Enemy: {0} HP: {1}/{2}", battle.battlers[index].Opposing2.Name, battle.battlers[index].Opposing2.HP, battle.battlers[index].Opposing2.TotalHP); System.Console.WriteLine("What will {0} do?", battle.battlers[index].Name); System.Console.WriteLine("Fight - 0"); @@ -393,16 +388,16 @@ int IPokeBattle_DebugSceneNoGraphics.pbCommandMenu(int index) //return ret; } - int IPokeBattle_DebugSceneNoGraphics.pbFightMenu(int index) + int IPokeBattle_DebugSceneNoGraphics.FightMenu(int index) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); IBattleMove[] moves = @battle.battlers[index].moves; string[] commands = new string[4] { - pbMoveString(moves[0].thismove, 1), - pbMoveString(moves[1].thismove, 2), - pbMoveString(moves[2].thismove, 3), - pbMoveString(moves[3].thismove, 4) }; + MoveString(moves[0].thismove, 1), + MoveString(moves[1].thismove, 2), + MoveString(moves[2].thismove, 3), + MoveString(moves[3].thismove, 4) }; int index_ = @lastmove[index]; for (int i = 0; i < commands.Length; i++) { @@ -453,7 +448,7 @@ int IPokeBattle_DebugSceneNoGraphics.pbFightMenu(int index) return result; } - Items IPokeBattle_DebugSceneNoGraphics.pbItemMenu(int index) + Items IPokeBattle_DebugSceneNoGraphics.ItemMenu(int index) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -461,7 +456,7 @@ Items IPokeBattle_DebugSceneNoGraphics.pbItemMenu(int index) return Items.NONE; } - int IPokeBattle_DebugSceneNoGraphics.pbChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype) + int IPokeBattle_DebugSceneNoGraphics.ChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -469,7 +464,7 @@ int IPokeBattle_DebugSceneNoGraphics.pbChooseTarget(int index, PokemonUnity.Atta List targets = new List(); for (int i = 0; i < 4; i++) { - //if (@battle.battlers[index].pbIsOpposing(i) && + //if (@battle.battlers[index].IsOpposing(i) && // !@battle.battlers[i].isFainted()) targets.Add(i); if (!@battle.battlers[i].isFainted()) if ((targettype == Targets.RANDOM_OPPONENT @@ -477,13 +472,13 @@ int IPokeBattle_DebugSceneNoGraphics.pbChooseTarget(int index, PokemonUnity.Atta //|| targettype == Targets.OPPONENTS_FIELD || targettype == Targets.SELECTED_POKEMON || targettype == Targets.SELECTED_POKEMON_ME_FIRST) && - @battle.battlers[index].pbIsOpposing(i)) + @battle.battlers[index].IsOpposing(i)) targets.Add(i); else if ((targettype == Targets.ALLY //|| targettype == Targets.USERS_FIELD //|| targettype == Targets.USER_AND_ALLIES || targettype == Targets.USER_OR_ALLY) && - !@battle.battlers[index].pbIsOpposing(i)) + !@battle.battlers[index].IsOpposing(i)) targets.Add(i); } if (targets.Count == 0) return -1; @@ -524,25 +519,25 @@ int IPokeBattle_DebugSceneNoGraphics.pbChooseTarget(int index, PokemonUnity.Atta return result; } - public void pbRefresh() + public void Refresh() { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - //int IPokeBattle_DebugSceneNoGraphics.pbSwitch(int index, bool lax, bool cancancel) - int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel) + //int IPokeBattle_DebugSceneNoGraphics.Switch(int index, bool lax, bool cancancel) + int IPokeBattle_SceneNonInteractive.Switch(int index, bool lax, bool cancancel) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - IPokemon[] party = @battle.pbParty(index); + IPokemon[] party = @battle.Party(index); IList commands = new List(); bool[] inactives = new bool[] { true, true, true, true, true, true }; IList partypos = new List(); //int activecmd = 0; //if cursor is on first or second pokemon when viewing ui int numactive = battle.doublebattle ? 2 : 1; IBattler battler = @battle.battlers[0]; - //commands[commands.Count] = pbPokemonString(party[battler.pokemonIndex]); - commands.Add(pbPokemonString(party[battler.pokemonIndex])); + //commands[commands.Count] = PokemonString(party[battler.pokemonIndex]); + commands.Add(PokemonString(party[battler.pokemonIndex])); //if (battler.Index == index) activecmd = 0; inactives[battler.pokemonIndex] = false; //partypos[partypos.Count] = battler.pokemonIndex; @@ -550,8 +545,8 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel if (@battle.doublebattle) { battler = @battle.battlers[2]; - //commands[commands.Count] = pbPokemonString(party[battler.pokemonIndex]); - commands.Add(pbPokemonString(party[battler.pokemonIndex])); + //commands[commands.Count] = PokemonString(party[battler.pokemonIndex]); + commands.Add(PokemonString(party[battler.pokemonIndex])); //if (battler.Index == index) activecmd = 1; inactives[battler.pokemonIndex] = false; //partypos[partypos.Count] = battler.pokemonIndex; @@ -561,9 +556,9 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel { if (inactives[i]) { - //commands[commands.Count] = pbPokemonString(party[i]); - commands.Add(pbPokemonString(party[i])); - //System.Console.WriteLine(pbPokemonString(party[i])); + //commands[commands.Count] = PokemonString(party[i]); + commands.Add(PokemonString(party[i])); + //System.Console.WriteLine(PokemonString(party[i])); //partypos[partypos.Count] = i; partypos.Add(i); } @@ -582,8 +577,8 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel if (fs.Key == ConsoleKey.D1) { pkmnindex = partypos[0]; - canswitch = lax ? @battle.pbCanSwitchLax(index, pkmnindex, true) : - @battle.pbCanSwitch(index, pkmnindex, true); + canswitch = lax ? @battle.CanSwitchLax(index, pkmnindex, true) : + @battle.CanSwitch(index, pkmnindex, true); if (canswitch) { ret = pkmnindex; @@ -594,8 +589,8 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel else if (fs.Key == ConsoleKey.D2) { pkmnindex = partypos[1]; - canswitch = lax ? @battle.pbCanSwitchLax(index, pkmnindex, true) : - @battle.pbCanSwitch(index, pkmnindex, true); + canswitch = lax ? @battle.CanSwitchLax(index, pkmnindex, true) : + @battle.CanSwitch(index, pkmnindex, true); if (canswitch) { ret = pkmnindex; @@ -606,8 +601,8 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel else if (fs.Key == ConsoleKey.D3) { pkmnindex = partypos[2]; - canswitch = lax ? @battle.pbCanSwitchLax(index, pkmnindex, true) : - @battle.pbCanSwitch(index, pkmnindex, true); + canswitch = lax ? @battle.CanSwitchLax(index, pkmnindex, true) : + @battle.CanSwitch(index, pkmnindex, true); if (canswitch) { ret = pkmnindex; @@ -618,8 +613,8 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel else if (fs.Key == ConsoleKey.D4) { pkmnindex = partypos[3]; - canswitch = lax ? @battle.pbCanSwitchLax(index, pkmnindex, true) : - @battle.pbCanSwitch(index, pkmnindex, true); + canswitch = lax ? @battle.CanSwitchLax(index, pkmnindex, true) : + @battle.CanSwitch(index, pkmnindex, true); if (canswitch) { ret = pkmnindex; @@ -630,8 +625,8 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel else if (fs.Key == ConsoleKey.D5) { pkmnindex = partypos[4]; - canswitch = lax ? @battle.pbCanSwitchLax(index, pkmnindex, true) : - @battle.pbCanSwitch(index, pkmnindex, true); + canswitch = lax ? @battle.CanSwitchLax(index, pkmnindex, true) : + @battle.CanSwitch(index, pkmnindex, true); if (canswitch) { ret = pkmnindex; @@ -642,8 +637,8 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel else if (fs.Key == ConsoleKey.D6) { pkmnindex = partypos[5]; - canswitch = lax ? @battle.pbCanSwitchLax(index, pkmnindex, true) : - @battle.pbCanSwitch(index, pkmnindex, true); + canswitch = lax ? @battle.CanSwitchLax(index, pkmnindex, true) : + @battle.CanSwitch(index, pkmnindex, true); if (canswitch) { ret = pkmnindex; @@ -656,13 +651,13 @@ int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel appearing = false; ret = -1; //CANCEL POKEMON MENU } - } while (appearing && (ret == -2 || ret == -2 || inactives[ret]));//!battle.pbParty(index)[ret].IsNotNullOrNone() + } while (appearing && (ret == -2 || ret == -2 || inactives[ret]));//!battle.Party(index)[ret].IsNotNullOrNone() return ret; } - //public IEnumerator pbHPChanged(PokemonEssentials.Interface.PokeBattle.IBattler pkmn, int oldhp, bool animate) - void IPokeBattle_DebugSceneNoGraphics.pbHPChanged(IBattler pkmn, int oldhp, bool anim) + //public IEnumerator HPChanged(PokemonEssentials.Interface.PokeBattle.IBattler pkmn, int oldhp, bool animate) + void IPokeBattle_DebugSceneNoGraphics.HPChanged(IBattler pkmn, int oldhp, bool anim) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -676,7 +671,7 @@ void IPokeBattle_DebugSceneNoGraphics.pbHPChanged(IBattler pkmn, int oldhp, bool { GameDebug.Log($"[HP change] #{pkmn.ToString()} gained #{hpchange} HP (#{oldhp}=>#{pkmn.HP})"); } - pbRefresh(); + Refresh(); //System.Console.WriteLine("[HP Changed] {0}: oldhp: {1} and animate: {2}", pkmn.Name, oldhp, animate.ToString()); //System.Console.WriteLine("[HP Changed] {0}: CurrentHP: {1}", pkmn.Name, pkmn.HP); @@ -684,88 +679,88 @@ void IPokeBattle_DebugSceneNoGraphics.pbHPChanged(IBattler pkmn, int oldhp, bool //yield return null; } - void IPokeBattle_DebugSceneNoGraphics.pbFainted(IBattler pkmn) + void IPokeBattle_DebugSceneNoGraphics.Fainted(IBattler pkmn) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - //void IPokeBattle_DebugSceneNoGraphics.pbChooseEnemyCommand(int index) - void IPokeBattle_SceneNonInteractive.pbChooseEnemyCommand(int index) + //void IPokeBattle_DebugSceneNoGraphics.ChooseEnemyCommand(int index) + void IPokeBattle_SceneNonInteractive.ChooseEnemyCommand(int index) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - if (battle is IBattleAI b) b.pbDefaultChooseEnemyCommand(index); + if (battle is IBattleAI b) b.DefaultChooseEnemyCommand(index); } - //void IPokeBattle_DebugSceneNoGraphics.pbChooseNewEnemy(int index, IPokemon[] party) - int IPokeBattle_SceneNonInteractive.pbChooseNewEnemy(int index, IPokemon[] party) + //void IPokeBattle_DebugSceneNoGraphics.ChooseNewEnemy(int index, IPokemon[] party) + int IPokeBattle_SceneNonInteractive.ChooseNewEnemy(int index, IPokemon[] party) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - if (battle is IBattleAI b) return b.pbDefaultChooseNewEnemy(index, party); + if (battle is IBattleAI b) return b.DefaultChooseNewEnemy(index, party); return -1; } - void IPokeBattle_DebugSceneNoGraphics.pbWildBattleSuccess() + void IPokeBattle_DebugSceneNoGraphics.WildBattleSuccess() { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbTrainerBattleSuccess() + void IPokeBattle_DebugSceneNoGraphics.TrainerBattleSuccess() { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbEXPBar(IBattler battler, IPokemon thispoke, int startexp, int endexp, int tempexp1, int tempexp2) + void IPokeBattle_DebugSceneNoGraphics.EXPBar(IBattler battler, IPokemon thispoke, int startexp, int endexp, int tempexp1, int tempexp2) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbLevelUp(IBattler battler, IPokemon thispoke, int oldtotalhp, int oldattack, int olddefense, int oldspeed, int oldspatk, int oldspdef) + void IPokeBattle_DebugSceneNoGraphics.LevelUp(IBattler battler, IPokemon thispoke, int oldtotalhp, int oldattack, int olddefense, int oldspeed, int oldspatk, int oldspdef) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - int IPokeBattle_DebugSceneNoGraphics.pbBlitz(int keys) + int IPokeBattle_DebugSceneNoGraphics.Blitz(int keys) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - return battle.pbRandom(30); + return battle.Random(30); } - void ISceneHasChatter.pbChatter(PokemonEssentials.Interface.PokeBattle.IBattler attacker, PokemonEssentials.Interface.PokeBattle.IBattler opponent) + void ISceneHasChatter.Chatter(PokemonEssentials.Interface.PokeBattle.IBattler attacker, PokemonEssentials.Interface.PokeBattle.IBattler opponent) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - //void IPokeBattle_DebugSceneNoGraphics.pbChatter(IBattler attacker, IBattler opponent) + //void IPokeBattle_DebugSceneNoGraphics.Chatter(IBattler attacker, IBattler opponent) //{ // GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); // - // (this as ISceneHasChatter).pbChatter(attacker, opponent); + // (this as ISceneHasChatter).Chatter(attacker, opponent); //} - void IPokeBattle_DebugSceneNoGraphics.pbShowOpponent(int opp) + void IPokeBattle_DebugSceneNoGraphics.ShowOpponent(int opp) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbHideOpponent() + void IPokeBattle_DebugSceneNoGraphics.HideOpponent() { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbRecall(int battlerindex) + void IPokeBattle_DebugSceneNoGraphics.Recall(int battlerindex) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbDamageAnimation(IBattler pkmn, TypeEffective effectiveness) + void IPokeBattle_DebugSceneNoGraphics.DamageAnimation(IBattler pkmn, TypeEffective effectiveness) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); } - void IPokeBattle_DebugSceneNoGraphics.pbBattleArenaJudgment(IBattle b1, IBattle b2, int[] r1, int[] r2) + void IPokeBattle_DebugSceneNoGraphics.BattleArenaJudgment(IBattle b1, IBattle b2, int[] r1, int[] r2) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -773,14 +768,14 @@ void IPokeBattle_DebugSceneNoGraphics.pbBattleArenaJudgment(IBattle b1, IBattle GameDebug.Log($"[Judgment] #{b1.ToString()}:#[{r1.JoinAsString(", ")}], #{b2.ToString()}:#[{r2.JoinAsString(", ")}]"); } - void IPokeBattle_DebugSceneNoGraphics.pbBattleArenaBattlers(IBattle b1, IBattle b2) + void IPokeBattle_DebugSceneNoGraphics.BattleArenaBattlers(IBattle b1, IBattle b2) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); GameDebug.Log($"[#{b1.ToString()} VS #{b2.ToString()}]"); } - void IPokeBattle_DebugSceneNoGraphics.pbCommonAnimation(Moves moveid, IBattler attacker, IBattler opponent, int hitnum) + void IPokeBattle_DebugSceneNoGraphics.CommonAnimation(Moves moveid, IBattler attacker, IBattler opponent, int hitnum) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -788,20 +783,20 @@ void IPokeBattle_DebugSceneNoGraphics.pbCommonAnimation(Moves moveid, IBattler a { if (opponent.IsNotNullOrNone()) { - GameDebug.Log($"[pbCommonAnimation] #{moveid}, #{attacker.ToString()}, #{opponent.ToString()}"); + GameDebug.Log($"[CommonAnimation] #{moveid}, #{attacker.ToString()}, #{opponent.ToString()}"); } else { - GameDebug.Log($"[pbCommonAnimation] #{moveid}, #{attacker.ToString()}"); + GameDebug.Log($"[CommonAnimation] #{moveid}, #{attacker.ToString()}"); } } else { - GameDebug.Log($"[pbCommonAnimation] #{moveid}"); + GameDebug.Log($"[CommonAnimation] #{moveid}"); } } - void IPokeBattle_DebugSceneNoGraphics.pbAnimation(Moves moveid, PokemonEssentials.Interface.PokeBattle.IBattler user, PokemonEssentials.Interface.PokeBattle.IBattler target, int hitnum) + void IPokeBattle_DebugSceneNoGraphics.Animation(Moves moveid, PokemonEssentials.Interface.PokeBattle.IBattler user, PokemonEssentials.Interface.PokeBattle.IBattler target, int hitnum) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -811,30 +806,30 @@ void IPokeBattle_DebugSceneNoGraphics.pbAnimation(Moves moveid, PokemonEssential { if (target.IsNotNullOrNone()) { - GameDebug.Log($"[pbAnimation] #{user.ToString()}, #{target.ToString()}"); + GameDebug.Log($"[Animation] #{user.ToString()}, #{target.ToString()}"); } else { - GameDebug.Log($"[pbAnimation] #{user.ToString()}"); + GameDebug.Log($"[Animation] #{user.ToString()}"); } } else { - GameDebug.Log($"[pbAnimation]"); + GameDebug.Log($"[Animation]"); } } #region Non Interactive Battle Scene - int IPokeBattle_SceneNonInteractive.pbCommandMenu(int index) + int IPokeBattle_SceneNonInteractive.CommandMenu(int index) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - //if (battle.pbRandom(15) == 0) return 1; + //if (battle.Random(15) == 0) return 1; //return 0; - return (this as IPokeBattle_DebugSceneNoGraphics).pbCommandMenu(index); + return (this as IPokeBattle_DebugSceneNoGraphics).CommandMenu(index); } - int IPokeBattle_SceneNonInteractive.pbFightMenu(int index) + int IPokeBattle_SceneNonInteractive.FightMenu(int index) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -844,27 +839,27 @@ int IPokeBattle_SceneNonInteractive.pbFightMenu(int index) // i = Core.Rand.Next(4); //} while (battler.moves[i].id==0); //GameDebug.Log($"i=#{i}, pp=#{battler.moves[i].PP}"); - ////PBDebug.flush; + ////Debug.flush; //return i; - return (this as IPokeBattle_DebugSceneNoGraphics).pbFightMenu(index); + return (this as IPokeBattle_DebugSceneNoGraphics).FightMenu(index); } - Items IPokeBattle_SceneNonInteractive.pbItemMenu(int index) + Items IPokeBattle_SceneNonInteractive.ItemMenu(int index) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); //return -1; - return (this as IPokeBattle_DebugSceneNoGraphics).pbItemMenu(index); + return (this as IPokeBattle_DebugSceneNoGraphics).ItemMenu(index); } - int IPokeBattle_SceneNonInteractive.pbChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype) + int IPokeBattle_SceneNonInteractive.ChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); //List targets = new List(); //for (int i = 0; i < 4; i++) //{ - // if (@battle.battlers[index].pbIsOpposing(i) && + // if (@battle.battlers[index].IsOpposing(i) && // !@battle.battlers[i].isFainted()) // { // targets.Add(i); @@ -872,35 +867,35 @@ int IPokeBattle_SceneNonInteractive.pbChooseTarget(int index, PokemonUnity.Attac //} //if (targets.Count == 0) return -1; //return targets[Core.Rand.Next(targets.Count)]; - return (this as IPokeBattle_DebugSceneNoGraphics).pbChooseTarget(index, targettype); + return (this as IPokeBattle_DebugSceneNoGraphics).ChooseTarget(index, targettype); } - /*int IPokeBattle_SceneNonInteractive.pbSwitch(int index, bool lax, bool cancancel) + /*int IPokeBattle_SceneNonInteractive.Switch(int index, bool lax, bool cancancel) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); - for (int i = 0; i < @battle.pbParty(index).Length - 1; i++) + for (int i = 0; i < @battle.Party(index).Length - 1; i++) { if (lax) { - if (@battle.pbCanSwitchLax(index, i, false)) return i; + if (@battle.CanSwitchLax(index, i, false)) return i; } else { - if (@battle.pbCanSwitch(index, i, false)) return i; + if (@battle.CanSwitch(index, i, false)) return i; } } return -1; } - void IPokeBattle_SceneNonInteractive.pbChooseEnemyCommand(int index) + void IPokeBattle_SceneNonInteractive.ChooseEnemyCommand(int index) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); throw new NotImplementedException(); } - void IPokeBattle_SceneNonInteractive.pbChooseNewEnemy(int index, IPokemon[] party) + void IPokeBattle_SceneNonInteractive.ChooseNewEnemy(int index, IPokemon[] party) { GameDebug.Log("Run: {0}", System.Reflection.MethodBase.GetCurrentMethod().Name); @@ -908,7 +903,7 @@ void IPokeBattle_SceneNonInteractive.pbChooseNewEnemy(int index, IPokemon[] part }*/ #endregion - private string pbPokemonString(IPokemon pkmn) + private string PokemonString(IPokemon pkmn) { string status = string.Empty; if (pkmn.HP <= 0) @@ -939,7 +934,7 @@ private string pbPokemonString(IPokemon pkmn) return $"#{pkmn.Name} (Lv. #{pkmn.Level})#{status} HP: #{pkmn.HP}/#{pkmn.TotalHP}"; } - private string pbPokemonString(IBattler pkmn) + private string PokemonString(IBattler pkmn) { if (!pkmn.pokemon.IsNotNullOrNone()) { @@ -974,7 +969,7 @@ private string pbPokemonString(IBattler pkmn) return $"#{pkmn.Name} (Lv. #{pkmn.Level})#{status} HP: #{pkmn.HP}/#{pkmn.TotalHP}"; } - private string pbMoveString(IMove move, int index) + private string MoveString(IMove move, int index) { string ret = string.Format("{0} - Press {1}", Game._INTL(move.id.ToString(TextScripts.Name)), index); string typename = Game._INTL(move.Type.ToString(TextScripts.Name)); diff --git a/PokemonUnity.Shared/Combat/Trainer/Data/TrainerMetaData.cs b/PokemonUnity.Shared/Combat/Trainer/Data/TrainerMetaData.cs index 18c9ad00f..f78964734 100644 --- a/PokemonUnity.Shared/Combat/Trainer/Data/TrainerMetaData.cs +++ b/PokemonUnity.Shared/Combat/Trainer/Data/TrainerMetaData.cs @@ -9,36 +9,36 @@ public struct TrainerMetaData { #region Variables /// - /// This is how the scripts refer to the trainer type. - /// Typically this is the trainer type's name, - /// but written in all capital letters and with no spaces or symbols. + /// This is how the scripts refer to the trainer type. + /// Typically this is the trainer type's name, + /// but written in all capital letters and with no spaces or symbols. /// The internal name is never seen by the player. /// public TrainerTypes ID { get; private set; } /// - /// The amount of money earned from defeating a trainer of this type. - /// The base money value is multiplied by the highest Level among all the trainer's - /// Pokémon to produce the actual amount of money gained (assuming no other modifiers). - /// Must be a number between 0 and 255. + /// The amount of money earned from defeating a trainer of this type. + /// The base money value is multiplied by the highest Level among all the trainer's + /// Pokémon to produce the actual amount of money gained (assuming no other modifiers). + /// Must be a number between 0 and 255. /// Optional. If undefined, the default is 30. /// public byte BaseMoney { get; private set; } /// - /// The name of a background music (BGM) file in the folder "Audio/BGM". - /// The music that plays during battles against trainers of this type. - /// Typically only defined for Gym Leaders, Elite Four members and rivals. + /// The name of a background music (BGM) file in the folder "Audio/BGM". + /// The music that plays during battles against trainers of this type. + /// Typically only defined for Gym Leaders, Elite Four members and rivals. /// Optional. If undefined, the default BGM is used. /// public string BattleBGM { get; private set; } /// - /// The name of a background music (BGM) file in the folder "Audio/BGM". - /// The victory background music that plays upon defeat of trainers of this type. + /// The name of a background music (BGM) file in the folder "Audio/BGM". + /// The victory background music that plays upon defeat of trainers of this type. /// Optional. If undefined, the default victory BGM is used. /// public string VictoryBGM { get; private set; } /// - /// The name of a music effect (ME) file in the folder "Audio/ME". - /// The music that plays before the battle begins, while still talking to the trainer. + /// The name of a music effect (ME) file in the folder "Audio/ME". + /// The music that plays before the battle begins, while still talking to the trainer. /// Optional. If undefined, the default ME is used. /// public string IntroME { get; private set; } @@ -53,15 +53,15 @@ public struct TrainerMetaData #region NPC Details public bool Double { get; private set; } /// - /// The skill level of all trainers of this type, used for battle AI. - /// Higher numbers represent higher skill levels. - /// Must be a number between 0 and 255. + /// The skill level of all trainers of this type, used for battle AI. + /// Higher numbers represent higher skill levels. + /// Must be a number between 0 and 255. /// Optional. If undefined, default is equal to the base money value. /// public byte SkillLevel { get; private set; } /// - /// A text field which can be used to modify the AI behaviour of all trainers of this type. - /// No such modifiers are defined by default, and there is no standard format. + /// A text field which can be used to modify the AI behavior of all trainers of this type. + /// No such modifiers are defined by default, and there is no standard format. /// See the page Battle AI for more details. /// Optional. If undefined, the default is blank. /// @@ -77,10 +77,10 @@ public struct TrainerMetaData /// /// End of battle /// - public string ScriptBattleEnd { get; private set; } + public string[] ScriptBattleEnd { get; private set; } #endregion - public TrainerMetaData(TrainerTypes id, bool @double, byte baseMoney = 0, bool? gender = null, byte skillLevel = 0, int? skillCodes = null, string introME = null, string battleBGM = null, string victoryBGM = null, string scriptIdle = null, string scriptBattleIntro = null, string scriptBattleEnd = null) + public TrainerMetaData(TrainerTypes id, bool @double, byte baseMoney = 0, bool? gender = null, byte skillLevel = 0, int? skillCodes = null, string introME = null, string battleBGM = null, string victoryBGM = null, string scriptIdle = null, string scriptBattleIntro = null, string[] scriptBattleEnd = null) { ID = id; Double = @double; diff --git a/PokemonUnity.Shared/Framework/Core.cs b/PokemonUnity.Shared/Framework/Core.cs index 05dad1c03..1d402210e 100644 --- a/PokemonUnity.Shared/Framework/Core.cs +++ b/PokemonUnity.Shared/Framework/Core.cs @@ -6,11 +6,12 @@ namespace PokemonUnity /// /// Static and unchanging rules for game to function off of. /// is a singleton - /// that persist throughout the game and inbetween scene levels. + /// that persist throughout the game and in-between scene levels. /// is not an - /// but a series of const variables that will be used as rules + /// but a series of const variables that will be used as rules /// for the game mechanics or structure. /// + /// ToDo: Make a private static class for const int switches public static class Core { #region Constant Values and Game Rules @@ -36,9 +37,9 @@ public static class Core public const sbyte pokemonGeneration = (sbyte)Generation.All; -#pragma warning disable 0162 //Warning CS0162 Unreachable code detected - public static int pokemonGenerationCount { - get { +#pragma warning disable 0162 //Warning CS0162 Unreachable code detected + public static int pokemonGenerationCount { + get { int MaxPoke = 0; int Gen1 = 151; int Gen2 = 251; @@ -79,13 +80,13 @@ public static int pokemonGenerationCount { #endregion return MaxPoke; } } -#pragma warning restore 0162 //Warning CS0162 Unreachable code detected +#pragma warning restore 0162 //Warning CS0162 Unreachable code detected #endregion #region Variables private static object _locker = new object(); /// - /// Constantly revolving random, that won't repeat the same seed number twice, + /// Constantly revolving random, that won't repeat the same seed number twice, /// until it cycles thru all possible seed values /// public static Random Rand { get { return new Random(Seed()); } } @@ -101,13 +102,13 @@ public static UInt16 Seed(bool useFixedSeed = false) { if (!seed.HasValue) { //seed = (UInt16)new Random().Next(0, UInt16.MaxValue); - seed = (UInt16)new Random(DateTime.Now.Millisecond).Next(0, UInt16.MaxValue); + seed = (UInt16)new Random(DateTime.Now.Millisecond).Next(0, UInt16.MaxValue); seed ^= (UInt16)System.DateTime.Now.Ticks; seed &= UInt16.MaxValue; } - if (!useFixedSeed) { + if (!useFixedSeed) { seed = (UInt16)(seed * 0x41C64E6D + 0x6073); - } + } return seed.Value; } } @@ -352,7 +353,7 @@ public static UInt16 Seed(bool useFixedSeed = false) /// public const int STORAGEBOXES = 24; #endregion - + #region Pokedex /// /// Whether the Pokédex list shown is the one for the player's current region diff --git a/PokemonUnity.Shared/Framework/Essentials/Battle/IBugContest.cs b/PokemonUnity.Shared/Framework/Essentials/Battle/IBugContest.cs index 21d0f899a..e2e0bee89 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Battle/IBugContest.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Battle/IBugContest.cs @@ -22,7 +22,7 @@ public interface IBugContestState IBugContestState initialize(); - bool pbContestHeld(); + bool ContestHeld(); bool expired(); @@ -33,42 +33,42 @@ public interface IBugContestState bool undecided { get; } bool decided { get; } - void pbSetPokemon(IPokemon chosenpoke); + void SetPokemon(IPokemon chosenpoke); /// /// Reception map is handled separately from contest map since the reception map /// can be outdoors, with its own grassy patches. /// /// - void pbSetReception(params int[] arg); + void SetReception(params int[] arg); - bool pbOffLimits(int map); + bool OffLimits(int map); - void pbSetJudgingPoint(int startMap, float startX, float startY, int dir = 8); + void SetJudgingPoint(int startMap, float startX, float startY, int dir = 8); - void pbSetContestMap(int map); + void SetContestMap(int map); - void pbJudge(); + void Judge(); //[trainer type, pokemon, level?] - void pbGetPlaceInfo(int place); + void GetPlaceInfo(int place); - void pbClearIfEnded(); + void ClearIfEnded(); - void pbStartJudging(); + void StartJudging(); /// /// Linq through a list of trainers, to confirm if id is present /// /// Trainer Types? /// - bool pbIsContestant(int i); + bool IsContestant(int i); - void pbStart(int ballcount); + void Start(int ballcount); int place { get; } - void pbEnd(bool interrupted = false); + void End(bool interrupted = false); } /// @@ -82,29 +82,29 @@ public interface IGameBugContest /// /// /// - int pbBugContestScore(IPokemon pokemon); + int BugContestScore(IPokemon pokemon); - IBugContestState pbBugContestState { get; } + IBugContestState BugContestState { get; } /// /// Returns true if the Bug Catching Contest in progress /// - bool pbInBugContest { get; } + bool InBugContest { get; } /// /// Returns true if the Bug Catching Contest in progress and has not yet been judged /// - bool pbBugContestUndecided { get; } + bool BugContestUndecided { get; } /// /// Returns true if the Bug Catching Contest in progress and is being judged /// - bool pbBugContestDecided { get; } + bool BugContestDecided { get; } - void pbBugContestStartOver(); + void BugContestStartOver(); - BattleResults pbBugContestBattle(Pokemons species, int level); + BattleResults BugContestBattle(Pokemons species, int level); /// /// Fires whenever the player moves to a new map. Event handler receives the old @@ -112,7 +112,7 @@ public interface IGameBugContest /// event EventHandler OnMapChange; //Events.onMapChange+=delegate(object sender, EventArgs e) { - // pbBugContestState.pbClearIfEnded; + // BugContestState.ClearIfEnded; //} /// @@ -124,9 +124,9 @@ public interface IGameBugContest //Events.onMapSceneChange+=delegate(object sender, EventArgs e) { // scene=e[0]; // mapChanged=e[1]; - // if (pbInBugContest? && pbBugContestState.decision==0 && BugContestState.eimerSeconds>0) { + // if (InBugContest? && BugContestState.decision==0 && BugContestState.eimerSeconds>0) { // scene.spriteset.addUserSprite(new TimerDisplay( - // pbBugContestState.timer, + // BugContestState.timer, // BugContestState.eimerSeconds*Graphics.frame_rate)); // } //} @@ -138,12 +138,12 @@ public interface IGameBugContest //Events.onMapUpdate+=delegate(object sender, EventArgs e) { // if (!Game.GameData.Trainer || !Game.GameData.Global || !Game.GameData.GamePlayer || !Game.GameData.GameMap) { // // do nothing - // } else if (!Game.GameData.GamePlayer.move_route_forcing && !pbMapInterpreterRunning? && + // } else if (!Game.GameData.GamePlayer.move_route_forcing && !MapInterpreterRunning? && // !Game.GameData.GameTemp.message_window_showing) { - // if (pbBugContestState.expired?) { - // Kernel.pbMessage(_INTL("ANNOUNCER: BEEEEEP!")); - // Kernel.pbMessage(_INTL("Time's up!")); - // pbBugContestState.pbStartJudging; + // if (BugContestState.expired?) { + // Kernel.Message(_INTL("ANNOUNCER: BEEEEEP!")); + // Kernel.Message(_INTL("Time's up!")); + // BugContestState.StartJudging; // } // } //} @@ -157,10 +157,10 @@ public interface IGameBugContest //Events.onMapChanging+=delegate(object sender, EventArgs e) { // newmapID=e[0]; // newmap=e[1]; - // if (pbInBugContest?) { - // if (pbBugContestState.pbOffLimits(newmapID)) { + // if (InBugContest?) { + // if (BugContestState.OffLimits(newmapID)) { // // Clear bug contest if player flies/warps/teleports out of the contest - // pbBugContestState.pbEnd(true); + // BugContestState.End(true); // } // } //} @@ -176,8 +176,8 @@ public interface IGameBugContest // level=e[1]; // handled=e[2]; // if (handled[0]!=null) continue; - // if (!pbInBugContest?) continue; - // handled[0]=pbBugContestBattle(species,level); + // if (!InBugContest?) continue; + // handled[0]=BugContestBattle(species,level); //} } @@ -187,14 +187,14 @@ public interface IBattle_BugContestBattle : IBattle //IBattle_BugContestBattle initialize(IPokeBattle_Scene scene, Monster.Pokemon[] p1, Monster.Pokemon[] p2, Combat.Trainer[] player, Combat.Trainer[] opponent, int maxBattlers = 4); - new Items pbItemMenu(int index); - //KeyValuePair pbItemMenu(int index); + new Items ItemMenu(int index); + //KeyValuePair ItemMenu(int index); - new MenuCommands pbCommandMenu(int i); + new MenuCommands CommandMenu(int i); - new void pbStorePokemon(IPokemon pokemon); + new void StorePokemon(IPokemon pokemon); - new void pbEndOfRoundPhase(); + new void EndOfRoundPhase(); } /// diff --git a/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattle.cs b/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattle.cs index e98394fa1..682907175 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattle.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattle.cs @@ -28,48 +28,49 @@ namespace PokemonEssentials.Interface.Battle /// public interface IGameOrgBattle { - bool pbHasEligible(params object[] args); + bool HasEligible(params object[] args); - ITrainer[] pbGetBTTrainers(int challengeID); - IPokemon pbGetBTPokemon(int challengeID); + PokemonUnity.Character.TrainerMetaData[] GetBTTrainers(int challengeID); + IPokemon GetBTPokemon(int challengeID); - void pbRecordLastBattle(); + void RecordLastBattle(); - void pbPlayBattle(IBattleRecordData battledata); + void PlayBattle(IBattleRecordData battledata); - void pbDebugPlayBattle(); + void DebugPlayBattle(); - void pbPlayLastBattle(); + void PlayLastBattle(); - void pbPlayBattleFromFile(string filename); + void PlayBattleFromFile(string filename); - IBattleChallenge pbBattleChallenge(); + IBattleChallenge BattleChallenge { get; } - int pbBattleChallengeTrainer(int numwins, ITrainer[] bttrainers); + //ITrainer BattleChallengeTrainer(int numwins, ITrainer[] bttrainers); + int BattleChallengeTrainer(int numwins, PokemonUnity.Character.TrainerMetaData[] bttrainers); - void pbBattleChallengeGraphic(IEntity @event); + void BattleChallengeGraphic(IEntity @event); - string pbBattleChallengeBeginSpeech(); + string BattleChallengeBeginSpeech(); - bool pbEntryScreen(params object[] arg); + bool EntryScreen(params object[] arg); - IBattle pbBattleChallengeBattle(); + IBattle BattleChallengeBattle(); - IPokemon[] pbBattleFactoryPokemon(IPokemonChallengeRules rule, int numwins, int numswaps, IPokemon[] rentals); + IPokemon[] BattleFactoryPokemon(IPokemonChallengeRules rule, int numwins, int numswaps, IPokemon[] rentals); - ITrainer pbGenerateBattleTrainer(int trainerid, IPokemonChallengeRules rule); + ITrainer GenerateBattleTrainer(int trainerid, IPokemonChallengeRules rule); //ToDo: return bool? - BattleResults pbOrganizedBattleEx(ITrainer opponent, IPokemonChallengeRules challengedata, string endspeech, string endspeechwin); + BattleResults OrganizedBattleEx(ITrainer opponent, IPokemonChallengeRules challengedata, string endspeech, string endspeechwin); - bool pbIsBanned(IPokemon pokemon); + bool IsBanned(IPokemon pokemon); } public interface IPokemonSerialized @@ -124,82 +125,91 @@ public interface IGameMapOrgBattle //: PokemonEssentials.Interface.IGameMap int map_id { get; set; } } - //public interface IGamePlayer - //{ - // int direction { get; set; } - // - // void moveto2(float x, float y); - //} + public interface IGamePlayerOrgBattle //: IGamePlayer + { + int direction { get; } + + void moveto2(float x, float y); + } - public interface IBattleChallengeType + public interface IBattleChallengeType : ICloneable { - int currentWins { get; set; } - int previousWins { get; set; } - int maxWins { get; set; } - int currentSwaps { get; set; } - int previousSwaps { get; set; } - int maxSwaps { get; set; } - int doublebattle { get; set; } - int numPokemon { get; set; } - int battletype { get; set; } - int mode { get; set; } + int currentWins { get; } + int previousWins { get; } + int maxWins { get; } + int currentSwaps { get; } + int previousSwaps { get; } + int maxSwaps { get; } + bool doublebattle { get; } + int numPokemon { get; } + int battletype { get; } + int mode { get; } + int numRounds { get; set; } IBattleChallengeType initialize(); - void saveWins(IBattleChallenge challenge); + void saveWins(IBattleChallengeData challenge); } public interface IBattleChallengeData { - int resting { get; set; } - int wins { get; set; } - int swaps { get; set; } - int inProgress { get; set; } - int battleNumber { get; set; } - int numRounds { get; set; } - int decision { get; set; } - IPokemon[] party { get; set; } - IBattleFactoryData extraData { get; set; } + bool resting { get; } + int wins { get; } + int swaps { get; } + bool inProgress { get; } + int battleNumber { get; } + int numRounds { get; } + BattleResults decision { get; set; } + IPokemon[] party { get; } + IBattleFactoryData extraData { get; } IBattleChallengeData initialize(); void setExtraData(IBattleFactoryData value); - void pbAddWin(); + void AddWin(); - void pbAddSwap(); + void AddSwap(); - bool pbMatchOver(); + bool MatchOver(); - ITrainer nextTrainer(); + //ITrainer nextTrainer(); + int nextTrainer { get; } - void pbGoToStart(); + void GoToStart(); void setParty(IPokemon[] value); - void pbStart(IBattleChallengeType t, int numRounds); + void Start(IBattleChallengeType t, int numRounds); - void pbCancel(); + void Cancel(); - void pbEnd(); + void End(); - void pbGoOn(); + void GoOn(); - void pbRest(); + void Rest(); } public interface IBattleChallenge { int currentChallenge { get; } - int BattleTower { get; } //= 0; - int BattlePalace { get; } //= 1; - int BattleArena { get; } //= 2; - int BattleFactory { get; } //= 3; + //int BattleTower { get; } //= 0; + //int BattlePalace { get; } //= 1; + //int BattleArena { get; } //= 2; + //int BattleFactory { get; } //= 3; IBattleChallenge initialize(); IPokemonChallengeRules rules { get; } + /// + /// + /// + /// + /// 0=>BattleTower; 1=>BattlePalace; 2=>BattleArena; 3=>BattleFactory + /// 1=>Open Level; 2=>Battle Tent + /// IPokemonChallengeRules modeToRules(bool doublebattle, int numPokemon, int battletype, int mode); void set(int id, int numrounds, IPokemonChallengeRules rules); @@ -208,7 +218,7 @@ public interface IBattleChallenge void register(int id, bool doublebattle, int numrounds, int numPokemon, int battletype, int mode= 1); - bool pbInChallenge { get; } + bool InChallenge { get; } //IBattleChallengeData data { get; } IBattleChallengeType data { get; } @@ -225,16 +235,16 @@ public interface IBattleChallenge int getMaxSwaps(int challenge); - void pbStart(int challenge); + void Start(int challenge); - void pbEnd(); + void End(); - //ToDo: returns pbOrganizedBattleEx - BattleResults pbBattle(); + //ToDo: returns OrganizedBattleEx + BattleResults Battle(); - bool pbInProgress { get; } + bool InProgress { get; } - bool pbResting(); + bool Resting(); void setDecision(BattleResults value); @@ -245,13 +255,13 @@ public interface IBattleChallenge int wins { get; } int swaps { get; } int battleNumber { get; } - ITrainer nextTrainer { get; } - void pbGoOn (); - void pbAddWin (); - void pbCancel (); - void pbRest (); - bool pbMatchOver (); - void pbGoToStart (); + int nextTrainer { get; } + void GoOn (); + void AddWin (); + void Cancel (); + void Rest (); + bool MatchOver (); + void GoToStart (); } /// @@ -259,22 +269,22 @@ public interface IBattleChallenge /// public interface IGameEventOrgBattle { - bool pbInChallenge { get; } + bool InChallenge { get; } } public interface IBattleFactoryData { IBattleFactoryData initialize(IBattleChallengeData bcdata); - void pbPrepareRentals(); + void PrepareRentals(); - void pbChooseRentals(); + void ChooseRentals(); - //ToDo: returns pbOrganizedBattleEx - BattleResults pbBattle(IBattleChallenge challenge); + //ToDo: returns OrganizedBattleEx + BattleResults Battle(IBattleChallenge challenge); - void pbPrepareSwaps(); + void PrepareSwaps(); - bool pbChooseSwaps(); + bool ChooseSwaps(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattleGenerator.cs b/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattleGenerator.cs index 46a99272e..2ce153f94 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattleGenerator.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattleGenerator.cs @@ -42,14 +42,14 @@ public interface INonlegendaryRestriction : IBattleRestriction public interface IInverseRestriction : IBattleRestriction { - //void initialize(r); + IBattleRestriction initialize(IBattleRestriction r); //bool isValid (pkmn); } public interface ISingleMatch { - int opponentRating { get; } - int opponentDeviation { get; } + float opponentRating { get; } + float opponentDeviation { get; } int score { get; } int kValue { get; } @@ -66,27 +66,27 @@ public interface IMatchHistory : IEnumerable ISingleMatch this[int i] { get; } - //IMatchHistory initialize(thisPlayer); + IMatchHistory initialize(IPlayerRating thisPlayer); // 1=I won; 0=Other player won; -1: Draw - //void addMatch(otherPlayer, int result); + void addMatch(IPlayerRating otherPlayer, int result); void updateAndClear(); } - public interface IPlayerRatingElo { - float rating { get; } + public interface IPlayerRatingElo : IPlayerRating { + //float rating { get; } //K_VALUE = 16; - IPlayerRatingElo initialize(); + new IPlayerRatingElo initialize(); - float winChancePercent { get; } + //float winChancePercent { get; } - void update(ISingleMatch[] matches); + void update(IList matches); } public interface IPlayerRating { - //float volatility { get; } + float volatility { get; } float deviation { get; } float rating { get; } @@ -94,7 +94,7 @@ public interface IPlayerRating { float winChancePercent { get; } - void update(ISingleMatch[] matches, float system = 1.2f); + void update(IList matches, float system = 1.2f); // private int volatility { get; } @@ -121,21 +121,21 @@ public interface IPlayerRating { // alias volatility2 volatility; - // private void setVolatility2(value) { + // private void setVolatility2(float value) { // @volatility=value; // } - // private void setRating2(value) { + // private void setRating2(float value) { // @estimatedRating=null; // @rating=(value*173.7178)+1500.0; // } - // private void setDeviation2(value) { + // private void setDeviation2(float value) { // @estimatedRating=null; // @deviation=(value*173.7178); // } - // private void getUpdatedVolatility(volatility, deviation, variance,improvementSum, system) { + // private void getUpdatedVolatility(float volatility, float deviation, float variance, float improvementSum, float system) { // improvement = improvementSum * variance; // a = Math.log(volatility * volatility); // squSystem = system * system; @@ -162,11 +162,12 @@ public interface IPlayerRating { } public interface IRuledTeam { - IPlayerRating rating { get; } + //IPlayerRating rating { get; } + float rating { get; } float[] ratingRaw { get; } - double ratingData { get; } + IPlayerRating ratingData { get; } int totalGames { get; } @@ -175,14 +176,14 @@ public interface IRuledTeam { //void compare(IRuledTeam other); bool compare(IRuledTeam other); + //void addMatch(IRuledTeam other, bool? score); void addMatch(IRuledTeam other, int score); - void addMatch(IRuledTeam other, bool? score); int games { get; } - int team { get; } + IList team { get; } - IRuledTeam initialize(List party, IPokemonChallengeRules rule); + IRuledTeam initialize(IList party, IPokemonChallengeRules rule); IPokemon this[int i] { get; } @@ -191,7 +192,7 @@ public interface IRuledTeam { int length { get; } - IPokemon[] load(IPokemon[] party); + IList load(IList party); } public interface IGameOrgBattleGenerator @@ -206,13 +207,13 @@ public interface IGameOrgBattleGenerator //$evolutions = []; //$tmMoves = null; - Moves pbRandomMove(); + Moves RandomMove(); void addMove(ref List moves, Moves move, int @base); - List pbGetLegalMoves2(Pokemons species, int maxlevel); + List GetLegalMoves2(Pokemons species, int maxlevel); - int baseStatTotal(Moves move); + int baseStatTotal(Pokemons move); Pokemons babySpecies(Moves move); @@ -220,7 +221,7 @@ public interface IGameOrgBattleGenerator //void evolutions(Moves move) { // if (!$evolutions[move]) { - // $evolutions[move]=pbGetEvolvedFormData(move); + // $evolutions[move]=GetEvolvedFormData(move); // } // return $evolutions[move] ; //} @@ -231,28 +232,28 @@ public interface IGameOrgBattleGenerator IPokemonChallengeRules withRestr(IPokemonChallengeRules rule, int minbs, int maxbs, int legendary); // The Pokemon list is already roughly arranged by rank from weakest to strongest - IBagScreen[] pbArrangeByTier(IPokemon[] pokemonlist, IPokemonChallengeRules rule); + IBagScreen[] ArrangeByTier(IPokemon[] pokemonlist, IPokemonChallengeRules rule); bool hasMorePowerfulMove(Moves[] moves, Moves thismove); - IPokemon pbRandomPokemonFromRule(IPokemonChallengeRules rule, ITrainer trainer); + IPokemon RandomPokemonFromRule(IPokemonChallengeRules rule, ITrainer trainer); - int pbDecideWinnerEffectiveness(Moves move, Types otype1, Types otype2, Abilities ability, int[] scores); + int DecideWinnerEffectiveness(Moves move, Types otype1, Types otype2, Abilities ability, int[] scores); - float pbDecideWinnerScore(IPokemon[] party0, IPokemon[] party1, double rating); + float DecideWinnerScore(IPokemon[] party0, IPokemon[] party1, double rating); - int pbDecideWinner(IPokemon[] party0, IPokemon[] party1, double rating0, double rating1); + int DecideWinner(IPokemon[] party0, IPokemon[] party1, double rating0, double rating1); - BattleResults pbRuledBattle(IRuledTeam team1, IRuledTeam team2, IPokemonChallengeRules rule); + BattleResults RuledBattle(IRuledTeam team1, IRuledTeam team2, IPokemonChallengeRules rule); Types[] getTypes(Pokemons species); - void pbTrainerInfo(IPokemon[] pokemonlist, string trfile, IPokemonChallengeRules rules); + void TrainerInfo(IPokemon[] pokemonlist, string trfile, IPokemonChallengeRules rules); - //#if FAKERGSS - //public void Kernel.pbMessageDisplay(mw,txt,lbl) { + //#if FAKERGSS + //public void Kernel.MessageDisplay(mw,txt,lbl) { // puts txt; //} @@ -267,13 +268,13 @@ public interface IGameOrgBattleGenerator bool isBattlePokemonDuplicate(IPokemon pk, IPokemon pk2); - //List pbRemoveDuplicates(List party); - IPokemon[] pbRemoveDuplicates(IPokemon[] party); + //List RemoveDuplicates(List party); + IPokemon[] RemoveDuplicates(IPokemon[] party); - void pbReplenishBattlePokemon(ref List party, IPokemonChallengeRules rule); + void ReplenishBattlePokemon(ref List party, IPokemonChallengeRules rule); - IEnumerator pbGenerateChallenge(IPokemonChallengeRules rule, string tag); + IEnumerator GenerateChallenge(IPokemonChallengeRules rule, string tag); - void pbWriteCup(int id, IPokemonChallengeRules rules); + void WriteCup(int id, IPokemonChallengeRules rules); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattleRules.cs b/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattleRules.cs index 7497aa89d..ddaea332c 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattleRules.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Battle/IOrgBattleRules.cs @@ -16,34 +16,34 @@ namespace PokemonEssentials.Interface.Battle /// public interface IGameOrgBattleRules { - int pbBaseStatTotal(Pokemons species); + int BaseStatTotal(Pokemons species); - int pbBalancedLevelFromBST(Pokemons species); + int BalancedLevelFromBST(Pokemons species); - bool pbTooTall(IPokemon pokemon, double maxHeightInMeters); + bool TooTall(IPokemon pokemon, double maxHeightInMeters); - bool pbTooHeavy(IPokemon pokemon, double maxWeightInKg); + bool TooHeavy(IPokemon pokemon, double maxWeightInKg); #region Stadium Cups // ########################################## // Stadium Cups // ########################################## - IPokemonChallengeRules pbPikaCupRules(bool @double); - IPokemonChallengeRules pbPokeCupRules(bool @double); - IPokemonChallengeRules pbPrimeCupRules(bool @double); - IPokemonChallengeRules pbFancyCupRules(bool @double); - IPokemonChallengeRules pbLittleCupRules(bool @double); - IPokemonChallengeRules pbStrictLittleCupRules(bool @double); + IPokemonChallengeRules PikaCupRules(bool @double); + IPokemonChallengeRules PokeCupRules(bool @double); + IPokemonChallengeRules PrimeCupRules(bool @double); + IPokemonChallengeRules FancyCupRules(bool @double); + IPokemonChallengeRules LittleCupRules(bool @double); + IPokemonChallengeRules StrictLittleCupRules(bool @double); #endregion #region Battle Frontier Rules // ########################################## // Battle Frontier Rules // ########################################## - IPokemonChallengeRules pbBattleTowerRules(bool @double, bool openlevel); - IPokemonChallengeRules pbBattlePalaceRules(bool @double, bool openlevel); - IPokemonChallengeRules pbBattleArenaRules(bool openlevel); - IPokemonChallengeRules pbBattleFactoryRules(bool @double, bool openlevel); + IPokemonChallengeRules BattleTowerRules(bool @double, bool openlevel); + IPokemonChallengeRules BattlePalaceRules(bool @double, bool openlevel); + IPokemonChallengeRules BattleArenaRules(bool openlevel); + IPokemonChallengeRules BattleFactoryRules(bool @double, bool openlevel); #endregion } @@ -380,22 +380,22 @@ public interface IPokemonRuleSet public interface IBattleType //: IBattleType { - IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2); + IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2); } public interface IBattleTower : IBattleType { - //IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2); + //IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2); } public interface IBattlePalace : IBattleType { - //IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2); + //IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2); } public interface IBattleArena : IBattleType { - //IBattle pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2); + //IBattle CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2); } public interface IBattleRule //: IBattleRule diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IBerryPlants.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IBerryPlants.cs index 9af32ff81..59b7d36f0 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IBerryPlants.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IBerryPlants.cs @@ -23,8 +23,8 @@ public interface IBerryMetadata public interface ITempMetadataBerryPlants { int berryPlantData { get; } - //int[] pbGetBerryPlantData(Items item); - BerryData pbGetBerryPlantData(Items item); + //int[] GetBerryPlantData(Items item); + BerryData GetBerryPlantData(Items item); } public interface IBerryPlantMoistureSprite : IDisposable { @@ -61,9 +61,9 @@ public interface IBerryPlantSprite : IDisposable { public interface IGameBerryPlants { - void pbBerryPlant(); + void BerryPlant(); - void pbPickBerry(Items berry, int qty = 1); + void PickBerry(Items berry, int qty = 1); /// /// Fires whenever a spriteset is created. diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IDayCare.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IDayCare.cs index 2eb14ca4b..4002db332 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IDayCare.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IDayCare.cs @@ -14,29 +14,29 @@ public interface IDayCare KeyValuePair[] Slot { get; } IPokemon this[int index] { get; } - bool pbEggGenerated(); + bool EggGenerated(); - int pbDayCareDeposited(); + int DayCareDeposited(); - void pbDayCareDeposit(int index); + void DayCareDeposit(int index); - bool pbDayCareGetLevelGain(int index, int nameVariable, int levelVariable); + bool DayCareGetLevelGain(int index, int nameVariable, int levelVariable); - void pbDayCareGetDeposited(int index, int nameVariable, int costVariable); + void DayCareGetDeposited(int index, int nameVariable, int costVariable); - bool pbIsDitto(IPokemon pokemon); + bool IsDitto(IPokemon pokemon); - bool pbDayCareCompatibleGender(IPokemon pokemon1, IPokemon pokemon2); + bool DayCareCompatibleGender(IPokemon pokemon1, IPokemon pokemon2); - int pbDayCareGetCompat(); + int DayCareGetCompat(); - void pbDayCareGetCompatibility(int variable); + void DayCareGetCompatibility(int variable); - void pbDayCareWithdraw(int index); + void DayCareWithdraw(int index); - void pbDayCareChoose(string text, int variable); + void DayCareChoose(string text, int variable); - void pbDayCareGenerateEgg(); + void DayCareGenerateEgg(); //void Events_OnStepTaken (object sender, EventArgs e); //void Events_OnStepTaken(object sender, EventArg.OnStepTakenFieldMovementEventArgs e); diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IDependantEvents.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IDependantEvents.cs index ecd3d0c8e..30527a09a 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IDependantEvents.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IDependantEvents.cs @@ -20,27 +20,27 @@ public interface ITempMetadataDependantEvents { public interface IGameDependantEvents { - void pbRemoveDependencies(); + void RemoveDependencies(); - void pbAddDependency(IGameEvent @event); + void AddDependency(IGameEvent @event); - void pbRemoveDependency(IGameEvent @event); + void RemoveDependency(IGameEvent @event); - void pbAddDependency2(int eventID, string eventName, object commonEvent); + void AddDependency2(int eventID, string eventName, object commonEvent); /// /// Gets the Game_Character object associated with a dependent event. /// /// - //void pbGetDependency(string eventName) { + //void GetDependency(string eventName) { // return Game.GameData.PokemonTemp.dependentEvents.getEventByName(eventName); //} - void pbRemoveDependency2(string eventName); + void RemoveDependency2(string eventName); - bool pbTestPass(IGameCharacter follower, float x, float y, int? direction = null); + bool TestPass(IGameCharacter follower, float x, float y, int? direction = null); /// /// Same map only @@ -63,7 +63,7 @@ public interface IGameDependantEvents /// void jumpFancy(IGameCharacter follower, int direction); - void pbFancyMoveTo(IGameCharacter follower, float newX, float newY); + void FancyMoveTo(IGameCharacter follower, float newX, float newY); /// /// Fires whenever a spriteset is created. @@ -87,7 +87,7 @@ public interface IGameDependantEvents // scene=e[0]; // mapChanged=e[1]; // if (mapChanged) { - // Game.GameData.PokemonTemp.dependentEvents.pbMapChangeMoveDependentEvents; + // Game.GameData.PokemonTemp.dependentEvents.MapChangeMoveDependentEvents; // }} } @@ -116,17 +116,17 @@ public interface IDependentEvents { IDependentEvents initialize(); - int pbEnsureEvent(IGameEvent @event, int newMapID); + int EnsureEvent(IGameEvent @event, int newMapID); - void pbFollowEventAcrossMaps(IGameCharacter leader, IGameCharacter follower, bool instant = false, bool leaderIsTrueLeader = true); + void FollowEventAcrossMaps(IGameCharacter leader, IGameCharacter follower, bool instant = false, bool leaderIsTrueLeader = true); void debugEcho(); - void pbMapChangeMoveDependentEvents(); + void MapChangeMoveDependentEvents(); - void pbMoveDependentEvents(); + void MoveDependentEvents(); - void pbTurnDependentEvents(); + void TurnDependentEvents(); //ToDo: Review Return Datatypes IEnumerator> eachEvent(); diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IEncounters.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IEncounters.cs index f91495ab5..bb9e1ee51 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IEncounters.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IEncounters.cs @@ -29,7 +29,7 @@ namespace PokemonEssentials.Interface.Field // int[] EnctypeCompileDens { get; } //} - public interface IEncounter + public interface IEncounter { Pokemons Pokemon { get; } int Level { get; } @@ -57,24 +57,24 @@ public interface IEncounters //Rename WildEncounters? bool isWater(); - Method? pbEncounterType(); + Method? EncounterType(); bool isEncounterPossibleHere(); void setup(int mapID); - bool pbMapHasEncounter(int mapID, Method enctype); + bool MapHasEncounter(int mapID, Method enctype); - IEncounter pbMapEncounter(int mapID, Method enctype); - //IPokemon pbMapEncounter(int mapID, EncounterTypes enctype); + IEncounter MapEncounter(int mapID, Method enctype); + //IPokemon MapEncounter(int mapID, EncounterTypes enctype); - IEncounter pbEncounteredPokemon(Method enctype, int tries = 1); - //IPokemon pbEncounteredPokemon(EncounterTypes enctype, int tries = 1); + IEncounter EncounteredPokemon(Method enctype, int tries = 1); + //IPokemon EncounteredPokemon(EncounterTypes enctype, int tries = 1); - bool pbCanEncounter(IEncounter encounter); + bool CanEncounter(IEncounter encounter); - IEncounter pbGenerateEncounter(Method enctype); - //IPokemon pbGenerateEncounter(EncounterTypes enctype); + IEncounter GenerateEncounter(Method enctype); + //IPokemon GenerateEncounter(EncounterTypes enctype); #region Encounter Modifiers //############################################################################### @@ -107,7 +107,7 @@ public interface IEncounters //Rename WildEncounters? //private void onWildPokemonCreate(object sender, EventArg.OnWildPokemonCreateEventArgs e) { // Monster.Pokemon pokemon = e[0]; // if (Game.GameData.GameMap.map_id==51) { - // int newlevel=(int)Math.Round(Game.pbBalancedLevel(Game.GameData.Player.Party) - 4 + Core.Rand.Next(5)); // For variety + // int newlevel=(int)Math.Round(Game.BalancedLevel(Game.GameData.Player.Party) - 4 + Core.Rand.Next(5)); // For variety // if (newlevel < 1) newlevel=1; // if (newlevel > Core.MAXIMUMLEVEL) newlevel = Core.MAXIMUMLEVEL; // pokemon.Level=newlevel; @@ -124,7 +124,7 @@ public interface IEncounters //Rename WildEncounters? /// themselves nor their items this way, as those are generated from scratch /// before each battle. /// - /// This is the basis of a trainer modifier. + /// This is the basis of a trainer modifier. //event EventHandler OnTrainerPartyLoad; event Action OnTrainerPartyLoad; //Events.onTrainerPartyLoad+=proc {|sender,e| diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IField.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IField.cs index 8fe5be178..1e5df65df 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IField.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IField.cs @@ -59,11 +59,11 @@ public interface IEncounterModifier /// public interface IGameField { - IPokeBattle_Scene pbNewBattleScene(); + IPokeBattle_Scene NewBattleScene(); - IEnumerator pbSceneStandby(Action block = null); + IEnumerator SceneStandby(Action block = null); - void pbBattleAnimation(IAudioBGM bgm = null, int trainerid = -1, string trainername = "", Action block = null); + void BattleAnimation(IAudioBGM bgm = null, int trainerid = -1, string trainername = "", Action block = null); /// /// Override and use this method if you want to add a custom battle intro animation @@ -79,31 +79,37 @@ public interface IGameField /// /// /// - bool pbBattleAnimationOverride(IViewport viewport, int trainerid = -1, string trainername = ""); + bool BattleAnimationOverride(IViewport viewport, int trainerid = -1, string trainername = ""); - void pbPrepareBattle(IBattle battle); + void PrepareBattle(IBattle battle); - Environments pbGetEnvironment(); + Environments GetEnvironment(); - IPokemon pbGenerateWildPokemon(Pokemons species, int level, bool isroamer = false); + IPokemon GenerateWildPokemon(Pokemons species, int level, bool isroamer = false); - PokemonUnity.Combat.BattleResults pbWildBattle(Pokemons species, int level, int? variable = null, bool canescape = true, bool canlose = false); + bool ControlledWildBattle(Pokemons species, int level, Moves[] moves = null, int? ability = null, + PokemonUnity.Monster.Natures? nature = null, bool? gender = null, Items? item = null, bool? shiny = null, + int outcomeVar = 1, bool canRun = true, bool canLose = false); - PokemonUnity.Combat.BattleResults pbDoubleWildBattle(Pokemons species1, int level1, Pokemons species2, int level2, int? variable = null, bool canescape = true, bool canlose = false); + PokemonUnity.Combat.BattleResults WildBattleCore(IPokemon pkmn, int? variable = null, bool canescape = true, bool canlose = false); - void pbCheckAllFainted(); + PokemonUnity.Combat.BattleResults WildBattle(Pokemons species, int level, int? variable = null, bool canescape = true, bool canlose = false); - void pbEvolutionCheck(int[] currentlevels); + PokemonUnity.Combat.BattleResults DoubleWildBattle(Pokemons species1, int level1, Pokemons species2, int level2, int? variable = null, bool canescape = true, bool canlose = false); - Items[] pbDynamicItemList(params Items[] args); + void CheckAllFainted(); + + void EvolutionCheck(int[] currentlevels); + + Items[] DynamicItemList(params Items[] args); /// /// Runs the Pickup event after a battle if a Pokemon has the ability Pickup. /// /// - void pbPickup(IPokemon pokemon); + void Pickup(IPokemon pokemon); - bool pbEncounter(Method enctype); + bool Encounter(Method enctype); event EventHandler OnStartBattle; //Events.onStartBattle+=delegate(object sender, EventArgs e) { @@ -120,15 +126,15 @@ public interface IGameField // canlose=e[1]; // if (USENEWBATTLEMECHANICS || (decision!=2 && decision!=5)) { // not a loss or a draw // if (Game.GameData.PokemonTemp.evolutionLevels) { - // pbEvolutionCheck(Game.GameData.PokemonTemp.evolutionLevels); + // EvolutionCheck(Game.GameData.PokemonTemp.evolutionLevels); // Game.GameData.PokemonTemp.evolutionLevels=null; // } // } // if (decision==1) { // foreach (var pkmn in Game.GameData.Trainer.party) { - // Kernel.pbPickup(pkmn); + // Kernel.Pickup(pkmn); // if (pkmn.ability == Abilities.HONEYGATHER && !pkmn.isEgg? && !pkmn.hasItem?) { - // if (hasConst(PBItems,:HONEY)) { + // if (hasConst(Items,:HONEY)) { // chance = 5 + ((pkmn.level-1)/10).floor*5; // if (Core.Rand.Next(100) /// /// Map location id - void pbCancelVehicles(int? destination = null); + void CancelVehicles(int? destination = null); - bool pbCanUseBike(int mapid); + bool CanUseBike(int mapid); - void pbMountBike(); + void MountBike(); - void pbDismountBike(); + void DismountBike(); - void pbSetPokemonCenter(); + void SetPokemonCenter(); #endregion #region Fishing - void pbFishingBegin(); + void FishingBegin(); - void pbFishingEnd(); + void FishingEnd(); - bool pbFishing(bool hasencounter, int rodtype = 1); + bool Fishing(bool hasencounter, int rodtype = 1); - bool pbWaitForInput(IWindow msgwindow, string message, int frames); + bool WaitForInput(IWindow msgwindow, string message, int frames); - bool pbWaitMessage(IWindow msgwindow, int time); + bool WaitMessage(IWindow msgwindow, int time); #endregion #region Moving between maps - void pbStartOver(bool gameover = false); + void StartOver(bool gameover = false); - void pbCaveEntranceEx(bool exiting); + void CaveEntranceEx(bool exiting); - void pbCaveEntrance(); + void CaveEntrance(); - void pbCaveExit(); + void CaveExit(); - void pbSetEscapePoint(); + void SetEscapePoint(); - void pbEraseEscapePoint(); + void EraseEscapePoint(); #endregion #region Partner trainer - void pbRegisterPartner(TrainerTypes trainerid, string trainername, int partyid = 0); + void RegisterPartner(TrainerTypes trainerid, string trainername, int partyid = 0); - void pbDeregisterPartner(); + void DeregisterPartner(); #endregion #region Constant checks @@ -210,79 +216,79 @@ public interface IGameField /// healed Pokémon has it. /// /// - bool pbPokerus(); + bool Pokerus(); #endregion - //bool pbBatteryLow(); + //bool BatteryLow(); #region Audio playing - void pbCueBGM(string bgm, float seconds, int? volume = null, float? pitch = null); - void pbCueBGM(IAudioBGM bgm, float seconds, int? volume = null, float? pitch = null); + void CueBGM(string bgm, float seconds, int? volume = null, float? pitch = null); + void CueBGM(IAudioBGM bgm, float seconds, int? volume = null, float? pitch = null); - void pbAutoplayOnTransition(); + void AutoplayOnTransition(); - void pbAutoplayOnSave(); + void AutoplayOnSave(); #endregion #region Voice recorder /// /// /// BGM audio file? - IWaveData pbRecord(string text, float maxtime = 30.0f); + IWaveData Record(string text, float maxtime = 30.0f); - bool pbRxdataExists(string file); + bool RxdataExists(string file); #endregion #region Gaining items - bool pbItemBall(Items item, int quantity = 1); + bool ItemBall(Items item, int quantity = 1); - bool pbReceiveItem(Items item, int quantity = 1); + bool ReceiveItem(Items item, int quantity = 1); - void pbUseKeyItem(); + void UseKeyItem(); #endregion #region Bridges - void pbBridgeOn(float height = 2); + void BridgeOn(float height = 2); - void pbBridgeOff(); + void BridgeOff(); #endregion #region Event locations, terrain tags - bool pbEventFacesPlayer(IGameCharacter _event, IGamePlayer player, float distance); + bool EventFacesPlayer(IGameCharacter _event, IGamePlayer player, float distance); - bool pbEventCanReachPlayer(IGameCharacter _event, IGamePlayer player, float distance); + bool EventCanReachPlayer(IGameCharacter _event, IGamePlayer player, float distance); - ITilePosition pbFacingTileRegular(float? direction = null, IGameCharacter _event = null); + ITilePosition FacingTileRegular(float? direction = null, IGameCharacter _event = null); - ITilePosition pbFacingTile(float? direction = null, IGameCharacter _event = null); + ITilePosition FacingTile(float? direction = null, IGameCharacter _event = null); - bool pbFacingEachOther(IGameCharacter event1, IGameCharacter event2); + bool FacingEachOther(IGameCharacter event1, IGameCharacter event2); - Terrains pbGetTerrainTag(IGameCharacter _event = null, bool countBridge = false); + Terrains GetTerrainTag(IGameCharacter _event = null, bool countBridge = false); - Terrains? pbFacingTerrainTag(IGameCharacter _event = null, float? dir = null); + Terrains? FacingTerrainTag(IGameCharacter _event = null, float? dir = null); #endregion #region Event movement - void pbTurnTowardEvent(IGameCharacter _event, IGameCharacter otherEvent); + void TurnTowardEvent(IGameCharacter _event, IGameCharacter otherEvent); - void pbMoveTowardPlayer(IGameCharacter _event); + void MoveTowardPlayer(IGameCharacter _event); - bool pbJumpToward(int dist = 1, bool playSound = false, bool cancelSurf = false); + bool JumpToward(int dist = 1, bool playSound = false, bool cancelSurf = false); - void pbWait(int numframes); + void Wait(int numframes); #endregion - //IMoveRoute pbMoveRoute(IEntity _event, string[] commands, bool waitComplete= false); + //IMoveRoute MoveRoute(IEntity _event, string[] commands, bool waitComplete= false); #region Screen effects - void pbToneChangeAll(ITone tone, float duration); + void ToneChangeAll(ITone tone, float duration); - void pbShake(int power, int speed, int frames); + void Shake(int power, int speed, int frames); - void pbFlash(IColor color, int frames); + void Flash(IColor color, int frames); - void pbScrollMap(int direction, int distance, float speed); + void ScrollMap(int direction, int distance, float speed); #endregion } @@ -291,12 +297,12 @@ public interface IGameField /// public interface ITempMetadataField { - #region + #region Method? encounterType { get; set; } int[] evolutionLevels { get; set; } #endregion - #region + #region bool batterywarning { get; } IAudioBGM cueBGM { get; set; } float? cueFrames { get; set; } @@ -304,11 +310,11 @@ public interface ITempMetadataField } #region Scene_Map and Spriteset_Map - //public interface ISceneMap - //{ - // void createSingleSpriteset(map); - //} - // + public interface ISceneMapField + { + void createSingleSpriteset(int map); + } + //public interface ISpritesetMap //{ // void getAnimations(); @@ -383,21 +389,21 @@ public interface IInterpreterFieldMixinField /// Used in boulder events. Allows an event to be pushed. To be used in /// a script event command. /// - void pbPushThisEvent(); + void PushThisEvent(); - void pbPushThisBoulder(); + void PushThisBoulder(); - void pbHeadbutt(); + void Headbutt(); - void pbTrainerIntro(TrainerTypes symbol); + void TrainerIntro(TrainerTypes symbol); - void pbTrainerEnd(); + void TrainerEnd(); - object pbParams { get; } + object Params { get; } - void pbGetPokemon(Pokemons id); + void GetPokemon(Pokemons id); - void pbSetEventTime(params int[] arg); + void SetEventTime(params int[] arg); object getVariable(params int[] arg); diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IGlobalMetadata.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IGlobalMetadata.cs index e3c61a89d..ce7ff7405 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IGlobalMetadata.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IGlobalMetadata.cs @@ -26,7 +26,7 @@ public interface IGlobalMetadata bool runtoggle { get; set; } /// /// - /// Should not stack (encourage users to deplete excessive money); + /// Should not stack (encourage users to deplete excessive money); /// reset count based on repel used. ///ToDo: Missing Variables for RepelType, Swarm int repel { get; set; } @@ -55,25 +55,26 @@ public interface IGlobalMetadata /// /// Array storing which Dexes are unlocked /// - bool[] pokedexUnlocked { get; set; } + bool[] pokedexUnlocked { get; set; } /// /// All Dexes of non-zero length and unlocked /// - IList pokedexViable { get; set; } + IList pokedexViable { get; set; } /// /// Dex currently looking at (-1 is National Dex) /// - int pokedexDex { get; set; } + int pokedexDex { get; set; } /// /// Last species viewed per Dex /// - int[] pokedexIndex { get; set; } + int[] pokedexIndex { get; set; } /// /// Search mode /// - int pokedexMode { get; set; } + int pokedexMode { get; set; } ITilePosition healingSpot { get; set; } - float[] escapePoint { get; set; } + //float[] escapePoint { get; set; } + MetadataPosition? escapePoint { get; set; } int pokecenterMapId { get; set; } float pokecenterX { get; set; } float pokecenterY { get; set; } @@ -91,8 +92,8 @@ public interface IGlobalMetadata IBattleRecordData lastbattle { get; set; } IList phoneNumbers { get; set; } /// - /// The time between successive received phone calls is set to a random amount of time between 20 and 40 minutes, - /// and is counted down except when messages are being displayed or the player is being forced to move by a move route. + /// The time between successive received phone calls is set to a random amount of time between 20 and 40 minutes, + /// and is counted down except when messages are being displayed or the player is being forced to move by a move route. /// When this time hits 0, a call from a trainer will be generated. /// int phoneTime { get; set; } diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IHiddenMoves.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IHiddenMoves.cs index 87f379c48..fb6800fe7 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IHiddenMoves.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IHiddenMoves.cs @@ -97,18 +97,18 @@ public interface IGameHiddenMoves /// event EventHandler OnAction; - bool pbCanUseHiddenMove(IPokemon pkmn, Moves move); + bool CanUseHiddenMove(IPokemon pkmn, Moves move); - bool pbUseHiddenMove(IPokemon pokemon, Moves move); + bool UseHiddenMove(IPokemon pokemon, Moves move); - void pbHiddenMoveEvent(); + void HiddenMoveEvent(); #region Hidden move animation - void pbHiddenMoveAnimation(IPokemon pokemon); + void HiddenMoveAnimation(IPokemon pokemon); #endregion #region Cut - bool pbCut(); + bool Cut(); //HiddenMoveHandlers.CanUseMove.add(:CUT,proc{|move,pkmn| @@ -116,9 +116,9 @@ public interface IGameHiddenMoves #endregion #region Headbutt - void pbHeadbuttEffect(IGameCharacter @event); + void HeadbuttEffect(IGameCharacter @event); - void pbHeadbutt(IGameCharacter @event); + void Headbutt(IGameCharacter @event); //HiddenMoveHandlers.CanUseMove.add(:HEADBUTT, proc{| move,pkmn | @@ -126,9 +126,9 @@ public interface IGameHiddenMoves #endregion #region Rock Smash - void pbRockSmashRandomEncounter(); + void RockSmashRandomEncounter(); - bool pbRockSmash(); + bool RockSmash(); //HiddenMoveHandlers.CanUseMove.add(:ROCKSMASH, proc{| move,pkmn | @@ -136,7 +136,7 @@ public interface IGameHiddenMoves #endregion #region Strength - bool pbStrength(); + bool Strength(); //Events.onAction += proc{| sender,e | @@ -146,13 +146,13 @@ public interface IGameHiddenMoves #endregion #region Surf - bool pbSurf(); + bool Surf(); - void pbStartSurfing(); + void StartSurfing(); - bool pbEndSurf(float xOffset, float yOffset); + bool EndSurf(float xOffset, float yOffset); - void pbTransferSurfing(int mapid, float xcoord, float ycoord, float direction); //= Game.GameData.GamePlayer.direction + void TransferSurfing(int mapid, float xcoord, float ycoord, float direction); //= Game.GameData.GamePlayer.direction //Events.onAction += proc{| sender,e | @@ -162,11 +162,11 @@ public interface IGameHiddenMoves #endregion #region Waterfall - void pbAscendWaterfall(IGameCharacter @event = null); + void AscendWaterfall(IGameCharacter @event = null); - void pbDescendWaterfall(IGameCharacter @event = null); + void DescendWaterfall(IGameCharacter @event = null); - bool pbWaterfall(); + bool Waterfall(); //Events.onAction += proc{| sender,e | @@ -176,11 +176,11 @@ public interface IGameHiddenMoves #endregion #region Dive - bool pbDive(); + bool Dive(); - bool pbSurfacing(); + bool Surfacing(); - void pbTransferUnderwater(int mapid, float xcoord, float ycoord, float direction); //= Game.GameData.GamePlayer.direction + void TransferUnderwater(int mapid, float xcoord, float ycoord, float direction); //= Game.GameData.GamePlayer.direction //Events.onAction += proc{| sender,e | @@ -214,7 +214,7 @@ public interface IGameHiddenMoves #endregion #region Sweet Scent - void pbSweetScent(); + void SweetScent(); //HiddenMoveHandlers.CanUseMove.add(:SWEETSCENT,proc{|move,pkmn| diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IMapFactory.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IMapFactory.cs index 15200ea6a..df8f8facb 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IMapFactory.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IMapFactory.cs @@ -51,9 +51,21 @@ public interface IMapChunkUnit public interface ITilePosition { + /// + /// Map ID + /// int MapId { get; } + /// + /// X coordinate on that map + /// float X { get; } + /// + /// Y coordinate on that map + /// float Y { get; } + /// + /// Z coordinate on that map + /// float Z { get; } //IVector Vector { get; } //Terrains Terrain { get; } diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IMiscData.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IMiscData.cs index 537fddad6..57aa27199 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IMiscData.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IMiscData.cs @@ -13,7 +13,7 @@ namespace PokemonEssentials.Interface.Field { - public enum GlobalMetadatas { + public enum GlobalMetadatas { MetadataHome = 1, MetadataWildBattleBGM = 2, MetadataTrainerBattleBGM = 3, @@ -59,9 +59,9 @@ [Serializable] public struct MetadataPlayer public string this[int charset] { get { return ""; } } public string Name { get; set; } /// - /// The player's trainer type . - /// This trainer type is defined in exactly the same way as any other trainer type, - /// and is typically only used by this player character + /// The player's trainer type . + /// This trainer type is defined in exactly the same way as any other trainer type, + /// and is typically only used by this player character /// (although some games may turn an unused player character into a rival instead). /// public int Type { get; set; } @@ -94,7 +94,7 @@ [Serializable] public struct MetadataPlayer /// public string FishingSurf { get; set; } } - [Serializable] public struct MetadataPosition + [Serializable] public struct MetadataPosition : ITilePosition { /// /// Map ID @@ -108,8 +108,9 @@ [Serializable] public struct MetadataPosition /// Y coordinate on that map /// public float Y { get; set; } + public float Z { get; set; } /// - /// Direction the player should face + /// Direction the player should face /// (2=down, 4=left, 6=right, 8=up, 0=retain direction) /// public int Direction { get; set; } @@ -134,21 +135,21 @@ [Serializable] public struct GlobalMetadata { public int MapId { get; set; } /// - /// The charsets mentioned should depict the "default" outfit for that player character, + /// The charsets mentioned should depict the "default" outfit for that player character, /// i.e. they have no outfit ID number at the end of their filenames. /// /// - /// Typically, "PlayerA" will correspond to the male player character, and "PlayerB" the female one. + /// Typically, "PlayerA" will correspond to the male player character, and "PlayerB" the female one. /// public MetadataPlayer[] Players { get; set; } /// /// The point that the player is transferred to when they black out but no Poké Center has been visited yet. /// /// - /// The map identified by this metadata must have an event page with the "Autorun" trigger, - /// which depends on the Game Switch called "Starting Over" (number 1 by default). - /// This event page, when run, must heal all Pokémon in the player's party - /// (use the event command "Recover All: Entire Party" for this), + /// The map identified by this metadata must have an event page with the "Autorun" trigger, + /// which depends on the Game Switch called "Starting Over" (number 1 by default). + /// This event page, when run, must heal all Pokémon in the player's party + /// (use the event command "Recover All: Entire Party" for this), /// and then turn that Game Switch OFF again. /// public MetadataPosition Home { get; set; } @@ -161,27 +162,27 @@ [Serializable] public struct GlobalMetadata /// public string SurfBGM { get; set; } /// - /// The default music that plays during wild Pokémon battles. + /// The default music that plays during wild Pokémon battles. /// It should be placed in the "Audio/BGM" directory. /// public string WildBattleBGM { get; set; } /// - /// The default music that plays during trainer battles. + /// The default music that plays during trainer battles. /// It should be placed in the "Audio/BGM" directory. /// public string TrainerBattleBGM { get; set; } /// - /// The default victory music that plays at the end of a won wild Pokémon battle. + /// The default victory music that plays at the end of a won wild Pokémon battle. /// It should be placed in the "Audio/ME" directory. /// public string WildVictoryME { get; set; } /// - /// The default victory music that plays at the end of a won Trainer battle. + /// The default victory music that plays at the end of a won Trainer battle. /// It should be placed in the "Audio/ME" directory. /// public string TrainerVictoryME { get; set; } /// - /// The default capture music that plays at the end of a captured Pokémon battle. + /// The default capture music that plays at the end of a captured Pokémon battle. /// It should be placed in the "Audio/ME" directory. /// public string WildCaptureME { get; set; } @@ -190,58 +191,58 @@ [Serializable] public struct MapMetadata { public int MapId { get; set; } /// - /// If this is TRUE, this map is an outdoor map. - /// If this is FALSE (or this line doesn't exist), this map is an indoor map. - /// Only outdoor maps will have day/night tinting. + /// If this is TRUE, this map is an outdoor map. + /// If this is FALSE (or this line doesn't exist), this map is an indoor map. + /// Only outdoor maps will have day/night tinting. /// The hidden move Fly can only be used on an outdoor map. /// For which maps: Outdoor maps /// public bool Outdoor { get; set; } /// - /// If this is TRUE, the bicycle can be used on this map. - /// If this is FALSE, it cannot. + /// If this is TRUE, the bicycle can be used on this map. + /// If this is FALSE, it cannot. /// If this line doesn't exist, then the player will only be able to ride a bicycle if this map is an outdoor map. /// For which maps: Non-outdoor maps that can be cycled in /// /// - /// Note that caves are not outdoor maps, - /// and therefore cave maps must have this metadata (set to TRUE) - /// in order to allow the player to cycle in caves. + /// Note that caves are not outdoor maps, + /// and therefore cave maps must have this metadata (set to TRUE) + /// in order to allow the player to cycle in caves. /// This can also apply to gatehouses. /// public bool Bicycle { get; set; } /// - /// If this is TRUE, the player will automatically mount their bicycle upon entering this map, + /// If this is TRUE, the player will automatically mount their bicycle upon entering this map, /// and they cannot dismount it (not even to fish or surf) while on this map. /// For which maps: Cycling Road maps /// /// - /// Note that the player will mount a bicycle upon entering this map even if they don't own one. + /// Note that the player will mount a bicycle upon entering this map even if they don't own one. /// Checks should be made before the player can enter one of these maps, to allow them through only if they own a bicycle. /// public bool BicycleAlways { get; set; } /// /// This is a map ID number followed by the X and Y coordinates of a particular tile in that map. - /// When a map with this metadata is entered (e.g.the interior of a Poké Center), - /// the Teleport destination is changed to the spot described by this metadata. - /// Note that the spot itself is not usually on the same map as the one that has this metadata set; + /// When a map with this metadata is entered (e.g.the interior of a Poké Center), + /// the Teleport destination is changed to the spot described by this metadata. + /// Note that the spot itself is not usually on the same map as the one that has this metadata set; /// the spot is the tile just in front of the entrance to this map (e.g.just in front of a Poké Center's entrance). /// For which maps: Poké Centre interiors /// /// - /// Note that the only thing this metadata affects is the Teleport destination. - /// It does not determine Fly destinations (those are set on the region map in the PBS file "townmap.txt"), - /// nor does it determine where the player goes to after blacking out - /// (this is either set by the script which is part of the Poké Center nurse event, + /// Note that the only thing this metadata affects is the Teleport destination. + /// It does not determine Fly destinations (those are set on the region map in the S file "townmap.txt"), + /// nor does it determine where the player goes to after blacking out + /// (this is either set by the script which is part of the Poké Center nurse event, /// or the global metadata). /// public ITilePosition HealingSpot { get; set; } //map id, x, y /// - /// The position on the region map where this map is located. + /// The position on the region map where this map is located. /// This metadata consists of the region number and this map's X and Y coordinates on that region map. - /// When standing in this map and looking at the Town Map, the player's head icon will be placed on this point to show their current location. - /// Note that this is (pretty much) the only purpose of this setting - /// - it does not name the point or make it a Fly destination + /// When standing in this map and looking at the Town Map, the player's head icon will be placed on this point to show their current location. + /// Note that this is (pretty much) the only purpose of this setting + /// - it does not name the point or make it a Fly destination /// - see the page Region map for those features. /// For which maps: All maps /// @@ -258,13 +259,13 @@ [Serializable] public struct MapMetadata /// public IRegionMapMetadata MapSize { get; set; } /// - /// If this is TRUE, a location signpost stating the map's name will be displayed at the top left of the screen when it is entered. + /// If this is TRUE, a location signpost stating the map's name will be displayed at the top left of the screen when it is entered. /// If this is FALSE (or this line doesn't exist), it won't. /// Typically, this metadata should only be TRUE for outdoor maps and other important areas (e.g.some caves). /// For which maps: Outdoor maps, other important maps /// /// - /// There are some cases where a location signpost will not be displayed even if this metadata says it should. + /// There are some cases where a location signpost will not be displayed even if this metadata says it should. /// See the page Map transfers for more details. /// public bool ShowArea { get; set; } @@ -274,16 +275,16 @@ [Serializable] public struct MapMetadata /// public MetadataWeather? Weather { get; set; } /// - /// If this is TRUE, this map is enshrouded in darkness and a small circle of light will appear around the player. - /// If this is FALSE (or this line doesn't exist), there is no darkness. - /// The player can use the move Flash to illuminate the surroundings, + /// If this is TRUE, this map is enshrouded in darkness and a small circle of light will appear around the player. + /// If this is FALSE (or this line doesn't exist), there is no darkness. + /// The player can use the move Flash to illuminate the surroundings, /// and can only use Flash on dark maps (if it has not already been used). /// For which maps: Dark maps /// public bool DarkMap { get; set; } /// - /// The underwater layer of this map. - /// This metadata defines the map ID of the underwater map related to this map, + /// The underwater layer of this map. + /// This metadata defines the map ID of the underwater map related to this map, /// and is required if this map contains accessible patches of deep water (tiles with terrain tag 5) where the move Dive can be used. /// For which maps: Maps with deep water to dive into /// @@ -293,51 +294,51 @@ [Serializable] public struct MapMetadata public int? DiveMap { get; set; } /// /// If this is TRUE, this map is part of the Safari Zone. - /// Walking in a map that is part of the Safari Zone will decrease the player's Safari Zone step count. - /// Wild Pokémon battles that occur in these maps will be Safari encounters + /// Walking in a map that is part of the Safari Zone will decrease the player's Safari Zone step count. + /// Wild Pokémon battles that occur in these maps will be Safari encounters /// (i.e. the player doesn't use Pokémon, but instead throws bait/rocks, and the wild Pokémon either stays or flees, etc.). /// For which maps: Safari Zone maps /// public bool SafariMap { get; set; } /// - /// If this is TRUE, then the screen cannot scroll past the edges of the map. - /// This avoids showing the black borders beyond the edges of maps, + /// If this is TRUE, then the screen cannot scroll past the edges of the map. + /// This avoids showing the black borders beyond the edges of maps, /// but the camera will not be centred on the player if they are close to the edges. /// public bool SnapEdges { get; set; } /// - /// If this is TRUE, this map is a randomly generated dungeon map which changes layout each time the player enters it. + /// If this is TRUE, this map is a randomly generated dungeon map which changes layout each time the player enters it. /// This map should not be connected to any other map. /// For which maps: Dungeon maps /// public bool Dungeon { get; set; } /// - /// The backdrop picture used for all battles that take place on this map. - /// This setting is a phrase which corresponds to a particular backdrop; + /// The backdrop picture used for all battles that take place on this map. + /// This setting is a phrase which corresponds to a particular backdrop; /// see the page Backgrounds and music for more information. /// public string BattleBack { get; set; } /// - /// The environment in effect on this map. + /// The environment in effect on this map. /// public Environments Environment { get; set; } /// - /// The music played during any wild battles that take place on this map. + /// The music played during any wild battles that take place on this map. /// See the page Backgrounds and music for more information. /// public string WildBattleBGM { get; set; } /// - /// The music played during any trainer battle that takes place on this map. + /// The music played during any trainer battle that takes place on this map. /// See the page Backgrounds and music for more information. /// public string TrainerBattleBGM { get; set; } /// - /// The music played when the player wins a wild Pokémon battle that takes place on this map. + /// The music played when the player wins a wild Pokémon battle that takes place on this map. /// See the page Backgrounds and music for more information. /// public string WildVictoryME { get; set; } /// - /// The music played when the player wins a trainer Pokémon battle that takes place on this map. + /// The music played when the player wins a trainer Pokémon battle that takes place on this map. /// See the page Backgrounds and music for more information. /// public string TrainerVictoryME { get; set; } @@ -354,7 +355,7 @@ public interface IPokemonMetadata { object this[GlobalMetadatas i] { get; } //{ return GlobalTypes[i]; } } object this[MapMetadatas i] { get; } //{ return NonGlobalTypes[i]; } } - + int MapId { get; } GlobalMetadata Global { get; } MapMetadata Map { get; } @@ -444,22 +445,22 @@ public interface IPokemonMetadata public interface IGameMetadataMisc { #region Manipulation methods for metadata, phone data and Pokémon species data - IDictionary pbLoadMetadata(); + IDictionary LoadMetadata(); - //object pbGetMetadata(int mapid,int metadataType); - IPokemonMetadata pbGetMetadata(int mapid); //,int metadataType - //object pbGetMetadata(int mapid, GlobalMetadatas metadataType); - //object pbGetMetadata(int mapid, MapMetadatas metadataType); + //object GetMetadata(int mapid,int metadataType); + IPokemonMetadata GetMetadata(int mapid); //,int metadataType + //object GetMetadata(int mapid, GlobalMetadatas metadataType); + //object GetMetadata(int mapid, MapMetadatas metadataType); - IList pbLoadPhoneData(); + IList LoadPhoneData(); - IList pbOpenDexData(Func, IList> block = null); + IList OpenDexData(Func, IList> block = null); - //void pbDexDataOffset(ref IList dexdata,Pokemons species,int offset) { + //void DexDataOffset(ref IList dexdata,Pokemons species,int offset) { // dexdata.pos=76*(species-1)+offset; //} - void pbClearData(); + void ClearData(); #endregion } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IRandomDungeon.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IRandomDungeon.cs index 29f9e1661..557f0a006 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IRandomDungeon.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IRandomDungeon.cs @@ -176,7 +176,7 @@ public interface IDungeon { public interface IGameDungeon { //IPoint is supposed to be an int array of x and y (`[int x,int y]`) - PokemonUnity.Utility.IPoint pbRandomRoomTile(IDungeon dungeon, ref IList tiles); + PokemonUnity.Utility.IPoint RandomRoomTile(IDungeon dungeon, ref IList tiles); /// /// Fires whenever a map is created. Event handler receives two parameters: the diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/IRoamingPokemon.cs b/PokemonUnity.Shared/Framework/Essentials/Field/IRoamingPokemon.cs index 0601e3dcd..43113a604 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/IRoamingPokemon.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/IRoamingPokemon.cs @@ -31,24 +31,24 @@ public interface IGlobalMetadataRoaming { /// /// Resets all roaming Pokemon that were defeated without having been caught. /// - void pbResetAllRoamers(); + void ResetAllRoamers(); /// /// Gets the roaming areas for a particular Pokémon. /// - int[] pbRoamingAreas(int index); + int[] RoamingAreas(int index); /// /// Puts a roamer in a completely random map available to it. /// /// - void pbRandomRoam(int index); + void RandomRoam(int index); /// /// Roams all roamers, if their Switch is on. /// /// - void pbRoamPokemon(bool ignoretrail = false); + void RoamPokemon(bool ignoretrail = false); /// /// Fires whenever the player moves to a new map. Event handler receives the old @@ -65,7 +65,7 @@ public interface IGlobalMetadataRoaming { event Action OnWildBattleOverride; //Events.OnWildBattleOverride+=proc { |sender,e| - PokemonUnity.Combat.BattleResults pbRoamingPokemonBattle(Pokemons species, int level); + PokemonUnity.Combat.BattleResults RoamingPokemonBattle(Pokemons species, int level); //EncounterModifier.register(proc {|encounter|}); //void register(Func p); @@ -89,6 +89,6 @@ public interface IGlobalMetadataRoaming { /// Water-based only /// /// - bool pbRoamingMethodAllowed(Method enctype); + bool RoamingMethodAllowed(Method enctype); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/ISafariState.cs b/PokemonUnity.Shared/Framework/Essentials/Field/ISafariState.cs index c508c7f4a..a1d790c59 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/ISafariState.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/ISafariState.cs @@ -11,15 +11,15 @@ public interface ISafariState ISafariState initialize(); - int pbReceptionMap { get; } + int ReceptionMap { get; } bool InProgress { get; } - void pbGoToStart(); + void GoToStart(); - void pbStart(int ballcount); + void Start(int ballcount); - void pbEnd(); + void End(); } /// @@ -27,11 +27,11 @@ public interface ISafariState /// public interface IGameSafari { - bool pbInSafari { get; } + bool InSafari { get; } - ISafariState pbSafariState { get; } + ISafariState SafariState { get; } - BattleResults pbSafariBattle(Pokemons species, int level); + BattleResults SafariBattle(Pokemons species, int level); /// /// Fires whenever the player moves to a new map. Event handler receives the old @@ -39,8 +39,8 @@ public interface IGameSafari /// event System.EventHandler OnMapChange; //Events.onMapChange+=proc{|sender,args| - // if (!pbInSafari?) { - // pbSafariState.pbEnd; + // if (!InSafari?) { + // SafariState.End; // } //} @@ -53,13 +53,13 @@ public interface IGameSafari //Events.onStepTakenTransferPossible+=delegate(object sender, EventArgs e) { // handled=e[0]; // if (handled[0]) continue; - // if (pbInSafari? && pbSafariState.decision==0 && SAFARISTEPS>0) { - // pbSafariState.steps-=1; - // if (pbSafariState.steps<=0) { - // Kernel.pbMessage(_INTL("PA: Ding-dong!\1")) ; - // Kernel.pbMessage(_INTL("PA: Your safari game is over!")); - // pbSafariState.decision=1; - // pbSafariState.pbGoToStart; + // if (InSafari? && SafariState.decision==0 && SAFARISTEPS>0) { + // SafariState.steps-=1; + // if (SafariState.steps<=0) { + // Kernel.Message(_INTL("PA: Ding-dong!\1")) ; + // Kernel.Message(_INTL("PA: Your safari game is over!")); + // SafariState.decision=1; + // SafariState.GoToStart; // handled[0]=true; // } // } @@ -76,8 +76,8 @@ public interface IGameSafari // level=e[1]; // handled=e[2]; // if (handled[0]!=null) continue; - // if (!pbInSafari?) continue; - // handled[0]=pbSafariBattle(species,level); + // if (!InSafari?) continue; + // handled[0]=SafariBattle(species,level); //} } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Field/ITime.cs b/PokemonUnity.Shared/Framework/Essentials/Field/ITime.cs index f0be87472..531134fbe 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Field/ITime.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Field/ITime.cs @@ -12,9 +12,9 @@ namespace PokemonEssentials.Interface.Field public interface IGameTime { #region Day and night system - DateTime pbGetTimeNow(); + DateTime GetTimeNow(); - void pbDayNightTint(object obj); + void DayNightTint(object obj); #endregion #region Moon phases and Zodiac @@ -67,47 +67,47 @@ public interface IGameTime #endregion #region Days of the week - bool pbIsWeekday(int wdayVariable, params int[] arg); + bool IsWeekday(int wdayVariable, params int[] arg); #endregion #region Months - bool pbIsMonth(int monVariable, params int[] arg); + bool IsMonth(int monVariable, params int[] arg); - string pbGetAbbrevMonthName(int month); + string GetAbbrevMonthName(int month); #endregion #region Seasons - int pbGetSeason(); + int GetSeason(); - bool pbIsSeason(int seasonVariable, params int[] arg); + bool IsSeason(int seasonVariable, params int[] arg); /// /// Jan, May, Sep /// /// - bool pbIsSpring(); + bool IsSpring(); /// /// Feb, Jun, Oct /// /// - bool pbIsSummer(); + bool IsSummer(); /// /// Mar, Jul, Nov /// /// - bool pbIsAutumn(); + bool IsAutumn(); /// - /// + /// /// /// - bool pbIsFall(); + bool IsFall(); /// /// Apr, Aug, Dec /// /// - bool pbIsWinter(); + bool IsWinter(); - string pbGetSeasonName(int season); + string GetSeasonName(int season); #endregion } @@ -165,6 +165,6 @@ public interface IDayNight { /// ITone getTone(); - int pbGetDayNightMinutes(); + int GetDayNightMinutes(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/IAudioPlay.cs b/PokemonUnity.Shared/Framework/Essentials/IAudioPlay.cs index c26acb6eb..df18f6c2e 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IAudioPlay.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IAudioPlay.cs @@ -15,7 +15,7 @@ namespace PokemonEssentials.Interface { public interface IGameAudioPlay { - IAudioObject pbStringToAudioFile(string str); + IAudioObject StringToAudioFile(string str); /// /// Converts an object to an audio file. @@ -29,7 +29,7 @@ public interface IGameAudioPlay /// Volume of the file, up to 100 /// Pitch of the file, normally 100 /// - IAudioObject pbResolveAudioFile(string str, int? volume = null, float? pitch = null); + IAudioObject ResolveAudioFile(string str, int? volume = null, float? pitch = null); /// /// Converts an object to an audio file. /// @@ -43,7 +43,7 @@ public interface IGameAudioPlay /// filename:volume:pitch /// /// - IAudioObject pbResolveAudioFile(IAudioObject str, int? volume = null, float? pitch = null); + IAudioObject ResolveAudioFile(IAudioObject str, int? volume = null, float? pitch = null); // ############################################################################### @@ -59,7 +59,7 @@ public interface IGameAudioPlay /// filename:volume (pitch 100) /// filename:volume:pitch /// - void pbBGMPlay(string param, int? volume = null, float? pitch = null); + void BGMPlay(string param, int? volume = null, float? pitch = null); /// /// Plays a BGM file. /// @@ -72,19 +72,19 @@ public interface IGameAudioPlay /// filename:volume (pitch 100) /// filename:volume:pitch /// - void pbBGMPlay(IAudioObject param, int? volume = null, float? pitch = null); + void BGMPlay(IAudioObject param, int? volume = null, float? pitch = null); /// /// Fades out or stops BGM playback. /// /// 'x' is the time in seconds to fade out. - void pbBGMFade(float x = 0); + void BGMFade(float x = 0); /// /// Fades out or stops BGM playback. /// /// 'x' is the time in seconds to fade out. - void pbBGMStop(float timeInSeconds = 0); + void BGMStop(float timeInSeconds = 0); // ############################################################################### @@ -100,7 +100,7 @@ public interface IGameAudioPlay /// filename:volume (pitch 100) /// filename:volume:pitch /// - void pbMEPlay(string param, int? volume = null, float? pitch = null); + void MEPlay(string param, int? volume = null, float? pitch = null); /// /// Plays an ME file. /// @@ -113,19 +113,19 @@ public interface IGameAudioPlay /// filename:volume (pitch 100) /// filename:volume:pitch /// - void pbMEPlay(IAudioObject param, int? volume = null, float? pitch = null); + void MEPlay(IAudioObject param, int? volume = null, float? pitch = null); /// /// Fades out or stops ME playback. /// /// 'x' is the time in seconds to fade out. - void pbMEFade(float x = 0); + void MEFade(float x = 0); /// /// Fades out or stops ME playback. /// /// 'x' is the time in seconds to fade out. - void pbMEStop(float timeInSeconds = 0); + void MEStop(float timeInSeconds = 0); // ############################################################################### @@ -141,7 +141,7 @@ public interface IGameAudioPlay /// filename:volume (pitch 100) /// filename:volume:pitch /// - void pbBGSPlay(string param, int? volume = null, float? pitch = null); + void BGSPlay(string param, int? volume = null, float? pitch = null); /// /// Plays a BGS file. /// @@ -154,19 +154,19 @@ public interface IGameAudioPlay /// filename:volume (pitch 100) /// filename:volume:pitch /// - void pbBGSPlay(IAudioObject param, int? volume = null, float? pitch = null); + void BGSPlay(IAudioObject param, int? volume = null, float? pitch = null); /// /// Fades out or stops BGS playback. /// /// 'x' is the time in seconds to fade out. - void pbBGSFade(float x = 0); + void BGSFade(float x = 0); /// /// Fades out or stops BGS playback. /// /// 'x' is the time in seconds to fade out. - void pbBGSStop(float timeInSeconds = 0); + void BGSStop(float timeInSeconds = 0); // ############################################################################### @@ -182,7 +182,7 @@ public interface IGameAudioPlay /// filename:volume (pitch 100) /// filename:volume:pitch /// - void pbSEPlay(string param, int? volume = null, float? pitch = null); + void SEPlay(string param, int? volume = null, float? pitch = null); /// /// Plays an SE file. /// @@ -195,40 +195,40 @@ public interface IGameAudioPlay /// filename:volume (pitch 100) /// filename:volume:pitch /// - void pbSEPlay(IAudioObject param, int? volume = null, float? pitch = null); + void SEPlay(IAudioObject param, int? volume = null, float? pitch = null); /// /// Stops SE playback. /// /// - void pbSEFade(float x = 0); + void SEFade(float x = 0); /// /// Stops SE playback. /// /// - void pbSEStop(float timeInSeconds = 0); + void SEStop(float timeInSeconds = 0); // ############################################################################### /// /// Plays a sound effect that plays when the player moves the cursor. /// - void pbPlayCursorSE(); + void PlayCursorSE(); /// /// Plays a sound effect that plays when a decision is confirmed or a choice is made. /// - void pbPlayDecisionSE(); + void PlayDecisionSE(); /// /// Plays a sound effect that plays when a choice is canceled. /// - void pbPlayCancelSE(); + void PlayCancelSE(); /// /// Plays a buzzer sound effect. /// - void pbPlayBuzzerSE(); + void PlayBuzzerSE(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/IEngine.Sprite.cs b/PokemonUnity.Shared/Framework/Essentials/IEngine.Sprite.cs index c11b76f6b..936cbee50 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IEngine.Sprite.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IEngine.Sprite.cs @@ -22,9 +22,9 @@ public interface ISpriteCharacter : ISprite int groundY { get; } - IBitmap pbBushDepthBitmap(IBitmap bitmap, int depth); + IBitmap BushDepthBitmap(IBitmap bitmap, int depth); - IBitmap pbBushDepthTile(IBitmap bitmap, int depth); + IBitmap BushDepthTile(IBitmap bitmap, int depth); //void dispose(); diff --git a/PokemonUnity.Shared/Framework/Essentials/IEvent.cs b/PokemonUnity.Shared/Framework/Essentials/IEvent.cs index 665e3e833..efe7e5b77 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IEvent.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IEvent.cs @@ -143,11 +143,13 @@ public interface IEvents /// /// Triggers whenever a wild Pokémon is created /// + /// //event EventHandler OnWildPokemonCreate; event Action OnWildPokemonCreate; /// /// Triggers whenever an NPC trainer's Pokémon party is loaded /// + /// //event EventHandler OnTrainerPartyLoad; event Action OnTrainerPartyLoad; /// @@ -183,7 +185,7 @@ public interface IEvents /// e[3] - Y-coordinate of the tile /// //void OnLeaveTileTrigger(object @event, int mapId, IVector tile); - void OnLeaveTileTrigger(object @event, int mapId, float x, float y, float z); + void OnLeaveTileTrigger(IGameEvent @event, int mapId, float x, float y, float z); /// /// Parameters: /// e[0] - Event that just entered a tile. @@ -197,30 +199,32 @@ public interface IEvents /// void OnStepTakenTransferPossibleTrigger(); /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon species /// e[1] - Pokémon level /// e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) /// //void OnWildBattleOverrideTrigger(Pokemons species,int level,BattleResults handled); //object @event, /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon species /// e[1] - Pokémon level /// e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) /// void OnWildBattleEndTrigger(); /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon being created /// + /// void OnWildPokemonCreateTrigger(); /// - /// Parameters: + /// Parameters: /// e[0] - Trainer /// e[1] - Items possessed by the trainer /// e[2] - Party /// + /// void OnTrainerPartyLoadTrigger(); /// /// Parameters: @@ -249,7 +253,7 @@ public interface IEventArgs { int Id { get; } } - + #region Global Overworld EventArgs public interface IOnMapCreateEventArgs : IEventArgs { @@ -258,7 +262,7 @@ public interface IOnMapCreateEventArgs : IEventArgs //int Id { get { return EventId; } } //int Id { get { return Pokemon.GetHashCode(); } } //EventId; int Map { get; set; } - int Tileset { get; set; } + ITileset Tileset { get; set; } } public interface IOnMapChangeEventArgs : IEventArgs { @@ -342,7 +346,7 @@ public interface IOnStepTakenTransferPossibleEventArgs : IEventArgs bool Index { get; set; } } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon species /// e[1] - Pokémon level /// e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) @@ -360,7 +364,7 @@ public interface IOnWildBattleOverrideEventArgs : IEventArgs BattleResults Result { get; set; } } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon species /// e[1] - Pokémon level /// e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) @@ -378,7 +382,7 @@ public interface IOnWildBattleEndEventArgs : IEventArgs BattleResults Result { get; set; } } /// - /// Parameters: + /// Parameters: /// e[0] - Pokémon being created /// public interface IOnWildPokemonCreateEventArgs : IEventArgs @@ -408,7 +412,7 @@ public interface IOnEndBattleEventArgs : IEventArgs BattleResults Decision { get; set; } } /// - /// Parameters: + /// Parameters: /// e[0] - Trainer /// e[1] - Items possessed by the trainer /// e[2] - Party @@ -422,8 +426,8 @@ public interface IOnTrainerPartyLoadEventArgs : IEventArgs /// /// Items possessed by the trainer /// - Items[] Items { get; set; } - IPokemon[] Party { get; set; } + IList Items { get; set; } + IList Party { get; set; } } /// /// Parameters: @@ -460,7 +464,7 @@ public interface IOnSpritesetCreateEventArgs : IEventArgs /// /// Spriteset being created /// - int SpritesetId { get; set; } + ISpritesetMap SpritesetId { get; set; } /// /// Viewport used for tilemap and characters /// diff --git a/PokemonUnity.Shared/Framework/Essentials/IGameEvent.cs b/PokemonUnity.Shared/Framework/Essentials/IGameEvent.cs index c3a5d7be2..1ac587218 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IGameEvent.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IGameEvent.cs @@ -36,7 +36,7 @@ public interface IGameEvent : IGameCharacter //int id { get; } - void pbCheckEventTriggerAfterTurning(); + void CheckEventTriggerAfterTurning(); bool tsOn(string c); @@ -46,10 +46,7 @@ public interface IGameEvent : IGameCharacter void setTempSwitchOff(string c); - object variable - { - get; - } + object variable { get; } void setVariable(int variable); diff --git a/PokemonUnity.Shared/Framework/Essentials/IGamePlayer.cs b/PokemonUnity.Shared/Framework/Essentials/IGamePlayer.cs index 9a598a3ab..c05d1aed6 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IGamePlayer.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IGamePlayer.cs @@ -23,22 +23,22 @@ public interface IGamePlayer : IGameCharacter //IGamePlayer(Game_Map map); //IGamePlayer initialize(IGameMap map); - bool pbHasDependentEvents(); + bool HasDependentEvents(); //void move_down(bool turn_enabled = true); //void move_left(bool turn_enabled = true); //void move_right(bool turn_enabled = true); //void move_up(bool turn_enabled = true); - List pbTriggeredTrainerEvents(int[] triggers, bool checkIfRunning = true); + List TriggeredTrainerEvents(int[] triggers, bool checkIfRunning = true); - List pbTriggeredCounterEvents(int[] triggers, bool checkIfRunning = true); + List TriggeredCounterEvents(int[] triggers, bool checkIfRunning = true); - void pbCheckEventTriggerAfterTurning(); + void CheckEventTriggerAfterTurning(); - bool pbCheckEventTriggerFromDistance(int[] triggers); + bool CheckEventTriggerFromDistance(int[] triggers); - IEntity pbFacingEvent(); + IEntity FacingEvent(); /// /// Passable Determinants /// diff --git a/PokemonUnity.Shared/Framework/Essentials/IGamePlayerRunMovement.cs b/PokemonUnity.Shared/Framework/Essentials/IGamePlayerRunMovement.cs index 2a00a1a34..8b4abc6d1 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IGamePlayerRunMovement.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IGamePlayerRunMovement.cs @@ -16,9 +16,9 @@ public interface IGamePlayerRunMovement void setDefaultCharName(string chname, int pattern); - bool pbCanRun(); + bool CanRun(); - bool pbIsRunning(); + bool IsRunning(); string character_name { get; } diff --git a/PokemonUnity.Shared/Framework/Essentials/IGameSwitches.cs b/PokemonUnity.Shared/Framework/Essentials/IGameSwitches.cs index 63b7cac76..9069cd792 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IGameSwitches.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IGameSwitches.cs @@ -22,23 +22,23 @@ 10 Defeated Gym 7 Used to determine whether the player has defeated the seventh 11 Defeated Gym 8 Used to determine whether the player has defeated the eighth Gym Leader. 12 Defeated Elite Four Used to determine whether the player has defeated the Elite Four. 13 Fossil revival in progress Used to determine whether the Fossil Reviver is currently busy reviving a fossil which the player has given him. Typically turned OFF again in the door event that leads out of the Fossil Reviver's lab. -14 *s:PBDayNight.isDay? Is ON during the day (i.e. between 5am and 8pm), and OFF otherwise (i.e. during the night). -15 *s:PBDayNight.isNight? Is ON during the night (i.e. between 8pm and 5am), and OFF otherwise (i.e. during the day). -16 *s:PBDayNight.isMorning? Is ON during the morning (i.e. between 5am and 10am), and OFF otherwise. -17 *s:PBDayNight.isAfternoon? Is ON during the afternoon (i.e. between 2pm and 5pm), and OFF otherwise. -18 *s:PBDayNight.isEvening? Is ON during the evening (i.e. between 5pm and 8pm), and OFF otherwise. -19 *s:pbIsWeekday(-1,2,4,6) Is ON if the current day is Tuesday, Thursday or Saturday, and OFF otherwise. -20 *s:!pbIsWeekday(-1,2,4,6) The opposite of Switch 19. Is ON if the current day is Monday, Wednesday, Friday or Sunday, and OFF otherwise. +14 *s:DayNight.isDay? Is ON during the day (i.e. between 5am and 8pm), and OFF otherwise (i.e. during the night). +15 *s:DayNight.isNight? Is ON during the night (i.e. between 8pm and 5am), and OFF otherwise (i.e. during the day). +16 *s:DayNight.isMorning? Is ON during the morning (i.e. between 5am and 10am), and OFF otherwise. +17 *s:DayNight.isAfternoon? Is ON during the afternoon (i.e. between 2pm and 5pm), and OFF otherwise. +18 *s:DayNight.isEvening? Is ON during the evening (i.e. between 5pm and 8pm), and OFF otherwise. +19 *s:IsWeekday(-1,2,4,6) Is ON if the current day is Tuesday, Thursday or Saturday, and OFF otherwise. +20 *s:!IsWeekday(-1,2,4,6) The opposite of Switch 19. Is ON if the current day is Monday, Wednesday, Friday or Sunday, and OFF otherwise. 21 *s:tsOn?("A") Is ON if the event's temporary switch A is ON, and OFF if the event's temporary switch A is OFF. 22 *s:tsOff?("A") Is ON if the event's temporary switch A is OFF, and OFF if the event's temporary switch A is ON. 23 *s:cooledDown?(86400) Is ON if 24 hours (86400 seconds) have passed since the event's variable was set (to the current time then), and if the event's Self Switch A is ON. 24 *s:cooledDownDays?(1) Is ON if the current day is different to the day on which the event's variable was set (to the current time then), and if the event's Self Switch A is ON. -25 *s:pbInSafari? Is ON if the player is currently in the Safari Zone, and OFF if they are not. -26 *s:pbBugContestUndecided? Is ON during a Bug Catching Contest. -27 *s:pbBugContestDecided? Is ON after a Bug Catching Contest has finished. It is used to begin the judging and to show other Contest participants standing around afterwards. -28 *s:pbInChallenge? Is ON if the player is currently participating in a Battle Frontier challenge. +25 *s:InSafari? Is ON if the player is currently in the Safari Zone, and OFF if they are not. +26 *s:BugContestUndecided? Is ON during a Bug Catching Contest. +27 *s:BugContestDecided? Is ON after a Bug Catching Contest has finished. It is used to begin the judging and to show other Contest participants standing around afterwards. +28 *s:InChallenge? Is ON if the player is currently participating in a Battle Frontier challenge. 29 Has National Dex Used to determine whether the player has the National Dex. This Switch does not cause the player to have the National Dex, though. -30 *s:pbNextMysteryGiftID>0 Is ON if there is a downloaded Mystery Gift which has not yet been collected, and OFF if there are none. +30 *s:NextMysteryGiftID>0 Is ON if there is a downloaded Mystery Gift which has not yet been collected, and OFF if there are none. 31 Shiny wild Pokémon While this Switch is ON, all wild Pokémon encountered will be shiny. 32 Fateful encounters While this Switch is ON, all Pokémon created will be fateful encounters. 33 No money lost in battle While this Switch is ON, the player will not lose any money if they lose a wild battle or a trainer battle. They can still gain money from winning trainer battles/using Pay Day, though. diff --git a/PokemonUnity.Shared/Framework/Essentials/IGameUtility.cs b/PokemonUnity.Shared/Framework/Essentials/IGameUtility.cs index b675f64d8..e6685b97b 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IGameUtility.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IGameUtility.cs @@ -25,7 +25,7 @@ public interface IGameUtility //static string _INTL(string message, params object[] param); #region General purpose utilities - bool _pbNextComb(int[] comb, int length); + bool _NextComb(int[] comb, int length); /// /// Iterates through the array and yields each combination of @@ -34,25 +34,25 @@ public interface IGameUtility /// /// /// - //IEnumerator pbEachCombination(T[] array, int num); - IEnumerable pbEachCombination(T[] array, int num); + //IEnumerator EachCombination(T[] array, int num); + IEnumerable EachCombination(T[] array, int num); /// /// Gets the path of the user's "My Documents" folder. /// /// - string pbGetMyDocumentsFolder(); + string GetMyDocumentsFolder(); /// /// Returns a country ID /// /// http://msdn.microsoft.com/en-us/library/dd374073%28VS.85%29.aspx? - int pbGetCountry(); + int GetCountry(); /// /// Returns a language ID /// - int pbGetLanguage(); + int GetLanguage(); /// /// Converts a Celsius temperature to Fahrenheit. @@ -70,21 +70,21 @@ public interface IGameUtility #endregion #region Player-related utilities, random name generator - //bool pbChangePlayer(int id); - void pbChangePlayer(int id); + //bool ChangePlayer(int id); + void ChangePlayer(int id); - string pbGetPlayerGraphic(); + string GetPlayerGraphic(); - TrainerTypes pbGetPlayerTrainerType(); + TrainerTypes GetPlayerTrainerType(); - int pbGetTrainerTypeGender(TrainerTypes trainertype); - //bool? pbGetTrainerTypeGender(TrainerTypes trainertype); + int GetTrainerTypeGender(TrainerTypes trainertype); + //bool? GetTrainerTypeGender(TrainerTypes trainertype); - void pbTrainerName(string name = null, int outfit = 0); + void TrainerName(string name = null, int outfit = 0); - string pbSuggestTrainerName(int gender); + string SuggestTrainerName(int gender); - string pbGetUserName(); + string GetUserName(); string getRandomNameEx(int type, int? variable, int? upper, int maxLength = 100); @@ -92,20 +92,20 @@ public interface IGameUtility #endregion #region Event timing utilities - void pbTimeEvent(int? variableNumber, int secs = 86400); + void TimeEvent(int? variableNumber, int secs = 86400); - void pbTimeEventDays(int? variableNumber, int days = 0); + void TimeEventDays(int? variableNumber, int days = 0); - bool pbTimeEventValid(int? variableNumber); + bool TimeEventValid(int? variableNumber); #endregion #region General-purpose utilities with dependencies /// - /// Similar to pbFadeOutIn, but pauses the music as it fades out. - /// Requires scripts "Audio" (for bgm_pause) and "SpriteWindow" (for pbFadeOutIn). + /// Similar to FadeOutIn, but pauses the music as it fades out. + /// Requires scripts "Audio" (for bgm_pause) and "SpriteWindow" (for FadeOutIn). /// /// - void pbFadeOutInWithMusic(int zViewport, Action block = null); + void FadeOutInWithMusic(int zViewport, Action block = null); /// /// Gets the wave data from a file and displays an message if an error occurs. @@ -127,25 +127,25 @@ public interface IGameUtility /// Requires the script "PokemonMessages" bool beginRecordUI(); - IList pbHideVisibleObjects(); + IList HideVisibleObjects(); - void pbShowObjects(IList visibleObjects); + void ShowObjects(IList visibleObjects); - void pbLoadRpgxpScene(ISceneMap scene); + void LoadRpgxpScene(ISceneMap scene); /// /// Gets the value of a variable. /// /// /// - object pbGet(int? id); + object Get(int? id); /// /// Sets the value of a variable. /// /// /// - void pbSet(int? id, object value); + void Set(int? id, object value); /// /// Runs a common event and waits until the common event is finished. @@ -153,131 +153,131 @@ public interface IGameUtility /// Requires the script "PokemonMessages" /// /// - bool pbCommonEvent(int id); + bool CommonEvent(int id); - void pbExclaim(IGameCharacter[] @event, int id = Core.EXCLAMATION_ANIMATION_ID, bool tinting = false); + void Exclaim(IGameCharacter[] @event, int id = Core.EXCLAMATION_ANIMATION_ID, bool tinting = false); - void pbNoticePlayer(IGameCharacter @event); + void NoticePlayer(IGameCharacter @event); #endregion #region Loads Pokémon/item/trainer graphics - [System.Obsolete("Unused")] string pbPokemonBitmapFile(Pokemons species, bool shiny, bool back = false); + [System.Obsolete("Unused")] string PokemonBitmapFile(Pokemons species, bool shiny, bool back = false); - //IAnimatedBitmap pbLoadPokemonBitmap(IPokemon pokemon, bool back = false); + //IAnimatedBitmap LoadPokemonBitmap(IPokemon pokemon, bool back = false); // Note: Returns an AnimatedBitmap, not a Bitmap - //IAnimatedBitmap pbLoadPokemonBitmapSpecies(IPokemon pokemon, Pokemons species, bool back= false); + //IAnimatedBitmap LoadPokemonBitmapSpecies(IPokemon pokemon, Pokemons species, bool back= false); // Note: Returns an AnimatedBitmap, not a Bitmap - //IAnimatedBitmap pbLoadSpeciesBitmap(Pokemons species, bool female = false, int form = 0, bool shiny = false, bool shadow = false, bool back = false, bool egg = false); + //IAnimatedBitmap LoadSpeciesBitmap(Pokemons species, bool female = false, int form = 0, bool shiny = false, bool shadow = false, bool back = false, bool egg = false); - //IBitmap pbCheckPokemonBitmapFiles(Pokemons species, bool female = false, int form = 0, bool shiny = false, bool shadow = false, bool back = false, bool egg = false); - string pbCheckPokemonBitmapFiles(params object[] arg); + //IBitmap CheckPokemonBitmapFiles(Pokemons species, bool female = false, int form = 0, bool shiny = false, bool shadow = false, bool back = false, bool egg = false); + string CheckPokemonBitmapFiles(params object[] arg); - //IAnimatedBitmap pbLoadPokemonIcon(IPokemon pokemon); + //IAnimatedBitmap LoadPokemonIcon(IPokemon pokemon); - string pbPokemonIconFile(IPokemon pokemon); + string PokemonIconFile(IPokemon pokemon); - string pbCheckPokemonIconFiles(object[] param, bool egg = false); + string CheckPokemonIconFiles(object[] param, bool egg = false); // Used by the Pokédex - string pbPokemonFootprintFile(Pokemons pokemon); - string pbPokemonFootprintFile(IPokemon pokemon); + string PokemonFootprintFile(Pokemons pokemon); + string PokemonFootprintFile(IPokemon pokemon); - string pbItemIconFile(Items item); + string ItemIconFile(Items item); - string pbMailBackFile(Items item); + string MailBackFile(Items item); - string pbTrainerCharFile(TrainerTypes type); + string TrainerCharFile(TrainerTypes type); - string pbTrainerCharNameFile(TrainerTypes type); + string TrainerCharNameFile(TrainerTypes type); - string pbTrainerHeadFile(TrainerTypes type); + string TrainerHeadFile(TrainerTypes type); - string pbPlayerHeadFile(TrainerTypes type); + string PlayerHeadFile(TrainerTypes type); - string pbTrainerSpriteFile(TrainerTypes type); + string TrainerSpriteFile(TrainerTypes type); - string pbTrainerSpriteBackFile(TrainerTypes type); + string TrainerSpriteBackFile(TrainerTypes type); - string pbPlayerSpriteFile(TrainerTypes type); + string PlayerSpriteFile(TrainerTypes type); - string pbPlayerSpriteBackFile(TrainerTypes type); + string PlayerSpriteBackFile(TrainerTypes type); #endregion #region Loads music and sound effects - string pbResolveAudioSE(string file); + string ResolveAudioSE(string file); - int pbCryFrameLength(IPokemon pokemon, float? pitch = null); + int CryFrameLength(IPokemon pokemon, float? pitch = null); - void pbPlayCry(Pokemons pokemon, int volume = 90, float? pitch = null); + void PlayCry(Pokemons pokemon, int volume = 90, float? pitch = null); - void pbPlayCry(IPokemon pokemon, int volume = 90, float? pitch = null); + void PlayCry(IPokemon pokemon, int volume = 90, float? pitch = null); - string pbCryFile(Pokemons pokemon); + string CryFile(Pokemons pokemon); - string pbCryFile(IPokemon pokemon); + string CryFile(IPokemon pokemon); - IAudioBGM pbGetWildBattleBGM(Pokemons species); + IAudioBGM GetWildBattleBGM(Pokemons species); - IAudioME pbGetWildVictoryME(); + IAudioME GetWildVictoryME(); - void pbPlayTrainerIntroME(TrainerTypes trainertype); + void PlayTrainerIntroME(TrainerTypes trainertype); // can be a PokeBattle_Trainer or an array of PokeBattle_Trainer - IAudioBGM pbGetTrainerBattleBGM(params ITrainer[] trainer); + IAudioBGM GetTrainerBattleBGM(params ITrainer[] trainer); - IAudioBGM pbGetTrainerBattleBGMFromType(TrainerTypes trainertype); + IAudioBGM GetTrainerBattleBGMFromType(TrainerTypes trainertype); // can be a PokeBattle_Trainer or an array of PokeBattle_Trainer - IAudioME pbGetTrainerVictoryME(params ITrainer[] trainer); + IAudioME GetTrainerVictoryME(params ITrainer[] trainer); #endregion #region Creating and storing Pokémon - bool pbBoxesFull(); + bool BoxesFull(); - void pbNickname(IPokemon pokemon); + void Nickname(IPokemon pokemon); - void pbStorePokemon(IPokemon pokemon); + void StorePokemon(IPokemon pokemon); - void pbNicknameAndStore(IPokemon pokemon); + void NicknameAndStore(IPokemon pokemon); - bool pbAddPokemon(Pokemons pokemon, int? level = null, bool seeform = true); - bool pbAddPokemon(IPokemon pokemon, int? level = null, bool seeform = true); + bool AddPokemon(Pokemons pokemon, int? level = null, bool seeform = true); + bool AddPokemon(IPokemon pokemon, int? level = null, bool seeform = true); - bool pbAddPokemonSilent(Pokemons pokemon, int? level = null, bool seeform = true); - bool pbAddPokemonSilent(IPokemon pokemon, int? level = null, bool seeform = true); + bool AddPokemonSilent(Pokemons pokemon, int? level = null, bool seeform = true); + bool AddPokemonSilent(IPokemon pokemon, int? level = null, bool seeform = true); - bool pbAddToParty(Pokemons pokemon, int? level = null, bool seeform = true); - bool pbAddToParty(IPokemon pokemon, int? level = null, bool seeform = true); + bool AddToParty(Pokemons pokemon, int? level = null, bool seeform = true); + bool AddToParty(IPokemon pokemon, int? level = null, bool seeform = true); - bool pbAddToPartySilent(Pokemons pokemon, int? level = null, bool seeform = true); - bool pbAddToPartySilent(IPokemon pokemon, int? level = null, bool seeform = true); + bool AddToPartySilent(Pokemons pokemon, int? level = null, bool seeform = true); + bool AddToPartySilent(IPokemon pokemon, int? level = null, bool seeform = true); - bool pbAddForeignPokemon(Pokemons pokemon,int? level=null,string ownerName=null,string nickname=null,int ownerGender=0,bool seeform=true); - bool pbAddForeignPokemon(IPokemon pokemon,int? level=null,string ownerName=null,string nickname=null,int ownerGender=0,bool seeform=true); + bool AddForeignPokemon(Pokemons pokemon,int? level=null,string ownerName=null,string nickname=null,int ownerGender=0,bool seeform=true); + bool AddForeignPokemon(IPokemon pokemon,int? level=null,string ownerName=null,string nickname=null,int ownerGender=0,bool seeform=true); - bool pbGenerateEgg(Pokemons pokemon, string text = ""); - bool pbGenerateEgg(IPokemon pokemon, string text = ""); + bool GenerateEgg(Pokemons pokemon, string text = ""); + bool GenerateEgg(IPokemon pokemon, string text = ""); - bool pbRemovePokemonAt(int index); + bool RemovePokemonAt(int index); - void pbSeenForm(Pokemons poke, int gender = 0, int form = 0); - void pbSeenForm(IPokemon poke);//, int gender = 0, int form = 0 + void SeenForm(Pokemons poke, int gender = 0, int form = 0); + void SeenForm(IPokemon poke);//, int gender = 0, int form = 0 #endregion #region Analysing Pokémon /// /// Heals all Pokémon in the party. /// - void pbHealAll(); + void HealAll(); /// /// Returns the first unfainted, non-egg Pokémon in the player's party. /// /// /// - IPokemon pbFirstAblePokemon(int variableNumber); + IPokemon FirstAblePokemon(int variableNumber); /// /// Checks whether the player would still have an unfainted Pokémon if the @@ -285,29 +285,29 @@ public interface IGameUtility /// /// /// - bool pbCheckAble(int pokemonIndex); + bool CheckAble(int pokemonIndex); /// /// Returns true if there are no usable Pokémon in the player's party. /// /// - bool pbAllFainted(); + bool AllFainted(); - double pbBalancedLevel(IPokemon[] party); + double BalancedLevel(IPokemon[] party); /// /// Returns the Pokémon's size in millimeters. /// /// /// - int pbSize(IPokemon pokemon); + int Size(IPokemon pokemon); /// /// Returns true if the given species can be legitimately obtained as an egg. /// /// /// - bool pbHasEgg(Pokemons species); + bool HasEgg(Pokemons species); #endregion #region Look through Pokémon in storage, choose a Pokémon in the party @@ -315,13 +315,13 @@ public interface IGameUtility /// Yields every Pokémon/egg in storage in turn. /// /// - IEnumerable> pbEachPokemon(); + IEnumerable> EachPokemon(); /// /// Yields every Pokémon in storage in turn. /// /// - IEnumerable> pbEachNonEggPokemon(); + IEnumerable> EachNonEggPokemon(); /// /// Choose a Pokémon/egg from the party. @@ -334,21 +334,21 @@ public interface IGameUtility /// /// Supposed to return a value of pokemon chosen by player... as an int... /// ToDo: Instead of assigning value to variable, change void to return int - void pbChoosePokemon(int variableNumber, int nameVarNumber, Predicate ableProc = null, bool allowIneligible = false); + void ChoosePokemon(int variableNumber, int nameVarNumber, Predicate ableProc = null, bool allowIneligible = false); - void pbChooseNonEggPokemon(int variableNumber, int nameVarNumber); + void ChooseNonEggPokemon(int variableNumber, int nameVarNumber); - void pbChooseAblePokemon(int variableNumber, int nameVarNumber); + void ChooseAblePokemon(int variableNumber, int nameVarNumber); - void pbChoosePokemonForTrade(int variableNumber, int nameVarNumber, Pokemons wanted); + void ChoosePokemonForTrade(int variableNumber, int nameVarNumber, Pokemons wanted); #endregion #region Checks through the party for something - bool pbHasSpecies(Pokemons species); + bool HasSpecies(Pokemons species); - bool pbHasFatefulSpecies(Pokemons species); + bool HasFatefulSpecies(Pokemons species); - bool pbHasType(Types type); + bool HasType(Types type); /// /// Checks whether any Pokémon in the party knows the given move, and returns @@ -356,7 +356,7 @@ public interface IGameUtility /// /// /// - IPokemon pbCheckMove(Moves move); + IPokemon CheckMove(Moves move); #endregion #region Regional and National Pokédexes @@ -368,7 +368,7 @@ public interface IGameUtility /// /// /// - int pbGetRegionalNumber(int region, Pokemons nationalSpecies); + int GetRegionalNumber(int region, Pokemons nationalSpecies); /// /// Gets the National Pokédex number of the specified species and region. The @@ -378,7 +378,7 @@ public interface IGameUtility /// /// /// - int pbGetNationalNumber(int region, Pokemons regionalSpecies); + int GetNationalNumber(int region, Pokemons regionalSpecies); /// /// Gets an array of all national species within the given Regional Dex, sorted by @@ -389,7 +389,7 @@ public interface IGameUtility /// /// /// - Pokemons[] pbAllRegionalSpecies(int region); + Pokemons[] AllRegionalSpecies(int region); /// /// Gets the ID number for the current region based on the player's current @@ -403,7 +403,7 @@ public interface IGameUtility /// The ID numbers returned by /// this function depend on the current map's position metadata. /// - int pbGetCurrentRegion(int defaultRegion = -1); + int GetCurrentRegion(int defaultRegion = -1); /// /// Decides which Dex lists are able to be viewed (i.e. they are unlocked and have @@ -413,29 +413,29 @@ public interface IGameUtility /// a species in the current region has been seen - doesn't look at other regions. /// Here, just used to decide whether to show the Pokédex in the Pause menu. /// - void pbSetViableDexes(); + void SetViableDexes(); /// /// Unlocks a Dex list. The National Dex is -1 here (or null argument). /// /// - void pbUnlockDex(int dex = -1); + void UnlockDex(int dex = -1); /// /// Locks a Dex list. The National Dex is -1 here (or null argument). /// /// - void pbLockDex(int dex = -1); + void LockDex(int dex = -1); #endregion #region Other utilities - void pbTextEntry(string helptext, int minlength, int maxlength, int variableNumber); + void TextEntry(string helptext, int minlength, int maxlength, int variableNumber); - string[] pbMoveTutorAnnotations(Moves move, Pokemons[] movelist = null); + string[] MoveTutorAnnotations(Moves move, Pokemons[] movelist = null); - bool pbMoveTutorChoose(Moves move, Pokemons[] movelist = null, bool bymachine = false); + bool MoveTutorChoose(Moves move, Pokemons[] movelist = null, bool bymachine = false); - void pbChooseMove(IPokemon pokemon, int variableNumber, int nameVarNumber); + void ChooseMove(IPokemon pokemon, int variableNumber, int nameVarNumber); #endregion } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/IInterpreter.cs b/PokemonUnity.Shared/Framework/Essentials/IInterpreter.cs index bbd994e9f..f409494af 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IInterpreter.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IInterpreter.cs @@ -48,7 +48,7 @@ public interface IInterpreter { bool command_dummy(); - bool pbExecuteScript(string script); + bool ExecuteScript(string script); /// /// Event Command Execution /// diff --git a/PokemonUnity.Shared/Framework/Essentials/IInterpreterFieldMixin.cs b/PokemonUnity.Shared/Framework/Essentials/IInterpreterFieldMixin.cs index f75209409..3d60f0755 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IInterpreterFieldMixin.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IInterpreterFieldMixin.cs @@ -10,21 +10,21 @@ namespace PokemonEssentials.Interface /// public interface IInterpreterFieldMixin { - //object[] pbParams { get; } + //object[] Params { get; } object getVariable(params int[] arg); - PokemonEssentials.Interface.PokeBattle.IPokemon pbGetPokemon(int id); - bool pbHeadbutt(); - bool pbPushThisBoulder(); - void pbPushThisEvent(); - void pbSetEventTime(params int[] arg); + PokemonEssentials.Interface.PokeBattle.IPokemon GetPokemon(int id); + bool Headbutt(); + bool PushThisBoulder(); + void PushThisEvent(); + void SetEventTime(params int[] arg); /// /// Used when player encounters a trainer, and battle logic get triggered /// /// /// Plays TrainerType Audio Theme and returns true - bool pbTrainerIntro(TrainerTypes symbol); - void pbTrainerEnd(); + bool TrainerIntro(TrainerTypes symbol); + void TrainerEnd(); void setTempSwitchOff(string c); void setTempSwitchOn(string c); void setVariable(params int[] arg); diff --git a/PokemonUnity.Shared/Framework/Essentials/ILibrary.cs b/PokemonUnity.Shared/Framework/Essentials/ILibrary.cs index dd24d707d..8e667e865 100644 --- a/PokemonUnity.Shared/Framework/Essentials/ILibrary.cs +++ b/PokemonUnity.Shared/Framework/Essentials/ILibrary.cs @@ -39,7 +39,7 @@ public interface IGame //: IGameBerryPlants, IGameDungeon, IGameFactory, IGameFi PokemonEssentials.Interface.Screen.IPokemonSystemOption PokemonSystem { get; } PokemonEssentials.Interface.Field.ITempMetadata PokemonTemp { get; set; } PokemonEssentials.Interface.Field.IEncounters PokemonEncounters { get; } - PokemonEssentials.Interface.Screen.IPokemonStorage PokemonStorage { get; } + PokemonEssentials.Interface.Screen.IPCPokemonStorage PokemonStorage { get; } PokemonEssentials.Interface.Screen.IBag Bag { get; } PokemonEssentials.Interface.ISceneMap Scene { get; set; } PokemonEssentials.Interface.IGameTemp GameTemp { get; } diff --git a/PokemonUnity.Shared/Framework/Essentials/IMessage.cs b/PokemonUnity.Shared/Framework/Essentials/IMessage.cs index b5475bacf..2731f793c 100644 --- a/PokemonUnity.Shared/Framework/Essentials/IMessage.cs +++ b/PokemonUnity.Shared/Framework/Essentials/IMessage.cs @@ -60,9 +60,9 @@ public interface ISceneBattleMessage { /// public interface IGameMessage { - bool pbMapInterpreterRunning(); + bool MapInterpreterRunning(); - IInterpreter pbMapInterpreter(); + IInterpreter MapInterpreter(); // if (Game.GameData.GameMap && Game.GameData.GameMap.respond_to("interpreter")) { // return Game.GameData.GameMap.interpreter; // } else if (Game.GameData.GameSystem) { @@ -71,53 +71,53 @@ public interface IGameMessage // return null; //} - void pbRefreshSceneMap(); + void RefreshSceneMap(); - void pbUpdateSceneMap(); + void UpdateSceneMap(); // ######## - string pbCsvField(string str); + string CsvField(string str); - int pbCsvPosInt(string str); + int CsvPosInt(string str); - int? pbEventCommentInput(IGameCharacter @event, int elements, string trigger); + int? EventCommentInput(IGameCharacter @event, int elements, string trigger); - int? pbCurrentEventCommentInput(int elements, string trigger); + int? CurrentEventCommentInput(int elements, string trigger); - int pbButtonInputProcessing(int variableNumber = 0, int timeoutFrames = 0); + int ButtonInputProcessing(int variableNumber = 0, int timeoutFrames = 0); - int pbChooseNumber(IWindow msgwindow, IChooseNumberParams param, Action block = null); + int ChooseNumber(IWindow msgwindow, IChooseNumberParams param, Action block = null); - int pbShowCommandsWithHelp(IWindow msgwindow,string[] commands,string[] help,int cmdIfCancel=0,int defaultCmd=0, Action block = null); + int ShowCommandsWithHelp(IWindow msgwindow,string[] commands,string[] help,int cmdIfCancel=0,int defaultCmd=0, Action block = null); - int pbShowCommands(IWindow msgwindow,string[] commands=null,int cmdIfCancel=0,int defaultCmd=0, Action block = null); + int ShowCommands(IWindow msgwindow,string[] commands=null,int cmdIfCancel=0,int defaultCmd=0, Action block = null); - void pbPositionFaceWindow(IWindow facewindow,IWindow msgwindow); + void PositionFaceWindow(IWindow facewindow,IWindow msgwindow); - void pbPositionNearMsgWindow(IWindow cmdwindow,IWindow msgwindow,bool side); + void PositionNearMsgWindow(IWindow cmdwindow,IWindow msgwindow,bool side); - string pbGetBasicMapNameFromId(int id); + string GetBasicMapNameFromId(int id); - string pbGetMapNameFromId(int id); + string GetMapNameFromId(int id); - int pbMessage(string message,string[] commands=null,int cmdIfCancel=0,int? skin=null,int defaultCmd=0, Action block = null); //ref Action block + int Message(string message,string[] commands=null,int cmdIfCancel=0,int? skin=null,int defaultCmd=0, Action block = null); //ref Action block - int pbMessageChooseNumber(string message,string[] param, ref Action block); //Action block = null + int MessageChooseNumber(string message,string[] param, ref Action block); //Action block = null - bool pbConfirmMessage(string message,Action block = null); + bool ConfirmMessage(string message,Action block = null); - bool pbConfirmMessageSerious(string message,Action block = null); + bool ConfirmMessageSerious(string message,Action block = null); - IWindow_AdvancedTextPokemon pbCreateStatusWindow(IViewport viewport=null); + IWindow_AdvancedTextPokemon CreateStatusWindow(IViewport viewport=null); - IWindow_AdvancedTextPokemon pbCreateMessageWindow(IViewport viewport=null,int? skin=null); + IWindow_AdvancedTextPokemon CreateMessageWindow(IViewport viewport=null,int? skin=null); //ToDo: Return IDisposable?... - void pbDisposeMessageWindow(IWindow msgwindow); + void DisposeMessageWindow(IWindow msgwindow); @@ -126,39 +126,39 @@ public interface IGameMessage IColor getSkinColor(IWindow windowskin,IColor color,bool isDarkSkin); // internal function - void pbRepositionMessageWindow(IWindow msgwindow, int linecount=2); + void RepositionMessageWindow(IWindow msgwindow, int linecount=2); // internal function - void pbUpdateMsgWindowPos(IWindow msgwindow,IGameEvent @event,bool eventChanged=false); + void UpdateMsgWindowPos(IWindow msgwindow,IGameEvent @event,bool eventChanged=false); // internal function - string pbGetGoldString(); + string GetGoldString(); - IWindow_AdvancedTextPokemon pbDisplayGoldWindow(IWindow msgwindow); + IWindow_AdvancedTextPokemon DisplayGoldWindow(IWindow msgwindow); - IWindow_AdvancedTextPokemon pbDisplayCoinsWindow(IWindow msgwindow,IWindow goldwindow); + IWindow_AdvancedTextPokemon DisplayCoinsWindow(IWindow msgwindow,IWindow goldwindow); - void pbMessageWaitForInput(IWindow msgwindow,int frames,bool showPause=false); + void MessageWaitForInput(IWindow msgwindow,int frames,bool showPause=false); - void pbMessageDisplay(IWindow msgwindow,string message,bool letterbyletter=true,Action commandProc=null); + void MessageDisplay(IWindow msgwindow,string message,bool letterbyletter=true,Action commandProc=null); } public interface IInterpreterMixinMessage { //static /// /// Freezes all events on the map (for use at the beginning of common events) /// - void pbGlobalLock(); + void GlobalLock(); /// /// Unfreezes all events on the map (for use at the end of common events) /// - void pbGlobalUnlock(); + void GlobalUnlock(); - int pbRepeatAbove(int index); + int RepeatAbove(int index); - int pbBreakLoop(int index); + int BreakLoop(int index); - void pbJumpToLabel(int index, string label_name); + void JumpToLabel(int index, string label_name); /// /// Gets the next index in the interpreter, ignoring @@ -166,7 +166,7 @@ public interface IInterpreterMixinMessage { //static /// /// /// - int pbNextIndex(int index); + int NextIndex(int index); /// /// Helper function that shows a picture in a script. To be used in @@ -181,7 +181,7 @@ public interface IInterpreterMixinMessage { //static /// /// /// - void pbShowPicture(int number, string name, float origin, float x, float y, int zoomX = 100, int zoomY = 100, byte opacity = 255, int blendType = 0); + void ShowPicture(int number, string name, float origin, float x, float y, int zoomX = 100, int zoomY = 100, byte opacity = 255, int blendType = 0); /// /// Erases an event and adds it to the list of erased events so that @@ -189,22 +189,22 @@ public interface IInterpreterMixinMessage { //static /// a script event command. /// /// - bool pbEraseThisEvent(); + bool EraseThisEvent(); /// /// Runs a common event. To be used in a script event command. /// /// - void pbCommonEvent(int id); + void CommonEvent(int id); /// - /// Sets another event's self switch (eg. pbSetSelfSwitch(20,"A",true) ). + /// Sets another event's self switch (eg. SetSelfSwitch(20,"A",true) ). /// To be used in a script event command. /// /// /// /// - void pbSetSelfSwitch(int @event, string swtch, bool value); + void SetSelfSwitch(int @event, string swtch, bool value); // Must use this approach to share the methods because the methods already // defined in a class override those defined in an included module @@ -229,7 +229,7 @@ public interface IGameInterpreterMessage { //static //@@immediateDisplayAfterWait=false; //@buttonInput=false; - //void pbParams() { + //void Params() { // return @params; //} @@ -250,7 +250,7 @@ public interface IInterpreterMessage { //@@immediateDisplayAfterWait=false; //@buttonInput=false; - //void pbParams() { + //void Params() { // return @parameters; //} diff --git a/PokemonUnity.Shared/Framework/Essentials/ISpritePicture.cs b/PokemonUnity.Shared/Framework/Essentials/ISpritePicture.cs index c0ec98db8..a3b3f6674 100644 --- a/PokemonUnity.Shared/Framework/Essentials/ISpritePicture.cs +++ b/PokemonUnity.Shared/Framework/Essentials/ISpritePicture.cs @@ -114,7 +114,7 @@ public interface IPokemonSpeciesIconSprite : ISpriteWrapper { IPokemonSpeciesIconSprite initialize(Pokemons species, IViewport viewport = null); - void pbSetParams(Pokemons species, int gender, int form); + void SetParams(Pokemons species, int gender, int form); //void dispose(); @@ -132,9 +132,9 @@ public interface IGameSprite int adjustBattleSpriteY(ISprite sprite, Pokemons species, int index, int[] metrics = null); - void pbPositionPokemonSprite(ISprite sprite, float left, float top); + void PositionPokemonSprite(ISprite sprite, float left, float top); - void pbSpriteSetCenter(ISprite sprite, float cx, float cy); + void SpriteSetCenter(ISprite sprite, float cx, float cy); bool showShadow(Pokemons species); } diff --git a/PokemonUnity.Shared/Framework/Essentials/ISpriteResizer.cs b/PokemonUnity.Shared/Framework/Essentials/ISpriteResizer.cs index e7d528acc..15959150b 100644 --- a/PokemonUnity.Shared/Framework/Essentials/ISpriteResizer.cs +++ b/PokemonUnity.Shared/Framework/Essentials/ISpriteResizer.cs @@ -12,13 +12,13 @@ public interface IGameResizer bool ResizeFactorSet { get; set; } bool HaveResizeBorder { get; set; } - void pbSetResizeFactor(float factor = 1, bool norecalc = false); + void SetResizeFactor(float factor = 1, bool norecalc = false); - void pbSetResizeFactor2(float factor, bool force = false); + void SetResizeFactor2(float factor, bool force = false); - void pbConfigureFullScreen(); + void ConfigureFullScreen(); - void pbConfigureWindowedScreen(float value); + void ConfigureWindowedScreen(float value); void setScreenBorderName(string border); } diff --git a/PokemonUnity.Shared/Framework/Essentials/ISpriteWindow.cs b/PokemonUnity.Shared/Framework/Essentials/ISpriteWindow.cs index 714407619..9a81a9f9b 100644 --- a/PokemonUnity.Shared/Framework/Essentials/ISpriteWindow.cs +++ b/PokemonUnity.Shared/Framework/Essentials/ISpriteWindow.cs @@ -40,33 +40,33 @@ public interface IMessageConfig { //systemFont = null; //textSpeed = null; - //string pbTryFonts(*args); + //string TryFonts(*args); - int pbDefaultTextSpeed(); + int DefaultTextSpeed(); - string pbDefaultSystemFrame(); + string DefaultSystemFrame(); - string pbDefaultSpeechFrame(); + string DefaultSpeechFrame(); - string pbDefaultSystemFontName(); + string DefaultSystemFontName(); - string pbDefaultWindowskin(); + string DefaultWindowskin(); - string pbGetSpeechFrame(); + string GetSpeechFrame(); - int pbGetTextSpeed(); + int GetTextSpeed(); - string pbGetSystemFontName(); + string GetSystemFontName(); - string pbGetSystemFrame(); + string GetSystemFrame(); - void pbSetSystemFrame(string value); + void SetSystemFrame(string value); - void pbSetSpeechFrame(string value); + void SetSpeechFrame(string value); - void pbSetSystemFontName(string value); + void SetSystemFontName(string value); - void pbSetTextSpeed(int value); + void SetTextSpeed(int value); } // ############################ @@ -86,25 +86,25 @@ public interface IGameSpriteWindow { - IBitmap pbGetTileBitmap(string filename, int tile_id, int hue); + IBitmap GetTileBitmap(string filename, int tile_id, int hue); - IBitmap[] pbGetAnimation(string name, int hue = 0); + IBitmap[] GetAnimation(string name, int hue = 0); - IBitmap[] pbGetTileset(string name, int hue = 0); + IBitmap[] GetTileset(string name, int hue = 0); - IBitmap[] pbGetAutotile(string name, int hue = 0); + IBitmap[] GetAutotile(string name, int hue = 0); // ######################## - void pbDrawShadow(IBitmap bitmap, float x, float y, int width, int height, string text); + void DrawShadow(IBitmap bitmap, float x, float y, int width, int height, string text); - void pbDrawShadowText(IBitmap bitmap, float x, float y, int width, int height, string text, IColor baseColor, IColor shadowColor = null, int align = 0); + void DrawShadowText(IBitmap bitmap, float x, float y, int width, int height, string text, IColor baseColor, IColor shadowColor = null, int align = 0); - void pbDrawOutlineText(IBitmap bitmap, float x, float y, int width, int height, string text, IColor baseColor, IColor shadowColor = null, int align = 0); + void DrawOutlineText(IBitmap bitmap, float x, float y, int width, int height, string text, IColor baseColor, IColor shadowColor = null, int align = 0); - //void pbCopyBitmap(dstbm,srcbm,float x,float y,int opacity=255) { + //void CopyBitmap(dstbm,srcbm,float x,float y,int opacity=255) { // rc=new Rect(0,0,srcbm.width,srcbm.height); // dstbm.blt(x,y,srcbm,rc,opacity); //} @@ -112,13 +112,13 @@ public interface IGameSpriteWindow { //void using(window) //IDisposable (IWindow window, Action action) - void pbBottomRight(IWindow window); + void BottomRight(IWindow window); - void pbBottomLeft(IWindow window); + void BottomLeft(IWindow window); - void pbBottomLeftLines(IWindow window, int lines, int? width = null); + void BottomLeftLines(IWindow window, int lines, int? width = null); - bool pbDisposed(IViewport x); + bool Disposed(IViewport x); bool isDarkBackground(int background, IRect rect = null); @@ -126,15 +126,15 @@ public interface IGameSpriteWindow { IColor getDefaultTextColors(int windowskin); - IBitmap pbDoEnsureBitmap(IBitmap bitmap, int dwidth, int dheight); + IBitmap DoEnsureBitmap(IBitmap bitmap, int dwidth, int dheight); - void pbUpdateSpriteHash(IWindow[] windows); + void UpdateSpriteHash(IWindow[] windows); /// /// Disposes all objects in the specified hash. /// /// - void pbDisposeSpriteHash(ISprite[] sprites); + void DisposeSpriteHash(ISprite[] sprites); /// /// Disposes the specified graphics object within the specified hash. Basically like: @@ -142,7 +142,7 @@ public interface IGameSpriteWindow { /// /// /// - void pbDisposeSprite(ISprite[] sprites, int id); + void DisposeSprite(ISprite[] sprites, int id); // Draws text on a bitmap. _textpos_ is an array // of text commands. Each text command is an array @@ -154,19 +154,19 @@ public interface IGameSpriteWindow { // Otherwise, the text is left aligned. // 4 - Base color // 5 - Shadow color - void pbDrawTextPositions(IBitmap bitmap, IList textpos); + void DrawTextPositions(IBitmap bitmap, IList textpos); - void pbDrawImagePositions(IBitmap bitmap, IList textpos); + void DrawImagePositions(IBitmap bitmap, IList textpos); - void pbPushFade(); + void PushFade(); - void pbPopFade(); + void PopFade(); - bool pbIsFaded { get; } + bool IsFaded { get; } - // pbFadeOutIn(z) { block } + // FadeOutIn(z) { block } /// /// Fades out the screen before a is run /// and fades it back in after the exits. @@ -174,43 +174,43 @@ public interface IGameSpriteWindow { /// z indicates the z-coordinate of the viewport used for this effect /// /// - void pbFadeOutIn(int z, bool nofadeout = false, Action block = null); + void FadeOutIn(int z, bool nofadeout = false, Action block = null); - void pbFadeOutAndHide(ISprite[] sprites); + void FadeOutAndHide(ISprite[] sprites); - void pbFadeInAndShow(ISprite[] sprites, IList visiblesprites = null, Action block = null); + void FadeInAndShow(ISprite[] sprites, IList visiblesprites = null, Action block = null); // Restores which windows are active for the given sprite hash. - // _activeStatuses_ is the result of a previous call to pbActivateWindows - void pbRestoreActivations(ISprite[] sprites, object activeStatuses); + // _activeStatuses_ is the result of a previous call to ActivateWindows + void RestoreActivations(ISprite[] sprites, object activeStatuses); // Deactivates all windows. If a code block is given, deactivates all windows, // runs the code in the block, and reactivates them. - void pbDeactivateWindows(IWindow[] sprites, Action action = null); + void DeactivateWindows(IWindow[] sprites, Action action = null); // Activates a specific window of a sprite hash. _key_ is the key of the window // in the sprite hash. If a code block is given, deactivates all windows except // the specified window, runs the code in the block, and reactivates them. - void pbActivateWindow(IWindow[] sprites, int key, Action action = null); + void ActivateWindow(IWindow[] sprites, int key, Action action = null); - IColor pbAlphaBlend(IColor dstColor, IColor srcColor); + IColor AlphaBlend(IColor dstColor, IColor srcColor); - IColor pbSrcOver(IColor dstColor, IColor srcColor); + IColor SrcOver(IColor dstColor, IColor srcColor); - void pbSetSpritesToColor(ISprite[] sprites, IColor color); + void SetSpritesToColor(ISprite[] sprites, IColor color); - string pbTryString(string x); + string TryString(string x); // Finds the real path for an image file. This includes paths in encrypted // archives. Returns _x_ if the path can't be found. - string pbBitmapName(string x); + string BitmapName(string x); /// /// Finds the real path for an image file. This includes paths in encrypted archives. /// /// /// Returns null if the path can't be found. - string pbResolveBitmap(string x); + string ResolveBitmap(string x); // Adds a background to the sprite hash. // _planename_ is the hash key of the background. @@ -231,35 +231,35 @@ public interface IGameSpriteWindow { /// Sets a bitmap's font to the system font. /// /// - void pbSetSystemFont(IBitmap bitmap); + void SetSystemFont(IBitmap bitmap); /// /// Gets the name of the system small font. /// /// - string pbSmallFontName(); + string SmallFontName(); /// /// Gets the name of the system narrow font. /// /// - string pbNarrowFontName(); + string NarrowFontName(); /// /// Sets a bitmap's font to the system small font. /// /// - void pbSetSmallFont(IBitmap bitmap); + void SetSmallFont(IBitmap bitmap); /// /// Sets a bitmap's font to the system narrow font. /// /// - void pbSetNarrowFont(IBitmap bitmap); + void SetNarrowFont(IBitmap bitmap); // Used to determine whether a data file exists (rather than a graphics or // audio file). Doesn't check RTP, but does check encrypted archives. - bool pbRgssExists(string filename); + bool RgssExists(string filename); /// /// Opens an IO, even if the file is in an encrypted archive. @@ -269,7 +269,7 @@ public interface IGameSpriteWindow { /// /// logic to perform on file /// - IDisposable pbRgssOpen(string file, int? mode = null, Action action = null); + IDisposable RgssOpen(string file, int? mode = null, Action action = null); /// /// Gets at least the first byte of a file. @@ -277,7 +277,7 @@ public interface IGameSpriteWindow { /// /// /// Doesn't check RTP, but does check encrypted archives. - string pbGetFileChar(string file); + string GetFileChar(string file); /// /// Gets the contents of a file. @@ -285,7 +285,7 @@ public interface IGameSpriteWindow { /// /// /// Doesn't check RTP, but does check encrypted archives. - string pbGetFileString(string file); + string GetFileString(string file); } // ############################ @@ -703,15 +703,15 @@ void initialize(file,hue=0) { } if (!bitmap || (bitmap.width==32 && bitmap.height==32)) { if (!file || file.Length<1 || file[file.Length-1]!=0x2F) { - if ((filestring=pbGetFileChar(file))) { + if ((filestring=GetFileChar(file))) { filestrName=file; - } else if ((filestring=pbGetFileChar(file+".gif"))) { + } else if ((filestring=GetFileChar(file+".gif"))) { filestrName=file+".gif"; - } else if ((filestring=pbGetFileChar(file+".png"))) { + } else if ((filestring=GetFileChar(file+".png"))) { filestrName=file+".png"; - } else if ((filestring=pbGetFileChar(file+".jpg"))) { + } else if ((filestring=GetFileChar(file+".jpg"))) { filestrName=file+".jpg"; - } else if ((filestring=pbGetFileChar(file+".bmp"))) { + } else if ((filestring=GetFileChar(file+".bmp"))) { filestrName=file+".bmp"; } } @@ -731,7 +731,7 @@ void initialize(file,hue=0) { @gifdelays= new []{ 1 }; } else { tmpBase=File.basename(file)+"_tmp_"; - if (filestring) filestring=pbGetFileString(filestrName); + if (filestring) filestring=GetFileString(filestrName); Dir.chdir(ENV["TEMP"]){ // navigate to temp folder since game might be on a CD-ROM if (filestring && filestring[0]==0x47 && GifLibrary.yngDll) { result=GifLibrary.yifToPngFilesInMemory.call(filestring, diff --git a/PokemonUnity.Shared/Framework/Essentials/Item/IItemHandlers.cs b/PokemonUnity.Shared/Framework/Essentials/Item/IItemHandlers.cs index 3859d1ced..13f87751c 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Item/IItemHandlers.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Item/IItemHandlers.cs @@ -182,47 +182,47 @@ public interface IItemCheck /// /// /// - bool pbIsHiddenMove(Moves move); + bool IsHiddenMove(Moves move); - int pbGetPrice(Items item); + int GetPrice(Items item); - ItemPockets? pbGetPocket(Items item); + ItemPockets? GetPocket(Items item); /// /// Important items can't be sold, given to hold, or tossed. /// /// /// - bool pbIsImportantItem(Items item); + bool IsImportantItem(Items item); - bool pbIsMachine(Items item); + bool IsMachine(Items item); - bool pbIsTechnicalMachine(Items item); + bool IsTechnicalMachine(Items item); - bool pbIsHiddenMachine(Items item); + bool IsHiddenMachine(Items item); - bool pbIsMail(Items item); + bool IsMail(Items item); - bool pbIsSnagBall(Items item); + bool IsSnagBall(Items item); - bool pbIsPokeBall(Items item); + bool IsPokeBall(Items item); - bool pbIsBerry(Items item); + bool IsBerry(Items item); - bool pbIsKeyItem(Items item); + bool IsKeyItem(Items item); - bool pbIsGem(Items item); + bool IsGem(Items item); - bool pbIsEvolutionStone(Items item); + bool IsEvolutionStone(Items item); /// /// Does NOT include Red Orb/Blue Orb /// /// /// - bool pbIsMegaStone(Items item); + bool IsMegaStone(Items item); - bool pbIsMulch(Items item); + bool IsMulch(Items item); } /// @@ -230,7 +230,7 @@ public interface IItemCheck /// public interface IGameItemEffect { - ItemUseResults pbRepel(Items item, int steps); + ItemUseResults Repel(Items item, int steps); } /// @@ -238,49 +238,49 @@ public interface IGameItemEffect /// public interface IGameItem { - void pbTopRightWindow(string text); + void TopRightWindow(string text); - void pbChangeLevel(IPokemon pokemon, int newlevel, PokemonEssentials.Interface.Screen.IScene scene); + void ChangeLevel(IPokemon pokemon, int newlevel, PokemonEssentials.Interface.Screen.IScene scene); - int pbItemRestoreHP(IPokemon pokemon, int restorehp); + int ItemRestoreHP(IPokemon pokemon, int restorehp); - bool pbHPItem(IPokemon pokemon, int restorehp, PokemonEssentials.Interface.Screen.IScene scene); + bool HPItem(IPokemon pokemon, int restorehp, PokemonEssentials.Interface.Screen.IScene scene); - bool pbBattleHPItem(IPokemon pokemon, IBattler battler, int restorehp, PokemonEssentials.Interface.Screen.IScene scene); + bool BattleHPItem(IPokemon pokemon, IBattler battler, int restorehp, PokemonEssentials.Interface.Screen.IScene scene); - int pbJustRaiseEffortValues(IPokemon pokemon, PokemonUnity.Monster.Stats ev, int evgain); + int JustRaiseEffortValues(IPokemon pokemon, PokemonUnity.Monster.Stats ev, int evgain); - int pbRaiseEffortValues(IPokemon pokemon, PokemonUnity.Monster.Stats ev, int evgain = 10, bool evlimit = true); + int RaiseEffortValues(IPokemon pokemon, PokemonUnity.Monster.Stats ev, int evgain = 10, bool evlimit = true); - bool pbRaiseHappinessAndLowerEV(IPokemon pokemon, PokemonEssentials.Interface.Screen.IScene scene, PokemonUnity.Monster.Stats ev, string[] messages); + bool RaiseHappinessAndLowerEV(IPokemon pokemon, PokemonEssentials.Interface.Screen.IScene scene, PokemonUnity.Monster.Stats ev, string[] messages); - int pbRestorePP(IPokemon pokemon, int move, int pp); + int RestorePP(IPokemon pokemon, int move, int pp); - int pbBattleRestorePP(IPokemon pokemon, IBattler battler, int move, int pp); + int BattleRestorePP(IPokemon pokemon, IBattler battler, int move, int pp); - bool pbBikeCheck(); + bool BikeCheck(); - IGameCharacter pbClosestHiddenItem(); + IGameCharacter ClosestHiddenItem(); - void pbUseKeyItemInField(Items item); + void UseKeyItemInField(Items item); - bool pbSpeciesCompatible(Pokemons species, Moves move); + bool SpeciesCompatible(Pokemons species, Moves move); - int pbForgetMove(IPokemon pokemon, Moves moveToLearn); + int ForgetMove(IPokemon pokemon, Moves moveToLearn); - bool pbLearnMove(IPokemon pokemon, Moves move, bool ignoreifknown = false, bool bymachine = false); + bool LearnMove(IPokemon pokemon, Moves move, bool ignoreifknown = false, bool bymachine = false); - bool pbCheckUseOnPokemon(Items item, IPokemon pokemon, PokemonEssentials.Interface.Screen.IScreen screen); + bool CheckUseOnPokemon(Items item, IPokemon pokemon, PokemonEssentials.Interface.Screen.IScreen screen); - bool pbConsumeItemInBattle(IBag bag, Items item); + bool ConsumeItemInBattle(IBag bag, Items item); // Only called when in the party screen and having chosen an item to be used on // the selected Pokémon - bool pbUseItemOnPokemon(Items item, IPokemon pokemon, PokemonEssentials.Interface.Screen.IPartyDisplayScreen scene); + bool UseItemOnPokemon(Items item, IPokemon pokemon, PokemonEssentials.Interface.Screen.IPartyDisplayScreen scene); - int pbUseItem(IBag bag, Items item, PokemonEssentials.Interface.Screen.IScene bagscene = null); + int UseItem(IBag bag, Items item, PokemonEssentials.Interface.Screen.IScene bagscene = null); - Items pbChooseItem(int var = 0, params Items[] args); + Items ChooseItem(int var = 0, params Items[] args); /// /// Shows a list of items to choose from, with the chosen item's ID being stored @@ -290,7 +290,7 @@ public interface IGameItem /// /// /// - Items pbChooseItemFromList(string message, int variable, params Items[] args); + Items ChooseItemFromList(string message, int variable, params Items[] args); } } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Item/IMail.cs b/PokemonUnity.Shared/Framework/Essentials/Item/IMail.cs index 3f73d4e16..f26390fc7 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Item/IMail.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Item/IMail.cs @@ -12,8 +12,8 @@ namespace PokemonEssentials.Interface.Item /// Data structure representing mail that the Pokémon can hold /// public interface IMail { - Items item { get; } - string message { get; } + Items item { get; set; } + string message { get; set; } string sender { get; } int poke1 { get; } int poke2 { get; } @@ -33,10 +33,10 @@ public interface IMail { public interface IGameMail { - bool pbMoveToMailbox(IPokemon pokemon); + bool MoveToMailbox(IPokemon pokemon); - void pbStoreMail(IPokemon pkmn, Items item, string message, IPokemon poke1 = null, IPokemon poke2 = null, IPokemon poke3 = null); + void StoreMail(IPokemon pkmn, Items item, string message, IPokemon poke1 = null, IPokemon poke2 = null, IPokemon poke3 = null); - void pbDisplayMail(IMail mail, string bearer = null); + void DisplayMail(IMail mail, string bearer = null); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Item/IPokeRadar.cs b/PokemonUnity.Shared/Framework/Essentials/Item/IPokeRadar.cs index 8c89c012a..7b89df897 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Item/IPokeRadar.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Item/IPokeRadar.cs @@ -53,18 +53,18 @@ public interface IPokeRadarGrassData /// public interface IGamePokeRadar { - bool pbCanUsePokeRadar(); + bool CanUsePokeRadar(); - bool pbUsePokeRadar(); + bool UsePokeRadar(); - void pbPokeRadarHighlightGrass(bool showmessage = true); + void PokeRadarHighlightGrass(bool showmessage = true); - void pbPokeRadarCancel(); + void PokeRadarCancel(); - int pbPokeRadarGetShakingGrass(); + int PokeRadarGetShakingGrass(); - bool pbPokeRadarOnShakingGrass(); + bool PokeRadarOnShakingGrass(); - Field.IEncounter pbPokeRadarGetEncounter(int rarity = 0); + Field.IEncounter PokeRadarGetEncounter(int rarity = 0); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Item/IPokeballHandlers.cs b/PokemonUnity.Shared/Framework/Essentials/Item/IPokeballHandlers.cs index 215202935..051565a92 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Item/IPokeballHandlers.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Item/IPokeballHandlers.cs @@ -73,9 +73,9 @@ public interface IGamePokeball { Items[] BallTypes { get; } - Items pbBallTypeToBall(int balltype); + Items BallTypeToBall(int balltype); - int pbGetBallType(Items ball); + int GetBallType(Items ball); } } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattle.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattle.cs index 09250c99c..6bccb8f76 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattle.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattle.cs @@ -13,9 +13,9 @@ namespace PokemonEssentials.Interface.PokeBattle { public interface IBattleCommon { - void pbStorePokemon(IPokemon pokemon); + void StorePokemon(IPokemon pokemon); - void pbThrowPokeball(int idxPokemon, Items ball, int? rareness = null, bool showplayer = false); + void ThrowPokeball(int idxPokemon, Items ball, int? rareness = null, bool showplayer = false); } /// @@ -109,7 +109,7 @@ public interface IBattle : IBattleCommon /// PokemonUnity.Overworld.Environments environment { get; set; } /// - /// Current weather, custom methods should use instead + /// Current weather, custom methods should use instead /// Weather weather { get; set; } /// @@ -178,16 +178,17 @@ public interface IBattle : IBattleCommon string endspeechwin2 { get; set; } IDictionary rules { get; } int turncount { get; set; } - bool controlPlayer { get; set; } + //IBattler[] Priority { get; } + //bool controlPlayer { get; set; } #endregion - void pbAbort(); + void Abort(); - IEnumerator pbDebugUpdate(); + IEnumerator DebugUpdate(); - int pbRandom(int x); + int Random(int x); - int pbAIRandom(int x); + int AIRandom(int x); #region Initialize battle class. IBattle initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent); @@ -196,17 +197,17 @@ public interface IBattle : IBattleCommon #endregion #region Info about battle. - bool pbDoubleBattleAllowed(); + bool DoubleBattleAllowed(); - Weather pbWeather { get; } + Weather Weather { get; } #endregion #region Get battler info. - bool pbIsOpposing(int index); + bool IsOpposing(int index); - bool pbOwnedByPlayer(int index); + bool OwnedByPlayer(int index); - bool pbIsDoubleBattler(int index); + bool IsDoubleBattler(int index); /// /// Only used for Wish @@ -214,7 +215,7 @@ public interface IBattle : IBattleCommon /// /// /// - //string pbThisEx(battlerindex, pokemonindex); + //string ThisEx(battlerindex, pokemonindex); string ToString(int battlerindex, int pokemonindex); /// @@ -223,68 +224,68 @@ public interface IBattle : IBattleCommon /// /// /// - bool pbIsUnlosableItem(IBattler pkmn, Items item); + bool IsUnlosableItem(IBattler pkmn, Items item); - IBattler pbCheckGlobalAbility(Abilities a); + IBattler CheckGlobalAbility(Abilities a); int nextPickupUse { get; } #endregion #region Player-related info. - ITrainer pbPlayer(); + ITrainer Player(); - Items[] pbGetOwnerItems(int battlerIndex); + Items[] GetOwnerItems(int battlerIndex); - void pbSetSeen(IPokemon pokemon); + void SetSeen(IPokemon pokemon); - string pbGetMegaRingName(int battlerIndex); + string GetMegaRingName(int battlerIndex); - bool pbHasMegaRing(int battlerIndex); + bool HasMegaRing(int battlerIndex); #endregion #region Get party info, manipulate parties. - int pbPokemonCount(IPokemon[] party); + int PokemonCount(IPokemon[] party); - bool pbAllFainted(IPokemon[] party); + bool AllFainted(IPokemon[] party); - int pbMaxLevel(IPokemon[] party); + int MaxLevel(IPokemon[] party); - int pbMaxLevelFromIndex(int index); + int MaxLevelFromIndex(int index); /// /// Gets player party of selected battler /// /// /// Returns the trainer party of pokemon at this index? - IPokemon[] pbParty(int index); + IPokemon[] Party(int index); - IPokemon[] pbOpposingParty(int index); + IPokemon[] OpposingParty(int index); - int pbSecondPartyBegin(int battlerIndex); + int SecondPartyBegin(int battlerIndex); - int pbPartyLength(int battlerIndex); + int PartyLength(int battlerIndex); - int pbFindNextUnfainted(IPokemon[] party, int start, int finish = -1); + int FindNextUnfainted(IPokemon[] party, int start, int finish = -1); - int pbGetLastPokeInTeam(int index); + int GetLastPokeInTeam(int index); - IBattler pbFindPlayerBattler(int pkmnIndex); + IBattler FindPlayerBattler(int pkmnIndex); - bool pbIsOwner(int battlerIndex, int partyIndex); + bool IsOwner(int battlerIndex, int partyIndex); - ITrainer pbGetOwner(int battlerIndex); + ITrainer GetOwner(int battlerIndex); - ITrainer pbGetOwnerPartner(int battlerIndex); + ITrainer GetOwnerPartner(int battlerIndex); - int pbGetOwnerIndex(int battlerIndex); + int GetOwnerIndex(int battlerIndex); - bool pbBelongsToPlayer(int battlerIndex); + bool BelongsToPlayer(int battlerIndex); - ITrainer pbPartyGetOwner(int battlerIndex, int partyIndex); + ITrainer PartyGetOwner(int battlerIndex, int partyIndex); - void pbAddToPlayerParty(IPokemon pokemon); + void AddToPlayerParty(IPokemon pokemon); - void pbRemoveFromParty(int battlerIndex, int partyIndex); + void RemoveFromParty(int battlerIndex, int partyIndex); #endregion #region Check whether actions can be taken. @@ -293,49 +294,49 @@ public interface IBattle : IBattleCommon /// /// /// - bool pbCanShowCommands(int idxPokemon); + bool CanShowCommands(int idxPokemon); #endregion #region Attacking. - bool pbCanShowFightMenu(int idxPokemon); + bool CanShowFightMenu(int idxPokemon); - bool pbCanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk = false); + bool CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk = false); - void pbAutoChooseMove(int idxPokemon, bool showMessages = true); + void AutoChooseMove(int idxPokemon, bool showMessages = true); - bool pbRegisterMove(int idxPokemon, int idxMove, bool showMessages = true); + bool RegisterMove(int idxPokemon, int idxMove, bool showMessages = true); - bool pbChoseMove(int i, Moves move); + bool ChoseMove(int i, Moves move); - bool pbChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code); + bool ChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code); - bool pbRegisterTarget(int idxPokemon, int idxTarget); + bool RegisterTarget(int idxPokemon, int idxTarget); - IBattler[] pbPriority(bool ignorequickclaw = false, bool log = false); + IBattler[] Priority(bool ignorequickclaw = false, bool log = false); #endregion #region Switching Pokémon. - bool pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages); + bool CanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages); - bool pbCanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook = false); + bool CanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook = false); - bool pbRegisterSwitch(int idxPokemon, int idxOther); + bool RegisterSwitch(int idxPokemon, int idxOther); - bool pbCanChooseNonActive(int index); + bool CanChooseNonActive(int index); - void pbSwitch(bool favorDraws= false); + void Switch(bool favorDraws= false); - void pbSendOut(int index, IPokemon pokemon); + void SendOut(int index, IPokemon pokemon); - void pbReplace(int index, int newpoke, bool batonpass = false); + void Replace(int index, int newpoke, bool batonpass = false); - bool pbRecallAndReplace(int index, int newpoke, int newpokename = -1, bool batonpass = false, bool moldbreaker = false); + bool RecallAndReplace(int index, int newpoke, int newpokename = -1, bool batonpass = false, bool moldbreaker = false); - void pbMessagesOnReplace(int index, int newpoke, int newpokename= -1); + void MessagesOnReplace(int index, int newpoke, int newpokename= -1); - int pbSwitchInBetween(int index, bool lax, bool cancancel); + int SwitchInBetween(int index, bool lax, bool cancancel); - int pbSwitchPlayer(int index, bool lax, bool cancancel); + int SwitchPlayer(int index, bool lax, bool cancancel); #endregion #region Using an item. @@ -347,7 +348,7 @@ public interface IBattle : IBattleCommon /// /// /// - bool pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene); + bool UseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene); /// /// Uses an item on an active Pokémon. @@ -357,112 +358,112 @@ public interface IBattle : IBattleCommon /// /// /// - bool pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene); + bool UseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene); - bool pbRegisterItem(int idxPokemon, Items idxItem, int? idxTarget = null); + bool RegisterItem(int idxPokemon, Items idxItem, int? idxTarget = null); - void pbEnemyUseItem(Items item, IBattler battler); + void EnemyUseItem(Items item, IBattler battler); #endregion #region Fleeing from battle. - bool pbCanRun(int idxPokemon); + bool CanRun(int idxPokemon); /// /// /// /// /// 1 = success; -1 = failed - int pbRun(int idxPokemon, bool duringBattle= false); + int Run(int idxPokemon, bool duringBattle= false); #endregion #region Mega Evolve battler. - bool pbCanMegaEvolve(int index); + bool CanMegaEvolve(int index); - void pbRegisterMegaEvolution(int index); + void RegisterMegaEvolution(int index); - void pbMegaEvolve(int index); + void MegaEvolve(int index); #endregion #region Primal Revert battler. - void pbPrimalReversion(int index); + void PrimalReversion(int index); #endregion #region Call battler. - void pbCall(int index); + void Call(int index); #endregion #region Gaining Experience. - void pbGainEXP(); + void GainEXP(); - void pbGainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages = true); + void GainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages = true); #endregion #region Learning a move. - void pbLearnMove(int pkmnIndex, Moves move); + void LearnMove(int pkmnIndex, Moves move); #endregion #region Abilities. - void pbOnActiveAll(); + void OnActiveAll(); - bool pbOnActiveOne(IBattler pkmn, bool onlyabilities = false, bool moldbreaker = false); + bool OnActiveOne(IBattler pkmn, bool onlyabilities = false, bool moldbreaker = false); - void pbPrimordialWeather(); + void PrimordialWeather(); #endregion #region Judging. - void pbJudgeCheckpoint(IBattler attacker, IBattleMove move = null); + void JudgeCheckpoint(IBattler attacker, IBattleMove move = null); - BattleResults pbDecisionOnTime(); + BattleResults DecisionOnTime(); - BattleResults pbDecisionOnTime2(); + BattleResults DecisionOnTime2(); - BattleResults pbDecisionOnDraw(); + BattleResults DecisionOnDraw(); - void pbJudge(); + void Judge(); #endregion #region Messages and animations. - void pbDisplay(string msg); + void Display(string msg); - void pbDisplayPaused(string msg); + void DisplayPaused(string msg); - void pbDisplayBrief(string msg); + void DisplayBrief(string msg); - bool pbDisplayConfirm(string msg); + bool DisplayConfirm(string msg); - void pbShowCommands(string msg, string[] commands, bool cancancel = true); + void ShowCommands(string msg, string[] commands, bool cancancel = true); - void pbAnimation(Moves move, IBattler attacker, IBattler opponent, int hitnum = 0); + void Animation(Moves move, IBattler attacker, IBattler opponent, int hitnum = 0); - void pbCommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum = 0); + void CommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum = 0); #endregion #region Battle core. - BattleResults pbStartBattle(bool canlose= false); + BattleResults StartBattle(bool canlose= false); - void pbStartBattleCore(bool canlose); + void StartBattleCore(bool canlose); #endregion #region Command phase. - MenuCommands pbCommandMenu(int i); + MenuCommands CommandMenu(int i); - KeyValuePair pbItemMenu(int i); + KeyValuePair ItemMenu(int i); - bool pbAutoFightMenu(int i); + bool AutoFightMenu(int i); - void pbCommandPhase(); + void CommandPhase(); #endregion #region Attack phase. - void pbAttackPhase(); + void AttackPhase(); #endregion #region End of round. - void pbEndOfRoundPhase(); + void EndOfRoundPhase(); #endregion #region End of battle. - BattleResults pbEndOfBattle(bool canlose = false); + BattleResults EndOfBattle(bool canlose = false); #endregion } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleAI.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleAI.cs index be928327a..45403272d 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleAI.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleAI.cs @@ -23,20 +23,20 @@ public interface IBattleAI /// /// /// - int pbGetMoveScore(IBattleMove move, IBattler attacker, IBattler opponent, int skill = 100); + int GetMoveScore(IBattleMove move, IBattler attacker, IBattler opponent, int skill = 100); #region Get type effectiveness and approximate stats. - float pbTypeModifier(Types type, IBattler attacker, IBattler opponent); + float TypeModifier(Types type, IBattler attacker, IBattler opponent); - float pbTypeModifier2(IBattler battlerThis, IBattler battlerOther); + float TypeModifier2(IBattler battlerThis, IBattler battlerOther); - int pbRoughStat(IBattler battler, Stats stat, int skill); + int RoughStat(IBattler battler, Stats stat, int skill); - int pbBetterBaseDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage); + int BetterBaseDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage); - int pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage); + int RoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage); - int pbRoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill); + int RoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill); #endregion #region Choose a move to use. @@ -44,7 +44,7 @@ public interface IBattleAI /// Choose a move to use. /// /// - void pbChooseMoves(int index); + void ChooseMoves(int index); #endregion #region Decide whether the opponent should Mega Evolve their Pokémon. @@ -53,25 +53,25 @@ public interface IBattleAI /// /// /// - bool pbEnemyShouldMegaEvolve(int index); + bool EnemyShouldMegaEvolve(int index); #endregion #region Decide whether the opponent should use an item on the Pokémon. - bool pbEnemyShouldUseItem(int index); + bool EnemyShouldUseItem(int index); - bool pbEnemyItemAlreadyUsed(int index, Items item, Items[] items); + bool EnemyItemAlreadyUsed(int index, Items item, Items[] items); - Items pbEnemyItemToUse(int index); + Items EnemyItemToUse(int index); #endregion #region Decide whether the opponent should switch Pokémon. - bool pbEnemyShouldWithdraw(int index); + bool EnemyShouldWithdraw(int index); - bool pbEnemyShouldWithdrawEx(int index, bool alwaysSwitch); + bool EnemyShouldWithdrawEx(int index, bool alwaysSwitch); - int pbDefaultChooseNewEnemy(int index, IPokemon[] party); + int DefaultChooseNewEnemy(int index, IPokemon[] party); - int pbChooseBestNewEnemy(int index, IPokemon[] party, int[] enemies); + int ChooseBestNewEnemy(int index, IPokemon[] party, int[] enemies); #endregion #region Choose an action. @@ -79,13 +79,13 @@ public interface IBattleAI /// Choose an action. /// /// - void pbDefaultChooseEnemyCommand(int index); + void DefaultChooseEnemyCommand(int index); #endregion #region Other functions. - bool pbDbgPlayerOnly(int idx); + bool DbgPlayerOnly(int idx); - int pbStdDev(int[] scores); + int StdDev(int[] scores); #endregion } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleArena.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleArena.cs index 453aacf11..d7a75c2ac 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleArena.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleArena.cs @@ -20,22 +20,22 @@ public interface IBattleArena : IBattle //new IBattleArena initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent); IBattleArena initialize(IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent); - new bool pbDoubleBattleAllowed(); + new bool DoubleBattleAllowed(); - bool pbEnemyShouldWithdraw(int index); + bool EnemyShouldWithdraw(int index); - new bool pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages); + new bool CanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages); - new void pbSwitch(bool favorDraws= false); + new void Switch(bool favorDraws= false); - new void pbOnActiveAll(); + new void OnActiveAll(); - new bool pbOnActiveOne(IBattler pkmn, bool onlyabilities = false, bool moldbreaker = false); + new bool OnActiveOne(IBattler pkmn, bool onlyabilities = false, bool moldbreaker = false); - int pbMindScore(IBattleMove move); + int MindScore(IBattleMove move); - new void pbCommandPhase(); + new void CommandPhase(); - new void pbEndOfRoundPhase(); + new void EndOfRoundPhase(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleClause.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleClause.cs index 5a8485d20..62d2639d9 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleClause.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleClause.cs @@ -15,15 +15,15 @@ namespace PokemonEssentials.Interface.PokeBattle /// public interface IBattleClause { - //alias __clauses__pbDecisionOnDraw pbDecisionOnDraw; - //alias __clauses__pbEndOfRoundPhase pbEndOfRoundPhase; + //alias __clauses__DecisionOnDraw DecisionOnDraw; + //alias __clauses__EndOfRoundPhase EndOfRoundPhase; //@__clauses__aliased = true; - BattleResults pbDecisionOnDraw(); + BattleResults DecisionOnDraw(); - void pbJudgeCheckpoint(IBattler attacker, IBattleMove move= null); + void JudgeCheckpoint(IBattler attacker, IBattleMove move= null); - void pbEndOfRoundPhase(); + void EndOfRoundPhase(); } /// @@ -31,19 +31,19 @@ public interface IBattleClause /// public interface IBattlerClause { - //alias __clauses__pbCanSleep? pbCanSleep ?; - //alias __clauses__pbCanSleepYawn? pbCanSleepYawn ?; - //alias __clauses__pbCanFreeze? pbCanFreeze ?; - //alias __clauses__pbUseMove pbUseMove; + //alias __clauses__CanSleep? CanSleep ?; + //alias __clauses__CanSleepYawn? CanSleepYawn ?; + //alias __clauses__CanFreeze? CanFreeze ?; + //alias __clauses__UseMove UseMove; //@__clauses__aliased = true; - bool pbHasStatusPokemon(Status status); + bool HasStatusPokemon(Status status); - bool pbCanSleepYawn(); + bool CanSleepYawn(); - bool pbCanFreeze(IBattler attacker, bool showMessages, IBattleMove move = null); + bool CanFreeze(IBattler attacker, bool showMessages, IBattleMove move = null); - bool pbCanSleep(IBattler attacker, bool showMessages, IBattleMove move= null, bool ignorestatus= false); + bool CanSleep(IBattler attacker, bool showMessages, IBattleMove move= null, bool ignorestatus= false); } public interface IBattleMove_MoveFailed @@ -53,7 +53,7 @@ public interface IBattleMove_MoveFailed /// /// /// - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); } /*public interface IPokeBattle_Move_022 @@ -64,7 +64,7 @@ public interface IBattleMove_MoveFailed /// /// /// - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); } public interface IPokeBattle_Move_034 @@ -75,7 +75,7 @@ public interface IPokeBattle_Move_034 /// /// /// - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); } public interface IPokeBattle_Move_067 @@ -86,7 +86,7 @@ public interface IPokeBattle_Move_067 /// /// /// - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); } public interface IPokeBattle_Move_06A @@ -97,7 +97,7 @@ public interface IPokeBattle_Move_06A /// /// /// - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); } public interface IPokeBattle_Move_06B @@ -108,7 +108,7 @@ public interface IPokeBattle_Move_06B /// /// /// - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); } public interface IPokeBattle_Move_070 @@ -119,27 +119,27 @@ public interface IPokeBattle_Move_070 /// /// /// - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); } public interface IPokeBattle_Move_0E0 { - //alias __clauses__pbOnStartUse pbOnStartUse; + //alias __clauses__OnStartUse OnStartUse; //@__clauses__aliased = true; // Selfdestruct - bool pbOnStartUse(IBattler attacker); + bool OnStartUse(IBattler attacker); } public interface IPokeBattle_Move_0E5 { // Perish Song - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); } public interface IPokeBattle_Move_0E7 { // Destiny Bond - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); }*/ } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleMove.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleMove.cs index fce05c075..02ac5ffdf 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleMove.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleMove.cs @@ -44,7 +44,7 @@ public interface IBattleMove /// /// The object generated is a subclass of this one which depends on the move's /// function code (found in the script section PokeBattle_MoveEffect). - IBattleMove pbFromPBMove(IBattle battle, IMove move); + IBattleMove FromMove(IBattle battle, IMove move); #endregion #region About the move @@ -53,31 +53,31 @@ public interface IBattleMove int ToInt(); - Types pbModifyType(Types type, IBattler attacker, IBattler opponent); + Types ModifyType(Types type, IBattler attacker, IBattler opponent); - Types pbType(Types type, IBattler attacker, IBattler opponent); + Types GetType(Types type, IBattler attacker, IBattler opponent); - bool pbIsPhysical(Types type); + bool IsPhysical(Types type); - bool pbIsSpecial(Types type); + bool IsSpecial(Types type); - bool pbIsStatus { get; } + bool IsStatus { get; } - bool pbIsDamaging(); + bool IsDamaging(); - bool pbTargetsMultiple(IBattler attacker); + bool TargetsMultiple(IBattler attacker); - int pbPriority(IBattler attacker); + int GetPriority(IBattler attacker); - int pbNumHits(IBattler attacker); + int NumHits(IBattler attacker); - bool pbIsMultiHit(); + bool IsMultiHit(); - bool pbTwoTurnAttack(IBattler attacker); + bool TwoTurnAttack(IBattler attacker); - void pbAdditionalEffect(IBattler attacker, IBattler opponent); + void AdditionalEffect(IBattler attacker, IBattler opponent); - bool pbCanUseWhileAsleep(); + bool CanUseWhileAsleep(); bool isHealingMove(); @@ -121,57 +121,57 @@ public interface IBattleMove #endregion #region This move's type effectiveness - bool pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent); + bool TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent); - float pbTypeModifier(Types type, IBattler attacker, IBattler opponent); + float TypeModifier(Types type, IBattler attacker, IBattler opponent); - double pbTypeModMessages(Types type, IBattler attacker, IBattler opponent); + double TypeModMessages(Types type, IBattler attacker, IBattler opponent); #endregion #region This move's accuracy check - int pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent); + int ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent); - bool pbAccuracyCheck(IBattler attacker, IBattler opponent); + bool AccuracyCheck(IBattler attacker, IBattler opponent); #endregion #region Damage calculation and modifiers - bool pbCritialOverride(IBattler attacker, IBattler opponent); + bool CritialOverride(IBattler attacker, IBattler opponent); - bool pbIsCritical(IBattler attacker, IBattler opponent); + bool IsCritical(IBattler attacker, IBattler opponent); - int pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent); + int BaseDamage(int basedmg, IBattler attacker, IBattler opponent); - double pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent); + double BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent); - double pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent); + double ModifyDamage(double damagemult, IBattler attacker, IBattler opponent); - int pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options); //= new int[] { 0 } + int CalcDamage(IBattler attacker, IBattler opponent, params byte[] options); //= new int[] { 0 } - int pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent); + int ReduceHPDamage(int damage, IBattler attacker, IBattler opponent); #endregion #region Effects - void pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype = false, int[] alltargets = null); + void EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype = false, int[] alltargets = null); - int pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true); + int EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true); - int pbEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true); + int GetEffect(IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true); - void pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects); + void EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects); #endregion #region Using the move - bool pbOnStartUse(IBattler attacker); + bool OnStartUse(IBattler attacker); - void pbAddTarget(IList targets, IBattler attacker); + void AddTarget(IList targets, IBattler attacker); - int pbDisplayUseMessage(IBattler attacker); + int DisplayUseMessage(IBattler attacker); - void pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true); + void ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum = 0, int[] alltargets = null, bool showanimation = true); - void pbOnDamageLost(int damage, IBattler attacker, IBattler opponent); + void OnDamageLost(int damage, IBattler attacker, IBattler opponent); - bool pbMoveFailed(IBattler attacker, IBattler opponent); + bool MoveFailed(IBattler attacker, IBattler opponent); #endregion } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlePalace.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlePalace.cs index 554194234..25616cd97 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlePalace.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlePalace.cs @@ -26,24 +26,24 @@ public interface IBattlePalace : IBattle /// /// /// Returns Category? - int pbMoveCategory(IBattleMove move); + int MoveCategory(IBattleMove move); /// - /// Different implementation of pbCanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore + /// Different implementation of CanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore /// /// /// /// - bool pbCanChooseMovePartial(int idxPokemon, int idxMove); + bool CanChooseMovePartial(int idxPokemon, int idxMove); - void pbPinchChange(int idxPokemon); + void PinchChange(int idxPokemon); - bool pbEnemyShouldWithdraw(int index); + bool EnemyShouldWithdraw(int index); - new bool pbRegisterMove(int idxPokemon, int idxMove, bool showMessages = true); + new bool RegisterMove(int idxPokemon, int idxMove, bool showMessages = true); - new bool pbAutoFightMenu(int idxPokemon); + new bool AutoFightMenu(int idxPokemon); - new void pbEndOfRoundPhase(); + new void EndOfRoundPhase(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlePeer.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlePeer.cs index a598ac530..6c1310cfa 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlePeer.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlePeer.cs @@ -16,12 +16,12 @@ namespace PokemonEssentials.Interface.PokeBattle { public interface IBattlePeer { - int pbStorePokemon(ITrainer player, IPokemon pokemon); + int StorePokemon(ITrainer player, IPokemon pokemon); - string pbGetStorageCreator(); + string GetStorageCreator(); - int pbCurrentBox(); + int CurrentBox(); - string pbBoxName(int box); + string BoxName(int box); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleRecorder.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleRecorder.cs index 39e31c8f8..b9e3a4583 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleRecorder.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleRecorder.cs @@ -24,37 +24,37 @@ public interface IRecordedBattleModule //: IBattleRecordData { IList randomnumbers { get; } //IList rounds { get; } - IList[]> rounds { get; } + IList?[]> rounds { get; } //int battletype { get; } - //object properties { get; } + IBattleMetaData properties { get; } //int roundindex { get; } - //IList switches { get; } + IList switches { get; } #region Methods IBattle initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent); - int pbGetBattleType(); - ITrainer[] pbGetTrainerInfo(ITrainer[] trainer); - BattleResults pbStartBattle(bool canlose = false); - string pbDumpRecord(); - int pbSwitchInBetween(int i1, bool i2, bool i3); - bool pbRegisterMove(int i1, int i2, bool showMessages = true); - int pbRun(int i1, bool duringBattle = false); - bool pbRegisterTarget(int i1, int i2); - void pbAutoChooseMove(int i1, bool showMessages = true); - bool pbRegisterSwitch(int i1, int i2); - bool pbRegisterItem(int i1, Items i2); - void pbCommandPhase(); - void pbStorePokemon(IPokemon pkmn); - int pbRandom(int num); + int GetBattleType(); + ITrainer[] GetTrainerInfo(ITrainer[] trainer); + BattleResults StartBattle(bool canlose = false); + string DumpRecord(); + int SwitchInBetween(int i1, bool i2, bool i3); + bool RegisterMove(int i1, int i2, bool showMessages = true); + int Run(int i1, bool duringBattle = false); + bool RegisterTarget(int i1, int i2); + void AutoChooseMove(int i1, bool showMessages = true); + bool RegisterSwitch(int i1, int i2); + bool RegisterItem(int i1, Items i2); + void CommandPhase(); + void StorePokemon(IPokemon pkmn); + int Random(int num); #endregion } public interface IBattlePlayerHelper{ - ITrainer[] pbGetOpponent(IBattle battle); + ITrainer[] GetOpponent(IBattle battle); - IAudioBGM pbGetBattleBGM(IBattle battle); + IAudioBGM GetBattleBGM(IBattle battle); - ITrainer[] pbCreateTrainerInfo(ITrainer[] trainer); + ITrainer[] CreateTrainerInfo(ITrainer[] trainer); } /// @@ -68,25 +68,25 @@ public interface IBattlePlayerModule //int switchindex { get; } //IBattle should be a recorded battle data... - TBattle initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle); - BattleResults pbStartBattle(bool canlose = false); - int pbSwitchInBetween(int i1, int i2, bool i3); - int pbRandom(int num); - void pbDisplayPaused(string str); - void pbCommandPhaseCore(); + IBattlePlayerModule initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle); + BattleResults StartBattle(bool canlose = false); + int SwitchInBetween(int i1, int i2, bool i3); + int Random(int num); + void DisplayPaused(string str); + void CommandPhaseCore(); } public interface IRecordedBattle : IBattle, IRecordedBattleModule, IBattleRecordData { - //int pbGetBattleType(); + //int GetBattleType(); } public interface IRecordedBattlePalace : IBattlePalace, IRecordedBattleModule, IBattleRecordData { - //int pbGetBattleType(); + //int GetBattleType(); } public interface IRecordedBattleArena : IBattleArena, IRecordedBattleModule, IBattleRecordData { - //int pbGetBattleType(); + //int GetBattleType(); } public interface IBattlePlayer : IBattle, IBattlePlayerModule { } @@ -98,37 +98,37 @@ public interface IBattleArenaPlayer : IBattleArena, IBattlePlayerModule //ToDo: maybe add to interface? - public interface IBattleRecordData + public interface IBattleRecordData { - int pbGetBattleType(); //{ get; } + int battletype { get; } //ToDo: this should be replaced with json object class - //IDictionary properties { get; } + //IDictionary properties { get; } IBattleMetaData properties { get; } //IList rounds { get; } - IList[]> rounds { get; } + IList?[]> rounds { get; } IList randomnumbers { get; } IList switches { get; } } /// /// - public interface IBattleMetaData + public interface IBattleMetaData { bool internalbattle { get; set; } - //SeriTrainer player { get; set; } - //SeriTrainer opponent { get; set; } + TrainerData[] player { get; set; } + TrainerData[] opponent { get; set; } SeriPokemon[] party1 { get; set; } SeriPokemon[] party2 { get; set; } string endspeech { get; set; } string endspeech2 { get; set; } string endspeechwin { get; set; } string endspeechwin2 { get; set; } - string doublebattle { get; set; } + bool doublebattle { get; set; } int weather { get; set; } int weatherduration { get; set; } bool cantescape { get; set; } bool shiftStyle { get; set; } - int battlescene { get; set; } - Items[] items { get; set; } + bool battlescene { get; set; } + Items[][] items { get; set; } int environment { get; set; } IDictionary rules { get; set; } } diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleTrainer.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleTrainer.cs index 40b8a8554..7a002fb16 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleTrainer.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattleTrainer.cs @@ -21,7 +21,7 @@ public interface ITrainer int? metaID { get; set; } TrainerTypes trainertype { get; set; } int? outfit { get; set; } - bool[] badges { get; } + bool[] badges { get; set; } int Money { get; set; } IDictionary seen { get; } IDictionary owned { get; } @@ -39,7 +39,7 @@ public interface ITrainer bool pokegear { get; set; } Languages? language { get; } /// - /// Name of this trainer type (localized) + /// Name of this trainer type (localized) /// string trainerTypeName { get; } diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattler.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattler.cs index 7d75fb985..b79f876e9 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattler.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattler.cs @@ -11,7 +11,7 @@ namespace PokemonEssentials.Interface.PokeBattle { - public interface IBattler + public interface IBattler : IEquatable, IEqualityComparer { IBattle battle { get; } IPokemon pokemon { get; } @@ -78,41 +78,41 @@ public interface IBattler #region Creating a battler IBattler initialize(IBattle btl, int index); - void pbInitPokemon(IPokemon pkmn, int pkmnIndex); + void InitPokemon(IPokemon pkmn, int pkmnIndex); - void pbInitDummyPokemon(IPokemon pkmn, int pkmnIndex); + void InitDummyPokemon(IPokemon pkmn, int pkmnIndex); - void pbInitBlank(); + void InitBlank(); - void pbInitPermanentEffects(); + void InitPermanentEffects(); - void pbInitEffects(bool batonpass); + void InitEffects(bool batonpass); - void pbUpdate(bool fullchange = false); + void Update(bool fullchange = false); - IBattler pbInitialize(IPokemon pkmn, int index, bool batonpass); + IBattler Initialize(IPokemon pkmn, int index, bool batonpass); /// /// Used only to erase the battler of a Shadow Pokémon that has been snagged. /// - IBattler pbReset(); + IBattler Reset(); /// /// Update Pokémon who will gain EXP if this battler is defeated /// - void pbUpdateParticipants(); + void UpdateParticipants(); #endregion #region About this battler string ToString(bool lowercase = false); - bool pbHasType(Types type); + bool HasType(Types type); - bool pbHasMove(Moves id); + bool HasMove(Moves id); - bool pbHasMoveType(Types type); + bool HasMoveType(Types type); - bool pbHasMoveFunction(int code); + bool HasMoveFunction(int code); bool hasMovedThisRound(); @@ -126,15 +126,15 @@ public interface IBattler bool isAirborne(bool ignoreability = false); - int pbSpeed { get; } + int Speed { get; } #endregion #region Change HP - int pbReduceHP(int amt, bool anim = false, bool registerDamage = true); + int ReduceHP(int amt, bool anim = false, bool registerDamage = true); - int pbRecoverHP(int amt, bool anim = false); + int RecoverHP(int amt, bool anim = false); - bool pbFaint(bool showMessage = true); + bool Faint(bool showMessage = true); #endregion #region Find other battlers/sides in relation to this battler @@ -142,122 +142,122 @@ public interface IBattler /// Returns the data structure for this battler's side /// /// Player: 0 and 2; Foe: 1 and 3 - IEffectsSide pbOwnSide { get; } + IEffectsSide OwnSide { get; } /// /// Returns the data structure for the opposing Pokémon's side /// /// Player: 1 and 3; Foe: 0 and 2 - IEffectsSide pbOpposingSide { get; } + IEffectsSide OpposingSide { get; } /// /// Returns whether the position belongs to the opposing Pokémon's side /// /// /// - bool pbIsOpposing(int i); + bool IsOpposing(int i); /// /// Returns the battler's partner /// /// - IBattler pbPartner { get; } + IBattler Partner { get; } /// /// Returns the battler's first opposing Pokémon /// /// - IBattler pbOpposing1 { get; } + IBattler Opposing1 { get; } /// /// Returns the battler's second opposing Pokémon /// /// - IBattler pbOpposing2 { get; } + IBattler Opposing2 { get; } - IBattler pbOppositeOpposing { get; } + IBattler OppositeOpposing { get; } - IBattler pbOppositeOpposing2 { get; } + IBattler OppositeOpposing2 { get; } - int pbNonActivePokemonCount { get; } + int NonActivePokemonCount { get; } #endregion #region Forms - void pbCheckForm(); + void CheckForm(); - void pbResetForm(); + void ResetForm(); #endregion #region Ability effects - void pbAbilitiesOnSwitchIn(bool onactive); + void AbilitiesOnSwitchIn(bool onactive); - void pbEffectsOnDealingDamage(IBattleMove move, IBattler user, IBattler target, int damage); + void EffectsOnDealingDamage(IBattleMove move, IBattler user, IBattler target, int damage); - void pbEffectsAfterHit(IBattler user, IBattler target, IBattleMove thismove, IEffectsMove turneffects); + void EffectsAfterHit(IBattler user, IBattler target, IBattleMove thismove, IEffectsMove turneffects); - void pbAbilityCureCheck(); + void AbilityCureCheck(); #endregion #region Held item effects - void pbConsumeItem(bool recycle = true, bool pickup = true); + void ConsumeItem(bool recycle = true, bool pickup = true); - bool pbConfusionBerry(PokemonUnity.Inventory.Plants.Flavours flavor, string message1, string message2); + bool ConfusionBerry(PokemonUnity.Inventory.Plants.Flavours flavor, string message1, string message2); - bool pbStatIncreasingBerry(PokemonUnity.Combat.Stats stat, string berryname); + bool StatIncreasingBerry(PokemonUnity.Combat.Stats stat, string berryname); - void pbActivateBerryEffect(Items berry = Items.NONE, bool consume = true); + void ActivateBerryEffect(Items berry = Items.NONE, bool consume = true); - void pbBerryCureCheck(bool hpcure = false); + void BerryCureCheck(bool hpcure = false); #endregion #region Move user and targets - IBattler pbFindUser(IBattleChoice choice, IList targets); + IBattler FindUser(IBattleChoice choice, IList targets); - IBattler pbChangeUser(IBattleMove thismove, IBattler user); + IBattler ChangeUser(IBattleMove thismove, IBattler user); - PokemonUnity.Attack.Data.Targets pbTarget(IBattleMove move); + PokemonUnity.Attack.Data.Targets Target(IBattleMove move); - bool pbAddTarget(ref IList targets, IBattler target); + bool AddTarget(ref IList targets, IBattler target); - void pbRandomTarget(IList targets); + void RandomTarget(IList targets); - bool pbChangeTarget(IBattleMove thismove, IBattler[] userandtarget, IBattler[] targets); + bool ChangeTarget(IBattleMove thismove, IBattler[] userandtarget, IBattler[] targets); #endregion #region Move PP - void pbSetPP(IBattleMove move, int pp); + void SetPP(IBattleMove move, int pp); - bool pbReducePP(IBattleMove move); + bool ReducePP(IBattleMove move); - void pbReducePPOther(IBattleMove move); + void ReducePPOther(IBattleMove move); #endregion #region Using a move - bool pbObedienceCheck(IBattleChoice choice); + bool ObedienceCheck(IBattleChoice choice); - bool pbSuccessCheck(IBattleMove thismove, IBattler user, IBattler target, IEffectsMove turneffects, bool accuracy = true); + bool SuccessCheck(IBattleMove thismove, IBattler user, IBattler target, IEffectsMove turneffects, bool accuracy = true); - bool pbTryUseMove(IBattleChoice choice, IBattleMove thismove, IEffectsMove turneffects); + bool TryUseMove(IBattleChoice choice, IBattleMove thismove, IEffectsMove turneffects); - void pbConfusionDamage(); + void ConfusionDamage(); - void pbUpdateTargetedMove(IBattleMove thismove, IBattler user); + void UpdateTargetedMove(IBattleMove thismove, IBattler user); - void pbProcessMoveAgainstTarget(IBattleMove thismove, IBattler user, IBattler target, int numhits, IEffectsMove turneffects, bool nocheck = false, int[] alltargets = null, bool showanimation = true); + void ProcessMoveAgainstTarget(IBattleMove thismove, IBattler user, IBattler target, int numhits, IEffectsMove turneffects, bool nocheck = false, int[] alltargets = null, bool showanimation = true); - void pbUseMoveSimple(Moves moveid, int index = -1, int target = -1); + void UseMoveSimple(Moves moveid, int index = -1, int target = -1); - void pbUseMove(IBattleChoice choice, bool specialusage = false); + void UseMove(IBattleChoice choice, bool specialusage = false); - void pbCancelMoves(); + void CancelMoves(); #endregion #region Turn processing - void pbBeginTurn(IBattleChoice choice); + void BeginTurn(IBattleChoice choice); - void pbEndTurn(IBattleChoice choice); + void EndTurn(IBattleChoice choice); - bool pbProcessTurn(IBattleChoice choice); + bool ProcessTurn(IBattleChoice choice); #endregion } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlerEffect.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlerEffect.cs index 256712b10..b7546d407 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlerEffect.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IBattlerEffect.cs @@ -15,97 +15,97 @@ namespace PokemonEssentials.Interface.PokeBattle public interface IBattlerEffect { #region Sleep - bool pbCanSleep(IBattler attacker, bool showMessages, IBattleMove move = null, bool ignorestatus = false); + bool CanSleep(IBattler attacker, bool showMessages, IBattleMove move = null, bool ignorestatus = false); - bool pbCanSleepYawn(); + bool CanSleepYawn(); - void pbSleep(string msg = null); + void Sleep(string msg = null); - void pbSleepSelf(int duration = -1); + void SleepSelf(int duration = -1); #endregion #region Poison - bool pbCanPoison(IBattler attacker, bool showMessages, IBattleMove move = null); + bool CanPoison(IBattler attacker, bool showMessages, IBattleMove move = null); - bool pbCanPoisonSynchronize(IBattler opponent); + bool CanPoisonSynchronize(IBattler opponent); - bool pbCanPoisonSpikes(bool moldbreaker = false); + bool CanPoisonSpikes(bool moldbreaker = false); - void pbPoison(IBattler attacker, string msg = null, bool toxic = false); + void Poison(IBattler attacker, string msg = null, bool toxic = false); #endregion #region Burn - bool pbCanBurn(IBattler attacker, bool showMessages, IBattleMove move = null); + bool CanBurn(IBattler attacker, bool showMessages, IBattleMove move = null); - bool pbCanBurnSynchronize(IBattler opponent); + bool CanBurnSynchronize(IBattler opponent); - void pbBurn(IBattler attacker, string msg = null); + void Burn(IBattler attacker, string msg = null); #endregion #region Paralyze - bool pbCanParalyze(IBattler attacker, bool showMessages, IBattleMove move = null); + bool CanParalyze(IBattler attacker, bool showMessages, IBattleMove move = null); - bool pbCanParalyzeSynchronize(IBattler opponent); + bool CanParalyzeSynchronize(IBattler opponent); - void pbParalyze(IBattler attacker, string msg = null); + void Paralyze(IBattler attacker, string msg = null); #endregion #region Freeze - bool pbCanFreeze(IBattler attacker, bool showMessages, IBattleMove move = null); + bool CanFreeze(IBattler attacker, bool showMessages, IBattleMove move = null); - void pbFreeze(string msg = null); + void Freeze(string msg = null); #endregion #region Generalised status displays - void pbContinueStatus(bool showAnim= true); + void ContinueStatus(bool showAnim= true); - void pbCureStatus(bool showMessages= true); + void CureStatus(bool showMessages= true); #endregion #region Confuse - bool pbCanConfuse(IBattler attacker = null, bool showMessages = true, IBattleMove move = null); + bool CanConfuse(IBattler attacker = null, bool showMessages = true, IBattleMove move = null); - bool pbCanConfuseSelf(bool showMessages); + bool CanConfuseSelf(bool showMessages); - void pbConfuse(); + void Confuse(); - void pbConfuseSelf(); + void ConfuseSelf(); - void pbContinueConfusion(); + void ContinueConfusion(); - void pbCureConfusion(bool showMessages = true); + void CureConfusion(bool showMessages = true); #endregion #region Attraction - bool pbCanAttract(IBattler attacker, bool showMessages = true); + bool CanAttract(IBattler attacker, bool showMessages = true); - void pbAttract(IBattler attacker, string msg = null); + void Attract(IBattler attacker, string msg = null); - void pbAnnounceAttract(IBattler seducer); + void AnnounceAttract(IBattler seducer); - void pbContinueAttract(); + void ContinueAttract(); - void pbCureAttract(); + void CureAttract(); #endregion #region Flinching - bool pbFlinch(IBattler attacker); + bool Flinch(IBattler attacker); #endregion #region Increase stat stages - bool pbTooHigh(Stats stat); + bool TooHigh(Stats stat); - bool pbCanIncreaseStatStage(Stats stat, IBattler attacker = null, bool showMessages = false, IBattleMove move = null, bool moldbreaker = false, bool ignoreContrary = false); + bool CanIncreaseStatStage(Stats stat, IBattler attacker = null, bool showMessages = false, IBattleMove move = null, bool moldbreaker = false, bool ignoreContrary = false); - int pbIncreaseStatBasic(Stats stat, int increment, IBattler attacker = null, bool moldbreaker = false, bool ignoreContrary = false); + int IncreaseStatBasic(Stats stat, int increment, IBattler attacker = null, bool moldbreaker = false, bool ignoreContrary = false); - bool pbIncreaseStat(Stats stat, int increment, IBattler attacker, bool showMessages, IBattleMove move = null, bool upanim = true, bool moldbreaker = false, bool ignoreContrary = false); + bool IncreaseStat(Stats stat, int increment, IBattler attacker, bool showMessages, IBattleMove move = null, bool upanim = true, bool moldbreaker = false, bool ignoreContrary = false); - bool pbIncreaseStatWithCause(Stats stat, int increment, IBattler attacker, string cause, bool showanim = true, bool showmessage = true, bool moldbreaker = false, bool ignoreContrary = false); + bool IncreaseStatWithCause(Stats stat, int increment, IBattler attacker, string cause, bool showanim = true, bool showmessage = true, bool moldbreaker = false, bool ignoreContrary = false); #endregion #region Decrease stat stages - bool pbTooLow(Stats stat); + bool TooLow(Stats stat); /// /// Tickle () and Noble Roar () can't use this, but replicate it instead. @@ -119,15 +119,15 @@ public interface IBattlerEffect /// /// /// - bool pbCanReduceStatStage(Stats stat, IBattler attacker = null, bool showMessages = false, IBattleMove move = null, bool moldbreaker = false, bool ignoreContrary = false); + bool CanReduceStatStage(Stats stat, IBattler attacker = null, bool showMessages = false, IBattleMove move = null, bool moldbreaker = false, bool ignoreContrary = false); - int pbReduceStatBasic(Stats stat, int increment, IBattler attacker = null, bool moldbreaker = false, bool ignoreContrary = false); + int ReduceStatBasic(Stats stat, int increment, IBattler attacker = null, bool moldbreaker = false, bool ignoreContrary = false); - bool pbReduceStat(Stats stat, int increment, IBattler attacker, bool showMessages, IBattleMove move = null, bool downanim = true, bool moldbreaker = false, bool ignoreContrary = false); + bool ReduceStat(Stats stat, int increment, IBattler attacker, bool showMessages, IBattleMove move = null, bool downanim = true, bool moldbreaker = false, bool ignoreContrary = false); - bool pbReduceStatWithCause(Stats stat, int increment, IBattler attacker, string cause, bool showanim = true, bool showmessage = true, bool moldbreaker = false, bool ignoreContrary = false); + bool ReduceStatWithCause(Stats stat, int increment, IBattler attacker, string cause, bool showanim = true, bool showmessage = true, bool moldbreaker = false, bool ignoreContrary = false); - bool pbReduceAttackStatIntimidate(IBattler opponent); + bool ReduceAttackStatIntimidate(IBattler opponent); #endregion } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IFakeBattler.cs b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IFakeBattler.cs index b1ac0f5a9..affccaeee 100644 --- a/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IFakeBattler.cs +++ b/PokemonUnity.Shared/Framework/Essentials/PokeBattle/IFakeBattler.cs @@ -37,7 +37,7 @@ public interface IFakeBattler bool? displayGender { get; } bool captured { get; set; } - //string pbThis(bool lowercase= false); + //string This(bool lowercase= false); string ToString(bool lowercase = false); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemon.cs b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemon.cs index b5f448bf6..b21bf61ce 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemon.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemon.cs @@ -15,7 +15,7 @@ namespace PokemonEssentials.Interface.PokeBattle { - public interface IPokemon + public interface IPokemon : ICloneable, IEquatable, IEqualityComparer { /// /// Current Total HP @@ -48,7 +48,7 @@ public interface IPokemon int[] IV { get; } /// /// Effort Values - /// + /// byte[] EV { get; } /// /// Species (National Pokedex number) @@ -107,7 +107,7 @@ public interface IPokemon /// int Happiness { get; } /// - /// Status problem (PBStatuses) + /// Status problem (Statuses) /// Status Status { get; set; } /// @@ -119,7 +119,7 @@ public interface IPokemon /// int EggSteps { get; set; } /// - /// Moves (PBMove) + /// Moves (Move) /// IMove[] moves { get; } /// @@ -161,7 +161,7 @@ public interface IPokemon /// //int language { get; set; } /// - /// Original Trainer's name + /// Original Trainer's name /// string ot { get; set; } /// @@ -176,19 +176,19 @@ public interface IPokemon /// /// Forces the first/second/hidden (0/1/2) ability /// - int abilityflag { get; set; } + int abilityflag { set; } /// /// Forces male (0) or female (1) /// - bool genderflag { get; set; } + bool genderflag { set; } /// /// Forces a particular nature /// - int natureflag { get; set; } + int natureflag { set; } /// /// Forces the shininess (true/false) /// - bool shinyflag { get; set; } + bool shinyflag { set; } /// /// Array of ribbons /// @@ -368,7 +368,8 @@ public interface IPokemon /// /// /// - bool hasNature(Natures? value = null); //-1 + //bool hasNature(Natures? value = null); //-1 + bool hasNature(Natures value); //-1 /// /// Sets this Pokémon's nature to a particular nature. @@ -472,29 +473,29 @@ public interface IPokemon /// Silently learns the given move. Will erase the first known move if it has to. /// /// - void pbLearnMove(Moves move); + void LearnMove(Moves move); /// /// Deletes the given move from the Pokémon. /// /// - void pbDeleteMove(Moves move); + void DeleteMove(Moves move); /// /// Deletes the move at the given index from the Pokémon. /// /// - void pbDeleteMoveAtIndex(int index); + void DeleteMoveAtIndex(int index); /// /// Deletes all moves from the Pokémon. /// - void pbDeleteAllMoves(); + void DeleteAllMoves(); /// /// Copies currently known moves into a separate array, for Move Relearner. /// - void pbRecordFirstMoves(); + void RecordFirstMoves(); bool isCompatibleWithMove(Moves move); @@ -512,7 +513,7 @@ public interface IPokemon /// Returns the number of ribbons this Pokemon has. /// /// - int ribbonCount(); + int ribbonCount { get; } /// /// Returns whether this Pokémon has the specified ribbon. @@ -632,7 +633,7 @@ public interface IPokemon bool Heal(); // Changes the happiness of this Pokémon depending on what happened to change it. - void changeHappiness(HappinessMethods method); + void ChangeHappiness(HappinessMethods method); // ############################################################################### // Stat calculations, Pokémon creation @@ -661,7 +662,7 @@ public interface IPokemon /// /// /// - void calcStat(int _base, int level, int iv, int ev, int pv); + int calcStat(int _base, int level, int iv, int ev, int pv); /// /// Recalculates this Pokémon's stats. diff --git a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonChatter.cs b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonChatter.cs index 4bdd525a5..a1ac96e36 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonChatter.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonChatter.cs @@ -33,14 +33,14 @@ public interface IPokemonChatter /// public interface IGameChatter { - void pbChatter(PokemonEssentials.Interface.PokeBattle.IPokemonChatter pokemon); + void Chatter(PokemonEssentials.Interface.PokeBattle.IPokemonChatter pokemon); //HiddenMoveHandlers.addCanUseMove(:CHATTER,proc {|item,pokemon| // return true; //}); //HiddenMoveHandlers.addUseMove(:CHATTER,proc {|item,pokemon| - // pbChatter(pokemon); + // Chatter(pokemon); // return true; //}); } @@ -50,6 +50,6 @@ public interface IGameChatter /// public interface IPokeBattle_SceneChatter //: IPokeBattle_Scene { - void pbChatter(IBattler attacker, IBattler opponent); + void Chatter(IBattler attacker, IBattler opponent); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonEvolution.cs b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonEvolution.cs index 5a00728ed..898169863 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonEvolution.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonEvolution.cs @@ -15,7 +15,7 @@ namespace PokemonEssentials.Interface { - // public static partial class PBEvolution { + // public static partial class Evolution { // Unknown = 0; // Do not use // Happiness = 1; // HappinessDay = 2; @@ -88,24 +88,24 @@ public interface IGamePokemonEvolution // =============================================================================== // Evolution helper functions // =============================================================================== - PokemonUnity.Monster.Data.PokemonEvolution[] pbGetEvolvedFormData(Pokemons species); + PokemonUnity.Monster.Data.PokemonEvolution[] GetEvolvedFormData(Pokemons species); //Loops through each pokemon in db with evolution, //every 5 pokemons, log in debug output pokemon evolution - void pbEvoDebug(); + void EvoDebug(); - Pokemons pbGetPreviousForm(Pokemons species); + Pokemons GetPreviousForm(Pokemons species); - int pbGetMinimumLevel(Pokemons species); + int GetMinimumLevel(Pokemons species); - Pokemons pbGetBabySpecies(Pokemons species, Items item1 = Items.NONE, Items item2 = Items.NONE); + Pokemons GetBabySpecies(Pokemons species, Items item1 = Items.NONE, Items item2 = Items.NONE); // =============================================================================== // Evolution methods // =============================================================================== - Pokemons pbMiniCheckEvolution(IPokemon pokemon, EvolutionMethod evonib, int level, Pokemons poke); + Pokemons MiniCheckEvolution(IPokemon pokemon, EvolutionMethod evonib, int level, Pokemons poke); - Pokemons pbMiniCheckEvolutionItem(IPokemon pokemon, EvolutionMethod evonib, Items level, Pokemons poke, Items item); + Pokemons MiniCheckEvolutionItem(IPokemon pokemon, EvolutionMethod evonib, Items level, Pokemons poke, Items item); /// /// Checks whether a Pokemon can evolve now. If a block is given, calls the block @@ -113,7 +113,7 @@ public interface IGamePokemonEvolution /// Pokemon to check; evolution type; level or other parameter; ID of the new Pokemon species /// /// - Pokemons pbCheckEvolutionEx(IPokemon pokemon); + Pokemons CheckEvolutionEx(IPokemon pokemon); /// /// Checks whether a Pokemon can evolve now. If an item is used on the Pokémon, @@ -121,12 +121,12 @@ public interface IGamePokemonEvolution /// /// /// - Pokemons[] pbCheckEvolution(IPokemon pokemon, Items item = 0); + Pokemons[] CheckEvolution(IPokemon pokemon, Items item = 0); // =============================================================================== // Evolution animation // =============================================================================== - /*public void pbSaveSpriteState(ISprite sprite) { + /*public void SaveSpriteState(ISprite sprite) { state=[]; if (!sprite || sprite.disposed?) return state; state[SpriteMetafile.BITMAP] = sprite.x; @@ -149,7 +149,7 @@ public interface IGamePokemonEvolution return state; } - public void pbRestoreSpriteState(ISprite sprite,state) { + public void RestoreSpriteState(ISprite sprite,state) { if (!state || !sprite || sprite.disposed?) return; sprite.x = state[SpriteMetafile.X]; sprite.y = state[SpriteMetafile.Y]; @@ -169,17 +169,17 @@ public void pbRestoreSpriteState(ISprite sprite,state) { sprite.tone = state[SpriteMetafile.TONE]; } - public void pbSaveSpriteStateAndBitmap(sprite) { + public void SaveSpriteStateAndBitmap(sprite) { if (!sprite || sprite.disposed?) return []; - state=pbSaveSpriteState(sprite); + state=SaveSpriteState(sprite); state[SpriteMetafile.eITMAP]=sprite.bitmap; return state; } - public void pbRestoreSpriteStateAndBitmap(sprite,state) { + public void RestoreSpriteStateAndBitmap(sprite,state) { if (!state || !sprite || sprite.disposed?) return; sprite.bitmap=state[SpriteMetafile.eITMAP]; - pbRestoreSpriteState(sprite,state); + RestoreSpriteState(sprite,state); return state; }*/ } diff --git a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonMultipleForms.cs b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonMultipleForms.cs index 64db57264..59dfb66ce 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonMultipleForms.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonMultipleForms.cs @@ -94,15 +94,15 @@ public interface IPokemonMultipleForms /// Extension of /// public interface IBattlePeerMultipleForms { - void pbOnEnteringBattle(IBattle battle, IPokemon pokemon); - //int pbStorePokemon(ITrainer player, IPokemonMultipleForms pokemon); - //string pbGetStorageCreator(); - //int pbCurrentBox(); - //string pbBoxName(int box); + void OnEnteringBattle(IBattle battle, IPokemon pokemon); + //int StorePokemon(ITrainer player, IPokemonMultipleForms pokemon); + //string GetStorageCreator(); + //int CurrentBox(); + //string BoxName(int box); } //public interface IMultipleForms { - // @@formSpecies=new HandlerHash(:PBSpecies); + // @@formSpecies=new HandlerHash(:Species); // static void copy(sym,*syms) { // @@formSpecies.copy(sym,*syms); @@ -139,7 +139,7 @@ public interface IGamePokemonMultipleForms { void drawSpot(IBitmap bitmap,int[][] spotpattern, int x, int y, sbyte red, sbyte green, sbyte blue); - int[][] pbSpindaSpots(IPokemonMultipleForms pokemon, IBitmap bitmap); + int[][] SpindaSpots(IPokemonMultipleForms pokemon, IBitmap bitmap); } } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonShadowPokemon.cs b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonShadowPokemon.cs index b26a6f854..48ce69e33 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonShadowPokemon.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Pokemon/IPokemonShadowPokemon.cs @@ -31,7 +31,7 @@ Shadow has Shadow as a resistance. If (user is in Hyper Mode, this attack has a good chance for a critical hit. =end;*/ - //public partial class PBWeather { + //public partial class Weather { // public const int SHADOWSKY = 8; //} @@ -47,25 +47,25 @@ public interface ITempMetadataPokemonShadow { /// public interface IGameShadowPokemon { - void pbPurify(IPokemonShadowPokemon pokemon, IPurifyChamberScene scene); + void Purify(IPokemonShadowPokemon pokemon, IPurifyChamberScene scene); #region Relic Stone Logic - void pbRelicStoneScreen(IPokemonShadowPokemon pkmn); + void RelicStoneScreen(IPokemonShadowPokemon pkmn); - bool pbIsPurifiable(IPokemonShadowPokemon pkmn); + bool IsPurifiable(IPokemonShadowPokemon pkmn); - bool pbHasPurifiableInParty(); + bool HasPurifiableInParty(); - void pbRelicStone(); + void RelicStone(); - bool pbRaiseHappinessAndReduceHeart(IPokemonShadowPokemon pokemon, IScene scene, int amount); + bool RaiseHappinessAndReduceHeart(IPokemonShadowPokemon pokemon, IScene scene, int amount); - void pbApplyEVGain(IPokemon pokemon, Stats ev, int evgain); + void ApplyEVGain(IPokemon pokemon, Stats ev, int evgain); - void pbReplaceMoves(IPokemon pokemon, Moves move1, Moves move2 = 0, Moves move3 = 0, Moves move4 = 0); + void ReplaceMoves(IPokemon pokemon, Moves move1, Moves move2 = 0, Moves move3 = 0, Moves move4 = 0); #endregion - void pbReadyToPurify(IPokemonShadowPokemon pokemon); + void ReadyToPurify(IPokemonShadowPokemon pokemon); event EventHandler OnStartBattle; //Events.onStartBattle+=delegate(object sender, EventArgs e) { @@ -84,99 +84,99 @@ public interface IGameShadowPokemon // pokemon=Game.GameData.Trainer.party[i]; // if (pokemon && (Game.GameData.PokemonTemp.heartgauges[i] && // Game.GameData.PokemonTemp.heartgauges[i]!=0 && pokemon.heartgauge==0)) { - // pbReadyToPurify(pokemon); + // ReadyToPurify(pokemon); // } // } //} //ItemHandlers.UseOnPokemon.add(:JOYSCENT,proc{|item,pokemon,scene| - // pbRaiseHappinessAndReduceHeart(pokemon,scene,500); + // RaiseHappinessAndReduceHeart(pokemon,scene,500); //}); //ItemHandlers.UseOnPokemon.add(:EXCITESCENT,proc{|item,pokemon,scene| - // pbRaiseHappinessAndReduceHeart(pokemon,scene,1000); + // RaiseHappinessAndReduceHeart(pokemon,scene,1000); //}); //ItemHandlers.UseOnPokemon.add(:VIVIDSCENT,proc{|item,pokemon,scene| - // pbRaiseHappinessAndReduceHeart(pokemon,scene,2000); + // RaiseHappinessAndReduceHeart(pokemon,scene,2000); //}); //ItemHandlers.UseOnPokemon.add(:TIMEFLUTE,proc{|item,pokemon,scene| // if (!pokemon.isShadow?) { - // scene.pbDisplay(_INTL("It won't have any effect.")); + // scene.Display(_INTL("It won't have any effect.")); // next false; // } // pokemon.heartgauge=0; - // pbReadyToPurify(pokemon); + // ReadyToPurify(pokemon); // next true; //}); //ItemHandlers.BattleUseOnBattler.add(:JOYSCENT,proc{|item,battler,scene| // if (!battler.isShadow?) { - // scene.pbDisplay(_INTL("It won't have any effect.")); + // scene.Display(_INTL("It won't have any effect.")); // return false; // } // if (battler.inHyperMode?) { // battler.pokemon.hypermode=false; // battler.pokemon.adjustHeart(-300); - // scene.pbDisplay(_INTL("{1} came to its senses from the {2}!",battler.ToString(),item.ToString(TextScripts.Name))); + // scene.Display(_INTL("{1} came to its senses from the {2}!",battler.ToString(),item.ToString(TextScripts.Name))); //// if battler.happiness!=255 || battler.pokemon.heartgauge!=0 - //// pbRaiseHappinessAndReduceHeart(battler.pokemon,scene,500) + //// RaiseHappinessAndReduceHeart(battler.pokemon,scene,500) //// } // return true; // } - //// return pbRaiseHappinessAndReduceHeart(battler.pokemon,scene,500) - // scene.pbDisplay(_INTL("It won't have any effect.")); + //// return RaiseHappinessAndReduceHeart(battler.pokemon,scene,500) + // scene.Display(_INTL("It won't have any effect.")); // return false; //}); //ItemHandlers.BattleUseOnBattler.add(:EXCITESCENT,proc{|item,battler,scene| // if (!battler.isShadow?) { - // scene.pbDisplay(_INTL("It won't have any effect.")); + // scene.Display(_INTL("It won't have any effect.")); // return false; // } // if (battler.inHyperMode?) { // battler.pokemon.hypermode=false; // battler.pokemon.adjustHeart(-300); - // scene.pbDisplay(_INTL("{1} came to its senses from the {2}!",battler.ToString(),item.ToString(TextScripts.Name))); + // scene.Display(_INTL("{1} came to its senses from the {2}!",battler.ToString(),item.ToString(TextScripts.Name))); //// if battler.happiness!=255 || battler.pokemon.heartgauge!=0 - //// pbRaiseHappinessAndReduceHeart(battler.pokemon,scene,1000) + //// RaiseHappinessAndReduceHeart(battler.pokemon,scene,1000) //// } // return true; // } - //// return pbRaiseHappinessAndReduceHeart(battler.pokemon,scene,1000) - // scene.pbDisplay(_INTL("It won't have any effect.")); + //// return RaiseHappinessAndReduceHeart(battler.pokemon,scene,1000) + // scene.Display(_INTL("It won't have any effect.")); // return false; //}); //ItemHandlers.BattleUseOnBattler.add(:VIVIDSCENT,proc{|item,battler,scene| // if (!battler.isShadow?) { - // scene.pbDisplay(_INTL("It won't have any effect.")); + // scene.Display(_INTL("It won't have any effect.")); // return false; // } // if (battler.inHyperMode?) { // battler.pokemon.hypermode=false; // battler.pokemon.adjustHeart(-300); - // scene.pbDisplay(_INTL("{1} came to its senses from the {2}!",battler.ToString(),item.ToString(TextScripts.Name))); + // scene.Display(_INTL("{1} came to its senses from the {2}!",battler.ToString(),item.ToString(TextScripts.Name))); //// if battler.happiness!=255 || battler.pokemon.heartgauge!=0 - //// pbRaiseHappinessAndReduceHeart(battler.pokemon,scene,2000) + //// RaiseHappinessAndReduceHeart(battler.pokemon,scene,2000) //// } // return true; // } - //// return pbRaiseHappinessAndReduceHeart(battler.pokemon,scene,2000) - // scene.pbDisplay(_INTL("It won't have any effect.")); + //// return RaiseHappinessAndReduceHeart(battler.pokemon,scene,2000) + // scene.Display(_INTL("It won't have any effect.")); // return false; //}); /// /// Fires whenever the player takes a step. /// - event EventHandler OnStepTaken; + event EventHandler OnStepTakenEvent; //Events.onStepTaken+=proc{ // foreach (var pkmn in Game.GameData.Trainer.party) { // if (pkmn.HP>0 && !pkmn.isEgg? && pkmn.heartgauge>0) { // pkmn.adjustHeart(-1); - // if (pkmn.heartgauge==0) pbReadyToPurify(pkmn); + // if (pkmn.heartgauge==0) ReadyToPurify(pkmn); // } // } // if ((Game.GameData.Global.purifyChamber rescue null)) { @@ -186,7 +186,7 @@ public interface IGameShadowPokemon // pkmn=Game.GameData.Global.daycare[i][0]; // if (!pkmn) continue; // pkmn.adjustHeart(-1); - // pkmn.pbUpdateShadowMoves(); + // pkmn.UpdateShadowMoves(); // } //} } @@ -213,7 +213,7 @@ public interface IPokemonShadowPokemon void makeShadow(); - void pbUpdateShadowMoves(bool allmoves = false); + void UpdateShadowMoves(bool allmoves = false); //alias :__shadow_expeq :exp=; @@ -241,28 +241,28 @@ public interface IPokemonShadowPokemon /// Extensions of /// public interface IBattleShadowPokemon { - //alias __shadow_pbUseItemOnPokemon pbUseItemOnPokemon; + //alias __shadow_UseItemOnPokemon UseItemOnPokemon; - bool pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene); + bool UseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene); } /// /// Extensions of /// public interface IBattlerShadowPokemon { - //alias __shadow_pbInitPokemon pbInitPokemon; - //alias __shadow_pbEndTurn pbEndTurn; + //alias __shadow_InitPokemon InitPokemon; + //alias __shadow_EndTurn EndTurn; - void pbInitPokemon(IPokemon pkmn, int pkmnIndex); + void InitPokemon(IPokemon pkmn, int pkmnIndex); - void pbEndTurn(IBattleChoice choice); + void EndTurn(IBattleChoice choice); bool isShadow(); bool inHyperMode(); - void pbHyperMode(); + void HyperMode(); - bool pbHyperModeObedience(IBattleMove move); + bool HyperModeObedience(IBattleMove move); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IBag.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IBag.cs index 65eb43346..1f6262c8b 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IBag.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IBag.cs @@ -61,23 +61,23 @@ public interface IBag /// Registers the item as a key item. Can be retrieved with Game.GameData.Bag.registeredItem /// /// - void pbRegisterKeyItem(Items item); + void RegisterKeyItem(Items item); int maxPocketSize(int pocket); - int pbQuantity(Items item); + int Quantity(Items item); - bool pbHasItem(Items item); + bool HasItem(Items item); - bool pbDeleteItem(Items item, int qty = 1); + bool DeleteItem(Items item, int qty = 1); - bool pbCanStore(Items item, int qty = 1); + bool CanStore(Items item, int qty = 1); - bool pbStoreAllOrNone(Items item, int qty = 1); + bool StoreAllOrNone(Items item, int qty = 1); - bool pbStoreItem(Items item, int qty = 1); + bool StoreItem(Items item, int qty = 1); - bool pbChangeItem(Items olditem, Items newitem); + bool ChangeItem(Items olditem, Items newitem); } #region Bag Scene @@ -85,20 +85,20 @@ public interface IBagScene : IScene { IBagScene initialize(); void update(); - void pbStartScene(IBag bag); - void pbEndScene(); - int pbChooseNumber(string helptext, int maximum); - void pbDisplay(string msg, bool brief = false); - void pbConfirm(string msg); - int pbShowCommands(string helptext, IList commands); - //void pbRefresh(); + void StartScene(IBag bag); + void EndScene(); + int ChooseNumber(string helptext, int maximum); + void Display(string msg, bool brief = false); + void Confirm(string msg); + int ShowCommands(string helptext, IList commands); + //void Refresh(); /// /// Called when the item screen wants an item to be chosen from the screen /// /// /// - Items pbChooseItem(bool lockpocket = false); + Items ChooseItem(bool lockpocket = false); } /// @@ -108,49 +108,49 @@ public interface IBagScene : IScene public interface IBagScreen : IScreen { IBagScreen initialize(IBagScene scene, IBag bag); - void pbDisplay(string text); - void pbConfirm(string text); + void Display(string text); + void Confirm(string text); /// /// UI logic for the item screen when an item is to be held by a Pokémon. /// /// - Items pbGiveItemScreen(); + Items GiveItemScreen(); /// /// UI logic for the item screen when an item is used on a Pokémon from the party screen. /// /// /// - Items pbUseItemScreen(Pokemons pokemon); + Items UseItemScreen(Pokemons pokemon); /// /// UI logic for the item screen for choosing an item /// /// - Items pbChooseItemScreen(); + Items ChooseItemScreen(); /// /// UI logic for the item screen for choosing a Berry /// /// - Items pbChooseBerryScreen(); + Items ChooseBerryScreen(); /// /// UI logic for tossing an item in the item screen. /// - void pbTossItemScreen(); + void TossItemScreen(); /// /// UI logic for withdrawing an item in the item screen. /// - void pbWithdrawItemScreen(); + void WithdrawItemScreen(); /// /// UI logic for depositing an item in the item screen. /// - void pbDepositItemScreen(); - Items pbStartScreen(); + void DepositItemScreen(); + Items StartScreen(); } #endregion diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IBattle.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IBattle.cs index de7bc1edd..3b9fcfbd6 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IBattle.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IBattle.cs @@ -123,7 +123,7 @@ public interface IPokemonDataBox : ISpriteWrapper, ISafariDataBox { IBattler battler { get; } new int selected { get; set; } - bool appearing { get; } + //bool appearing { get; } bool animatingHP { get; } bool animatingEXP { get; } @@ -143,7 +143,7 @@ public interface IPokemonDataBox : ISpriteWrapper, ISafariDataBox //void appear(); - void refresh(); + //void refresh(); //void update(); } @@ -222,6 +222,7 @@ public interface IPlayerFadeAnimation void update(); } + #endregion /// /// Shows the player's Poké Ball being thrown to capture a Pokémon. @@ -236,21 +237,20 @@ public interface IPlayerFadeAnimation /// //void pokeballThrow(Items ball, int shakes, bool critical, IBattler targetBattler, IScene scene, IBattler battler, int burst = -1, bool showplayer = false); - #endregion - #region Pokemon Battle /// /// /// public interface ISceneHasChatter { - void pbChatter(IBattler attacker,IBattler opponent); + void Chatter(IBattler attacker,IBattler opponent); } + public interface IPokeBattle_Scene : IScene, ISceneHasChatter, IPokeBattle_DebugScene { //event EventHandler OnPokeballThrown; /* - - def pbChooseNewEnemy(int index,party) + - def ChooseNewEnemy(int index,party) Use this method to choose a new Pokémon for the enemy The enemy's party is guaranteed to have at least one choosable member. @@ -258,48 +258,48 @@ choosable member. access the battler) party - Enemy's party - - def pbWildBattleSuccess + - def WildBattleSuccess This method is called when the player wins a wild Pokémon battle. This method can change the battle's music for example. - - def pbTrainerBattleSuccess + - def TrainerBattleSuccess This method is called when the player wins a Trainer battle. This method can change the battle's music for example. - - def pbFainted(pkmn) + - def Fainted(pkmn) This method is called whenever a Pokémon faints. pkmn - PokeBattle_Battler object indicating the Pokémon that fainted - - def pbChooseEnemyCommand(int index) + - def ChooseEnemyCommand(int index) Use this method to choose a command for the enemy. index - Index of enemy battler (use e.g. @battle.battlers[index] to access the battler) */ new IPokeBattle_Scene initialize(); - void pbUpdate(); - void pbGraphicsUpdate(); - void pbInputUpdate(); - void pbShowWindow(int windowtype); - void pbSetMessageMode(bool mode); - void pbWaitMessage(); - void pbDisplay(string msg, bool brief = false); - //new void pbDisplayMessage(string msg, bool brief = false); - //new void pbDisplayPausedMessage(string msg); - //new bool pbDisplayConfirmMessage(string msg); - //void pbShowCommands(string msg, string[] commands, int defaultValue); - //new void pbShowCommands(string msg, string[] commands, bool canCancel); - //new void pbFrameUpdate(object cw = null); - //void pbRefresh(); - IIconSprite pbAddSprite(string id, float x, float y, string filename, IViewport viewport); - void pbAddPlane(string id, string filename, IViewport viewport); - void pbDisposeSprites(); - //new void pbBeginCommandPhase(); - //new IEnumerator pbShowOpponent(int index); - //new IEnumerator pbHideOpponent(); - void pbShowHelp(string text); - void pbHideHelp(); - void pbBackdrop(); + void Update(); + void GraphicsUpdate(); + void InputUpdate(); + void ShowWindow(int windowtype); + void SetMessageMode(bool mode); + void WaitMessage(); + void Display(string msg, bool brief = false); + //new void DisplayMessage(string msg, bool brief = false); + //new void DisplayPausedMessage(string msg); + //new bool DisplayConfirmMessage(string msg); + //void ShowCommands(string msg, string[] commands, int defaultValue); + //new void ShowCommands(string msg, string[] commands, bool canCancel); + //new void FrameUpdate(object cw = null); + //void Refresh(); + IIconSprite AddSprite(string id, float x, float y, string filename, IViewport viewport); + void AddPlane(string id, string filename, IViewport viewport); + void DisposeSprites(); + //new void BeginCommandPhase(); + //new IEnumerator ShowOpponent(int index); + //new IEnumerator HideOpponent(); + void ShowHelp(string text); + void HideHelp(); + void Backdrop(); /// /// Returns whether the party line-ups are currently appearing on-screen /// @@ -309,24 +309,24 @@ This method is called whenever a Pokémon faints. /// Shows the party line-ups appearing on-screen /// void partyAnimationUpdate(); - //new void pbStartBattle(IBattle battle); - //new void pbEndBattle(BattleResults result); - //new void pbRecall(int battlerindex); - void pbTrainerSendOut(int battlerindex, IPokemon pkmn); + //new void StartBattle(IBattle battle); + //new void EndBattle(BattleResults result); + //new void Recall(int battlerindex); + void TrainerSendOut(int battlerindex, IPokemon pkmn); /// /// Player sending out Pokémon /// /// /// - void pbSendOut(int battlerindex, IPokemon pkmn); - void pbTrainerWithdraw(IBattle battle, IBattler pkmn); - //void pbWithdraw(IBattle battle, IBattler pkmn); - //new string pbMoveString(string move); - //new void pbBeginAttackPhase(); - void pbSafariStart(); - void pbResetCommandIndices(); - void pbResetMoveIndex(int index); - int pbSafariCommandMenu(int index); + void SendOut(int battlerindex, IPokemon pkmn); + //void TrainerWithdraw(IBattle battle, IBattler pkmn); + //void Withdraw(IBattle battle, IBattler pkmn); + //new string MoveString(string move); + //new void BeginAttackPhase(); + void SafariStart(); + void ResetCommandIndices(); + void ResetMoveIndex(int index); + int SafariCommandMenu(int index); /// /// Use this method to display the list of commands and choose /// a command for the player. @@ -335,25 +335,25 @@ This method is called whenever a Pokémon faints. /// Index of battler (use e.g. @battle.battlers[index] to /// access the battler) /// Return values: 0=Fight, 1=Bag, 2=Pokémon, 3=Run, 4=Call - //new int pbCommandMenu(int index); + //new int CommandMenu(int index); /// /// /// /// /// 0 - regular battle, 1 - Shadow Pokémon battle, 2 - Safari Zone, 3 - Bug Catching Contest - //int pbCommandMenuEx(int index, string[] texts, int mode = 0); + //int CommandMenuEx(int index, string[] texts, int mode = 0); /// /// Update selected command /// Use this method to display the list of moves for a Pokémon /// /// - //new int pbFightMenu(int index); + //new int FightMenu(int index); /// /// Use this method to display the inventory /// The return value is the item chosen, or 0 if the choice was canceled. /// /// - //new KeyValuePair pbItemMenu(int index); + //new KeyValuePair ItemMenu(int index); /// /// Called whenever a Pokémon should forget a move. It should return -1 if the /// selection is canceled, or 0 to 3 to indicate the move to forget. The function @@ -361,27 +361,27 @@ This method is called whenever a Pokémon faints. /// /// /// - //new int pbForgetMove(IPokemon pokemon, Moves moveToLearn); + //new int ForgetMove(IPokemon pokemon, Moves moveToLearn); /// /// Called whenever a Pokémon needs one of its moves chosen. Used for Ether. /// /// /// - int pbChooseMove(IPokemon pokemon, string message); - string pbNameEntry(string helptext, IPokemon pokemon); - void pbSelectBattler(int index, int selectmode = 1); - //int pbFirstTarget(int index, int targettype); - int pbFirstTarget(int index, PokemonUnity.Attack.Data.Targets targettype); - void pbUpdateSelected(int index); + int ChooseMove(IPokemon pokemon, string message); + string NameEntry(string helptext, IPokemon pokemon); + void SelectBattler(int index, int selectmode = 1); + //int FirstTarget(int index, int targettype); + //int FirstTarget(int index, PokemonUnity.Attack.Data.Targets targettype); + void UpdateSelected(int index); /// /// Use this method to make the player choose a target /// for certain moves in double battles. /// /// /// Which targets are selectable as option - //new int pbChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype); - //new int pbSwitch(int index, bool lax, bool cancancel); - //void pbDamageAnimation(IBattler pkmn, float effectiveness); + //new int ChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype); + //new int Switch(int index, bool lax, bool cancancel); + //void DamageAnimation(IBattler pkmn, float effectiveness); /// /// This method is called whenever a Pokémon's HP changes. /// Used to animate the HP bar. @@ -389,58 +389,58 @@ This method is called whenever a Pokémon faints. /// /// /// - //void pbHPChanged(int pkmn, int oldhp, bool anim = false); + //void HPChanged(int pkmn, int oldhp, bool anim = false); //void HPChanged(int index, int oldhp, bool animate = false); - //IEnumerator pbHPChanged(IBattler pkmn, int oldhp, bool animate = false); + //IEnumerator HPChanged(IBattler pkmn, int oldhp, bool animate = false); /// /// This method is called whenever a Pokémon faints. /// /// - //IEnumerator pbFainted(int pkmn); + //IEnumerator Fainted(int pkmn); /// /// Use this method to choose a command for the enemy. /// /// - //new void pbChooseEnemyCommand(int index); + //new void ChooseEnemyCommand(int index); /// /// Use this method to choose a new Pokémon for the enemy /// The enemy's party is guaranteed to have at least one choosable member. /// /// /// - //new int pbChooseNewEnemy(int index, IPokemon[] party); + //new int ChooseNewEnemy(int index, IPokemon[] party); /// /// This method is called when the player wins a wild Pokémon battle. /// This method can change the battle's music for example. /// - //new void pbWildBattleSuccess(); + //new void WildBattleSuccess(); /// /// This method is called when the player wins a Trainer battle. /// This method can change the battle's music for example. /// - //new void pbTrainerBattleSuccess(); - //new void pbEXPBar(IBattler battler, IPokemon pokemon, int startexp, int endexp, int tempexp1, int tempexp2); - void pbShowPokedex(Pokemons species, int form = 0); - //void pbChangePokemon(IBattler attacker, IPokemon pokemon); - void pbChangePokemon(IBattler attacker, PokemonUnity.Monster.Forms pokemon); - void pbSaveShadows(Action action = null); - void pbFindAnimation(Moves moveid, int userIndex, int hitnum); - void pbCommonAnimation(string animname, IBattler user, IBattler target, int hitnum = 0); - //new void pbAnimation(Moves moveid, IBattler user, IBattler target, int hitnum = 0); - void pbAnimationCore(string animation, IBattler user, IBattler target, bool oppmove = false); - void pbLevelUp(IPokemon pokemon, IBattler battler, int oldtotalhp, int oldattack, int olddefense, int oldspeed, int oldspatk, int oldspdef); - void pbThrowAndDeflect(Items ball, int targetBattler); - void pbThrow(Items ball, int shakes, bool critical, int targetBattler, bool showplayer = false); - void pbThrowSuccess(); - void pbHideCaptureBall(); - void pbThrowBait(); - void pbThrowRock(); + //new void TrainerBattleSuccess(); + //new void EXPBar(IBattler battler, IPokemon pokemon, int startexp, int endexp, int tempexp1, int tempexp2); + void ShowPokedex(Pokemons species, int form = 0); + void ChangePokemon(IBattler attacker, IPokemon pokemon); + //void ChangePokemon(IBattler attacker, PokemonUnity.Monster.Forms pokemon); + void SaveShadows(Action action = null); + KeyValuePair? FindAnimation(Moves moveid, int userIndex, int hitnum); + void CommonAnimation(string animname, IBattler user, IBattler target, int hitnum = 0); + //new void Animation(Moves moveid, IBattler user, IBattler target, int hitnum = 0); + void AnimationCore(string animation, IBattler user, IBattler target, bool oppmove = false); + //void LevelUp(IBattler battler, IPokemon pokemon, int oldtotalhp, int oldattack, int olddefense, int oldspeed, int oldspatk, int oldspdef); + void ThrowAndDeflect(Items ball, int targetBattler); + void Throw(Items ball, int shakes, bool critical, int targetBattler, bool showplayer = false); + void ThrowSuccess(); + void HideCaptureBall(); + void ThrowBait(); + void ThrowRock(); } public interface IPokeBattleArena_Scene : IScene, IPokeBattle_Scene { - void pbBattleArenaBattlers(IBattler battler1, IBattler battler2); - void pbBattleArenaJudgment(IBattler battler1, IBattler battler2, int[] ratings1, int[] ratings2); + void BattleArenaBattlers(IBattler battler1, IBattler battler2); + void BattleArenaJudgment(IBattler battler1, IBattler battler2, int[] ratings1, int[] ratings2); /// /// /// infoWindow as `SpriteWindow_Base` to display the results @@ -456,21 +456,21 @@ public interface IPokeBattleArena_Scene : IScene, IPokeBattle_Scene #region Debugging public interface IPokeBattle_DebugScene : IScene, IPokeBattle_DebugSceneNoLogging { - //new void pbDisplayMessage(string msg,bool brief= false); - //new void pbDisplayPausedMessage(string msg); - //new void pbDisplayConfirmMessage(string msg); - void pbFrameUpdate(IViewport cw); - //void pbRefresh(); + //new void DisplayMessage(string msg,bool brief= false); + //new void DisplayPausedMessage(string msg); + //new void DisplayConfirmMessage(string msg); + void FrameUpdate(IViewport cw); + //void Refresh(); /// /// Called whenever a new round begins. /// - //new void pbBeginCommandPhase(); - //new void pbStartBattle(IBattle battle); - //new void pbEndBattle(PokemonUnity.Combat.BattleResults result); - //new void pbTrainerSendOut(IBattle battle,IPokemon pkmn); - //new void pbSendOut(IBattle battle,IPokemon pkmn); - //new void pbTrainerWithdraw(IBattle battle,IPokemon pkmn); - //new void pbWithdraw(IBattle battle,IPokemon pkmn); + //new void BeginCommandPhase(); + //new void StartBattle(IBattle battle); + //new void EndBattle(PokemonUnity.Combat.BattleResults result); + //new void TrainerSendOut(IBattle battle,IPokemon pkmn); + //new void SendOut(IBattle battle,IPokemon pkmn); + //new void TrainerWithdraw(IBattle battle,IPokemon pkmn); + //new void Withdraw(IBattle battle,IPokemon pkmn); /// /// Called whenever a Pokémon should forget a move. It should return -1 if the /// selection is canceled, or 0 to 3 to indicate the move to forget. @@ -478,40 +478,45 @@ public interface IPokeBattle_DebugScene : IScene, IPokeBattle_DebugSceneNoLoggin /// /// /// - //new void pbForgetMove(IPokemon pkmn,Moves move); - //new void pbBeginAttackPhase(); - //new void pbCommandMenu(int index); + //new void ForgetMove(IPokemon pkmn,Moves move); + //new void BeginAttackPhase(); + //new void CommandMenu(int index); /// /// /// - void pbPokemonString(IPokemon pkmn); - string pbMoveString(IBattleMove move); + void PokemonString(IPokemon pkmn); + string MoveString(IBattleMove move); /// /// Use this method to display the list of moves for a Pokémon /// /// - //new void pbFightMenu(int index); + //new void FightMenu(int index); /// /// Use this method to display the inventory /// The return value is the item chosen, or 0 if the choice was canceled. /// /// - //new void pbItemMenu(int index); + //new void ItemMenu(int index); + + //void FirstTarget(int index,int targettype); /// + /// Returns the first selectable target of attack type + /// from pool of pokemons active in battle scene /// /// /// - void pbFirstTarget(int index,int targettype); - void pbNextTarget(int cur,int index); - void pbPrevTarget(int cur,int index); + /// retuns the index slot of battler + int FirstTarget(int index, PokemonUnity.Attack.Data.Targets targettype); + void NextTarget(int cur,int index); + void PrevTarget(int cur,int index); /// /// Use this method to make the player choose a target /// for certain moves in double battles. /// /// /// - //new void pbChooseTarget(int index,int targettype); - //new void pbSwitch(int index,bool lax,bool cancancel); + //new void ChooseTarget(int index,int targettype); + //new void Switch(int index,bool lax,bool cancancel); /// /// This method is called whenever a Pokémon's HP changes. /// Used to animate the HP bar. @@ -519,119 +524,119 @@ public interface IPokeBattle_DebugScene : IScene, IPokeBattle_DebugSceneNoLoggin /// /// /// - //new void pbHPChanged(IPokemon pkmn,int oldhp,bool anim= false); + //new void HPChanged(IBattler pkmn,int oldhp,bool anim= false); /// /// This method is called whenever a Pokémon faints /// /// - //new void pbFainted(IPokemon pkmn); - //new void pbChooseEnemyCommand(int index); + //new void Fainted(IPokemon pkmn); + //new void ChooseEnemyCommand(int index); /// /// Use this method to choose a new Pokémon for the enemy /// The enemy's party is guaranteed to have at least one choosable member. /// /// /// - //new void pbChooseNewEnemy(int index,IPokemon[] party); + //new void ChooseNewEnemy(int index,IPokemon[] party); /// /// This method is called when the player wins a wild Pokémon battle. /// This method can change the battle's music for example. /// - //new void pbWildBattleSuccess(); + //new void WildBattleSuccess(); /// /// This method is called when the player wins a Trainer battle. /// This method can change the battle's music for example. /// - //new void pbTrainerBattleSuccess(); - //new void pbEXPBar(IBattler battler,IPokemon thispoke,int startexp,int endexp,int tempexp1,int tempexp2); - //new void pbLevelUp(IBattler battler,IPokemon thispoke,int oldtotalhp,int oldattack, + //new void TrainerBattleSuccess(); + //new void EXPBar(IBattler battler,IPokemon thispoke,int startexp,int endexp,int tempexp1,int tempexp2); + //new void LevelUp(IBattler battler,IPokemon thispoke,int oldtotalhp,int oldattack, // int olddefense,int oldspeed,int oldspatk,int oldspdef); - //new void pbShowOpponent(int opp); - //new void pbHideOpponent(); - //new void pbRecall(int battlerindex); - //new void pbDamageAnimation(IPokemon pkmn,TypeEffective effectiveness); - //new void pbAnimation(Moves moveid,IBattler attacker,IBattler opponent,int hitnum= 0); + //new void ShowOpponent(int opp); + //new void HideOpponent(); + //new void Recall(int battlerindex); + //new void DamageAnimation(IPokemon pkmn,TypeEffective effectiveness); + //new void Animation(Moves moveid,IBattler attacker,IBattler opponent,int hitnum= 0); } public interface IPokeBattle_SceneNonInteractive : IScene { - int pbCommandMenu(int index); - int pbFightMenu(int index); - Items pbItemMenu(int index); - //int pbChooseTarget(int index, int targettype); - int pbChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype); - int pbSwitch(int index,bool lax,bool cancancel); - void pbChooseEnemyCommand(int index); + int CommandMenu(int index); + int FightMenu(int index); + Items ItemMenu(int index); + //int ChooseTarget(int index, int targettype); + int ChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype); + int Switch(int index,bool lax,bool cancancel); + void ChooseEnemyCommand(int index); /// /// Use this method to choose a new Pokémon for the enemy /// The enemy's party is guaranteed to have at least one choosable member. /// /// /// - int pbChooseNewEnemy(int index,IPokemon[] party); + int ChooseNewEnemy(int index,IPokemon[] party); } public interface IPokeBattle_DebugSceneNoLogging : IScene, ISceneHasChatter, IPokeBattle_DebugSceneNoGraphics { - //new void pbDisplayMessage(string msg,bool brief= false); - //new void pbDisplayPausedMessage(string msg); - //new bool pbDisplayConfirmMessage(string msg); - //new int pbShowCommands(string msg,string[] commands,bool defaultValue); - //new void pbBeginCommandPhase(); - //new void pbStartBattle(IBattle battle); - //new void pbEndBattle(BattleResults result); - //new void pbTrainerSendOut(IBattle battle,IPokemon pkmn); - //new void pbSendOut(IBattle battle,IPokemon pkmn); - //new void pbTrainerWithdraw(IBattle battle,IPokemon pkmn); - //new void pbWithdraw(IBattle battle,IPokemon pkmn); - //new int pbForgetMove(IPokemon pkmn,Moves move); - //new void pbBeginAttackPhase(); - //new int pbCommandMenu(int index); - //new int pbFightMenu(int index); - //new int pbItemMenu(int index); - //new int pbChooseTarget(int index,int targettype); - //void pbRefresh(); - //new int pbSwitch(int index,bool lax,bool cancancel); - //new void pbHPChanged(IPokemon pkmn,int oldhp,bool anim= false); - //new void pbFainted(IPokemon pkmn); - //new void pbChooseEnemyCommand(int index); - //new void pbChooseNewEnemy(int index,IPokemon[] party); - //new void pbWildBattleSuccess(); - //new void pbTrainerBattleSuccess(); - //new void pbEXPBar(IBattler battler,IPokemon thispoke,int startexp,int endexp,int tempexp1,int tempexp2); - //new void pbLevelUp(IBattler battler,IPokemon thispoke,int oldtotalhp,int oldattack, + //new void DisplayMessage(string msg,bool brief= false); + //new void DisplayPausedMessage(string msg); + //new bool DisplayConfirmMessage(string msg); + //new int ShowCommands(string msg,string[] commands,bool defaultValue); + //new void BeginCommandPhase(); + //new void StartBattle(IBattle battle); + //new void EndBattle(BattleResults result); + //new void TrainerSendOut(IBattle battle,IPokemon pkmn); + //new void SendOut(IBattle battle,IPokemon pkmn); + //new void TrainerWithdraw(IBattle battle,IPokemon pkmn); + //new void Withdraw(IBattle battle,IPokemon pkmn); + //new int ForgetMove(IPokemon pkmn,Moves move); + //new void BeginAttackPhase(); + //new int CommandMenu(int index); + //new int FightMenu(int index); + //new int ItemMenu(int index); + //new int ChooseTarget(int index,int targettype); + //void Refresh(); + //new int Switch(int index,bool lax,bool cancancel); + //new void HPChanged(IBattler pkmn,int oldhp,bool anim= false); + //new void Fainted(IPokemon pkmn); + //new void ChooseEnemyCommand(int index); + //new void ChooseNewEnemy(int index,IPokemon[] party); + //new void WildBattleSuccess(); + //new void TrainerBattleSuccess(); + //new void EXPBar(IBattler battler,IPokemon thispoke,int startexp,int endexp,int tempexp1,int tempexp2); + //new void LevelUp(IBattler battler,IPokemon thispoke,int oldtotalhp,int oldattack, // int olddefense,int oldspeed,int oldspatk,int oldspdef); - //new int pbBlitz(int keys); - //new void pbChatter(IBattler attacker,IBattler opponent); - //new void pbShowOpponent(int opp); - //new void pbHideOpponent(); - //new void pbRecall(int battlerindex); - //new void pbDamageAnimation(IPokemon pkmn,TypeEffective effectiveness); - //new void pbBattleArenaJudgment(IBattle b1,IBattle b2, int[] r1, int[] r2); - //new void pbBattleArenaBattlers(IBattle b1,IBattle b2); - //new void pbCommonAnimation(Moves moveid,IBattler attacker,IBattler opponent,int hitnum= 0); - //new void pbAnimation(Moves moveid,IBattler attacker,IBattler opponent,int hitnum= 0); + //new int Blitz(int keys); + //new void Chatter(IBattler attacker,IBattler opponent); + //new void ShowOpponent(int opp); + //new void HideOpponent(); + //new void Recall(int battlerindex); + //new void DamageAnimation(IPokemon pkmn,TypeEffective effectiveness); + //new void BattleArenaJudgment(IBattle b1,IBattle b2, int[] r1, int[] r2); + //new void BattleArenaBattlers(IBattle b1,IBattle b2); + //new void CommonAnimation(Moves moveid,IBattler attacker,IBattler opponent,int hitnum= 0); + //new void Animation(Moves moveid,IBattler attacker,IBattler opponent,int hitnum= 0); } public interface IPokeBattle_DebugSceneNoGraphics : IScene, ISceneHasChatter, IPokeBattle_SceneNonInteractive { IPokeBattle_DebugSceneNoGraphics initialize(); - void pbDisplayMessage(string msg, bool brief = false); - void pbDisplayPausedMessage(string msg); - bool pbDisplayConfirmMessage(string msg); - bool pbShowCommands(string msg, string[] commands, bool defaultValue); - int pbShowCommands(string msg, string[] commands, int defaultValue); + void DisplayMessage(string msg, bool brief = false); + void DisplayPausedMessage(string msg); + bool DisplayConfirmMessage(string msg); + bool ShowCommands(string msg, string[] commands, bool defaultValue); + int ShowCommands(string msg, string[] commands, int defaultValue); /// /// Called whenever a new round begins. /// - void pbBeginCommandPhase(); + void BeginCommandPhase(); /// /// Called whenever the battle begins /// /// - void pbStartBattle(IBattle battle); - void pbEndBattle(BattleResults result); - void pbTrainerSendOut(IBattle battle, IPokemon pkmn); - void pbSendOut(IBattle battle, IPokemon pkmn); - void pbTrainerWithdraw(IBattle battle, IPokemon pkmn); - void pbWithdraw(IBattle battle, IPokemon pkmn); + void StartBattle(IBattle battle); + void EndBattle(BattleResults result); + //void TrainerSendOut(IBattle battle, IPokemon pkmn); + //void SendOut(IBattle battle, IPokemon pkmn); + void TrainerWithdraw(IBattle battle, IBattler pkmn); + void Withdraw(IBattle battle, IBattler pkmn); /// /// Called whenever a Pokémon should forget a move. It should return -1 if the /// selection is canceled, or 0 to 3 to indicate the move to forget. @@ -639,15 +644,15 @@ public interface IPokeBattle_DebugSceneNoGraphics : IScene, ISceneHasChatter, IP /// /// /// - int pbForgetMove(IPokemon pkmn, Moves move); - void pbBeginAttackPhase(); - new int pbCommandMenu(int index); - new int pbFightMenu(int index); - new Items pbItemMenu(int index); - //new int pbChooseTarget(int index, int targettype); - new int pbChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype); - //void pbRefresh(); - //new int pbSwitch(int index, bool lax, bool cancancel); + int ForgetMove(IPokemon pkmn, Moves move); + void BeginAttackPhase(); + new int CommandMenu(int index); + new int FightMenu(int index); + new Items ItemMenu(int index); + //new int ChooseTarget(int index, int targettype); + new int ChooseTarget(int index, PokemonUnity.Attack.Data.Targets targettype); + //void Refresh(); + //new int Switch(int index, bool lax, bool cancancel); /// /// This method is called whenever a Pokémon's HP changes. /// Used to animate the HP bar. @@ -655,43 +660,43 @@ public interface IPokeBattle_DebugSceneNoGraphics : IScene, ISceneHasChatter, IP /// /// /// - void pbHPChanged(IBattler pkmn, int oldhp, bool anim = false); + void HPChanged(IBattler pkmn, int oldhp, bool anim = false); /// /// This method is called whenever a Pokémon faints /// /// - void pbFainted(IBattler pkmn); - //new void pbChooseEnemyCommand(int index); + void Fainted(IBattler pkmn); + //new void ChooseEnemyCommand(int index); /// /// Use this method to choose a new Pokémon for the enemy /// The enemy's party is guaranteed to have at least one choosable member. /// /// /// - //new void pbChooseNewEnemy(int index, IPokemon[] party); + //new void ChooseNewEnemy(int index, IPokemon[] party); /// /// This method is called when the player wins a wild Pokémon battle. /// This method can change the battle's music for example. /// - void pbWildBattleSuccess(); + void WildBattleSuccess(); /// /// This method is called when the player wins a Trainer battle. /// This method can change the battle's music for example. /// - void pbTrainerBattleSuccess(); - void pbEXPBar(IBattler battler, IPokemon thispoke, int startexp, int endexp, int tempexp1, int tempexp2); - void pbLevelUp(IBattler battler, IPokemon thispoke, int oldtotalhp, int oldattack, + void TrainerBattleSuccess(); + void EXPBar(IBattler battler, IPokemon thispoke, int startexp, int endexp, int tempexp1, int tempexp2); + void LevelUp(IBattler battler, IPokemon thispoke, int oldtotalhp, int oldattack, int olddefense, int oldspeed, int oldspatk, int oldspdef); - int pbBlitz(int keys); - //void pbChatter(IBattler attacker, IBattler opponent); - void pbShowOpponent(int opp); - void pbHideOpponent(); - void pbRecall(int battlerindex); - void pbDamageAnimation(IBattler pkmn, TypeEffective effectiveness); - void pbBattleArenaJudgment(IBattle b1, IBattle b2, int[] r1, int[] r2); - void pbBattleArenaBattlers(IBattle b1, IBattle b2); - void pbCommonAnimation(Moves moveid, IBattler attacker, IBattler opponent, int hitnum = 0); - void pbAnimation(Moves moveid, IBattler attacker, IBattler opponent, int hitnum = 0); + int Blitz(int keys); + //void Chatter(IBattler attacker, IBattler opponent); + void ShowOpponent(int opp); + void HideOpponent(); + void Recall(int battlerindex); + void DamageAnimation(IBattler pkmn, TypeEffective effectiveness); + void BattleArenaJudgment(IBattle b1, IBattle b2, int[] r1, int[] r2); + void BattleArenaBattlers(IBattle b1, IBattle b2); + void CommonAnimation(Moves moveid, IBattler attacker, IBattler opponent, int hitnum = 0); + void Animation(Moves moveid, IBattler attacker, IBattler opponent, int hitnum = 0); } #endregion } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IBattleSwap.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IBattleSwap.cs index 99da8b592..4fe8a747d 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IBattleSwap.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IBattleSwap.cs @@ -20,46 +20,53 @@ namespace PokemonEssentials.Interface.Screen { /// /// - public interface IBattleSwapScene : IScene + public interface IBattleSwapScene : IScene { - // Processes the scene - void pbChoosePokemon(bool canCancel); + /// + /// Processes the scene + /// + /// + void ChoosePokemon(bool canCancel); - void pbShowCommands(string[] commands); + void ShowCommands(string[] commands); - bool pbConfirm(string message); + bool Confirm(string message); - string[] pbGetCommands(IPokemon[] list, int[] choices); + string[] GetCommands(IPokemon[] list, int[] choices); - void pbUpdateChoices(int[] choices); + void UpdateChoices(int[] choices); - void pbSwapChosen(int pkmnindex); + void SwapChosen(int pkmnindex); - void pbInitSwapScreen(); + void InitSwapScreen(); - void pbSwapCanceled(); + void SwapCanceled(); - void pbSummary(IPokemon[] list, int index); + void Summary(IPokemon[] list, int index); - // Update the scene here, this is called once each frame - void pbUpdate(); + /// + /// Update the scene here, this is called once each frame + /// + void Update(); - // End the scene here - void pbEndScene(); + /// + /// End the scene here + /// + void EndScene(); - void pbStartSwapScene(IPokemon currentPokemon, IPokemon newPokemon); + void StartSwapScene(IPokemon currentPokemon, IPokemon newPokemon); - void pbStartRentScene(IPokemon[] rentals); + void StartRentScene(IPokemon[] rentals); } /// /// - public interface IBattleSwapScreen : IScreen + public interface IBattleSwapScreen : IScreen { IBattleSwapScreen initialize(IBattleSwapScene scene); - void pbStartRent(IPokemon[] rentals); + IPokemon[] StartRent(IPokemon[] rentals); - bool pbStartSwap(IPokemon[] currentPokemon, IPokemon[] newPokemon); + bool StartSwap(IPokemon[] currentPokemon, IPokemon[] newPokemon); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IEvolution.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IEvolution.cs index 98cbc0fc4..659361db3 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IEvolution.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IEvolution.cs @@ -19,12 +19,12 @@ namespace PokemonEssentials.Interface.Screen { public interface IPokemonEvolutionScene : IScene { - void pbEndScreen(); - void pbEvolution(bool cancancel = true); - void pbFlashInOut(bool canceled,string oldstate,string oldstate2); - void pbStartScreen(IPokemon pokemon, Pokemons newspecies); - void pbUpdate(bool animating = false); - void pbUpdateExpandScreen(); - void pbUpdateNarrowScreen(); + void EndScreen(); + void Evolution(bool cancancel = true); + void FlashInOut(bool canceled,string oldstate,string oldstate2); + void StartScreen(IPokemon pokemon, Pokemons newspecies); + void Update(bool animating = false); + void UpdateExpandScreen(); + void UpdateNarrowScreen(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IFrontend.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IFrontend.cs index 8839c7da5..542bf2175 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IFrontend.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IFrontend.cs @@ -101,56 +101,56 @@ public interface IFrontEnd void endRecord(string path); IAudioObject getWaveDataUI(string path, bool n); - IAudioObject pbGetWildBattleBGM(Pokemons species); - IAudioObject pbGetTrainerBattleBGM(Trainer[] trainer); - IAudioObject pbGetTrainerBattleBGM(TrainerData[] trainer); - - void pbBGMFade(float duration); - void pbBGSFade(float duration); - void pbFadeOutIn(int value, Action action); - void pbFadeOutInWithMusic(int value, Action action); - void pbCueBGM(IAudioObject bgm, float value); - void pbCueBGM(string bgm, float value, float vol, float pitch); + IAudioObject GetWildBattleBGM(Pokemons species); + IAudioObject GetTrainerBattleBGM(Trainer[] trainer); + IAudioObject GetTrainerBattleBGM(TrainerData[] trainer); + + void BGMFade(float duration); + void BGSFade(float duration); + void FadeOutIn(int value, Action action); + void FadeOutInWithMusic(int value, Action action); + void CueBGM(IAudioObject bgm, float value); + void CueBGM(string bgm, float value, float vol, float pitch); float Audio_bgm_get_volume(); void Audio_bgm_set_volume(float n); void me_stop(); - void pbSEStop(); - void pbPlayDecisionSE(); - void pbPlayBuzzerSE(); - void pbSEPlay(string name); - void pbBGMPlay(IAudioObject name); - void pbBGMPlay(string name, float vol, float pitch); - void pbBGSPlay(IAudioObject name); - void pbMEPlay(string name); - void pbPlayTrainerIntroME(TrainerTypes trainertype); - - IWindow pbCreateMessageWindow(); - IEnumerator pbMessageDisplay(IWindow display, string msg, bool value = true); - void pbDisposeMessageWindow(IWindow display); - - void pbMessage(string message); - bool pbConfirmMessage(string message); - //int pbMessageChooseNumber(string message, ChooseNumberParams arg); - - bool pbResolveBitmap(string path); - bool pbIsFaded { get; } - - void pbUpdateSceneMap(); - void pbSceneStandby(Action action); - IPokeBattle_Scene pbNewBattleScene(); - void pbBattleAnimation(IAudioObject bgm, Action action); - void pbBattleAnimation(IAudioObject bgm, TrainerTypes trainer, string name, Action action); + void SEStop(); + void PlayDecisionSE(); + void PlayBuzzerSE(); + void SEPlay(string name); + void BGMPlay(IAudioObject name); + void BGMPlay(string name, float vol, float pitch); + void BGSPlay(IAudioObject name); + void MEPlay(string name); + void PlayTrainerIntroME(TrainerTypes trainertype); + + IWindow CreateMessageWindow(); + IEnumerator MessageDisplay(IWindow display, string msg, bool value = true); + void DisposeMessageWindow(IWindow display); + + void Message(string message); + bool ConfirmMessage(string message); + //int MessageChooseNumber(string message, ChooseNumberParams arg); + + bool ResolveBitmap(string path); + bool IsFaded { get; } + + void UpdateSceneMap(); + void SceneStandby(Action action); + IPokeBattle_Scene NewBattleScene(); + void BattleAnimation(IAudioObject bgm, Action action); + void BattleAnimation(IAudioObject bgm, TrainerTypes trainer, string name, Action action); #region TextEntry - string pbEnterText(string helptext, int minlength, int maxlength, string initialText = "", int mode = 0, Monster.Pokemon pokemon = null, bool nofadeout = false); + string EnterText(string helptext, int minlength, int maxlength, string initialText = "", int mode = 0, Monster.Pokemon pokemon = null, bool nofadeout = false); - string pbEnterPlayerName(string helptext, int minlength, int maxlength, string initialText = "", bool nofadeout = false); + string EnterPlayerName(string helptext, int minlength, int maxlength, string initialText = "", bool nofadeout = false); - string pbEnterPokemonName(string helptext, int minlength, int maxlength, string initialText = "", Monster.Pokemon pokemon = null, bool nofadeout = false); + string EnterPokemonName(string helptext, int minlength, int maxlength, string initialText = "", Monster.Pokemon pokemon = null, bool nofadeout = false); - string pbEnterBoxName(string helptext, int minlength, int maxlength, string initialText = "", bool nofadeout = false); + string EnterBoxName(string helptext, int minlength, int maxlength, string initialText = "", bool nofadeout = false); - string pbEnterNPCName(string helptext, int minlength, int maxlength, string initialText = "", int id = 0, bool nofadeout = false); + string EnterNPCName(string helptext, int minlength, int maxlength, string initialText = "", int id = 0, bool nofadeout = false); #endregion #region Replace Static Graphic diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IIntro.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IIntro.cs index 8b36e5da1..e73d0acc7 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IIntro.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IIntro.cs @@ -87,6 +87,6 @@ public interface IIntroEventScreen : PokemonEssentials.Interface.Screen.IScreen /// public interface IButtonEventScene : IEventScene { - void pbOnScreen1(); + void OnScreen1(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/ILoad.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/ILoad.cs index 8b6d8d33e..39b80d097 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/ILoad.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/ILoad.cs @@ -19,32 +19,32 @@ namespace PokemonEssentials.Interface.Screen { public interface ILoadScene : IScene { - IEnumerator pbUpdate(); + IEnumerator Update(); - void pbStartScene(string[] commands, bool showContinue, ITrainer trainer, int framecount, int mapid); + void StartScene(string[] commands, bool showContinue, ITrainer trainer, int framecount, int mapid); - void pbStartScene2(); + void StartScene2(); - void pbStartDeleteScene(); + void StartDeleteScene(); - void pbSetParty(ITrainer trainer); + void SetParty(ITrainer trainer); - void pbChoose(string[] commands); + void Choose(string[] commands); - void pbEndScene(); + void EndScene(); - void pbCloseScene(); + void CloseScene(); } public interface ILoadScreen : IScreen { ILoadScreen initialize(ILoadScene scene); //return [trainer,framecount,game_system,pokemonSystem,mapid] - object pbTryLoadFile(string savefile); + object TryLoadFile(string savefile); - void pbStartDeleteScreen(); + void StartDeleteScreen(); - void pbStartLoadScreen(); + void StartLoadScreen(); } #region UI Elements @@ -63,7 +63,7 @@ public interface ILoadPanel : ISpriteWrapper, IDisposable { // } //} - void pbRefresh(); + void Refresh(); void refresh(); } diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IMart.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IMart.cs index 7540f7446..75127ee9e 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IMart.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IMart.cs @@ -227,7 +227,7 @@ public interface ISellAdapter { // :nodoc: // Pokémon Mart // =============================================================================== public interface IGameMart { - void pbPokemonMart(Items[] stock, string speech = null, bool cantsell = false); + void PokemonMart(Items[] stock, string speech = null, bool cantsell = false); } public interface IGameTempMart { @@ -241,51 +241,51 @@ public interface IGameTempMart { public interface IMartScene : IScene { void update(); - //void pbRefresh(); + //void Refresh(); - void pbStartBuyOrSellScene(bool buying, Items[] stock, IMartAdapter adapter); + void StartBuyOrSellScene(bool buying, Items[] stock, IMartAdapter adapter); - void pbStartBuyScene(Items[] stock, IMartAdapter adapter); + void StartBuyScene(Items[] stock, IMartAdapter adapter); - void pbStartSellScene(IBag bag, IMartAdapter adapter); + void StartSellScene(IBag bag, IMartAdapter adapter); - void pbStartSellScene2(IBag bag, IMartAdapter adapter); + void StartSellScene2(IBag bag, IMartAdapter adapter); - void pbEndBuyScene(); + void EndBuyScene(); - void pbEndSellScene(); + void EndSellScene(); - void pbPrepareWindow(IWindow window); + void PrepareWindow(IWindow window); - void pbShowMoney(); + void ShowMoney(); - void pbHideMoney(); + void HideMoney(); - void pbDisplay(string msg, bool brief = false); + void Display(string msg, bool brief = false); - void pbDisplayPaused(string msg); + void DisplayPaused(string msg); - bool pbConfirm(string msg); + bool Confirm(string msg); - int pbChooseNumber(string helptext, Items item, int maximum); + int ChooseNumber(string helptext, Items item, int maximum); - int pbChooseBuyItem(); + int ChooseBuyItem(); - int pbChooseSellItem(); + int ChooseSellItem(); } public interface IMartScreen : IScreen { IMartScreen initialize(IMartScene scene, Items[] stock); - bool pbConfirm(string msg); + bool Confirm(string msg); - void pbDisplay(string msg); + void Display(string msg); - void pbDisplayPaused(string msg); + void DisplayPaused(string msg); - IEnumerator pbBuyScreen(); + IEnumerator BuyScreen(); - IEnumerator pbSellScreen(); + IEnumerator SellScreen(); } #endregion diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IMysteryGift.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IMysteryGift.cs index 7b12dfee5..50be901c7 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IMysteryGift.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IMysteryGift.cs @@ -57,9 +57,9 @@ public interface IGameMysteryGift // ############################################################################### // type: 0=Pokémon; 1 or higher=item (is the item's quantity). // item: The thing being turned into a Mystery Gift (Pokémon object or item ID). - IMysteryGiftData pbEditMysteryGift(int type, Items item, int id = 0, string giftname = ""); + IMysteryGiftData EditMysteryGift(int type, Items item, int id = 0, string giftname = ""); - void pbCreateMysteryGift(int type, Items item); + void CreateMysteryGift(int type, Items item); @@ -67,9 +67,9 @@ public interface IGameMysteryGift // Debug option for managing gifts in the Master file and exporting them to a // file to be uploaded. // ############################################################################### - void pbManageMysteryGifts(); + void ManageMysteryGifts(); - void pbRefreshMGCommands(IMysteryGiftData[] master, int[] online); + void RefreshMGCommands(IMysteryGiftData[] master, int[] online); @@ -77,24 +77,24 @@ public interface IGameMysteryGift // Downloads all available Mystery Gifts that haven't been downloaded yet. // ############################################################################### // Called from the Continue/New Game screen. - ITrainer pbDownloadMysteryGift(ITrainer trainer); + ITrainer DownloadMysteryGift(ITrainer trainer); // ############################################################################### // Converts an array of gifts into a string and back. // ############################################################################### - string pbMysteryGiftEncrypt(IMysteryGiftData gift); + string MysteryGiftEncrypt(IMysteryGiftData gift); - IMysteryGiftData pbMysteryGiftDecrypt(string gift); + IMysteryGiftData MysteryGiftDecrypt(string gift); // ############################################################################### // Collecting a Mystery Gift from the deliveryman. // ############################################################################### - int pbNextMysteryGiftID(); + int NextMysteryGiftID(); - bool pbReceiveMysteryGift(int id); + bool ReceiveMysteryGift(int id); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IOption.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IOption.cs index a2b41c5eb..d634e5512 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IOption.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IOption.cs @@ -102,19 +102,19 @@ public interface IGameOption //string[] TextFrames; //string[][] VersionStyles; - int pbSettingToTextSpeed(int speed); + int SettingToTextSpeed(int speed); } //public interface IMessageConfig { - // public static IBitmap pbDefaultSystemFrame(); + // public static IBitmap DefaultSystemFrame(); // - // public static IBitmap pbDefaultSpeechFrame(); + // public static IBitmap DefaultSpeechFrame(); // - // public static string pbDefaultSystemFontName(); + // public static string DefaultSystemFontName(); // - // public static int pbDefaultTextSpeed(); + // public static int DefaultTextSpeed(); // - // public int pbGetSystemTextSpeed(); + // public int GetSystemTextSpeed(); //} public interface IPokemonSystemOption { @@ -137,16 +137,16 @@ public interface IPokemonSystemOption { } public interface IOptionScene : IScene { - void pbUpdate(); - void pbStartScene(bool inloadscreen = false); - object pbAddOnOptions(object options); - void pbOptions(); - void pbEndScene(); + void Update(); + void StartScene(bool inloadscreen = false); + object AddOnOptions(object options); + void Options(); + void EndScene(); } public interface IOptionScreen : IScreen { IOptionScreen initialize(IOptionScene scene); - void pbStartScreen(bool inloadscreen = false); + void StartScreen(bool inloadscreen = false); } public interface IOptionValue diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IPCStorageItem.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IPCStorageItem.cs index 930a97d34..08bb85323 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IPCStorageItem.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IPCStorageItem.cs @@ -21,7 +21,7 @@ namespace PokemonEssentials.Interface.Screen /// /// The PC item storage object, which actually contains all the items /// - public interface IPCItemStorage { + public interface IPCItemStorage : IList, ICollection { //int MAXSIZE { get; } //= 50; // Number of different slots in storage //int MAXPERSLOT { get; } //= 999; // Max. number of items per slot @@ -31,25 +31,25 @@ public interface IPCItemStorage { int length(); - Items this[int i] { get; } + //Items this[int i] { get; } Items getItem(int index); int getCount(int index); - int pbQuantity(Items item); + int Quantity(Items item); - bool pbDeleteItem(Items item, int qty = 1); + bool DeleteItem(Items item, int qty = 1); - bool pbCanStore(Items item, int qty = 1); + bool CanStore(Items item, int qty = 1); - bool pbStoreItem(Items item,int qty=1); + bool StoreItem(Items item,int qty=1); } - + // =============================================================================== // PC item storage screen // =============================================================================== - public interface IWindow_PokemonItemStorage //: IWindow_DrawableCommand + public interface IWindow_PokemonItemStorage //: IWindow_DrawableCommand { IBag bag { get; set; } int pocket { get; set; } @@ -81,25 +81,25 @@ public interface IItemStorageScene : IScene void update(); - void pbStartScene(IBag bag); + void StartScene(IBag bag); - void pbEndScene(); + void EndScene(); - //void pbRefresh(); + //void Refresh(); - //ToDo: Might need to split into two functions, + //ToDo: Might need to split into two functions, //one for returning item selected //the other to handle selection mechanic - //IEnumerator pbChooseItem(); - Items pbChooseItem(); + //IEnumerator ChooseItem(); + Items ChooseItem(); - int pbChooseNumber(string helptext, int maximum); + int ChooseNumber(string helptext, int maximum); - void pbDisplay(string msg, bool brief = false); + void Display(string msg, bool brief = false); - bool pbConfirm(string msg); + bool Confirm(string msg); - int pbShowCommands(string helptext, string[] commands); + int ShowCommands(string helptext, string[] commands); } public interface IWithdrawItemScene : IItemStorageScene { diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IPCStoragePokemon.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IPCStoragePokemon.cs index 9f236d748..6259a604f 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IPCStoragePokemon.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IPCStoragePokemon.cs @@ -17,8 +17,8 @@ using PokemonEssentials.Interface.EventArg; namespace PokemonEssentials.Interface.Screen -{ - public interface IPokemonBox { +{ + public interface IPokemonBox : IList, ICollection { IList pokemon { get; } string name { get; set; } string background { get; set; } @@ -27,16 +27,22 @@ public interface IPokemonBox { bool full { get; } + /// + /// number of pokemons stored... + /// int nitems { get; } //item count + /// + /// size of the storage box... + /// int length { get; } //capacity IEnumerable each(); - IPokemon this[int i] { get; set; } + //IPokemon this[int i] { get; set; } } - public interface IPokemonStorage { + public interface IPCPokemonStorage { IPokemonBox[] boxes { get; } //IPokemon[] party { get; } int currentBox { get; set; } @@ -49,45 +55,51 @@ public interface IPokemonStorage { //string[] MARKINGCHARS { get; } //= new string[] { "●", "■", "▲", "♥" }; - IPokemonStorage initialize(int maxBoxes = Core.STORAGEBOXES, int maxPokemon = 30); + IPCPokemonStorage initialize(int maxBoxes = Core.STORAGEBOXES, int maxPokemon = 30); int maxPokemon(int box); IPokemonBox this[int x] { get; } + /// + /// + /// + /// -1 to access player's party, box index begins at 0 + /// slot id + /// IPokemon this[int x,int y] { get; set; } bool full { get; } - int pbFirstFreePos(int box); + int FirstFreePos(int box); - bool pbCopy(int boxDst, int indexDst, int boxSrc, int indexSrc); + bool Copy(int boxDst, int indexDst, int boxSrc, int indexSrc); - bool pbMove(int boxDst, int indexDst, int boxSrc, int indexSrc); + bool Move(int boxDst, int indexDst, int boxSrc, int indexSrc); - void pbMoveCaughtToParty(IPokemon pkmn); + void MoveCaughtToParty(IPokemon pkmn); - bool pbMoveCaughtToBox(IPokemon pkmn,int box); + bool MoveCaughtToBox(IPokemon pkmn,int box); - int pbStoreCaught(IPokemon pkmn); + int StoreCaught(IPokemon pkmn); - void pbDelete(int box, int index); + void Delete(int box, int index); } - public interface IPokemonStorageWithParty : IPokemonStorage { - new IPokemon[] party { get; set; } + public interface IPokemonStorageWithParty : IPCPokemonStorage { + //new IPokemon[] party { get; set; } //IPokemon[] party { set; } - - //IPokemonStorageWithParty initialize(int maxBoxes = 24, int maxPokemon = 30, IPokemon[] party = null); //: base (maxBoxes,maxPokemon) + + IPokemonStorageWithParty initialize(int maxBoxes = 24, int maxPokemon = 30, IPokemon[] party = null); //: base (maxBoxes,maxPokemon) } - + // ############################################################################### // Regional Storage scripts // ############################################################################### public interface IRegionalStorage { IRegionalStorage initialize(); - IPokemonStorage getCurrentStorage { get; } + IPCPokemonStorage getCurrentStorage { get; } IPokemonBox[] boxes { get; } @@ -104,19 +116,19 @@ public interface IRegionalStorage { bool full { get; } - void pbFirstFreePos(int box); + void FirstFreePos(int box); - void pbCopy(int boxDst, int indexDst, int boxSrc, int indexSrc); + void Copy(int boxDst, int indexDst, int boxSrc, int indexSrc); - void pbMove(int boxDst, int indexDst, int boxSrc, int indexSrc); + void Move(int boxDst, int indexDst, int boxSrc, int indexSrc); - void pbMoveCaughtToParty(IPokemon pkmn); + void MoveCaughtToParty(IPokemon pkmn); - void pbMoveCaughtToBox(IPokemon pkmn, int box); + void MoveCaughtToBox(IPokemon pkmn, int box); - void pbStoreCaught(IPokemon pkmn); + void StoreCaught(IPokemon pkmn); - void pbDelete(int box, int index); + void Delete(int box, int index); } @@ -133,23 +145,23 @@ public interface IGamePCStorage /// Maybe check region accessing pc from, and associate region prof with creator /// ...until maybe the player encounter's the prof and exchanges pokedex (or however it works) /// - string pbGetStorageCreator(); + string GetStorageCreator(); - //Items pbPCItemStorage(); - void pbPCItemStorage(); + //Items PCItemStorage(); + void PCItemStorage(); - void pbPCMailbox(); + void PCMailbox(); - void pbTrainerPCMenu(); + void TrainerPCMenu(); - void pbTrainerPC(); + void TrainerPC(); - void pbPokeCenterPC(); + void PokeCenterPC(); } - + public interface IPCMenuUser { bool shouldShow { get; } @@ -176,66 +188,66 @@ public interface IPokemonStorageScene : IScene //void drawMarkings(bool[] markings); string[] getMarkingCommands(bool[] markings); IPokemonStorageScene initialize(); - void pbBoxName(string helptext, int minchars, int maxchars); - void pbChangeBackground(int wp); - int pbChangeSelection(int key, int selection); - void pbChooseBox(string msg); - Items pbChooseItem(IBattler bag); - void pbCloseBox(); - //void pbDisplay(string message); - void pbDropDownPartyTab(); - void pbHardRefresh(); - void pbHidePartyTab(); - void pbHold(KeyValuePair selected); - void pbJumpToBox(int newbox); - void pbMark(KeyValuePair selected, IPokemon heldpoke); - int pbPartyChangeSelection(int key, int selection); - void pbPartySetArrow(int selection);//arrow , - void pbPlace(KeyValuePair selected, IPokemon heldpoke); - //void pbRefresh(); - void pbRelease(KeyValuePair selected, IPokemon heldpoke); - int[] pbSelectBox(IPokemon[] party); - int[] pbSelectBoxInternal(IPokemon[] party); - int pbSelectParty(IPokemon[] party); - int pbSelectPartyInternal(IPokemon[] party, bool depositing); - void pbSetArrow(int selection);//arrow , - void pbSetMosaic(int selection); - int pbShowCommands(string message, string[] commands, int index = 0); - void pbStartBox(IPokemonStorageScreen screen, int command); - void pbStore(KeyValuePair selected, IPokemon heldpoke, int destbox, int firstfree); - void pbSummary(KeyValuePair selected, IPokemon heldpoke); - void pbSwap(KeyValuePair selected, IPokemon heldpoke); - void pbSwitchBoxToLeft(int newbox); - void pbSwitchBoxToRight(int newbox); - void pbUpdateOverlay(int selection, IPokemon[] party = null); - void pbWithdraw(KeyValuePair selected, IPokemon heldpoke, int partyindex); + void BoxName(string helptext, int minchars, int maxchars); + void ChangeBackground(int wp); + int ChangeSelection(int key, int selection); + void ChooseBox(string msg); + Items ChooseItem(IBattler bag); + void CloseBox(); + //void Display(string message); + void DropDownPartyTab(); + void HardRefresh(); + void HidePartyTab(); + void Hold(KeyValuePair selected); + void JumpToBox(int newbox); + void Mark(KeyValuePair selected, IPokemon heldpoke); + int PartyChangeSelection(int key, int selection); + void PartySetArrow(int selection);//arrow , + void Place(KeyValuePair selected, IPokemon heldpoke); + //void Refresh(); + void Release(KeyValuePair selected, IPokemon heldpoke); + int[] SelectBox(IPokemon[] party); + int[] SelectBoxInternal(IPokemon[] party); + int SelectParty(IPokemon[] party); + int SelectPartyInternal(IPokemon[] party, bool depositing); + void SetArrow(int selection);//arrow , + void SetMosaic(int selection); + int ShowCommands(string message, string[] commands, int index = 0); + void StartBox(IPokemonStorageScreen screen, int command); + void Store(KeyValuePair selected, IPokemon heldpoke, int destbox, int firstfree); + void Summary(KeyValuePair selected, IPokemon heldpoke); + void Swap(KeyValuePair selected, IPokemon heldpoke); + void SwitchBoxToLeft(int newbox); + void SwitchBoxToRight(int newbox); + void UpdateOverlay(int selection, IPokemon[] party = null); + void Withdraw(KeyValuePair selected, IPokemon heldpoke, int partyindex); } public interface IPokemonStorageScreen : IScreen { - int pbAbleCount { get; } - IPokemon pbHeldPokemon { get; } + int AbleCount { get; } + IPokemon HeldPokemon { get; } IPokemonStorageScene scene { get; } - IPokemonStorage storage { get; } + IPCPokemonStorage storage { get; } void debugMenu(KeyValuePair selected, IPokemon pkmn, IPokemon heldpoke); - IPokemonStorageScreen initialize(IPokemonStorageScene scene, IPokemonStorage storage); - bool pbAble(IPokemon pokemon); - void pbBoxCommands(); - int? pbChoosePokemon(IPokemon[] party = null); - bool pbConfirm(string str); - void pbDisplay(string message); - void pbHold(KeyValuePair selected); - void pbItem(KeyValuePair selected, IPokemon heldpoke); - void pbMark(KeyValuePair selected, IPokemon heldpoke); - void pbPlace(KeyValuePair selected); - void pbRelease(KeyValuePair selected, IPokemon heldpoke); - int pbShowCommands(string msg, string[] commands); - void pbStartScreen(int command); - void pbStore(KeyValuePair selected, IPokemon heldpoke); - void pbSummary(KeyValuePair selected, IPokemon heldpoke); - bool pbSwap(KeyValuePair selected); - bool pbWithdraw(KeyValuePair selected, IPokemon heldpoke); + IPokemonStorageScreen initialize(IPokemonStorageScene scene, IPCPokemonStorage storage); + bool Able(IPokemon pokemon); + void BoxCommands(); + int? ChoosePokemon(IPokemon[] party = null); + bool Confirm(string str); + void Display(string message); + void Hold(KeyValuePair selected); + void Item(KeyValuePair selected, IPokemon heldpoke); + void Mark(KeyValuePair selected, IPokemon heldpoke); + void Place(KeyValuePair selected); + void Release(KeyValuePair selected, IPokemon heldpoke); + int ShowCommands(string msg, string[] commands); + void StartScreen(int command); + void Store(KeyValuePair selected, IPokemon heldpoke); + void Summary(KeyValuePair selected, IPokemon heldpoke); + bool Swap(KeyValuePair selected); + bool Withdraw(KeyValuePair selected, IPokemon heldpoke); void selectPokemon(int index); } #endregion @@ -259,7 +271,7 @@ public interface IInterpolator { void update(); } - public interface IPokemonBoxIcon //: IIconSprite + public interface IPokemonBoxIcon //: IIconSprite { IPokemonBoxIcon initialize(IPokemon pokemon, IViewport viewport = null); @@ -322,7 +334,7 @@ public interface IPokemonBoxPartySprite : ISpriteWrapper { //void update(); } - public interface IMosaicPokemonSprite //: IPokemonSprite + public interface IMosaicPokemonSprite //: IPokemonSprite { //void initialize(*args); @@ -362,7 +374,7 @@ public interface IPokemonBoxSprite : ISpriteWrapper { void getBoxBitmap(); - IPokemonBoxSprite initialize(IPokemonStorage storage, int boxnumber, IViewport viewport = null); + IPokemonBoxSprite initialize(IPCPokemonStorage storage, int boxnumber, IViewport viewport = null); //void dispose(); diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IPartyMenu.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IPartyMenu.cs index 957b38075..24969c582 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IPartyMenu.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IPartyMenu.cs @@ -21,66 +21,66 @@ namespace PokemonEssentials.Interface.Screen public interface IPartyDisplayScene : IScene { //IPartyDisplayScene initialize(); - int pbShowCommands(string helptext, string[] commands,int index= 0); + int ShowCommands(string helptext, string[] commands,int index= 0); void update(); - void pbSetHelpText(string helptext); - void pbStartScene(IPokemon[] party,string starthelptext,string[] annotations= null,bool multiselect= false); - void pbEndScene(); + void SetHelpText(string helptext); + void StartScene(IPokemon[] party,string starthelptext,string[] annotations= null,bool multiselect= false); + void EndScene(); /// /// /// Controller Input Key /// - void pbChangeSelection(int key,int currentsel); - //void pbRefresh(); - void pbHardRefresh(); - void pbPreSelect(IPokemon pkmn); - void pbChoosePokemon(bool switching= false, int initialsel= -1); - void pbSelect(Items item); - //void pbDisplay(string text); - void pbSwitchBegin(int oldid,int newid); - void pbSwitchEnd(int oldid,int newid); - //void pbDisplayConfirm(string text); - void pbAnnotate(string[] annot); - void pbSummary(int pkmnid); - void pbChooseItem(Items[] bag); - void pbUseItem(Items[] bag,IPokemon pokemon); - void pbMessageFreeText(string text,string startMsg,int maxlength); + void ChangeSelection(int key,int currentsel); + //void Refresh(); + void HardRefresh(); + void PreSelect(IPokemon pkmn); + void ChoosePokemon(bool switching= false, int initialsel= -1); + void Select(Items item); + //void Display(string text); + void SwitchBegin(int oldid,int newid); + void SwitchEnd(int oldid,int newid); + //void DisplayConfirm(string text); + void Annotate(string[] annot); + void Summary(int pkmnid); + void ChooseItem(Items[] bag); + void UseItem(Items[] bag,IPokemon pokemon); + void MessageFreeText(string text,string startMsg,int maxlength); } public interface IPartyDisplayScreen : IScreen, IHasDisplayMessage { IPartyDisplayScreen initialize(IPartyDisplayScene scene, IList party); - void pbHardRefresh(); - void pbRefresh(); - void pbRefreshSingle(int i); - //void pbDisplay(string text); - //void pbConfirm(string text); - void pbSwitch(int oldid,int newid); - void pbMailScreen(Items item, IPokemon pkmn, int pkmnid); - void pbTakeMail(IPokemon pkmn); - void pbGiveMail(Items item,IPokemon pkmn,int pkmnid= 0); - void pbPokemonGiveScreen(Items item); - void pbPokemonGiveMailScreen(int mailIndex); - void pbStartScene(string helptext,bool doublebattle,string[] annotations= null); - int pbChoosePokemon(string helptext= null); - void pbChooseMove(IPokemon pokemon,string helptext); - void pbEndScene(); + void HardRefresh(); + void Refresh(); + void RefreshSingle(int i); + //void Display(string text); + //void Confirm(string text); + void Switch(int oldid,int newid); + void MailScreen(Items item, IPokemon pkmn, int pkmnid); + void TakeMail(IPokemon pkmn); + void GiveMail(Items item,IPokemon pkmn,int pkmnid= 0); + void PokemonGiveScreen(Items item); + void PokemonGiveMailScreen(int mailIndex); + void StartScene(string helptext,bool doublebattle,string[] annotations= null); + int ChoosePokemon(string helptext= null); + void ChooseMove(IPokemon pokemon,string helptext); + void EndScene(); /// /// Checks for identical species /// /// - void pbCheckSpecies(Pokemons[] array); + void CheckSpecies(Pokemons[] array); /// /// Checks for identical held items /// /// - void pbCheckItems(Items[] array); - void pbPokemonMultipleEntryScreenEx(string[] ruleset); - int pbChooseAblePokemon(Predicate ableProc,bool allowIneligible= false); - void pbRefreshAnnotations(bool ableProc); - void pbClearAnnotations(); - void pbPokemonDebug(IPokemon pkmn, int pkmnid); - void pbPokemonScreen(); + void CheckItems(Items[] array); + void PokemonMultipleEntryScreenEx(string[] ruleset); + int ChooseAblePokemon(Predicate ableProc,bool allowIneligible= false); + void RefreshAnnotations(bool ableProc); + void ClearAnnotations(); + void PokemonDebug(IPokemon pkmn, int pkmnid); + void PokemonScreen(); } #region UI Elements diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IPauseMenu.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IPauseMenu.cs index 626738c02..ecbbe5e72 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IPauseMenu.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IPauseMenu.cs @@ -20,20 +20,20 @@ namespace PokemonEssentials.Interface.Screen { public interface IPokemonMenuScene : IScene { - void pbEndScene(); - void pbHideMenu(); - //void pbRefresh(); - void pbShowCommands(string[] commands); - void pbShowHelp(string text); - void pbShowInfo(string text); - void pbShowMenu(); - void pbStartScene(); + void EndScene(); + void HideMenu(); + //void Refresh(); + void ShowCommands(string[] commands); + void ShowHelp(string text); + void ShowInfo(string text); + void ShowMenu(); + void StartScene(); } public interface IPokemonMenuScreen : IScreen { void initialize(IPokemonMenuScene scene); - void pbShowMenu(); - void pbStartPokemonMenu(); + void ShowMenu(); + void StartPokemonMenu(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IPokedex.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IPokedex.cs index c27f230e4..cf698d12e 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IPokedex.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IPokedex.cs @@ -23,31 +23,31 @@ namespace PokemonEssentials.Interface.Screen public interface IPokemonPokedexScreen : IScreen { IPokemonPokedexScreen initialize(IPokemonPokedexScene scene); - void pbDexEntry(Pokemons species); - void pbStartScreen(); + void DexEntry(Pokemons species); + void StartScreen(); } public interface IPokemonPokedexScene : IScene { IPokemonPokedexScene initialize(); - void pbUpdate(); - void pbEndScene(); - void pbStartScene(); - void pbStartDexEntryScene(Pokemons species); - void pbPokedex(); - void pbDexEntry(int index); - int pbDexSearch(); - void pbCloseSearch(); - IEnumerable pbSearchDexList(params object[] param); - List pbGetDexList(); - void pbRefreshDexList(int index = 0); - void pbRefreshDexSearch(params string[] param); - bool pbCanAddForModeList(int mode, Pokemons nationalSpecies); - bool pbCanAddForModeSearch(int mode, Pokemons nationalSpecies); - void pbChangeToDexEntry(Pokemons species); - int pbDexSearchCommands(string[] commands, int selitem, string[] helptexts = null); - int pbGetPokedexRegion(); - int pbGetSavePositionIndex(); - void pbMiddleDexEntryScene(); + void Update(); + void EndScene(); + void StartScene(); + void StartDexEntryScene(Pokemons species); + void Pokedex(); + void DexEntry(int index); + int DexSearch(); + void CloseSearch(); + IEnumerable SearchDexList(params object[] param); + List GetDexList(); + void RefreshDexList(int index = 0); + void RefreshDexSearch(params string[] param); + bool CanAddForModeList(int mode, Pokemons nationalSpecies); + bool CanAddForModeSearch(int mode, Pokemons nationalSpecies); + void ChangeToDexEntry(Pokemons species); + int DexSearchCommands(string[] commands, int selitem, string[] helptexts = null); + int GetPokedexRegion(); + int GetSavePositionIndex(); + void MiddleDexEntryScene(); void setIconBitmap(Pokemons species); } diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IPokedexNestForm.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IPokedexNestForm.cs index 39e1ab907..0f6de15f3 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IPokedexNestForm.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IPokedexNestForm.cs @@ -20,7 +20,7 @@ namespace PokemonEssentials.Interface.Screen { public interface IGamePokedexNest { - bool pbFindEncounter(IEncounter encounter, Pokemons species); + bool FindEncounter(IEncounter encounter, Pokemons species); } /// @@ -28,19 +28,19 @@ public interface IGamePokedexNest /// public interface IPokemonNestMapScene : IScene { - void pbUpdate(); - void pbEndScene(); - void pbStartScene(Pokemons species,int regionmap= -1); + void Update(); + void EndScene(); + void StartScene(Pokemons species,int regionmap= -1); /// /// /// an enum that represents end of list /// - int pbMapScene(int listlimits); + int MapScene(int listlimits); } public interface IPokemonNestMapScreen : IScreen { IPokemonNestMapScreen initialize(IPokemonNestMapScene scene); - void pbStartScreen(Pokemons species,int region,int listlimits); + void StartScreen(Pokemons species,int region,int listlimits); } /// @@ -48,18 +48,18 @@ public interface IPokemonNestMapScreen : IScreen /// public interface IPokemonFormScene : IScene { - void pbUpdate(); - //void pbRefresh(); - List pbGetAvailable(); //returns [Name, Gender, Form] - List pbGetCommands(); - void pbChooseForm(); - void pbEndScene(); - void pbStartScene(Pokemons species); - int pbControls(int listlimits); + void Update(); + //void Refresh(); + List GetAvailable(); //returns [Name, Gender, Form] + List GetCommands(); + void ChooseForm(); + void EndScene(); + void StartScene(Pokemons species); + int Controls(int listlimits); } public interface IPokemonFormScreen : IScreen { IPokemonFormScreen initialize(IPokemonFormScene scene); - void pbStartScreen(Pokemons species,int listlimits); + void StartScreen(Pokemons species,int listlimits); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IPurifyChamber.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IPurifyChamber.cs index afb95bb05..9654ec8e3 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IPurifyChamber.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IPurifyChamber.cs @@ -136,54 +136,54 @@ public interface IPurifyChamberPC : IPCMenuUser public interface IGamePurifyChamber { - void pbDrawGauge(IBitmap bitmap, IRect rect, IColor color, int value, int maxValue); + void DrawGauge(IBitmap bitmap, IRect rect, IColor color, int value, int maxValue); // angle in degrees IPoint calcPoint(float x, float y, int distance, float angle); - void pbPurifyChamber(); + void PurifyChamber(); } // #################### public interface IPurifyChamberHelper //static { - IPokemonShadowPokemon pbGetPokemon2(IPurifyChamberSet chamber, int set, int position); + IPokemonShadowPokemon GetPokemon2(IPurifyChamberSet chamber, int set, int position); - IPokemonShadowPokemon pbGetPokemon(IPurifyChamberSet chamber, int position); + IPokemonShadowPokemon GetPokemon(IPurifyChamberSet chamber, int position); int adjustOnInsert(int position); - void pbSetPokemon(IPurifyChamberSet chamber, int position, int value); + void SetPokemon(IPurifyChamberSet chamber, int position, int value); } public interface IPurifyChamberScreen : IScreen { IPurifyChamberScreen initialize(IPurifyChamberScene scene); - bool pbPlace(IPokemon pkmn, int position); + bool Place(IPokemon pkmn, int position); /// /// /// x: storage box, y: box index /// /// - bool pbPlacePokemon(int[] pos, int position); + bool PlacePokemon(int[] pos, int position); - void pbOnPlace(IPokemon pkmn); + void OnPlace(IPokemon pkmn); - bool pbOpenSetDetail(); + bool OpenSetDetail(); - void pbDisplay(string msg); + void Display(string msg); - void pbConfirm(string msg); + void Confirm(string msg); - void pbRefresh(); + void Refresh(); - bool pbCheckPurify(); + bool CheckPurify(); - void pbDoPurify(); + void DoPurify(); - void pbStartPurify(); + void StartPurify(); } // ############################################### @@ -289,54 +289,54 @@ public interface IPurifyChamberSetView : ISpriteWrapper { } public interface IPurifyChamberScene : IScene { - void pbUpdate(); + void Update(); - //void pbRefresh(); + //void Refresh(); - void pbStart(IPurifyChamber chamber); + void Start(IPurifyChamber chamber); - void pbEnd(); + void End(); - void pbOpenSet(IPurifyChamberSet set); + void OpenSet(IPurifyChamberSet set); - void pbCloseSet(); + void CloseSet(); - void pbOpenSetDetail(IPurifyChamberSet set); + void OpenSetDetail(IPurifyChamberSet set); - void pbCloseSetDetail(); + void CloseSetDetail(); - void pbPurify(); + void Purify(); - void pbMove(int pos); + void Move(int pos); - void pbShift(int pos, IPokemon heldpoke); + void Shift(int pos, IPokemon heldpoke); - void pbPlace(int pos, IPokemon heldpoke); + void Place(int pos, IPokemon heldpoke); - void pbReplace(int pos, int storagePos); + void Replace(int pos, int storagePos); - void pbRotate(int facing); + void Rotate(int facing); - void pbWithdraw(int pos, IPokemon heldpoke); + void Withdraw(int pos, IPokemon heldpoke); - //void pbDisplay(string msg); + //void Display(string msg); - bool pbConfirm(string msg); + bool Confirm(string msg); - void pbShowCommands(string msg, string[] commands); + void ShowCommands(string msg, string[] commands); - int[] pbSetScreen(); + int[] SetScreen(); - int pbChooseSet(); + int ChooseSet(); - int pbSwitch(int set); + int Switch(int set); - void pbSummary(int pos, IPokemon heldpkmn); + void Summary(int pos, IPokemon heldpkmn); - void pbPositionHint(int pos); + void PositionHint(int pos); - void pbChangeSet(int set); + void ChangeSet(int set); - int pbChoosePokemon(); + int ChoosePokemon(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IRelicStone.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IRelicStone.cs index 72545939c..c216f5651 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IRelicStone.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IRelicStone.cs @@ -24,13 +24,13 @@ namespace PokemonEssentials.Interface.Screen public interface IRelicStoneScene : IScene { IRelicStoneScene initialize(IScene scene); - void pbUpdate(); - //void pbRefresh(); - void pbPurify(); - //void pbConfirm(string msg); - void pbDisplay(string msg, bool brief = false); - void pbStartScene(IPokemonShadowPokemon pokemon); - void pbEndScene(); + void Update(); + //void Refresh(); + void Purify(); + //void Confirm(string msg); + void Display(string msg, bool brief = false); + void StartScene(IPokemonShadowPokemon pokemon); + void EndScene(); } /// @@ -39,9 +39,9 @@ public interface IRelicStoneScene : IScene public interface IRelicStoneScreen : IScreen { IRelicStoneScreen initialize(IRelicStoneScene scene); - void pbRefresh(); - void pbConfirm(string x); - void pbDisplay(string x); - void pbStartScreen(IPokemonShadowPokemon pokemon); + void Refresh(); + void Confirm(string x); + void Display(string x); + void StartScreen(IPokemonShadowPokemon pokemon); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/ISafari.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/ISafari.cs index 66dfaa249..924e8c8cc 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/ISafari.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/ISafari.cs @@ -21,9 +21,9 @@ public interface ISafariZone_Scene : IScene, IBattleCommon ISafariZone_Scene initialize(IPokeBattle_Scene scene, ITrainer player, IPokemon[] party2); - bool pbIsOpposing(int index); + bool IsOpposing(int index); - bool pbIsDoubleBattler(int index); + bool IsDoubleBattler(int index); IBattler[] battlers { get; } ITrainer[] opponent { get; } @@ -31,29 +31,29 @@ public interface ISafariZone_Scene : IScene, IBattleCommon int ballCount { get; set; } - ITrainer pbPlayer(); + ITrainer Player(); - void pbAbort(); + void Abort(); - int pbEscapeRate(int rareness); + int EscapeRate(int rareness); - BattleResults pbStartBattle(); + BattleResults StartBattle(); // ############ - void pbDebugUpdate(); + void DebugUpdate(); - void pbDisplayPaused(string msg); + void DisplayPaused(string msg); - //void pbDisplay(string msg); + //void Display(string msg); - void pbDisplayBrief(string msg); + void DisplayBrief(string msg); - //bool pbDisplayConfirm(string msg); + //bool DisplayConfirm(string msg); - //int pbAIRandom(int x); + //int AIRandom(int x); - int pbRandom(int x); + int Random(int x); - void pbGainEXP(); + void GainEXP(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/ISave.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/ISave.cs index 7f34a912f..9646671e2 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/ISave.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/ISave.cs @@ -20,26 +20,26 @@ namespace PokemonEssentials.Interface.Screen { public interface IGameSave { - void pbEmergencySave(); + void EmergencySave(); - bool pbSave(bool safesave = false); + bool Save(bool safesave = false); } public interface ISaveScene : IScene { - void pbStartScreen(); + void StartScreen(); - void pbEndScreen(); + void EndScreen(); } public interface ISaveScreen : IScreen { ISaveScreen initialize(ISaveScene scene); - void pbDisplay(string text, bool brief = false); + void Display(string text, bool brief = false); - void pbDisplayPaused(string text); + void DisplayPaused(string text); - bool pbConfirm(string text); + bool Confirm(string text); - bool pbSaveScreen(); + bool SaveScreen(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/IScene.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/IScene.cs index d72583ec3..0aa1e6bf2 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/IScene.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/IScene.cs @@ -31,9 +31,9 @@ public interface IScreen /// display the _helptext_. /// public interface UIHelper { - int pbChooseNumber(IWindow helpwindow, string helptext, int maximum); + int ChooseNumber(IWindow helpwindow, string helptext, int maximum); - void pbDisplayStatic(IWindow msgwindow, string message); + void DisplayStatic(IWindow msgwindow, string message); /// /// Letter by letter display of the message by the window . @@ -42,7 +42,7 @@ public interface UIHelper { /// /// /// - IEnumerator pbDisplay(IWindow helpwindow, string msg, bool brief); + IEnumerator Display(IWindow helpwindow, string msg, bool brief); /// /// Letter by letter display of the message by the window , @@ -51,9 +51,9 @@ public interface UIHelper { /// /// /// Returns true if the user chose yes, false if no. - bool pbConfirm(IWindow helpwindow, string msg); + bool Confirm(IWindow helpwindow, string msg); - int pbShowCommands(IWindow helpwindow, string helptext, string[] commands); + int ShowCommands(IWindow helpwindow, string helptext, string[] commands); } public interface IEntity @@ -61,10 +61,10 @@ public interface IEntity } public interface IHasDisplayMessage { - void pbDisplay(string v); - //bool pbConfirm(string v); - //ToDo: rename to "pbDisplayConfirmMessage"? - bool pbDisplayConfirm(string v); + void Display(string v); + //bool Confirm(string v); + //ToDo: rename to "DisplayConfirmMessage"? + bool DisplayConfirm(string v); } /// /// A scene basically represents unity (or any frontend) where code pauses @@ -83,13 +83,13 @@ public interface IScene : IHasDisplayMessage /// int Id { get; } - void pbRefresh(); + void Refresh(); /// /// Shows the player's Poké Ball being thrown to capture a Pokémon. /// //void pokeballThrow(Items ball, int shakes,bool critical,IBattler targetBattler,IScene scene,IBattler battler, int burst = -1, bool showplayer = false); - //void pbDisplay(string v); - //bool pbConfirm(string v); + //void Display(string v); + //bool Confirm(string v); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/ISummary.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/ISummary.cs index 1fb9b31c5..09e00d338 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/ISummary.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/ISummary.cs @@ -30,26 +30,26 @@ public interface IPokemonSummaryScene : IScene void drawPageFive(IPokemon pokemon); void drawMoveSelection(IPokemon pokemon, Moves moveToLearn); void drawSelectedMove(IPokemon pokemon, Moves moveToLearn, Moves moveid); - void pbChooseMoveToForget(Moves moveToLearn); - void pbEndScene(); - void pbGoToNext(); - void pbGoToPrevious(); - void pbMoveSelection(); - void pbPokerus(IPokemon pkmn); - void pbScene(); - void pbStartForgetScene(IPokemon party, int partyindex, Moves moveToLearn); - void pbStartScene(IPokemon party, int partyindex); - void pbUpdate(); + void ChooseMoveToForget(Moves moveToLearn); + void EndScene(); + void GoToNext(); + void GoToPrevious(); + void MoveSelection(); + void Pokerus(IPokemon pkmn); + void Scene(); + void StartForgetScene(IPokemon party, int partyindex, Moves moveToLearn); + void StartScene(IPokemon party, int partyindex); + void Update(); } public interface IPokemonSummaryScreen : IScreen { IPokemonSummaryScreen initialize(IPokemonSummaryScene scene); - void pbStartScreen(IPokemon[] party, int partyindex); - //int pbStartForgetScreen(IPokemon[] party, int partyindex, Moves moveToLearn); - int pbStartForgetScreen(IPokemon party, int partyindex, Moves moveToLearn); - void pbStartChooseMoveScreen(IPokemon[] party, int partyindex, string message); - int pbStartChooseMoveScreen(IPokemon party, int partyindex, string message); + void StartScreen(IPokemon[] party, int partyindex); + //int StartForgetScreen(IPokemon[] party, int partyindex, Moves moveToLearn); + int StartForgetScreen(IPokemon party, int partyindex, Moves moveToLearn); + void StartChooseMoveScreen(IPokemon[] party, int partyindex, string message); + int StartChooseMoveScreen(IPokemon party, int partyindex, string message); } public interface IMoveSelectionSprite : ISpriteWrapper, IDisposable diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/ITextEntry.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/ITextEntry.cs index 4f1b8a794..83a4d4e7c 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/ITextEntry.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/ITextEntry.cs @@ -20,7 +20,7 @@ namespace PokemonEssentials.Interface.Screen public interface IPokemonEntryScreen : IScreen { void initialize(IPokemonEntryScene scene); - string pbStartScreen(string helptext, int minlength, int maxlength, string initialText, PokemonUnity.UX.TextEntryTypes mode = 0, IPokemon pokemon = null); + string StartScreen(string helptext, int minlength, int maxlength, string initialText, PokemonUnity.UX.TextEntryTypes mode = 0, IPokemon pokemon = null); } /// @@ -28,11 +28,11 @@ public interface IPokemonEntryScreen : IScreen /// public interface IPokemonEntryScene : IScene { - void pbStartScene(string helptext, int minlength, int maxlength, string initialText, PokemonUnity.UX.TextEntryTypes subject = 0, IPokemon pokemon = null); - void pbEndScene(); - string pbEntry(); - //string pbEntry1(); - //string pbEntry2(); + void StartScene(string helptext, int minlength, int maxlength, string initialText, PokemonUnity.UX.TextEntryTypes subject = 0, IPokemon pokemon = null); + void EndScene(); + string Entry(); + //string Entry1(); + //string Entry2(); } /// @@ -40,29 +40,29 @@ public interface IPokemonEntryScene : IScene /// public interface IPokemonEntryScene2 : IScene, IPokemonEntryScene { - //void pbStartScene(string helptext, int minlength, int maxlength, string initialText, int subject = 0, Pokemon pokemon = null); - //void pbEndScene(); - //string pbEntry(); - void pbUpdate(); - void pbChangeTab(int newtab = 0); - bool pbColumnEmpty(int m); - void pbUpdateOverlay(); - void pbDoUpdateOverlay(); - void pbDoUpdateOverlay2(); - bool pbMoveCursor(); + //void StartScene(string helptext, int minlength, int maxlength, string initialText, int subject = 0, Pokemon pokemon = null); + //void EndScene(); + //string Entry(); + void Update(); + void ChangeTab(int newtab = 0); + bool ColumnEmpty(int m); + void UpdateOverlay(); + void DoUpdateOverlay(); + void DoUpdateOverlay2(); + bool MoveCursor(); int wrapmod(int x, int y); } public interface IGameTextEntry { - string pbEnterText(string helptext, int minlength, int maxlength, string initialText = "", int mode = 0, IPokemon pokemon = null, bool nofadeout = false); + string EnterText(string helptext, int minlength, int maxlength, string initialText = "", int mode = 0, IPokemon pokemon = null, bool nofadeout = false); - string pbEnterPlayerName(string helptext, int minlength, int maxlength, string initialText = "", bool nofadeout = false); + string EnterPlayerName(string helptext, int minlength, int maxlength, string initialText = "", bool nofadeout = false); - string pbEnterPokemonName(string helptext, int minlength, int maxlength, string initialText = "", IPokemon pokemon = null, bool nofadeout = false); + string EnterPokemonName(string helptext, int minlength, int maxlength, string initialText = "", IPokemon pokemon = null, bool nofadeout = false); - string pbEnterBoxName(string helptext, int minlength, int maxlength, string initialText = "", bool nofadeout = false); + string EnterBoxName(string helptext, int minlength, int maxlength, string initialText = "", bool nofadeout = false); - string pbEnterNPCName(string helptext, int minlength, int maxlength, string initialText = "", int id = 0, bool nofadeout = false); + string EnterNPCName(string helptext, int minlength, int maxlength, string initialText = "", int id = 0, bool nofadeout = false); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Framework/Essentials/Screen/ITrainerCard.cs b/PokemonUnity.Shared/Framework/Essentials/Screen/ITrainerCard.cs index ad597d166..4f41c0b3d 100644 --- a/PokemonUnity.Shared/Framework/Essentials/Screen/ITrainerCard.cs +++ b/PokemonUnity.Shared/Framework/Essentials/Screen/ITrainerCard.cs @@ -21,18 +21,18 @@ namespace PokemonEssentials.Interface.Screen public interface ITrainerCardScene : IScene { void update(); - void pbStartScene(); + void StartScene(); - void pbDrawTrainerCardFront(); + void DrawTrainerCardFront(); - IEnumerator pbTrainerCard(); + IEnumerator TrainerCard(); - void pbEndScene(); + void EndScene(); } public interface ITrainerCardScreen : IScreen { ITrainerCardScreen initialize(ITrainerCardScene scene); - void pbStartScreen(); + void StartScreen(); } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Inventory/Data/Base.cs b/PokemonUnity.Shared/Inventory/Data/Base.cs index 7f503605d..fc36aa7b9 100644 --- a/PokemonUnity.Shared/Inventory/Data/Base.cs +++ b/PokemonUnity.Shared/Inventory/Data/Base.cs @@ -90,48 +90,48 @@ public ItemPockets? Pocket public int? FlingPower { get; private set; } public int[] Generations { get; private set; } - public bool IsLetter - { - get - { - return pbIsLetter(Id); - } - } - public bool IsPokeBall - { - get - { - return pbIsPokeBall(Id); - } - } - public bool IsBerry - { - get - { - return pbIsBerry(Id); - } - } - public bool IsApricon - { - get - { - return pbIsApricon(Id); - } - } - public bool IsMegaStone - { - get - { - return pbIsMegaStone(Id); - } - } - public bool IsGem - { - get - { - return pbIsGem(Id); - } - } + //public bool IsLetter + //{ + // get + // { + // return IsLetter(Id); + // } + //} + //public bool IsPokeBall + //{ + // get + // { + // return IsPokeBall(Id); + // } + //} + //public bool IsBerry + //{ + // get + // { + // return IsBerry(Id); + // } + //} + //public bool IsApricon + //{ + // get + // { + // return IsApricon(Id); + // } + //} + //public bool IsMegaStone + //{ + // get + // { + // return IsMegaStone(Id); + // } + //} + //public bool IsGem + //{ + // get + // { + // return IsGem(Id); + // } + //} public string Name { get { return ToString(TextScripts.Name); } } public string Description { get { return ToString(TextScripts.Description); } } @@ -176,7 +176,7 @@ public bool IsGem #endregion #region Methods - public static bool pbIsPokeBall(Items item) + public static bool IsPokeBall(Items item) { return item == Items.BEAST_BALL || item == Items.CHERISH_BALL @@ -209,7 +209,7 @@ public static bool pbIsPokeBall(Items item) || item == Items.TIMER_BALL || item == Items.ULTRA_BALL; } - public static bool pbIsLetter(Items item) + public static bool IsLetter(Items item) { return item == Items.AIR_MAIL || item == Items.BEAD_MAIL @@ -248,7 +248,7 @@ public static bool pbIsLetter(Items item) || item == Items.WAVE_MAIL || item == Items.WOOD_MAIL; } - public static bool pbIsApricon(Items item) + public static bool IsApricon(Items item) { return item == Items.BLACK_APRICORN || item == Items.BLUE_APRICORN @@ -258,7 +258,7 @@ public static bool pbIsApricon(Items item) || item == Items.WHITE_APRICORN || item == Items.YELLOW_APRICORN; } - public static bool pbIsBerry(Items item) + public static bool IsBerry(Items item) { return item == Items.AGUAV_BERRY || item == Items.APICOT_BERRY @@ -328,7 +328,7 @@ public static bool pbIsBerry(Items item) || item == Items.WIKI_BERRY || item == Items.YACHE_BERRY; } - public static bool pbIsGem(Items item) + public static bool IsGem(Items item) { return item == Items.FIRE_GEM || item == Items.WATER_GEM @@ -349,7 +349,7 @@ public static bool pbIsGem(Items item) || item == Items.NORMAL_GEM || item == Items.FAIRY_GEM; } - public static bool pbIsMegaStone(Items item) + public static bool IsMegaStone(Items item) { return item == Items.ABOMASITE || item == Items.ABSOLITE @@ -402,4 +402,8 @@ private string ToString(TextScripts text) return Id.ToString(text); } } + + public static class Item + { + } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Inventory/Data/Mail.cs b/PokemonUnity.Shared/Inventory/Data/Mail.cs index 7e8d90983..89c6cfb57 100644 --- a/PokemonUnity.Shared/Inventory/Data/Mail.cs +++ b/PokemonUnity.Shared/Inventory/Data/Mail.cs @@ -3,14 +3,18 @@ using PokemonUnity.Character; using PokemonUnity.Inventory; using PokemonEssentials.Interface.PokeBattle; +using PokemonEssentials.Interface.Item; namespace PokemonUnity.Inventory { /// /// Data structure representing mail that the Pokémon can hold /// - public class Mail + public class Mail : IMail { + /// + /// If using special letter template + /// public Items Background { get; private set; } public string Message { get; set; } /// @@ -18,24 +22,49 @@ public class Mail /// public char[] Display { get { return Message == null? null: Message.ToCharArray(); } } public string Sender { get { return sender.name; } } + /// + /// Item attached to the letter + /// + public Items item { get; set; } + + public string message { get { return Message; } set { Message = value; } } + + string IMail.sender { get { return Sender; } } + + public int poke1 { get { throw new System.NotImplementedException(); } } + + public int poke2 { get { throw new System.NotImplementedException(); } } + + public int poke3 { get { throw new System.NotImplementedException(); } } + private ITrainer sender; //ToDO: Only need name and message.. //public bool IsLetter { get { return Game.ItemData[item].IsLetter; } } //public static bool IsMail(Items item) { return Game.ItemData[item].IsLetter; }//{ return new Item(item).IsMail; } public Mail(Items letter) { - Background = Kernal.ItemData[letter].IsLetter ? letter : Items.NONE; + Background = ItemData.IsLetter(letter) ? letter : Items.NONE; } /// /// - /// Item represented by this mail + /// Item represented by this mail; default none + /// Item attached to letter /// Message text /// Name of the message's sender - public Mail(Items item, string message, ITrainer sender) : this(item) + public Mail(Items bg, Items item, string message, ITrainer sender) : this(bg) { - if (!string.IsNullOrEmpty(message)) Message = message.Length > 255 ? message.Substring(0, (byte)255) : message; + initialize(item, message, sender.name); + //if (!string.IsNullOrEmpty(message)) Message = message.Length > 255 ? message.Substring(0, (byte)255) : message; this.sender = sender; } + + public IMail initialize(Items item, string message, string sender, IPokemon poke1 = null, IPokemon poke2 = null, IPokemon poke3 = null) + { + this.item = item; + if (!string.IsNullOrEmpty(message)) Message = message.Length > 255 ? message.Substring(0, (byte)255) : message; + //this.sender.name = sender; + return this; + } } } \ No newline at end of file diff --git a/PokemonUnity.Shared/Monster/Pokemon/Data/Experience.cs b/PokemonUnity.Shared/Monster/Pokemon/Data/Experience.cs index 7c70fa6c6..51f0e445a 100644 --- a/PokemonUnity.Shared/Monster/Pokemon/Data/Experience.cs +++ b/PokemonUnity.Shared/Monster/Pokemon/Data/Experience.cs @@ -317,14 +317,14 @@ public static byte GetLevelFromExperience(LevelingRate levelingRate, int experie /// Exp. Points to add /// Growth rate. /// - public static int pbAddExperience(int currexp,int expgain,LevelingRate growth) + public static int AddExperience(int currexp,int expgain,LevelingRate growth) { //if (growth >= 6 || growth < 0) //{ // return GameDebug.LogError("The growth rate is invalid."); //} int exp = currexp + expgain; - //int maxexp = pbGetExpInternal(Core.MAXIMUMLEVEL, growth); + //int maxexp = GetExpInternal(Core.MAXIMUMLEVEL, growth); int maxexp = GetMaxExperience(growth); if (exp > maxexp) exp = maxexp; return exp; diff --git a/PokemonUnity.Shared/Monster/Pokemon/Data/WildItems.cs b/PokemonUnity.Shared/Monster/Pokemon/Data/WildItems.cs index 16ab604f0..3937cf7db 100644 --- a/PokemonUnity.Shared/Monster/Pokemon/Data/WildItems.cs +++ b/PokemonUnity.Shared/Monster/Pokemon/Data/WildItems.cs @@ -10,7 +10,7 @@ namespace PokemonUnity.Monster.Data { /// - /// The items that Pokémon when encountered in the wild have a chance of carring. + /// The items that Pokémon when encountered in the wild have a chance of carrying. /// public struct PokemonWildItems { @@ -37,29 +37,29 @@ public PokemonWildItems(Items itemId, int rarity = 0, int generation = 0) /// /// /// RNG Bagging Technique using Dice Roll, without fallback (no matter rng, wont artificially modify results) - //public static Items GetWildHoldItem(Pokemons pokemon) - //{ - // List list = new List(); - // - // //loop through each position of list - // foreach (PokemonWildItems item in Game.PokemonItemsData[pokemon]) - // { - // //add encounter once for every Likelihood - // for (int i = 0; i < item.Rarirty; i++) - // { - // list.Add(item.ItemId); - // } - // } - // - // //Get list of 100 pokemons for given (specific to this) encounter... - // for(int n = list.Count; n < 100; n++) - // { - // list.Add(Items.NONE); - // } - // - // //From list of 100 pokemons, select 1. - // return list[Core.Rand.Next(list.Count)]; - //} + public static Items GetWildHoldItem(Pokemons pokemon) + { + List list = new List(); + + //loop through each position of list + foreach (PokemonWildItems item in Kernal.PokemonItemsData[pokemon]) + { + //add encounter once for every Likelihood + for (int i = 0; i < item.Rarirty; i++) + { + list.Add(item.ItemId); + } + } + + //Get list of 100 pokemons for given (specific to this) encounter... + for(int n = list.Count; n < 100; n++) + { + list.Add(Items.NONE); + } + + //From list of 100 pokemons, select 1. + return list[Core.Rand.Next(list.Count)]; + } #region Explicit Operators public bool Equals(Items obj) diff --git a/PokemonUnity.Web.Public/Api/68747470733a2f2f7374796c65732e7265646469746d656469612e636f6d2f74355f33396d6f792f7374796c65732f62616e6e6572506f736974696f6e6564496d6167655f366973343035736b35336a30312e706e67.png b/PokemonUnity.Web.Public/Api/68747470733a2f2f7374796c65732e7265646469746d656469612e636f6d2f74355f33396d6f792f7374796c65732f62616e6e6572506f736974696f6e6564496d6167655f366973343035736b35336a30312e706e67.png new file mode 100644 index 000000000..8fe411fcf Binary files /dev/null and b/PokemonUnity.Web.Public/Api/68747470733a2f2f7374796c65732e7265646469746d656469612e636f6d2f74355f33396d6f792f7374796c65732f62616e6e6572506f736974696f6e6564496d6167655f366973343035736b35336a30312e706e67.png differ diff --git a/PokemonUnity.Web.Public/Api/_PageStart.cshtml b/PokemonUnity.Web.Public/Api/_PageStart.cshtml index 4d214af69..e82cb1d21 100644 --- a/PokemonUnity.Web.Public/Api/_PageStart.cshtml +++ b/PokemonUnity.Web.Public/Api/_PageStart.cshtml @@ -1,4 +1,4 @@ -@{ +@@{ //Layout = "~/Themes/Doxygen/Layout/_Layout.cshtml"; Layout = "~/Themes/UnityFx/Layout/_Layout-Api.cshtml"; } \ No newline at end of file diff --git a/PokemonUnity.Web.Public/Api/_a_i_8cs.cshtml b/PokemonUnity.Web.Public/Api/_a_i_8cs.cshtml index 12b7c774d..2a26c5a05 100644 --- a/PokemonUnity.Web.Public/Api/_a_i_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_a_i_8cs.cshtml @@ -19,7 +19,7 @@ - + @@ -31,3 +31,4 @@ Namespaces

Classes

class  PokemonUnity.Combat.PBTrainerAI
class  PokemonUnity.Combat.TrainerAI
 
class  PokemonUnity.Combat.Battle
 
namespace  PokemonUnity.Combat
 
+ diff --git a/PokemonUnity.Web.Public/Api/_ability_extension_8cs.cshtml b/PokemonUnity.Web.Public/Api/_ability_extension_8cs.cshtml index dc4932b8f..0901b19ab 100644 --- a/PokemonUnity.Web.Public/Api/_ability_extension_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_ability_extension_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_area_8cs.cshtml b/PokemonUnity.Web.Public/Api/_area_8cs.cshtml index 185846162..52581688a 100644 --- a/PokemonUnity.Web.Public/Api/_area_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_area_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Overworld   + diff --git a/PokemonUnity.Web.Public/Api/_attack_2_data_2_base_8cs.cshtml b/PokemonUnity.Web.Public/Api/_attack_2_data_2_base_8cs.cshtml index bdcb309ad..178cb7a5f 100644 --- a/PokemonUnity.Web.Public/Api/_attack_2_data_2_base_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_attack_2_data_2_base_8cs.cshtml @@ -37,3 +37,4 @@ Enumerations enum  PokemonUnity.Attack.Data.Effects   + diff --git a/PokemonUnity.Web.Public/Api/_attack_2_move_8cs.cshtml b/PokemonUnity.Web.Public/Api/_attack_2_move_8cs.cshtml index f6264832a..fd08162c6 100644 --- a/PokemonUnity.Web.Public/Api/_attack_2_move_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_attack_2_move_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Attack   + diff --git a/PokemonUnity.Web.Public/Api/_attack_8_shadow_8cs.cshtml b/PokemonUnity.Web.Public/Api/_attack_8_shadow_8cs.cshtml index feeca6f36..8cd7bde7e 100644 --- a/PokemonUnity.Web.Public/Api/_attack_8_shadow_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_attack_8_shadow_8cs.cshtml @@ -66,3 +66,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_attack_8cs.cshtml b/PokemonUnity.Web.Public/Api/_attack_8cs.cshtml index 786a4e61a..0355c29e1 100644 --- a/PokemonUnity.Web.Public/Api/_attack_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_attack_8cs.cshtml @@ -53,13 +53,13 @@ Classes  Poisons the target. More...
  class  PokemonUnity.Combat.PokeBattle_Move_006 - Badly poisons the target. (Poison Fang, Toxic) (Handled in Pokemon's pbSuccessCheck): Hits semi-invulnerable targets if user is Poison-type and move is status move. More...
+ Badly poisons the target. (Poison Fang, Toxic) (Handled in Pokemon's SuccessCheck): Hits semi-invulnerable targets if user is Poison-type and move is status move. More...
  class  PokemonUnity.Combat.PokeBattle_Move_007  Paralyzes the target. Thunder Wave: Doesn't affect target if move's type has no effect on it. Bolt Strike: Powers up the next Fusion Flare used this round. More...
  class  PokemonUnity.Combat.PokeBattle_Move_008 - Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_009  Paralyzes the target. May cause the target to flinch. (Thunder Fang) More...
@@ -95,10 +95,10 @@ Classes  Confuses the target. More...
  class  PokemonUnity.Combat.PokeBattle_Move_014 - Confuses the target. Chance of causing confusion depends on the cry's volume. Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) TODO: Play the actual chatter cry as part of the move animation this.battle.scene.pbChatter(attacker,opponent) // Just plays cry More...
+ Confuses the target. Chance of causing confusion depends on the cry's volume. Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) TODO: Play the actual chatter cry as part of the move animation this.battle.scene.Chatter(attacker,opponent) // Just plays cry More...
  class  PokemonUnity.Combat.PokeBattle_Move_015 - Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_016  Attracts the target. (Attract) More...
@@ -386,16 +386,16 @@ Classes  The target's ally loses 1/16 of its max HP. (Flame Burst) More...
  class  PokemonUnity.Combat.PokeBattle_Move_075 - Power is doubled if the target is using Dive. (Surf) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Power is doubled if the target is using Dive. (Surf) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_076 - Power is doubled if the target is using Dig. Power is halved if Grassy Terrain is in effect. (Earthquake) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Power is doubled if the target is using Dig. Power is halved if Grassy Terrain is in effect. (Earthquake) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_077 - Power is doubled if the target is using Bounce, Fly or Sky Drop. (Gust) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Power is doubled if the target is using Bounce, Fly or Sky Drop. (Gust) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_078 - Power is doubled if the target is using Bounce, Fly or Sky Drop. (Twister) May make the target flinch. (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Power is doubled if the target is using Bounce, Fly or Sky Drop. (Twister) May make the target flinch. (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_079  Power is doubled if Fusion Flare has already been used this round. (Fusion Bolt) More...
@@ -443,7 +443,7 @@ Classes  Power is doubled in weather. Type changes depending on the weather. (Weather Ball) More...
  class  PokemonUnity.Combat.PokeBattle_Move_088 - Power is doubled if a foe tries to switch out or use U-turn/Volt Switch/ Parting Shot. (Pursuit) (Handled in Battle's pbAttackPhase): Makes this attack happen before switching. More...
+ Power is doubled if a foe tries to switch out or use U-turn/Volt Switch/ Parting Shot. (Pursuit) (Handled in Battle's AttackPhase): Makes this attack happen before switching. More...
  class  PokemonUnity.Combat.PokeBattle_Move_089  Power increases with the user's happiness. (Return) More...
@@ -476,13 +476,13 @@ Classes  Power is multiplied by the number of consecutive rounds in which this move was used by any Pokémon on the user's side. (Echoed Voice) More...
  class  PokemonUnity.Combat.PokeBattle_Move_093 - User rages until the start of a round in which they don't use this move. (Rage) (Handled in Pokemon's pbProcessMoveAgainstTarget): Ups rager's Attack by 1 stage each time it loses HP due to a move. More...
+ User rages until the start of a round in which they don't use this move. (Rage) (Handled in Pokemon's ProcessMoveAgainstTarget): Ups rager's Attack by 1 stage each time it loses HP due to a move. More...
  class  PokemonUnity.Combat.PokeBattle_Move_094  Randomly damages or heals the target. (Present) More...
  class  PokemonUnity.Combat.PokeBattle_Move_095 - Power is chosen at random. Power is doubled if the target is using Dig. (Magnitude) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Power is chosen at random. Power is doubled if the target is using Dig. (Magnitude) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_096  Power and type depend on the user's held berry. Destroys the berry. (Natural Gift) More...
@@ -638,28 +638,28 @@ Classes  Two turn attack. Ups user's Defense by 1 stage first turn, attacks second turn. (Skull Bash) More...
  class  PokemonUnity.Combat.PokeBattle_Move_0C9 - Two turn attack. Skips first turn, attacks second turn. (Fly) (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. More...
+ Two turn attack. Skips first turn, attacks second turn. (Fly) (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0CA - Two turn attack. Skips first turn, attacks second turn. (Dig) (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. More...
+ Two turn attack. Skips first turn, attacks second turn. (Dig) (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0CB - Two turn attack. Skips first turn, attacks second turn. (Dive) (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. More...
+ Two turn attack. Skips first turn, attacks second turn. (Dive) (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0CC - Two turn attack. Skips first turn, attacks second turn. (Bounce) May paralyze the target. (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. More...
+ Two turn attack. Skips first turn, attacks second turn. (Bounce) May paralyze the target. (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0CD  Two turn attack. Skips first turn, attacks second turn. (Shadow Force) Is invulnerable during use. Ignores target's Detect, King's Shield, Mat Block, Protect and Spiky Shield this round. If successful, negates them this round. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0CE - Two turn attack. Skips first turn, attacks second turn. (Sky Drop) (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. Target is also semi-invulnerable during use, and can't take any action. Doesn't damage airborne Pokémon (but still makes them unable to move during). More...
+ Two turn attack. Skips first turn, attacks second turn. (Sky Drop) (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. Target is also semi-invulnerable during use, and can't take any action. Doesn't damage airborne Pokémon (but still makes them unable to move during). More...
  class  PokemonUnity.Combat.PokeBattle_Move_0CF  Trapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP at end of each round. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0D0 - Trapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP at end of each round. (Whirlpool) Power is doubled if target is using Dive. (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Trapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP at end of each round. (Whirlpool) Power is doubled if target is using Dive. (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0D1  User must use this move for 2 more rounds. No battlers can sleep. (Uproar) More...
@@ -701,7 +701,7 @@ Classes  User gains half the HP it inflicts as damage. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0DE - User gains half the HP it inflicts as damage. (Dream Eater) (Handled in Pokemon's pbSuccessCheck): Fails if target is not asleep. More...
+ User gains half the HP it inflicts as damage. (Dream Eater) (Handled in Pokemon's SuccessCheck): Fails if target is not asleep. More...
  class  PokemonUnity.Combat.PokeBattle_Move_0DF  Heals target by 1/2 of its max HP. (Heal Pulse) More...
@@ -887,7 +887,7 @@ Classes  Hits airborne semi-invulnerable targets. (Sky Uppercut) More...
  class  PokemonUnity.Combat.PokeBattle_Move_11C - Grounds the target while it remains active. (Smack Down, Thousand Arrows) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. More...
+ Grounds the target while it remains active. (Smack Down, Thousand Arrows) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...
  class  PokemonUnity.Combat.PokeBattle_Move_11D  Target moves immediately after the user, ignoring priority/speed. (After You) More...
@@ -923,7 +923,7 @@ Classes  Does absolutely nothing. Shows a special message. (Celebrate) More...
  class  PokemonUnity.Combat.PokeBattle_Move_135 - Freezes the target. (Freeze-Dry) (Superclass's pbTypeModifier): Effectiveness against Water-type is 2x. More...
+ Freezes the target. (Freeze-Dry) (Superclass's TypeModifier): Effectiveness against Water-type is 2x. More...
  class  PokemonUnity.Combat.PokeBattle_Move_136  Increases the user's Defense by 1 stage for each target hit. (Diamond Storm) More...
@@ -1038,3 +1038,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_badge_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_badge_data_8cs.cshtml index 0a84f2f3b..b05203294 100644 --- a/PokemonUnity.Web.Public/Api/_badge_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_badge_data_8cs.cshtml @@ -38,3 +38,4 @@ Enumerations enum  PokemonUnity.Character.HiddenMoves   + diff --git a/PokemonUnity.Web.Public/Api/_bag_8cs.cshtml b/PokemonUnity.Web.Public/Api/_bag_8cs.cshtml index c07c5ab77..89ea00a2f 100644 --- a/PokemonUnity.Web.Public/Api/_bag_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_bag_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_battle_8cs.cshtml b/PokemonUnity.Web.Public/Api/_battle_8cs.cshtml index 72e6fa166..ad13e0155 100644 --- a/PokemonUnity.Web.Public/Api/_battle_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_battle_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_battle_arena_8cs.cshtml b/PokemonUnity.Web.Public/Api/_battle_arena_8cs.cshtml index d732e4f6f..fc09cea98 100644 --- a/PokemonUnity.Web.Public/Api/_battle_arena_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_battle_arena_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_battle_palace_8cs.cshtml b/PokemonUnity.Web.Public/Api/_battle_palace_8cs.cshtml index 73a26845a..87cfd3f85 100644 --- a/PokemonUnity.Web.Public/Api/_battle_palace_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_battle_palace_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_battle_peer_8cs.cshtml b/PokemonUnity.Web.Public/Api/_battle_peer_8cs.cshtml index 4633fd92c..a687eded9 100644 --- a/PokemonUnity.Web.Public/Api/_battle_peer_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_battle_peer_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonUnity.Monster   + diff --git a/PokemonUnity.Web.Public/Api/_battler_8cs.cshtml b/PokemonUnity.Web.Public/Api/_battler_8cs.cshtml index ed693e2dc..ab70d49fd 100644 --- a/PokemonUnity.Web.Public/Api/_battler_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_battler_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_battles_8cs.cshtml b/PokemonUnity.Web.Public/Api/_battles_8cs.cshtml index 3818df0b7..ff6d1b93b 100644 --- a/PokemonUnity.Web.Public/Api/_battles_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_battles_8cs.cshtml @@ -39,3 +39,4 @@ Enumerations enum  PokemonUnity.Combat.Weather   + diff --git a/PokemonUnity.Web.Public/Api/_berry_8cs.cshtml b/PokemonUnity.Web.Public/Api/_berry_8cs.cshtml index de7bdc651..144d44839 100644 --- a/PokemonUnity.Web.Public/Api/_berry_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_berry_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Inventory   + diff --git a/PokemonUnity.Web.Public/Api/_character_2_player_2_base_8cs.cshtml b/PokemonUnity.Web.Public/Api/_character_2_player_2_base_8cs.cshtml index 93a5c0c72..cc46009bc 100644 --- a/PokemonUnity.Web.Public/Api/_character_2_player_2_base_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_character_2_player_2_base_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_chatter_8cs.cshtml b/PokemonUnity.Web.Public/Api/_chatter_8cs.cshtml index 57a10b853..10a5b0190 100644 --- a/PokemonUnity.Web.Public/Api/_chatter_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_chatter_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Monster   + diff --git a/PokemonUnity.Web.Public/Api/_choice_8cs.cshtml b/PokemonUnity.Web.Public/Api/_choice_8cs.cshtml index d01e4235c..f11fea33a 100644 --- a/PokemonUnity.Web.Public/Api/_choice_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_choice_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Combat.Data   + diff --git a/PokemonUnity.Web.Public/Api/_combat_2_effects_2_move_8cs.cshtml b/PokemonUnity.Web.Public/Api/_combat_2_effects_2_move_8cs.cshtml index c28c62834..6830ef9f5 100644 --- a/PokemonUnity.Web.Public/Api/_combat_2_effects_2_move_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_combat_2_effects_2_move_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_combat_2_move_8cs.cshtml b/PokemonUnity.Web.Public/Api/_combat_2_move_8cs.cshtml index daad209e0..8b5483f6c 100644 --- a/PokemonUnity.Web.Public/Api/_combat_2_move_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_combat_2_move_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_combat_2_pokemon_2_pokemon_8_shadow_8cs.cshtml b/PokemonUnity.Web.Public/Api/_combat_2_pokemon_2_pokemon_8_shadow_8cs.cshtml index e73cc4049..9b729ba47 100644 --- a/PokemonUnity.Web.Public/Api/_combat_2_pokemon_2_pokemon_8_shadow_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_combat_2_pokemon_2_pokemon_8_shadow_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_combat_2_pokemon_2_pokemon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_combat_2_pokemon_2_pokemon_8cs.cshtml index e9fe18f67..c50ab2de9 100644 --- a/PokemonUnity.Web.Public/Api/_combat_2_pokemon_2_pokemon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_combat_2_pokemon_2_pokemon_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_core_8cs.cshtml b/PokemonUnity.Web.Public/Api/_core_8cs.cshtml index e0c6fc314..81b126cae 100644 --- a/PokemonUnity.Web.Public/Api/_core_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_core_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_damage_state_8cs.cshtml b/PokemonUnity.Web.Public/Api/_damage_state_8cs.cshtml index b62ba4cd8..2e1e5f23c 100644 --- a/PokemonUnity.Web.Public/Api/_damage_state_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_damage_state_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Combat.Data   + diff --git a/PokemonUnity.Web.Public/Api/_day_care_8cs.cshtml b/PokemonUnity.Web.Public/Api/_day_care_8cs.cshtml index 27d5af07b..c78a238e1 100644 --- a/PokemonUnity.Web.Public/Api/_day_care_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_day_care_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_day_care_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_day_care_data_8cs.cshtml index 146ccbbf9..65990f805 100644 --- a/PokemonUnity.Web.Public/Api/_day_care_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_day_care_data_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_debug_2_8_n_e_t_framework_00_version_0av4_87_82_8_assembly_attributes_8cs.cshtml b/PokemonUnity.Web.Public/Api/_debug_2_8_n_e_t_framework_00_version_0av4_87_82_8_assembly_attributes_8cs.cshtml deleted file mode 100644 index df8227f11..000000000 --- a/PokemonUnity.Web.Public/Api/_debug_2_8_n_e_t_framework_00_version_0av4_87_82_8_assembly_attributes_8cs.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Application/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs File Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { -
.NETFramework,Version=v4.7.2.AssemblyAttributes.cs File Reference
-} - diff --git a/PokemonUnity.Web.Public/Api/_encounter_8cs.cshtml b/PokemonUnity.Web.Public/Api/_encounter_8cs.cshtml index 40e177ab7..44bd46d28 100644 --- a/PokemonUnity.Web.Public/Api/_encounter_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_encounter_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Overworld   + diff --git a/PokemonUnity.Web.Public/Api/_encounter_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_encounter_data_8cs.cshtml index 80dc5e753..e4dd3870c 100644 --- a/PokemonUnity.Web.Public/Api/_encounter_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_encounter_data_8cs.cshtml @@ -20,7 +20,7 @@

Classes

struct  PokemonUnity.Overworld.EncounterData - Data records of pokemon profiles used for pooling together a random chance enounter for a battle against wild pokemons More...
+ Data records of pokemon profiles used for pooling together a random chance encounter for a battle against wild pokemons More...
 

@@ -30,3 +30,4 @@ Namespaces

namespace  PokemonUnity.Overworld
 
+ diff --git a/PokemonUnity.Web.Public/Api/_encounter_slot_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_encounter_slot_data_8cs.cshtml index d88617170..52d77b51e 100644 --- a/PokemonUnity.Web.Public/Api/_encounter_slot_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_encounter_slot_data_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Overworld   + diff --git a/PokemonUnity.Web.Public/Api/_entity_8cs.cshtml b/PokemonUnity.Web.Public/Api/_entity_8cs.cshtml index 3615ea9c5..017a8aac9 100644 --- a/PokemonUnity.Web.Public/Api/_entity_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_entity_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_enumerable_extensions_8cs.cshtml b/PokemonUnity.Web.Public/Api/_enumerable_extensions_8cs.cshtml index 88ffb623a..09a21863a 100644 --- a/PokemonUnity.Web.Public/Api/_enumerable_extensions_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_enumerable_extensions_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Utility   + diff --git a/PokemonUnity.Web.Public/Api/_enums_8cs.cshtml b/PokemonUnity.Web.Public/Api/_enums_8cs.cshtml index 0ef037f94..8fe359021 100644 --- a/PokemonUnity.Web.Public/Api/_enums_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_enums_8cs.cshtml @@ -46,6 +46,9 @@ Enumerations enum  PokemonUnity.TextScripts  Scripted Text stored and available for Locale translations More...
  +enum  PokemonUnity.TextLocalization + Different category sections a piece of translated text could belong to More...
+  enum  PokemonUnity.Generation   enum  PokemonUnity.Version @@ -63,3 +66,4 @@ Enumerations  Pokemon ids are connected to XML file. More...
  + diff --git a/PokemonUnity.Web.Public/Api/_events_8cs.cshtml b/PokemonUnity.Web.Public/Api/_events_8cs.cshtml index ddeca068a..ba75ec9e4 100644 --- a/PokemonUnity.Web.Public/Api/_events_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_events_8cs.cshtml @@ -29,7 +29,7 @@ Classes class  PokemonUnity.EventArg.OnMapChangingEventArgs   class  PokemonUnity.EventArg.OnLeaveTileEventArgs - Parameters: e[0] - Event that just left the tile. e[1] - Map ID where the tile is located (not necessarily the current map). Use "Game.GameData.MapFactory.getMap(e[1])" to get the Game_Map object corresponding to that map. e[2] - X-coordinate of the tile e[3] - Y-coordinate of the tile More...
+ Parameters: e[0] - Event that just left the tile. e[1] - Map ID where the tile is located (not necessarily the current map). Use "Game.GameData.MapFactory.getMap(e[1])" to get the Game_Map object corresponding to that map. e[2] - X-coordinate of the tile e[3] - Y-coordinate of the tile More...
  class  PokemonUnity.EventArg.OnStepTakenFieldMovementEventArgs  Parameters: e[0] - Event that just entered a tile. More...
@@ -57,6 +57,8 @@ Classes   class  PokemonUnity.EventArg.OnEndBattleEventArgs   +class  PokemonUnity.EventArg.OnLoadLevelEventArgs +  @@ -65,3 +67,4 @@ Namespaces

Namespaces

namespace  PokemonUnity.EventArg
 
+ diff --git a/PokemonUnity.Web.Public/Api/_evolution_8cs.cshtml b/PokemonUnity.Web.Public/Api/_evolution_8cs.cshtml index d37a75941..e8a9e65f7 100644 --- a/PokemonUnity.Web.Public/Api/_evolution_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_evolution_8cs.cshtml @@ -42,3 +42,4 @@ Enumerations enum  PokemonUnity.Monster.Data.EvoTrigger   + diff --git a/PokemonUnity.Web.Public/Api/_evolution_helper_8cs.cshtml b/PokemonUnity.Web.Public/Api/_evolution_helper_8cs.cshtml index 80380bc98..07a52267a 100644 --- a/PokemonUnity.Web.Public/Api/_evolution_helper_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_evolution_helper_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Monster   + diff --git a/PokemonUnity.Web.Public/Api/_experience_8cs.cshtml b/PokemonUnity.Web.Public/Api/_experience_8cs.cshtml index 50a88d609..a0fbc5ed3 100644 --- a/PokemonUnity.Web.Public/Api/_experience_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_experience_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Monster.Data   + diff --git a/PokemonUnity.Web.Public/Api/_extensions_8cs.cshtml b/PokemonUnity.Web.Public/Api/_extensions_8cs.cshtml index 0e4324119..c8aaa7d3d 100644 --- a/PokemonUnity.Web.Public/Api/_extensions_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_extensions_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Utility   + diff --git a/PokemonUnity.Web.Public/Api/_feature_8cs.cshtml b/PokemonUnity.Web.Public/Api/_feature_8cs.cshtml index c6afe5791..f01cd5fb1 100644 --- a/PokemonUnity.Web.Public/Api/_feature_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_feature_8cs.cshtml @@ -35,3 +35,4 @@ Enumerations enum  PokemonUnity.Application.Challenges   + diff --git a/PokemonUnity.Web.Public/Api/_field_8cs.cshtml b/PokemonUnity.Web.Public/Api/_field_8cs.cshtml index 29529bc9a..fe8e54fb7 100644 --- a/PokemonUnity.Web.Public/Api/_field_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_field_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_flag_8cs.cshtml b/PokemonUnity.Web.Public/Api/_flag_8cs.cshtml index d2ce58522..986a20d97 100644 --- a/PokemonUnity.Web.Public/Api/_flag_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_flag_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Attack.Data   + diff --git a/PokemonUnity.Web.Public/Api/_form_8cs.cshtml b/PokemonUnity.Web.Public/Api/_form_8cs.cshtml index a0c76af0b..f234d0f1b 100644 --- a/PokemonUnity.Web.Public/Api/_form_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_form_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Monster.Data   + diff --git a/PokemonUnity.Web.Public/Api/_game_2_item_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_2_item_8cs.cshtml index 490cce52f..bd5cb3b3c 100644 --- a/PokemonUnity.Web.Public/Api/_game_2_item_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_2_item_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_8_conditions_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8_conditions_8cs.cshtml index 1efc953fb..4118ba5dc 100644 --- a/PokemonUnity.Web.Public/Api/_game_8_conditions_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8_conditions_8cs.cshtml @@ -22,7 +22,7 @@ Classes class  PokemonUnity.Game  Variables that are stored when game is saved, and other temp values used for gameplay. More...
  -class  PokemonUnity.Game.PBDayNight +class  PokemonUnity.Game.DayNight  

@@ -30,3 +30,4 @@ Namespaces

namespace  PokemonUnity
 
+ diff --git a/PokemonUnity.Web.Public/Api/_game_8_database_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8_database_8cs.cshtml index c6722ec23..a3627d3f2 100644 --- a/PokemonUnity.Web.Public/Api/_game_8_database_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8_database_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_8_debugger_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8_debugger_8cs.cshtml index 5493265ab..b96aa1612 100644 --- a/PokemonUnity.Web.Public/Api/_game_8_debugger_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8_debugger_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_8_field_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8_field_8cs.cshtml index f2fe183ee..0e19e962b 100644 --- a/PokemonUnity.Web.Public/Api/_game_8_field_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8_field_8cs.cshtml @@ -42,3 +42,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_8_misc_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8_misc_data_8cs.cshtml index c6c54f7ec..8eb30a7f4 100644 --- a/PokemonUnity.Web.Public/Api/_game_8_misc_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8_misc_data_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_8_sprite_window_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8_sprite_window_8cs.cshtml index 7a9765aef..1123b08af 100644 --- a/PokemonUnity.Web.Public/Api/_game_8_sprite_window_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8_sprite_window_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_8_utility_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8_utility_8cs.cshtml index a447fb435..914eb9744 100644 --- a/PokemonUnity.Web.Public/Api/_game_8_utility_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8_utility_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_8_variable_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8_variable_8cs.cshtml index 11988ce57..ecb84de97 100644 --- a/PokemonUnity.Web.Public/Api/_game_8_variable_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8_variable_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_8cs.cshtml index 036056137..3a5f04a83 100644 --- a/PokemonUnity.Web.Public/Api/_game_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_game_extension_8cs.cshtml b/PokemonUnity.Web.Public/Api/_game_extension_8cs.cshtml index 7c8c1e117..da4c6137c 100644 --- a/PokemonUnity.Web.Public/Api/_game_extension_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_game_extension_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_global_metadata_8cs.cshtml b/PokemonUnity.Web.Public/Api/_global_metadata_8cs.cshtml index e6f19de18..61ccbf12e 100644 --- a/PokemonUnity.Web.Public/Api/_global_metadata_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_global_metadata_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_i_active_side_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_active_side_8cs.cshtml index 46d026aaa..e019fd0b7 100644 --- a/PokemonUnity.Web.Public/Api/_i_active_side_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_active_side_8cs.cshtml @@ -35,3 +35,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle.Effects   + diff --git a/PokemonUnity.Web.Public/Api/_i_animation_sprite_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_animation_sprite_8cs.cshtml index 387c1adf0..a816518a9 100644 --- a/PokemonUnity.Web.Public/Api/_i_animation_sprite_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_animation_sprite_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_area_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_area_8cs.cshtml index 43c0f2b2b..19bd78758 100644 --- a/PokemonUnity.Web.Public/Api/_i_area_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_area_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Overworld   + diff --git a/PokemonUnity.Web.Public/Api/_i_audio_play_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_audio_play_8cs.cshtml index 75a59646f..852f1257c 100644 --- a/PokemonUnity.Web.Public/Api/_i_audio_play_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_audio_play_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_authenticate_packet_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_authenticate_packet_8cs.cshtml index a9e5634cc..1ea0a205d 100644 --- a/PokemonUnity.Web.Public/Api/_i_authenticate_packet_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_authenticate_packet_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonUnity.Networking.Packets.Incoming   + diff --git a/PokemonUnity.Web.Public/Api/_i_bag_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_bag_8cs.cshtml index beb45d4ef..fe43f364e 100644 --- a/PokemonUnity.Web.Public/Api/_i_bag_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_bag_8cs.cshtml @@ -41,3 +41,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_a_i_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_a_i_8cs.cshtml index a503f8eeb..d5f19c192 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_a_i_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_a_i_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_arena_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_arena_8cs.cshtml index 62753fbe8..c194535d6 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_arena_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_arena_8cs.cshtml @@ -21,8 +21,6 @@ Classes interface  PokemonEssentials.Interface.PokeBattle.IBattleArena   -interface  PokemonEssentials.Interface.PokeBattle.IPokeBattleArena_Scene -  @@ -33,3 +31,4 @@ Namespaces

Namespaces

namespace  PokemonEssentials.Interface.PokeBattle
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_battle_choice_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_choice_8cs.cshtml index 793dcb3ef..8e4283f67 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_choice_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_choice_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_clause_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_clause_8cs.cshtml index 5fbe911a4..1c4f1c120 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_clause_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_clause_8cs.cshtml @@ -39,3 +39,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_move_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_move_8cs.cshtml index 830e93d5d..b592c9b04 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_move_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_move_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_palace_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_palace_8cs.cshtml index 2cae07416..b227e9240 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_palace_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_palace_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_peer_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_peer_8cs.cshtml index aa12d24b9..439dba3c4 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_peer_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_peer_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_recorder_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_recorder_8cs.cshtml index 4844ada7a..d1b12d52c 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_recorder_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_recorder_8cs.cshtml @@ -54,3 +54,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_swap_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_swap_8cs.cshtml index 9f3d02231..ab0d083ac 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_swap_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_swap_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_battle_trainer_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battle_trainer_8cs.cshtml index f5d15437b..cf3345022 100644 --- a/PokemonUnity.Web.Public/Api/_i_battle_trainer_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battle_trainer_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battler_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battler_8cs.cshtml index d2ce1a5dc..01b99eae3 100644 --- a/PokemonUnity.Web.Public/Api/_i_battler_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battler_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_battler_effect_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_battler_effect_8cs.cshtml index 7b20fad99..c737e255f 100644 --- a/PokemonUnity.Web.Public/Api/_i_battler_effect_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_battler_effect_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_berry_plants_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_berry_plants_8cs.cshtml index 84e3e2889..d6027d8c0 100644 --- a/PokemonUnity.Web.Public/Api/_i_berry_plants_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_berry_plants_8cs.cshtml @@ -40,3 +40,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_bug_contest_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_bug_contest_8cs.cshtml index 777a94fdd..70c3c7e18 100644 --- a/PokemonUnity.Web.Public/Api/_i_bug_contest_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_bug_contest_8cs.cshtml @@ -39,3 +39,4 @@ Namespaces namespace  PokemonEssentials.Interface.Battle   + diff --git a/PokemonUnity.Web.Public/Api/_i_damage_state_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_damage_state_8cs.cshtml index 8461e9941..04cc0629e 100644 --- a/PokemonUnity.Web.Public/Api/_i_damage_state_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_damage_state_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_database_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_database_8cs.cshtml index 7d21cfcd9..4a2abc213 100644 --- a/PokemonUnity.Web.Public/Api/_i_database_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_database_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_i_day_care_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_day_care_8cs.cshtml index 4590e3603..fe8b58dd2 100644 --- a/PokemonUnity.Web.Public/Api/_i_day_care_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_day_care_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_debugger_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_debugger_8cs.cshtml index fd81003a4..0104cd1d3 100644 --- a/PokemonUnity.Web.Public/Api/_i_debugger_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_debugger_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_i_dependant_events_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_dependant_events_8cs.cshtml index 2ccb85d4c..734cea51c 100644 --- a/PokemonUnity.Web.Public/Api/_i_dependant_events_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_dependant_events_8cs.cshtml @@ -42,3 +42,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_effects_battler_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_effects_battler_8cs.cshtml index 6751713d7..57c6d3fbc 100644 --- a/PokemonUnity.Web.Public/Api/_i_effects_battler_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_effects_battler_8cs.cshtml @@ -34,3 +34,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle.Effects   + diff --git a/PokemonUnity.Web.Public/Api/_i_effects_field_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_effects_field_8cs.cshtml index 9ca415b3f..b0d36d927 100644 --- a/PokemonUnity.Web.Public/Api/_i_effects_field_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_effects_field_8cs.cshtml @@ -34,3 +34,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle.Effects   + diff --git a/PokemonUnity.Web.Public/Api/_i_effects_move_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_effects_move_8cs.cshtml index e65f6014d..0e28fe1eb 100644 --- a/PokemonUnity.Web.Public/Api/_i_effects_move_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_effects_move_8cs.cshtml @@ -34,3 +34,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle.Effects   + diff --git a/PokemonUnity.Web.Public/Api/_i_effects_side_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_effects_side_8cs.cshtml index 1d5797134..61d60179c 100644 --- a/PokemonUnity.Web.Public/Api/_i_effects_side_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_effects_side_8cs.cshtml @@ -34,3 +34,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle.Effects   + diff --git a/PokemonUnity.Web.Public/Api/_i_encounter_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_encounter_data_8cs.cshtml index 312e8a35d..dadb383d8 100644 --- a/PokemonUnity.Web.Public/Api/_i_encounter_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_encounter_data_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Overworld   + diff --git a/PokemonUnity.Web.Public/Api/_i_encounters_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_encounters_8cs.cshtml index b18a373ca..05755b850 100644 --- a/PokemonUnity.Web.Public/Api/_i_encounters_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_encounters_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_engine_8_audio_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_engine_8_audio_8cs.cshtml index 5d56ed569..066ca0614 100644 --- a/PokemonUnity.Web.Public/Api/_i_engine_8_audio_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_engine_8_audio_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_engine_8_sprite_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_engine_8_sprite_8cs.cshtml index ddb7ea637..1cce61c52 100644 --- a/PokemonUnity.Web.Public/Api/_i_engine_8_sprite_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_engine_8_sprite_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_engine_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_engine_8cs.cshtml index 0f8803ed2..a06313bed 100644 --- a/PokemonUnity.Web.Public/Api/_i_engine_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_engine_8cs.cshtml @@ -67,3 +67,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_event_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_event_8cs.cshtml index 22002b7e8..ce88546fa 100644 --- a/PokemonUnity.Web.Public/Api/_i_event_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_event_8cs.cshtml @@ -61,6 +61,8 @@ Classes interface  PokemonEssentials.Interface.EventArg.IOnSpritesetCreateEventArgs  Parameters: e[0] = Spriteset being created e[1] = Viewport used for tilemap and characters e[0].map = Map associated with the spriteset (not necessarily the current map). More...
  +interface  PokemonEssentials.Interface.EventArg.IOnLoadLevelEventArgs +  @@ -71,3 +73,4 @@ Namespaces

Namespaces

namespace  PokemonEssentials.Interface.EventArg
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_sprite_pokemon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_evolution_8cs.cshtml similarity index 69% rename from PokemonUnity.Web.Public/Api/_i_sprite_pokemon_8cs.cshtml rename to PokemonUnity.Web.Public/Api/_i_evolution_8cs.cshtml index 1934af245..e529b5ba6 100644 --- a/PokemonUnity.Web.Public/Api/_i_sprite_pokemon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_evolution_8cs.cshtml @@ -1,11 +1,11 @@ @{ - Page.Title = "PokemonUnity.Shared/Framework/Essentials/ISpritePokemon.cs File Reference"; + Page.Title = "PokemonUnity.Shared/Framework/Essentials/Screen/IEvolution.cs File Reference"; } @section breadcrumbs { } @@ -13,13 +13,13 @@ -
ISpritePokemon.cs File Reference
+
IEvolution.cs File Reference
} - +

Classes

interface  PokemonEssentials.Interface.ISpritePicture
interface  PokemonEssentials.Interface.Screen.IPokemonEvolutionScene
 
+ +

@@ -28,4 +28,7 @@ Namespaces

 
namespace  PokemonEssentials.Interface
 
namespace  PokemonEssentials.Interface.Screen
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_safari_zone_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_fake_battler_8cs.cshtml similarity index 83% rename from PokemonUnity.Web.Public/Api/_i_safari_zone_8cs.cshtml rename to PokemonUnity.Web.Public/Api/_i_fake_battler_8cs.cshtml index 449464ed3..24bd15838 100644 --- a/PokemonUnity.Web.Public/Api/_i_safari_zone_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_fake_battler_8cs.cshtml @@ -1,5 +1,5 @@ @{ - Page.Title = "PokemonUnity.Shared/Framework/Essentials/PokeBattle/ISafariZone.cs File Reference"; + Page.Title = "PokemonUnity.Shared/Framework/Essentials/PokeBattle/IFakeBattler.cs File Reference"; } @section breadcrumbs { @@ -13,7 +13,7 @@ -
ISafariZone.cs File Reference
+
IFakeBattler.cs File Reference
} @@ -21,8 +21,6 @@ Classes - -
interface  PokemonEssentials.Interface.PokeBattle.IFakeBattler
 
interface  PokemonEssentials.Interface.PokeBattle.ISafariZone
 
@@ -33,3 +31,4 @@ Namespaces

Namespaces

namespace  PokemonEssentials.Interface.PokeBattle
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_field_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_field_8cs.cshtml index ccbbd6baa..f694fba85 100644 --- a/PokemonUnity.Web.Public/Api/_i_field_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_field_8cs.cshtml @@ -31,6 +31,8 @@ Classes interface  PokemonEssentials.Interface.Field.ITempMetadataField  Extension of Interface.Field.ITempMetadata More...
  +interface  PokemonEssentials.Interface.Field.ISceneMapField +  interface  PokemonEssentials.Interface.Field.IGameEventField   interface  PokemonEssentials.Interface.Field.IInterpreterFieldMixinField @@ -47,3 +49,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_frontend_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_frontend_8cs.cshtml index e20a4d183..861b8858b 100644 --- a/PokemonUnity.Web.Public/Api/_i_frontend_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_frontend_8cs.cshtml @@ -1,11 +1,11 @@ @{ - Page.Title = "PokemonUnity.Shared/Framework/IFrontend.cs File Reference"; + Page.Title = "PokemonUnity.Shared/Framework/Essentials/Screen/IFrontend.cs File Reference"; } @section breadcrumbs { } @@ -19,81 +19,18 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

Classes

interface  PokemonUnity.ISceneState
interface  PokemonEssentials.Interface.Screen.IGameScreensUI
 
interface  PokemonUnity.IScreen
 
interface  PokemonUnity.IGame_Screen
 
interface  PokemonUnity.IWindow
 
interface  PokemonUnity.ICanvas
 
interface  PokemonUnity.IAudioObject
 
interface  PokemonUnity.IRelicStoneScene
 Scene class for handling appearance of the screen More...
 
interface  PokemonUnity.IRelicStoneScreen
 Screen class for handling game logic More...
 
interface  PokemonUnity.IPokemonEntry
 
interface  PokemonUnity.IPokemonEntryScene
 Text entry screen - free typing. More...
 
interface  PokemonUnity.IPokemonEntryScene2
 Text entry screen - arrows to select letter. More...
 
interface  PokemonUnity.ISceneHasChatter
 
interface  PokemonUnity.IPokeBattle_Scene
 
interface  PokemonUnity.IPokeBattleArena_Scene
 
interface  PokemonUnity.IPokemonEvolutionScene
 
interface  PokemonUnity.IPokemonPokedex
 
interface  PokemonUnity.IPokemonPokedexScene
 
interface  PokemonUnity.IPokemonNestMapScene
 Shows the "Nest" page of the Pokédex entry screen. More...
 
interface  PokemonUnity.IPokemonNestMap
 
interface  PokemonUnity.IPokemonFormScene
 Shows the "Form" page of the Pokédex entry screen. More...
 
interface  PokemonUnity.IPokemonForm
 
interface  PokemonUnity.IPokemonMenu_Scene
 
interface  PokemonUnity.IPokemonMenu
 
interface  PokemonUnity.IPokemonBag_Scene
 
interface  PokemonUnity.IPokemonBagScreen
 
interface  PokemonUnity.IPokemonStorageScene
 
interface  PokemonUnity.IPokemonStorageScreen
 
interface  PokemonUnity.IPokemonSummaryScene
 
interface  PokemonUnity.IPokemonSummary
 
interface  PokemonUnity.IPokemonScreen_Scene
 
interface  PokemonUnity.IPokemonScreen
 
interface  PokemonUnity.UX.IFrontEnd
interface  PokemonEssentials.Interface.Screen.IGameScenesUI
 
- + - + + +

Namespaces

namespace  PokemonUnity
namespace  PokemonEssentials
 
namespace  PokemonUnity.UX
namespace  PokemonEssentials.Interface
 
namespace  PokemonEssentials.Interface.Screen
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_game_character_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_character_8cs.cshtml index ba4f68a87..3383a0a23 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_character_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_character_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_common_event_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_common_event_8cs.cshtml index 1b9348195..19a14b704 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_common_event_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_common_event_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_event_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_event_8cs.cshtml index 96f632de9..809a3b5e5 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_event_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_event_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_map_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_map_8cs.cshtml index 470530e86..0ed4e973c 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_map_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_map_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_map_autoscroll_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_map_autoscroll_8cs.cshtml index 2eca28df3..f23f040f8 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_map_autoscroll_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_map_autoscroll_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_map_resolution_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_map_resolution_8cs.cshtml index ddf701cd1..12f3ce6b4 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_map_resolution_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_map_resolution_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_picture_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_picture_8cs.cshtml index 531b48f61..2cf5a2312 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_picture_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_picture_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_player_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_player_8cs.cshtml index 2d4c443fb..22cf58eaa 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_player_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_player_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_player_run_movement_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_player_run_movement_8cs.cshtml index fd4e8e681..346df89f9 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_player_run_movement_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_player_run_movement_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_screen_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_screen_8cs.cshtml index a6f2a9d38..c55938178 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_screen_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_screen_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_self_switches_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_self_switches_8cs.cshtml index d40dc8c20..eb1f007cf 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_self_switches_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_self_switches_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_switches_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_switches_8cs.cshtml index ede67d3fc..81b1fafd9 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_switches_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_switches_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_system_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_system_8cs.cshtml index fa3dd20d7..75271241e 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_system_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_system_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_temp_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_temp_8cs.cshtml index cfd07d0a9..b402d254c 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_temp_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_temp_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_utility_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_utility_8cs.cshtml index 330618a50..0d2876f14 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_utility_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_utility_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_game_variable_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_game_variable_8cs.cshtml index 74b0d6434..820a9314a 100644 --- a/PokemonUnity.Web.Public/Api/_i_game_variable_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_game_variable_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_global_metadata_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_global_metadata_8cs.cshtml index e48273348..8eaadadbe 100644 --- a/PokemonUnity.Web.Public/Api/_i_global_metadata_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_global_metadata_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_hidden_moves_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_hidden_moves_8cs.cshtml index fc53e2492..9d2103bf6 100644 --- a/PokemonUnity.Web.Public/Api/_i_hidden_moves_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_hidden_moves_8cs.cshtml @@ -42,3 +42,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_interpreter_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_interpreter_8cs.cshtml index bcde89bb8..379d9ce31 100644 --- a/PokemonUnity.Web.Public/Api/_i_interpreter_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_interpreter_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_interpreter_field_mixin_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_interpreter_field_mixin_8cs.cshtml index 2f8e8362b..848e02f40 100644 --- a/PokemonUnity.Web.Public/Api/_i_interpreter_field_mixin_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_interpreter_field_mixin_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_essentials_2_screen_2_i_scene_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_intro_8cs.cshtml similarity index 60% rename from PokemonUnity.Web.Public/Api/_essentials_2_screen_2_i_scene_8cs.cshtml rename to PokemonUnity.Web.Public/Api/_i_intro_8cs.cshtml index d47e2209b..ff218f718 100644 --- a/PokemonUnity.Web.Public/Api/_essentials_2_screen_2_i_scene_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_intro_8cs.cshtml @@ -1,5 +1,5 @@ @{ - Page.Title = "PokemonUnity.Shared/Framework/Essentials/Screen/IScene.cs File Reference"; + Page.Title = "PokemonUnity.Shared/Framework/Essentials/Screen/IIntro.cs File Reference"; } @section breadcrumbs { @@ -13,28 +13,16 @@ -
IScene.cs File Reference
+
IIntro.cs File Reference
} - - - - - - - - - - - - - + @@ -51,3 +39,4 @@ Namespaces

Classes

interface  PokemonEssentials.Interface.Screen.IScreen
 
interface  PokemonEssentials.Interface.Screen.UIHelper
 Common UI functions used in both the Bag and item storage screens. Allows the user to choose a number. The window helpwindow will display the helptext. More...
 
interface  PokemonEssentials.Interface.Screen.IEntity
 
interface  PokemonEssentials.Interface.Screen.IHasDisplayMessage
 
interface  PokemonEssentials.Interface.Screen.IScene
 A scene basically represents unity (or any frontend) where code pauses for user interaction (animation, and user key inputs). More...
 
interface  PokemonEssentials.Interface.Screen.IEventScene
 
interface  PokemonEssentials.Interface.Screen.IIntroEventScene
 First scene to load when game boots up. Displays logos and intro credits/sponsers More...
 First scene to load when game boots up. Displays logos and intro credits/sponsors More...
 
interface  PokemonEssentials.Interface.Screen.IIntroEventScreen
 
namespace  PokemonEssentials.Interface.Screen
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_item_handlers_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_item_handlers_8cs.cshtml index d72fbb649..569dcf974 100644 --- a/PokemonUnity.Web.Public/Api/_i_item_handlers_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_item_handlers_8cs.cshtml @@ -69,3 +69,4 @@ Functions delegate void PokemonEssentials.Interface.EventArg.UseInBattleDelegate (Items item, IBattler battler, IBattle battle)   + diff --git a/PokemonUnity.Web.Public/Api/_i_library_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_library_8cs.cshtml index e5e2ce713..3496dcf36 100644 --- a/PokemonUnity.Web.Public/Api/_i_library_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_library_8cs.cshtml @@ -69,3 +69,4 @@ Namespaces namespace  PokemonEssentials.Interface.RPGMaker.Kernal   + diff --git a/PokemonUnity.Web.Public/Api/_i_load_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_load_8cs.cshtml index 9197dcbbd..8c25a4212 100644 --- a/PokemonUnity.Web.Public/Api/_i_load_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_load_8cs.cshtml @@ -35,3 +35,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_mail_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_mail_8cs.cshtml index d00a60bc2..0cd953f6b 100644 --- a/PokemonUnity.Web.Public/Api/_i_mail_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_mail_8cs.cshtml @@ -34,3 +34,4 @@ Namespaces namespace  PokemonEssentials.Interface.Item   + diff --git a/PokemonUnity.Web.Public/Api/_i_map_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_map_data_8cs.cshtml index d6e6a8b08..831a5e94d 100644 --- a/PokemonUnity.Web.Public/Api/_i_map_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_map_data_8cs.cshtml @@ -40,3 +40,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_map_factory_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_map_factory_8cs.cshtml index 4fd1d7018..4545412ce 100644 --- a/PokemonUnity.Web.Public/Api/_i_map_factory_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_map_factory_8cs.cshtml @@ -46,3 +46,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_map_metadata_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_map_metadata_8cs.cshtml index 502587f0d..c6f0d4cc8 100644 --- a/PokemonUnity.Web.Public/Api/_i_map_metadata_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_map_metadata_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_mart_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_mart_8cs.cshtml index c24d28624..6327a9c6a 100644 --- a/PokemonUnity.Web.Public/Api/_i_mart_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_mart_8cs.cshtml @@ -49,3 +49,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_message_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_message_8cs.cshtml index a6281955f..7dd4859da 100644 --- a/PokemonUnity.Web.Public/Api/_i_message_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_message_8cs.cshtml @@ -53,3 +53,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_misc_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_misc_data_8cs.cshtml index e68017f6b..c2e4ab4cd 100644 --- a/PokemonUnity.Web.Public/Api/_i_misc_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_misc_data_8cs.cshtml @@ -53,3 +53,4 @@ Enumerations enum  PokemonEssentials.Interface.Field.MapMetadatas   + diff --git a/PokemonUnity.Web.Public/Api/_i_move_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_move_8cs.cshtml index c09016f3e..77949924e 100644 --- a/PokemonUnity.Web.Public/Api/_i_move_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_move_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_mystery_gift_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_mystery_gift_8cs.cshtml index 702e5ef7a..9bf9a6025 100644 --- a/PokemonUnity.Web.Public/Api/_i_mystery_gift_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_mystery_gift_8cs.cshtml @@ -35,3 +35,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_option_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_option_8cs.cshtml index 2fce58d4c..70567755c 100644 --- a/PokemonUnity.Web.Public/Api/_i_option_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_option_8cs.cshtml @@ -50,3 +50,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_org_battle_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_org_battle_8cs.cshtml index 1689c2f79..8a1d1ef37 100644 --- a/PokemonUnity.Web.Public/Api/_i_org_battle_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_org_battle_8cs.cshtml @@ -27,6 +27,8 @@ Classes   interface  PokemonEssentials.Interface.Battle.IGameMapOrgBattle   +interface  PokemonEssentials.Interface.Battle.IGamePlayerOrgBattle +  interface  PokemonEssentials.Interface.Battle.IBattleChallengeType   interface  PokemonEssentials.Interface.Battle.IBattleChallengeData @@ -49,3 +51,4 @@ Namespaces namespace  PokemonEssentials.Interface.Battle   + diff --git a/PokemonUnity.Web.Public/Api/_i_org_battle_generator_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_org_battle_generator_8cs.cshtml index 4064ae2e5..2703f0971 100644 --- a/PokemonUnity.Web.Public/Api/_i_org_battle_generator_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_org_battle_generator_8cs.cshtml @@ -47,3 +47,4 @@ Namespaces namespace  PokemonEssentials.Interface.Battle   + diff --git a/PokemonUnity.Web.Public/Api/_i_org_battle_rules_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_org_battle_rules_8cs.cshtml index 0ac927013..820bcb66a 100644 --- a/PokemonUnity.Web.Public/Api/_i_org_battle_rules_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_org_battle_rules_8cs.cshtml @@ -160,3 +160,4 @@ Namespaces namespace  PokemonEssentials.Interface.Battle   + diff --git a/PokemonUnity.Web.Public/Api/_i_p_c_storage_item_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_p_c_storage_item_8cs.cshtml index d45a6f702..188b0c94f 100644 --- a/PokemonUnity.Web.Public/Api/_i_p_c_storage_item_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_p_c_storage_item_8cs.cshtml @@ -40,3 +40,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_p_c_storage_pokemon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_p_c_storage_pokemon_8cs.cshtml index 0bf4b4a3a..698366da0 100644 --- a/PokemonUnity.Web.Public/Api/_i_p_c_storage_pokemon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_p_c_storage_pokemon_8cs.cshtml @@ -21,7 +21,7 @@ Classes interface  PokemonEssentials.Interface.Screen.IPokemonBox   -interface  PokemonEssentials.Interface.Screen.IPokemonStorage +interface  PokemonEssentials.Interface.Screen.IPCPokemonStorage   interface  PokemonEssentials.Interface.Screen.IPokemonStorageWithParty   @@ -61,3 +61,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_party_menu_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_party_menu_8cs.cshtml index 36b1238c2..47559e6f7 100644 --- a/PokemonUnity.Web.Public/Api/_i_party_menu_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_party_menu_8cs.cshtml @@ -47,3 +47,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_pause_menu_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pause_menu_8cs.cshtml index 6462c9365..d31e02d2d 100644 --- a/PokemonUnity.Web.Public/Api/_i_pause_menu_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pause_menu_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_poke_radar_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_poke_radar_8cs.cshtml index 7589d74ae..70cffd83c 100644 --- a/PokemonUnity.Web.Public/Api/_i_poke_radar_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_poke_radar_8cs.cshtml @@ -45,3 +45,4 @@ Namespaces namespace  PokemonEssentials.Interface.Item   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokeball_handlers_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokeball_handlers_8cs.cshtml index 14f85cb04..f8af14180 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokeball_handlers_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokeball_handlers_8cs.cshtml @@ -53,3 +53,4 @@ Functions delegate void PokemonEssentials.Interface.EventArg.OnFailCatch (Items ball, IBattle battle, IBattler battler)   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokedex_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokedex_8cs.cshtml index 3c88075d4..3cc10801a 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokedex_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokedex_8cs.cshtml @@ -43,3 +43,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokedex_nest_form_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokedex_nest_form_8cs.cshtml index 1c1831703..69daffe45 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokedex_nest_form_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokedex_nest_form_8cs.cshtml @@ -41,3 +41,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokegear_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokegear_8cs.cshtml index 2c81e6c43..9745d8e3a 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokegear_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokegear_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokemon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokemon_8cs.cshtml index a60598e45..b5bea82ee 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokemon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokemon_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokemon_chatter_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokemon_chatter_8cs.cshtml index 17eea8636..a819c44c4 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokemon_chatter_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokemon_chatter_8cs.cshtml @@ -41,3 +41,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokemon_evolution_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokemon_evolution_8cs.cshtml index a0aacb649..4bf1f0fb6 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokemon_evolution_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokemon_evolution_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokemon_mega_evolution_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokemon_mega_evolution_8cs.cshtml index bf272a495..297fd50ae 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokemon_mega_evolution_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokemon_mega_evolution_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokemon_multiple_forms_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokemon_multiple_forms_8cs.cshtml index a5086f7ae..6e1b8375d 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokemon_multiple_forms_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokemon_multiple_forms_8cs.cshtml @@ -42,3 +42,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_pokemon_shadow_pokemon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_pokemon_shadow_pokemon_8cs.cshtml index 9bd6a7000..c8bf7ddd2 100644 --- a/PokemonUnity.Web.Public/Api/_i_pokemon_shadow_pokemon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_pokemon_shadow_pokemon_8cs.cshtml @@ -49,3 +49,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_i_purify_chamber_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_purify_chamber_8cs.cshtml index 5f3777a9b..4e21e5b8c 100644 --- a/PokemonUnity.Web.Public/Api/_i_purify_chamber_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_purify_chamber_8cs.cshtml @@ -53,3 +53,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_random_dungeon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_random_dungeon_8cs.cshtml index 75c20d9e5..195597d02 100644 --- a/PokemonUnity.Web.Public/Api/_i_random_dungeon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_random_dungeon_8cs.cshtml @@ -47,3 +47,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_relic_stone_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_relic_stone_8cs.cshtml index 59d162a66..84580725c 100644 --- a/PokemonUnity.Web.Public/Api/_i_relic_stone_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_relic_stone_8cs.cshtml @@ -35,3 +35,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_resource_objects_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_resource_objects_8cs.cshtml index e0431f7c3..5dc0d18f8 100644 --- a/PokemonUnity.Web.Public/Api/_i_resource_objects_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_resource_objects_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_i_roaming_pokemon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_roaming_pokemon_8cs.cshtml index 3ef89a5f6..0ca336227 100644 --- a/PokemonUnity.Web.Public/Api/_i_roaming_pokemon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_roaming_pokemon_8cs.cshtml @@ -35,3 +35,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_safari_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_safari_8cs.cshtml index 0104bd618..201229fd7 100644 --- a/PokemonUnity.Web.Public/Api/_i_safari_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_safari_8cs.cshtml @@ -1,11 +1,11 @@ @{ - Page.Title = "PokemonUnity.Shared/Framework/Essentials/Battle/ISafari.cs File Reference"; + Page.Title = "PokemonUnity.Shared/Framework/Essentials/Screen/ISafari.cs File Reference"; } @section breadcrumbs { } @@ -19,11 +19,7 @@ - - - - +

Classes

interface  PokemonEssentials.Interface.Battle.ISafariState
 
interface  PokemonEssentials.Interface.Battle.IGameSafari
 Extension of

See also
IGame
- More...
interface  PokemonEssentials.Interface.Screen.ISafariZone_Scene
 
- +

@@ -32,6 +28,7 @@ Namespaces

 
namespace  PokemonEssentials.Interface
 
namespace  PokemonEssentials.Interface.Battle
namespace  PokemonEssentials.Interface.Screen
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_safari_state_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_safari_state_8cs.cshtml new file mode 100644 index 000000000..e63591bd4 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/_i_safari_state_8cs.cshtml @@ -0,0 +1,38 @@ +@{ + Page.Title = "PokemonUnity.Shared/Framework/Essentials/Field/ISafariState.cs File Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
ISafariState.cs File Reference
+} + + + + + + + + +

+Classes

interface  PokemonEssentials.Interface.Field.ISafariState
 
interface  PokemonEssentials.Interface.Field.IGameSafari
 Extension of

See also
IGame
+ More...
 
+ + + + + + + +

+Namespaces

namespace  PokemonEssentials
 
namespace  PokemonEssentials.Interface
 
namespace  PokemonEssentials.Interface.Field
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_save_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_save_8cs.cshtml index 439b2de76..dea515dba 100644 --- a/PokemonUnity.Web.Public/Api/_i_save_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_save_8cs.cshtml @@ -35,3 +35,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_scene_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_scene_8cs.cshtml index e1dcd9c32..b9aea9149 100644 --- a/PokemonUnity.Web.Public/Api/_i_scene_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_scene_8cs.cshtml @@ -1,11 +1,11 @@ @{ - Page.Title = "PokemonUnity.Shared/Framework/IScene.cs File Reference"; + Page.Title = "PokemonUnity.Shared/Framework/Essentials/Screen/IScene.cs File Reference"; } @section breadcrumbs { } @@ -19,30 +19,26 @@ - + - + + - - + - + - - - - - - - - - - - + +

Classes

interface  PokemonUnity.IEntity
interface  PokemonEssentials.Interface.Screen.IScreen
 
interface  PokemonUnity.IHasDisplayMessage
interface  PokemonEssentials.Interface.Screen.UIHelper
 Common UI functions used in both the Bag and item storage screens. Allows the user to choose a number. The window helpwindow will display the helptext. More...
 
interface  PokemonUnity.IScene
 A scene basically represents unity (or any frontend) where code pauses for user interaction (animation, and user key inputs). More...
interface  PokemonEssentials.Interface.Screen.IEntity
 
interface  PokemonUnity.IEventScene
interface  PokemonEssentials.Interface.Screen.IHasDisplayMessage
 
interface  PokemonUnity.IIntroEventScene
 First scene to load when game boots up. Displays logos and intro credits/sponsers More...
 
interface  PokemonUnity.IScene_Intro
 
interface  PokemonUnity.IButtonEventScene
 Shows a help screen listing the keyboard controls. More...
 
interface  PokemonUnity.IPokeBattle_DebugScene
 
interface  PokemonUnity.IPokeBattle_SceneNonInteractive
interface  PokemonEssentials.Interface.Screen.IScene
 A scene basically represents unity (or any frontend) where code pauses for user interaction (animation, and user key inputs). More...
 
- + + + + +

Namespaces

namespace  PokemonUnity
namespace  PokemonEssentials
 
namespace  PokemonEssentials.Interface
 
namespace  PokemonEssentials.Interface.Screen
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_scene_map_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_scene_map_8cs.cshtml index c4ee11c3d..7b9007ee4 100644 --- a/PokemonUnity.Web.Public/Api/_i_scene_map_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_scene_map_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_sprite_character_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_sprite_character_8cs.cshtml index eb51645b1..57882c044 100644 --- a/PokemonUnity.Web.Public/Api/_i_sprite_character_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_sprite_character_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_sprite_picture_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_sprite_picture_8cs.cshtml index 2bda7326f..5662271c7 100644 --- a/PokemonUnity.Web.Public/Api/_i_sprite_picture_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_sprite_picture_8cs.cshtml @@ -19,6 +19,8 @@ + + @@ -42,3 +44,4 @@ Namespaces

Classes

interface  PokemonEssentials.Interface.ISpritePicture
 
interface  PokemonEssentials.Interface.IPokemonSprite
 Pokémon sprite (used out of battle) More...
 
namespace  PokemonEssentials.Interface
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_sprite_resizer_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_sprite_resizer_8cs.cshtml index f721f2cb2..294b35684 100644 --- a/PokemonUnity.Web.Public/Api/_i_sprite_resizer_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_sprite_resizer_8cs.cshtml @@ -48,3 +48,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_sprite_timer_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_sprite_timer_8cs.cshtml index 6493a52b1..870a190f2 100644 --- a/PokemonUnity.Web.Public/Api/_i_sprite_timer_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_sprite_timer_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_sprite_window_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_sprite_window_8cs.cshtml index 20748b8b0..cd4329f26 100644 --- a/PokemonUnity.Web.Public/Api/_i_sprite_window_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_sprite_window_8cs.cshtml @@ -87,3 +87,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_spriteset_map_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_spriteset_map_8cs.cshtml index 008956e42..92a8ff379 100644 --- a/PokemonUnity.Web.Public/Api/_i_spriteset_map_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_spriteset_map_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_summary_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_summary_8cs.cshtml index 7ebb0a686..c5d6eb3d5 100644 --- a/PokemonUnity.Web.Public/Api/_i_summary_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_summary_8cs.cshtml @@ -35,3 +35,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_i_temp_metadata_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_temp_metadata_8cs.cshtml index 233845a69..e9f4c597b 100644 --- a/PokemonUnity.Web.Public/Api/_i_temp_metadata_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_temp_metadata_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_essentials_2_screen_2_i_frontend_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_text_entry_8cs.cshtml similarity index 76% rename from PokemonUnity.Web.Public/Api/_essentials_2_screen_2_i_frontend_8cs.cshtml rename to PokemonUnity.Web.Public/Api/_i_text_entry_8cs.cshtml index 04c9f2cce..6c5ff71de 100644 --- a/PokemonUnity.Web.Public/Api/_essentials_2_screen_2_i_frontend_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_text_entry_8cs.cshtml @@ -1,5 +1,5 @@ @{ - Page.Title = "PokemonUnity.Shared/Framework/Essentials/Screen/IFrontend.cs File Reference"; + Page.Title = "PokemonUnity.Shared/Framework/Essentials/Screen/ITextEntry.cs File Reference"; } @section breadcrumbs { @@ -13,7 +13,7 @@ -
IFrontend.cs File Reference
+
ITextEntry.cs File Reference
} @@ -29,12 +29,6 @@ Classes - - - - - -
 
interface  PokemonEssentials.Interface.Screen.IGameTextEntry
 
interface  PokemonEssentials.Interface.Screen.IPokemonEvolutionScene
 
interface  PokemonEssentials.Interface.Screen.IGameScreensUI
 
interface  PokemonEssentials.Interface.Screen.IGameScenesUI
 
@@ -45,3 +39,4 @@ Namespaces

Namespaces

namespace  PokemonEssentials.Interface.Screen
 
+ diff --git a/PokemonUnity.Web.Public/Api/_i_text_position_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_text_position_8cs.cshtml index 2ebde4c23..2f0977809 100644 --- a/PokemonUnity.Web.Public/Api/_i_text_position_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_text_position_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonEssentials.Interface   + diff --git a/PokemonUnity.Web.Public/Api/_i_time_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_time_8cs.cshtml index 6441abd1f..489a54d15 100644 --- a/PokemonUnity.Web.Public/Api/_i_time_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_time_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.Field   + diff --git a/PokemonUnity.Web.Public/Api/_i_trainer_card_8cs.cshtml b/PokemonUnity.Web.Public/Api/_i_trainer_card_8cs.cshtml index 1c29c59ff..ac698440a 100644 --- a/PokemonUnity.Web.Public/Api/_i_trainer_card_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_i_trainer_card_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_incoming_packet_8cs.cshtml b/PokemonUnity.Web.Public/Api/_incoming_packet_8cs.cshtml index 7821b5a22..00ea1b8dc 100644 --- a/PokemonUnity.Web.Public/Api/_incoming_packet_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_incoming_packet_8cs.cshtml @@ -39,3 +39,4 @@ Enumerations enum  PokemonUnity.Networking.Packets.IncomingPacketType   + diff --git a/PokemonUnity.Web.Public/Api/_input_8cs.cshtml b/PokemonUnity.Web.Public/Api/_input_8cs.cshtml index 7ef30a090..14dfd262f 100644 --- a/PokemonUnity.Web.Public/Api/_input_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_input_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_inventory_2_data_2_base_8cs.cshtml b/PokemonUnity.Web.Public/Api/_inventory_2_data_2_base_8cs.cshtml index f7d22a765..bd1d12b7a 100644 --- a/PokemonUnity.Web.Public/Api/_inventory_2_data_2_base_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_inventory_2_data_2_base_8cs.cshtml @@ -21,6 +21,8 @@ Classes struct  PokemonUnity.Inventory.ItemData   +class  PokemonUnity.Inventory.Item +  @@ -29,3 +31,4 @@ Namespaces

Namespaces

namespace  PokemonUnity.Inventory
 
+ diff --git a/PokemonUnity.Web.Public/Api/_inventory_2_item_2_item_8cs.cshtml b/PokemonUnity.Web.Public/Api/_inventory_2_item_2_item_8cs.cshtml index 205d2b5ed..692259ef9 100644 --- a/PokemonUnity.Web.Public/Api/_inventory_2_item_2_item_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_inventory_2_item_2_item_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Inventory   + diff --git a/PokemonUnity.Web.Public/Api/_item_8_effects_8cs.cshtml b/PokemonUnity.Web.Public/Api/_item_8_effects_8cs.cshtml index 4bccba29e..b9703a364 100644 --- a/PokemonUnity.Web.Public/Api/_item_8_effects_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_item_8_effects_8cs.cshtml @@ -40,3 +40,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_item_8_helper_8cs.cshtml b/PokemonUnity.Web.Public/Api/_item_8_helper_8cs.cshtml index a4994a243..e49e42b57 100644 --- a/PokemonUnity.Web.Public/Api/_item_8_helper_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_item_8_helper_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Inventory   + diff --git a/PokemonUnity.Web.Public/Api/_item_8_pokeball_8cs.cshtml b/PokemonUnity.Web.Public/Api/_item_8_pokeball_8cs.cshtml index 48265ece4..52d71ba12 100644 --- a/PokemonUnity.Web.Public/Api/_item_8_pokeball_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_item_8_pokeball_8cs.cshtml @@ -35,3 +35,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_item_extension_8cs.cshtml b/PokemonUnity.Web.Public/Api/_item_extension_8cs.cshtml index 57e36318f..5edcad772 100644 --- a/PokemonUnity.Web.Public/Api/_item_extension_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_item_extension_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_item_flags_8cs.cshtml b/PokemonUnity.Web.Public/Api/_item_flags_8cs.cshtml index 5d076f234..fde2d0764 100644 --- a/PokemonUnity.Web.Public/Api/_item_flags_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_item_flags_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Inventory   + diff --git a/PokemonUnity.Web.Public/Api/_item_storage_8cs.cshtml b/PokemonUnity.Web.Public/Api/_item_storage_8cs.cshtml new file mode 100644 index 000000000..bb9d1e568 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/_item_storage_8cs.cshtml @@ -0,0 +1,33 @@ +@{ + Page.Title = "PokemonUnity.Application/Character/ItemStorage.cs File Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
ItemStorage.cs File Reference
+} + + + + + + +

+Classes

class  PokemonUnity.Character.PCItemStorage
 The PC item storage object, which actually contains all the items More...
 
+ + + + + +

+Namespaces

namespace  PokemonUnity
 
namespace  PokemonUnity.Character
 
+ diff --git a/PokemonUnity.Web.Public/Api/_items_8cs.cshtml b/PokemonUnity.Web.Public/Api/_items_8cs.cshtml index 4eff7cb1b..b75badf38 100644 --- a/PokemonUnity.Web.Public/Api/_items_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_items_8cs.cshtml @@ -46,3 +46,4 @@ Enumerations enum  PokemonUnity.Inventory.Plants.FirmnessLevel   + diff --git a/PokemonUnity.Web.Public/Api/_kernal_8cs.cshtml b/PokemonUnity.Web.Public/Api/_kernal_8cs.cshtml index e1bafdeee..8907c846f 100644 --- a/PokemonUnity.Web.Public/Api/_kernal_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_kernal_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_linear_cong_random_8cs.cshtml b/PokemonUnity.Web.Public/Api/_linear_cong_random_8cs.cshtml index ddca356aa..7c8d009b0 100644 --- a/PokemonUnity.Web.Public/Api/_linear_cong_random_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_linear_cong_random_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Utility   + diff --git a/PokemonUnity.Web.Public/Api/_machine_8cs.cshtml b/PokemonUnity.Web.Public/Api/_machine_8cs.cshtml index 4982e5f42..559d966d3 100644 --- a/PokemonUnity.Web.Public/Api/_machine_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_machine_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Inventory   + diff --git a/PokemonUnity.Web.Public/Api/_mail_8cs.cshtml b/PokemonUnity.Web.Public/Api/_mail_8cs.cshtml index 9d9e6f221..e31c4a96e 100644 --- a/PokemonUnity.Web.Public/Api/_mail_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_mail_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Inventory   + diff --git a/PokemonUnity.Web.Public/Api/_math_helper_8cs.cshtml b/PokemonUnity.Web.Public/Api/_math_helper_8cs.cshtml index e63fe151a..4231d7641 100644 --- a/PokemonUnity.Web.Public/Api/_math_helper_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_math_helper_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Utility   + diff --git a/PokemonUnity.Web.Public/Api/_meta_8cs.cshtml b/PokemonUnity.Web.Public/Api/_meta_8cs.cshtml index 6aafa26d9..6cf1a1caa 100644 --- a/PokemonUnity.Web.Public/Api/_meta_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_meta_8cs.cshtml @@ -37,3 +37,4 @@ Enumerations enum  PokemonUnity.Attack.Data.Targets   + diff --git a/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_data_2_base_8cs.cshtml b/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_data_2_base_8cs.cshtml index 6e7b122cd..319ed699b 100644 --- a/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_data_2_base_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_data_2_base_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Monster.Data   + diff --git a/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_pokemon_8_shadow_8cs.cshtml b/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_pokemon_8_shadow_8cs.cshtml index 47c5ecc79..444798ee1 100644 --- a/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_pokemon_8_shadow_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_pokemon_8_shadow_8cs.cshtml @@ -34,3 +34,4 @@ Namespaces namespace  PokemonUnity.Monster   + diff --git a/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_pokemon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_pokemon_8cs.cshtml index 23b231aa7..13a7a9f79 100644 --- a/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_pokemon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_monster_2_pokemon_2_pokemon_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Monster   + diff --git a/PokemonUnity.Web.Public/Api/_move_effect_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_move_effect_data_8cs.cshtml index 70a459294..67e9cdb8c 100644 --- a/PokemonUnity.Web.Public/Api/_move_effect_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_move_effect_data_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_move_extension_8cs.cshtml b/PokemonUnity.Web.Public/Api/_move_extension_8cs.cshtml index bb338160b..bdeae90d2 100644 --- a/PokemonUnity.Web.Public/Api/_move_extension_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_move_extension_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_move_routes_8cs.cshtml b/PokemonUnity.Web.Public/Api/_move_routes_8cs.cshtml index 25672ade1..46a60001c 100644 --- a/PokemonUnity.Web.Public/Api/_move_routes_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_move_routes_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_move_tree_8cs.cshtml b/PokemonUnity.Web.Public/Api/_move_tree_8cs.cshtml index 9c888091e..ee9e6e351 100644 --- a/PokemonUnity.Web.Public/Api/_move_tree_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_move_tree_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Monster.Data   + diff --git a/PokemonUnity.Web.Public/Api/_moves_8cs.cshtml b/PokemonUnity.Web.Public/Api/_moves_8cs.cshtml index 6ca2727a5..889802f9a 100644 --- a/PokemonUnity.Web.Public/Api/_moves_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_moves_8cs.cshtml @@ -34,3 +34,4 @@ Enumerations enum  PokemonUnity.Attack.MoveMetaAilments   + diff --git a/PokemonUnity.Web.Public/Api/_moveset_8cs.cshtml b/PokemonUnity.Web.Public/Api/_moveset_8cs.cshtml index 7279fa5cb..17138e705 100644 --- a/PokemonUnity.Web.Public/Api/_moveset_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_moveset_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Monster.Data   + diff --git a/PokemonUnity.Web.Public/Api/_nature_8cs.cshtml b/PokemonUnity.Web.Public/Api/_nature_8cs.cshtml index 97418b067..67bf05c48 100644 --- a/PokemonUnity.Web.Public/Api/_nature_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_nature_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Monster   + diff --git a/PokemonUnity.Web.Public/Api/_network_manager_8cs.cshtml b/PokemonUnity.Web.Public/Api/_network_manager_8cs.cshtml index afff691de..ab9738e98 100644 --- a/PokemonUnity.Web.Public/Api/_network_manager_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_network_manager_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Networking   + diff --git a/PokemonUnity.Web.Public/Api/_o_authenticate_packet_8cs.cshtml b/PokemonUnity.Web.Public/Api/_o_authenticate_packet_8cs.cshtml index 2f825cec0..eec0c2080 100644 --- a/PokemonUnity.Web.Public/Api/_o_authenticate_packet_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_o_authenticate_packet_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonUnity.Networking.Packets.Outgoing   + diff --git a/PokemonUnity.Web.Public/Api/_o_trading_packet_8cs.cshtml b/PokemonUnity.Web.Public/Api/_o_trading_packet_8cs.cshtml index 357a5845c..249a9585f 100644 --- a/PokemonUnity.Web.Public/Api/_o_trading_packet_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_o_trading_packet_8cs.cshtml @@ -39,3 +39,4 @@ Enumerations enum  PokemonUnity.Networking.Packets.Outgoing.TradeCommand   + diff --git a/PokemonUnity.Web.Public/Api/_options_8cs.cshtml b/PokemonUnity.Web.Public/Api/_options_8cs.cshtml index 96e876af7..d81f7b400 100644 --- a/PokemonUnity.Web.Public/Api/_options_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_options_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_org_battle_8cs.cshtml b/PokemonUnity.Web.Public/Api/_org_battle_8cs.cshtml new file mode 100644 index 000000000..9ecc1b6bd --- /dev/null +++ b/PokemonUnity.Web.Public/Api/_org_battle_8cs.cshtml @@ -0,0 +1,44 @@ +@{ + Page.Title = "PokemonUnity.Application/Combat/Match/Regulated/OrgBattle.cs File Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
OrgBattle.cs File Reference
+} + + + + + + + + + + + + + + + + + + + +

+Classes

class  PokemonUnity.PBPokemon
 
class  PokemonUnity.Game_Map
 
class  PokemonUnity.Game_Player
 
class  PokemonUnity.BattleChallengeType
 
class  PokemonUnity.BattleChallengeData
 
class  PokemonUnity.BattleChallenge
 
class  PokemonUnity.Game_Event
 
class  PokemonUnity.BattleFactoryData
 
+ + + +

+Namespaces

namespace  PokemonUnity
 
+ diff --git a/PokemonUnity.Web.Public/Api/_org_battle_generator_8cs.cshtml b/PokemonUnity.Web.Public/Api/_org_battle_generator_8cs.cshtml new file mode 100644 index 000000000..e07025c6f --- /dev/null +++ b/PokemonUnity.Web.Public/Api/_org_battle_generator_8cs.cshtml @@ -0,0 +1,44 @@ +@{ + Page.Title = "PokemonUnity.Application/Combat/Match/Regulated/OrgBattleGenerator.cs File Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
OrgBattleGenerator.cs File Reference
+} + + + + + + + + + + + + + + + + + + + +

+Classes

class  PokemonUnity.BaseStatRestriction
 
class  PokemonUnity.NonlegendaryRestriction
 
class  PokemonUnity.InverseRestriction
 
class  PokemonUnity.SingleMatch
 
class  PokemonUnity.MatchHistory
 
class  PokemonUnity.PlayerRatingElo
 
class  PokemonUnity.PlayerRating
 
class  PokemonUnity.RuledTeam
 
+ + + +

+Namespaces

namespace  PokemonUnity
 
+ diff --git a/PokemonUnity.Web.Public/Api/_org_battle_rules_8cs.cshtml b/PokemonUnity.Web.Public/Api/_org_battle_rules_8cs.cshtml index f29576e18..2ade1dcdf 100644 --- a/PokemonUnity.Web.Public/Api/_org_battle_rules_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_org_battle_rules_8cs.cshtml @@ -151,3 +151,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_outfit_8cs.cshtml b/PokemonUnity.Web.Public/Api/_outfit_8cs.cshtml index 3bf2debd0..1fee35a70 100644 --- a/PokemonUnity.Web.Public/Api/_outfit_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_outfit_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_outgoing_packet_8cs.cshtml b/PokemonUnity.Web.Public/Api/_outgoing_packet_8cs.cshtml index 41b030a0d..b8b1f7c4b 100644 --- a/PokemonUnity.Web.Public/Api/_outgoing_packet_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_outgoing_packet_8cs.cshtml @@ -39,3 +39,4 @@ Enumerations enum  PokemonUnity.Networking.Packets.OutgoingPacketType   + diff --git a/PokemonUnity.Web.Public/Api/_overworld_8cs.cshtml b/PokemonUnity.Web.Public/Api/_overworld_8cs.cshtml index 6bb4f615b..08c0942f0 100644 --- a/PokemonUnity.Web.Public/Api/_overworld_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_overworld_8cs.cshtml @@ -56,3 +56,4 @@ Enumerations enum  PokemonUnity.Locations   + diff --git a/PokemonUnity.Web.Public/Api/_p_c_8cs.cshtml b/PokemonUnity.Web.Public/Api/_p_c_8cs.cshtml index 0961a59e8..191d4288c 100644 --- a/PokemonUnity.Web.Public/Api/_p_c_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_p_c_8cs.cshtml @@ -19,10 +19,7 @@ - - - - +

Classes

class  PokemonUnity.Character.PCItemStorage
 The PC item storage object, which actually contains all the items More...
 
class  PokemonUnity.Character.PC_Refactor
class  PokemonUnity.Character.PC
 

@@ -32,3 +29,4 @@ Namespaces

namespace  PokemonUnity.Character
 
+ diff --git a/PokemonUnity.Web.Public/Api/_party_8cs.cshtml b/PokemonUnity.Web.Public/Api/_party_8cs.cshtml index fe28e8dcc..4a1be2ccf 100644 --- a/PokemonUnity.Web.Public/Api/_party_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_party_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_phone_8cs.cshtml b/PokemonUnity.Web.Public/Api/_phone_8cs.cshtml index df73fa356..0732aeb5f 100644 --- a/PokemonUnity.Web.Public/Api/_phone_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_phone_8cs.cshtml @@ -46,3 +46,4 @@ Enumerations enum  PokemonUnity.Character.PhoneBattleStatuses : int   + diff --git a/PokemonUnity.Web.Public/Api/_poke_battle_2_i_battle_8cs.cshtml b/PokemonUnity.Web.Public/Api/_poke_battle_2_i_battle_8cs.cshtml index f50c9ce81..68d0b56ea 100644 --- a/PokemonUnity.Web.Public/Api/_poke_battle_2_i_battle_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_poke_battle_2_i_battle_8cs.cshtml @@ -34,3 +34,4 @@ Namespaces namespace  PokemonEssentials.Interface.PokeBattle   + diff --git a/PokemonUnity.Web.Public/Api/_poke_radar_8cs.cshtml b/PokemonUnity.Web.Public/Api/_poke_radar_8cs.cshtml index 4bec2fabb..bccb8f929 100644 --- a/PokemonUnity.Web.Public/Api/_poke_radar_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_poke_radar_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_pokedex_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokedex_8cs.cshtml index f7c4ae5cc..4a37166fc 100644 --- a/PokemonUnity.Web.Public/Api/_pokedex_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokedex_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_8_effect_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_8_effect_8cs.cshtml index 078023d90..95321d946 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_8_effect_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_8_effect_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_8_form_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_8_form_8cs.cshtml index 00681335c..7a1a57a89 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_8_form_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_8_form_8cs.cshtml @@ -33,3 +33,4 @@ Namespaces namespace  PokemonUnity.Monster   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_8_mega_evolution_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_8_mega_evolution_8cs.cshtml index 9cf7953c3..bd76f87e8 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_8_mega_evolution_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_8_mega_evolution_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Monster   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_storage_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_storage_8cs.cshtml index ec078b348..85895d77b 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_storage_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_storage_8cs.cshtml @@ -44,3 +44,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_temp_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_temp_8cs.cshtml index c5812e55b..4f6a6de7b 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_temp_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_temp_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_extensions_2_pokemon_extension_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_extensions_2_pokemon_extension_8cs.cshtml index 8623306c9..ace70fe0a 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_extensions_2_pokemon_extension_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_extensions_2_pokemon_extension_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_game_state_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_game_state_8cs.cshtml index 1482bd4ae..bd6b123f1 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_game_state_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_game_state_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Saving   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_localization_2_xml_string_res_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_localization_2_xml_string_res_8cs.cshtml index 843f67a3b..5f0d69c8a 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_localization_2_xml_string_res_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_localization_2_xml_string_res_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Localization   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_overworld_2_map_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_overworld_2_map_8cs.cshtml index f943b846e..e0bd4b762 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_overworld_2_map_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_overworld_2_map_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_properties_2_assembly_info_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_properties_2_assembly_info_8cs.cshtml deleted file mode 100644 index c6bf70378..000000000 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_application_2_properties_2_assembly_info_8cs.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Application/Properties/AssemblyInfo.cs File Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { -
AssemblyInfo.cs File Reference
-} - diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_extensions_2_pokemon_extension_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_extensions_2_pokemon_extension_8cs.cshtml index 5ddb2e885..47e1aa356 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_extensions_2_pokemon_extension_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_extensions_2_pokemon_extension_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_localization_2_xml_string_res_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_localization_2_xml_string_res_8cs.cshtml index b2f8a804d..fcaa94b72 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_localization_2_xml_string_res_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_localization_2_xml_string_res_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Localization   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_overworld_2_map_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_overworld_2_map_8cs.cshtml index 1c71ec0ff..95e060f40 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_overworld_2_map_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_overworld_2_map_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_properties_2_assembly_info_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_properties_2_assembly_info_8cs.cshtml deleted file mode 100644 index 12753050d..000000000 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_properties_2_assembly_info_8cs.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Shared/Properties/AssemblyInfo.cs File Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { -
AssemblyInfo.cs File Reference
-} - diff --git a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_saving_2_data_2_game_state_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_saving_2_data_2_game_state_8cs.cshtml index 44071f172..0d31d08d8 100644 --- a/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_saving_2_data_2_game_state_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemon_unity_8_shared_2_saving_2_data_2_game_state_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Saving   + diff --git a/PokemonUnity.Web.Public/Api/_pokemons_8cs.cshtml b/PokemonUnity.Web.Public/Api/_pokemons_8cs.cshtml index fd0b451b4..f5955b093 100644 --- a/PokemonUnity.Web.Public/Api/_pokemons_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_pokemons_8cs.cshtml @@ -53,3 +53,4 @@ Enumerations enum  PokemonUnity.Monster.PokemonActions   + diff --git a/PokemonUnity.Web.Public/Api/_recorder_8cs.cshtml b/PokemonUnity.Web.Public/Api/_recorder_8cs.cshtml index 612ba990f..5e7ecb0e5 100644 --- a/PokemonUnity.Web.Public/Api/_recorder_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_recorder_8cs.cshtml @@ -19,25 +19,13 @@ - + - + - - - - - - - - - - - -

Classes

class  PokemonUnity.Combat.PokeBattle_RecordedBattleModule< out IBattle >
class  PokemonUnity.Combat.PokeBattle_RecordedBattleModule< TBattle >
 
class  PokemonUnity.Combat.BattlePlayerHelper
 
class  PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
class  PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >
 Playback? More...
 
class  PokemonUnity.Combat.PokeBattle_RecordedBattle
 
class  PokemonUnity.Combat.PokeBattle_RecordedBattlePalace
 
class  PokemonUnity.Combat.PokeBattle_RecordedBattleArena
 
class  PokemonUnity.Combat.PokeBattle_BattlePlayer
 
class  PokemonUnity.Combat.PokeBattle_BattlePalacePlayer
 
class  PokemonUnity.Combat.PokeBattle_BattleArenaPlayer
 
@@ -46,3 +34,4 @@ Namespaces

Namespaces

namespace  PokemonUnity.Combat
 
+ diff --git a/PokemonUnity.Web.Public/Api/_release_2_8_n_e_t_framework_00_version_0av4_87_82_8_assembly_attributes_8cs.cshtml b/PokemonUnity.Web.Public/Api/_release_2_8_n_e_t_framework_00_version_0av4_87_82_8_assembly_attributes_8cs.cshtml deleted file mode 100644 index fc2474fc3..000000000 --- a/PokemonUnity.Web.Public/Api/_release_2_8_n_e_t_framework_00_version_0av4_87_82_8_assembly_attributes_8cs.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Application/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs File Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { -
.NETFramework,Version=v4.7.2.AssemblyAttributes.cs File Reference
-} - diff --git a/PokemonUnity.Web.Public/Api/_rules_8cs.cshtml b/PokemonUnity.Web.Public/Api/_rules_8cs.cshtml index ca8be138f..c91917675 100644 --- a/PokemonUnity.Web.Public/Api/_rules_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_rules_8cs.cshtml @@ -59,3 +59,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_safari_8cs.cshtml b/PokemonUnity.Web.Public/Api/_safari_8cs.cshtml index 079c16369..9cd458d16 100644 --- a/PokemonUnity.Web.Public/Api/_safari_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_safari_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_safari_zone_8cs.cshtml b/PokemonUnity.Web.Public/Api/_safari_zone_8cs.cshtml index 5e1d6971f..b04d620dd 100644 --- a/PokemonUnity.Web.Public/Api/_safari_zone_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_safari_zone_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_save_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_save_data_8cs.cshtml index c8e39d2bc..be2e348f1 100644 --- a/PokemonUnity.Web.Public/Api/_save_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_save_data_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Saving   + diff --git a/PokemonUnity.Web.Public/Api/_save_data_converter_8cs.cshtml b/PokemonUnity.Web.Public/Api/_save_data_converter_8cs.cshtml index 4b04bfb83..8d3514917 100644 --- a/PokemonUnity.Web.Public/Api/_save_data_converter_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_save_data_converter_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Saving   + diff --git a/PokemonUnity.Web.Public/Api/_save_event_8cs.cshtml b/PokemonUnity.Web.Public/Api/_save_event_8cs.cshtml index 0b95f515a..2f06a37a0 100644 --- a/PokemonUnity.Web.Public/Api/_save_event_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_save_event_8cs.cshtml @@ -29,3 +29,4 @@ Enumerations enum  PokemonUnity.Saving.SaveEventType   + diff --git a/PokemonUnity.Web.Public/Api/_save_manager_8cs.cshtml b/PokemonUnity.Web.Public/Api/_save_manager_8cs.cshtml index 60963e41a..753c32a7f 100644 --- a/PokemonUnity.Web.Public/Api/_save_manager_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_save_manager_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Saving   + diff --git a/PokemonUnity.Web.Public/Api/_scene_8cs.cshtml b/PokemonUnity.Web.Public/Api/_scene_8cs.cshtml index e6250b988..1846e7a79 100644 --- a/PokemonUnity.Web.Public/Api/_scene_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_scene_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.UX   + diff --git a/PokemonUnity.Web.Public/Api/_screen_2_i_battle_8cs.cshtml b/PokemonUnity.Web.Public/Api/_screen_2_i_battle_8cs.cshtml index 76d92ec72..4a7f62ad5 100644 --- a/PokemonUnity.Web.Public/Api/_screen_2_i_battle_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_screen_2_i_battle_8cs.cshtml @@ -72,3 +72,4 @@ Namespaces namespace  PokemonEssentials.Interface.Screen   + diff --git a/PokemonUnity.Web.Public/Api/_screen_8cs.cshtml b/PokemonUnity.Web.Public/Api/_screen_8cs.cshtml index 1f1eadb5f..7e3743fa2 100644 --- a/PokemonUnity.Web.Public/Api/_screen_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_screen_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.UX   + diff --git a/PokemonUnity.Web.Public/Api/_script_conversion_8cs.cshtml b/PokemonUnity.Web.Public/Api/_script_conversion_8cs.cshtml index e6c4f82ec..33f9eafeb 100644 --- a/PokemonUnity.Web.Public/Api/_script_conversion_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_script_conversion_8cs.cshtml @@ -28,3 +28,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_seri_array_8cs.cshtml b/PokemonUnity.Web.Public/Api/_seri_array_8cs.cshtml index 92c8005d2..891c6108d 100644 --- a/PokemonUnity.Web.Public/Api/_seri_array_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_seri_array_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Saving.SerializableClasses   + diff --git a/PokemonUnity.Web.Public/Api/_seri_mail_8cs.cshtml b/PokemonUnity.Web.Public/Api/_seri_mail_8cs.cshtml index 589bcbd5a..03ccb57a3 100644 --- a/PokemonUnity.Web.Public/Api/_seri_mail_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_seri_mail_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Saving.SerializableClasses   + diff --git a/PokemonUnity.Web.Public/Api/_seri_move_8cs.cshtml b/PokemonUnity.Web.Public/Api/_seri_move_8cs.cshtml index f7f4ea723..a4242e6cd 100644 --- a/PokemonUnity.Web.Public/Api/_seri_move_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_seri_move_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Saving.SerializableClasses   + diff --git a/PokemonUnity.Web.Public/Api/_seri_p_c_8cs.cshtml b/PokemonUnity.Web.Public/Api/_seri_p_c_8cs.cshtml index 328cff244..d6dfe6ad7 100644 --- a/PokemonUnity.Web.Public/Api/_seri_p_c_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_seri_p_c_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Saving.SerializableClasses   + diff --git a/PokemonUnity.Web.Public/Api/_seri_pokemon_8cs.cshtml b/PokemonUnity.Web.Public/Api/_seri_pokemon_8cs.cshtml index c06fb7eb1..e5036915e 100644 --- a/PokemonUnity.Web.Public/Api/_seri_pokemon_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_seri_pokemon_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Saving.SerializableClasses   + diff --git a/PokemonUnity.Web.Public/Api/_seri_v2_8cs.cshtml b/PokemonUnity.Web.Public/Api/_seri_v2_8cs.cshtml index 0a9b8bf7c..9f745388c 100644 --- a/PokemonUnity.Web.Public/Api/_seri_v2_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_seri_v2_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Utility   + diff --git a/PokemonUnity.Web.Public/Api/_seri_v3_8cs.cshtml b/PokemonUnity.Web.Public/Api/_seri_v3_8cs.cshtml index 79c0fceed..a5b85568c 100644 --- a/PokemonUnity.Web.Public/Api/_seri_v3_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_seri_v3_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Utility   + diff --git a/PokemonUnity.Web.Public/Api/_seri_v4_8cs.cshtml b/PokemonUnity.Web.Public/Api/_seri_v4_8cs.cshtml index f3c14bc3e..0341d00c7 100644 --- a/PokemonUnity.Web.Public/Api/_seri_v4_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_seri_v4_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Utility   + diff --git a/PokemonUnity.Web.Public/Api/_side_8cs.cshtml b/PokemonUnity.Web.Public/Api/_side_8cs.cshtml index e6e119e15..f12e7cc13 100644 --- a/PokemonUnity.Web.Public/Api/_side_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_side_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Combat   + diff --git a/PokemonUnity.Web.Public/Api/_string_helper_8cs.cshtml b/PokemonUnity.Web.Public/Api/_string_helper_8cs.cshtml index bfd3b8e7f..6fec7c9a4 100644 --- a/PokemonUnity.Web.Public/Api/_string_helper_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_string_helper_8cs.cshtml @@ -21,3 +21,4 @@ Classes class  StringHelper   + diff --git a/PokemonUnity.Web.Public/Api/_success_state_8cs.cshtml b/PokemonUnity.Web.Public/Api/_success_state_8cs.cshtml index 6afae759b..33fd55c2a 100644 --- a/PokemonUnity.Web.Public/Api/_success_state_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_success_state_8cs.cshtml @@ -32,3 +32,4 @@ Namespaces namespace  PokemonUnity.Combat.Data   + diff --git a/PokemonUnity.Web.Public/Api/_terrain_8cs.cshtml b/PokemonUnity.Web.Public/Api/_terrain_8cs.cshtml index 3f4681e35..f54e83663 100644 --- a/PokemonUnity.Web.Public/Api/_terrain_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_terrain_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Overworld   + diff --git a/PokemonUnity.Web.Public/Api/_tile_position_8cs.cshtml b/PokemonUnity.Web.Public/Api/_tile_position_8cs.cshtml index 940f292e9..b8a6e3802 100644 --- a/PokemonUnity.Web.Public/Api/_tile_position_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_tile_position_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_trade_manager_8cs.cshtml b/PokemonUnity.Web.Public/Api/_trade_manager_8cs.cshtml index 6d95fe09f..4b56e5710 100644 --- a/PokemonUnity.Web.Public/Api/_trade_manager_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_trade_manager_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Networking   + diff --git a/PokemonUnity.Web.Public/Api/_trainer_8cs.cshtml b/PokemonUnity.Web.Public/Api/_trainer_8cs.cshtml index 7fe39e79e..94e4a315c 100644 --- a/PokemonUnity.Web.Public/Api/_trainer_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_trainer_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_trainer_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_trainer_data_8cs.cshtml index 6cfc730a2..79e243e9e 100644 --- a/PokemonUnity.Web.Public/Api/_trainer_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_trainer_data_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_trainer_extension_8cs.cshtml b/PokemonUnity.Web.Public/Api/_trainer_extension_8cs.cshtml index fcfb59615..e5d6bb0b7 100644 --- a/PokemonUnity.Web.Public/Api/_trainer_extension_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_trainer_extension_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_trainer_meta_data_8cs.cshtml b/PokemonUnity.Web.Public/Api/_trainer_meta_data_8cs.cshtml index 16be9dab7..9108060b5 100644 --- a/PokemonUnity.Web.Public/Api/_trainer_meta_data_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_trainer_meta_data_8cs.cshtml @@ -29,3 +29,4 @@ Namespaces namespace  PokemonUnity.Character   + diff --git a/PokemonUnity.Web.Public/Api/_translations_8cs.cshtml b/PokemonUnity.Web.Public/Api/_translations_8cs.cshtml deleted file mode 100644 index 6846afead..000000000 --- a/PokemonUnity.Web.Public/Api/_translations_8cs.cshtml +++ /dev/null @@ -1,40 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Application/Translations/Translations.cs File Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { - -
Translations.cs File Reference
-} - - - - - - - -

-Classes

class  PokemonUnity.GameText
 
class  PokemonUnity.LanguageExtension
 
- - - - - -

-Namespaces

namespace  PokemonUnity
 
namespace  PokemonUnity.Localization
 
- - - - -

-Enumerations

enum  PokemonUnity.Localization.Text
 Different category sections a piece of translated text could belong to More...
 
diff --git a/PokemonUnity.Web.Public/Api/_translator_8cs.cshtml b/PokemonUnity.Web.Public/Api/_translator_8cs.cshtml deleted file mode 100644 index 398fd0ec7..000000000 --- a/PokemonUnity.Web.Public/Api/_translator_8cs.cshtml +++ /dev/null @@ -1,60 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Application/Translations/Translator.cs File Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { - -
Translator.cs File Reference
-} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-Classes

class  PokemonUnity.Translator
 
class  PokemonUnity.Translator.Language
 Language class stores the user's current/active language More...
 
class  PokemonUnity.Translator.Language.LocalizedString
 Represents a localized string. More...
 
class  PokemonUnity.Translator.Language.LocalizationDictionary
 Represents a simple implementation of XmlLocalizationDictionary interface. More...
 
class  PokemonUnity.Translator.Language.XmlLocalizationDictionary
 This class is used to build a localization dictionary from XML. More...
 
class  PokemonUnity.XmlNodeExtensions
 Extension methods for XmlNode class.
 
class  PokemonUnity.EnumerableExtensions
 Extension methods for IEnumerable<T>.
 
class  PokemonUnity.StringExtensions
 Extension methods for String class.
 
class  PokemonUnity.XmlFileLocalizationDictionaryProvider
 Provides localization dictionaries from XML files in a directory. More...
 
class  PokemonUnity.LocalizationDictionaryProviderBase
 
interface  PokemonUnity.ILocalizationDictionaryProvider
 Used to get localization dictionaries (Translator.Language.XmlLocalizationDictionary) for a IDictionaryBasedLocalizationSource. More...
 
interface  PokemonUnity.ILanguage< T >
 
- - - -

-Namespaces

namespace  PokemonUnity
 
diff --git a/PokemonUnity.Web.Public/Api/_turn_results_8cs.cshtml b/PokemonUnity.Web.Public/Api/_turn_results_8cs.cshtml index 37f1ac94b..cc862b270 100644 --- a/PokemonUnity.Web.Public/Api/_turn_results_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_turn_results_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Combat.Data   + diff --git a/PokemonUnity.Web.Public/Api/_type_8cs.cshtml b/PokemonUnity.Web.Public/Api/_type_8cs.cshtml index 7affdeb3d..8669994d2 100644 --- a/PokemonUnity.Web.Public/Api/_type_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_type_8cs.cshtml @@ -31,3 +31,4 @@ Namespaces namespace  PokemonUnity.Monster.Data   + diff --git a/PokemonUnity.Web.Public/Api/_type_extension_8cs.cshtml b/PokemonUnity.Web.Public/Api/_type_extension_8cs.cshtml index 23f66a522..6c67d3e55 100644 --- a/PokemonUnity.Web.Public/Api/_type_extension_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_type_extension_8cs.cshtml @@ -27,3 +27,4 @@ Namespaces namespace  PokemonUnity   + diff --git a/PokemonUnity.Web.Public/Api/_u_i_8cs.cshtml b/PokemonUnity.Web.Public/Api/_u_i_8cs.cshtml index df20ed5a7..46f6faafe 100644 --- a/PokemonUnity.Web.Public/Api/_u_i_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_u_i_8cs.cshtml @@ -31,3 +31,4 @@ Enumerations enum  PokemonUnity.UX.InputKeys : int   + diff --git a/PokemonUnity.Web.Public/Api/_wild_items_8cs.cshtml b/PokemonUnity.Web.Public/Api/_wild_items_8cs.cshtml index d1222d646..f6c42ce7a 100644 --- a/PokemonUnity.Web.Public/Api/_wild_items_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_wild_items_8cs.cshtml @@ -20,7 +20,7 @@

Classes

struct  PokemonUnity.Monster.Data.PokemonWildItems - The items that Pokémon when encountered in the wild have a chance of carring. More...
+ The items that Pokémon when encountered in the wild have a chance of carrying. More...
 

@@ -32,3 +32,4 @@ Namespaces

namespace  PokemonUnity.Monster.Data
 
+ diff --git a/PokemonUnity.Web.Public/Api/_xml_node_extensions_8cs.cshtml b/PokemonUnity.Web.Public/Api/_xml_node_extensions_8cs.cshtml index e0f30d0f6..096bdc89b 100644 --- a/PokemonUnity.Web.Public/Api/_xml_node_extensions_8cs.cshtml +++ b/PokemonUnity.Web.Public/Api/_xml_node_extensions_8cs.cshtml @@ -30,3 +30,4 @@ Namespaces namespace  PokemonUnity.Utility   + diff --git a/PokemonUnity.Web.Public/Api/annotated.cshtml b/PokemonUnity.Web.Public/Api/annotated.cshtml index 85c10188a..01bf70d6a 100644 --- a/PokemonUnity.Web.Public/Api/annotated.cshtml +++ b/PokemonUnity.Web.Public/Api/annotated.cshtml @@ -48,8 +48,7 @@  CIGameOrgBattleGenerator  CIGameOrgBattleRulesExtension of

See also
IGame
- CIGameSafariExtension of

See also
IGame
- + CIGamePlayerOrgBattle  CIHeightRestriction  CIInverseRestriction  CIItemClause @@ -81,28 +80,27 @@  CIRestrictedSpeciesSubsetRestriction  CIRestrictedSpeciesTeamRestriction  CIRuledTeam - CISafariState - CISameSpeciesClause - CISelfdestructClause - CISelfKOClause - CISingleBattle - CISingleMatch - CISinglePlayerCappedLevelAdjustment - CISkillSwapClause - CISleepClause - CISonicBoomClause - CISoulDewBattleClause - CISoulDewClause - CISpeciesClause - CISpeciesRestriction - CIStandardCup - CIStandardRestriction - CIStandardRules - CITimerDisplay - CITotalLevelAdjustment - CITotalLevelRestriction - CIUnevolvedFormRestriction - CIWeightRestriction + CISameSpeciesClause + CISelfdestructClause + CISelfKOClause + CISingleBattle + CISingleMatch + CISinglePlayerCappedLevelAdjustment + CISkillSwapClause + CISleepClause + CISonicBoomClause + CISoulDewBattleClause + CISoulDewClause + CISpeciesClause + CISpeciesRestriction + CIStandardCup + CIStandardRestriction + CIStandardRules + CITimerDisplay + CITotalLevelAdjustment + CITotalLevelRestriction + CIUnevolvedFormRestriction + CIWeightRestriction  NEventArg  CIBattleUseOnBattlerEventArgs  CIBattleUseOnPokemonEventArgs @@ -115,21 +113,22 @@  CIOnEndBattleEventArgsParameters: int decision e[0] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) e[1] - If allowed to be defeated, or is stuck in a battle loop until Win  CIOnFailCatchEventArgs  CIOnLeaveTileEventArgsParameters: e[0] - Event that just left the tile. e[1] - Map ID where the tile is located (not necessarily the current map). Use "Game.GameData.MapFactory.getMap(e[1])" to get the Game_Map object corresponding to that map. e[2] - X-coordinate of the tile e[3] - Y-coordinate of the tile - CIOnMapChangeEventArgs - CIOnMapChangingEventArgs - CIOnMapCreateEventArgs - CIOnMapSceneChangeEventArgsParameters: e[0] = Scene_Map object. e[1] = Whether the player just moved to a new map (either true or false). If false, some other code had called Game.GameData.Scene.createSpritesets to regenerate the map scene without transferring the player elsewhere - CIOnSpritesetCreateEventArgsParameters: e[0] = Spriteset being created e[1] = Viewport used for tilemap and characters e[0].map = Map associated with the spriteset (not necessarily the current map). - CIOnStepTakenFieldMovementEventArgsParameters: e[0] - Event that just entered a tile. - CIOnStepTakenTransferPossibleEventArgsParameters: e[0] = Array that contains a single boolean value. If an event handler moves the player to a new map, it should set this value to true. Other event handlers should check this parameter's value. - CIOnTrainerPartyLoadEventArgsParameters: e[0] - Trainer e[1] - Items possessed by the trainer e[2] - Party - CIOnWildBattleEndEventArgsParameters: e[0] - Pokémon species e[1] - Pokémon level e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) - CIOnWildBattleOverrideEventArgsParameters: e[0] - Pokémon species e[1] - Pokémon level e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) - CIOnWildPokemonCreateEventArgsParameters: e[0] - Pokémon being created - CIUseFromBagEventArgs - CIUseInBattleEventArgs - CIUseInFieldEventArgs - CIUseOnPokemonEventArgs + CIOnLoadLevelEventArgs + CIOnMapChangeEventArgs + CIOnMapChangingEventArgs + CIOnMapCreateEventArgs + CIOnMapSceneChangeEventArgsParameters: e[0] = Scene_Map object. e[1] = Whether the player just moved to a new map (either true or false). If false, some other code had called Game.GameData.Scene.createSpritesets to regenerate the map scene without transferring the player elsewhere + CIOnSpritesetCreateEventArgsParameters: e[0] = Spriteset being created e[1] = Viewport used for tilemap and characters e[0].map = Map associated with the spriteset (not necessarily the current map). + CIOnStepTakenFieldMovementEventArgsParameters: e[0] - Event that just entered a tile. + CIOnStepTakenTransferPossibleEventArgsParameters: e[0] = Array that contains a single boolean value. If an event handler moves the player to a new map, it should set this value to true. Other event handlers should check this parameter's value. + CIOnTrainerPartyLoadEventArgsParameters: e[0] - Trainer e[1] - Items possessed by the trainer e[2] - Party + CIOnWildBattleEndEventArgsParameters: e[0] - Pokémon species e[1] - Pokémon level e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) + CIOnWildBattleOverrideEventArgsParameters: e[0] - Pokémon species e[1] - Pokémon level e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) + CIOnWildPokemonCreateEventArgsParameters: e[0] - Pokémon being created + CIUseFromBagEventArgs + CIUseInBattleEventArgs + CIUseInFieldEventArgs + CIUseOnPokemonEventArgs  NField  CGlobalMetadata  CIAntiRandomThis class is designed to favor different values more than a uniform random generator does @@ -157,37 +156,41 @@  CIGameHiddenMoves  CIGameMapFactoryExtension of PokemonEssentials.Interface.IGameMap  CIGameMetadataMisc - CIGameTime - CIGlobalMetadataGlobal metadata not specific to a map. This class holds field state data that span multiple maps. - CIGlobalMetadataDependantEvents - CIGlobalMetadataRoamingExtension on IGlobalMetadata - CIHiddenMoveHandlers - CIInterpreterFieldMixinField - CIMapChunkUnit - CIMapConnection - CIMapData - CIMapFactory - CIMapFactoryHelperMap Factory (allows multiple maps to be loaded at once and connected) - CIMapMetadataThis class keeps track of erased and moved events so their position can remain after a game is saved and loaded. This class also includes variables that should remain valid only for the current map. - CIMaze - CIMazeNode - CINodeListElement - CIPointInterpolator - CIPokemonMetadata - CIRectInterpolator - CIRegionMapThe region map (also known as the Town Map) is the picture that shows the entire region. - CIRegionMapDataEach square of the IRegionMap can be given a variety of information. The information each square of a region map can have is a IRegionMapData node. - CIRegionMapMetadataThe size and shape of this map in IRegionMap squares. Maps with this metadata calculate the relative position of the player on that map, and show the player's head icon in the appropriate place depending on this position. - CITempMetadataTemporary data which is not saved and which is erased when a game restarts. - CITempMetadataBerryPlants - CITempMetadataDependantEventsExtension of ITempMetadata - CITempMetadataFieldExtension of Interface.Field.ITempMetadata - CITempMetadataRoamingExtension on ITempMetadata - CITilePosition - CMapMetadata - CMetadataPlayerInformation on the player characters in the game. - CMetadataPosition - CMetadataWeatherInformation on the map's weather chances in the game. + CIGameSafariExtension of

See also
IGame
+ + CIGameTime + CIGlobalMetadataGlobal metadata not specific to a map. This class holds field state data that span multiple maps. + CIGlobalMetadataDependantEvents + CIGlobalMetadataRoamingExtension on IGlobalMetadata + CIHiddenMoveHandlers + CIInterpreterFieldMixinField + CIMapChunkUnit + CIMapConnection + CIMapData + CIMapFactory + CIMapFactoryHelperMap Factory (allows multiple maps to be loaded at once and connected) + CIMapMetadataThis class keeps track of erased and moved events so their position can remain after a game is saved and loaded. This class also includes variables that should remain valid only for the current map. + CIMaze + CIMazeNode + CINodeListElement + CIPointInterpolator + CIPokemonMetadata + CIRectInterpolator + CIRegionMapThe region map (also known as the Town Map) is the picture that shows the entire region. + CIRegionMapDataEach square of the IRegionMap can be given a variety of information. The information each square of a region map can have is a IRegionMapData node. + CIRegionMapMetadataThe size and shape of this map in IRegionMap squares. Maps with this metadata calculate the relative position of the player on that map, and show the player's head icon in the appropriate place depending on this position. + CISafariState + CISceneMapField + CITempMetadataTemporary data which is not saved and which is erased when a game restarts. + CITempMetadataBerryPlants + CITempMetadataDependantEventsExtension of ITempMetadata + CITempMetadataFieldExtension of Interface.Field.ITempMetadata + CITempMetadataRoamingExtension on ITempMetadata + CITilePosition + CMapMetadata + CMetadataPlayerInformation on the player characters in the game. + CMetadataPosition + CMetadataWeatherInformation on the map's weather chances in the game.  NItem  CIBallHandlers  CIGameItemExtension of

See also
IGame
@@ -251,25 +254,23 @@  CIGamePokemonMultipleForms  CIGameShadowPokemonExtensions of

See also
IGame
- CIPokeBattleArena_Scene - CIPokemon - CIPokemonChatterExtensions of

See also
IPokemon
+ CIPokemon + CIPokemonChatterExtensions of

See also
IPokemon
- CIPokemonMegaEvolutionMega Evolutions and Primal Reversions are treated as form changes in Essentials. The code below is just more of what's in the Pokemon_MultipleForms script section, but specifically and only for the Mega Evolution and Primal Reversion forms. Extensions of

See also
IPokemon
+ CIPokemonMegaEvolutionMega Evolutions and Primal Reversions are treated as form changes in Essentials. The code below is just more of what's in the Pokemon_MultipleForms script section, but specifically and only for the Mega Evolution and Primal Reversion forms. Extensions of

See also
IPokemon
- CIPokemonMultipleFormsExtensions of

See also
IPokemon
+ CIPokemonMultipleFormsExtensions of

See also
IPokemon
- CIPokemonShadowPokemonExtensions of

See also
IPokemon
+ CIPokemonShadowPokemonExtensions of

See also
IPokemon
- CIRecordedBattle - CIRecordedBattleArena - CIRecordedBattleModuleRecording of a Pokemon Battle - CIRecordedBattlePalace - CISafariZone - CISuccessState - CITempMetadataPokemonShadowExtensions of

See also
ITempMetadata
+ CIRecordedBattle + CIRecordedBattleArena + CIRecordedBattleModuleRecording of a Pokemon Battle + CIRecordedBattlePalace + CISuccessState + CITempMetadataPokemonShadowExtensions of

See also
ITempMetadata
- CITrainer + CITrainer  NRPGMaker  NKernal  CICommonEvent @@ -322,7 +323,7 @@  CIHasDisplayMessage  CIInterpolator  CIInterpreterMart - CIIntroEventSceneFirst scene to load when game boots up. Displays logos and intro credits/sponsers + CIIntroEventSceneFirst scene to load when game boots up. Displays logos and intro credits/sponsors  CIIntroEventScreen  CIItemStorageScene  CILoadPanel @@ -342,37 +343,37 @@  CIPartyDisplayScreen  CIPCItemStorageThe PC item storage object, which actually contains all the items  CIPCMenuUser - CIPlayerFadeAnimationShows the player (and partner) and the player party lineup sliding off screen. Shows the player's/partner's throwing animation (if they have one). Doesn't show the ball thrown or the Pokémon. - CIPokeballPlayerSendOutAnimationShows the player's (or partner's) Pokémon being thrown out. It appears at (@@spritex,@@spritey), and moves in y to @@endspritey where it stays for the rest of the battle, i.e. the latter is the more important value. Doesn't show the ball itself being thrown. - CIPokeballSendOutAnimationShows the enemy trainer(s)'s Pokémon being thrown out. It appears at coords (@@spritex,@@spritey), and moves in y to @@endspritey where it stays for the rest of the battle, i.e. the latter is the more important value. Doesn't show the ball itself being thrown. - CIPokeBattle_DebugScene - CIPokeBattle_DebugSceneNoGraphics - CIPokeBattle_DebugSceneNoLogging - CIPokeBattle_Scene - CIPokeBattle_SceneNonInteractive - CIPokeBattleArena_Scene - CIPokegearButton - CIPokegearScene - CIPokemonBox - CIPokemonBoxArrow - CIPokemonBoxIcon - CIPokemonBoxPartySprite - CIPokemonBoxSprite - CIPokemonDataBoxData box for regular battles (both single and double) - CIPokemonEntrySceneText entry screen - free typing. - CIPokemonEntryScene2Text entry screen - arrows to select letter. - CIPokemonEntryScreen - CIPokemonEvolutionScene - CIPokemonFormSceneShows the "Form" page of the Pokédex entry screen. - CIPokemonFormScreen - CIPokemonMenuScene - CIPokemonMenuScreen - CIPokemonNestMapSceneShows the "Nest" page of the Pokédex entry screen. - CIPokemonNestMapScreen - CIPokemonPCList - CIPokemonPokedexScene - CIPokemonPokedexScreen - CIPokemonStorage + CIPCPokemonStorage + CIPlayerFadeAnimationShows the player (and partner) and the player party lineup sliding off screen. Shows the player's/partner's throwing animation (if they have one). Doesn't show the ball thrown or the Pokémon. + CIPokeballPlayerSendOutAnimationShows the player's (or partner's) Pokémon being thrown out. It appears at (@@spritex,@@spritey), and moves in y to @@endspritey where it stays for the rest of the battle, i.e. the latter is the more important value. Doesn't show the ball itself being thrown. + CIPokeballSendOutAnimationShows the enemy trainer(s)'s Pokémon being thrown out. It appears at coords (@@spritex,@@spritey), and moves in y to @@endspritey where it stays for the rest of the battle, i.e. the latter is the more important value. Doesn't show the ball itself being thrown. + CIPokeBattle_DebugScene + CIPokeBattle_DebugSceneNoGraphics + CIPokeBattle_DebugSceneNoLogging + CIPokeBattle_Scene + CIPokeBattle_SceneNonInteractive + CIPokeBattleArena_Scene + CIPokegearButton + CIPokegearScene + CIPokemonBox + CIPokemonBoxArrow + CIPokemonBoxIcon + CIPokemonBoxPartySprite + CIPokemonBoxSprite + CIPokemonDataBoxData box for regular battles (both single and double) + CIPokemonEntrySceneText entry screen - free typing. + CIPokemonEntryScene2Text entry screen - arrows to select letter. + CIPokemonEntryScreen + CIPokemonEvolutionScene + CIPokemonFormSceneShows the "Form" page of the Pokédex entry screen. + CIPokemonFormScreen + CIPokemonMenuScene + CIPokemonMenuScreen + CIPokemonNestMapSceneShows the "Nest" page of the Pokédex entry screen. + CIPokemonNestMapScreen + CIPokemonPCList + CIPokemonPokedexScene + CIPokemonPokedexScreen  CIPokemonStorageScene  CIPokemonStorageScreen  CIPokemonStorageWithParty @@ -397,30 +398,31 @@  CIRelicStoneSceneScene class for handling appearance of the screen  CIRelicStoneScreenScreen class for handling game logic  CISafariDataBoxData box for safari battles - CISaveScene - CISaveScreen - CISceneA scene basically represents unity (or any frontend) where code pauses for user interaction (animation, and user key inputs). - CIScene_PokedexMenu - CISceneHasChatterShows the player's Poké Ball being thrown to capture a Pokémon. - CIScreen - CISellAdapter - CISliderOption - CITossItemScene - CITrainerCardScene - CITrainerCardScreen - CITrainerFadeAnimationShows the enemy trainer(s) and the enemy party lineup sliding off screen. Doesn't show the ball thrown or the Pokémon. - CITrainerMysteryGift - CIWindow_CommandPokemonWhiteArrow - CIWindow_ComplexCommandPokemon - CIWindow_DexesList - CIWindow_Pokedex - CIWindow_PokemonBagUI Elements for the Bag screen - CIWindow_PokemonItemStorage - CIWindow_PokemonMart - CIWindow_PokemonOption - CIWindow_PurifyChamberSets - CIWithdrawItemScene - CUIHelperCommon UI functions used in both the Bag and item storage screens. Allows the user to choose a number. The window helpwindow will display the helptext. + CISafariZone_Scene + CISaveScene + CISaveScreen + CISceneA scene basically represents unity (or any frontend) where code pauses for user interaction (animation, and user key inputs). + CIScene_PokedexMenu + CISceneHasChatterShows the player's Poké Ball being thrown to capture a Pokémon. + CIScreen + CISellAdapter + CISliderOption + CITossItemScene + CITrainerCardScene + CITrainerCardScreen + CITrainerFadeAnimationShows the enemy trainer(s) and the enemy party lineup sliding off screen. Doesn't show the ball thrown or the Pokémon. + CITrainerMysteryGift + CIWindow_CommandPokemonWhiteArrow + CIWindow_ComplexCommandPokemon + CIWindow_DexesList + CIWindow_Pokedex + CIWindow_PokemonBagUI Elements for the Bag screen + CIWindow_PokemonItemStorage + CIWindow_PokemonMart + CIWindow_PokemonOption + CIWindow_PurifyChamberSets + CIWithdrawItemScene + CUIHelperCommon UI functions used in both the Bag and item storage screens. Allows the user to choose a number. The window helpwindow will display the helptext.  CIAnimatedBitmap  CIAnimatedSprite  CIAnimationSpriteA sprite whose sole purpose is to display an animation. This sprite can be displayed anywhere on the map and is disposed automatically when its animation is finished. Used for grass rustling and so forth. @@ -565,8 +567,8 @@  CIPhoneMessageData  CIPhoneTrainerContactFor trainer contacts  CParty - CPC_Refactor - CPCItemStorageThe PC item storage object, which actually contains all the items + CPC + CPCItemStorageThe PC item storage object, which actually contains all the items  CPhoneThe phone allows the player to store the phone numbers of various trainers and other important people, and to call them and receive calls from them at any time. The numbers in the phone are stored in the array IGlobalMetadata.phoneNumbers.  CPlayer  CPlayerOutfit @@ -596,383 +598,378 @@  CMoveA Move placeholder class to be used while in-Battle, to prevent temp changes from being permanent to original pokemon profile  CMoveEffectData  CPokeBattle_BattleArena - CPokeBattle_BattleArenaPlayer - CPokeBattle_BattlePalace - CPokeBattle_BattlePalacePlayer - CPokeBattle_BattlePlayer - CPokeBattle_BattlePlayerModulePlayback? - CPokeBattle_ConfusionPseudomove for confusion damage - CPokeBattle_FailedMoveSuperclass for a failed move. Always fails. This class is unused - CPokeBattle_MoveUses current battle and manipulates the data then return the current battle with updated values. - CPokeBattle_Move_000No additional effect - CPokeBattle_Move_001Does absolutely nothing. (Splash) - CPokeBattle_Move_002Struggle. Overrides the default Struggle effect above - CPokeBattle_Move_003Puts the target to sleep - CPokeBattle_Move_004Makes the target drowsy; it will fall asleep at the end of the next turn. (Yawn) - CPokeBattle_Move_005Poisons the target - CPokeBattle_Move_006Badly poisons the target. (Poison Fang, Toxic) (Handled in Pokemon's pbSuccessCheck): Hits semi-invulnerable targets if user is Poison-type and move is status move - CPokeBattle_Move_007Paralyzes the target. Thunder Wave: Doesn't affect target if move's type has no effect on it. Bolt Strike: Powers up the next Fusion Flare used this round - CPokeBattle_Move_008Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_009Paralyzes the target. May cause the target to flinch. (Thunder Fang) - CPokeBattle_Move_00ABurns the target. Blue Flare: Powers up the next Fusion Bolt used this round - CPokeBattle_Move_00BBurns the target. May cause the target to flinch. (Fire Fang) - CPokeBattle_Move_00CFreezes the target - CPokeBattle_Move_00DFreezes the target. Accuracy perfect in hail. (Blizzard) - CPokeBattle_Move_00EFreezes the target. May cause the target to flinch. (Ice Fang) - CPokeBattle_Move_00FCauses the target to flinch - CPokeBattle_Move_010Causes the target to flinch. Does double damage and has perfect accuracy if the target is Minimized - CPokeBattle_Move_011Causes the target to flinch. Fails if the user is not asleep. (Snore) - CPokeBattle_Move_012Causes the target to flinch. Fails if this isn't the user's first turn. (Fake Out) - CPokeBattle_Move_013Confuses the target - CPokeBattle_Move_014Confuses the target. Chance of causing confusion depends on the cry's volume. Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) TODO: Play the actual chatter cry as part of the move animation this.battle.scene.pbChatter(attacker,opponent) // Just plays cry - CPokeBattle_Move_015Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_016Attracts the target. (Attract) - CPokeBattle_Move_017Burns, freezes or paralyzes the target. (Tri Attack) - CPokeBattle_Move_018Cures user of burn, poison and paralysis. (Refresh) - CPokeBattle_Move_019Cures all party Pokémon of permanent status problems. (Aromatherapy, Heal Bell) - CPokeBattle_Move_01ASafeguards the user's side from being inflicted with status problems. (Safeguard) - CPokeBattle_Move_01BUser passes its status problem to the target. (Psycho Shift) - CPokeBattle_Move_01CIncreases the user's Attack by 1 stage - CPokeBattle_Move_01DIncreases the user's Defense by 1 stage - CPokeBattle_Move_01EIncreases the user's Defense by 1 stage. User curls up. (Defense Curl) - CPokeBattle_Move_01FIncreases the user's Speed by 1 stage - CPokeBattle_Move_020Increases the user's Special Attack by 1 stage - CPokeBattle_Move_021Increases the user's Special Defense by 1 stage. Charges up user's next attack if it is Electric-type. (Charge) - CPokeBattle_Move_022Increases the user's evasion by 1 stage - CPokeBattle_Move_023Increases the user's critical hit rate. (Focus Energy) - CPokeBattle_Move_024Increases the user's Attack and Defense by 1 stage each. (Bulk Up) - CPokeBattle_Move_025Increases the user's Attack, Defense and accuracy by 1 stage each. (Coil) - CPokeBattle_Move_026Increases the user's Attack and Speed by 1 stage each. (Dragon Dance) - CPokeBattle_Move_027Increases the user's Attack and Special Attack by 1 stage each. (Work Up) - CPokeBattle_Move_028Increases the user's Attack and Sp. Attack by 1 stage each. In sunny weather, increase is 2 stages each instead. (Growth) - CPokeBattle_Move_029Increases the user's Attack and accuracy by 1 stage each. (Hone Claws) - CPokeBattle_Move_02AIncreases the user's Defense and Special Defense by 1 stage each. (Cosmic Power) - CPokeBattle_Move_02BIncreases the user's Sp. Attack, Sp. Defense and Speed by 1 stage each. (Quiver Dance) - CPokeBattle_Move_02CIncreases the user's Sp. Attack and Sp. Defense by 1 stage each. (Calm Mind) - CPokeBattle_Move_02DIncreases the user's Attack, Defense, Speed, Special Attack and Special Defense by 1 stage each. (AncientPower, Ominous Wind, Silver Wind) - CPokeBattle_Move_02EIncreases the user's Attack by 2 stages - CPokeBattle_Move_02FIncreases the user's Defense by 2 stages - CPokeBattle_Move_030Increases the user's Speed by 2 stages - CPokeBattle_Move_031Increases the user's Speed by 2 stages. Lowers user's weight by 100kg. (Autotomize) - CPokeBattle_Move_032Increases the user's Special Attack by 2 stages - CPokeBattle_Move_033Increases the user's Special Defense by 2 stages - CPokeBattle_Move_034Increases the user's evasion by 2 stages. Minimizes the user. (Minimize) - CPokeBattle_Move_035Decreases the user's Defense and Special Defense by 1 stage each. (Shell Smash) Increases the user's Attack, Speed and Special Attack by 2 stages each - CPokeBattle_Move_036Increases the user's Speed by 2 stages, and its Attack by 1 stage. (Shift Gear) - CPokeBattle_Move_037Increases one random stat of the user by 2 stages (except HP). (Acupressure) - CPokeBattle_Move_038Increases the user's Defense by 3 stages - CPokeBattle_Move_039Increases the user's Special Attack by 3 stages - CPokeBattle_Move_03AReduces the user's HP by half of max, and sets its Attack to maximum. (Belly Drum) - CPokeBattle_Move_03BDecreases the user's Attack and Defense by 1 stage each. (Superpower) - CPokeBattle_Move_03CDecreases the user's Defense and Special Defense by 1 stage each. (Close Combat) - CPokeBattle_Move_03DDecreases the user's Defense, Special Defense and Speed by 1 stage each. User's ally loses 1/16 of its total HP. (V-create) - CPokeBattle_Move_03EDecreases the user's Speed by 1 stage - CPokeBattle_Move_03FDecreases the user's Special Attack by 2 stages - CPokeBattle_Move_040Increases the target's Special Attack by 1 stage. Confuses the target. (Flatter) - CPokeBattle_Move_041Increases the target's Attack by 2 stages. Confuses the target. (Swagger) - CPokeBattle_Move_042Decreases the target's Attack by 1 stage - CPokeBattle_Move_043Decreases the target's Defense by 1 stage - CPokeBattle_Move_044Decreases the target's Speed by 1 stage - CPokeBattle_Move_045Decreases the target's Special Attack by 1 stage - CPokeBattle_Move_046Decreases the target's Special Defense by 1 stage - CPokeBattle_Move_047Decreases the target's accuracy by 1 stage - CPokeBattle_Move_048Decreases the target's evasion by 1 stage OR 2 stages. (Sweet Scent) - CPokeBattle_Move_049Decreases the target's evasion by 1 stage. Ends all barriers and entry hazards for the target's side OR on both sides. (Defog) - CPokeBattle_Move_04ADecreases the target's Attack and Defense by 1 stage each. (Tickle) - CPokeBattle_Move_04BDecreases the target's Attack by 2 stages - CPokeBattle_Move_04CDecreases the target's Defense by 2 stages. (Screech) - CPokeBattle_Move_04DDecreases the target's Speed by 2 stages. (Cotton Spore, Scary Face, String Shot) - CPokeBattle_Move_04EDecreases the target's Special Attack by 2 stages. Only works on the opposite gender. (Captivate) - CPokeBattle_Move_04FDecreases the target's Special Defense by 2 stages - CPokeBattle_Move_050Resets all target's stat stages to 0. (Clear Smog) - CPokeBattle_Move_051Resets all stat stages for all battlers to 0. (Haze) - CPokeBattle_Move_052User and target swap their Attack and Special Attack stat stages. (Power Swap) - CPokeBattle_Move_053User and target swap their Defense and Special Defense stat stages. (Guard Swap) - CPokeBattle_Move_054User and target swap all their stat stages. (Heart Swap) - CPokeBattle_Move_055User copies the target's stat stages. (Psych Up) - CPokeBattle_Move_056For 5 rounds, user's and ally's stat stages cannot be lowered by foes. (Mist) - CPokeBattle_Move_057Swaps the user's Attack and Defense stats. (Power Trick) - CPokeBattle_Move_058Averages the user's and target's Attack. Averages the user's and target's Special Attack. (Power Split) - CPokeBattle_Move_059Averages the user's and target's Defense. Averages the user's and target's Special Defense. (Guard Split) - CPokeBattle_Move_05AAverages the user's and target's current HP. (Pain Split) - CPokeBattle_Move_05BFor 4 rounds, doubles the Speed of all battlers on the user's side. (Tailwind) - CPokeBattle_Move_05CThis move turns into the last move used by the target, until user switches out. (Mimic) - CPokeBattle_Move_05DThis move permanently turns into the last move used by the target. (Sketch) - CPokeBattle_Move_05EChanges user's type to that of a random user's move, except this one, OR the user's first move's type. (Conversion) - CPokeBattle_Move_05FChanges user's type to a random one that resists/is immune to the last move used by the target. (Conversion 2) - CPokeBattle_Move_060Changes user's type depending on the environment. (Camouflage) - CPokeBattle_Move_061Target becomes Water type. (Soak) - CPokeBattle_Move_062User copes target's types. (Reflect Type) - CPokeBattle_Move_063Target's ability becomes Simple. (Simple Beam) - CPokeBattle_Move_064Target's ability becomes Insomnia. (Worry Seed) - CPokeBattle_Move_065User copies target's ability. (Role Play) - CPokeBattle_Move_066Target copies user's ability. (Entrainment) - CPokeBattle_Move_067User and target swap abilities. (Skill Swap) - CPokeBattle_Move_068Target's ability is negated. (Gastro Acid) - CPokeBattle_Move_069User transforms into the target. (Transform) - CPokeBattle_Move_06AInflicts a fixed 20HP damage. (SonicBoom) - CPokeBattle_Move_06BInflicts a fixed 40HP damage. (Dragon Rage) - CPokeBattle_Move_06CHalves the target's current HP. (Super Fang) - CPokeBattle_Move_06DInflicts damage equal to the user's level. (Night Shade, Seismic Toss) - CPokeBattle_Move_06EInflicts damage to bring the target's HP down to equal the user's HP. (Endeavor) - CPokeBattle_Move_06FInflicts damage between 0.5 and 1.5 times the user's level. (Psywave) - CPokeBattle_Move_070OHKO. Accuracy increases by difference between levels of user and target - CPokeBattle_Move_071Counters a physical move used against the user this round, with 2x the power. (Counter) - CPokeBattle_Move_072Counters a specical move used against the user this round, with 2x the power. (Mirror Coat) - CPokeBattle_Move_073Counters the last damaging move used against the user this round, with 1.5x the power. (Metal Burst) - CPokeBattle_Move_074The target's ally loses 1/16 of its max HP. (Flame Burst) - CPokeBattle_Move_075Power is doubled if the target is using Dive. (Surf) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_076Power is doubled if the target is using Dig. Power is halved if Grassy Terrain is in effect. (Earthquake) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_077Power is doubled if the target is using Bounce, Fly or Sky Drop. (Gust) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_078Power is doubled if the target is using Bounce, Fly or Sky Drop. (Twister) May make the target flinch. (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_079Power is doubled if Fusion Flare has already been used this round. (Fusion Bolt) - CPokeBattle_Move_07APower is doubled if Fusion Bolt has already been used this round. (Fusion Flare) - CPokeBattle_Move_07BPower is doubled if the target is poisoned. (Venoshock) - CPokeBattle_Move_07CPower is doubled if the target is paralyzed. Cures the target of paralysis. (SmellingSalt) - CPokeBattle_Move_07DPower is doubled if the target is asleep. Wakes the target up. (Wake-Up Slap) - CPokeBattle_Move_07EPower is doubled if the user is burned, poisoned or paralyzed. (Facade) - CPokeBattle_Move_07FPower is doubled if the target has a status problem. (Hex) - CPokeBattle_Move_080Power is doubled if the target's HP is down to 1/2 or less. (Brine) - CPokeBattle_Move_081Power is doubled if the user has lost HP due to the target's move this round. (Revenge, Avalanche) - CPokeBattle_Move_082Power is doubled if the target has already lost HP this round. (Assurance) - CPokeBattle_Move_083Power is doubled if a user's ally has already used this move this round. (Round) If an ally is about to use the same move, make it go next, ignoring priority - CPokeBattle_Move_084Power is doubled if the target has already moved this round. (Payback) - CPokeBattle_Move_085Power is doubled if a user's teammate fainted last round. (Retaliate) - CPokeBattle_Move_086Power is doubled if the user has no held item. (Acrobatics) - CPokeBattle_Move_087Power is doubled in weather. Type changes depending on the weather. (Weather Ball) - CPokeBattle_Move_088Power is doubled if a foe tries to switch out or use U-turn/Volt Switch/ Parting Shot. (Pursuit) (Handled in Battle's pbAttackPhase): Makes this attack happen before switching - CPokeBattle_Move_089Power increases with the user's happiness. (Return) - CPokeBattle_Move_08APower decreases with the user's happiness. (Frustration) - CPokeBattle_Move_08BPower increases with the user's HP. (Eruption, Water Spout) - CPokeBattle_Move_08CPower increases with the target's HP. (Crush Grip, Wring Out) - CPokeBattle_Move_08DPower increases the quicker the target is than the user. (Gyro Ball) - CPokeBattle_Move_08EPower increases with the user's positive stat changes (ignores negative ones). (Stored Power) - CPokeBattle_Move_08FPower increases with the target's positive stat changes (ignores negative ones). (Punishment) - CPokeBattle_Move_090Power and type depends on the user's IVs. (Hidden Power) - CPokeBattle_Move_091Power doubles for each consecutive use. (Fury Cutter) - CPokeBattle_Move_092Power is multiplied by the number of consecutive rounds in which this move was used by any Pokémon on the user's side. (Echoed Voice) - CPokeBattle_Move_093User rages until the start of a round in which they don't use this move. (Rage) (Handled in Pokemon's pbProcessMoveAgainstTarget): Ups rager's Attack by 1 stage each time it loses HP due to a move - CPokeBattle_Move_094Randomly damages or heals the target. (Present) - CPokeBattle_Move_095Power is chosen at random. Power is doubled if the target is using Dig. (Magnitude) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_096Power and type depend on the user's held berry. Destroys the berry. (Natural Gift) - CPokeBattle_Move_097Power increases the less PP this move has. (Trump Card) - CPokeBattle_Move_098Power increases the less HP the user has. (Flail, Reversal) - CPokeBattle_Move_099Power increases the quicker the user is than the target. (Electro Ball) - CPokeBattle_Move_09APower increases the heavier the target is. (Grass Knot, Low Kick) - CPokeBattle_Move_09BPower increases the heavier the user is than the target. (Heat Crash, Heavy Slam) - CPokeBattle_Move_09CPowers up the ally's attack this round by 1.5. (Helping Hand) - CPokeBattle_Move_09DWeakens Electric attacks. (Mud Sport) - CPokeBattle_Move_09EWeakens Fire attacks. (Water Sport) - CPokeBattle_Move_09FType depends on the user's held item. (Judgment, Techno Blast) - CPokeBattle_Move_0A0This attack is always a critical hit. (Frost Breath, Storm Throw) - CPokeBattle_Move_0A1For 5 rounds, foes' attacks cannot become critical hits. (Lucky Chant) - CPokeBattle_Move_0A2For 5 rounds, lowers power of physical attacks against the user's side. (Reflect) - CPokeBattle_Move_0A3For 5 rounds, lowers power of special attacks against the user's side. (Light Screen) - CPokeBattle_Move_0A4Effect depends on the environment. (Secret Power) - CPokeBattle_Move_0A5Always hits - CPokeBattle_Move_0A6User's attack next round against the target will definitely hit. (Lock-On, Mind Reader) - CPokeBattle_Move_0A7Target's evasion stat changes are ignored from now on. (Foresight, Odor Sleuth) Normal and Fighting moves have normal effectiveness against the Ghost-type target - CPokeBattle_Move_0A8Target's evasion stat changes are ignored from now on. (Miracle Eye) Psychic moves have normal effectiveness against the Dark-type target - CPokeBattle_Move_0A9This move ignores target's Defense, Special Defense and evasion stat changes. (Chip Away, Sacred Sword) - CPokeBattle_Move_0AAUser is protected against moves with the "B" flag this round. (Detect, Protect) - CPokeBattle_Move_0ABUser's side is protected against moves with priority greater than 0 this round. (Quick Guard) - CPokeBattle_Move_0ACUser's side is protected against moves that target multiple battlers this round. (Wide Guard) - CPokeBattle_Move_0ADIgnores target's protections. If successful, all other moves this round ignore them too. (Feint) - CPokeBattle_Move_0AEUses the last move that the target used. (Mirror Move) - CPokeBattle_Move_0AFUses the last move that was used. (Copycat) - CPokeBattle_Move_0B0Uses the move the target was about to use this round, with 1.5x power. (Me First) - CPokeBattle_Move_0B1This round, reflects all moves with the "C" flag targeting the user back at their origin. (Magic Coat) - CPokeBattle_Move_0B2This round, snatches all used moves with the "D" flag. (Snatch) - CPokeBattle_Move_0B3Uses a different move depending on the environment. (Nature Power) - CPokeBattle_Move_0B4Uses a random move the user knows. Fails if user is not asleep. (Sleep Talk) - CPokeBattle_Move_0B5Uses a random move known by any non-user Pokémon in the user's party. (Assist) - CPokeBattle_Move_0B6Uses a random move that exists. (Metronome) - CPokeBattle_Move_0B7The target can no longer use the same move twice in a row. (Torment) - CPokeBattle_Move_0B8Disables all target's moves that the user also knows. (Imprison) - CPokeBattle_Move_0B9For 5 rounds, disables the last move the target used. (Disable) - CPokeBattle_Move_0BAFor 4 rounds, disables the target's non-damaging moves. (Taunt) - CPokeBattle_Move_0BBFor 5 rounds, disables the target's healing moves. (Heal Block) - CPokeBattle_Move_0BCFor 4 rounds, the target must use the same move each round. (Encore) - CPokeBattle_Move_0BDHits twice - CPokeBattle_Move_0BEHits twice. May poison the target on each hit. (Twineedle) - CPokeBattle_Move_0BFHits 3 times. Power is multiplied by the hit number. (Triple Kick) An accuracy check is performed for each hit - CPokeBattle_Move_0C0Hits 2-5 times - CPokeBattle_Move_0C1Hits X times, where X is 1 (the user) plus the number of non-user unfainted status-free Pokémon in the user's party (the participants). Fails if X is 0. Base power of each hit depends on the base Attack stat for the species of that hit's participant. (Beat Up) - CPokeBattle_Move_0C2Two turn attack. Attacks first turn, skips second turn (if successful) - CPokeBattle_Move_0C3Two turn attack. Skips first turn, attacks second turn. (Razor Wind) - CPokeBattle_Move_0C4Two turn attack. Skips first turn, attacks second turn. (SolarBeam) Power halved in all weather except sunshine. In sunshine, takes 1 turn instead - CPokeBattle_Move_0C5Two turn attack. Skips first turn, attacks second turn. (Freeze Shock) May paralyze the target - CPokeBattle_Move_0C6Two turn attack. Skips first turn, attacks second turn. (Ice Burn) May burn the target - CPokeBattle_Move_0C7Two turn attack. Skips first turn, attacks second turn. (Sky Attack) May make the target flinch - CPokeBattle_Move_0C8Two turn attack. Ups user's Defense by 1 stage first turn, attacks second turn. (Skull Bash) - CPokeBattle_Move_0C9Two turn attack. Skips first turn, attacks second turn. (Fly) (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use - CPokeBattle_Move_0CATwo turn attack. Skips first turn, attacks second turn. (Dig) (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use - CPokeBattle_Move_0CBTwo turn attack. Skips first turn, attacks second turn. (Dive) (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use - CPokeBattle_Move_0CCTwo turn attack. Skips first turn, attacks second turn. (Bounce) May paralyze the target. (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use - CPokeBattle_Move_0CDTwo turn attack. Skips first turn, attacks second turn. (Shadow Force) Is invulnerable during use. Ignores target's Detect, King's Shield, Mat Block, Protect and Spiky Shield this round. If successful, negates them this round - CPokeBattle_Move_0CETwo turn attack. Skips first turn, attacks second turn. (Sky Drop) (Handled in Pokemon's pbSuccessCheck): Is semi-invulnerable during use. Target is also semi-invulnerable during use, and can't take any action. Doesn't damage airborne Pokémon (but still makes them unable to move during) - CPokeBattle_Move_0CFTrapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP at end of each round - CPokeBattle_Move_0D0Trapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP at end of each round. (Whirlpool) Power is doubled if target is using Dive. (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_0D1User must use this move for 2 more rounds. No battlers can sleep. (Uproar) - CPokeBattle_Move_0D2User must use this move for 1 or 2 more rounds. At end, user becomes confused. (Outrage, Petal Dange, Thrash) - CPokeBattle_Move_0D3User must use this move for 4 more rounds. Power doubles each round. Power is also doubled if user has curled up. (Ice Ball, Rollout) - CPokeBattle_Move_0D4User bides its time this round and next round. The round after, deals 2x the total damage it took while biding to the last battler that damaged it. (Bide) - CPokeBattle_Move_0D5Heals user by 1/2 of its max HP - CPokeBattle_Move_0D6Heals user by 1/2 of its max HP. (Roost) User roosts, and its Flying type is ignored for attacks used against it - CPokeBattle_Move_0D7Pokemon in user's position is healed by 1/2 of its max HP, at the end of the next round. (Wish) - CPokeBattle_Move_0D8Heals user by an amount depending on the weather. (Moonlight, Morning Sun, Synthesis) - CPokeBattle_Move_0D9Heals user to full HP. User falls asleep for 2 more rounds. (Rest) - CPokeBattle_Move_0DARings the user. Ringed Pokémon gain 1/16 of max HP at the end of each round. (Aqua Ring) - CPokeBattle_Move_0DBIngrains the user. Ingrained Pokémon gain 1/16 of max HP at the end of each round, and cannot flee or switch out. (Ingrain) - CPokeBattle_Move_0DCSeeds the target. Seeded Pokémon lose 1/8 of max HP at the end of each round, and the Pokémon in the user's position gains the same amount. (Leech Seed) - CPokeBattle_Move_0DDUser gains half the HP it inflicts as damage - CPokeBattle_Move_0DEUser gains half the HP it inflicts as damage. (Dream Eater) (Handled in Pokemon's pbSuccessCheck): Fails if target is not asleep - CPokeBattle_Move_0DFHeals target by 1/2 of its max HP. (Heal Pulse) - CPokeBattle_Move_0E0User faints. (Explosion, Selfdestruct) - CPokeBattle_Move_0E1Inflicts fixed damage equal to user's current HP. (Final Gambit) User faints (if successful) - CPokeBattle_Move_0E2Decreases the target's Attack and Special Attack by 2 stages each. (Memento) User faints (even if effect does nothing) - CPokeBattle_Move_0E3User faints. The Pokémon that replaces the user is fully healed (HP and status). Fails if user won't be replaced. (Healing Wish) - CPokeBattle_Move_0E4User faints. The Pokémon that replaces the user is fully healed (HP, PP and status). Fails if user won't be replaced. (Lunar Dance) - CPokeBattle_Move_0E5All current battlers will perish after 3 more rounds. (Perish Song) - CPokeBattle_Move_0E6If user is KO'd before it next moves, the attack that caused it loses all PP. (Grudge) - CPokeBattle_Move_0E7If user is KO'd before it next moves, the battler that caused it also faints. (Destiny Bond) - CPokeBattle_Move_0E8If user would be KO'd this round, it survives with 1HP instead. (Endure) - CPokeBattle_Move_0E9If target would be KO'd by this attack, it survives with 1HP instead. (False Swipe) - CPokeBattle_Move_0EAUser flees from battle. Fails in trainer battles. (Teleport) - CPokeBattle_Move_0EBIn wild battles, makes target flee. Fails if target is a higher level than the user. In trainer battles, target switches out. For status moves. (Roar, Whirlwind) - CPokeBattle_Move_0ECIn wild battles, makes target flee. Fails if target is a higher level than the user. In trainer battles, target switches out. For damaging moves. (Circle Throw, Dragon Tail) - CPokeBattle_Move_0EDUser switches out. Various effects affecting the user are passed to the replacement. (Baton Pass) - CPokeBattle_Move_0EEAfter inflicting damage, user switches out. Ignores trapping moves. (U-turn, Volt Switch) TODO: Pursuit should interrupt this move - CPokeBattle_Move_0EFTarget can no longer switch out or flee, as long as the user remains active. (Block, Mean Look, Spider Web, Thousand Waves) - CPokeBattle_Move_0F0Target drops its item. It regains the item at the end of the battle. (Knock Off) If target has a losable item, damage is multiplied by 1.5 - CPokeBattle_Move_0F1User steals the target's item, if the user has none itself. (Covet, Thief) Items stolen from wild Pokémon are kept after the battle - CPokeBattle_Move_0F2User and target swap items. They remain swapped after wild battles. (Switcheroo, Trick) - CPokeBattle_Move_0F3User gives its item to the target. The item remains given after wild battles. (Bestow) - CPokeBattle_Move_0F4User consumes target's berry and gains its effect. (Bug Bite, Pluck) - CPokeBattle_Move_0F5Target's berry is destroyed. (Incinerate) - CPokeBattle_Move_0F6User recovers the last item it held and consumed. (Recycle) - CPokeBattle_Move_0F7User flings its item at the target. Power and effect depend on the item. (Fling) - CPokeBattle_Move_0F8For 5 rounds, the target cannnot use its held item, its held item has no effect, and no items can be used on it. (Embargo) - CPokeBattle_Move_0F9For 5 rounds, all held items cannot be used in any way and have no effect. Held items can still change hands, but can't be thrown. (Magic Room) - CPokeBattle_Move_0FAUser takes recoil damage equal to 1/4 of the damage this move dealt - CPokeBattle_Move_0FBUser takes recoil damage equal to 1/3 of the damage this move dealt - CPokeBattle_Move_0FCUser takes recoil damage equal to 1/2 of the damage this move dealt. (Head Smash) - CPokeBattle_Move_0FDUser takes recoil damage equal to 1/3 of the damage this move dealt. May paralyze the target. (Volt Tackle) - CPokeBattle_Move_0FEUser takes recoil damage equal to 1/3 of the damage this move dealt. May burn the target. (Flare Blitz) - CPokeBattle_Move_0FFStarts sunny weather. (Sunny Day) - CPokeBattle_Move_100Starts rainy weather. (Rain Dance) - CPokeBattle_Move_101Starts sandstorm weather. (Sandstorm) - CPokeBattle_Move_102Starts hail weather. (Hail) - CPokeBattle_Move_103Entry hazard. Lays spikes on the opposing side (max. 3 layers). (Spikes) - CPokeBattle_Move_104Entry hazard. Lays poison spikes on the opposing side (max. 2 layers). (Toxic Spikes) - CPokeBattle_Move_105Entry hazard. Lays stealth rocks on the opposing side. (Stealth Rock) - CPokeBattle_Move_106Forces ally's Pledge move to be used next, if it hasn't already. (Grass Pledge) Combo's with ally's Pledge move if it was just used. Power is doubled, and causes either a sea of fire or a swamp on the opposing side - CPokeBattle_Move_107Forces ally's Pledge move to be used next, if it hasn't already. (Fire Pledge) Combo's with ally's Pledge move if it was just used. Power is doubled, and causes either a sea of fire on the opposing side or a rainbow on the user's side - CPokeBattle_Move_108Forces ally's Pledge move to be used next, if it hasn't already. (Water Pledge) Combo's with ally's Pledge move if it was just used. Power is doubled, and causes either a swamp on the opposing side or a rainbow on the user's side - CPokeBattle_Move_109Scatters coins that the player picks up after winning the battle. (Pay Day) - CPokeBattle_Move_10AEnds the opposing side's Light Screen and Reflect. (Brick Break) - CPokeBattle_Move_10BIf attack misses, user takes crash damage of 1/2 of max HP. (Hi Jump Kick, Jump Kick) - CPokeBattle_Move_10CUser turns 1/4 of max HP into a substitute. (Substitute) - CPokeBattle_Move_10DUser is not Ghost: Decreases the user's Speed, increases the user's Attack & Defense by 1 stage each. User is Ghost: User loses 1/2 of max HP, and curses the target. Cursed Pokémon lose 1/4 of their max HP at the end of each round. (Curse) - CPokeBattle_Move_10ETarget's last move used loses 4 PP. (Spite) - CPokeBattle_Move_10FTarget will lose 1/4 of max HP at end of each round, while asleep. (Nightmare) - CPokeBattle_Move_110Removes trapping moves, entry hazards and Leech Seed on user/user's side. (Rapid Spin) - CPokeBattle_Move_111Attacks 2 rounds in the future. (Doom Desire, Future Sight) - CPokeBattle_Move_112Increases the user's Defense and Special Defense by 1 stage each. Ups the user's stockpile by 1 (max. 3). (Stockpile) - CPokeBattle_Move_113Power is 100 multiplied by the user's stockpile (X). Resets the stockpile to 0. Decreases the user's Defense and Special Defense by X stages each. (Spit Up) - CPokeBattle_Move_114Heals user depending on the user's stockpile (X). Resets the stockpile to 0. Decreases the user's Defense and Special Defense by X stages each. (Swallow) - CPokeBattle_Move_115Fails if user was hit by a damaging move this round. (Focus Punch) - CPokeBattle_Move_116Fails if the target didn't chose a damaging move to use this round, or has already moved. (Sucker Punch) - CPokeBattle_Move_117This round, user becomes the target of attacks that have single targets. (Follow Me, Rage Powder) - CPokeBattle_Move_118For 5 rounds, increases gravity on the field. Pokémon cannot become airborne. (Gravity) - CPokeBattle_Move_119For 5 rounds, user becomes airborne. (Magnet Rise) - CPokeBattle_Move_11AFor 3 rounds, target becomes airborne and can always be hit. (Telekinesis) - CPokeBattle_Move_11BHits airborne semi-invulnerable targets. (Sky Uppercut) - CPokeBattle_Move_11CGrounds the target while it remains active. (Smack Down, Thousand Arrows) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets - CPokeBattle_Move_11DTarget moves immediately after the user, ignoring priority/speed. (After You) - CPokeBattle_Move_11ETarget moves last this round, ignoring priority/speed. (Quash) - CPokeBattle_Move_11FFor 5 rounds, for each priority bracket, slow Pokémon move before fast ones. (Trick Room) - CPokeBattle_Move_120User switches places with its ally. (Ally Switch) - CPokeBattle_Move_121Target's Attack is used instead of user's Attack for this move's calculations. (Foul Play) - CPokeBattle_Move_122Target's Defense is used instead of its Special Defense for this move's calculations. (Psyshock, Psystrike, Secret Sword) - CPokeBattle_Move_123Only damages Pokémon that share a type with the user. (Synchronoise) - CPokeBattle_Move_124For 5 rounds, swaps all battlers' base Defense with base Special Defense. (Wonder Room) - CPokeBattle_Move_125Fails unless user has already used all other moves it knows. (Last Resort) - CPokeBattle_Move_126No additional effect. (Shadow Blast, Shadow Blitz, Shadow Break, Shadow Rave, Shadow Rush, Shadow Wave) - CPokeBattle_Move_127Paralyzes the target. (Shadow Bolt) - CPokeBattle_Move_128Burns the target. (Shadow Fire) - CPokeBattle_Move_129Freezes the target. (Shadow Chill) - CPokeBattle_Move_12AConfuses the target. (Shadow Panic) - CPokeBattle_Move_12BDecreases the target's Defense by 2 stages. (Shadow Down) - CPokeBattle_Move_12CDecreases the target's evasion by 2 stages. (Shadow Mist) - CPokeBattle_Move_12DPower is doubled if the target is using Dive. (Shadow Storm) - CPokeBattle_Move_12ETwo turn attack. On first turn, halves the HP of all active Pokémon. Skips second turn (if successful). (Shadow Half) - CPokeBattle_Move_12FTarget can no longer switch out or flee, as long as the user remains active. (Shadow Hold) - CPokeBattle_Move_130User takes recoil damage equal to 1/2 of its current HP. (Shadow End) - CPokeBattle_Move_131Starts shadow weather. (Shadow Sky) - CPokeBattle_Move_132Ends the effects of Light Screen, Reflect and Safeguard on both sides. (Shadow Shed) - CPokeBattle_Move_133Does absolutely nothing. (Hold Hands) - CPokeBattle_Move_134Does absolutely nothing. Shows a special message. (Celebrate) - CPokeBattle_Move_135Freezes the target. (Freeze-Dry) (Superclass's pbTypeModifier): Effectiveness against Water-type is 2x - CPokeBattle_Move_136Increases the user's Defense by 1 stage for each target hit. (Diamond Storm) - CPokeBattle_Move_137Increases the user's and its ally's Defense and Special Defense by 1 stage each, if they have Plus or Minus. (Magnetic Flux) - CPokeBattle_Move_138Increases ally's Special Defense by 1 stage. (Aromatic Mist) - CPokeBattle_Move_139Decreases the target's Attack by 1 stage. Always hits. (Play Nice) - CPokeBattle_Move_13ADecreases the target's Attack and Special Attack by 1 stage each. (Noble Roar) - CPokeBattle_Move_13BDecreases the target's Defense by 1 stage. Always hits. (Hyperspace Fury) - CPokeBattle_Move_13CDecreases the target's Special Attack by 1 stage. Always hits. (Confide) - CPokeBattle_Move_13DDecreases the target's Special Attack by 2 stages. (Eerie Impulse) - CPokeBattle_Move_13EIncreases the Attack and Special Attack of all Grass-type Pokémon on the field by 1 stage each. Doesn't affect airborne Pokémon. (Rototiller) - CPokeBattle_Move_13FIncreases the Defense of all Grass-type Pokémon on the field by 1 stage each. (Flower Shield) - CPokeBattle_Move_140Decreases the Attack, Special Attack and Speed of all poisoned opponents by 1 stage each. (Venom Drench) - CPokeBattle_Move_141Reverses all stat changes of the target. (Topsy-Turvy) - CPokeBattle_Move_142Gives target the Ghost type. (Trick-or-Treat) - CPokeBattle_Move_143Gives target the Grass type. (Forest's Curse) - CPokeBattle_Move_144Damage is multiplied by Flying's effectiveness against the target. Does double damage and has perfect accuracy if the target is Minimized. (Flying Press) - CPokeBattle_Move_145Target's moves become Electric-type for the rest of the round. (Electrify) - CPokeBattle_Move_146All Normal-type moves become Electric-type for the rest of the round. (Ion Deluge) - CPokeBattle_Move_147Always hits. (Hyperspace Hole) TODO: Hits through various shields - CPokeBattle_Move_148Powders the foe. This round, if it uses a Fire move, it loses 1/4 of its max HP instead. (Powder) - CPokeBattle_Move_149This round, the user's side is unaffected by damaging moves. (Mat Block) - CPokeBattle_Move_14AUser's side is protected against status moves this round. (Crafty Shield) - CPokeBattle_Move_14BUser is protected against damaging moves this round. Decreases the Attack of the user of a stopped contact move by 2 stages. (King's Shield) - CPokeBattle_Move_14CUser is protected against moves that target it this round. Damages the user of a stopped contact move by 1/8 of its max HP. (Spiky Shield) - CPokeBattle_Move_14DTwo turn attack. Skips first turn, attacks second turn. (Phantom Force) Is invulnerable during use. Ignores target's Detect, King's Shield, Mat Block, Protect and Spiky Shield this round. If successful, negates them this round. Does double damage and has perfect accuracy if the target is Minimized - CPokeBattle_Move_14ETwo turn attack. Skips first turn, increases the user's Special Attack, Special Defense and Speed by 2 stages each second turn. (Geomancy) - CPokeBattle_Move_14FUser gains 3/4 the HP it inflicts as damage. (Draining Kiss, Oblivion Wing) - CPokeBattle_Move_150If this move KO's the target, increases the user's Attack by 2 stages. (Fell Stinger) - CPokeBattle_Move_151Decreases the target's Attack and Special Attack by 1 stage each. Then, user switches out. Ignores trapping moves. (Parting Shot) TODO: Pursuit should interrupt this move - CPokeBattle_Move_152No Pokémon can switch out or flee until the end of the next round, as long as the user remains active. (Fairy Lock) - CPokeBattle_Move_153Entry hazard. Lays stealth rocks on the opposing side. (Sticky Web) - CPokeBattle_Move_154For 5 rounds, creates an electric terrain which boosts Electric-type moves and prevents Pokémon from falling asleep. Affects non-airborne Pokémon only. (Electric Terrain) - CPokeBattle_Move_155For 5 rounds, creates a grassy terrain which boosts Grass-type moves and heals Pokémon at the end of each round. Affects non-airborne Pokémon only. (Grassy Terrain) - CPokeBattle_Move_156For 5 rounds, creates a misty terrain which weakens Dragon-type moves and protects Pokémon from status problems. Affects non-airborne Pokémon only. (Misty Terrain) - CPokeBattle_Move_157Doubles the prize money the player gets after winning the battle. (Happy Hour) - CPokeBattle_Move_158Fails unless user has consumed a berry at some point. (Belch) - CPokeBattle_RecordedBattle - CPokeBattle_RecordedBattleArena - CPokeBattle_RecordedBattleModule - CPokeBattle_RecordedBattlePalace - CPokeBattle_SafariZone - CPokeBattle_StruggleImplements the move Struggle. For cases where the real move named Struggle is not defined - CPokeBattle_UnimplementedMoveSuperclass that handles moves using a non-existent function code. Damaging moves just do damage with no additional effect. Non-damaging moves always fail - CPokemonA Pokemon placeholder class to be used while in-battle, to prevent changes from being permanent to original pokemon profile + CPokeBattle_BattlePalace + CPokeBattle_BattlePlayerModulePlayback? + CPokeBattle_ConfusionPseudomove for confusion damage + CPokeBattle_FailedMoveSuperclass for a failed move. Always fails. This class is unused + CPokeBattle_MoveUses current battle and manipulates the data then return the current battle with updated values. + CPokeBattle_Move_000No additional effect + CPokeBattle_Move_001Does absolutely nothing. (Splash) + CPokeBattle_Move_002Struggle. Overrides the default Struggle effect above + CPokeBattle_Move_003Puts the target to sleep + CPokeBattle_Move_004Makes the target drowsy; it will fall asleep at the end of the next turn. (Yawn) + CPokeBattle_Move_005Poisons the target + CPokeBattle_Move_006Badly poisons the target. (Poison Fang, Toxic) (Handled in Pokemon's SuccessCheck): Hits semi-invulnerable targets if user is Poison-type and move is status move + CPokeBattle_Move_007Paralyzes the target. Thunder Wave: Doesn't affect target if move's type has no effect on it. Bolt Strike: Powers up the next Fusion Flare used this round + CPokeBattle_Move_008Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_009Paralyzes the target. May cause the target to flinch. (Thunder Fang) + CPokeBattle_Move_00ABurns the target. Blue Flare: Powers up the next Fusion Bolt used this round + CPokeBattle_Move_00BBurns the target. May cause the target to flinch. (Fire Fang) + CPokeBattle_Move_00CFreezes the target + CPokeBattle_Move_00DFreezes the target. Accuracy perfect in hail. (Blizzard) + CPokeBattle_Move_00EFreezes the target. May cause the target to flinch. (Ice Fang) + CPokeBattle_Move_00FCauses the target to flinch + CPokeBattle_Move_010Causes the target to flinch. Does double damage and has perfect accuracy if the target is Minimized + CPokeBattle_Move_011Causes the target to flinch. Fails if the user is not asleep. (Snore) + CPokeBattle_Move_012Causes the target to flinch. Fails if this isn't the user's first turn. (Fake Out) + CPokeBattle_Move_013Confuses the target + CPokeBattle_Move_014Confuses the target. Chance of causing confusion depends on the cry's volume. Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) TODO: Play the actual chatter cry as part of the move animation this.battle.scene.Chatter(attacker,opponent) // Just plays cry + CPokeBattle_Move_015Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_016Attracts the target. (Attract) + CPokeBattle_Move_017Burns, freezes or paralyzes the target. (Tri Attack) + CPokeBattle_Move_018Cures user of burn, poison and paralysis. (Refresh) + CPokeBattle_Move_019Cures all party Pokémon of permanent status problems. (Aromatherapy, Heal Bell) + CPokeBattle_Move_01ASafeguards the user's side from being inflicted with status problems. (Safeguard) + CPokeBattle_Move_01BUser passes its status problem to the target. (Psycho Shift) + CPokeBattle_Move_01CIncreases the user's Attack by 1 stage + CPokeBattle_Move_01DIncreases the user's Defense by 1 stage + CPokeBattle_Move_01EIncreases the user's Defense by 1 stage. User curls up. (Defense Curl) + CPokeBattle_Move_01FIncreases the user's Speed by 1 stage + CPokeBattle_Move_020Increases the user's Special Attack by 1 stage + CPokeBattle_Move_021Increases the user's Special Defense by 1 stage. Charges up user's next attack if it is Electric-type. (Charge) + CPokeBattle_Move_022Increases the user's evasion by 1 stage + CPokeBattle_Move_023Increases the user's critical hit rate. (Focus Energy) + CPokeBattle_Move_024Increases the user's Attack and Defense by 1 stage each. (Bulk Up) + CPokeBattle_Move_025Increases the user's Attack, Defense and accuracy by 1 stage each. (Coil) + CPokeBattle_Move_026Increases the user's Attack and Speed by 1 stage each. (Dragon Dance) + CPokeBattle_Move_027Increases the user's Attack and Special Attack by 1 stage each. (Work Up) + CPokeBattle_Move_028Increases the user's Attack and Sp. Attack by 1 stage each. In sunny weather, increase is 2 stages each instead. (Growth) + CPokeBattle_Move_029Increases the user's Attack and accuracy by 1 stage each. (Hone Claws) + CPokeBattle_Move_02AIncreases the user's Defense and Special Defense by 1 stage each. (Cosmic Power) + CPokeBattle_Move_02BIncreases the user's Sp. Attack, Sp. Defense and Speed by 1 stage each. (Quiver Dance) + CPokeBattle_Move_02CIncreases the user's Sp. Attack and Sp. Defense by 1 stage each. (Calm Mind) + CPokeBattle_Move_02DIncreases the user's Attack, Defense, Speed, Special Attack and Special Defense by 1 stage each. (AncientPower, Ominous Wind, Silver Wind) + CPokeBattle_Move_02EIncreases the user's Attack by 2 stages + CPokeBattle_Move_02FIncreases the user's Defense by 2 stages + CPokeBattle_Move_030Increases the user's Speed by 2 stages + CPokeBattle_Move_031Increases the user's Speed by 2 stages. Lowers user's weight by 100kg. (Autotomize) + CPokeBattle_Move_032Increases the user's Special Attack by 2 stages + CPokeBattle_Move_033Increases the user's Special Defense by 2 stages + CPokeBattle_Move_034Increases the user's evasion by 2 stages. Minimizes the user. (Minimize) + CPokeBattle_Move_035Decreases the user's Defense and Special Defense by 1 stage each. (Shell Smash) Increases the user's Attack, Speed and Special Attack by 2 stages each + CPokeBattle_Move_036Increases the user's Speed by 2 stages, and its Attack by 1 stage. (Shift Gear) + CPokeBattle_Move_037Increases one random stat of the user by 2 stages (except HP). (Acupressure) + CPokeBattle_Move_038Increases the user's Defense by 3 stages + CPokeBattle_Move_039Increases the user's Special Attack by 3 stages + CPokeBattle_Move_03AReduces the user's HP by half of max, and sets its Attack to maximum. (Belly Drum) + CPokeBattle_Move_03BDecreases the user's Attack and Defense by 1 stage each. (Superpower) + CPokeBattle_Move_03CDecreases the user's Defense and Special Defense by 1 stage each. (Close Combat) + CPokeBattle_Move_03DDecreases the user's Defense, Special Defense and Speed by 1 stage each. User's ally loses 1/16 of its total HP. (V-create) + CPokeBattle_Move_03EDecreases the user's Speed by 1 stage + CPokeBattle_Move_03FDecreases the user's Special Attack by 2 stages + CPokeBattle_Move_040Increases the target's Special Attack by 1 stage. Confuses the target. (Flatter) + CPokeBattle_Move_041Increases the target's Attack by 2 stages. Confuses the target. (Swagger) + CPokeBattle_Move_042Decreases the target's Attack by 1 stage + CPokeBattle_Move_043Decreases the target's Defense by 1 stage + CPokeBattle_Move_044Decreases the target's Speed by 1 stage + CPokeBattle_Move_045Decreases the target's Special Attack by 1 stage + CPokeBattle_Move_046Decreases the target's Special Defense by 1 stage + CPokeBattle_Move_047Decreases the target's accuracy by 1 stage + CPokeBattle_Move_048Decreases the target's evasion by 1 stage OR 2 stages. (Sweet Scent) + CPokeBattle_Move_049Decreases the target's evasion by 1 stage. Ends all barriers and entry hazards for the target's side OR on both sides. (Defog) + CPokeBattle_Move_04ADecreases the target's Attack and Defense by 1 stage each. (Tickle) + CPokeBattle_Move_04BDecreases the target's Attack by 2 stages + CPokeBattle_Move_04CDecreases the target's Defense by 2 stages. (Screech) + CPokeBattle_Move_04DDecreases the target's Speed by 2 stages. (Cotton Spore, Scary Face, String Shot) + CPokeBattle_Move_04EDecreases the target's Special Attack by 2 stages. Only works on the opposite gender. (Captivate) + CPokeBattle_Move_04FDecreases the target's Special Defense by 2 stages + CPokeBattle_Move_050Resets all target's stat stages to 0. (Clear Smog) + CPokeBattle_Move_051Resets all stat stages for all battlers to 0. (Haze) + CPokeBattle_Move_052User and target swap their Attack and Special Attack stat stages. (Power Swap) + CPokeBattle_Move_053User and target swap their Defense and Special Defense stat stages. (Guard Swap) + CPokeBattle_Move_054User and target swap all their stat stages. (Heart Swap) + CPokeBattle_Move_055User copies the target's stat stages. (Psych Up) + CPokeBattle_Move_056For 5 rounds, user's and ally's stat stages cannot be lowered by foes. (Mist) + CPokeBattle_Move_057Swaps the user's Attack and Defense stats. (Power Trick) + CPokeBattle_Move_058Averages the user's and target's Attack. Averages the user's and target's Special Attack. (Power Split) + CPokeBattle_Move_059Averages the user's and target's Defense. Averages the user's and target's Special Defense. (Guard Split) + CPokeBattle_Move_05AAverages the user's and target's current HP. (Pain Split) + CPokeBattle_Move_05BFor 4 rounds, doubles the Speed of all battlers on the user's side. (Tailwind) + CPokeBattle_Move_05CThis move turns into the last move used by the target, until user switches out. (Mimic) + CPokeBattle_Move_05DThis move permanently turns into the last move used by the target. (Sketch) + CPokeBattle_Move_05EChanges user's type to that of a random user's move, except this one, OR the user's first move's type. (Conversion) + CPokeBattle_Move_05FChanges user's type to a random one that resists/is immune to the last move used by the target. (Conversion 2) + CPokeBattle_Move_060Changes user's type depending on the environment. (Camouflage) + CPokeBattle_Move_061Target becomes Water type. (Soak) + CPokeBattle_Move_062User copes target's types. (Reflect Type) + CPokeBattle_Move_063Target's ability becomes Simple. (Simple Beam) + CPokeBattle_Move_064Target's ability becomes Insomnia. (Worry Seed) + CPokeBattle_Move_065User copies target's ability. (Role Play) + CPokeBattle_Move_066Target copies user's ability. (Entrainment) + CPokeBattle_Move_067User and target swap abilities. (Skill Swap) + CPokeBattle_Move_068Target's ability is negated. (Gastro Acid) + CPokeBattle_Move_069User transforms into the target. (Transform) + CPokeBattle_Move_06AInflicts a fixed 20HP damage. (SonicBoom) + CPokeBattle_Move_06BInflicts a fixed 40HP damage. (Dragon Rage) + CPokeBattle_Move_06CHalves the target's current HP. (Super Fang) + CPokeBattle_Move_06DInflicts damage equal to the user's level. (Night Shade, Seismic Toss) + CPokeBattle_Move_06EInflicts damage to bring the target's HP down to equal the user's HP. (Endeavor) + CPokeBattle_Move_06FInflicts damage between 0.5 and 1.5 times the user's level. (Psywave) + CPokeBattle_Move_070OHKO. Accuracy increases by difference between levels of user and target + CPokeBattle_Move_071Counters a physical move used against the user this round, with 2x the power. (Counter) + CPokeBattle_Move_072Counters a specical move used against the user this round, with 2x the power. (Mirror Coat) + CPokeBattle_Move_073Counters the last damaging move used against the user this round, with 1.5x the power. (Metal Burst) + CPokeBattle_Move_074The target's ally loses 1/16 of its max HP. (Flame Burst) + CPokeBattle_Move_075Power is doubled if the target is using Dive. (Surf) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_076Power is doubled if the target is using Dig. Power is halved if Grassy Terrain is in effect. (Earthquake) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_077Power is doubled if the target is using Bounce, Fly or Sky Drop. (Gust) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_078Power is doubled if the target is using Bounce, Fly or Sky Drop. (Twister) May make the target flinch. (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_079Power is doubled if Fusion Flare has already been used this round. (Fusion Bolt) + CPokeBattle_Move_07APower is doubled if Fusion Bolt has already been used this round. (Fusion Flare) + CPokeBattle_Move_07BPower is doubled if the target is poisoned. (Venoshock) + CPokeBattle_Move_07CPower is doubled if the target is paralyzed. Cures the target of paralysis. (SmellingSalt) + CPokeBattle_Move_07DPower is doubled if the target is asleep. Wakes the target up. (Wake-Up Slap) + CPokeBattle_Move_07EPower is doubled if the user is burned, poisoned or paralyzed. (Facade) + CPokeBattle_Move_07FPower is doubled if the target has a status problem. (Hex) + CPokeBattle_Move_080Power is doubled if the target's HP is down to 1/2 or less. (Brine) + CPokeBattle_Move_081Power is doubled if the user has lost HP due to the target's move this round. (Revenge, Avalanche) + CPokeBattle_Move_082Power is doubled if the target has already lost HP this round. (Assurance) + CPokeBattle_Move_083Power is doubled if a user's ally has already used this move this round. (Round) If an ally is about to use the same move, make it go next, ignoring priority + CPokeBattle_Move_084Power is doubled if the target has already moved this round. (Payback) + CPokeBattle_Move_085Power is doubled if a user's teammate fainted last round. (Retaliate) + CPokeBattle_Move_086Power is doubled if the user has no held item. (Acrobatics) + CPokeBattle_Move_087Power is doubled in weather. Type changes depending on the weather. (Weather Ball) + CPokeBattle_Move_088Power is doubled if a foe tries to switch out or use U-turn/Volt Switch/ Parting Shot. (Pursuit) (Handled in Battle's AttackPhase): Makes this attack happen before switching + CPokeBattle_Move_089Power increases with the user's happiness. (Return) + CPokeBattle_Move_08APower decreases with the user's happiness. (Frustration) + CPokeBattle_Move_08BPower increases with the user's HP. (Eruption, Water Spout) + CPokeBattle_Move_08CPower increases with the target's HP. (Crush Grip, Wring Out) + CPokeBattle_Move_08DPower increases the quicker the target is than the user. (Gyro Ball) + CPokeBattle_Move_08EPower increases with the user's positive stat changes (ignores negative ones). (Stored Power) + CPokeBattle_Move_08FPower increases with the target's positive stat changes (ignores negative ones). (Punishment) + CPokeBattle_Move_090Power and type depends on the user's IVs. (Hidden Power) + CPokeBattle_Move_091Power doubles for each consecutive use. (Fury Cutter) + CPokeBattle_Move_092Power is multiplied by the number of consecutive rounds in which this move was used by any Pokémon on the user's side. (Echoed Voice) + CPokeBattle_Move_093User rages until the start of a round in which they don't use this move. (Rage) (Handled in Pokemon's ProcessMoveAgainstTarget): Ups rager's Attack by 1 stage each time it loses HP due to a move + CPokeBattle_Move_094Randomly damages or heals the target. (Present) + CPokeBattle_Move_095Power is chosen at random. Power is doubled if the target is using Dig. (Magnitude) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_096Power and type depend on the user's held berry. Destroys the berry. (Natural Gift) + CPokeBattle_Move_097Power increases the less PP this move has. (Trump Card) + CPokeBattle_Move_098Power increases the less HP the user has. (Flail, Reversal) + CPokeBattle_Move_099Power increases the quicker the user is than the target. (Electro Ball) + CPokeBattle_Move_09APower increases the heavier the target is. (Grass Knot, Low Kick) + CPokeBattle_Move_09BPower increases the heavier the user is than the target. (Heat Crash, Heavy Slam) + CPokeBattle_Move_09CPowers up the ally's attack this round by 1.5. (Helping Hand) + CPokeBattle_Move_09DWeakens Electric attacks. (Mud Sport) + CPokeBattle_Move_09EWeakens Fire attacks. (Water Sport) + CPokeBattle_Move_09FType depends on the user's held item. (Judgment, Techno Blast) + CPokeBattle_Move_0A0This attack is always a critical hit. (Frost Breath, Storm Throw) + CPokeBattle_Move_0A1For 5 rounds, foes' attacks cannot become critical hits. (Lucky Chant) + CPokeBattle_Move_0A2For 5 rounds, lowers power of physical attacks against the user's side. (Reflect) + CPokeBattle_Move_0A3For 5 rounds, lowers power of special attacks against the user's side. (Light Screen) + CPokeBattle_Move_0A4Effect depends on the environment. (Secret Power) + CPokeBattle_Move_0A5Always hits + CPokeBattle_Move_0A6User's attack next round against the target will definitely hit. (Lock-On, Mind Reader) + CPokeBattle_Move_0A7Target's evasion stat changes are ignored from now on. (Foresight, Odor Sleuth) Normal and Fighting moves have normal effectiveness against the Ghost-type target + CPokeBattle_Move_0A8Target's evasion stat changes are ignored from now on. (Miracle Eye) Psychic moves have normal effectiveness against the Dark-type target + CPokeBattle_Move_0A9This move ignores target's Defense, Special Defense and evasion stat changes. (Chip Away, Sacred Sword) + CPokeBattle_Move_0AAUser is protected against moves with the "B" flag this round. (Detect, Protect) + CPokeBattle_Move_0ABUser's side is protected against moves with priority greater than 0 this round. (Quick Guard) + CPokeBattle_Move_0ACUser's side is protected against moves that target multiple battlers this round. (Wide Guard) + CPokeBattle_Move_0ADIgnores target's protections. If successful, all other moves this round ignore them too. (Feint) + CPokeBattle_Move_0AEUses the last move that the target used. (Mirror Move) + CPokeBattle_Move_0AFUses the last move that was used. (Copycat) + CPokeBattle_Move_0B0Uses the move the target was about to use this round, with 1.5x power. (Me First) + CPokeBattle_Move_0B1This round, reflects all moves with the "C" flag targeting the user back at their origin. (Magic Coat) + CPokeBattle_Move_0B2This round, snatches all used moves with the "D" flag. (Snatch) + CPokeBattle_Move_0B3Uses a different move depending on the environment. (Nature Power) + CPokeBattle_Move_0B4Uses a random move the user knows. Fails if user is not asleep. (Sleep Talk) + CPokeBattle_Move_0B5Uses a random move known by any non-user Pokémon in the user's party. (Assist) + CPokeBattle_Move_0B6Uses a random move that exists. (Metronome) + CPokeBattle_Move_0B7The target can no longer use the same move twice in a row. (Torment) + CPokeBattle_Move_0B8Disables all target's moves that the user also knows. (Imprison) + CPokeBattle_Move_0B9For 5 rounds, disables the last move the target used. (Disable) + CPokeBattle_Move_0BAFor 4 rounds, disables the target's non-damaging moves. (Taunt) + CPokeBattle_Move_0BBFor 5 rounds, disables the target's healing moves. (Heal Block) + CPokeBattle_Move_0BCFor 4 rounds, the target must use the same move each round. (Encore) + CPokeBattle_Move_0BDHits twice + CPokeBattle_Move_0BEHits twice. May poison the target on each hit. (Twineedle) + CPokeBattle_Move_0BFHits 3 times. Power is multiplied by the hit number. (Triple Kick) An accuracy check is performed for each hit + CPokeBattle_Move_0C0Hits 2-5 times + CPokeBattle_Move_0C1Hits X times, where X is 1 (the user) plus the number of non-user unfainted status-free Pokémon in the user's party (the participants). Fails if X is 0. Base power of each hit depends on the base Attack stat for the species of that hit's participant. (Beat Up) + CPokeBattle_Move_0C2Two turn attack. Attacks first turn, skips second turn (if successful) + CPokeBattle_Move_0C3Two turn attack. Skips first turn, attacks second turn. (Razor Wind) + CPokeBattle_Move_0C4Two turn attack. Skips first turn, attacks second turn. (SolarBeam) Power halved in all weather except sunshine. In sunshine, takes 1 turn instead + CPokeBattle_Move_0C5Two turn attack. Skips first turn, attacks second turn. (Freeze Shock) May paralyze the target + CPokeBattle_Move_0C6Two turn attack. Skips first turn, attacks second turn. (Ice Burn) May burn the target + CPokeBattle_Move_0C7Two turn attack. Skips first turn, attacks second turn. (Sky Attack) May make the target flinch + CPokeBattle_Move_0C8Two turn attack. Ups user's Defense by 1 stage first turn, attacks second turn. (Skull Bash) + CPokeBattle_Move_0C9Two turn attack. Skips first turn, attacks second turn. (Fly) (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use + CPokeBattle_Move_0CATwo turn attack. Skips first turn, attacks second turn. (Dig) (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use + CPokeBattle_Move_0CBTwo turn attack. Skips first turn, attacks second turn. (Dive) (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use + CPokeBattle_Move_0CCTwo turn attack. Skips first turn, attacks second turn. (Bounce) May paralyze the target. (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use + CPokeBattle_Move_0CDTwo turn attack. Skips first turn, attacks second turn. (Shadow Force) Is invulnerable during use. Ignores target's Detect, King's Shield, Mat Block, Protect and Spiky Shield this round. If successful, negates them this round + CPokeBattle_Move_0CETwo turn attack. Skips first turn, attacks second turn. (Sky Drop) (Handled in Pokemon's SuccessCheck): Is semi-invulnerable during use. Target is also semi-invulnerable during use, and can't take any action. Doesn't damage airborne Pokémon (but still makes them unable to move during) + CPokeBattle_Move_0CFTrapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP at end of each round + CPokeBattle_Move_0D0Trapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP at end of each round. (Whirlpool) Power is doubled if target is using Dive. (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_0D1User must use this move for 2 more rounds. No battlers can sleep. (Uproar) + CPokeBattle_Move_0D2User must use this move for 1 or 2 more rounds. At end, user becomes confused. (Outrage, Petal Dange, Thrash) + CPokeBattle_Move_0D3User must use this move for 4 more rounds. Power doubles each round. Power is also doubled if user has curled up. (Ice Ball, Rollout) + CPokeBattle_Move_0D4User bides its time this round and next round. The round after, deals 2x the total damage it took while biding to the last battler that damaged it. (Bide) + CPokeBattle_Move_0D5Heals user by 1/2 of its max HP + CPokeBattle_Move_0D6Heals user by 1/2 of its max HP. (Roost) User roosts, and its Flying type is ignored for attacks used against it + CPokeBattle_Move_0D7Pokemon in user's position is healed by 1/2 of its max HP, at the end of the next round. (Wish) + CPokeBattle_Move_0D8Heals user by an amount depending on the weather. (Moonlight, Morning Sun, Synthesis) + CPokeBattle_Move_0D9Heals user to full HP. User falls asleep for 2 more rounds. (Rest) + CPokeBattle_Move_0DARings the user. Ringed Pokémon gain 1/16 of max HP at the end of each round. (Aqua Ring) + CPokeBattle_Move_0DBIngrains the user. Ingrained Pokémon gain 1/16 of max HP at the end of each round, and cannot flee or switch out. (Ingrain) + CPokeBattle_Move_0DCSeeds the target. Seeded Pokémon lose 1/8 of max HP at the end of each round, and the Pokémon in the user's position gains the same amount. (Leech Seed) + CPokeBattle_Move_0DDUser gains half the HP it inflicts as damage + CPokeBattle_Move_0DEUser gains half the HP it inflicts as damage. (Dream Eater) (Handled in Pokemon's SuccessCheck): Fails if target is not asleep + CPokeBattle_Move_0DFHeals target by 1/2 of its max HP. (Heal Pulse) + CPokeBattle_Move_0E0User faints. (Explosion, Selfdestruct) + CPokeBattle_Move_0E1Inflicts fixed damage equal to user's current HP. (Final Gambit) User faints (if successful) + CPokeBattle_Move_0E2Decreases the target's Attack and Special Attack by 2 stages each. (Memento) User faints (even if effect does nothing) + CPokeBattle_Move_0E3User faints. The Pokémon that replaces the user is fully healed (HP and status). Fails if user won't be replaced. (Healing Wish) + CPokeBattle_Move_0E4User faints. The Pokémon that replaces the user is fully healed (HP, PP and status). Fails if user won't be replaced. (Lunar Dance) + CPokeBattle_Move_0E5All current battlers will perish after 3 more rounds. (Perish Song) + CPokeBattle_Move_0E6If user is KO'd before it next moves, the attack that caused it loses all PP. (Grudge) + CPokeBattle_Move_0E7If user is KO'd before it next moves, the battler that caused it also faints. (Destiny Bond) + CPokeBattle_Move_0E8If user would be KO'd this round, it survives with 1HP instead. (Endure) + CPokeBattle_Move_0E9If target would be KO'd by this attack, it survives with 1HP instead. (False Swipe) + CPokeBattle_Move_0EAUser flees from battle. Fails in trainer battles. (Teleport) + CPokeBattle_Move_0EBIn wild battles, makes target flee. Fails if target is a higher level than the user. In trainer battles, target switches out. For status moves. (Roar, Whirlwind) + CPokeBattle_Move_0ECIn wild battles, makes target flee. Fails if target is a higher level than the user. In trainer battles, target switches out. For damaging moves. (Circle Throw, Dragon Tail) + CPokeBattle_Move_0EDUser switches out. Various effects affecting the user are passed to the replacement. (Baton Pass) + CPokeBattle_Move_0EEAfter inflicting damage, user switches out. Ignores trapping moves. (U-turn, Volt Switch) TODO: Pursuit should interrupt this move + CPokeBattle_Move_0EFTarget can no longer switch out or flee, as long as the user remains active. (Block, Mean Look, Spider Web, Thousand Waves) + CPokeBattle_Move_0F0Target drops its item. It regains the item at the end of the battle. (Knock Off) If target has a losable item, damage is multiplied by 1.5 + CPokeBattle_Move_0F1User steals the target's item, if the user has none itself. (Covet, Thief) Items stolen from wild Pokémon are kept after the battle + CPokeBattle_Move_0F2User and target swap items. They remain swapped after wild battles. (Switcheroo, Trick) + CPokeBattle_Move_0F3User gives its item to the target. The item remains given after wild battles. (Bestow) + CPokeBattle_Move_0F4User consumes target's berry and gains its effect. (Bug Bite, Pluck) + CPokeBattle_Move_0F5Target's berry is destroyed. (Incinerate) + CPokeBattle_Move_0F6User recovers the last item it held and consumed. (Recycle) + CPokeBattle_Move_0F7User flings its item at the target. Power and effect depend on the item. (Fling) + CPokeBattle_Move_0F8For 5 rounds, the target cannnot use its held item, its held item has no effect, and no items can be used on it. (Embargo) + CPokeBattle_Move_0F9For 5 rounds, all held items cannot be used in any way and have no effect. Held items can still change hands, but can't be thrown. (Magic Room) + CPokeBattle_Move_0FAUser takes recoil damage equal to 1/4 of the damage this move dealt + CPokeBattle_Move_0FBUser takes recoil damage equal to 1/3 of the damage this move dealt + CPokeBattle_Move_0FCUser takes recoil damage equal to 1/2 of the damage this move dealt. (Head Smash) + CPokeBattle_Move_0FDUser takes recoil damage equal to 1/3 of the damage this move dealt. May paralyze the target. (Volt Tackle) + CPokeBattle_Move_0FEUser takes recoil damage equal to 1/3 of the damage this move dealt. May burn the target. (Flare Blitz) + CPokeBattle_Move_0FFStarts sunny weather. (Sunny Day) + CPokeBattle_Move_100Starts rainy weather. (Rain Dance) + CPokeBattle_Move_101Starts sandstorm weather. (Sandstorm) + CPokeBattle_Move_102Starts hail weather. (Hail) + CPokeBattle_Move_103Entry hazard. Lays spikes on the opposing side (max. 3 layers). (Spikes) + CPokeBattle_Move_104Entry hazard. Lays poison spikes on the opposing side (max. 2 layers). (Toxic Spikes) + CPokeBattle_Move_105Entry hazard. Lays stealth rocks on the opposing side. (Stealth Rock) + CPokeBattle_Move_106Forces ally's Pledge move to be used next, if it hasn't already. (Grass Pledge) Combo's with ally's Pledge move if it was just used. Power is doubled, and causes either a sea of fire or a swamp on the opposing side + CPokeBattle_Move_107Forces ally's Pledge move to be used next, if it hasn't already. (Fire Pledge) Combo's with ally's Pledge move if it was just used. Power is doubled, and causes either a sea of fire on the opposing side or a rainbow on the user's side + CPokeBattle_Move_108Forces ally's Pledge move to be used next, if it hasn't already. (Water Pledge) Combo's with ally's Pledge move if it was just used. Power is doubled, and causes either a swamp on the opposing side or a rainbow on the user's side + CPokeBattle_Move_109Scatters coins that the player picks up after winning the battle. (Pay Day) + CPokeBattle_Move_10AEnds the opposing side's Light Screen and Reflect. (Brick Break) + CPokeBattle_Move_10BIf attack misses, user takes crash damage of 1/2 of max HP. (Hi Jump Kick, Jump Kick) + CPokeBattle_Move_10CUser turns 1/4 of max HP into a substitute. (Substitute) + CPokeBattle_Move_10DUser is not Ghost: Decreases the user's Speed, increases the user's Attack & Defense by 1 stage each. User is Ghost: User loses 1/2 of max HP, and curses the target. Cursed Pokémon lose 1/4 of their max HP at the end of each round. (Curse) + CPokeBattle_Move_10ETarget's last move used loses 4 PP. (Spite) + CPokeBattle_Move_10FTarget will lose 1/4 of max HP at end of each round, while asleep. (Nightmare) + CPokeBattle_Move_110Removes trapping moves, entry hazards and Leech Seed on user/user's side. (Rapid Spin) + CPokeBattle_Move_111Attacks 2 rounds in the future. (Doom Desire, Future Sight) + CPokeBattle_Move_112Increases the user's Defense and Special Defense by 1 stage each. Ups the user's stockpile by 1 (max. 3). (Stockpile) + CPokeBattle_Move_113Power is 100 multiplied by the user's stockpile (X). Resets the stockpile to 0. Decreases the user's Defense and Special Defense by X stages each. (Spit Up) + CPokeBattle_Move_114Heals user depending on the user's stockpile (X). Resets the stockpile to 0. Decreases the user's Defense and Special Defense by X stages each. (Swallow) + CPokeBattle_Move_115Fails if user was hit by a damaging move this round. (Focus Punch) + CPokeBattle_Move_116Fails if the target didn't chose a damaging move to use this round, or has already moved. (Sucker Punch) + CPokeBattle_Move_117This round, user becomes the target of attacks that have single targets. (Follow Me, Rage Powder) + CPokeBattle_Move_118For 5 rounds, increases gravity on the field. Pokémon cannot become airborne. (Gravity) + CPokeBattle_Move_119For 5 rounds, user becomes airborne. (Magnet Rise) + CPokeBattle_Move_11AFor 3 rounds, target becomes airborne and can always be hit. (Telekinesis) + CPokeBattle_Move_11BHits airborne semi-invulnerable targets. (Sky Uppercut) + CPokeBattle_Move_11CGrounds the target while it remains active. (Smack Down, Thousand Arrows) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets + CPokeBattle_Move_11DTarget moves immediately after the user, ignoring priority/speed. (After You) + CPokeBattle_Move_11ETarget moves last this round, ignoring priority/speed. (Quash) + CPokeBattle_Move_11FFor 5 rounds, for each priority bracket, slow Pokémon move before fast ones. (Trick Room) + CPokeBattle_Move_120User switches places with its ally. (Ally Switch) + CPokeBattle_Move_121Target's Attack is used instead of user's Attack for this move's calculations. (Foul Play) + CPokeBattle_Move_122Target's Defense is used instead of its Special Defense for this move's calculations. (Psyshock, Psystrike, Secret Sword) + CPokeBattle_Move_123Only damages Pokémon that share a type with the user. (Synchronoise) + CPokeBattle_Move_124For 5 rounds, swaps all battlers' base Defense with base Special Defense. (Wonder Room) + CPokeBattle_Move_125Fails unless user has already used all other moves it knows. (Last Resort) + CPokeBattle_Move_126No additional effect. (Shadow Blast, Shadow Blitz, Shadow Break, Shadow Rave, Shadow Rush, Shadow Wave) + CPokeBattle_Move_127Paralyzes the target. (Shadow Bolt) + CPokeBattle_Move_128Burns the target. (Shadow Fire) + CPokeBattle_Move_129Freezes the target. (Shadow Chill) + CPokeBattle_Move_12AConfuses the target. (Shadow Panic) + CPokeBattle_Move_12BDecreases the target's Defense by 2 stages. (Shadow Down) + CPokeBattle_Move_12CDecreases the target's evasion by 2 stages. (Shadow Mist) + CPokeBattle_Move_12DPower is doubled if the target is using Dive. (Shadow Storm) + CPokeBattle_Move_12ETwo turn attack. On first turn, halves the HP of all active Pokémon. Skips second turn (if successful). (Shadow Half) + CPokeBattle_Move_12FTarget can no longer switch out or flee, as long as the user remains active. (Shadow Hold) + CPokeBattle_Move_130User takes recoil damage equal to 1/2 of its current HP. (Shadow End) + CPokeBattle_Move_131Starts shadow weather. (Shadow Sky) + CPokeBattle_Move_132Ends the effects of Light Screen, Reflect and Safeguard on both sides. (Shadow Shed) + CPokeBattle_Move_133Does absolutely nothing. (Hold Hands) + CPokeBattle_Move_134Does absolutely nothing. Shows a special message. (Celebrate) + CPokeBattle_Move_135Freezes the target. (Freeze-Dry) (Superclass's TypeModifier): Effectiveness against Water-type is 2x + CPokeBattle_Move_136Increases the user's Defense by 1 stage for each target hit. (Diamond Storm) + CPokeBattle_Move_137Increases the user's and its ally's Defense and Special Defense by 1 stage each, if they have Plus or Minus. (Magnetic Flux) + CPokeBattle_Move_138Increases ally's Special Defense by 1 stage. (Aromatic Mist) + CPokeBattle_Move_139Decreases the target's Attack by 1 stage. Always hits. (Play Nice) + CPokeBattle_Move_13ADecreases the target's Attack and Special Attack by 1 stage each. (Noble Roar) + CPokeBattle_Move_13BDecreases the target's Defense by 1 stage. Always hits. (Hyperspace Fury) + CPokeBattle_Move_13CDecreases the target's Special Attack by 1 stage. Always hits. (Confide) + CPokeBattle_Move_13DDecreases the target's Special Attack by 2 stages. (Eerie Impulse) + CPokeBattle_Move_13EIncreases the Attack and Special Attack of all Grass-type Pokémon on the field by 1 stage each. Doesn't affect airborne Pokémon. (Rototiller) + CPokeBattle_Move_13FIncreases the Defense of all Grass-type Pokémon on the field by 1 stage each. (Flower Shield) + CPokeBattle_Move_140Decreases the Attack, Special Attack and Speed of all poisoned opponents by 1 stage each. (Venom Drench) + CPokeBattle_Move_141Reverses all stat changes of the target. (Topsy-Turvy) + CPokeBattle_Move_142Gives target the Ghost type. (Trick-or-Treat) + CPokeBattle_Move_143Gives target the Grass type. (Forest's Curse) + CPokeBattle_Move_144Damage is multiplied by Flying's effectiveness against the target. Does double damage and has perfect accuracy if the target is Minimized. (Flying Press) + CPokeBattle_Move_145Target's moves become Electric-type for the rest of the round. (Electrify) + CPokeBattle_Move_146All Normal-type moves become Electric-type for the rest of the round. (Ion Deluge) + CPokeBattle_Move_147Always hits. (Hyperspace Hole) TODO: Hits through various shields + CPokeBattle_Move_148Powders the foe. This round, if it uses a Fire move, it loses 1/4 of its max HP instead. (Powder) + CPokeBattle_Move_149This round, the user's side is unaffected by damaging moves. (Mat Block) + CPokeBattle_Move_14AUser's side is protected against status moves this round. (Crafty Shield) + CPokeBattle_Move_14BUser is protected against damaging moves this round. Decreases the Attack of the user of a stopped contact move by 2 stages. (King's Shield) + CPokeBattle_Move_14CUser is protected against moves that target it this round. Damages the user of a stopped contact move by 1/8 of its max HP. (Spiky Shield) + CPokeBattle_Move_14DTwo turn attack. Skips first turn, attacks second turn. (Phantom Force) Is invulnerable during use. Ignores target's Detect, King's Shield, Mat Block, Protect and Spiky Shield this round. If successful, negates them this round. Does double damage and has perfect accuracy if the target is Minimized + CPokeBattle_Move_14ETwo turn attack. Skips first turn, increases the user's Special Attack, Special Defense and Speed by 2 stages each second turn. (Geomancy) + CPokeBattle_Move_14FUser gains 3/4 the HP it inflicts as damage. (Draining Kiss, Oblivion Wing) + CPokeBattle_Move_150If this move KO's the target, increases the user's Attack by 2 stages. (Fell Stinger) + CPokeBattle_Move_151Decreases the target's Attack and Special Attack by 1 stage each. Then, user switches out. Ignores trapping moves. (Parting Shot) TODO: Pursuit should interrupt this move + CPokeBattle_Move_152No Pokémon can switch out or flee until the end of the next round, as long as the user remains active. (Fairy Lock) + CPokeBattle_Move_153Entry hazard. Lays stealth rocks on the opposing side. (Sticky Web) + CPokeBattle_Move_154For 5 rounds, creates an electric terrain which boosts Electric-type moves and prevents Pokémon from falling asleep. Affects non-airborne Pokémon only. (Electric Terrain) + CPokeBattle_Move_155For 5 rounds, creates a grassy terrain which boosts Grass-type moves and heals Pokémon at the end of each round. Affects non-airborne Pokémon only. (Grassy Terrain) + CPokeBattle_Move_156For 5 rounds, creates a misty terrain which weakens Dragon-type moves and protects Pokémon from status problems. Affects non-airborne Pokémon only. (Misty Terrain) + CPokeBattle_Move_157Doubles the prize money the player gets after winning the battle. (Happy Hour) + CPokeBattle_Move_158Fails unless user has consumed a berry at some point. (Belch) + CPokeBattle_RecordedBattleModule + CPokeBattle_SafariZone + CPokeBattle_StruggleImplements the move Struggle. For cases where the real move named Struggle is not defined + CPokeBattle_UnimplementedMoveSuperclass that handles moves using a non-existent function code. Damaging moves just do damage with no additional effect. Non-damaging moves always fail + CPokemonA Pokemon placeholder class to be used while in-battle, to prevent changes from being permanent to original pokemon profile  NEventArg  COnCatchEventArgs  COnEndBattleEventArgs  COnFailCatchEventArgs - COnLeaveTileEventArgsParameters: e[0] - Event that just left the tile. e[1] - Map ID where the tile is located (not necessarily the current map). Use "Game.GameData.MapFactory.getMap(e[1])" to get the Game_Map object corresponding to that map. e[2] - X-coordinate of the tile e[3] - Y-coordinate of the tile - COnMapChangeEventArgs - COnMapChangingEventArgs - COnMapCreateEventArgs - COnMapSceneChangeEventArgsParameters: e[0] = Scene_Map object. e[1] = Whether the player just moved to a new map (either true or false). If false, some other code had called Game.GameData.Scene.createSpritesets to regenerate the map scene without transferring the player elsewhere - COnSpritesetCreateEventArgsParameters: e[0] = Spriteset being created e[1] = Viewport used for tilemap and characters e[0].map = Map associated with the spriteset (not necessarily the current map). - COnStepTakenFieldMovementEventArgsParameters: e[0] - Event that just entered a tile. - COnStepTakenTransferPossibleEventArgsParameters: e[0] = Array that contains a single boolean value. If an event handler moves the player to a new map, it should set this value to true. Other event handlers should check this parameter's value. - COnTrainerPartyLoadEventArgsParameters: e[0] - Trainer e[1] - Items possessed by the trainer e[2] - Party - COnWildBattleEndEventArgsParameters: e[0] - Pokémon species e[1] - Pokémon level e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) - COnWildBattleOverrideEventArgsParameters: e[0] - Pokémon species e[1] - Pokémon level e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) - COnWildPokemonCreateEventArgsParameters: e[0] - Pokémon being created + COnLeaveTileEventArgsParameters: e[0] - Event that just left the tile. e[1] - Map ID where the tile is located (not necessarily the current map). Use "Game.GameData.MapFactory.getMap(e[1])" to get the Game_Map object corresponding to that map. e[2] - X-coordinate of the tile e[3] - Y-coordinate of the tile + COnLoadLevelEventArgs + COnMapChangeEventArgs + COnMapChangingEventArgs + COnMapCreateEventArgs + COnMapSceneChangeEventArgsParameters: e[0] = Scene_Map object. e[1] = Whether the player just moved to a new map (either true or false). If false, some other code had called Game.GameData.Scene.createSpritesets to regenerate the map scene without transferring the player elsewhere + COnSpritesetCreateEventArgsParameters: e[0] = Spriteset being created e[1] = Viewport used for tilemap and characters e[0].map = Map associated with the spriteset (not necessarily the current map). + COnStepTakenFieldMovementEventArgsParameters: e[0] - Event that just entered a tile. + COnStepTakenTransferPossibleEventArgsParameters: e[0] = Array that contains a single boolean value. If an event handler moves the player to a new map, it should set this value to true. Other event handlers should check this parameter's value. + COnTrainerPartyLoadEventArgsParameters: e[0] - Trainer e[1] - Items possessed by the trainer e[2] - Party + COnWildBattleEndEventArgsParameters: e[0] - Pokémon species e[1] - Pokémon level e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) + COnWildBattleOverrideEventArgsParameters: e[0] - Pokémon species e[1] - Pokémon level e[2] - Battle result (1-win, 2-loss, 3-escaped, 4-caught, 5-draw) + COnWildPokemonCreateEventArgsParameters: e[0] - Pokémon being created  NInventory  CBerryData  CItemData @@ -991,7 +988,7 @@  CPokemonEvolutionThe evolution paths this species can take. For each possible evolution of this species, there are three parts  CPokemonMovesetThe moves that all Pokémon of the species learn as they level up.  CPokemonMoveTreeAll the moves this pokemon species can learn, and the methods by which they learn them - CPokemonWildItemsThe items that Pokémon when encountered in the wild have a chance of carring. + CPokemonWildItemsThe items that Pokémon when encountered in the wild have a chance of carrying.  CType  CNature  CPokeBattle_BattlePeer @@ -1012,7 +1009,7 @@  NOverworld  CAreaUsed to represent which Map Id this object data is associated with  CEncounter - CEncounterDataData records of pokemon profiles used for pooling together a random chance enounter for a battle against wild pokemons + CEncounterDataData records of pokemon profiles used for pooling together a random chance encounter for a battle against wild pokemons  CEncounterSlotData  CIAreaUsed to represent which Map Id this object data is associated with  CIEncounterDataData records of pokemon profiles used for pooling together a random chance enounter for a battle against wild pokemons @@ -1032,152 +1029,118 @@  CLinearCongRandomLinear congruential random number generator  COnSeedEventArgs  NUX - CIFrontEnd - CSceneList of all the scenes that utilized by frontend platform - CScreenList of all the screens that utilized by frontend platform + CSceneList of all the scenes that utilized by frontend platform + CScreenList of all the screens that utilized by frontend platform  CAblePokemonRestriction  CBabyRestriction  CBannedItemRestriction  CBannedSpeciesRestriction - CBattleArena - CBattlePalace - CBattleRule - CBattleTower - CBattleType - CBattleUseOnBattlerEventArgs - CBattleUseOnPokemonEventArgs - CCappedLevelAdjustment - CCombinedLevelAdjustment - CDebugger - CDoubleBattle - CDoubleCup - CEnemyLevelAdjustment - CEvasionClause - CFancyCup - CFixedLevelAdjustment - CFreezeClause - CGameVariables that are stored when game is saved, and other temp values used for gameplay. - CGame_MapThis class handles the map. It includes scrolling and passable determining functions. Refer to IGame.GameMap for the instance of this class. - CScene_Map - CSpriteset_Map - CGameTemp - CGameText - CGlobalMetadata - CHeightRestriction - CIAudioObject - CIButtonEventSceneShows a help screen listing the keyboard controls. - CICanvas - CIDatabaseVariables that are stored when game is saved, and other temp values used for gameplay. This class should be called once, when the game boots-up. During boot-up, game will check directory for save files and load data. Game class will overwrite all the other class default values when player triggers a load state. - CIDebugger - CIEntity - CIEventScene - CIGame_Screen - CIHasDisplayMessage - CIIntroEventSceneFirst scene to load when game boots up. Displays logos and intro credits/sponsers - CILanguage - CILocalizationDictionaryProviderUsed to get localization dictionaries (Translator.Language.XmlLocalizationDictionary) for a IDictionaryBasedLocalizationSource. - CIMovedEvent - CInput - CButtonEventArgs - CInterpreterFieldMixin - CIPokeBattle_DebugScene - CIPokeBattle_Scene - CIPokeBattle_SceneNonInteractive - CIPokeBattleArena_Scene - CIPokemonBag_Scene - CIPokemonBagScreen - CIPokemonEntry - CIPokemonEntrySceneText entry screen - free typing. - CIPokemonEntryScene2Text entry screen - arrows to select letter. - CIPokemonEvolutionScene - CIPokemonForm - CIPokemonFormSceneShows the "Form" page of the Pokédex entry screen. - CIPokemonMenu - CIPokemonMenu_Scene - CIPokemonNestMap - CIPokemonNestMapSceneShows the "Nest" page of the Pokédex entry screen. - CIPokemonPokedex - CIPokemonPokedexScene - CIPokemonScreen - CIPokemonScreen_Scene - CIPokemonStorageScene - CIPokemonStorageScreen - CIPokemonSummary - CIPokemonSummaryScene - CIRelicStoneSceneScene class for handling appearance of the screen - CIRelicStoneScreenScreen class for handling game logic - CISceneA scene basically represents unity (or any frontend) where code pauses for user interaction (animation, and user key inputs). - CIScene_Intro - CISceneHasChatter - CISceneState - CIScreen - CItemClause - CItemsDisallowedClause - CIWindow - CKernalVariables that are stored when game is saved, and other temp values used for gameplay. This class should be called once, when the game boots-up. During boot-up, game will check directory for save files and load data. Game class will overwrite all the other class default values when player triggers a load state. - CLevelAdjustment - CLevelBalanceAdjustment - CLevelRestriction - CLightCup - CLittleCup - CLittleCupRestriction - CLocalizationDictionaryProviderBase - CMapData - CMaximumLevelRestriction - CMinimumLevelRestriction - CModifiedSleepClause - CNegativeExtendedGameClause - CNicknameChecker - CNicknameClauseNo two Pokemon can have the same nickname. No nickname can be the same as the (real) name of another Pokemon character. - CNonEggRestriction - COHKOClause - COnDebugEventArgs - COnLoadEventArgs - COpenLevelAdjustment - CPerishSongClause - CPokemonChallengeRules - CPokemonRuleSet - CPokemonSystem - CPokemonTempTemporary data which is not saved and which is erased when a game restarts. - CPokeRadarGrassData - CPokeRadarMetaData - CPokeRadarsA set of arrays each containing details of a wild encounter that can only occur via using the Poké Radar. The information within is as follows: - CRestrictedSpeciesRestriction - CRestrictedSpeciesSubsetRestriction - CRestrictedSpeciesTeamRestriction - CSafariState - CSameSpeciesClause - CScriptConversionUsed to convert strings into various types. - CSelfdestructClause - CSelfKOClause - CSingleBattle - CSinglePlayerCappedLevelAdjustment - CSkillSwapClause - CSleepClause - CSonicBoomClause - CSoulDewBattleClause - CSoulDewClause - CSpeciesClause - CSpeciesRestriction - CStandardCup - CStandardRestriction - CStandardRules - CTempData - CTilePosition - CTotalLevelAdjustment - CTotalLevelRestriction - CTrainer - CTranslator - CLanguageLanguage class stores the user's current/active language - CLocalizationDictionaryRepresents a simple implementation of XmlLocalizationDictionary interface. - CLocalizedStringRepresents a localized string. - CXmlLocalizationDictionaryThis class is used to build a localization dictionary from XML. - CUnevolvedFormRestriction - CUseFromBagEventArgs - CUseInBattleEventArgs - CUseInFieldEventArgs - CUseOnPokemonEventArgs - CWeightRestriction - CXmlFileLocalizationDictionaryProviderProvides localization dictionaries from XML files in a directory. + CBaseStatRestriction + CBattleArena + CBattleChallenge + CBattleChallengeData + CBattleChallengeType + CBattleFactoryData + CBattlePalace + CBattleRule + CBattleTower + CBattleType + CBattleUseOnBattlerEventArgs + CBattleUseOnPokemonEventArgs + CCappedLevelAdjustment + CCombinedLevelAdjustment + CDebugger + CDoubleBattle + CDoubleCup + CEnemyLevelAdjustment + CEvasionClause + CFancyCup + CFixedLevelAdjustment + CFreezeClause + CGameVariables that are stored when game is saved, and other temp values used for gameplay. + CGame_MapThis class handles the map. It includes scrolling and passable determining functions. Refer to IGame.GameMap for the instance of this class. + CScene_Map + CSpriteset_Map + CGame_Event + CGame_Map + CGame_Player + CGameTemp + CGlobalMetadata + CHeightRestriction + CIDatabaseVariables that are stored when game is saved, and other temp values used for gameplay. This class should be called once, when the game boots-up. During boot-up, game will check directory for save files and load data. Game class will overwrite all the other class default values when player triggers a load state. + CIDebugger + CIMovedEvent + CInput + CButtonEventArgs + CInterpreterFieldMixin + CInverseRestriction + CItemClause + CItemsDisallowedClause + CKernalVariables that are stored when game is saved, and other temp values used for gameplay. This class should be called once, when the game boots-up. During boot-up, game will check directory for save files and load data. Game class will overwrite all the other class default values when player triggers a load state. + CLevelAdjustment + CLevelBalanceAdjustment + CLevelRestriction + CLightCup + CLittleCup + CLittleCupRestriction + CMapData + CMatchHistory + CMaximumLevelRestriction + CMinimumLevelRestriction + CModifiedSleepClause + CNegativeExtendedGameClause + CNicknameChecker + CNicknameClauseNo two Pokemon can have the same nickname. No nickname can be the same as the (real) name of another Pokemon character. + CNonEggRestriction + CNonlegendaryRestriction + COHKOClause + COnDebugEventArgs + COnLoadEventArgs + COpenLevelAdjustment + CPBPokemon + CPerishSongClause + CPlayerRating + CPlayerRatingElo + CPokemonChallengeRules + CPokemonRuleSet + CPokemonSystem + CPokemonTempTemporary data which is not saved and which is erased when a game restarts. + CPokeRadarGrassData + CPokeRadarMetaData + CPokeRadarsA set of arrays each containing details of a wild encounter that can only occur via using the Poké Radar. The information within is as follows: + CRestrictedSpeciesRestriction + CRestrictedSpeciesSubsetRestriction + CRestrictedSpeciesTeamRestriction + CRuledTeam + CSafariState + CSameSpeciesClause + CScriptConversionUsed to convert strings into various types. + CSelfdestructClause + CSelfKOClause + CSingleBattle + CSingleMatch + CSinglePlayerCappedLevelAdjustment + CSkillSwapClause + CSleepClause + CSonicBoomClause + CSoulDewBattleClause + CSoulDewClause + CSpeciesClause + CSpeciesRestriction + CStandardCup + CStandardRestriction + CStandardRules + CTempData + CTilePosition + CTotalLevelAdjustment + CTotalLevelRestriction + CTrainer + CUnevolvedFormRestriction + CUseFromBagEventArgs + CUseInBattleEventArgs + CUseInFieldEventArgs + CUseOnPokemonEventArgs + CWeightRestriction + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_able_pokemon_restriction-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_able_pokemon_restriction-members.cshtml index 2a0719719..0c5b9d86a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_able_pokemon_restriction-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_able_pokemon_restriction-members.cshtml @@ -18,4 +18,4 @@ -
isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon)PokemonUnity.AblePokemonRestriction
PokemonEssentials::Interface::Battle::IBattleRestriction.isValid(IPokemon pokemon)PokemonEssentials.Interface.Battle.IBattleRestriction
\ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_able_pokemon_restriction.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_able_pokemon_restriction.cshtml index 2b5833051..478760b2a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_able_pokemon_restriction.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_able_pokemon_restriction.cshtml @@ -58,3 +58,4 @@ Public Member Functions
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_attack_1_1_move-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_attack_1_1_move-members.cshtml index 2868e4f3b..7a702a75c 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_attack_1_1_move-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_attack_1_1_move-members.cshtml @@ -27,13 +27,14 @@ JammingPokemonUnity.Attack.Move Move(Moves move=Moves.NONE)PokemonUnity.Attack.Move Move(Moves move, int ppUp, byte pp)PokemonUnity.Attack.Move + operator Move(SeriMove move)PokemonUnity.Attack.Movestatic + operator SeriMove(Move move)PokemonUnity.Attack.Movestatic PowerPokemonUnity.Attack.Move - PowerBoostPokemonUnity.Attack.Move - PPPokemonUnity.Attack.Move - PPupsPokemonUnity.Attack.Move - PriorityPokemonUnity.Attack.Move - SuperAppealPokemonUnity.Attack.Move - TargetsPokemonUnity.Attack.Move - TotalPPPokemonUnity.Attack.Move - TypePokemonUnity.Attack.Move - \ No newline at end of file + PPPokemonUnity.Attack.Move + PPupsPokemonUnity.Attack.Move + PriorityPokemonUnity.Attack.Move + SuperAppealPokemonUnity.Attack.Move + TargetsPokemonUnity.Attack.Move + TotalPPPokemonUnity.Attack.Move + TypePokemonUnity.Attack.Move + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_attack_1_1_move.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_attack_1_1_move.cshtml index 6e830c05f..9f8729a1a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_attack_1_1_move.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_attack_1_1_move.cshtml @@ -12,6 +12,7 @@ @section headertitle {
PokemonUnity.Attack.Move Class Reference
@@ -34,7 +35,7 @@ Inheritance diagram for PokemonUnity.Attack.Move:

Public Member Functions

 Move (Moves move=Moves.NONE) - Initializes this object to the specified move ID. More...
+ For Aerilate, Pixilate, Refrigerate More...
   Move (Moves move, int ppUp, byte pp)  Initializes this object to the specified move ID, PP and added PPup More...
@@ -46,6 +47,13 @@ Public Member Functions  Initializes this object to the specified move ID. More...
  + + + + + +

+Static Public Member Functions

static implicit operator SeriMove (Move move)
 
static implicit operator Move (SeriMove move)
 
@@ -86,9 +94,6 @@ Properties - - - @@ -129,7 +134,8 @@ Properties

Properties

int PP [get, set]
Moves id [get]
 This move's ID More...
 
bool PowerBoost [get]
 For Aerilate, Pixilate, Refrigerate More...
 
- Properties inherited from PokemonEssentials.Interface.IMove
PokemonUnity.Attack.Data.Effects Effect [get]
 
-

Initializes this object to the specified move ID.

+

For Aerilate, Pixilate, Refrigerate

+

Initializes this object to the specified move ID.

@@ -186,6 +192,58 @@ Properties

Implements PokemonEssentials.Interface.IMove.

+ + + +

◆ operator Move()

+ +
+
+ + + + + +
+ + + + + + + + +
static implicit PokemonUnity.Attack.Move.operator Move (SeriMove move)
+
+static
+
+ +
+
+ +

◆ operator SeriMove()

+ +
+
+ + + + + +
+ + + + + + + + +
static implicit PokemonUnity.Attack.Move.operator SeriMove (Move move)
+
+static
+
+

Property Documentation

@@ -393,30 +451,6 @@ Properties

Base Damage

- - - -

◆ PowerBoost

- -
-
- - - - - -
- - - - -
bool PokemonUnity.Attack.Move.PowerBoost
-
-get
-
- -

For Aerilate, Pixilate, Refrigerate

-
@@ -593,3 +627,4 @@ Properties
The documentation for this class was generated from the following file:
  • PokemonUnity.Application/Attack/Move.cs
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_baby_restriction-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_baby_restriction-members.cshtml index 748283569..052eeb7f5 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_baby_restriction-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_baby_restriction-members.cshtml @@ -18,4 +18,4 @@ -
isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon)PokemonUnity.BabyRestriction
PokemonEssentials::Interface::Battle::IBattleRestriction.isValid(IPokemon pokemon)PokemonEssentials.Interface.Battle.IBattleRestriction
\ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_baby_restriction.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_baby_restriction.cshtml index 7670476ad..2d2913ada 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_baby_restriction.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_baby_restriction.cshtml @@ -58,3 +58,4 @@ Public Member Functions
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_item_restriction-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_item_restriction-members.cshtml index d9334ac23..35f6aa536 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_item_restriction-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_item_restriction-members.cshtml @@ -20,4 +20,4 @@ isSpecies(Items species, Items[] specieslist)PokemonUnity.BannedItemRestriction isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon)PokemonUnity.BannedItemRestriction PokemonEssentials::Interface::Battle::IBattleRestriction.isValid(IPokemon pokemon)PokemonEssentials.Interface.Battle.IBattleRestriction - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_item_restriction.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_item_restriction.cshtml index 1ac17ee0d..a6e0a4a95 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_item_restriction.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_item_restriction.cshtml @@ -108,3 +108,4 @@ Public Member Functions
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_species_restriction-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_species_restriction-members.cshtml index 50efd25f3..595206013 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_species_restriction-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_species_restriction-members.cshtml @@ -20,4 +20,4 @@ isSpecies(Pokemons species, Pokemons[] specieslist)PokemonUnity.BannedSpeciesRestriction isValid(PokemonEssentials.Interface.PokeBattle.IPokemon pokemon)PokemonUnity.BannedSpeciesRestriction PokemonEssentials::Interface::Battle::IBattleRestriction.isValid(IPokemon pokemon)PokemonEssentials.Interface.Battle.IBattleRestriction - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_species_restriction.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_species_restriction.cshtml index 1a73a4efe..5d8319aab 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_species_restriction.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_banned_species_restriction.cshtml @@ -108,3 +108,4 @@ Public Member Functions
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction-members.cshtml new file mode 100644 index 000000000..6eea87026 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction-members.cshtml @@ -0,0 +1,24 @@ +@{ + Page.Title = "Member List"; +} + +@section breadcrumbs { + +} + +@section headertitle { +
PokemonUnity.BaseStatRestriction Member List
+} + + +

This is the complete list of members for PokemonUnity.BaseStatRestriction, including all inherited members.

+ + + + + + +
BaseStatRestriction(int mn, int mx)PokemonUnity.BaseStatRestriction
initialize(int mn, int mx)PokemonUnity.BaseStatRestriction
isValid(IPokemon pkmn)PokemonUnity.BaseStatRestriction
mnPokemonUnity.BaseStatRestrictionprotected
mxPokemonUnity.BaseStatRestrictionprotected
diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction.cshtml new file mode 100644 index 000000000..21c2a839d --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction.cshtml @@ -0,0 +1,165 @@ +@{ + Page.Title = "PokemonUnity.BaseStatRestriction Class Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
PokemonUnity.BaseStatRestriction Class Reference
+} + +
+Inheritance diagram for PokemonUnity.BaseStatRestriction:
+
+
+ + +PokemonEssentials.Interface.Battle.IBaseStatRestriction +PokemonEssentials.Interface.Battle.IBattleRestriction + +
+ + + + + + + + + + +

+Public Member Functions

 BaseStatRestriction (int mn, int mx)
 
IBaseStatRestriction initialize (int mn, int mx)
 
bool isValid (IPokemon pkmn)
 
bool isValid (IPokemon pokemon)
 
+ + + + + +

+Protected Attributes

int mn
 
int mx
 
+

Constructor & Destructor Documentation

+ +

◆ BaseStatRestriction()

+ +
+
+ + + + + + + + + + + + + +
PokemonUnity.BaseStatRestriction.BaseStatRestriction (int mn,
int mx  )
+
+ +
+
+

Member Function Documentation

+ +

◆ initialize()

+ +
+
+ + + + + + + + + + + + + +
IBaseStatRestriction PokemonUnity.BaseStatRestriction.initialize (int mn,
int mx  )
+
+ +
+
+ +

◆ isValid()

+ +
+
+ + + + + + + + +
bool PokemonUnity.BaseStatRestriction.isValid (IPokemon pkmn)
+
+
+

Member Data Documentation

+ +

◆ mn

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BaseStatRestriction.mn
+
+protected
+
+ +
+
+ +

◆ mx

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BaseStatRestriction.mx
+
+protected
+
+ +
+
+
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction.png new file mode 100644 index 000000000..3c1e1bd7c Binary files /dev/null and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_base_stat_restriction.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_arena-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_arena-members.cshtml index 4831c154e..1b33402b3 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_arena-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_arena-members.cshtml @@ -16,6 +16,5 @@

This is the complete list of members for PokemonUnity.BattleArena, including all inherited members.

- - -
pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.BattleArenavirtual
PokemonEssentials::Interface::Battle::IBattleType.pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonEssentials.Interface.Battle.IBattleType
\ No newline at end of file + CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.BattleArenavirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_arena.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_arena.cshtml index 6821f6ea3..d41e1bb7b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_arena.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_arena.cshtml @@ -31,17 +31,16 @@ Inheritance diagram for PokemonUnity.BattleArena: - - - - - - - + + + + + +

Public Member Functions

override PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
virtual PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Battle.IBattleType
IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
override PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
virtual PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 

Member Function Documentation

- -

◆ pbCreateBattle()

+ +

◆ CreateBattle()

@@ -50,9 +49,9 @@ Public Member Functions - + - + @@ -75,10 +74,11 @@ Public Member Functions
override PokemonEssentials.Interface.PokeBattle.IBattle PokemonUnity.BattleArena.pbCreateBattle override PokemonEssentials.Interface.PokeBattle.IBattle PokemonUnity.BattleArena.CreateBattle (IPokeBattle_Scene IPokeBattle_Scene  scene,
-

Reimplemented from PokemonUnity.BattleType.

+

Reimplemented from PokemonUnity.BattleType.


The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge-members.cshtml new file mode 100644 index 000000000..8e136eb51 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge-members.cshtml @@ -0,0 +1,59 @@ +@{ + Page.Title = "Member List"; +} + +@section breadcrumbs { + +} + +@section headertitle { +
PokemonUnity.BattleChallenge Member List
+} + + +

This is the complete list of members for PokemonUnity.BattleChallenge, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
_rulesPokemonUnity.BattleChallengeprotected
AddWin()PokemonUnity.BattleChallenge
Battle()PokemonUnity.BattleChallenge
BattleChallenge()PokemonUnity.BattleChallenge
battleNumberPokemonUnity.BattleChallenge
bcPokemonUnity.BattleChallengeprotected
Cancel()PokemonUnity.BattleChallenge
currentChallengePokemonUnity.BattleChallenge
dataPokemonUnity.BattleChallenge
decisionPokemonUnity.BattleChallenge
End()PokemonUnity.BattleChallenge
extraPokemonUnity.BattleChallenge
getCurrentSwaps(int challenge)PokemonUnity.BattleChallenge
getCurrentWins(int challenge)PokemonUnity.BattleChallenge
getMaxSwaps(int challenge)PokemonUnity.BattleChallenge
getMaxWins(int challenge)PokemonUnity.BattleChallenge
getPreviousSwaps(int challenge)PokemonUnity.BattleChallenge
getPreviousWins(int challenge)PokemonUnity.BattleChallenge
GoOn()PokemonUnity.BattleChallenge
GoToStart()PokemonUnity.BattleChallenge
idPokemonUnity.BattleChallengeprotected
InChallengePokemonUnity.BattleChallenge
initialize()PokemonUnity.BattleChallenge
InProgressPokemonUnity.BattleChallenge
MatchOver()PokemonUnity.BattleChallenge
modeToRules(bool doublebattle, int numPokemon, int battletype, int mode)PokemonUnity.BattleChallenge
nextTrainerPokemonUnity.BattleChallenge
numRoundsPokemonUnity.BattleChallengeprotected
register(int id, bool doublebattle, int numrounds, int numPokemon, int battletype, int mode=1)PokemonUnity.BattleChallenge
Rest()PokemonUnity.BattleChallenge
Resting()PokemonUnity.BattleChallenge
rulesPokemonUnity.BattleChallenge
set(int id, int numrounds, IPokemonChallengeRules rules)PokemonUnity.BattleChallenge
setDecision(BattleResults value)PokemonUnity.BattleChallenge
setParty(IPokemon[] value)PokemonUnity.BattleChallenge
Start(int challenge)PokemonUnity.BattleChallenge
start(params object[] args)PokemonUnity.BattleChallenge
swapsPokemonUnity.BattleChallenge
typesPokemonUnity.BattleChallengeprotected
winsPokemonUnity.BattleChallenge
diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge.cshtml new file mode 100644 index 000000000..84186193a --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge.cshtml @@ -0,0 +1,1106 @@ +@{ + Page.Title = "PokemonUnity.BattleChallenge Class Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
PokemonUnity.BattleChallenge Class Reference
+} + +
+Inheritance diagram for PokemonUnity.BattleChallenge:
+
+
+ + +PokemonEssentials.Interface.Battle.IBattleChallenge + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 BattleChallenge ()
 
IBattleChallenge initialize ()
 
IPokemonChallengeRules modeToRules (bool doublebattle, int numPokemon, int battletype, int mode)
 
void set (int id, int numrounds, IPokemonChallengeRules rules)
 
void start (params object[] args)
 
void register (int id, bool doublebattle, int numrounds, int numPokemon, int battletype, int mode=1)
 
int getCurrentWins (int challenge)
 
int getPreviousWins (int challenge)
 
int getMaxWins (int challenge)
 
int getCurrentSwaps (int challenge)
 
int getPreviousSwaps (int challenge)
 
int getMaxSwaps (int challenge)
 
void Start (int challenge)
 
void End ()
 
BattleResults Battle ()
 
bool Resting ()
 
void setDecision (BattleResults value)
 
void setParty (IPokemon[] value)
 
void GoOn ()
 
void AddWin ()
 
void Cancel ()
 
void Rest ()
 
bool MatchOver ()
 
void GoToStart ()
 
IBattleChallenge initialize ()
 
IPokemonChallengeRules modeToRules (bool doublebattle, int numPokemon, int battletype, int mode)
 
void set (int id, int numrounds, IPokemonChallengeRules rules)
 
void start (params object[] args)
 
void register (int id, bool doublebattle, int numrounds, int numPokemon, int battletype, int mode=1)
 
int getCurrentWins (int challenge)
 
int getPreviousWins (int challenge)
 
int getMaxWins (int challenge)
 
int getCurrentSwaps (int challenge)
 
int getPreviousSwaps (int challenge)
 
int getMaxSwaps (int challenge)
 
void Start (int challenge)
 
void End ()
 
BattleResults Battle ()
 
bool Resting ()
 
void setDecision (BattleResults value)
 
void setParty (IPokemon[] value)
 
void GoOn ()
 
void AddWin ()
 
void Cancel ()
 
void Rest ()
 
bool MatchOver ()
 
void GoToStart ()
 
+ + + + + + + + + + + +

+Protected Attributes

int id
 
int numRounds
 
IBattleChallengeData bc
 
IPokemonChallengeRules _rules
 
IList<IBattleChallengeTypetypes
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Properties

int currentChallenge [get, protected set]
 
IPokemonChallengeRules rules [get]
 
bool InChallenge [get]
 
IBattleChallengeType data [get]
 
bool InProgress [get]
 
IBattleFactoryData extra [get]
 
BattleResults decision [get]
 
int wins [get]
 
int swaps [get]
 
int battleNumber [get]
 
int nextTrainer [get]
 
- Properties inherited from PokemonEssentials.Interface.Battle.IBattleChallenge
int currentChallenge [get]
 
IPokemonChallengeRules rules [get]
 
bool InChallenge [get]
 
IBattleChallengeType data [get]
 
bool InProgress [get]
 
IBattleFactoryData extra [get]
 
BattleResults decision [get]
 
int wins [get]
 
int swaps [get]
 
int battleNumber [get]
 
int nextTrainer [get]
 
+

Constructor & Destructor Documentation

+ +

◆ BattleChallenge()

+ +
+
+ + + + + + + +
PokemonUnity.BattleChallenge.BattleChallenge ()
+
+ +
+
+

Member Function Documentation

+ +

◆ AddWin()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallenge.AddWin ()
+
+
+ +

◆ Battle()

+ +
+
+ + + + + + + +
BattleResults PokemonUnity.BattleChallenge.Battle ()
+
+
+ +

◆ Cancel()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallenge.Cancel ()
+
+
+ +

◆ End()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallenge.End ()
+
+
+ +

◆ getCurrentSwaps()

+ +
+
+ + + + + + + + +
int PokemonUnity.BattleChallenge.getCurrentSwaps (int challenge)
+
+
+ +

◆ getCurrentWins()

+ +
+
+ + + + + + + + +
int PokemonUnity.BattleChallenge.getCurrentWins (int challenge)
+
+
+ +

◆ getMaxSwaps()

+ +
+
+ + + + + + + + +
int PokemonUnity.BattleChallenge.getMaxSwaps (int challenge)
+
+
+ +

◆ getMaxWins()

+ +
+
+ + + + + + + + +
int PokemonUnity.BattleChallenge.getMaxWins (int challenge)
+
+
+ +

◆ getPreviousSwaps()

+ +
+
+ + + + + + + + +
int PokemonUnity.BattleChallenge.getPreviousSwaps (int challenge)
+
+
+ +

◆ getPreviousWins()

+ +
+
+ + + + + + + + +
int PokemonUnity.BattleChallenge.getPreviousWins (int challenge)
+
+
+ +

◆ GoOn()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallenge.GoOn ()
+
+
+ +

◆ GoToStart()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallenge.GoToStart ()
+
+
+ +

◆ initialize()

+ +
+
+ + + + + + + +
IBattleChallenge PokemonUnity.BattleChallenge.initialize ()
+
+
+ +

◆ MatchOver()

+ +
+
+ + + + + + + +
bool PokemonUnity.BattleChallenge.MatchOver ()
+
+
+ +

◆ modeToRules()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
IPokemonChallengeRules PokemonUnity.BattleChallenge.modeToRules (bool doublebattle,
int numPokemon,
int battletype,
int mode  )
+
+ +

+
Parameters
+ + + + + +
doublebattle
numPokemon
battletype0=>BattleTower; 1=>BattlePalace; 2=>BattleArena; 3=>BattleFactory
mode1=>Open Level; 2=>Battle Tent
+
+
+
Returns
+ +

Implements PokemonEssentials.Interface.Battle.IBattleChallenge.

+ +
+
+ +

◆ register()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void PokemonUnity.BattleChallenge.register (int id,
bool doublebattle,
int numrounds,
int numPokemon,
int battletype,
int mode = 1  )
+
+
+ +

◆ Rest()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallenge.Rest ()
+
+
+ +

◆ Resting()

+ +
+
+ + + + + + + +
bool PokemonUnity.BattleChallenge.Resting ()
+
+
+ +

◆ set()

+ +
+
+ + + + + + + + + + + + + + + + + + + +
void PokemonUnity.BattleChallenge.set (int id,
int numrounds,
IPokemonChallengeRules rules  )
+
+
+ +

◆ setDecision()

+ +
+
+ + + + + + + + +
void PokemonUnity.BattleChallenge.setDecision (BattleResults value)
+
+
+ +

◆ setParty()

+ +
+
+ + + + + + + + +
void PokemonUnity.BattleChallenge.setParty (IPokemon[] value)
+
+
+ +

◆ Start()

+ +
+
+ + + + + + + + +
void PokemonUnity.BattleChallenge.Start (int challenge)
+
+
+ +

◆ start()

+ +
+
+ + + + + + + + +
void PokemonUnity.BattleChallenge.start (params object[] args)
+
+
+

Member Data Documentation

+ +

◆ _rules

+ +
+
+ + + + + +
+ + + + +
IPokemonChallengeRules PokemonUnity.BattleChallenge._rules
+
+protected
+
+ +
+
+ +

◆ bc

+ +
+
+ + + + + +
+ + + + +
IBattleChallengeData PokemonUnity.BattleChallenge.bc
+
+protected
+
+ +
+
+ +

◆ id

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallenge.id
+
+protected
+
+ +
+
+ +

◆ numRounds

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallenge.numRounds
+
+protected
+
+ +
+
+ +

◆ types

+ +
+
+ + + + + +
+ + + + +
IList<IBattleChallengeType> PokemonUnity.BattleChallenge.types
+
+protected
+
+ +
+
+

Property Documentation

+ +

◆ battleNumber

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallenge.battleNumber
+
+get
+
+
+ +

◆ currentChallenge

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallenge.currentChallenge
+
+getprotected set
+
+
+ +

◆ data

+ +
+
+ + + + + +
+ + + + +
IBattleChallengeType PokemonUnity.BattleChallenge.data
+
+get
+
+
+ +

◆ decision

+ +
+
+ + + + + +
+ + + + +
BattleResults PokemonUnity.BattleChallenge.decision
+
+get
+
+
+ +

◆ extra

+ +
+
+ + + + + +
+ + + + +
IBattleFactoryData PokemonUnity.BattleChallenge.extra
+
+get
+
+
+ +

◆ InChallenge

+ +
+
+ + + + + +
+ + + + +
bool PokemonUnity.BattleChallenge.InChallenge
+
+get
+
+
+ +

◆ InProgress

+ +
+
+ + + + + +
+ + + + +
bool PokemonUnity.BattleChallenge.InProgress
+
+get
+
+
+ +

◆ nextTrainer

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallenge.nextTrainer
+
+get
+
+
+ +

◆ rules

+ +
+
+ + + + + +
+ + + + +
IPokemonChallengeRules PokemonUnity.BattleChallenge.rules
+
+get
+
+
+ +

◆ swaps

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallenge.swaps
+
+get
+
+
+ +

◆ wins

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallenge.wins
+
+get
+
+
+
The documentation for this class was generated from the following file:
    +
  • PokemonUnity.Application/Combat/Match/Regulated/OrgBattle.cs
  • +
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge.png new file mode 100644 index 000000000..560338eec Binary files /dev/null and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data-members.cshtml new file mode 100644 index 000000000..ff8175a4f --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data-members.cshtml @@ -0,0 +1,45 @@ +@{ + Page.Title = "Member List"; +} + +@section breadcrumbs { + +} + +@section headertitle { +
PokemonUnity.BattleChallengeData Member List
+} + + +

This is the complete list of members for PokemonUnity.BattleChallengeData, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddSwap()PokemonUnity.BattleChallengeData
AddWin()PokemonUnity.BattleChallengeData
BattleChallengeData()PokemonUnity.BattleChallengeData
battleNumberPokemonUnity.BattleChallengeData
Cancel()PokemonUnity.BattleChallengeData
decisionPokemonUnity.BattleChallengeData
End()PokemonUnity.BattleChallengeData
extraDataPokemonUnity.BattleChallengeData
GoOn()PokemonUnity.BattleChallengeData
GoToStart()PokemonUnity.BattleChallengeData
initialize()PokemonUnity.BattleChallengeData
inProgressPokemonUnity.BattleChallengeData
MatchOver()PokemonUnity.BattleChallengeData
nextTrainerPokemonUnity.BattleChallengeData
numRoundsPokemonUnity.BattleChallengeData
oldPartyPokemonUnity.BattleChallengeDataprotected
partyPokemonUnity.BattleChallengeData
Rest()PokemonUnity.BattleChallengeData
restingPokemonUnity.BattleChallengeData
setExtraData(IBattleFactoryData value)PokemonUnity.BattleChallengeData
setParty(IPokemon[] value)PokemonUnity.BattleChallengeData
startPokemonUnity.BattleChallengeDataprotected
Start(IBattleChallengeType t, int numRounds)PokemonUnity.BattleChallengeData
swapsPokemonUnity.BattleChallengeData
trainersPokemonUnity.BattleChallengeDataprotected
winsPokemonUnity.BattleChallengeData
diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data.cshtml new file mode 100644 index 000000000..68f475384 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data.cshtml @@ -0,0 +1,703 @@ +@{ + Page.Title = "PokemonUnity.BattleChallengeData Class Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
PokemonUnity.BattleChallengeData Class Reference
+} + +
+Inheritance diagram for PokemonUnity.BattleChallengeData:
+
+
+ + +PokemonEssentials.Interface.Battle.IBattleChallengeData + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 BattleChallengeData ()
 
IBattleChallengeData initialize ()
 
void setExtraData (IBattleFactoryData value)
 
void AddWin ()
 
void AddSwap ()
 
bool MatchOver ()
 
void GoToStart ()
 
void setParty (IPokemon[] value)
 
void Start (IBattleChallengeType t, int numRounds)
 
void Cancel ()
 
void End ()
 
void GoOn ()
 
void Rest ()
 
IBattleChallengeData initialize ()
 
void setExtraData (IBattleFactoryData value)
 
void AddWin ()
 
void AddSwap ()
 
bool MatchOver ()
 
void GoToStart ()
 
void setParty (IPokemon[] value)
 
void Start (IBattleChallengeType t, int numRounds)
 
void Cancel ()
 
void End ()
 
void GoOn ()
 
void Rest ()
 
+ + + + + + + +

+Protected Attributes

TilePosition start
 
IPokemon[] oldParty
 
IList< int > trainers
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Properties

bool resting [get, protected set]
 
int wins [get, protected set]
 
int swaps [get, protected set]
 
bool inProgress [get, protected set]
 
int battleNumber [get, protected set]
 
int numRounds [get, protected set]
 
BattleResults decision [get, set]
 
IPokemon[] party [get, protected set]
 
IBattleFactoryData extraData [get, protected set]
 
int nextTrainer [get]
 
- Properties inherited from PokemonEssentials.Interface.Battle.IBattleChallengeData
bool resting [get]
 
int wins [get]
 
int swaps [get]
 
bool inProgress [get]
 
int battleNumber [get]
 
int numRounds [get]
 
BattleResults decision [get, set]
 
IPokemon[] party [get]
 
IBattleFactoryData extraData [get]
 
int nextTrainer [get]
 
+

Constructor & Destructor Documentation

+ +

◆ BattleChallengeData()

+ +
+
+ + + + + + + +
PokemonUnity.BattleChallengeData.BattleChallengeData ()
+
+ +
+
+

Member Function Documentation

+ +

◆ AddSwap()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallengeData.AddSwap ()
+
+
+ +

◆ AddWin()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallengeData.AddWin ()
+
+
+ +

◆ Cancel()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallengeData.Cancel ()
+
+
+ +

◆ End()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallengeData.End ()
+
+
+ +

◆ GoOn()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallengeData.GoOn ()
+
+
+ +

◆ GoToStart()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallengeData.GoToStart ()
+
+
+ +

◆ initialize()

+ +
+
+ + + + + + + +
IBattleChallengeData PokemonUnity.BattleChallengeData.initialize ()
+
+
+ +

◆ MatchOver()

+ +
+
+ + + + + + + +
bool PokemonUnity.BattleChallengeData.MatchOver ()
+
+
+ +

◆ Rest()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleChallengeData.Rest ()
+
+
+ +

◆ setExtraData()

+ +
+
+ + + + + + + + +
void PokemonUnity.BattleChallengeData.setExtraData (IBattleFactoryData value)
+
+
+ +

◆ setParty()

+ +
+
+ + + + + + + + +
void PokemonUnity.BattleChallengeData.setParty (IPokemon[] value)
+
+
+ +

◆ Start()

+ +
+
+ + + + + + + + + + + + + +
void PokemonUnity.BattleChallengeData.Start (IBattleChallengeType t,
int numRounds  )
+
+
+

Member Data Documentation

+ +

◆ oldParty

+ +
+
+ + + + + +
+ + + + +
IPokemon [] PokemonUnity.BattleChallengeData.oldParty
+
+protected
+
+ +
+
+ +

◆ start

+ +
+
+ + + + + +
+ + + + +
TilePosition PokemonUnity.BattleChallengeData.start
+
+protected
+
+ +
+
+ +

◆ trainers

+ +
+
+ + + + + +
+ + + + +
IList<int> PokemonUnity.BattleChallengeData.trainers
+
+protected
+
+ +
+
+

Property Documentation

+ +

◆ battleNumber

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeData.battleNumber
+
+getprotected set
+
+
+ +

◆ decision

+ +
+
+ + + + + +
+ + + + +
BattleResults PokemonUnity.BattleChallengeData.decision
+
+getset
+
+
+ +

◆ extraData

+ +
+
+ + + + + +
+ + + + +
IBattleFactoryData PokemonUnity.BattleChallengeData.extraData
+
+getprotected set
+
+
+ +

◆ inProgress

+ +
+
+ + + + + +
+ + + + +
bool PokemonUnity.BattleChallengeData.inProgress
+
+getprotected set
+
+
+ +

◆ nextTrainer

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeData.nextTrainer
+
+get
+
+
+ +

◆ numRounds

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeData.numRounds
+
+getprotected set
+
+
+ +

◆ party

+ +
+
+ + + + + +
+ + + + +
IPokemon [] PokemonUnity.BattleChallengeData.party
+
+getprotected set
+
+
+ +

◆ resting

+ +
+
+ + + + + +
+ + + + +
bool PokemonUnity.BattleChallengeData.resting
+
+getprotected set
+
+
+ +

◆ swaps

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeData.swaps
+
+getprotected set
+
+
+ +

◆ wins

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeData.wins
+
+getprotected set
+
+
+
The documentation for this class was generated from the following file:
    +
  • PokemonUnity.Application/Combat/Match/Regulated/OrgBattle.cs
  • +
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data.png new file mode 100644 index 000000000..8f4b2414e Binary files /dev/null and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_data.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type-members.cshtml new file mode 100644 index 000000000..c00b7838e --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type-members.cshtml @@ -0,0 +1,33 @@ +@{ + Page.Title = "Member List"; +} + +@section breadcrumbs { + +} + +@section headertitle { +
PokemonUnity.BattleChallengeType Member List
+} + + +

This is the complete list of members for PokemonUnity.BattleChallengeType, including all inherited members.

+ + + + + + + + + + + + + + + +
battletypePokemonUnity.BattleChallengeType
Clone()PokemonUnity.BattleChallengeType
currentSwapsPokemonUnity.BattleChallengeType
currentWinsPokemonUnity.BattleChallengeType
doublebattlePokemonUnity.BattleChallengeType
initialize()PokemonUnity.BattleChallengeType
maxSwapsPokemonUnity.BattleChallengeType
maxWinsPokemonUnity.BattleChallengeType
modePokemonUnity.BattleChallengeType
numPokemonPokemonUnity.BattleChallengeType
numRoundsPokemonUnity.BattleChallengeType
previousSwapsPokemonUnity.BattleChallengeType
previousWinsPokemonUnity.BattleChallengeType
saveWins(IBattleChallengeData challenge)PokemonUnity.BattleChallengeType
diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type.cshtml new file mode 100644 index 000000000..26c8a6952 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type.cshtml @@ -0,0 +1,416 @@ +@{ + Page.Title = "PokemonUnity.BattleChallengeType Class Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
PokemonUnity.BattleChallengeType Class Reference
+} + +
+Inheritance diagram for PokemonUnity.BattleChallengeType:
+
+
+ + +PokemonEssentials.Interface.Battle.IBattleChallengeType + +
+ + + + + + + + + + + + +

+Public Member Functions

IBattleChallengeType initialize ()
 
void saveWins (IBattleChallengeData challenge)
 
object Clone ()
 
IBattleChallengeType initialize ()
 
void saveWins (IBattleChallengeData challenge)
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Properties

int currentWins [get, protected set]
 
int previousWins [get, protected set]
 
int maxWins [get, protected set]
 
int currentSwaps [get, protected set]
 
int previousSwaps [get, protected set]
 
int maxSwaps [get, protected set]
 
bool doublebattle [get, protected set]
 
int numPokemon [get, protected set]
 
int battletype [get, protected set]
 
int mode [get, protected set]
 
int numRounds [get, set]
 
- Properties inherited from PokemonEssentials.Interface.Battle.IBattleChallengeType
int currentWins [get]
 
int previousWins [get]
 
int maxWins [get]
 
int currentSwaps [get]
 
int previousSwaps [get]
 
int maxSwaps [get]
 
bool doublebattle [get]
 
int numPokemon [get]
 
int battletype [get]
 
int mode [get]
 
int numRounds [get, set]
 
+

Member Function Documentation

+ +

◆ Clone()

+ +
+
+ + + + + + + +
object PokemonUnity.BattleChallengeType.Clone ()
+
+ +
+
+ +

◆ initialize()

+ +
+
+ + + + + + + +
IBattleChallengeType PokemonUnity.BattleChallengeType.initialize ()
+
+
+ +

◆ saveWins()

+ +
+
+ + + + + + + + +
void PokemonUnity.BattleChallengeType.saveWins (IBattleChallengeData challenge)
+
+
+

Property Documentation

+ +

◆ battletype

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.battletype
+
+getprotected set
+
+
+ +

◆ currentSwaps

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.currentSwaps
+
+getprotected set
+
+
+ +

◆ currentWins

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.currentWins
+
+getprotected set
+
+
+ +

◆ doublebattle

+ +
+
+ + + + + +
+ + + + +
bool PokemonUnity.BattleChallengeType.doublebattle
+
+getprotected set
+
+
+ +

◆ maxSwaps

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.maxSwaps
+
+getprotected set
+
+
+ +

◆ maxWins

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.maxWins
+
+getprotected set
+
+
+ +

◆ mode

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.mode
+
+getprotected set
+
+
+ +

◆ numPokemon

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.numPokemon
+
+getprotected set
+
+
+ +

◆ numRounds

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.numRounds
+
+getset
+
+
+ +

◆ previousSwaps

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.previousSwaps
+
+getprotected set
+
+
+ +

◆ previousWins

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleChallengeType.previousWins
+
+getprotected set
+
+
+
The documentation for this class was generated from the following file:
    +
  • PokemonUnity.Application/Combat/Match/Regulated/OrgBattle.cs
  • +
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type.png new file mode 100644 index 000000000..7ce7dfd1f Binary files /dev/null and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_challenge_type.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data-members.cshtml new file mode 100644 index 000000000..628ed93d3 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data-members.cshtml @@ -0,0 +1,31 @@ +@{ + Page.Title = "Member List"; +} + +@section breadcrumbs { + +} + +@section headertitle { +
PokemonUnity.BattleFactoryData Member List
+} + + +

This is the complete list of members for PokemonUnity.BattleFactoryData, including all inherited members.

+ + + + + + + + + + + + + +
Battle(IBattleChallenge challenge)PokemonUnity.BattleFactoryData
BattleFactoryData(IBattleChallengeData bcdata)PokemonUnity.BattleFactoryData
bcdataPokemonUnity.BattleFactoryDataprotected
ChooseRentals()PokemonUnity.BattleFactoryData
ChooseSwaps()PokemonUnity.BattleFactoryData
initialize(IBattleChallengeData bcdata)PokemonUnity.BattleFactoryData
oldopponentPokemonUnity.BattleFactoryDataprotected
opponentPokemonUnity.BattleFactoryDataprotected
PrepareRentals()PokemonUnity.BattleFactoryData
PrepareSwaps()PokemonUnity.BattleFactoryData
rentalsPokemonUnity.BattleFactoryDataprotected
traineridPokemonUnity.BattleFactoryDataprotected
diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data.cshtml new file mode 100644 index 000000000..c2c580150 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data.cshtml @@ -0,0 +1,322 @@ +@{ + Page.Title = "PokemonUnity.BattleFactoryData Class Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
PokemonUnity.BattleFactoryData Class Reference
+} + +
+Inheritance diagram for PokemonUnity.BattleFactoryData:
+
+
+ + +PokemonEssentials.Interface.Battle.IBattleFactoryData + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 BattleFactoryData (IBattleChallengeData bcdata)
 
IBattleFactoryData initialize (IBattleChallengeData bcdata)
 
void PrepareRentals ()
 
void ChooseRentals ()
 
PokemonUnity.Combat.BattleResults Battle (IBattleChallenge challenge)
 
void PrepareSwaps ()
 
bool ChooseSwaps ()
 
IBattleFactoryData initialize (IBattleChallengeData bcdata)
 
void PrepareRentals ()
 
void ChooseRentals ()
 
BattleResults Battle (IBattleChallenge challenge)
 
void PrepareSwaps ()
 
bool ChooseSwaps ()
 
+ + + + + + + + + + + +

+Protected Attributes

IBattleChallengeData bcdata
 
ITrainer opponent
 
IPokemon[] rentals
 
IPokemon[] oldopponent
 
int trainerid
 
+

Constructor & Destructor Documentation

+ +

◆ BattleFactoryData()

+ +
+
+ + + + + + + + +
PokemonUnity.BattleFactoryData.BattleFactoryData (IBattleChallengeData bcdata)
+
+ +
+
+

Member Function Documentation

+ +

◆ Battle()

+ +
+
+ + + + + + + + +
PokemonUnity.Combat.BattleResults PokemonUnity.BattleFactoryData.Battle (IBattleChallenge challenge)
+
+
+ +

◆ ChooseRentals()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleFactoryData.ChooseRentals ()
+
+
+ +

◆ ChooseSwaps()

+ +
+
+ + + + + + + +
bool PokemonUnity.BattleFactoryData.ChooseSwaps ()
+
+
+ +

◆ initialize()

+ +
+
+ + + + + + + + +
IBattleFactoryData PokemonUnity.BattleFactoryData.initialize (IBattleChallengeData bcdata)
+
+
+ +

◆ PrepareRentals()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleFactoryData.PrepareRentals ()
+
+
+ +

◆ PrepareSwaps()

+ +
+
+ + + + + + + +
void PokemonUnity.BattleFactoryData.PrepareSwaps ()
+
+
+

Member Data Documentation

+ +

◆ bcdata

+ +
+
+ + + + + +
+ + + + +
IBattleChallengeData PokemonUnity.BattleFactoryData.bcdata
+
+protected
+
+ +
+
+ +

◆ oldopponent

+ +
+
+ + + + + +
+ + + + +
IPokemon [] PokemonUnity.BattleFactoryData.oldopponent
+
+protected
+
+ +
+
+ +

◆ opponent

+ +
+
+ + + + + +
+ + + + +
ITrainer PokemonUnity.BattleFactoryData.opponent
+
+protected
+
+ +
+
+ +

◆ rentals

+ +
+
+ + + + + +
+ + + + +
IPokemon [] PokemonUnity.BattleFactoryData.rentals
+
+protected
+
+ +
+
+ +

◆ trainerid

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.BattleFactoryData.trainerid
+
+protected
+
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • PokemonUnity.Application/Combat/Match/Regulated/OrgBattle.cs
  • +
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data.png new file mode 100644 index 000000000..02ea726bd Binary files /dev/null and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_factory_data.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_palace-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_palace-members.cshtml index d79247f2b..8a2201d80 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_palace-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_palace-members.cshtml @@ -16,6 +16,5 @@

This is the complete list of members for PokemonUnity.BattlePalace, including all inherited members.

- - -
pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.BattlePalacevirtual
PokemonEssentials::Interface::Battle::IBattleType.pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonEssentials.Interface.Battle.IBattleType
\ No newline at end of file + CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.BattlePalacevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_palace.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_palace.cshtml index aa41964c3..a23131be9 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_palace.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_palace.cshtml @@ -31,17 +31,16 @@ Inheritance diagram for PokemonUnity.BattlePalace: - - - - - - - + + + + + +

Public Member Functions

override PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
virtual PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Battle.IBattleType
IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
override PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
virtual PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 

Member Function Documentation

- -

◆ pbCreateBattle()

+ +

◆ CreateBattle()

@@ -50,9 +49,9 @@ Public Member Functions - + - + @@ -75,10 +74,11 @@ Public Member Functions
override PokemonEssentials.Interface.PokeBattle.IBattle PokemonUnity.BattlePalace.pbCreateBattle override PokemonEssentials.Interface.PokeBattle.IBattle PokemonUnity.BattlePalace.CreateBattle (IPokeBattle_Scene IPokeBattle_Scene  scene,
-

Reimplemented from PokemonUnity.BattleType.

+

Reimplemented from PokemonUnity.BattleType.


The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_rule-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_rule-members.cshtml index f3259deea..eb661ea58 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_rule-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_rule-members.cshtml @@ -32,4 +32,4 @@ SONICBOOMCLAUSEPokemonUnity.BattleRulestatic SOULDEWCLAUSEPokemonUnity.BattleRulestatic SUDDENDEATHPokemonUnity.BattleRulestatic - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_rule.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_rule.cshtml index 68b665f0d..015ba9e90 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_rule.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_rule.cshtml @@ -420,3 +420,4 @@ Static Public Attributes
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_tower-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_tower-members.cshtml index af5a42756..3d034c46b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_tower-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_tower-members.cshtml @@ -16,6 +16,5 @@

This is the complete list of members for PokemonUnity.BattleTower, including all inherited members.

- - -
pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.BattleTowervirtual
PokemonEssentials::Interface::Battle::IBattleType.pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonEssentials.Interface.Battle.IBattleType
\ No newline at end of file + CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.BattleTowervirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_tower.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_tower.cshtml index f0ee82e81..5edb737cc 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_tower.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_tower.cshtml @@ -31,17 +31,16 @@ Inheritance diagram for PokemonUnity.BattleTower: - - - - - - - + + + + + +

Public Member Functions

override PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
virtual PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Battle.IBattleType
IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
override PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
virtual PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 

Member Function Documentation

- -

◆ pbCreateBattle()

+ +

◆ CreateBattle()

@@ -50,9 +49,9 @@ Public Member Functions - + - + @@ -75,10 +74,11 @@ Public Member Functions
override PokemonEssentials.Interface.PokeBattle.IBattle PokemonUnity.BattleTower.pbCreateBattle override PokemonEssentials.Interface.PokeBattle.IBattle PokemonUnity.BattleTower.CreateBattle (IPokeBattle_Scene IPokeBattle_Scene  scene,
-

Reimplemented from PokemonUnity.BattleType.

+

Reimplemented from PokemonUnity.BattleType.


The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_type-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_type-members.cshtml index 5f741e4d8..4793513bf 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_type-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_type-members.cshtml @@ -16,6 +16,5 @@

This is the complete list of members for PokemonUnity.BattleType, including all inherited members.

- - -
pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.BattleTypevirtual
PokemonEssentials::Interface::Battle::IBattleType.pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonEssentials.Interface.Battle.IBattleType
\ No newline at end of file + CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.BattleTypevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_type.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_type.cshtml index 6031b0016..18e8fd067 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_type.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_type.cshtml @@ -31,15 +31,14 @@ Inheritance diagram for PokemonUnity.BattleType: - - - - - + + + +

Public Member Functions

virtual PokemonEssentials.Interface.PokeBattle.IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Battle.IBattleType
IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
virtual PokemonEssentials.Interface.PokeBattle.IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 
IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
 

Member Function Documentation

- -

◆ pbCreateBattle()

+ +

◆ CreateBattle()

@@ -48,9 +47,9 @@ Public Member Functions - + - + @@ -73,10 +72,13 @@ Public Member Functions
virtual PokemonEssentials.Interface.PokeBattle.IBattle PokemonUnity.BattleType.pbCreateBattle virtual PokemonEssentials.Interface.PokeBattle.IBattle PokemonUnity.BattleType.CreateBattle (IPokeBattle_Scene IPokeBattle_Scene  scene,

The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_battler_event_args-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_battler_event_args-members.cshtml index edb8be001..a4ddc5ed9 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_battler_event_args-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_battler_event_args-members.cshtml @@ -22,4 +22,4 @@ ItemPokemonUnity.BattleUseOnBattlerEventArgs ResponsePokemonUnity.BattleUseOnBattlerEventArgs ScenePokemonUnity.BattleUseOnBattlerEventArgs - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_battler_event_args.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_battler_event_args.cshtml index f8f6bc212..4a357f375 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_battler_event_args.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_battler_event_args.cshtml @@ -205,3 +205,4 @@ Properties
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_pokemon_event_args-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_pokemon_event_args-members.cshtml index 100650459..9b67f22ac 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_pokemon_event_args-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_pokemon_event_args-members.cshtml @@ -23,4 +23,4 @@ PokemonPokemonUnity.BattleUseOnPokemonEventArgs ResponsePokemonUnity.BattleUseOnPokemonEventArgs ScenePokemonUnity.BattleUseOnPokemonEventArgs - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_pokemon_event_args.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_pokemon_event_args.cshtml index 6f71b04f7..462bf8a30 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_pokemon_event_args.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_battle_use_on_pokemon_event_args.cshtml @@ -233,3 +233,4 @@ Properties
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_capped_level_adjustment-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_capped_level_adjustment-members.cshtml index dabe00fc3..99637ddb2 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_capped_level_adjustment-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_capped_level_adjustment-members.cshtml @@ -36,4 +36,4 @@ typePokemonUnity.LevelAdjustment unadjustLevels(PokemonEssentials.Interface.PokeBattle.IPokemon[] team1, PokemonEssentials.Interface.PokeBattle.IPokemon[] team2, int?[][] adjustments)PokemonUnity.LevelAdjustmentvirtual PokemonEssentials::Interface::Battle::ILevelAdjustment.unadjustLevels(IPokemon[] team1, IPokemon[] team2, int?[][] adjustments)PokemonEssentials.Interface.Battle.ILevelAdjustment - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_capped_level_adjustment.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_capped_level_adjustment.cshtml index befeee81b..8143c24c9 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_capped_level_adjustment.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_capped_level_adjustment.cshtml @@ -141,3 +141,4 @@ Additional Inherited Members
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_day_care-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_day_care-members.cshtml index 9f6c51337..6325581ac 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_day_care-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_day_care-members.cshtml @@ -17,21 +17,21 @@

This is the complete list of members for PokemonUnity.Character.DayCare, including all inherited members.

+ + + + + + + + + + - + + + - - - - - - - - - - - - -
DayCare(int slots)PokemonUnity.Character.DayCare
DayCareChoose(string text, int variable)PokemonUnity.Character.DayCare
DayCareCompatibleGender(IPokemon pokemon1, IPokemon pokemon2)PokemonUnity.Character.DayCare
DayCareDeposit(int index)PokemonUnity.Character.DayCare
DayCareDeposited()PokemonUnity.Character.DayCare
DayCareGenerateEgg()PokemonUnity.Character.DayCare
DayCareGetCompat()PokemonUnity.Character.DayCare
DayCareGetCompatibility(int variable)PokemonUnity.Character.DayCare
DayCareGetDeposited(int index, int nameVariable, int costVariable)PokemonUnity.Character.DayCare
DayCareGetLevelGain(int index, int nameVariable, int levelVariable)PokemonUnity.Character.DayCare
DayCareWithdraw(int index)PokemonUnity.Character.DayCare
EggPokemonUnity.Character.DayCare
HasEggPokemonUnity.Character.DayCare
EggGenerated()PokemonUnity.Character.DayCare
HasEggPokemonUnity.Character.DayCare
IsDitto(IPokemon pokemon)PokemonUnity.Character.DayCare
OnStepTakenEventHandler(object sender, IOnStepTakenFieldMovementEventArgs e)PokemonUnity.Character.DayCare
pbDayCareChoose(string text, int variable)PokemonUnity.Character.DayCare
pbDayCareCompatibleGender(IPokemon pokemon1, IPokemon pokemon2)PokemonUnity.Character.DayCare
pbDayCareDeposit(int index)PokemonUnity.Character.DayCare
pbDayCareDeposited()PokemonUnity.Character.DayCare
pbDayCareGenerateEgg()PokemonUnity.Character.DayCare
pbDayCareGetCompat()PokemonUnity.Character.DayCare
pbDayCareGetCompatibility(int variable)PokemonUnity.Character.DayCare
pbDayCareGetDeposited(int index, int nameVariable, int costVariable)PokemonUnity.Character.DayCare
pbDayCareGetLevelGain(int index, int nameVariable, int levelVariable)PokemonUnity.Character.DayCare
pbDayCareWithdraw(int index)PokemonUnity.Character.DayCare
pbEggGenerated()PokemonUnity.Character.DayCare
pbIsDitto(IPokemon pokemon)PokemonUnity.Character.DayCare
SlotPokemonUnity.Character.DayCare
this[int index]PokemonUnity.Character.DayCare
\ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_day_care.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_day_care.cshtml index d669faaff..6a0141e24 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_day_care.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_day_care.cshtml @@ -34,56 +34,56 @@ Inheritance diagram for PokemonUnity.Character.DayCare: Public Member Functions  DayCare (int slots)   -bool pbEggGenerated () -  -int pbDayCareDeposited () -  -void pbDayCareDeposit (int index) -  -bool pbDayCareGetLevelGain (int index, int nameVariable, int levelVariable) -  -void pbDayCareGetDeposited (int index, int nameVariable, int costVariable) -  -bool pbIsDitto (IPokemon pokemon) -  -bool pbDayCareCompatibleGender (IPokemon pokemon1, IPokemon pokemon2) -  -int pbDayCareGetCompat () -  -void pbDayCareGetCompatibility (int variable) -  -void pbDayCareWithdraw (int index) -  -void pbDayCareChoose (string text, int variable) -  -void pbDayCareGenerateEgg () -  +bool EggGenerated () +  +int DayCareDeposited () +  +void DayCareDeposit (int index) +  +bool DayCareGetLevelGain (int index, int nameVariable, int levelVariable) +  +void DayCareGetDeposited (int index, int nameVariable, int costVariable) +  +bool IsDitto (IPokemon pokemon) +  +bool DayCareCompatibleGender (IPokemon pokemon1, IPokemon pokemon2) +  +int DayCareGetCompat () +  +void DayCareGetCompatibility (int variable) +  +void DayCareWithdraw (int index) +  +void DayCareChoose (string text, int variable) +  +void DayCareGenerateEgg () +  void OnStepTakenEventHandler (object sender, IOnStepTakenFieldMovementEventArgs e)   -bool pbEggGenerated () -  -int pbDayCareDeposited () -  -void pbDayCareDeposit (int index) -  -bool pbDayCareGetLevelGain (int index, int nameVariable, int levelVariable) -  -void pbDayCareGetDeposited (int index, int nameVariable, int costVariable) -  -bool pbIsDitto (IPokemon pokemon) -  -bool pbDayCareCompatibleGender (IPokemon pokemon1, IPokemon pokemon2) -  -int pbDayCareGetCompat () -  -void pbDayCareGetCompatibility (int variable) -  -void pbDayCareWithdraw (int index) -  -void pbDayCareChoose (string text, int variable) -  -void pbDayCareGenerateEgg () -  +bool EggGenerated () +  +int DayCareDeposited () +  +void DayCareDeposit (int index) +  +bool DayCareGetLevelGain (int index, int nameVariable, int levelVariable) +  +void DayCareGetDeposited (int index, int nameVariable, int costVariable) +  +bool IsDitto (IPokemon pokemon) +  +bool DayCareCompatibleGender (IPokemon pokemon1, IPokemon pokemon2) +  +int DayCareGetCompat () +  +void DayCareGetCompatibility (int variable) +  +void DayCareWithdraw (int index) +  +void DayCareChoose (string text, int variable) +  +void DayCareGenerateEgg () +  @@ -122,37 +122,14 @@ Properties

Member Function Documentation

- -

◆ OnStepTakenEventHandler()

- -
-
-

Properties

- - - - - - - - - - - - -
void PokemonUnity.Character.DayCare.OnStepTakenEventHandler (object sender,
IOnStepTakenFieldMovementEventArgs e  )
-
- -
- - -

◆ pbDayCareChoose()

+ +

◆ DayCareChoose()

- + @@ -166,18 +143,18 @@ Properties
void PokemonUnity.Character.DayCare.pbDayCareChoose void PokemonUnity.Character.DayCare.DayCareChoose ( string  text,
- -

◆ pbDayCareCompatibleGender()

+ +

◆ DayCareCompatibleGender()

- + @@ -191,18 +168,18 @@ Properties
bool PokemonUnity.Character.DayCare.pbDayCareCompatibleGender bool PokemonUnity.Character.DayCare.DayCareCompatibleGender ( IPokemon  pokemon1,
- -

◆ pbDayCareDeposit()

+ +

◆ DayCareDeposit()

- + @@ -211,18 +188,18 @@ Properties
void PokemonUnity.Character.DayCare.pbDayCareDeposit void PokemonUnity.Character.DayCare.DayCareDeposit ( int  index)
- -

◆ pbDayCareDeposited()

+ +

◆ DayCareDeposited()

- + @@ -230,39 +207,39 @@ Properties
int PokemonUnity.Character.DayCare.pbDayCareDeposited int PokemonUnity.Character.DayCare.DayCareDeposited ( )
- -

◆ pbDayCareGenerateEgg()

+ +

◆ DayCareGenerateEgg()

- +
void PokemonUnity.Character.DayCare.pbDayCareGenerateEgg void PokemonUnity.Character.DayCare.DayCareGenerateEgg ( )
-

pbBallTypeToBall(mother.ballUsed)

-

pbBallTypeToBall(mother.ballUsed)

+

BallTypeToBall(mother.ballUsed)

+

BallTypeToBall(mother.ballUsed)

-

Implements PokemonEssentials.Interface.Field.IDayCare.

+

Implements PokemonEssentials.Interface.Field.IDayCare.

- -

◆ pbDayCareGetCompat()

+ +

◆ DayCareGetCompat()

- + @@ -270,18 +247,18 @@ Properties
int PokemonUnity.Character.DayCare.pbDayCareGetCompat int PokemonUnity.Character.DayCare.DayCareGetCompat ( )
- -

◆ pbDayCareGetCompatibility()

+ +

◆ DayCareGetCompatibility()

- + @@ -290,18 +267,18 @@ Properties
void PokemonUnity.Character.DayCare.pbDayCareGetCompatibility void PokemonUnity.Character.DayCare.DayCareGetCompatibility ( int  variable)
- -

◆ pbDayCareGetDeposited()

+ +

◆ DayCareGetDeposited()

- + @@ -321,18 +298,18 @@ Properties
void PokemonUnity.Character.DayCare.pbDayCareGetDeposited void PokemonUnity.Character.DayCare.DayCareGetDeposited ( int  index,
- -

◆ pbDayCareGetLevelGain()

+ +

◆ DayCareGetLevelGain()

- + @@ -352,18 +329,18 @@ Properties
bool PokemonUnity.Character.DayCare.pbDayCareGetLevelGain bool PokemonUnity.Character.DayCare.DayCareGetLevelGain ( int  index,
- -

◆ pbDayCareWithdraw()

+ +

◆ DayCareWithdraw()

- + @@ -372,18 +349,18 @@ Properties
void PokemonUnity.Character.DayCare.pbDayCareWithdraw void PokemonUnity.Character.DayCare.DayCareWithdraw ( int  index)
- -

◆ pbEggGenerated()

+ +

◆ EggGenerated()

- + @@ -391,18 +368,18 @@ Properties
bool PokemonUnity.Character.DayCare.pbEggGenerated bool PokemonUnity.Character.DayCare.EggGenerated ( )
- -

◆ pbIsDitto()

+ +

◆ IsDitto()

- + @@ -411,7 +388,30 @@ Properties
bool PokemonUnity.Character.DayCare.pbIsDitto bool PokemonUnity.Character.DayCare.IsDitto ( IPokemon  pokemon)
+
+ +

◆ OnStepTakenEventHandler()

+ +
+
+ + + + + + + + + + + + + +
void PokemonUnity.Character.DayCare.OnStepTakenEventHandler (object sender,
IOnStepTakenFieldMovementEventArgs e  )
+
@@ -513,3 +513,4 @@ Properties
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_entities-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_entities-members.cshtml index ae6ca2b50..6760e47d9 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_entities-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_entities-members.cshtml @@ -33,4 +33,4 @@ TRAINERPokemonUnity.Character.Entitiesstatic TRAINERDEBUGPokemonUnity.Character.Entitiesstatic UPDATEPokemonUnity.Character.Entitiesstatic - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_entities.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_entities.cshtml index bc5802665..b3a8fa46a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_entities.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_entities.cshtml @@ -493,3 +493,4 @@ Static Public Attributes
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c-members.cshtml new file mode 100644 index 000000000..a419b80f4 --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c-members.cshtml @@ -0,0 +1,38 @@ +@{ + Page.Title = "Member List"; +} + +@section breadcrumbs { + +} + +@section headertitle { +
PokemonUnity.Character.PC Member List
+} + + +

This is the complete list of members for PokemonUnity.Character.PC, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + +
ActiveBoxPokemonUnity.Character.PC
addPokemon(int box, int position, IPokemon pokemon)PokemonUnity.Character.PC
addPokemon(IPokemon acquiredPokemon)PokemonUnity.Character.PC
AllBoxesPokemonUnity.Character.PC
BoxNamesPokemonUnity.Character.PC
BoxTexturesPokemonUnity.Character.PC
getBoxCount()PokemonUnity.Character.PC
getBoxCount(int box)PokemonUnity.Character.PC
getIndexOfFirstEmpty()PokemonUnity.Character.PC
hasSpace()PokemonUnity.Character.PC
ItemsPokemonUnity.Character.PC
NamePokemonUnity.Character.PC
PC()PokemonUnity.Character.PC
PC(IPokemon[][] pkmns=null, KeyValuePair< Items, int >[] items=null, byte? box=null, string[] names=null, int[] textures=null)PokemonUnity.Character.PC
PokemonsPokemonUnity.Character.PC
removePokemon(int boxID, int pkmnID)PokemonUnity.Character.PC
swapPokemon(int box1, int pos1, int box2, int pos2)PokemonUnity.Character.PC
TexturePokemonUnity.Character.PC
this[byte i]PokemonUnity.Character.PC
diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c.cshtml new file mode 100644 index 000000000..c1c639dfd --- /dev/null +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c.cshtml @@ -0,0 +1,556 @@ +@{ + Page.Title = "PokemonUnity.Character.PC Class Reference"; +} + +@section breadcrumbs { + +} + +@section headertitle { + +
PokemonUnity.Character.PC Class Reference
+} + +
+Inheritance diagram for PokemonUnity.Character.PC:
+
+
+ + +PokemonEssentials.Interface.Screen.IPCPokemonStorage + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 PC ()
 
 PC (IPokemon[][] pkmns=null, KeyValuePair<Items, int >[] items=null, byte? box=null, string[] names=null, int[] textures=null)
 
bool hasSpace ()
 
int getBoxCount ()
 
int? getIndexOfFirstEmpty ()
 
int getBoxCount (int box)
 
bool removePokemon (int boxID, int pkmnID)
 
bool addPokemon (int box, int position, IPokemon pokemon)
 
KeyValuePair< int, int >? addPokemon (IPokemon acquiredPokemon)
 Add a new pokemon directly to active box. More...
 
void swapPokemon (int box1, int pos1, int box2, int pos2)
 
IPCPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
int maxPokemon (int box)
 
int FirstFreePos (int box)
 
bool Copy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool Move (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void MoveCaughtToParty (IPokemon pkmn)
 
bool MoveCaughtToBox (IPokemon pkmn, int box)
 
int StoreCaught (IPokemon pkmn)
 
void Delete (int box, int index)
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Properties

IPokemon[][] AllBoxes [get]
 
byte ActiveBox [get]
 
string[] BoxNames [get]
 
int[] BoxTextures [get]
 
string Name [get]
 
int Texture [get]
 
IPokemon[] Pokemons [get]
 
KeyValuePair<Items, int >[] Items [get]
 
IPokemonBox this[byte i] [get]
 
- Properties inherited from PokemonEssentials.Interface.Screen.IPCPokemonStorage
IPokemonBox[] boxes [get]
 
int currentBox [get, set]
 
int maxBoxes [get]
 
IPokemon[] party [get]
 
IPokemonBox this[int x] [get]
 
IPokemon this[int x, int y] [get, set]
 
bool full [get]
 
+

Constructor & Destructor Documentation

+ +

◆ PC() [1/2]

+ +
+
+ + + + + + + +
PokemonUnity.Character.PC.PC ()
+
+ +
+
+ +

◆ PC() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PokemonUnity.Character.PC.PC (IPokemon pkmns[][] = null,
KeyValuePair<Items, int >[] items = null,
byte? box = null,
string[] names = null,
int[] textures = null  )
+
+ +
+
+

Member Function Documentation

+ +

◆ addPokemon() [1/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + +
bool PokemonUnity.Character.PC.addPokemon (int box,
int position,
IPokemon pokemon  )
+
+ +
+
+ +

◆ addPokemon() [2/2]

+ +
+
+ + + + + + + + +
KeyValuePair< int, int >? PokemonUnity.Character.PC.addPokemon (IPokemon acquiredPokemon)
+
+ +

Add a new pokemon directly to active box.

+
Parameters
+ + +
acquiredPokemon
+
+
+
Returns
Returns position of stored pokemon. If pokemon could not be added return null.
+ +
+
+ +

◆ getBoxCount() [1/2]

+ +
+
+ + + + + + + +
int PokemonUnity.Character.PC.getBoxCount ()
+
+ +
+
+ +

◆ getBoxCount() [2/2]

+ +
+
+ + + + + + + + +
int PokemonUnity.Character.PC.getBoxCount (int box)
+
+ +
+
+ +

◆ getIndexOfFirstEmpty()

+ +
+
+ + + + + + + +
int? PokemonUnity.Character.PC.getIndexOfFirstEmpty ()
+
+ +
+
+ +

◆ hasSpace()

+ +
+
+ + + + + + + +
bool PokemonUnity.Character.PC.hasSpace ()
+
+ +
+
+ +

◆ removePokemon()

+ +
+
+ + + + + + + + + + + + + +
bool PokemonUnity.Character.PC.removePokemon (int boxID,
int pkmnID  )
+
+ +
+
+ +

◆ swapPokemon()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void PokemonUnity.Character.PC.swapPokemon (int box1,
int pos1,
int box2,
int pos2  )
+
+ +
+
+

Property Documentation

+ +

◆ ActiveBox

+ +
+
+ + + + + +
+ + + + +
byte PokemonUnity.Character.PC.ActiveBox
+
+get
+
+ +
+
+ +

◆ AllBoxes

+ +
+
+ + + + + +
+ + + + +
IPokemon [][] PokemonUnity.Character.PC.AllBoxes
+
+get
+
+ +
+
+ +

◆ BoxNames

+ +
+
+ + + + + +
+ + + + +
string [] PokemonUnity.Character.PC.BoxNames
+
+get
+
+ +
+
+ +

◆ BoxTextures

+ +
+
+ + + + + +
+ + + + +
int [] PokemonUnity.Character.PC.BoxTextures
+
+get
+
+ +
+
+ +

◆ Items

+ +
+
+ + + + + +
+ + + + +
KeyValuePair<Items, int> [] PokemonUnity.Character.PC.Items
+
+get
+
+ +

+

ToDo: Add filter to add/remove items...

+ +
+
+ +

◆ Name

+ +
+
+ + + + + +
+ + + + +
string PokemonUnity.Character.PC.Name
+
+get
+
+ +
+
+ +

◆ Pokemons

+ +
+
+ + + + + +
+ + + + +
IPokemon [] PokemonUnity.Character.PC.Pokemons
+
+get
+
+ +
+
+ +

◆ Texture

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.Character.PC.Texture
+
+get
+
+ +
+
+ +

◆ this[byte i]

+ +
+
+ + + + + +
+ + + + +
IPokemonBox PokemonUnity.Character.PC.this[byte i]
+
+get
+
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • PokemonUnity.Application/Character/PC.cs
  • +
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c.png new file mode 100644 index 000000000..5bf822724 Binary files /dev/null and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c___refactor-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c___refactor-members.cshtml deleted file mode 100644 index abd2d1150..000000000 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c___refactor-members.cshtml +++ /dev/null @@ -1,38 +0,0 @@ -@{ - Page.Title = "Member List"; -} - -@section breadcrumbs { - -} - -@section headertitle { -
PokemonUnity.Character.PC_Refactor Member List
-} - - -

This is the complete list of members for PokemonUnity.Character.PC_Refactor, including all inherited members.

- - - - - - - - - - - - - - - - - - - - -
ActiveBoxPokemonUnity.Character.PC_Refactor
addPokemon(int box, int position, Pokemon pokemon)PokemonUnity.Character.PC_Refactor
addPokemon(Pokemon acquiredPokemon)PokemonUnity.Character.PC_Refactor
AllBoxesPokemonUnity.Character.PC_Refactor
BoxNamesPokemonUnity.Character.PC_Refactor
BoxTexturesPokemonUnity.Character.PC_Refactor
getBoxCount()PokemonUnity.Character.PC_Refactor
getBoxCount(int box)PokemonUnity.Character.PC_Refactor
getIndexOfFirstEmpty()PokemonUnity.Character.PC_Refactor
hasSpace()PokemonUnity.Character.PC_Refactor
ItemsPokemonUnity.Character.PC_Refactor
NamePokemonUnity.Character.PC_Refactor
PC_Refactor()PokemonUnity.Character.PC_Refactor
PC_Refactor(Pokemon[][] pkmns=null, KeyValuePair< Items, int >[] items=null, byte? box=null, string[] names=null, int[] textures=null)PokemonUnity.Character.PC_Refactor
PokemonsPokemonUnity.Character.PC_Refactor
removePokemon(int boxID, int pkmnID)PokemonUnity.Character.PC_Refactor
swapPokemon(int box1, int pos1, int box2, int pos2)PokemonUnity.Character.PC_Refactor
TexturePokemonUnity.Character.PC_Refactor
this[byte i]PokemonUnity.Character.PC_Refactor
\ No newline at end of file diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c___refactor.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c___refactor.cshtml deleted file mode 100644 index 3d12b82a9..000000000 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c___refactor.cshtml +++ /dev/null @@ -1,513 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Character.PC_Refactor Class Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { - -
PokemonUnity.Character.PC_Refactor Class Reference
-} - - - - - - - - - - - - - - - - - - - - - - - - -

-Public Member Functions

 PC_Refactor ()
 
 PC_Refactor (Pokemon[][] pkmns=null, KeyValuePair<Items, int >[] items=null, byte? box=null, string[] names=null, int[] textures=null)
 
bool hasSpace ()
 
int getBoxCount ()
 
int? getIndexOfFirstEmpty ()
 
int getBoxCount (int box)
 
bool removePokemon (int boxID, int pkmnID)
 
bool addPokemon (int box, int position, Pokemon pokemon)
 
KeyValuePair< int, int >? addPokemon (Pokemon acquiredPokemon)
 Add a new pokemon directly to active box. More...
 
void swapPokemon (int box1, int pos1, int box2, int pos2)
 
- - - - - - - - - - - - - - - - - - - -

-Properties

Pokemon[][] AllBoxes [get]
 
byte ActiveBox [get]
 
string[] BoxNames [get]
 
int[] BoxTextures [get]
 
string Name [get]
 
int Texture [get]
 
Pokemon[] Pokemons [get]
 
KeyValuePair<Items, int >[] Items [get]
 
PC_Refactor this[byte i] [get]
 
-

Constructor & Destructor Documentation

- -

◆ PC_Refactor() [1/2]

- -
-
- - - - - - - -
PokemonUnity.Character.PC_Refactor.PC_Refactor ()
-
- -
-
- -

◆ PC_Refactor() [2/2]

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PokemonUnity.Character.PC_Refactor.PC_Refactor (Pokemon pkmns[][] = null,
KeyValuePair<Items, int >[] items = null,
byte? box = null,
string[] names = null,
int[] textures = null  )
-
- -
-
-

Member Function Documentation

- -

◆ addPokemon() [1/2]

- -
-
- - - - - - - - - - - - - - - - - - - -
bool PokemonUnity.Character.PC_Refactor.addPokemon (int box,
int position,
Pokemon pokemon  )
-
- -
-
- -

◆ addPokemon() [2/2]

- -
-
- - - - - - - - -
KeyValuePair< int, int >? PokemonUnity.Character.PC_Refactor.addPokemon (Pokemon acquiredPokemon)
-
- -

Add a new pokemon directly to active box.

-
Parameters
- - -
acquiredPokemon
-
-
-
Returns
Returns position of stored pokemon. If pokemon could not be added return null.
- -
-
- -

◆ getBoxCount() [1/2]

- -
-
- - - - - - - -
int PokemonUnity.Character.PC_Refactor.getBoxCount ()
-
- -
-
- -

◆ getBoxCount() [2/2]

- -
-
- - - - - - - - -
int PokemonUnity.Character.PC_Refactor.getBoxCount (int box)
-
- -
-
- -

◆ getIndexOfFirstEmpty()

- -
-
- - - - - - - -
int? PokemonUnity.Character.PC_Refactor.getIndexOfFirstEmpty ()
-
- -
-
- -

◆ hasSpace()

- -
-
- - - - - - - -
bool PokemonUnity.Character.PC_Refactor.hasSpace ()
-
- -
-
- -

◆ removePokemon()

- -
-
- - - - - - - - - - - - - -
bool PokemonUnity.Character.PC_Refactor.removePokemon (int boxID,
int pkmnID  )
-
- -
-
- -

◆ swapPokemon()

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
void PokemonUnity.Character.PC_Refactor.swapPokemon (int box1,
int pos1,
int box2,
int pos2  )
-
- -
-
-

Property Documentation

- -

◆ ActiveBox

- -
-
- - - - - -
- - - - -
byte PokemonUnity.Character.PC_Refactor.ActiveBox
-
-get
-
- -
-
- -

◆ AllBoxes

- -
-
- - - - - -
- - - - -
Pokemon [][] PokemonUnity.Character.PC_Refactor.AllBoxes
-
-get
-
- -
-
- -

◆ BoxNames

- -
-
- - - - - -
- - - - -
string [] PokemonUnity.Character.PC_Refactor.BoxNames
-
-get
-
- -
-
- -

◆ BoxTextures

- -
-
- - - - - -
- - - - -
int [] PokemonUnity.Character.PC_Refactor.BoxTextures
-
-get
-
- -
-
- -

◆ Items

- -
-
- - - - - -
- - - - -
KeyValuePair<Items, int> [] PokemonUnity.Character.PC_Refactor.Items
-
-get
-
- -

-

ToDo: Add filter to add/remove items...

- -
-
- -

◆ Name

- -
-
- - - - - -
- - - - -
string PokemonUnity.Character.PC_Refactor.Name
-
-get
-
- -
-
- -

◆ Pokemons

- -
-
- - - - - -
- - - - -
Pokemon [] PokemonUnity.Character.PC_Refactor.Pokemons
-
-get
-
- -
-
- -

◆ Texture

- -
-
- - - - - -
- - - - -
int PokemonUnity.Character.PC_Refactor.Texture
-
-get
-
- -
-
- -

◆ this[byte i]

- -
-
- - - - - -
- - - - -
PC_Refactor PokemonUnity.Character.PC_Refactor.this[byte i]
-
-get
-
- -
-
-
The documentation for this class was generated from the following file:
    -
  • PokemonUnity.Application/Character/PC.cs
  • -
diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage-members.cshtml index 9de3249bf..f6a7d6878 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage-members.cshtml @@ -16,6 +16,8 @@

This is the complete list of members for PokemonUnity.Character.PCItemStorage, including all inherited members.

+ + @@ -23,10 +25,8 @@ - - - - + + -
CanStore(Items item, int qty=1)PokemonUnity.Character.PCItemStorage
DeleteItem(Items item, int qty=1)PokemonUnity.Character.PCItemStorage
empty()PokemonUnity.Character.PCItemStorage
getCount(int index)PokemonUnity.Character.PCItemStorage
getItem(int index)PokemonUnity.Character.PCItemStorage
length()PokemonUnity.Character.PCItemStorage
MAXPERSLOTPokemonUnity.Character.PCItemStoragestatic
MAXSIZEPokemonUnity.Character.PCItemStoragestatic
pbCanStore(Items item, int qty=1)PokemonUnity.Character.PCItemStorage
pbDeleteItem(Items item, int qty=1)PokemonUnity.Character.PCItemStorage
pbQuantity(Items item)PokemonUnity.Character.PCItemStorage
pbStoreItem(Items item, int qty=1)PokemonUnity.Character.PCItemStorage
PCItemStorage()PokemonUnity.Character.PCItemStorage
Quantity(Items item)PokemonUnity.Character.PCItemStorage
StoreItem(Items item, int qty=1)PokemonUnity.Character.PCItemStorage
this[int i]PokemonUnity.Character.PCItemStorage
\ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage.cshtml index f3f159d53..ab69763ce 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage.cshtml @@ -19,7 +19,7 @@ } -

The PC item storage object, which actually contains all the items +

The PC item storage object, which actually contains all the items More...

Inheritance diagram for PokemonUnity.Character.PCItemStorage:
@@ -27,7 +27,7 @@ Inheritance diagram for PokemonUnity.Character.PCItemStorage:
-PokemonEssentials.Interface.Screen.IPCItemStorage +PokemonEssentials.Interface.Screen.IPCItemStorage
@@ -45,14 +45,14 @@ Public Member Functions - - - - - - - - + + + + + + + + @@ -63,14 +63,14 @@ Public Member Functions - - - - - - - - + + + + + + + +
 
int getCount (int index)
 
int pbQuantity (Items item)
 
bool pbDeleteItem (Items item, int qty=1)
 
bool pbCanStore (Items item, int qty=1)
 
bool pbStoreItem (Items item, int qty=1)
 
int Quantity (Items item)
 
bool DeleteItem (Items item, int qty=1)
 
bool CanStore (Items item, int qty=1)
 
bool StoreItem (Items item, int qty=1)
 
IPCItemStorage initialize ()
 
bool empty ()
 
int getCount (int index)
 
int pbQuantity (Items item)
 
bool pbDeleteItem (Items item, int qty=1)
 
bool pbCanStore (Items item, int qty=1)
 
bool pbStoreItem (Items item, int qty=1)
 
int Quantity (Items item)
 
bool DeleteItem (Items item, int qty=1)
 
bool CanStore (Items item, int qty=1)
 
bool StoreItem (Items item, int qty=1)
 
@@ -83,14 +83,11 @@ Static Public Attributes

Static Public Attributes

- + - - -

Properties

Items this[int i] [get]
Items this[int i] [get, set]
 
- Properties inherited from PokemonEssentials.Interface.Screen.IPCItemStorage
Items this[int i] [get]
 

Detailed Description

-

The PC item storage object, which actually contains all the items

+

The PC item storage object, which actually contains all the items

Constructor & Destructor Documentation

◆ PCItemStorage()

@@ -110,161 +107,161 @@ Properties

Member Function Documentation

- -

◆ empty()

+ +

◆ CanStore()

- + - + + + + + + +
bool PokemonUnity.Character.PCItemStorage.empty bool PokemonUnity.Character.PCItemStorage.CanStore ()Items item,
int qty = 1  )
- -

◆ getCount()

+ +

◆ DeleteItem()

- + - - + + + + + + +
int PokemonUnity.Character.PCItemStorage.getCount bool PokemonUnity.Character.PCItemStorage.DeleteItem (int index)Items item,
int qty = 1  )
- -

◆ getItem()

+ +

◆ empty()

- + - - +
Items PokemonUnity.Character.PCItemStorage.getItem bool PokemonUnity.Character.PCItemStorage.empty (int index))
- -

◆ initialize()

+ +

◆ getCount()

- + - + +
PokemonEssentials.Interface.Screen.IPCItemStorage PokemonUnity.Character.PCItemStorage.initialize int PokemonUnity.Character.PCItemStorage.getCount ()int index)
- -

◆ length()

+ +

◆ getItem()

- + - + +
int PokemonUnity.Character.PCItemStorage.length Items PokemonUnity.Character.PCItemStorage.getItem ()int index)
- -

◆ pbCanStore()

+ +

◆ initialize()

- + - - - - - + - -
bool PokemonUnity.Character.PCItemStorage.pbCanStore PokemonEssentials.Interface.Screen.IPCItemStorage PokemonUnity.Character.PCItemStorage.initialize (Items item,
) int qty = 1  )
- -

◆ pbDeleteItem()

+ +

◆ length()

- + - - - - - + - -
bool PokemonUnity.Character.PCItemStorage.pbDeleteItem int PokemonUnity.Character.PCItemStorage.length (Items item,
) int qty = 1  )
- -

◆ pbQuantity()

+ +

◆ Quantity()

- + @@ -273,18 +270,18 @@ Properties
int PokemonUnity.Character.PCItemStorage.pbQuantity int PokemonUnity.Character.PCItemStorage.Quantity ( Items  item)
- -

◆ pbStoreItem()

+ +

◆ StoreItem()

- + @@ -298,7 +295,7 @@ Properties
bool PokemonUnity.Character.PCItemStorage.pbStoreItem bool PokemonUnity.Character.PCItemStorage.StoreItem ( Items  item,
@@ -367,15 +364,14 @@ Properties -get +getset
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage.png index f86c44112..cf185b3ad 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_p_c_item_storage.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_party-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_party-members.cshtml index c03444bf9..8ab7ccc20 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_party-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_party-members.cshtml @@ -37,4 +37,4 @@ Remove(PokemonEssentials.Interface.PokeBattle.IPokemon item)PokemonUnity.Character.Partyvirtual RemoveAt(int index)PokemonUnity.Character.Partyvirtual this[int i]PokemonUnity.Character.Party - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_party.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_party.cshtml index 4bfa56f47..7c2fb0ad0 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_party.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_party.cshtml @@ -600,3 +600,4 @@ Properties
The documentation for this class was generated from the following file:
  • PokemonUnity.Application/Character/Party.cs
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_phone-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_phone-members.cshtml index 40302f48f..584f7a32a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_phone-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_phone-members.cshtml @@ -17,4 +17,4 @@

This is the complete list of members for PokemonUnity.Character.Phone, including all inherited members.

-
this[int msgType, int msgId]PokemonUnity.Character.Phone
\ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_phone.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_phone.cshtml index fb699014f..568a3bef2 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_phone.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_phone.cshtml @@ -53,3 +53,4 @@ Properties
The documentation for this class was generated from the following file:
  • PokemonUnity.Shared/Character/Gear/Phone.cs
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_player-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_player-members.cshtml index 6c1755117..7e3bccc90 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_player-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_player-members.cshtml @@ -54,4 +54,4 @@ SavingsPokemonUnity.Character.Player StartDatePokemonUnity.Character.Player TrainerPokemonUnity.Character.Player - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_player.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_player.cshtml index 52b2c9b86..d3741a778 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_player.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_player.cshtml @@ -24,7 +24,7 @@ Public Member Functions    Player (string name, bool gender, Pokemon[] party=null, Items[] bag=null, Pokemon[][] pc_poke=null, KeyValuePair<Items, int >[] pc_items=null, byte? pc_box=null, string[] pc_names=null, int[] pc_textures=null, int? trainerid=null, int? secretid=null, int? money=null, int? coin=null, int? bank=null, int? repel=null, string rival=null, byte[][] dex=null, TimeSpan? time=null, IVector position=null, byte? follower=null, bool? creator=null, int? map=null, int? pokecenter=null, KeyValuePair<GymBadges, DateTime?>[] gym=null)   - Player (string name, bool gender, Pokemon[] party, Bag bag=null, PC pc=null, int? trainerid=null, int? secretid=null, int? money=null, int? coin=null, int? bank=null, int? repel=null, string rival=null, byte[][] dex=null, TimeSpan? time=null, IVector position=null, byte? follower=null, bool? creator=null, int? map=null, int? pokecenter=null, KeyValuePair<GymBadges, DateTime?>[] gym=null) + Player (string name, bool gender, Pokemon[] party, Bag bag=null, PC pc=null, int? trainerid=null, int? secretid=null, int? money=null, int? coin=null, int? bank=null, int? repel=null, string rival=null, byte[][] dex=null, TimeSpan? time=null, IVector position=null, byte? follower=null, bool? creator=null, int? map=null, int? pokecenter=null, KeyValuePair<GymBadges, DateTime?>[] gym=null)    Player (TrainerData trainer, Pokemon[] party=null)   @@ -49,7 +49,7 @@ Properties Bag Bag [get]  When displaying items in bag, do a foreach loop and filter by item category More...
  -PC PC [get] +PC PC [get]   Regions Region [get]   @@ -314,7 +314,7 @@ Properties - PC  + PC  pc = null, @@ -872,7 +872,7 @@ Properties - +
PC PokemonUnity.Character.Player.PCPC PokemonUnity.Character.Player.PC
@@ -1223,3 +1223,4 @@ Properties
The documentation for this class was generated from the following file:
  • PokemonUnity.Shared/Character/Player/Base.cs
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_bag-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_bag-members.cshtml index dd9263168..1ee3f3679 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_bag-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_bag-members.cshtml @@ -16,23 +16,23 @@

This is the complete list of members for PokemonUnity.Character.PokemonBag, including all inherited members.

+ + - + + + - - - - - - - - - - + + + + -
CanStore(Items item, int qty=1)PokemonUnity.Character.PokemonBag
ChangeItem(Items olditem, Items newitem)PokemonUnity.Character.PokemonBag
clear()PokemonUnity.Character.PokemonBag
getChoice(ItemPockets pocket)PokemonUnity.Character.PokemonBag
DeleteItem(Items item, int qty=1)PokemonUnity.Character.PokemonBag
getChoice(ItemPockets pocket)PokemonUnity.Character.PokemonBag
HasItem(Items item)PokemonUnity.Character.PokemonBag
lastpocketPokemonUnity.Character.PokemonBag
maxPocketSize(int pocket)PokemonUnity.Character.PokemonBag
numPocketsPokemonUnity.Character.PokemonBag
pbCanStore(Items item, int qty=1)PokemonUnity.Character.PokemonBag
pbChangeItem(Items olditem, Items newitem)PokemonUnity.Character.PokemonBag
pbDeleteItem(Items item, int qty=1)PokemonUnity.Character.PokemonBag
pbHasItem(Items item)PokemonUnity.Character.PokemonBag
pbQuantity(Items item)PokemonUnity.Character.PokemonBag
pbRegisterKeyItem(Items item)PokemonUnity.Character.PokemonBag
pbStoreAllOrNone(Items item, int qty=1)PokemonUnity.Character.PokemonBag
pbStoreItem(Items item, int qty=1)PokemonUnity.Character.PokemonBag
pocketNamesPokemonUnity.Character.PokemonBag
pocketsPokemonUnity.Character.PokemonBag
PokemonBag()PokemonUnity.Character.PokemonBag
rearrange()PokemonUnity.Character.PokemonBag
registeredItemPokemonUnity.Character.PokemonBag
Quantity(Items item)PokemonUnity.Character.PokemonBag
rearrange()PokemonUnity.Character.PokemonBag
registeredItemPokemonUnity.Character.PokemonBag
RegisterKeyItem(Items item)PokemonUnity.Character.PokemonBag
setChoice(ItemPockets pocket, int value)PokemonUnity.Character.PokemonBag
\ No newline at end of file + StoreAllOrNone(Items item, int qty=1)PokemonUnity.Character.PokemonBag + StoreItem(Items item, int qty=1)PokemonUnity.Character.PokemonBag + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_bag.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_bag.cshtml index e2bd810e4..c05e7d36e 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_bag.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_bag.cshtml @@ -45,25 +45,25 @@ Public Member Functions void setChoice (ItemPockets pocket, int value)  Sets the index of the current selected item in the pocket More...
  -void pbRegisterKeyItem (Items item) - Registers the item as a key item. Can be retrieved with Game.GameData.Bag.registeredItem More...
-  +void RegisterKeyItem (Items item) + Registers the item as a key item. Can be retrieved with Game.GameData.Bag.registeredItem More...
+  int maxPocketSize (int pocket)   -int pbQuantity (Items item) -  -bool pbHasItem (Items item) -  -bool pbDeleteItem (Items item, int qty=1) -  -bool pbCanStore (Items item, int qty=1) -  -bool pbStoreAllOrNone (Items item, int qty=1) -  -bool pbStoreItem (Items item, int qty=1) -  -bool pbChangeItem (Items olditem, Items newitem) -  +int Quantity (Items item) +  +bool HasItem (Items item) +  +bool DeleteItem (Items item, int qty=1) +  +bool CanStore (Items item, int qty=1) +  +bool StoreAllOrNone (Items item, int qty=1) +  +bool StoreItem (Items item, int qty=1) +  +bool ChangeItem (Items olditem, Items newitem) +  void rearrange ()   int getChoice (ItemPockets pocket) @@ -75,25 +75,25 @@ Public Member Functions void setChoice (ItemPockets pocket, int value)  Sets the index of the current selected item in the pocket More...
  -void pbRegisterKeyItem (Items item) - Registers the item as a key item. Can be retrieved with Game.GameData.Bag.registeredItem More...
-  +void RegisterKeyItem (Items item) + Registers the item as a key item. Can be retrieved with Game.GameData.Bag.registeredItem More...
+  int maxPocketSize (int pocket)   -int pbQuantity (Items item) -  -bool pbHasItem (Items item) -  -bool pbDeleteItem (Items item, int qty=1) -  -bool pbCanStore (Items item, int qty=1) -  -bool pbStoreAllOrNone (Items item, int qty=1) -  -bool pbStoreItem (Items item, int qty=1) -  -bool pbChangeItem (Items olditem, Items newitem) -  +int Quantity (Items item) +  +bool HasItem (Items item) +  +bool DeleteItem (Items item, int qty=1) +  +bool CanStore (Items item, int qty=1) +  +bool StoreAllOrNone (Items item, int qty=1) +  +bool StoreItem (Items item, int qty=1) +  +bool ChangeItem (Items olditem, Items newitem) +  @@ -142,84 +142,85 @@ Properties

Member Function Documentation

- -

◆ clear()

+ +

◆ CanStore()

Properties

- + - + + + + + + +
void PokemonUnity.Character.PokemonBag.clear bool PokemonUnity.Character.PokemonBag.CanStore ()Items item,
int qty = 1  )
-

Clears the entire bag

- -

Implements PokemonEssentials.Interface.Screen.IBag.

+

Implements PokemonEssentials.Interface.Screen.IBag.

- -

◆ getChoice()

+ +

◆ ChangeItem()

- + - - + + + + + + +
int PokemonUnity.Character.PokemonBag.getChoice bool PokemonUnity.Character.PokemonBag.ChangeItem (ItemPockets pocket)Items olditem,
Items newitem  )
-

Gets the index of the current selected item in the pocket

-
Parameters
- - -
pocket
-
-
-
Returns
- -

Implements PokemonEssentials.Interface.Screen.IBag.

+

Implements PokemonEssentials.Interface.Screen.IBag.

- -

◆ maxPocketSize()

+ +

◆ clear()

- + - - +
int PokemonUnity.Character.PokemonBag.maxPocketSize void PokemonUnity.Character.PokemonBag.clear (int pocket))
-

Implements PokemonEssentials.Interface.Screen.IBag.

+

Clears the entire bag

+ +

Implements PokemonEssentials.Interface.Screen.IBag.

- -

◆ pbCanStore()

+ +

◆ DeleteItem()

- + @@ -233,68 +234,87 @@ Properties
bool PokemonUnity.Character.PokemonBag.pbCanStore bool PokemonUnity.Character.PokemonBag.DeleteItem ( Items  item,
- -

◆ pbChangeItem()

+ +

◆ getChoice()

- + - - - - - + + - -
bool PokemonUnity.Character.PokemonBag.pbChangeItem int PokemonUnity.Character.PokemonBag.getChoice (Items olditem,
ItemPockets pocket) Items newitem  )
-

Implements PokemonEssentials.Interface.Screen.IBag.

+

Gets the index of the current selected item in the pocket

+
Parameters
+ + +
pocket
+
+
+
Returns
+ +

Implements PokemonEssentials.Interface.Screen.IBag.

- -

◆ pbDeleteItem()

+ +

◆ HasItem()

- + - + + +
bool PokemonUnity.Character.PokemonBag.pbDeleteItem bool PokemonUnity.Character.PokemonBag.HasItem ( Items item, item)
+
+
+ +

◆ maxPocketSize()

+ +
+
+ - - + + - + +
int PokemonUnity.Character.PokemonBag.maxPocketSize ( int qty = 1  )pocket)
- -

◆ pbHasItem()

+ +

◆ Quantity()

- + @@ -303,38 +323,37 @@ Properties
bool PokemonUnity.Character.PokemonBag.pbHasItem int PokemonUnity.Character.PokemonBag.Quantity ( Items  item)
- -

◆ pbQuantity()

+ +

◆ rearrange()

- + - - +
int PokemonUnity.Character.PokemonBag.pbQuantity void PokemonUnity.Character.PokemonBag.rearrange (Items item))
- -

◆ pbRegisterKeyItem()

+ +

◆ RegisterKeyItem()

- + @@ -351,43 +370,52 @@ Properties -

Implements PokemonEssentials.Interface.Screen.IBag.

+

Implements PokemonEssentials.Interface.Screen.IBag.

- -

◆ pbStoreAllOrNone()

+ +

◆ setChoice()

void PokemonUnity.Character.PokemonBag.pbRegisterKeyItem void PokemonUnity.Character.PokemonBag.RegisterKeyItem ( Items  item)
- + - - + + - +
bool PokemonUnity.Character.PokemonBag.pbStoreAllOrNone void PokemonUnity.Character.PokemonBag.setChoice (Items item, ItemPockets pocket,
int qty = 1  )value  )
-

Implements PokemonEssentials.Interface.Screen.IBag.

+

Sets the index of the current selected item in the pocket

+
Parameters
+ + + +
pocket
value
+
+
+ +

Implements PokemonEssentials.Interface.Screen.IBag.

- -

◆ pbStoreItem()

+ +

◆ StoreAllOrNone()

- + @@ -401,60 +429,32 @@ Properties
bool PokemonUnity.Character.PokemonBag.pbStoreItem bool PokemonUnity.Character.PokemonBag.StoreAllOrNone ( Items  item,
- -

◆ rearrange()

+ +

◆ StoreItem()

- + - - - -
void PokemonUnity.Character.PokemonBag.rearrange bool PokemonUnity.Character.PokemonBag.StoreItem ()
-
-
- -

◆ setChoice()

- -
-
- - - - - - + + - +
void PokemonUnity.Character.PokemonBag.setChoice (ItemPockets pocket, Items item,
int value  )qty = 1  )
-

Sets the index of the current selected item in the pocket

-
Parameters
- - - -
pocket
value
-
-
- -

Implements PokemonEssentials.Interface.Screen.IBag.

+

Implements PokemonEssentials.Interface.Screen.IBag.

@@ -582,3 +582,4 @@ Properties
The documentation for this class was generated from the following file:
  • PokemonUnity.Application/Character/Bag.cs
+ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box-members.cshtml index acb5868d8..ecd4944dd 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box-members.cshtml @@ -27,4 +27,4 @@ pokemonPokemonUnity.Character.PokemonBox PokemonBox(string name, int maxPokemon=30)PokemonUnity.Character.PokemonBox this[int i]PokemonUnity.Character.PokemonBox - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box.cshtml index f966bbaf2..c401dff89 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box.cshtml @@ -24,7 +24,7 @@ Inheritance diagram for PokemonUnity.Character.PokemonBox:
-PokemonEssentials.Interface.Screen.IPokemonBox +PokemonEssentials.Interface.Screen.IPokemonBox
@@ -57,8 +57,10 @@ Properties + + @@ -72,11 +74,11 @@ Properties + + - -
bool full [get]
 
int nitems [get]
 number of pokemons stored... More...
 
int length [get]
 size of the storage box... More...
 
PokemonEssentials.Interface.PokeBattle.IPokemon this[int i] [get, set]
 
bool full [get]
 
int nitems [get]
 number of pokemons stored... More...
 
int length [get]
 size of the storage box... More...
 
IPokemon this[int i] [get, set]
 

Constructor & Destructor Documentation

@@ -242,6 +244,8 @@ Properties
+

size of the storage box...

+

Implements PokemonEssentials.Interface.Screen.IPokemonBox.

@@ -290,6 +294,8 @@ Properties
+

number of pokemons stored...

+

Implements PokemonEssentials.Interface.Screen.IPokemonBox.

@@ -338,10 +344,9 @@ Properties
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box.png index dad18c73e..2d828e3d2 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_box.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage-members.cshtml index 11f72594e..933ae8381 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage-members.cshtml @@ -17,24 +17,24 @@

This is the complete list of members for PokemonUnity.Character.PokemonStorage, including all inherited members.

- - - - - - + + + + + + + + + + + + + + - - - - - - - - - - + + -
boxesPokemonUnity.Character.PokemonStorage
currentBoxPokemonUnity.Character.PokemonStorage
fullPokemonUnity.Character.PokemonStorage
initialize(int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)PokemonUnity.Character.PokemonStorage
MARKINGCHARSPokemonUnity.Character.PokemonStoragestatic
maxBoxesPokemonUnity.Character.PokemonStorage
maxPokemon(int box)PokemonUnity.Character.PokemonStorage
Copy(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.PokemonStorage
currentBoxPokemonUnity.Character.PokemonStorage
Delete(int box, int index)PokemonUnity.Character.PokemonStorage
FirstFreePos(int box)PokemonUnity.Character.PokemonStorage
fullPokemonUnity.Character.PokemonStorage
initialize(int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)PokemonUnity.Character.PokemonStorage
MARKINGCHARSPokemonUnity.Character.PokemonStoragestatic
maxBoxesPokemonUnity.Character.PokemonStorage
maxPokemon(int box)PokemonUnity.Character.PokemonStorage
Move(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.PokemonStorage
MoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPCPokemonStorage.MoveCaughtToBox(IPokemon pkmn, int box)PokemonEssentials.Interface.Screen.IPCPokemonStorage
MoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPCPokemonStorage.MoveCaughtToParty(IPokemon pkmn)PokemonEssentials.Interface.Screen.IPCPokemonStorage
partyPokemonUnity.Character.PokemonStorage
pbCopy(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.PokemonStorage
pbDelete(int box, int index)PokemonUnity.Character.PokemonStorage
pbFirstFreePos(int box)PokemonUnity.Character.PokemonStorage
pbMove(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.PokemonStorage
pbMoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPokemonStorage.pbMoveCaughtToBox(IPokemon pkmn, int box)PokemonEssentials.Interface.Screen.IPokemonStorage
pbMoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPokemonStorage.pbMoveCaughtToParty(IPokemon pkmn)PokemonEssentials.Interface.Screen.IPokemonStorage
pbStoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPokemonStorage.pbStoreCaught(IPokemon pkmn)PokemonEssentials.Interface.Screen.IPokemonStorage
PokemonStorage(int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)PokemonUnity.Character.PokemonStorage
StoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPCPokemonStorage.StoreCaught(IPokemon pkmn)PokemonEssentials.Interface.Screen.IPCPokemonStorage
this[int x, int y]PokemonUnity.Character.PokemonStorage
this[int x]PokemonUnity.Character.PokemonStorage
\ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage.cshtml index b1ba81f4d..a517956bf 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage.cshtml @@ -24,8 +24,8 @@ Inheritance diagram for PokemonUnity.Character.PokemonStorage:
-PokemonEssentials.Interface.Screen.IPokemonStorage -PokemonUnity.Character.PokemonStorageWithParty +PokemonEssentials.Interface.Screen.IPCPokemonStorage +PokemonUnity.Character.PokemonStorageWithParty
@@ -33,43 +33,43 @@ Inheritance diagram for PokemonUnity.Character.PokemonStorage: Public Member Functions - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 PokemonStorage (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
PokemonEssentials.Interface.Screen.IPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
PokemonEssentials.Interface.Screen.IPCPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
int maxPokemon (int box)
 
int pbFirstFreePos (int box)
 
bool pbCopy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool pbMove (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void pbMoveCaughtToParty (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)
 
bool pbMoveCaughtToBox (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)
 
int pbStoreCaught (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)
 
void pbDelete (int box, int index)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Screen.IPokemonStorage
IPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
int maxPokemon (int box)
 
int pbFirstFreePos (int box)
 
bool pbCopy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool pbMove (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void pbMoveCaughtToParty (IPokemon pkmn)
 
bool pbMoveCaughtToBox (IPokemon pkmn, int box)
 
int pbStoreCaught (IPokemon pkmn)
 
void pbDelete (int box, int index)
 
int FirstFreePos (int box)
 
bool Copy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool Move (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void MoveCaughtToParty (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)
 
bool MoveCaughtToBox (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)
 
int StoreCaught (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)
 
void Delete (int box, int index)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Screen.IPCPokemonStorage
IPCPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
int maxPokemon (int box)
 
int FirstFreePos (int box)
 
bool Copy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool Move (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void MoveCaughtToParty (IPokemon pkmn)
 
bool MoveCaughtToBox (IPokemon pkmn, int box)
 
int StoreCaught (IPokemon pkmn)
 
void Delete (int box, int index)
 
@@ -85,7 +85,7 @@ Properties - + @@ -93,21 +93,21 @@ Properties - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +

Static Public Attributes

 
int maxBoxes [get]
 
virtual PokemonEssentials.Interface.PokeBattle.IPokemon[] party [get, set]
virtual PokemonEssentials.Interface.PokeBattle.IPokemon[] party [get, protected set]
 
IPokemonBox this[int x] [get]
 
 
bool full [get]
 
- Properties inherited from PokemonEssentials.Interface.Screen.IPokemonStorage
IPokemonBox[] boxes [get]
 
int currentBox [get, set]
 
int maxBoxes [get]
 
IPokemon[] party [get]
 
IPokemonBox this[int x] [get]
 
IPokemon this[int x, int y] [get, set]
 
bool full [get]
 
- Properties inherited from PokemonEssentials.Interface.Screen.IPCPokemonStorage
IPokemonBox[] boxes [get]
 
int currentBox [get, set]
 
int maxBoxes [get]
 
IPokemon[] party [get]
 
IPokemonBox this[int x] [get]
 
IPokemon this[int x, int y] [get, set]
 
bool full [get]
 

Constructor & Destructor Documentation

@@ -134,121 +134,121 @@ Properties

Member Function Documentation

- -

◆ initialize()

+ +

◆ Copy()

- + - + - + + + + + + + + + + + + +
PokemonEssentials.Interface.Screen.IPokemonStorage PokemonUnity.Character.PokemonStorage.initialize bool PokemonUnity.Character.PokemonStorage.Copy ( int maxBoxes = Core.STORAGEBOXES, boxDst,
int maxPokemon = 30  )indexDst,
int boxSrc,
int indexSrc  )
- -

◆ maxPokemon()

+ +

◆ Delete()

- + - + + + + + +
int PokemonUnity.Character.PokemonStorage.maxPokemon void PokemonUnity.Character.PokemonStorage.Delete ( int box)box,
int index  )
- -

◆ pbCopy()

+ +

◆ FirstFreePos()

- + - - - - - - - - - - - - - - - - + - -
bool PokemonUnity.Character.PokemonStorage.pbCopy int PokemonUnity.Character.PokemonStorage.FirstFreePos ( int boxDst,
int indexDst,
int boxSrc,
box) int indexSrc  )
- -

◆ pbDelete()

+ +

◆ initialize()

- + - + - +
void PokemonUnity.Character.PokemonStorage.pbDelete PokemonEssentials.Interface.Screen.IPCPokemonStorage PokemonUnity.Character.PokemonStorage.initialize ( int box, maxBoxes = Core.STORAGEBOXES,
int index  )maxPokemon = 30  )
- -

◆ pbFirstFreePos()

+ +

◆ maxPokemon()

- + @@ -257,18 +257,18 @@ Properties
int PokemonUnity.Character.PokemonStorage.pbFirstFreePos int PokemonUnity.Character.PokemonStorage.maxPokemon ( int  box)
- -

◆ pbMove()

+ +

◆ Move()

- + @@ -294,18 +294,18 @@ Properties
bool PokemonUnity.Character.PokemonStorage.pbMove bool PokemonUnity.Character.PokemonStorage.Move ( int  boxDst,
- -

◆ pbMoveCaughtToBox()

+ +

◆ MoveCaughtToBox()

- + @@ -321,14 +321,14 @@ Properties - -

◆ pbMoveCaughtToParty()

+ +

◆ MoveCaughtToParty()

bool PokemonUnity.Character.PokemonStorage.pbMoveCaughtToBox bool PokemonUnity.Character.PokemonStorage.MoveCaughtToBox ( PokemonEssentials.Interface.PokeBattle.IPokemon  pkmn,
- + @@ -339,14 +339,14 @@ Properties - -

◆ pbStoreCaught()

+ +

◆ StoreCaught()

void PokemonUnity.Character.PokemonStorage.pbMoveCaughtToParty void PokemonUnity.Character.PokemonStorage.MoveCaughtToParty ( PokemonEssentials.Interface.PokeBattle.IPokemon  pkmn)
- + @@ -403,7 +403,7 @@ Properties
int PokemonUnity.Character.PokemonStorage.pbStoreCaught int PokemonUnity.Character.PokemonStorage.StoreCaught ( PokemonEssentials.Interface.PokeBattle.IPokemon  pkmn)
@@ -427,7 +427,7 @@ Properties @@ -451,7 +451,7 @@ Properties @@ -475,7 +475,7 @@ Properties @@ -494,12 +494,12 @@ Properties -getset +getprotected set @@ -523,7 +523,17 @@ Properties
-

Implements PokemonEssentials.Interface.Screen.IPokemonStorage.

+

+
Parameters
+ + + +
x-1 to access player's party, box index begins at 0
yslot id
+
+
+
Returns
+ +

Implements PokemonEssentials.Interface.Screen.IPCPokemonStorage.

@@ -547,10 +557,11 @@ Properties
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage.png index ac95ed72f..6fb91fb72 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party-members.cshtml index 78c30ea3f..65757df3a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party-members.cshtml @@ -17,26 +17,27 @@

This is the complete list of members for PokemonUnity.Character.PokemonStorageWithParty, including all inherited members.

- - - - + + + + + + + + - - - - - - - - - - - - - - - -
boxesPokemonUnity.Character.PokemonStorage
currentBoxPokemonUnity.Character.PokemonStorage
fullPokemonUnity.Character.PokemonStorage
initialize(int maxBoxes=24, int maxPokemon=30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null)PokemonUnity.Character.PokemonStorageWithParty
PokemonUnity::Character::PokemonStorage.initialize(int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)PokemonUnity.Character.PokemonStorage
Copy(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.PokemonStorage
currentBoxPokemonUnity.Character.PokemonStorage
Delete(int box, int index)PokemonUnity.Character.PokemonStorage
FirstFreePos(int box)PokemonUnity.Character.PokemonStorage
fullPokemonUnity.Character.PokemonStorage
initialize(int maxBoxes=24, int maxPokemon=30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null)PokemonUnity.Character.PokemonStorageWithParty
PokemonUnity::Character::PokemonStorage.initialize(int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPokemonStorageWithParty.initialize(int maxBoxes=24, int maxPokemon=30, IPokemon[] party=null)PokemonEssentials.Interface.Screen.IPokemonStorageWithParty
MARKINGCHARSPokemonUnity.Character.PokemonStoragestatic
maxBoxesPokemonUnity.Character.PokemonStorage
maxPokemon(int box)PokemonUnity.Character.PokemonStorage
partyPokemonUnity.Character.PokemonStorageWithParty
pbCopy(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.PokemonStorage
pbDelete(int box, int index)PokemonUnity.Character.PokemonStorage
pbFirstFreePos(int box)PokemonUnity.Character.PokemonStorage
pbMove(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.PokemonStorage
pbMoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPokemonStorage.pbMoveCaughtToBox(IPokemon pkmn, int box)PokemonEssentials.Interface.Screen.IPokemonStorage
pbMoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPokemonStorage.pbMoveCaughtToParty(IPokemon pkmn)PokemonEssentials.Interface.Screen.IPokemonStorage
pbStoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.PokemonStorage
PokemonEssentials::Interface::Screen::IPokemonStorage.pbStoreCaught(IPokemon pkmn)PokemonEssentials.Interface.Screen.IPokemonStorage
PokemonStorage(int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)PokemonUnity.Character.PokemonStorage
PokemonStorageWithParty(int maxBoxes=24, int maxPokemon=30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null)PokemonUnity.Character.PokemonStorageWithParty
this[int x, int y]PokemonUnity.Character.PokemonStorage
this[int x]PokemonUnity.Character.PokemonStorage
\ No newline at end of file + Move(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.PokemonStorage + MoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)PokemonUnity.Character.PokemonStorage + PokemonEssentials::Interface::Screen::IPCPokemonStorage.MoveCaughtToBox(IPokemon pkmn, int box)PokemonEssentials.Interface.Screen.IPCPokemonStorage + MoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.PokemonStorage + PokemonEssentials::Interface::Screen::IPCPokemonStorage.MoveCaughtToParty(IPokemon pkmn)PokemonEssentials.Interface.Screen.IPCPokemonStorage + partyPokemonUnity.Character.PokemonStorage + PokemonStorage(int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)PokemonUnity.Character.PokemonStorage + PokemonStorageWithParty(int maxBoxes=24, int maxPokemon=30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null)PokemonUnity.Character.PokemonStorageWithParty + StoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.PokemonStorage + PokemonEssentials::Interface::Screen::IPCPokemonStorage.StoreCaught(IPokemon pkmn)PokemonEssentials.Interface.Screen.IPCPokemonStorage + this[int x, int y]PokemonUnity.Character.PokemonStorage + this[int x]PokemonUnity.Character.PokemonStorage + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party.cshtml index ea9e1da8e..70920befb 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party.cshtml @@ -12,7 +12,6 @@ @section headertitle {
PokemonUnity.Character.PokemonStorageWithParty Class Reference
} @@ -25,62 +24,67 @@ Inheritance diagram for PokemonUnity.Character.PokemonStorageWithParty: PokemonUnity.Character.PokemonStorage PokemonEssentials.Interface.Screen.IPokemonStorageWithParty -PokemonEssentials.Interface.Screen.IPokemonStorage -PokemonEssentials.Interface.Screen.IPokemonStorage +PokemonEssentials.Interface.Screen.IPCPokemonStorage +PokemonEssentials.Interface.Screen.IPCPokemonStorage - + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 PokemonStorageWithParty (int maxBoxes=24, int maxPokemon=30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null)
 PokemonStorageWithParty (int maxBoxes=24, int maxPokemon=30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null)
 
IPokemonStorageWithParty initialize (int maxBoxes=24, int maxPokemon=30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null)
IPokemonStorageWithParty initialize (int maxBoxes=24, int maxPokemon=30, PokemonEssentials.Interface.PokeBattle.IPokemon[] party=null)
 
- Public Member Functions inherited from PokemonUnity.Character.PokemonStorage
 PokemonStorage (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
PokemonEssentials.Interface.Screen.IPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
PokemonEssentials.Interface.Screen.IPCPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
int maxPokemon (int box)
 
int pbFirstFreePos (int box)
 
bool pbCopy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool pbMove (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void pbMoveCaughtToParty (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)
 
bool pbMoveCaughtToBox (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)
 
int pbStoreCaught (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)
 
void pbDelete (int box, int index)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Screen.IPokemonStorage
IPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
int maxPokemon (int box)
 
int pbFirstFreePos (int box)
 
bool pbCopy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool pbMove (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void pbMoveCaughtToParty (IPokemon pkmn)
 
bool pbMoveCaughtToBox (IPokemon pkmn, int box)
 
int pbStoreCaught (IPokemon pkmn)
 
void pbDelete (int box, int index)
 
int FirstFreePos (int box)
 
bool Copy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool Move (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void MoveCaughtToParty (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)
 
bool MoveCaughtToBox (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)
 
int StoreCaught (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)
 
void Delete (int box, int index)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Screen.IPCPokemonStorage
IPCPokemonStorage initialize (int maxBoxes=Core.STORAGEBOXES, int maxPokemon=30)
 
int maxPokemon (int box)
 
int FirstFreePos (int box)
 
bool Copy (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
bool Move (int boxDst, int indexDst, int boxSrc, int indexSrc)
 
void MoveCaughtToParty (IPokemon pkmn)
 
bool MoveCaughtToBox (IPokemon pkmn, int box)
 
int StoreCaught (IPokemon pkmn)
 
void Delete (int box, int index)
 
- Public Member Functions inherited from PokemonEssentials.Interface.Screen.IPokemonStorageWithParty
IPokemonStorageWithParty initialize (int maxBoxes=24, int maxPokemon=30, IPokemon[] party=null)
 
- - - + + + + + @@ -88,7 +92,7 @@ Properties - + @@ -96,31 +100,21 @@ Properties - - - - - - - - - - - - - - - - - - -

-Properties

override PokemonEssentials.Interface.PokeBattle.IPokemon[] party [get, set]
 

+Additional Inherited Members

- Static Public Attributes inherited from PokemonUnity.Character.PokemonStorage
static string[] MARKINGCHARS =new string[] { "●", "▲", "■", "♥", "★", "♦︎" }
 ●, ▲, ■, ♥︎, ★, and ♦︎. More...
 
- Properties inherited from PokemonUnity.Character.PokemonStorage
IPokemonBox[] boxes [get, protected set]
 
 
int maxBoxes [get]
 
virtual PokemonEssentials.Interface.PokeBattle.IPokemon[] party [get, set]
virtual PokemonEssentials.Interface.PokeBattle.IPokemon[] party [get, protected set]
 
IPokemonBox this[int x] [get]
 
 
bool full [get]
 
- Properties inherited from PokemonEssentials.Interface.Screen.IPokemonStorage
IPokemonBox[] boxes [get]
 
int currentBox [get, set]
 
int maxBoxes [get]
 
IPokemon[] party [get]
 
IPokemonBox this[int x] [get]
 
IPokemon this[int x, int y] [get, set]
 
bool full [get]
 
- Properties inherited from PokemonEssentials.Interface.Screen.IPokemonStorageWithParty
new IPokemon[] party [get, set]
 
- - - - - + + + + + + + + + + + + + + +

-Additional Inherited Members

- Static Public Attributes inherited from PokemonUnity.Character.PokemonStorage
static string[] MARKINGCHARS =new string[] { "●", "▲", "■", "♥", "★", "♦︎" }
 ●, ▲, ■, ♥︎, ★, and ♦︎. More...
 
- Properties inherited from PokemonEssentials.Interface.Screen.IPCPokemonStorage
IPokemonBox[] boxes [get]
 
int currentBox [get, set]
 
int maxBoxes [get]
 
IPokemon[] party [get]
 
IPokemonBox this[int x] [get]
 
IPokemon this[int x, int y] [get, set]
 
bool full [get]
 

Constructor & Destructor Documentation

@@ -180,33 +174,9 @@ Additional Inherited Members
-
- -

Property Documentation

- -

◆ party

- -
-
- - - - - -
- - - - -
override PokemonEssentials.Interface.PokeBattle.IPokemon [] PokemonUnity.Character.PokemonStorageWithParty.party
-
-getset
-

The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party.png index c8e4dff64..4b5fc3563 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_pokemon_storage_with_party.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_regional_storage-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_regional_storage-members.cshtml index b9b393842..7bea99518 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_regional_storage-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_regional_storage-members.cshtml @@ -17,26 +17,26 @@

This is the complete list of members for PokemonUnity.Character.RegionalStorage, including all inherited members.

- - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - + + + -
boxesPokemonUnity.Character.RegionalStorage
currentBoxPokemonUnity.Character.RegionalStorage
fullPokemonUnity.Character.RegionalStorage
getCurrentStoragePokemonUnity.Character.RegionalStorage
initialize()PokemonUnity.Character.RegionalStorage
lastmapPokemonUnity.Character.RegionalStorageprotected
maxBoxesPokemonUnity.Character.RegionalStorage
maxPokemon(int box)PokemonUnity.Character.RegionalStorage
Copy(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.RegionalStorage
currentBoxPokemonUnity.Character.RegionalStorage
Delete(int box, int index)PokemonUnity.Character.RegionalStorage
FirstFreePos(int box)PokemonUnity.Character.RegionalStorage
fullPokemonUnity.Character.RegionalStorage
getCurrentStoragePokemonUnity.Character.RegionalStorage
initialize()PokemonUnity.Character.RegionalStorage
lastmapPokemonUnity.Character.RegionalStorageprotected
maxBoxesPokemonUnity.Character.RegionalStorage
maxPokemon(int box)PokemonUnity.Character.RegionalStorage
Move(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.RegionalStorage
MoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)PokemonUnity.Character.RegionalStorage
PokemonEssentials::Interface::Screen::IRegionalStorage.MoveCaughtToBox(IPokemon pkmn, int box)PokemonEssentials.Interface.Screen.IRegionalStorage
MoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.RegionalStorage
PokemonEssentials::Interface::Screen::IRegionalStorage.MoveCaughtToParty(IPokemon pkmn)PokemonEssentials.Interface.Screen.IRegionalStorage
partyPokemonUnity.Character.RegionalStorage
pbCopy(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.RegionalStorage
pbDelete(int box, int index)PokemonUnity.Character.RegionalStorage
pbFirstFreePos(int box)PokemonUnity.Character.RegionalStorage
pbMove(int boxDst, int indexDst, int boxSrc, int indexSrc)PokemonUnity.Character.RegionalStorage
pbMoveCaughtToBox(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box)PokemonUnity.Character.RegionalStorage
PokemonEssentials::Interface::Screen::IRegionalStorage.pbMoveCaughtToBox(IPokemon pkmn, int box)PokemonEssentials.Interface.Screen.IRegionalStorage
pbMoveCaughtToParty(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.RegionalStorage
PokemonEssentials::Interface::Screen::IRegionalStorage.pbMoveCaughtToParty(IPokemon pkmn)PokemonEssentials.Interface.Screen.IRegionalStorage
pbStoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.RegionalStorage
PokemonEssentials::Interface::Screen::IRegionalStorage.pbStoreCaught(IPokemon pkmn)PokemonEssentials.Interface.Screen.IRegionalStorage
rgnmapPokemonUnity.Character.RegionalStorageprotected
storagesPokemonUnity.Character.RegionalStorageprotected
storagesPokemonUnity.Character.RegionalStorageprotected
StoreCaught(PokemonEssentials.Interface.PokeBattle.IPokemon pkmn)PokemonUnity.Character.RegionalStorage
PokemonEssentials::Interface::Screen::IRegionalStorage.StoreCaught(IPokemon pkmn)PokemonEssentials.Interface.Screen.IRegionalStorage
this[int x, int y]PokemonUnity.Character.RegionalStorage
this[int x]PokemonUnity.Character.RegionalStorage
\ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_regional_storage.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_regional_storage.cshtml index 89693e59c..f14d14d25 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_regional_storage.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_regional_storage.cshtml @@ -33,50 +33,50 @@ Public Member Functions   int maxPokemon (int box)   -void pbFirstFreePos (int box) -  -void pbCopy (int boxDst, int indexDst, int boxSrc, int indexSrc) -  -void pbMove (int boxDst, int indexDst, int boxSrc, int indexSrc) -  -void pbMoveCaughtToParty (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) -  -void pbMoveCaughtToBox (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box) -  -void pbStoreCaught (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) -  -void pbDelete (int box, int index) -  +void FirstFreePos (int box) +  +void Copy (int boxDst, int indexDst, int boxSrc, int indexSrc) +  +void Move (int boxDst, int indexDst, int boxSrc, int indexSrc) +  +void MoveCaughtToParty (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) +  +void MoveCaughtToBox (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn, int box) +  +void StoreCaught (PokemonEssentials.Interface.PokeBattle.IPokemon pkmn) +  +void Delete (int box, int index) +  - Public Member Functions inherited from PokemonEssentials.Interface.Screen.IRegionalStorage IRegionalStorage initialize ()   int maxPokemon (int box)   -void pbFirstFreePos (int box) -  -void pbCopy (int boxDst, int indexDst, int boxSrc, int indexSrc) -  -void pbMove (int boxDst, int indexDst, int boxSrc, int indexSrc) -  -void pbMoveCaughtToParty (IPokemon pkmn) -  -void pbMoveCaughtToBox (IPokemon pkmn, int box) -  -void pbStoreCaught (IPokemon pkmn) -  -void pbDelete (int box, int index) -  +void FirstFreePos (int box) +  +void Copy (int boxDst, int indexDst, int boxSrc, int indexSrc) +  +void Move (int boxDst, int indexDst, int boxSrc, int indexSrc) +  +void MoveCaughtToParty (IPokemon pkmn) +  +void MoveCaughtToBox (IPokemon pkmn, int box) +  +void StoreCaught (IPokemon pkmn) +  +void Delete (int box, int index) +  - - + + - - + + @@ -92,8 +92,8 @@ Properties - - + + @@ -110,115 +110,115 @@ Properties

Properties

IList<IPokemonStoragestorages [get, set]
 
IList<IPCPokemonStoragestorages [get, set]
 
int lastmap [get, set]
 
int rgnmap [get, set]
 
IPokemonStorage getCurrentStorage [get]
 
IPCPokemonStorage getCurrentStorage [get]
 
IPokemonBox[] boxes [get]
 
PokemonEssentials.Interface.PokeBattle.IPokemon[] party [get]
bool full [get]
 
- Properties inherited from PokemonEssentials.Interface.Screen.IRegionalStorage
IPokemonStorage getCurrentStorage [get]
 
IPCPokemonStorage getCurrentStorage [get]
 
IPokemonBox[] boxes [get]
 
IPokemon[] party [get]
 

Member Function Documentation

- -

◆ initialize()

+ +

◆ Copy()

- + - + + + + + + + + + + + + + + + + + + +
IRegionalStorage PokemonUnity.Character.RegionalStorage.initialize void PokemonUnity.Character.RegionalStorage.Copy ()int boxDst,
int indexDst,
int boxSrc,
int indexSrc  )
- -

◆ maxPokemon()

+ +

◆ Delete()

- + - + + + + + +
int PokemonUnity.Character.RegionalStorage.maxPokemon void PokemonUnity.Character.RegionalStorage.Delete ( int box)box,
int index  )
- -

◆ pbCopy()

+ +

◆ FirstFreePos()

- + - - - - - - - - - - - - - - - - + - -
void PokemonUnity.Character.RegionalStorage.pbCopy void PokemonUnity.Character.RegionalStorage.FirstFreePos ( int boxDst,
int indexDst,
int boxSrc,
box) int indexSrc  )
- -

◆ pbDelete()

+ +

◆ initialize()

- + - - - - - + - -
void PokemonUnity.Character.RegionalStorage.pbDelete IRegionalStorage PokemonUnity.Character.RegionalStorage.initialize (int box,
) int index  )
- -

◆ pbFirstFreePos()

+ +

◆ maxPokemon()

- + @@ -227,18 +227,18 @@ Properties
void PokemonUnity.Character.RegionalStorage.pbFirstFreePos int PokemonUnity.Character.RegionalStorage.maxPokemon ( int  box)
- -

◆ pbMove()

+ +

◆ Move()

- + @@ -264,18 +264,18 @@ Properties
void PokemonUnity.Character.RegionalStorage.pbMove void PokemonUnity.Character.RegionalStorage.Move ( int  boxDst,
- -

◆ pbMoveCaughtToBox()

+ +

◆ MoveCaughtToBox()

- + @@ -291,14 +291,14 @@ Properties - -

◆ pbMoveCaughtToParty()

+ +

◆ MoveCaughtToParty()

void PokemonUnity.Character.RegionalStorage.pbMoveCaughtToBox void PokemonUnity.Character.RegionalStorage.MoveCaughtToBox ( PokemonEssentials.Interface.PokeBattle.IPokemon  pkmn,
- + @@ -309,14 +309,14 @@ Properties - -

◆ pbStoreCaught()

+ +

◆ StoreCaught()

void PokemonUnity.Character.RegionalStorage.pbMoveCaughtToParty void PokemonUnity.Character.RegionalStorage.MoveCaughtToParty ( PokemonEssentials.Interface.PokeBattle.IPokemon  pkmn)
- + @@ -400,8 +400,8 @@ Properties - -

◆ getCurrentStorage

+ +

◆ getCurrentStorage

@@ -410,7 +410,7 @@ Properties
@@ -420,7 +420,7 @@ Properties
void PokemonUnity.Character.RegionalStorage.pbStoreCaught void PokemonUnity.Character.RegionalStorage.StoreCaught ( PokemonEssentials.Interface.PokeBattle.IPokemon  pkmn)
- +
IPokemonStorage PokemonUnity.Character.RegionalStorage.getCurrentStorageIPCPokemonStorage PokemonUnity.Character.RegionalStorage.getCurrentStorage
@@ -516,8 +516,8 @@ Properties - -

◆ storages

+ +

◆ storages

@@ -526,7 +526,7 @@ Properties - +
IList<IPokemonStorage> PokemonUnity.Character.RegionalStorage.storagesIList<IPCPokemonStorage> PokemonUnity.Character.RegionalStorage.storages
@@ -589,3 +589,4 @@ Properties
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_storage_system_p_c-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_storage_system_p_c-members.cshtml index 82fbbb531..a68ced5b5 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_storage_system_p_c-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_storage_system_p_c-members.cshtml @@ -19,4 +19,4 @@ access()PokemonUnity.Character.StorageSystemPC namePokemonUnity.Character.StorageSystemPC shouldShowPokemonUnity.Character.StorageSystemPC - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_storage_system_p_c.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_storage_system_p_c.cshtml index f031476e8..cfd32acb2 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_storage_system_p_c.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_storage_system_p_c.cshtml @@ -118,3 +118,4 @@ Properties
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_trainer_p_c-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_trainer_p_c-members.cshtml index 318c7a92f..a43e5ae35 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_trainer_p_c-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_trainer_p_c-members.cshtml @@ -19,4 +19,4 @@ access()PokemonUnity.Character.TrainerPC namePokemonUnity.Character.TrainerPC shouldShowPokemonUnity.Character.TrainerPC - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_trainer_p_c.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_trainer_p_c.cshtml index 94ee521be..744c9af39 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_trainer_p_c.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_character_1_1_trainer_p_c.cshtml @@ -118,3 +118,4 @@ Properties
The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle-members.cshtml index b44721391..ba6de6e04 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle-members.cshtml @@ -16,179 +16,175 @@

This is the complete list of members for PokemonUnity.Combat.Battle, including all inherited members.

+ + + + - - - - + + + + + + + + + + + + - - - - + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + -
_battlersPokemonUnity.Combat.Battleprotected
_priorityPokemonUnity.Combat.Battleprotected
Abort()PokemonUnity.Combat.Battlevirtual
AddToPlayerParty(IPokemon pokemon)PokemonUnity.Combat.Battle
AllFainted(IPokemon[] party)PokemonUnity.Combat.Battle
amuletcoinPokemonUnity.Combat.Battle
Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonUnity.Combat.Battle
Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.Battle
battlersPokemonUnity.Combat.Battle
battlescenePokemonUnity.Combat.Battle
Animation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
AttackPhase()PokemonUnity.Combat.Battle
AutoChooseMove(int idxPokemon, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
AutoFightMenu(int i)PokemonUnity.Combat.Battlevirtual
Battle()PokemonUnity.Combat.Battleprotected
Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonUnity.Combat.Battle
Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.Battle
battlersPokemonUnity.Combat.Battle
battlescenePokemonUnity.Combat.Battle
BelongsToPlayer(int battlerIndex)PokemonUnity.Combat.Battle
BetterBaseDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)PokemonUnity.Combat.Battle
Call(int index)PokemonUnity.Combat.Battle
CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonUnity.Combat.Battle
canLosePokemonUnity.Combat.Battle
CanShowCommands(int idxPokemon)PokemonUnity.Combat.Battle
CanShowFightMenu(int idxPokemon)PokemonUnity.Combat.Battle
cantescapePokemonUnity.Combat.Battle
CanChooseNonActive(int index)PokemonUnity.Combat.Battle
canLosePokemonUnity.Combat.Battle
CanMegaEvolve(int index)PokemonUnity.Combat.Battle
CanRun(int idxPokemon)PokemonUnity.Combat.Battle
CanShowCommands(int idxPokemon)PokemonUnity.Combat.Battlevirtual
CanShowFightMenu(int idxPokemon)PokemonUnity.Combat.Battle
CanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonUnity.Combat.Battle
CanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonUnity.Combat.Battlevirtual
cantescapePokemonUnity.Combat.Battle
CheckGlobalAbility(Abilities a)PokemonUnity.Combat.Battle
choicesPokemonUnity.Combat.Battle
controlPlayerPokemonUnity.Combat.Battle
debugPokemonUnity.Combat.Battle
debugupdatePokemonUnity.Combat.Battle
decisionPokemonUnity.Combat.Battle
ChooseBestNewEnemy(int index, IPokemon[] party, int[] enemies)PokemonUnity.Combat.Battle
ChooseMoves(int index)PokemonUnity.Combat.Battle
ChoseMove(int i, Moves move)PokemonUnity.Combat.Battle
ChoseMoveFunctionCode(int i, Attack.Data.Effects code)PokemonUnity.Combat.Battle
PokemonEssentials::Interface::PokeBattle::IBattle.ChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
CommandMenu(int i)PokemonUnity.Combat.Battlevirtual
CommandPhase()PokemonUnity.Combat.Battlevirtual
CommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
controlPlayerPokemonUnity.Combat.Battleprotected
DbgPlayerOnly(int idx)PokemonUnity.Combat.Battle
debugPokemonUnity.Combat.Battle
debugupdatePokemonUnity.Combat.Battle
decisionPokemonUnity.Combat.Battle
DecisionOnDraw()PokemonUnity.Combat.Battlevirtual
DecisionOnTime()PokemonUnity.Combat.Battle
DecisionOnTime2()PokemonUnity.Combat.Battle
DefaultChooseEnemyCommand(int index)PokemonUnity.Combat.Battle
DefaultChooseNewEnemy(int index, IPokemon[] party)PokemonUnity.Combat.Battle
Display(string msg)PokemonUnity.Combat.Battlevirtual
DisplayBrief(string msg)PokemonUnity.Combat.Battlevirtual
DisplayConfirm(string msg)PokemonUnity.Combat.Battlevirtual
DisplayPaused(string msg)PokemonUnity.Combat.Battlevirtual
doublebattlePokemonUnity.Combat.Battle
doublemoneyPokemonUnity.Combat.Battle
endspeechPokemonUnity.Combat.Battle
endspeech2PokemonUnity.Combat.Battle
endspeechwinPokemonUnity.Combat.Battle
endspeechwin2PokemonUnity.Combat.Battle
DoubleBattleAllowed()PokemonUnity.Combat.Battlevirtual
doublemoneyPokemonUnity.Combat.Battle
EndOfBattle(bool canlose=false)PokemonUnity.Combat.Battle
EndOfRoundPhase()PokemonUnity.Combat.Battlevirtual
endspeechPokemonUnity.Combat.Battle
endspeech2PokemonUnity.Combat.Battle
endspeechwinPokemonUnity.Combat.Battle
endspeechwin2PokemonUnity.Combat.Battle
EnemyItemAlreadyUsed(int index, Items item, Items[] items)PokemonUnity.Combat.Battle
EnemyItemToUse(int index)PokemonUnity.Combat.Battle
EnemyShouldMegaEvolve(int index)PokemonUnity.Combat.Battle
EnemyShouldUseItem(int index)PokemonUnity.Combat.Battle
EnemyShouldWithdraw(int index)PokemonUnity.Combat.Battlevirtual
EnemyShouldWithdrawEx(int index, bool alwaysSwitch)PokemonUnity.Combat.Battle
EnemyUseItem(Items item, IBattler battler)PokemonUnity.Combat.Battle
environmentPokemonUnity.Combat.Battle
extramoneyPokemonUnity.Combat.Battle
fieldPokemonUnity.Combat.Battle
FindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonUnity.Combat.Battle
FindPlayerBattler(int pkmnIndex)PokemonUnity.Combat.Battle
fullparty1PokemonUnity.Combat.Battle
fullparty2PokemonUnity.Combat.Battle
futuresightPokemonUnity.Combat.Battle
GainEXP()PokemonUnity.Combat.Battlevirtual
GainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonUnity.Combat.Battle
GetLastPokeInTeam(int index)PokemonUnity.Combat.Battle
GetMegaRingName(int battlerIndex)PokemonUnity.Combat.Battle
GetMoveScore(IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)PokemonUnity.Combat.Battle
GetOwner(int battlerIndex)PokemonUnity.Combat.Battle
GetOwnerIndex(int battlerIndex)PokemonUnity.Combat.Battle
GetOwnerItems(int battlerIndex)PokemonUnity.Combat.Battle
GetOwnerPartner(int battlerIndex)PokemonUnity.Combat.Battle
HasMegaRing(int battlerIndex)PokemonUnity.Combat.Battle
initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)PokemonUnity.Combat.Battle
PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonEssentials.Interface.PokeBattle.IBattle
PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattle
internalbattlePokemonUnity.Combat.Battle
itemsPokemonUnity.Combat.Battle
lastMoveUsedPokemonUnity.Combat.Battle
lastMoveUserPokemonUnity.Combat.Battle
IsDoubleBattler(int index)PokemonUnity.Combat.Battle
IsOpposing(int index)PokemonUnity.Combat.Battle
IsOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
IsUnlosableItem(IBattler pkmn, Items item)PokemonUnity.Combat.Battle
ItemMenu(int i)PokemonUnity.Combat.Battlevirtual
itemsPokemonUnity.Combat.Battle
Judge()PokemonUnity.Combat.Battle
JudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonUnity.Combat.Battlevirtual
lastMoveUsedPokemonUnity.Combat.Battle
lastMoveUserPokemonUnity.Combat.Battle
LearnMove(int pkmnIndex, Moves move)PokemonUnity.Combat.Battle
MaxLevel(IPokemon[] party)PokemonUnity.Combat.Battle
megaEvolutionPokemonUnity.Combat.Battle
nextPickupUsePokemonUnity.Combat.Battle
opponentPokemonUnity.Combat.Battle
MaxLevelFromIndex(int index)PokemonUnity.Combat.Battle
megaEvolutionPokemonUnity.Combat.Battle
MegaEvolve(int index)PokemonUnity.Combat.Battle
MessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonUnity.Combat.Battle
nextPickupUsePokemonUnity.Combat.Battle
OnActiveAll()PokemonUnity.Combat.Battlevirtual
OnActiveOne(IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonUnity.Combat.Battlevirtual
opponentPokemonUnity.Combat.Battle
OpposingParty(int index)PokemonUnity.Combat.Battle
OwnedByPlayer(int index)PokemonUnity.Combat.Battle
Party(int index)PokemonUnity.Combat.Battle
party1PokemonUnity.Combat.Battle
party1orderPokemonUnity.Combat.Battle
party2PokemonUnity.Combat.Battle
party2orderPokemonUnity.Combat.Battle
pbAbort()PokemonUnity.Combat.Battlevirtual
pbAddToPlayerParty(IPokemon pokemon)PokemonUnity.Combat.Battle
pbAllFainted(IPokemon[] party)PokemonUnity.Combat.Battle
pbAnimation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
pbAttackPhase()PokemonUnity.Combat.Battle
pbAutoChooseMove(int idxPokemon, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
pbAutoFightMenu(int i)PokemonUnity.Combat.Battlevirtual
pbBelongsToPlayer(int battlerIndex)PokemonUnity.Combat.Battle
pbBetterBaseDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)PokemonUnity.Combat.Battle
pbCall(int index)PokemonUnity.Combat.Battle
pbCanChooseNonActive(int index)PokemonUnity.Combat.Battle
pbCanMegaEvolve(int index)PokemonUnity.Combat.Battle
pbCanRun(int idxPokemon)PokemonUnity.Combat.Battle
pbCanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonUnity.Combat.Battle
pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonUnity.Combat.Battlevirtual
pbCheckGlobalAbility(Abilities a)PokemonUnity.Combat.Battle
pbChooseBestNewEnemy(int index, IPokemon[] party, int[] enemies)PokemonUnity.Combat.Battle
pbChooseMoves(int index)PokemonUnity.Combat.Battle
pbChoseMove(int i, Moves move)PokemonUnity.Combat.Battle
pbChoseMoveFunctionCode(int i, Attack.Data.Effects code)PokemonUnity.Combat.Battle
PokemonEssentials::Interface::PokeBattle::IBattle.pbChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
pbCommandMenu(int i)PokemonUnity.Combat.Battlevirtual
pbCommandPhase()PokemonUnity.Combat.Battlevirtual
pbCommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
pbDbgPlayerOnly(int idx)PokemonUnity.Combat.Battle
pbDecisionOnDraw()PokemonUnity.Combat.Battlevirtual
pbDecisionOnTime()PokemonUnity.Combat.Battle
pbDecisionOnTime2()PokemonUnity.Combat.Battle
pbDefaultChooseEnemyCommand(int index)PokemonUnity.Combat.Battle
pbDefaultChooseNewEnemy(int index, IPokemon[] party)PokemonUnity.Combat.Battle
pbDisplay(string msg)PokemonUnity.Combat.Battlevirtual
pbDisplayBrief(string msg)PokemonUnity.Combat.Battlevirtual
pbDisplayConfirm(string msg)PokemonUnity.Combat.Battlevirtual
pbDisplayPaused(string msg)PokemonUnity.Combat.Battlevirtual
pbDoubleBattleAllowed()PokemonUnity.Combat.Battlevirtual
pbEndOfBattle(bool canlose=false)PokemonUnity.Combat.Battle
pbEndOfRoundPhase()PokemonUnity.Combat.Battlevirtual
pbEnemyItemAlreadyUsed(int index, Items item, Items[] items)PokemonUnity.Combat.Battle
pbEnemyItemToUse(int index)PokemonUnity.Combat.Battle
pbEnemyShouldMegaEvolve(int index)PokemonUnity.Combat.Battle
pbEnemyShouldUseItem(int index)PokemonUnity.Combat.Battle
pbEnemyShouldWithdraw(int index)PokemonUnity.Combat.Battlevirtual
pbEnemyShouldWithdrawEx(int index, bool alwaysSwitch)PokemonUnity.Combat.Battle
pbEnemyUseItem(Items item, IBattler battler)PokemonUnity.Combat.Battle
pbFindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonUnity.Combat.Battle
pbFindPlayerBattler(int pkmnIndex)PokemonUnity.Combat.Battle
pbGainEXP()PokemonUnity.Combat.Battlevirtual
pbGainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonUnity.Combat.Battle
pbGetLastPokeInTeam(int index)PokemonUnity.Combat.Battle
pbGetMegaRingName(int battlerIndex)PokemonUnity.Combat.Battle
pbGetMoveScore(IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)PokemonUnity.Combat.Battle
pbGetOwner(int battlerIndex)PokemonUnity.Combat.Battle
pbGetOwnerIndex(int battlerIndex)PokemonUnity.Combat.Battle
pbGetOwnerItems(int battlerIndex)PokemonUnity.Combat.Battle
pbGetOwnerPartner(int battlerIndex)PokemonUnity.Combat.Battle
pbHasMegaRing(int battlerIndex)PokemonUnity.Combat.Battle
pbIsDoubleBattler(int index)PokemonUnity.Combat.Battle
pbIsOpposing(int index)PokemonUnity.Combat.Battle
pbIsOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
pbIsUnlosableItem(IBattler pkmn, Items item)PokemonUnity.Combat.Battle
pbItemMenu(int i)PokemonUnity.Combat.Battlevirtual
pbJudge()PokemonUnity.Combat.Battle
pbJudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonUnity.Combat.Battlevirtual
pbLearnMove(int pkmnIndex, Moves move)PokemonUnity.Combat.Battle
pbMaxLevel(IPokemon[] party)PokemonUnity.Combat.Battle
pbMaxLevelFromIndex(int index)PokemonUnity.Combat.Battle
pbMegaEvolve(int index)PokemonUnity.Combat.Battle
pbMessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonUnity.Combat.Battle
pbOnActiveAll()PokemonUnity.Combat.Battlevirtual
pbOnActiveOne(IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonUnity.Combat.Battlevirtual
pbOpposingParty(int index)PokemonUnity.Combat.Battle
pbOwnedByPlayer(int index)PokemonUnity.Combat.Battle
pbParty(int index)PokemonUnity.Combat.Battle
pbPartyGetOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
pbPartyLength(int battlerIndex)PokemonUnity.Combat.Battle
pbPlayer()PokemonUnity.Combat.Battle
pbPokemonCount(IPokemon[] party)PokemonUnity.Combat.Battle
pbPrimalReversion(int index)PokemonUnity.Combat.Battle
pbPrimordialWeather()PokemonUnity.Combat.Battle
pbPriority(bool ignorequickclaw=false, bool log=false)PokemonUnity.Combat.Battle
pbRandom(int index)PokemonUnity.Combat.Battlevirtual
pbRecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonUnity.Combat.Battle
pbRegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonUnity.Combat.Battle
pbRegisterMegaEvolution(int index)PokemonUnity.Combat.Battle
pbRegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
pbRegisterSwitch(int idxPokemon, int idxOther)PokemonUnity.Combat.Battlevirtual
pbRegisterTarget(int idxPokemon, int idxTarget)PokemonUnity.Combat.Battlevirtual
pbRemoveFromParty(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
pbReplace(int index, int newpoke, bool batonpass=false)PokemonUnity.Combat.Battle
pbRoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill)PokemonUnity.Combat.Battle
pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)PokemonUnity.Combat.Battle
pbRoughStat(IBattler battler, Stats stat, int skill)PokemonUnity.Combat.Battle
pbRun(int idxPokemon, bool duringBattle=false)PokemonUnity.Combat.Battlevirtual
pbSecondPartyBegin(int battlerIndex)PokemonUnity.Combat.Battle
pbSendOut(int index, IPokemon pokemon)PokemonUnity.Combat.Battle
pbSetSeen(IPokemon pokemon)PokemonUnity.Combat.Battle
pbShowCommands(string msg, string[] commands, bool cancancel=true)PokemonUnity.Combat.Battle
pbShowCommands(string msg, string[] commands, int cancancel)PokemonUnity.Combat.Battle
pbStartBattle(bool canlose=false)PokemonUnity.Combat.Battlevirtual
pbStartBattleCore(bool canlose)PokemonUnity.Combat.Battle
pbStdDev(int[] scores)PokemonUnity.Combat.Battle
pbStorePokemon(IPokemon pokemon)PokemonUnity.Combat.Battlevirtual
pbSwitch(bool favorDraws=false)PokemonUnity.Combat.Battlevirtual
pbSwitchInBetween(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battlevirtual
pbSwitchPlayer(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battle
pbThrowPokeball(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonUnity.Combat.Battlevirtual
pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Battle
pbTypeModifier2(IBattler battlerThis, IBattler battlerOther)PokemonUnity.Combat.Battle
pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
PokemonEssentials::Interface::PokeBattle::IBattle.pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
PokemonEssentials::Interface::PokeBattle::IBattle.pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
PokemonEssentials::Interface::PokeBattle::IBattleShadowPokemon.pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon
pbWeatherPokemonUnity.Combat.Battle
peerPokemonUnity.Combat.Battle
PartyGetOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
PartyLength(int battlerIndex)PokemonUnity.Combat.Battle
peerPokemonUnity.Combat.Battleprotected
pickupUsePokemonUnity.Combat.Battleprotected
Player()PokemonUnity.Combat.Battle
playerPokemonUnity.Combat.Battle
PokemonCount(IPokemon[] party)PokemonUnity.Combat.Battle
priorityPokemonUnity.Combat.Battle
rulesPokemonUnity.Combat.Battle
runCommandPokemonUnity.Combat.Battle
PrimalReversion(int index)PokemonUnity.Combat.Battle
PrimordialWeather()PokemonUnity.Combat.Battle
Priority(bool ignorequickclaw=false, bool log=false)PokemonUnity.Combat.Battle
priorityPokemonUnity.Combat.Battleprotected
Random(int index)PokemonUnity.Combat.Battlevirtual
RecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonUnity.Combat.Battle
RegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonUnity.Combat.Battle
RegisterMegaEvolution(int index)PokemonUnity.Combat.Battle
RegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
RegisterSwitch(int idxPokemon, int idxOther)PokemonUnity.Combat.Battlevirtual
RegisterTarget(int idxPokemon, int idxTarget)PokemonUnity.Combat.Battlevirtual
RemoveFromParty(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
Replace(int index, int newpoke, bool batonpass=false)PokemonUnity.Combat.Battle
RoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill)PokemonUnity.Combat.Battle
RoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)PokemonUnity.Combat.Battle
RoughStat(IBattler battler, Stats stat, int skill)PokemonUnity.Combat.Battle
rulesPokemonUnity.Combat.Battle
Run(int idxPokemon, bool duringBattle=false)PokemonUnity.Combat.Battlevirtual
runCommandPokemonUnity.Combat.Battleprotected
scenePokemonUnity.Combat.Battle
shiftStylePokemonUnity.Combat.Battle
sidesPokemonUnity.Combat.Battle
snaggedpokemonPokemonUnity.Combat.Battle
strugglePokemonUnity.Combat.Battle
successStatesPokemonUnity.Combat.Battle
switchingPokemonUnity.Combat.Battle
ToString(int battlerindex, int pokemonindex)PokemonUnity.Combat.Battle
turncountPokemonUnity.Combat.Battle
usepriorityPokemonUnity.Combat.Battle
SecondPartyBegin(int battlerIndex)PokemonUnity.Combat.Battle
SendOut(int index, IPokemon pokemon)PokemonUnity.Combat.Battle
SetSeen(IPokemon pokemon)PokemonUnity.Combat.Battle
shiftStylePokemonUnity.Combat.Battle
ShowCommands(string msg, string[] commands, bool cancancel=true)PokemonUnity.Combat.Battle
ShowCommands(string msg, string[] commands, int cancancel)PokemonUnity.Combat.Battle
sidesPokemonUnity.Combat.Battle
snaggedpokemonPokemonUnity.Combat.Battleprotected
StartBattle(bool canlose=false)PokemonUnity.Combat.Battlevirtual
StartBattleCore(bool canlose)PokemonUnity.Combat.Battle
StdDev(int[] scores)PokemonUnity.Combat.Battle
StorePokemon(IPokemon pokemon)PokemonUnity.Combat.Battlevirtual
strugglePokemonUnity.Combat.Battle
successStatesPokemonUnity.Combat.Battle
Switch(bool favorDraws=false)PokemonUnity.Combat.Battlevirtual
SwitchInBetween(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battlevirtual
switchingPokemonUnity.Combat.Battle
SwitchPlayer(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battle
ThrowPokeball(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonUnity.Combat.Battlevirtual
ToString(int battlerindex, int pokemonindex)PokemonUnity.Combat.Battle
turncountPokemonUnity.Combat.Battle
TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Battle
TypeModifier2(IBattler battlerThis, IBattler battlerOther)PokemonUnity.Combat.Battle
UseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
UseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
usepriorityPokemonUnity.Combat.Battleprotected
WeatherPokemonUnity.Combat.Battle
weatherPokemonUnity.Combat.Battle
weatherdurationPokemonUnity.Combat.Battle
\ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle.cshtml index 1b5e6e1d9..027c83196 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle.cshtml @@ -12,6 +12,8 @@ @section headertitle {
PokemonUnity.Combat.Battle Class Reference
@@ -26,529 +28,545 @@ Inheritance diagram for PokemonUnity.Combat.Battle:
-PokemonEssentials.Interface.PokeBattle.IBattleAI -PokemonEssentials.Interface.PokeBattle.IBattle -PokemonUnity.IHasDisplayMessage -PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon -PokemonEssentials.Interface.PokeBattle.IBattleClause -PokemonEssentials.Interface.PokeBattle.IBattleCommon -PokemonUnity.Combat.PokeBattle_BattleArena -PokemonUnity.Combat.PokeBattle_BattlePalace -PokemonUnity.Combat.PokeBattle_RecordedBattleModule< out IBattle > -PokemonUnity.Combat.PokeBattle_SafariZone +PokemonEssentials.Interface.PokeBattle.IBattleAI +PokemonEssentials.Interface.PokeBattle.IBattle +PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon +PokemonEssentials.Interface.PokeBattle.IBattleClause +PokemonEssentials.Interface.PokeBattle.IBattleCommon +PokemonUnity.Combat.PokeBattle_BattleArena +PokemonUnity.Combat.PokeBattle_BattlePalace +PokemonUnity.Combat.PokeBattle_RecordedBattleModule< TBattle > +PokemonUnity.Combat.PokeBattle_SafariZone
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

int pbGetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
 Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
 
float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
 
float pbTypeModifier2 (IBattler battlerThis, IBattler battlerOther)
 
int pbRoughStat (IBattler battler, Stats stat, int skill)
 
int pbBetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
 
int pbRoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
 
int pbRoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
 
void pbChooseMoves (int index)
 Choose a move to use. More...
 
bool pbEnemyShouldMegaEvolve (int index)
 Decide whether the opponent should Mega Evolve their Pokémon. More...
 
bool pbEnemyShouldUseItem (int index)
 
bool pbEnemyItemAlreadyUsed (int index, Items item, Items[] items)
 
Items pbEnemyItemToUse (int index)
 
virtual bool pbEnemyShouldWithdraw (int index)
 
bool pbEnemyShouldWithdrawEx (int index, bool alwaysSwitch)
 
int pbDefaultChooseNewEnemy (int index, IPokemon[] party)
 
int pbChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
 
void pbDefaultChooseEnemyCommand (int index)
 Choose an action. More...
 
bool pbDbgPlayerOnly (int idx)
 
int pbStdDev (int[] scores)
 
 Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
int GetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
 Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
 
float TypeModifier (Types type, IBattler attacker, IBattler opponent)
 
float TypeModifier2 (IBattler battlerThis, IBattler battlerOther)
 
int RoughStat (IBattler battler, Stats stat, int skill)
 
int BetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
 
int RoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
 
int RoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
 
void ChooseMoves (int index)
 Choose a move to use. More...
 
bool EnemyShouldMegaEvolve (int index)
 Decide whether the opponent should Mega Evolve their Pokémon. More...
 
bool EnemyShouldUseItem (int index)
 
bool EnemyItemAlreadyUsed (int index, Items item, Items[] items)
 
Items EnemyItemToUse (int index)
 
virtual bool EnemyShouldWithdraw (int index)
 
bool EnemyShouldWithdrawEx (int index, bool alwaysSwitch)
 
int DefaultChooseNewEnemy (int index, IPokemon[] party)
 
int ChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
 
void DefaultChooseEnemyCommand (int index)
 Choose an action. More...
 
bool DbgPlayerOnly (int idx)
 
int StdDev (int[] scores)
 
 Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
 
 Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
 Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
 
IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)
IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)
 
virtual int pbRandom (int index)
 
virtual void pbAbort ()
 
virtual void pbStorePokemon (IPokemon pokemon)
 
virtual void pbThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
 
virtual bool pbDoubleBattleAllowed ()
 
bool pbIsOpposing (int index)
 
bool pbOwnedByPlayer (int index)
 
bool pbIsDoubleBattler (int index)
 
virtual int Random (int index)
 
virtual void Abort ()
 
virtual void StorePokemon (IPokemon pokemon)
 
virtual void ThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
 
virtual bool DoubleBattleAllowed ()
 
bool IsOpposing (int index)
 
bool OwnedByPlayer (int index)
 
bool IsDoubleBattler (int index)
 
string ToString (int battlerindex, int pokemonindex)
 Only used for Wish More...
 
bool pbIsUnlosableItem (IBattler pkmn, Items item)
 Checks whether an item can be removed from a Pokémon. More...
 
IBattler pbCheckGlobalAbility (Abilities a)
 
ITrainer pbPlayer ()
 
Items[] pbGetOwnerItems (int battlerIndex)
 
void pbSetSeen (IPokemon pokemon)
 
string pbGetMegaRingName (int battlerIndex)
 
bool pbHasMegaRing (int battlerIndex)
 
bool IsUnlosableItem (IBattler pkmn, Items item)
 Checks whether an item can be removed from a Pokémon. More...
 
IBattler CheckGlobalAbility (Abilities a)
 
ITrainer Player ()
 
Items[] GetOwnerItems (int battlerIndex)
 
void SetSeen (IPokemon pokemon)
 
string GetMegaRingName (int battlerIndex)
 
bool HasMegaRing (int battlerIndex)
 
int PokemonCount (IPokemon[] party)
 
bool AllFainted (IPokemon[] party)
 
int MaxLevel (IPokemon[] party)
 
int pbPokemonCount (IPokemon[] party)
 
bool pbAllFainted (IPokemon[] party)
 
int pbMaxLevel (IPokemon[] party)
 
int pbMaxLevelFromIndex (int index)
 
IPokemon[] pbParty (int index)
 Returns the trainer party of pokemon at this index? More...
 
IPokemon[] pbOpposingParty (int index)
 
int pbSecondPartyBegin (int battlerIndex)
 
int pbPartyLength (int battlerIndex)
 
int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
 
int pbGetLastPokeInTeam (int index)
 
IBattler pbFindPlayerBattler (int pkmnIndex)
 
bool pbIsOwner (int battlerIndex, int partyIndex)
 
ITrainer pbGetOwner (int battlerIndex)
 
ITrainer pbGetOwnerPartner (int battlerIndex)
 
int pbGetOwnerIndex (int battlerIndex)
 
bool pbBelongsToPlayer (int battlerIndex)
 
ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
 
void pbAddToPlayerParty (IPokemon pokemon)
 
void pbRemoveFromParty (int battlerIndex, int partyIndex)
 
bool CanShowCommands (int idxPokemon)
 Check whether actions can be taken. More...
 
int MaxLevelFromIndex (int index)
 
IPokemon[] Party (int index)
 Returns the trainer party of pokemon at this index? More...
 
IPokemon[] OpposingParty (int index)
 
int SecondPartyBegin (int battlerIndex)
 
int PartyLength (int battlerIndex)
 
int FindNextUnfainted (IPokemon[] party, int start, int finish=-1)
 
int GetLastPokeInTeam (int index)
 
IBattler FindPlayerBattler (int pkmnIndex)
 
bool IsOwner (int battlerIndex, int partyIndex)
 
ITrainer GetOwner (int battlerIndex)
 
ITrainer GetOwnerPartner (int battlerIndex)
 
int GetOwnerIndex (int battlerIndex)
 
bool BelongsToPlayer (int battlerIndex)
 
ITrainer PartyGetOwner (int battlerIndex, int partyIndex)
 
void AddToPlayerParty (IPokemon pokemon)
 
void RemoveFromParty (int battlerIndex, int partyIndex)
 
virtual bool CanShowCommands (int idxPokemon)
 Check whether actions can be taken. More...
 
bool CanShowFightMenu (int idxPokemon)
 
bool CanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
 
virtual void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
 
virtual bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
 
bool pbChoseMove (int i, Moves move)
 
bool pbChoseMoveFunctionCode (int i, Attack.Data.Effects code)
 
virtual bool pbRegisterTarget (int idxPokemon, int idxTarget)
 
IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
 
virtual bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
 
bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
 
virtual bool pbRegisterSwitch (int idxPokemon, int idxOther)
 
bool pbCanChooseNonActive (int index)
 
virtual void pbSwitch (bool favorDraws=false)
 
void pbSendOut (int index, IPokemon pokemon)
 
void pbReplace (int index, int newpoke, bool batonpass=false)
 
bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
 
void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
 
virtual int pbSwitchInBetween (int index, bool lax, bool cancancel)
 
int pbSwitchPlayer (int index, bool lax, bool cancancel)
 
bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
 Uses an item on an active Pokémon. More...
 
bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
 
void pbEnemyUseItem (Items item, IBattler battler)
 
bool pbCanRun (int idxPokemon)
 
virtual int pbRun (int idxPokemon, bool duringBattle=false)
 
bool pbCanMegaEvolve (int index)
 
void pbRegisterMegaEvolution (int index)
 
void pbMegaEvolve (int index)
 
void pbPrimalReversion (int index)
 
void pbCall (int index)
 
virtual void pbGainEXP ()
 
void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
 
void pbLearnMove (int pkmnIndex, Moves move)
 
virtual void pbOnActiveAll ()
 
virtual bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
 
void pbPrimordialWeather ()
 
BattleResults pbDecisionOnTime ()
 
BattleResults pbDecisionOnTime2 ()
 
void pbJudge ()
 
virtual void pbDisplay (string msg)
 Displays a message on screen, and wait for player input More...
 
virtual void pbDisplayPaused (string msg)
 
virtual void pbDisplayBrief (string msg)
 Displays a message on screen, but will continue without player input after short delay More...
 
virtual bool pbDisplayConfirm (string msg)
 
void pbShowCommands (string msg, string[] commands, bool cancancel=true)
 
void pbShowCommands (string msg, string[] commands, int cancancel)
 
void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
 
void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
 
virtual BattleResults pbStartBattle (bool canlose=false)
 
void pbStartBattleCore (bool canlose)
 
virtual MenuCommands pbCommandMenu (int i)
 
virtual KeyValuePair<Items, int?> pbItemMenu (int i)
 
virtual bool pbAutoFightMenu (int i)
 
virtual void pbCommandPhase ()
 
void pbAttackPhase ()
 
BattleResults pbEndOfBattle (bool canlose=false)
 
bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
 Uses an item on a Pokémon in the player's party. More...
 
virtual BattleResults pbDecisionOnDraw ()
 
virtual void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
 
virtual void pbEndOfRoundPhase ()
 
int pbGetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
 Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
 
float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
 
float pbTypeModifier2 (IBattler battlerThis, IBattler battlerOther)
 
int pbRoughStat (IBattler battler, Stats stat, int skill)
 
int pbBetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
 
int pbRoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
 
int pbRoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
 
void pbChooseMoves (int index)
 Choose a move to use. More...
 
bool pbEnemyShouldMegaEvolve (int index)
 Decide whether the opponent should Mega Evolve their Pokémon. More...
 
bool pbEnemyShouldUseItem (int index)
 
bool pbEnemyItemAlreadyUsed (int index, Items item, Items[] items)
 
Items pbEnemyItemToUse (int index)
 
bool pbEnemyShouldWithdraw (int index)
 
bool pbEnemyShouldWithdrawEx (int index, bool alwaysSwitch)
 
int pbDefaultChooseNewEnemy (int index, IPokemon[] party)
 
int pbChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
 
void pbDefaultChooseEnemyCommand (int index)
 Choose an action. More...
 
bool pbDbgPlayerOnly (int idx)
 
int pbStdDev (int[] scores)
 
virtual void AutoChooseMove (int idxPokemon, bool showMessages=true)
 
virtual bool RegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
 
bool ChoseMove (int i, Moves move)
 
bool ChoseMoveFunctionCode (int i, Attack.Data.Effects code)
 
virtual bool RegisterTarget (int idxPokemon, int idxTarget)
 
IBattler[] Priority (bool ignorequickclaw=false, bool log=false)
 
virtual bool CanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
 
bool CanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
 
virtual bool RegisterSwitch (int idxPokemon, int idxOther)
 
bool CanChooseNonActive (int index)
 
virtual void Switch (bool favorDraws=false)
 
void SendOut (int index, IPokemon pokemon)
 
void Replace (int index, int newpoke, bool batonpass=false)
 
bool RecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
 
void MessagesOnReplace (int index, int newpoke, int newpokename=-1)
 
virtual int SwitchInBetween (int index, bool lax, bool cancancel)
 
int SwitchPlayer (int index, bool lax, bool cancancel)
 
bool UseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
 Uses an item on an active Pokémon. More...
 
bool RegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
 
void EnemyUseItem (Items item, IBattler battler)
 
bool CanRun (int idxPokemon)
 
virtual int Run (int idxPokemon, bool duringBattle=false)
 
bool CanMegaEvolve (int index)
 
void RegisterMegaEvolution (int index)
 
void MegaEvolve (int index)
 
void PrimalReversion (int index)
 
void Call (int index)
 
virtual void GainEXP ()
 
void GainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
 
void LearnMove (int pkmnIndex, Moves move)
 
virtual void OnActiveAll ()
 
virtual bool OnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
 
void PrimordialWeather ()
 
BattleResults DecisionOnTime ()
 
BattleResults DecisionOnTime2 ()
 
void Judge ()
 
virtual void Display (string msg)
 Displays a message on screen, and wait for player input More...
 
virtual void DisplayPaused (string msg)
 
virtual void DisplayBrief (string msg)
 Displays a message on screen, but will continue without player input after short delay More...
 
virtual bool DisplayConfirm (string msg)
 
void ShowCommands (string msg, string[] commands, bool cancancel=true)
 
void ShowCommands (string msg, string[] commands, int cancancel)
 
void Animation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
 
void CommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
 
virtual BattleResults StartBattle (bool canlose=false)
 
void StartBattleCore (bool canlose)
 
virtual MenuCommands CommandMenu (int i)
 
virtual KeyValuePair<Items, int?> ItemMenu (int i)
 
virtual bool AutoFightMenu (int i)
 
virtual void CommandPhase ()
 
void AttackPhase ()
 
BattleResults EndOfBattle (bool canlose=false)
 
bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
 Uses an item on a Pokémon in the player's party. More...
 
virtual BattleResults DecisionOnDraw ()
 
virtual void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
 
virtual void EndOfRoundPhase ()
 
int GetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
 Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
 
float TypeModifier (Types type, IBattler attacker, IBattler opponent)
 
float TypeModifier2 (IBattler battlerThis, IBattler battlerOther)
 
int RoughStat (IBattler battler, Stats stat, int skill)
 
int BetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
 
int RoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
 
int RoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
 
void ChooseMoves (int index)
 Choose a move to use. More...
 
bool EnemyShouldMegaEvolve (int index)
 Decide whether the opponent should Mega Evolve their Pokémon. More...
 
bool EnemyShouldUseItem (int index)
 
bool EnemyItemAlreadyUsed (int index, Items item, Items[] items)
 
Items EnemyItemToUse (int index)
 
bool EnemyShouldWithdraw (int index)
 
bool EnemyShouldWithdrawEx (int index, bool alwaysSwitch)
 
int DefaultChooseNewEnemy (int index, IPokemon[] party)
 
int ChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
 
void DefaultChooseEnemyCommand (int index)
 Choose an action. More...
 
bool DbgPlayerOnly (int idx)
 
int StdDev (int[] scores)
 
- Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattle
void pbAbort ()
 
IEnumerator pbDebugUpdate ()
 
int pbRandom (int x)
 
int pbAIRandom (int x)
 
void Abort ()
 
IEnumerator DebugUpdate ()
 
int Random (int x)
 
int AIRandom (int x)
 
IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
 
IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
 
bool pbDoubleBattleAllowed ()
 
bool pbIsOpposing (int index)
 
bool pbOwnedByPlayer (int index)
 
bool pbIsDoubleBattler (int index)
 
bool DoubleBattleAllowed ()
 
bool IsOpposing (int index)
 
bool OwnedByPlayer (int index)
 
bool IsDoubleBattler (int index)
 
string ToString (int battlerindex, int pokemonindex)
 Only used for Wish More...
 
bool pbIsUnlosableItem (IBattler pkmn, Items item)
 Checks whether an item can be removed from a Pokémon. More...
 
IBattler pbCheckGlobalAbility (Abilities a)
 
ITrainer pbPlayer ()
 
Items[] pbGetOwnerItems (int battlerIndex)
 
void pbSetSeen (IPokemon pokemon)
 
string pbGetMegaRingName (int battlerIndex)
 
bool pbHasMegaRing (int battlerIndex)
 
int pbPokemonCount (IPokemon[] party)
 
bool pbAllFainted (IPokemon[] party)
 
int pbMaxLevel (IPokemon[] party)
 
int pbMaxLevelFromIndex (int index)
 
IPokemon[] pbParty (int index)
 Gets player party of selected battler More...
 
IPokemon[] pbOpposingParty (int index)
 
int pbSecondPartyBegin (int battlerIndex)
 
int pbPartyLength (int battlerIndex)
 
int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
 
int pbGetLastPokeInTeam (int index)
 
IBattler pbFindPlayerBattler (int pkmnIndex)
 
bool pbIsOwner (int battlerIndex, int partyIndex)
 
ITrainer pbGetOwner (int battlerIndex)
 
ITrainer pbGetOwnerPartner (int battlerIndex)
 
int pbGetOwnerIndex (int battlerIndex)
 
bool pbBelongsToPlayer (int battlerIndex)
 
ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
 
void pbAddToPlayerParty (IBattler pokemon)
 
void pbRemoveFromParty (int battlerIndex, int partyIndex)
 
bool pbCanShowCommands (int idxPokemon)
 Check whether actions can be taken. More...
 
bool pbCanShowFightMenu (int idxPokemon)
 
bool pbCanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
 
void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
 
bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
 
bool pbChoseMove (int i, Moves move)
 
bool pbChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
 
bool pbRegisterTarget (int idxPokemon, int idxTarget)
 
IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
 
bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
 
bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
 
bool pbRegisterSwitch (int idxPokemon, int idxOther)
 
bool pbCanChooseNonActive (int index)
 
void pbSwitch (bool favorDraws=false)
 
void pbSendOut (int index, IBattler pokemon)
 
void pbReplace (int index, int newpoke, bool batonpass=false)
 
bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
 
void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
 
int pbSwitchInBetween (int index, bool lax, bool cancancel)
 
int pbSwitchPlayer (int index, bool lax, bool cancancel)
 
bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
 Uses an item on a Pokémon in the player's party. More...
 
bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
 Uses an item on an active Pokémon. More...
 
bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
 
void pbEnemyUseItem (Items item, IBattler battler)
 
bool pbCanRun (int idxPokemon)
 
int pbRun (int idxPokemon, bool duringBattle=false)
 
bool pbCanMegaEvolve (int index)
 
void pbRegisterMegaEvolution (int index)
 
void pbMegaEvolve (int index)
 
void pbPrimalReversion (int index)
 
void pbCall (int index)
 
void pbGainEXP ()
 
void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
 
void pbLearnMove (int pkmnIndex, Moves move)
 
void pbOnActiveAll ()
 
bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
 
void pbPrimordialWeather ()
 
void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
 
BattleResults pbDecisionOnTime ()
 
BattleResults pbDecisionOnTime2 ()
 
BattleResults pbDecisionOnDraw ()
 
void pbJudge ()
 
void pbDisplay (string msg)
 
void pbDisplayPaused (string msg)
 
void pbDisplayBrief (string msg)
 
bool pbDisplayConfirm (string msg)
 
void pbShowCommands (string msg, string[] commands, bool cancancel=true)
 
void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
 
void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
 
BattleResults pbStartBattle (bool canlose=false)
 
void pbStartBattleCore (bool canlose)
 
MenuCommands pbCommandMenu (int i)
 
KeyValuePair<Items, int?> pbItemMenu (int i)
 
bool pbAutoFightMenu (int i)
 
void pbCommandPhase ()
 
void pbAttackPhase ()
 
void pbEndOfRoundPhase ()
 
BattleResults pbEndOfBattle (bool canlose=false)
 
void pbStorePokemon (IPokemon pokemon)
 
void pbThrowPokeBall (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
 
void pbDisplay (string v)
 
- Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon
bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
 
BattleResults pbDecisionOnDraw ()
 
void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
 
void pbEndOfRoundPhase ()
 
bool IsUnlosableItem (IBattler pkmn, Items item)
 Checks whether an item can be removed from a Pokémon. More...
 
IBattler CheckGlobalAbility (Abilities a)
 
ITrainer Player ()
 
Items[] GetOwnerItems (int battlerIndex)
 
void SetSeen (IPokemon pokemon)
 
string GetMegaRingName (int battlerIndex)
 
bool HasMegaRing (int battlerIndex)
 
int PokemonCount (IPokemon[] party)
 
bool AllFainted (IPokemon[] party)
 
int MaxLevel (IPokemon[] party)
 
int MaxLevelFromIndex (int index)
 
IPokemon[] Party (int index)
 Gets player party of selected battler More...
 
IPokemon[] OpposingParty (int index)
 
int SecondPartyBegin (int battlerIndex)
 
int PartyLength (int battlerIndex)
 
int FindNextUnfainted (IPokemon[] party, int start, int finish=-1)
 
int GetLastPokeInTeam (int index)
 
IBattler FindPlayerBattler (int pkmnIndex)
 
bool IsOwner (int battlerIndex, int partyIndex)
 
ITrainer GetOwner (int battlerIndex)
 
ITrainer GetOwnerPartner (int battlerIndex)
 
int GetOwnerIndex (int battlerIndex)
 
bool BelongsToPlayer (int battlerIndex)
 
ITrainer PartyGetOwner (int battlerIndex, int partyIndex)
 
void AddToPlayerParty (IPokemon pokemon)
 
void RemoveFromParty (int battlerIndex, int partyIndex)
 
bool CanShowCommands (int idxPokemon)
 Check whether actions can be taken. More...
 
bool CanShowFightMenu (int idxPokemon)
 
bool CanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
 
void AutoChooseMove (int idxPokemon, bool showMessages=true)
 
bool RegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
 
bool ChoseMove (int i, Moves move)
 
bool ChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
 
bool RegisterTarget (int idxPokemon, int idxTarget)
 
IBattler[] Priority (bool ignorequickclaw=false, bool log=false)
 
bool CanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
 
bool CanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
 
bool RegisterSwitch (int idxPokemon, int idxOther)
 
bool CanChooseNonActive (int index)
 
void Switch (bool favorDraws=false)
 
void SendOut (int index, IPokemon pokemon)
 
void Replace (int index, int newpoke, bool batonpass=false)
 
bool RecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
 
void MessagesOnReplace (int index, int newpoke, int newpokename=-1)
 
int SwitchInBetween (int index, bool lax, bool cancancel)
 
int SwitchPlayer (int index, bool lax, bool cancancel)
 
bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
 Uses an item on a Pokémon in the player's party. More...
 
bool UseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
 Uses an item on an active Pokémon. More...
 
bool RegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
 
void EnemyUseItem (Items item, IBattler battler)
 
bool CanRun (int idxPokemon)
 
int Run (int idxPokemon, bool duringBattle=false)
 
bool CanMegaEvolve (int index)
 
void RegisterMegaEvolution (int index)
 
void MegaEvolve (int index)
 
void PrimalReversion (int index)
 
void Call (int index)
 
void GainEXP ()
 
void GainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
 
void LearnMove (int pkmnIndex, Moves move)
 
void OnActiveAll ()
 
bool OnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
 
void PrimordialWeather ()
 
void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
 
BattleResults DecisionOnTime ()
 
BattleResults DecisionOnTime2 ()
 
BattleResults DecisionOnDraw ()
 
void Judge ()
 
void Display (string msg)
 
void DisplayPaused (string msg)
 
void DisplayBrief (string msg)
 
bool DisplayConfirm (string msg)
 
void ShowCommands (string msg, string[] commands, bool cancancel=true)
 
void Animation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
 
void CommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
 
BattleResults StartBattle (bool canlose=false)
 
void StartBattleCore (bool canlose)
 
MenuCommands CommandMenu (int i)
 
KeyValuePair<Items, int?> ItemMenu (int i)
 
bool AutoFightMenu (int i)
 
void CommandPhase ()
 
void AttackPhase ()
 
void EndOfRoundPhase ()
 
BattleResults EndOfBattle (bool canlose=false)
 
void StorePokemon (IPokemon pokemon)
 
void ThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
 
bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
 
BattleResults DecisionOnDraw ()
 
void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
 
void EndOfRoundPhase ()
 
+ + + + +

+Protected Member Functions

 Battle ()
 using this to override constructor behavior on inherited... More...
 
+ + + + + + + + + + + + + + + + + +

+Protected Attributes

IBattler[] _battlers
 
IBattler[] _priority
 
List< int > snaggedpokemon
 
int runCommand
 Each time you use the option to flee, the counter goes up. More...
 
int pickupUse
 
bool controlPlayer
 
bool usepriority
 
IBattlePeer peer
 
- + @@ -563,7 +581,7 @@ Properties - + @@ -601,40 +619,40 @@ Properties - + - + - + - + - + - + - + - + @@ -643,7 +661,7 @@ Properties - + @@ -667,29 +685,18 @@ Properties - + - + - - - - - - - - - - - - - + + @@ -755,7 +762,7 @@ Properties - + @@ -809,60 +816,42 @@ Properties - - - - + +

Properties

IScene scene [get, protected set]
IScene scene [get, protected set]
 Scene object for this battle More...
 
BattleResults decision [get, set]
bool cantescape [get, set]
 True if player can't escape More...
 
bool canLose [get]
bool canLose [get, protected set]
 If game cannot progress UNLESS the player is victor of match. False if there are no consequences to player's defeat. More...
 
bool shiftStyle [get, set]
bool fullparty2 [get, set]
 True if opponent's party's max size is 6 instead of 3 More...
 
IBattler[] battlers [get, protected set]
IBattler[] battlers [get]
 Currently active Pokémon More...
 
Items[][] items [get, set]
 Items held by opponents More...
 
IEffectsSide[] sides [get]
IEffectsSide[] sides [get, protected set]
 Effects common to each side of a battle More...
 
IEffectsField field [get]
IEffectsField field [get, protected set]
 Effects common to the whole of a battle More...
 
Environments environment [get, set]
 Battle surroundings; Environment node is used for background visual, that's displayed behind the floor tile More...
 
Weather weather [get, set]
 Current weather, custom methods should use pbWeather instead More...
 Current weather, custom methods should use Weather instead More...
 
int weatherduration [get, set]
 Duration of current weather, or -1 if indefinite More...
 
bool switching [get]
bool switching [get, protected set]
 True if during the switching phase of the round More...
 
bool futuresight [get]
bool futuresight [get, protected set]
 True if Future Sight is hitting More...
 
IBattleMove struggle [get]
IBattleMove struggle [get, protected set]
 The Struggle move More...
 
IBattleChoice[] choices [get, protected set]
 Choices made by each Pokémon this round More...
 
ISuccessState[] successStates [get]
ISuccessState[] successStates [get, protected set]
 Success states More...
 
Moves lastMoveUsed [get, set]
int lastMoveUser [get, set]
 Last move user More...
 
int[][] megaEvolution [get]
int[][] megaEvolution [get, protected set]
 Battle index of each trainer's Pokémon to Mega Evolve More...
 
bool amuletcoin [get, protected set]
string endspeechwin2 [get, set]
 Speech by opponent when opponent wins More...
 
IDictionary< string, bool > rules [get]
IDictionary< string, bool > rules [get, protected set]
 
int turncount [get, set]
 Counter to track number of turns for battle More...
 
IBattler[] priority [get, protected set]
IBattler[] priority [get]
 
List< int > snaggedpokemon [get]
 
int runCommand [get]
 Each time you use the option to flee, the counter goes up. More...
 
int nextPickupUse [get]
 Another counter that has something to do with tracking items picked up during a battle More...
 
bool controlPlayer [get, set]
 
bool usepriority [get, set]
 
IBattlePeer peer [get, set]
 
Weather pbWeather [get]
 
virtual Weather Weather [get]
 
- Properties inherited from PokemonEssentials.Interface.PokeBattle.IBattle
IScene scene [get]
 Scene object for this battle More...
 Battle surroundings More...
 
Weather weather [get, set]
 Current weather, custom methods should use pbWeather instead More...
 Current weather, custom methods should use Weather instead More...
 
int weatherduration [get, set]
 Duration of current weather, or -1 if indefinite More...
 
int turncount [get, set]
 
bool controlPlayer [get, set]
 
Weather pbWeather [get]
 
Weather Weather [get]
 
int nextPickupUse [get]
 

Detailed Description

Constructor & Destructor Documentation

- -

◆ Battle() [1/2]

+ +

◆ Battle() [1/3]

+ + + + + +
- - - - - - - - - - - - - - - - - - - - - - - + - -
PokemonUnity.Combat.Battle.Battle (IScene scene,
IPokemon[] p1,
IPokemon[] p2,
ITrainer player,
) ITrainer opponent  )
+
+protected
-

+

using this to override constructor behavior on inherited...

- -

◆ Battle() [2/2]

+ +

◆ Battle() [2/3]

@@ -870,7 +859,7 @@ Properties PokemonUnity.Combat.Battle.Battle ( - IScene  + IScene  scene, @@ -888,13 +877,13 @@ Properties - ITrainer[]  + ITrainer  player, - ITrainer[]  + ITrainer  opponent  ) @@ -902,115 +891,16 @@ Properties
-

Member Function Documentation

- -

◆ AllFainted()

- -
-
- - - - - - - - -
bool PokemonUnity.Combat.Battle.AllFainted (IPokemon[] party)
-
- -
-
- -

◆ CanChooseMove()

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
bool PokemonUnity.Combat.Battle.CanChooseMove (int idxPokemon,
int idxMove,
bool showMessages,
bool sleeptalk = false  )
-
- -
-
- -

◆ CanShowCommands()

- -
-
- - - - - - - - -
bool PokemonUnity.Combat.Battle.CanShowCommands (int idxPokemon)
-
- -

Check whether actions can be taken.

-
Parameters
- - -
idxPokemon
-
-
-
Returns
- -
-
- -

◆ CanShowFightMenu()

- -
-
- - - - - - - - -
bool PokemonUnity.Combat.Battle.CanShowFightMenu (int idxPokemon)
-
- -
-
- -

◆ initialize()

+ +

◆ Battle() [3/3]

- + - + @@ -1035,39 +925,16 @@ Properties - - - - - - - - -
IBattle PokemonUnity.Combat.Battle.initialize PokemonUnity.Combat.Battle.Battle (IScene IScene  scene,
ITrainer[] opponent,
int maxBattlers = 4  )
-
- -
-
- -

◆ MaxLevel()

- -
-
- - - - - - - +
int PokemonUnity.Combat.Battle.MaxLevel (IPokemon[] party)opponent  )
- -

◆ pbAbort()

+

Member Function Documentation

+ +

◆ Abort()

@@ -1076,7 +943,7 @@ Properties - + @@ -1089,18 +956,18 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbAbort virtual void PokemonUnity.Combat.Battle.Abort ( )
- -

◆ pbAddToPlayerParty()

+ +

◆ AddToPlayerParty()

- + @@ -1109,16 +976,18 @@ Properties
void PokemonUnity.Combat.Battle.pbAddToPlayerParty void PokemonUnity.Combat.Battle.AddToPlayerParty ( IPokemon  pokemon)
- -

◆ pbAllFainted()

+ +

◆ AllFainted()

- + @@ -1127,18 +996,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbAllFainted bool PokemonUnity.Combat.Battle.AllFainted ( IPokemon[]  party)
- -

◆ pbAnimation()

+ +

◆ Animation()

- + @@ -1164,18 +1033,18 @@ Properties
void PokemonUnity.Combat.Battle.pbAnimation void PokemonUnity.Combat.Battle.Animation ( Moves  move,
- -

◆ pbAttackPhase()

+ +

◆ AttackPhase()

- + @@ -1183,12 +1052,12 @@ Properties
void PokemonUnity.Combat.Battle.pbAttackPhase void PokemonUnity.Combat.Battle.AttackPhase ( )
- -

◆ pbAutoChooseMove()

+ +

◆ AutoChooseMove()

@@ -1197,7 +1066,7 @@ Properties - + @@ -1216,14 +1085,14 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbAutoChooseMove virtual void PokemonUnity.Combat.Battle.AutoChooseMove ( int  idxPokemon,
- -

◆ pbAutoFightMenu()

+ +

◆ AutoFightMenu()

@@ -1232,7 +1101,7 @@ Properties - + @@ -1246,20 +1115,20 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbAutoFightMenu virtual bool PokemonUnity.Combat.Battle.AutoFightMenu ( int  i)
- -

◆ pbBelongsToPlayer()

+ +

◆ BelongsToPlayer()

- + @@ -1268,18 +1137,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbBelongsToPlayer bool PokemonUnity.Combat.Battle.BelongsToPlayer ( int  battlerIndex)
- -

◆ pbBetterBaseDamage()

+ +

◆ BetterBaseDamage()

- + @@ -1312,18 +1181,18 @@ Properties

case 0x12D: // case Surf: Shadow Storm

-

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

- -

◆ pbCall()

+ +

◆ Call()

int PokemonUnity.Combat.Battle.pbBetterBaseDamage int PokemonUnity.Combat.Battle.BetterBaseDamage ( IBattleMove  move,
- + @@ -1332,18 +1201,55 @@ Properties
void PokemonUnity.Combat.Battle.pbCall void PokemonUnity.Combat.Battle.Call ( int  index)
+
+ +

◆ CanChooseMove()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
bool PokemonUnity.Combat.Battle.CanChooseMove (int idxPokemon,
int idxMove,
bool showMessages,
bool sleeptalk = false  )
+
- -

◆ pbCanChooseNonActive()

+ +

◆ CanChooseNonActive()

- + @@ -1352,18 +1258,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbCanChooseNonActive bool PokemonUnity.Combat.Battle.CanChooseNonActive ( int  index)
- -

◆ pbCanMegaEvolve()

+ +

◆ CanMegaEvolve()

- + @@ -1372,18 +1278,75 @@ Properties
bool PokemonUnity.Combat.Battle.pbCanMegaEvolve bool PokemonUnity.Combat.Battle.CanMegaEvolve ( int  index)
+
+ +

◆ CanRun()

+ +
+
+ + + + + + + + +
bool PokemonUnity.Combat.Battle.CanRun (int idxPokemon)
+
+
+ +

◆ CanShowCommands()

+ +
+
+ + + + + +
+ + + + + + + + +
virtual bool PokemonUnity.Combat.Battle.CanShowCommands (int idxPokemon)
+
+virtual
+
+ +

Check whether actions can be taken.

+
Parameters
+ + +
idxPokemon
+
+
+
Returns
+ +

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

- -

◆ pbCanRun()

+ +

◆ CanShowFightMenu()

- + @@ -1392,18 +1355,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbCanRun bool PokemonUnity.Combat.Battle.CanShowFightMenu ( int  idxPokemon)
- -

◆ pbCanSwitch()

+ +

◆ CanSwitch()

- + @@ -1429,12 +1392,12 @@ Properties
bool PokemonUnity.Combat.Battle.pbCanSwitch bool PokemonUnity.Combat.Battle.CanSwitch ( int  idxPokemon,
- -

◆ pbCanSwitchLax()

+ +

◆ CanSwitchLax()

@@ -1443,7 +1406,7 @@ Properties - + @@ -1468,20 +1431,20 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbCanSwitchLax virtual bool PokemonUnity.Combat.Battle.CanSwitchLax ( int  idxPokemon,
- -

◆ pbCheckGlobalAbility()

+ +

◆ CheckGlobalAbility()

- + @@ -1490,18 +1453,18 @@ Properties
IBattler PokemonUnity.Combat.Battle.pbCheckGlobalAbility IBattler PokemonUnity.Combat.Battle.CheckGlobalAbility ( Abilities  a)
- -

◆ pbChooseBestNewEnemy()

+ +

◆ ChooseBestNewEnemy()

- + @@ -1521,18 +1484,18 @@ Properties
int PokemonUnity.Combat.Battle.pbChooseBestNewEnemy int PokemonUnity.Combat.Battle.ChooseBestNewEnemy ( int  index,
- -

◆ pbChooseMoves()

+ +

◆ ChooseMoves()

- + @@ -1549,18 +1512,18 @@ Properties -

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

- -

◆ pbChoseMove()

+ +

◆ ChoseMove()

void PokemonUnity.Combat.Battle.pbChooseMoves void PokemonUnity.Combat.Battle.ChooseMoves ( int  index)
- + @@ -1574,18 +1537,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbChoseMove bool PokemonUnity.Combat.Battle.ChoseMove ( int  i,
- -

◆ pbChoseMoveFunctionCode()

+ +

◆ ChoseMoveFunctionCode()

- + @@ -1601,8 +1564,8 @@ Properties - -

◆ pbCommandMenu()

+ +

◆ CommandMenu()

@@ -1611,7 +1574,7 @@ Properties
bool PokemonUnity.Combat.Battle.pbChoseMoveFunctionCode bool PokemonUnity.Combat.Battle.ChoseMoveFunctionCode ( int  i,
- + @@ -1625,12 +1588,12 @@ Properties
virtual MenuCommands PokemonUnity.Combat.Battle.pbCommandMenu virtual MenuCommands PokemonUnity.Combat.Battle.CommandMenu ( int  i)
- -

◆ pbCommandPhase()

+ +

◆ CommandPhase()

@@ -1639,7 +1602,7 @@ Properties
- + @@ -1652,20 +1615,20 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbCommandPhase virtual void PokemonUnity.Combat.Battle.CommandPhase ( )
- -

◆ pbCommonAnimation()

+ +

◆ CommonAnimation()

- + @@ -1691,18 +1654,18 @@ Properties
void PokemonUnity.Combat.Battle.pbCommonAnimation void PokemonUnity.Combat.Battle.CommonAnimation ( string  name,
- -

◆ pbDbgPlayerOnly()

+ +

◆ DbgPlayerOnly()

- + @@ -1711,12 +1674,12 @@ Properties
bool PokemonUnity.Combat.Battle.pbDbgPlayerOnly bool PokemonUnity.Combat.Battle.DbgPlayerOnly ( int  idx)
- -

◆ pbDecisionOnDraw()

+ +

◆ DecisionOnDraw()

@@ -1725,7 +1688,7 @@ Properties
- + @@ -1738,18 +1701,18 @@ Properties
virtual BattleResults PokemonUnity.Combat.Battle.pbDecisionOnDraw virtual BattleResults PokemonUnity.Combat.Battle.DecisionOnDraw ( )
- -

◆ pbDecisionOnTime()

+ +

◆ DecisionOnTime()

- + @@ -1757,18 +1720,18 @@ Properties
BattleResults PokemonUnity.Combat.Battle.pbDecisionOnTime BattleResults PokemonUnity.Combat.Battle.DecisionOnTime ( )
- -

◆ pbDecisionOnTime2()

+ +

◆ DecisionOnTime2()

- + @@ -1780,18 +1743,18 @@ Properties
Returns

Made this and forgot to label it... idr details

-

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

- -

◆ pbDefaultChooseEnemyCommand()

+ +

◆ DefaultChooseEnemyCommand()

BattleResults PokemonUnity.Combat.Battle.pbDecisionOnTime2 BattleResults PokemonUnity.Combat.Battle.DecisionOnTime2 ( )
- + @@ -1808,18 +1771,18 @@ Properties -

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

- -

◆ pbDefaultChooseNewEnemy()

+ +

◆ DefaultChooseNewEnemy()

void PokemonUnity.Combat.Battle.pbDefaultChooseEnemyCommand void PokemonUnity.Combat.Battle.DefaultChooseEnemyCommand ( int  index)
- + @@ -1833,12 +1796,12 @@ Properties
int PokemonUnity.Combat.Battle.pbDefaultChooseNewEnemy int PokemonUnity.Combat.Battle.DefaultChooseNewEnemy ( int  index,
- -

◆ pbDisplay()

+ +

◆ Display()

@@ -1847,7 +1810,7 @@ Properties
- + @@ -1869,14 +1832,14 @@ Properties -

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

-

Reimplemented in PokemonUnity.Combat.PokeBattle_SafariZone.

+

Reimplemented in PokemonUnity.Combat.PokeBattle_SafariZone.

- -

◆ pbDisplayBrief()

+ +

◆ DisplayBrief()

@@ -1885,7 +1848,7 @@ Properties

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

- - - -

◆ controlPlayer

- -
-
-
virtual void PokemonUnity.Combat.Battle.pbDisplay virtual void PokemonUnity.Combat.Battle.Display ( string  msg)
- + @@ -1907,14 +1870,14 @@ Properties -

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

-

Reimplemented in PokemonUnity.Combat.PokeBattle_SafariZone.

+

Reimplemented in PokemonUnity.Combat.PokeBattle_SafariZone.

- -

◆ pbDisplayConfirm()

+ +

◆ DisplayConfirm()

@@ -1923,7 +1886,7 @@ Properties
+getprotected set
virtual void PokemonUnity.Combat.Battle.pbDisplayBrief virtual void PokemonUnity.Combat.Battle.DisplayBrief ( string  msg)
- + @@ -1937,14 +1900,14 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbDisplayConfirm virtual bool PokemonUnity.Combat.Battle.DisplayConfirm ( string  msg)
- -

◆ pbDisplayPaused()

+ +

◆ DisplayPaused()

@@ -1953,7 +1916,7 @@ Properties
- + @@ -1967,14 +1930,14 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbDisplayPaused virtual void PokemonUnity.Combat.Battle.DisplayPaused ( string  msg)
- -

◆ pbDoubleBattleAllowed()

+ +

◆ DoubleBattleAllowed()

@@ -1983,7 +1946,7 @@ Properties
- + @@ -1996,20 +1959,20 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbDoubleBattleAllowed virtual bool PokemonUnity.Combat.Battle.DoubleBattleAllowed ( )
- -

◆ pbEndOfBattle()

+ +

◆ EndOfBattle()

- + @@ -2018,12 +1981,12 @@ Properties
BattleResults PokemonUnity.Combat.Battle.pbEndOfBattle BattleResults PokemonUnity.Combat.Battle.EndOfBattle ( bool  canlose = false)
- -

◆ pbEndOfRoundPhase()

+ +

◆ EndOfRoundPhase()

@@ -2032,7 +1995,7 @@ Properties
- + @@ -2045,20 +2008,20 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbEndOfRoundPhase virtual void PokemonUnity.Combat.Battle.EndOfRoundPhase ( )
- -

◆ pbEnemyItemAlreadyUsed()

+ +

◆ EnemyItemAlreadyUsed()

- + @@ -2078,18 +2041,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbEnemyItemAlreadyUsed bool PokemonUnity.Combat.Battle.EnemyItemAlreadyUsed ( int  index,
- -

◆ pbEnemyItemToUse()

+ +

◆ EnemyItemToUse()

- + @@ -2098,18 +2061,18 @@ Properties
Items PokemonUnity.Combat.Battle.pbEnemyItemToUse Items PokemonUnity.Combat.Battle.EnemyItemToUse ( int  index)
- -

◆ pbEnemyShouldMegaEvolve()

+ +

◆ EnemyShouldMegaEvolve()

- + @@ -2127,18 +2090,18 @@ Properties
Returns
-

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

- -

◆ pbEnemyShouldUseItem()

+ +

◆ EnemyShouldUseItem()

bool PokemonUnity.Combat.Battle.pbEnemyShouldMegaEvolve bool PokemonUnity.Combat.Battle.EnemyShouldMegaEvolve ( int  index)
- + @@ -2147,12 +2110,12 @@ Properties
bool PokemonUnity.Combat.Battle.pbEnemyShouldUseItem bool PokemonUnity.Combat.Battle.EnemyShouldUseItem ( int  index)
- -

◆ pbEnemyShouldWithdraw()

+ +

◆ EnemyShouldWithdraw()

@@ -2161,7 +2124,7 @@ Properties
- + @@ -2175,20 +2138,20 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbEnemyShouldWithdraw virtual bool PokemonUnity.Combat.Battle.EnemyShouldWithdraw ( int  index)
- -

◆ pbEnemyShouldWithdrawEx()

+ +

◆ EnemyShouldWithdrawEx()

- + @@ -2202,18 +2165,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbEnemyShouldWithdrawEx bool PokemonUnity.Combat.Battle.EnemyShouldWithdrawEx ( int  index,
- -

◆ pbEnemyUseItem()

+ +

◆ EnemyUseItem()

- + @@ -2227,18 +2190,18 @@ Properties
void PokemonUnity.Combat.Battle.pbEnemyUseItem void PokemonUnity.Combat.Battle.EnemyUseItem ( Items  item,
- -

◆ pbFindNextUnfainted()

+ +

◆ FindNextUnfainted()

- + @@ -2258,18 +2221,18 @@ Properties
int PokemonUnity.Combat.Battle.pbFindNextUnfainted int PokemonUnity.Combat.Battle.FindNextUnfainted ( IPokemon[]  party,
- -

◆ pbFindPlayerBattler()

+ +

◆ FindPlayerBattler()

- + @@ -2278,12 +2241,12 @@ Properties
IBattler PokemonUnity.Combat.Battle.pbFindPlayerBattler IBattler PokemonUnity.Combat.Battle.FindPlayerBattler ( int  pkmnIndex)
- -

◆ pbGainEXP()

+ +

◆ GainEXP()

@@ -2292,7 +2255,7 @@ Properties
- + @@ -2305,20 +2268,20 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbGainEXP virtual void PokemonUnity.Combat.Battle.GainEXP ( )
- -

◆ pbGainExpOne()

+ +

◆ GainExpOne()

- + @@ -2356,18 +2319,18 @@ Properties
void PokemonUnity.Combat.Battle.pbGainExpOne void PokemonUnity.Combat.Battle.GainExpOne ( int  index,
- -

◆ pbGetLastPokeInTeam()

+ +

◆ GetLastPokeInTeam()

- + @@ -2376,18 +2339,18 @@ Properties
int PokemonUnity.Combat.Battle.pbGetLastPokeInTeam int PokemonUnity.Combat.Battle.GetLastPokeInTeam ( int  index)
- -

◆ pbGetMegaRingName()

+ +

◆ GetMegaRingName()

- + @@ -2396,18 +2359,18 @@ Properties
string PokemonUnity.Combat.Battle.pbGetMegaRingName string PokemonUnity.Combat.Battle.GetMegaRingName ( int  battlerIndex)
- -

◆ pbGetMoveScore()

+ +

◆ GetMoveScore()

- + @@ -2445,18 +2408,18 @@ Properties
Returns
-

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattleAI.

- -

◆ pbGetOwner()

+ +

◆ GetOwner()

int PokemonUnity.Combat.Battle.pbGetMoveScore int PokemonUnity.Combat.Battle.GetMoveScore ( IBattleMove  move,
- + @@ -2465,18 +2428,18 @@ Properties
ITrainer PokemonUnity.Combat.Battle.pbGetOwner ITrainer PokemonUnity.Combat.Battle.GetOwner ( int  battlerIndex)
- -

◆ pbGetOwnerIndex()

+ +

◆ GetOwnerIndex()

- + @@ -2485,18 +2448,18 @@ Properties
int PokemonUnity.Combat.Battle.pbGetOwnerIndex int PokemonUnity.Combat.Battle.GetOwnerIndex ( int  battlerIndex)
- -

◆ pbGetOwnerItems()

+ +

◆ GetOwnerItems()

- + @@ -2505,18 +2468,18 @@ Properties
Items[] PokemonUnity.Combat.Battle.pbGetOwnerItems Items[] PokemonUnity.Combat.Battle.GetOwnerItems ( int  battlerIndex)
- -

◆ pbGetOwnerPartner()

+ +

◆ GetOwnerPartner()

- + @@ -2525,18 +2488,18 @@ Properties
ITrainer PokemonUnity.Combat.Battle.pbGetOwnerPartner ITrainer PokemonUnity.Combat.Battle.GetOwnerPartner ( int  battlerIndex)
- -

◆ pbHasMegaRing()

+ +

◆ HasMegaRing()

- + @@ -2545,18 +2508,65 @@ Properties
bool PokemonUnity.Combat.Battle.pbHasMegaRing bool PokemonUnity.Combat.Battle.HasMegaRing ( int  battlerIndex)
+
+ +

◆ initialize()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IBattle PokemonUnity.Combat.Battle.initialize (IScene scene,
IPokemon[] p1,
IPokemon[] p2,
ITrainer[] player,
ITrainer[] opponent,
int maxBattlers = 4  )
+
- -

◆ pbIsDoubleBattler()

+ +

◆ IsDoubleBattler()

- + @@ -2565,18 +2575,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbIsDoubleBattler bool PokemonUnity.Combat.Battle.IsDoubleBattler ( int  index)
- -

◆ pbIsOpposing()

+ +

◆ IsOpposing()

- + @@ -2585,18 +2595,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbIsOpposing bool PokemonUnity.Combat.Battle.IsOpposing ( int  index)
- -

◆ pbIsOwner()

+ +

◆ IsOwner()

- + @@ -2610,18 +2620,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbIsOwner bool PokemonUnity.Combat.Battle.IsOwner ( int  battlerIndex,
- -

◆ pbIsUnlosableItem()

+ +

◆ IsUnlosableItem()

- + @@ -2645,12 +2655,12 @@ Properties
Returns
-

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

- -

◆ pbItemMenu()

+ +

◆ ItemMenu()

@@ -2659,7 +2669,7 @@ Properties
bool PokemonUnity.Combat.Battle.pbIsUnlosableItem bool PokemonUnity.Combat.Battle.IsUnlosableItem ( IBattler  pkmn,
- + @@ -2673,18 +2683,18 @@ Properties
virtual KeyValuePair<Items, int?> PokemonUnity.Combat.Battle.pbItemMenu virtual KeyValuePair<Items, int?> PokemonUnity.Combat.Battle.ItemMenu ( int  i)
- -

◆ pbJudge()

+ +

◆ Judge()

- + @@ -2692,12 +2702,12 @@ Properties
void PokemonUnity.Combat.Battle.pbJudge void PokemonUnity.Combat.Battle.Judge ( )
- -

◆ pbJudgeCheckpoint()

+ +

◆ JudgeCheckpoint()

@@ -2706,7 +2716,7 @@ Properties
- + @@ -2725,18 +2735,18 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbJudgeCheckpoint virtual void PokemonUnity.Combat.Battle.JudgeCheckpoint ( IBattler  attacker,
- -

◆ pbLearnMove()

+ +

◆ LearnMove()

- + @@ -2750,18 +2760,18 @@ Properties
void PokemonUnity.Combat.Battle.pbLearnMove void PokemonUnity.Combat.Battle.LearnMove ( int  pkmnIndex,
- -

◆ pbMaxLevel()

+ +

◆ MaxLevel()

- + @@ -2770,18 +2780,18 @@ Properties
int PokemonUnity.Combat.Battle.pbMaxLevel int PokemonUnity.Combat.Battle.MaxLevel ( IPokemon[]  party)
- -

◆ pbMaxLevelFromIndex()

+ +

◆ MaxLevelFromIndex()

- + @@ -2790,18 +2800,18 @@ Properties
int PokemonUnity.Combat.Battle.pbMaxLevelFromIndex int PokemonUnity.Combat.Battle.MaxLevelFromIndex ( int  index)
- -

◆ pbMegaEvolve()

+ +

◆ MegaEvolve()

- + @@ -2810,18 +2820,18 @@ Properties
void PokemonUnity.Combat.Battle.pbMegaEvolve void PokemonUnity.Combat.Battle.MegaEvolve ( int  index)
- -

◆ pbMessagesOnReplace()

+ +

◆ MessagesOnReplace()

- + @@ -2841,12 +2851,12 @@ Properties
void PokemonUnity.Combat.Battle.pbMessagesOnReplace void PokemonUnity.Combat.Battle.MessagesOnReplace ( int  index,
- -

◆ pbOnActiveAll()

+ +

◆ OnActiveAll()

@@ -2855,7 +2865,7 @@ Properties
- + @@ -2868,14 +2878,14 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbOnActiveAll virtual void PokemonUnity.Combat.Battle.OnActiveAll ( )
- -

◆ pbOnActiveOne()

+ +

◆ OnActiveOne()

@@ -2884,7 +2894,7 @@ Properties
- + @@ -2909,20 +2919,20 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbOnActiveOne virtual bool PokemonUnity.Combat.Battle.OnActiveOne ( IBattler  pkmn,
- -

◆ pbOpposingParty()

+ +

◆ OpposingParty()

- + @@ -2931,18 +2941,18 @@ Properties
IPokemon[] PokemonUnity.Combat.Battle.pbOpposingParty IPokemon[] PokemonUnity.Combat.Battle.OpposingParty ( int  index)
- -

◆ pbOwnedByPlayer()

+ +

◆ OwnedByPlayer()

- + @@ -2951,18 +2961,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbOwnedByPlayer bool PokemonUnity.Combat.Battle.OwnedByPlayer ( int  index)
- -

◆ pbParty()

+ +

◆ Party()

- + @@ -2980,18 +2990,18 @@ Properties
Returns
-

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

- -

◆ pbPartyGetOwner()

+ +

◆ PartyGetOwner()

IPokemon[] PokemonUnity.Combat.Battle.pbParty IPokemon[] PokemonUnity.Combat.Battle.Party ( int  index)
- + @@ -3005,18 +3015,18 @@ Properties
ITrainer PokemonUnity.Combat.Battle.pbPartyGetOwner ITrainer PokemonUnity.Combat.Battle.PartyGetOwner ( int  battlerIndex,
- -

◆ pbPartyLength()

+ +

◆ PartyLength()

- + @@ -3025,18 +3035,18 @@ Properties
int PokemonUnity.Combat.Battle.pbPartyLength int PokemonUnity.Combat.Battle.PartyLength ( int  battlerIndex)
- -

◆ pbPlayer()

+ +

◆ Player()

- + @@ -3044,18 +3054,18 @@ Properties
ITrainer PokemonUnity.Combat.Battle.pbPlayer ITrainer PokemonUnity.Combat.Battle.Player ( )
- -

◆ pbPokemonCount()

+ +

◆ PokemonCount()

- + @@ -3064,18 +3074,18 @@ Properties
int PokemonUnity.Combat.Battle.pbPokemonCount int PokemonUnity.Combat.Battle.PokemonCount ( IPokemon[]  party)
- -

◆ pbPrimalReversion()

+ +

◆ PrimalReversion()

- + @@ -3084,18 +3094,18 @@ Properties
void PokemonUnity.Combat.Battle.pbPrimalReversion void PokemonUnity.Combat.Battle.PrimalReversion ( int  index)
- -

◆ pbPrimordialWeather()

+ +

◆ PrimordialWeather()

- + @@ -3103,18 +3113,18 @@ Properties
void PokemonUnity.Combat.Battle.pbPrimordialWeather void PokemonUnity.Combat.Battle.PrimordialWeather ( )
- -

◆ pbPriority()

+ +

◆ Priority()

- + @@ -3128,12 +3138,12 @@ Properties
IBattler[] PokemonUnity.Combat.Battle.pbPriority IBattler[] PokemonUnity.Combat.Battle.Priority ( bool  ignorequickclaw = false,
- -

◆ pbRandom()

+ +

◆ Random()

@@ -3142,7 +3152,7 @@ Properties
- + @@ -3156,20 +3166,20 @@ Properties
virtual int PokemonUnity.Combat.Battle.pbRandom virtual int PokemonUnity.Combat.Battle.Random ( int  index)
- -

◆ pbRecallAndReplace()

+ +

◆ RecallAndReplace()

- + @@ -3201,18 +3211,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbRecallAndReplace bool PokemonUnity.Combat.Battle.RecallAndReplace ( int  index,
- -

◆ pbRegisterItem()

+ +

◆ RegisterItem()

- + @@ -3232,18 +3242,18 @@ Properties
bool PokemonUnity.Combat.Battle.pbRegisterItem bool PokemonUnity.Combat.Battle.RegisterItem ( int  idxPokemon,
- -

◆ pbRegisterMegaEvolution()

+ +

◆ RegisterMegaEvolution()

- + @@ -3252,12 +3262,12 @@ Properties
void PokemonUnity.Combat.Battle.pbRegisterMegaEvolution void PokemonUnity.Combat.Battle.RegisterMegaEvolution ( int  index)
- -

◆ pbRegisterMove()

+ +

◆ RegisterMove()

@@ -3266,7 +3276,7 @@ Properties
- + @@ -3291,14 +3301,14 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbRegisterMove virtual bool PokemonUnity.Combat.Battle.RegisterMove ( int  idxPokemon,
- -

◆ pbRegisterSwitch()

+ +

◆ RegisterSwitch()

@@ -3307,7 +3317,7 @@ Properties
- + @@ -3326,14 +3336,14 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbRegisterSwitch virtual bool PokemonUnity.Combat.Battle.RegisterSwitch ( int  idxPokemon,
- -

◆ pbRegisterTarget()

+ +

◆ RegisterTarget()

@@ -3342,7 +3352,7 @@ Properties
- + @@ -3361,20 +3371,20 @@ Properties
virtual bool PokemonUnity.Combat.Battle.pbRegisterTarget virtual bool PokemonUnity.Combat.Battle.RegisterTarget ( int  idxPokemon,
- -

◆ pbRemoveFromParty()

+ +

◆ RemoveFromParty()

- + @@ -3388,18 +3398,18 @@ Properties
void PokemonUnity.Combat.Battle.pbRemoveFromParty void PokemonUnity.Combat.Battle.RemoveFromParty ( int  battlerIndex,
- -

◆ pbReplace()

+ +

◆ Replace()

- + @@ -3419,18 +3429,18 @@ Properties
void PokemonUnity.Combat.Battle.pbReplace void PokemonUnity.Combat.Battle.Replace ( int  index,
- -

◆ pbRoughAccuracy()

+ +

◆ RoughAccuracy()

- + @@ -3456,18 +3466,18 @@ Properties
int PokemonUnity.Combat.Battle.pbRoughAccuracy int PokemonUnity.Combat.Battle.RoughAccuracy ( IBattleMove  move,
- -

◆ pbRoughDamage()

+ +

◆ RoughDamage()

- + @@ -3499,18 +3509,18 @@ Properties
int PokemonUnity.Combat.Battle.pbRoughDamage int PokemonUnity.Combat.Battle.RoughDamage ( IBattleMove  move,
- -

◆ pbRoughStat()

+ +

◆ RoughStat()

- + @@ -3530,12 +3540,12 @@ Properties
int PokemonUnity.Combat.Battle.pbRoughStat int PokemonUnity.Combat.Battle.RoughStat ( IBattler  battler,
- -

◆ pbRun()

+ +

◆ Run()

@@ -3544,7 +3554,7 @@ Properties
- + @@ -3573,20 +3583,20 @@ Properties
Returns
1 = success; -1 = failed
-

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

-

Reimplemented in PokemonUnity.Combat.PokeBattle_RecordedBattleModule< out IBattle >.

+

Reimplemented in PokemonUnity.Combat.PokeBattle_RecordedBattleModule< TBattle >.

- -

◆ pbSecondPartyBegin()

+ +

◆ SecondPartyBegin()

virtual int PokemonUnity.Combat.Battle.pbRun virtual int PokemonUnity.Combat.Battle.Run ( int  idxPokemon,
- + @@ -3595,18 +3605,18 @@ Properties
int PokemonUnity.Combat.Battle.pbSecondPartyBegin int PokemonUnity.Combat.Battle.SecondPartyBegin ( int  battlerIndex)
- -

◆ pbSendOut()

+ +

◆ SendOut()

- + @@ -3620,16 +3630,18 @@ Properties
void PokemonUnity.Combat.Battle.pbSendOut void PokemonUnity.Combat.Battle.SendOut ( int  index,
- -

◆ pbSetSeen()

+ +

◆ SetSeen()

- + @@ -3638,18 +3650,18 @@ Properties
void PokemonUnity.Combat.Battle.pbSetSeen void PokemonUnity.Combat.Battle.SetSeen ( IPokemon  pokemon)
- -

◆ pbShowCommands() [1/2]

+ +

◆ ShowCommands() [1/2]

- + @@ -3669,18 +3681,18 @@ Properties
void PokemonUnity.Combat.Battle.pbShowCommands void PokemonUnity.Combat.Battle.ShowCommands ( string  msg,
- -

◆ pbShowCommands() [2/2]

+ +

◆ ShowCommands() [2/2]

- + @@ -3702,8 +3714,8 @@ Properties - -

◆ pbStartBattle()

+ +

◆ StartBattle()

@@ -3712,7 +3724,7 @@ Properties
+get
void PokemonUnity.Combat.Battle.pbShowCommands void PokemonUnity.Combat.Battle.ShowCommands ( string  msg,
- + @@ -3726,20 +3738,20 @@ Properties
virtual BattleResults PokemonUnity.Combat.Battle.pbStartBattle virtual BattleResults PokemonUnity.Combat.Battle.StartBattle ( bool  canlose = false)
- -

◆ pbStartBattleCore()

+ +

◆ StartBattleCore()

- + @@ -3748,18 +3760,18 @@ Properties
void PokemonUnity.Combat.Battle.pbStartBattleCore void PokemonUnity.Combat.Battle.StartBattleCore ( bool  canlose)
- -

◆ pbStdDev()

+ +

◆ StdDev()

- + @@ -3768,12 +3780,12 @@ Properties
int PokemonUnity.Combat.Battle.pbStdDev int PokemonUnity.Combat.Battle.StdDev ( int[]  scores)
- -

◆ pbStorePokemon()

+ +

◆ StorePokemon()

@@ -3782,7 +3794,7 @@ Properties
- + @@ -3797,14 +3809,14 @@ Properties - -

◆ pbSwitch()

+ +

◆ Switch()

@@ -3813,7 +3825,7 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbStorePokemon virtual void PokemonUnity.Combat.Battle.StorePokemon ( IPokemon  pokemon)
- + @@ -3827,14 +3839,14 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbSwitch virtual void PokemonUnity.Combat.Battle.Switch ( bool  favorDraws = false)
- -

◆ pbSwitchInBetween()

+ +

◆ SwitchInBetween()

@@ -3843,7 +3855,7 @@ Properties
- + @@ -3868,20 +3880,20 @@ Properties
virtual int PokemonUnity.Combat.Battle.pbSwitchInBetween virtual int PokemonUnity.Combat.Battle.SwitchInBetween ( int  index,
- -

◆ pbSwitchPlayer()

+ +

◆ SwitchPlayer()

- + @@ -3901,12 +3913,12 @@ Properties
int PokemonUnity.Combat.Battle.pbSwitchPlayer int PokemonUnity.Combat.Battle.SwitchPlayer ( int  index,
- -

◆ pbThrowPokeball()

+ +

◆ ThrowPokeball()

@@ -3915,7 +3927,7 @@ Properties
- + @@ -3946,16 +3958,53 @@ Properties
virtual void PokemonUnity.Combat.Battle.pbThrowPokeball virtual void PokemonUnity.Combat.Battle.ThrowPokeball ( int  idxPokemon,
+ + +

◆ ToString()

+ +
+
+ + + + + + + + + + + + + +
string PokemonUnity.Combat.Battle.ToString (int battlerindex,
int pokemonindex  )
+
+ +

Only used for Wish

+
Parameters
+ + + +
battlerindex
pokemonindex
+
+
+
Returns
+ +

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+
- -

◆ pbTypeModifier()

+ +

◆ TypeModifier()

- + @@ -3975,18 +4024,18 @@ Properties
float PokemonUnity.Combat.Battle.pbTypeModifier float PokemonUnity.Combat.Battle.TypeModifier ( Types  type,
- -

◆ pbTypeModifier2()

+ +

◆ TypeModifier2()

- + @@ -4000,18 +4049,18 @@ Properties
float PokemonUnity.Combat.Battle.pbTypeModifier2 float PokemonUnity.Combat.Battle.TypeModifier2 ( IBattler  battlerThis,
- -

◆ pbUseItemOnBattler()

+ +

◆ UseItemOnBattler()

- + @@ -4031,125 +4080,255 @@ Properties - + + + +
bool PokemonUnity.Combat.Battle.pbUseItemOnBattler bool PokemonUnity.Combat.Battle.UseItemOnBattler ( Items  item,
IHasDisplayMessage IHasDisplayMessage scene  )
+
+ +

Uses an item on an active Pokémon.

+
Parameters
+ + + + + +
item
index
userPkmn
scene
+
+
+
Returns
+ +

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+ +
+
+ +

◆ UseItemOnPokemon()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + +
bool PokemonUnity.Combat.Battle.UseItemOnPokemon (Items item,
int pkmnIndex,
IBattler userPkmn,
IHasDisplayMessage  scene  )
-

Uses an item on an active Pokémon.

-
Parameters
- - - - - -
item
index
userPkmn
scene
-
-
-
Returns
- +

Uses an item on a Pokémon in the player's party.

+
Parameters
+ + + + + +
item
pkmnIndex
userPkmn
scene
+
+
+
Returns
+

Specifically for Shadow Pokemon Usage

+ +

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+ +
+
+

Member Data Documentation

+ +

◆ _battlers

+ +
+
+ + + + + +
+ + + + +
IBattler [] PokemonUnity.Combat.Battle._battlers
+
+protected
+
+ +
+
+ +

◆ _priority

+ +
+
+ + + + + +
+ + + + +
IBattler [] PokemonUnity.Combat.Battle._priority
+
+protected
+
+ +
+
+ +

◆ controlPlayer

+ +
+
+ + + + + +
+ + + + +
bool PokemonUnity.Combat.Battle.controlPlayer
+
+protected
+
+ +
+
+ +

◆ peer

+ +
+
+ + + + + +
+ + + + +
IBattlePeer PokemonUnity.Combat.Battle.peer
+
+protected
+
+ +
+
+ +

◆ pickupUse

+ +
+
+ + + + + +
+ + + + +
int PokemonUnity.Combat.Battle.pickupUse
+
+protected
+
+
- -

◆ pbUseItemOnPokemon()

+ +

◆ runCommand

+ + + + + +
- - - - - - - - - - - - - - - - - - - - - - +
bool PokemonUnity.Combat.Battle.pbUseItemOnPokemon (Items item,
int pkmnIndex,
IBattler userPkmn,
IHasDisplayMessage scene  )int PokemonUnity.Combat.Battle.runCommand
+
+protected
-

Uses an item on a Pokémon in the player's party.

-
Parameters
- - - - - -
item
pkmnIndex
userPkmn
scene
-
-
-
Returns
-

Specifically for Shadow Pokemon Usage

+

Each time you use the option to flee, the counter goes up.

- -

◆ PokemonCount()

+ +

◆ snaggedpokemon

+ + + + + +
- - - - - +
int PokemonUnity.Combat.Battle.PokemonCount (IPokemon[] party)List<int> PokemonUnity.Combat.Battle.snaggedpokemon
+
+protected
- -

◆ ToString()

+ +

◆ usepriority

+ + + + + +
- - - - - - - - - - +
string PokemonUnity.Combat.Battle.ToString (int battlerindex,
int pokemonindex  )bool PokemonUnity.Combat.Battle.usepriority
+
+protected
-

Only used for Wish

-
Parameters
- - - -
battlerindex
pokemonindex
-
-
-
Returns
- -

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

-

Property Documentation

@@ -4194,7 +4373,7 @@ Properties
-getprotected set
@@ -4246,7 +4425,7 @@ Properties
-get
@@ -4306,30 +4485,6 @@ Properties
- - - - -
- - - - -
bool PokemonUnity.Combat.Battle.controlPlayer
-
-getset
- @@ -4629,13 +4784,13 @@ Properties
-get +getprotected set

Effects common to the whole of a battle

-

public List<FieldEffects> field { get; private set; }

+

public List<FieldEffects> field { get; protected set; }

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

@@ -4708,7 +4863,7 @@ Properties -get +getprotected set
@@ -4740,7 +4895,7 @@ Properties

Internal battle flag

-

battle occured without any frontend or ui output (most likely on backend for ai vs ai training)

+

battle occurred without any frontend or UI output (most likely on backend for AI vs AI training)

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

@@ -4839,7 +4994,7 @@ Properties -get +getprotected set
@@ -5006,52 +5161,6 @@ Properties

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

-
-
- -

◆ pbWeather

- -
-
- - - - - -
- - - - -
Weather PokemonUnity.Combat.Battle.pbWeather
-
-get
-
-
- -

◆ peer

- -
-
- - - - - -
- - - - -
IBattlePeer PokemonUnity.Combat.Battle.peer
-
-getset
-
-
@@ -5095,7 +5204,7 @@ Properties -getprotected set +getprotected
@@ -5117,7 +5226,7 @@ Properties -get +getprotected set
@@ -5126,30 +5235,6 @@ Properties

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

-
- - -

◆ runCommand

- -
-
- - - - - -
- - - - -
int PokemonUnity.Combat.Battle.runCommand
-
-get
-
- -

Each time you use the option to flee, the counter goes up.

-
@@ -5162,7 +5247,7 @@ Properties - +
IScene PokemonUnity.Combat.Battle.sceneIScene PokemonUnity.Combat.Battle.scene
@@ -5219,38 +5304,16 @@ Properties -get +getprotected set

Effects common to each side of a battle

-

public List<SideEffects> sides { get; private set; }

+

public List<SideEffects> sides { get; protected set; }

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

-
- - -

◆ snaggedpokemon

- -
-
- - - - - -
- - - - -
List<int> PokemonUnity.Combat.Battle.snaggedpokemon
-
-get
-
-
@@ -5268,13 +5331,13 @@ Properties -get +getprotected set

The Struggle move

-

Execute whaatever move/function is stored in this variable

+

Execute whatever move/function is stored in this variable

Func<PokeBattle>

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

@@ -5296,7 +5359,7 @@ Properties -get +getprotected set
@@ -5322,7 +5385,7 @@ Properties -get +getprotected set
@@ -5359,8 +5422,8 @@ Properties
- -

◆ usepriority

+ +

◆ weather

@@ -5369,7 +5432,7 @@ Properties - +
bool PokemonUnity.Combat.Battle.usepriorityWeather PokemonUnity.Combat.Battle.weather
@@ -5379,10 +5442,14 @@ Properties
+

Current weather, custom methods should use Weather instead

+ +

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+
- -

◆ weather

+ +

◆ Weather

@@ -5391,19 +5458,17 @@ Properties - +
Weather PokemonUnity.Combat.Battle.weathervirtual Weather PokemonUnity.Combat.Battle.Weather
-getset +get
-

Current weather, custom methods should use pbWeather instead

- -

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

+

Implements PokemonEssentials.Interface.PokeBattle.IBattle.

@@ -5439,3 +5504,4 @@ Properties
  • PokemonUnity.Application/Combat/Pokemon/Pokemon.Shadow.cs
  • PokemonUnity.Application/Combat/Rules.cs
  • + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle.png index 350fb568f..3c7af1ef0 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle_aborted_exception-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle_aborted_exception-members.cshtml index 832ecc9b6..bfa24f4ec 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle_aborted_exception-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle_aborted_exception-members.cshtml @@ -17,4 +17,4 @@

    This is the complete list of members for PokemonUnity.Combat.BattleAbortedException, including all inherited members.

    -
    BattleAbortedException(string message)PokemonUnity.Combat.BattleAbortedException
    \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle_aborted_exception.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle_aborted_exception.cshtml index 62c58c60d..a0c82dae9 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle_aborted_exception.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_battle_aborted_exception.cshtml @@ -50,3 +50,4 @@ Public Member Functions
    The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_damage_state-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_damage_state-members.cshtml index 654a095e2..34c9b8504 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_damage_state-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_damage_state-members.cshtml @@ -28,4 +28,4 @@ SturdyPokemonUnity.Combat.Data.DamageState SubstitutePokemonUnity.Combat.Data.DamageState TypeModPokemonUnity.Combat.Data.DamageState - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_damage_state.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_damage_state.cshtml index 4121495e4..5c2da8dbb 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_damage_state.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_damage_state.cshtml @@ -395,3 +395,4 @@ Properties
    The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_success_state-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_success_state-members.cshtml index 987471858..8a48c816b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_success_state-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_success_state-members.cshtml @@ -24,4 +24,4 @@ TypeModPokemonUnity.Combat.Data.SuccessState UpdateSkill()PokemonUnity.Combat.Data.SuccessState UseStatePokemonUnity.Combat.Data.SuccessState - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_success_state.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_success_state.cshtml index e7bb339bd..619ac1d1d 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_success_state.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_data_1_1_success_state.cshtml @@ -252,3 +252,4 @@ Properties
    The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects.cshtml index a02561d57..4b6ceadab 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects.cshtml @@ -34,3 +34,4 @@ Classes
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Effects/Battler.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_battler-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_battler-members.cshtml index 845036a66..f2db5d8f0 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_battler-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_battler-members.cshtml @@ -128,4 +128,4 @@ WishAmountPokemonUnity.Combat.Effects.Battler WishMakerPokemonUnity.Combat.Effects.Battler YawnPokemonUnity.Combat.Effects.Battler - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_battler.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_battler.cshtml index de004bb74..0636de686 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_battler.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_battler.cshtml @@ -3176,3 +3176,4 @@ Properties
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Effects/Battler.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_field-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_field-members.cshtml index 0daed9605..15f4b23fa 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_field-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_field-members.cshtml @@ -29,4 +29,4 @@ TrickRoomPokemonUnity.Combat.Effects.Field WaterSportFieldPokemonUnity.Combat.Effects.Field WonderRoomPokemonUnity.Combat.Effects.Field - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_field.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_field.cshtml index ef780da63..4e0edae43 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_field.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_field.cshtml @@ -403,3 +403,4 @@ Properties
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Effects/Field.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_move-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_move-members.cshtml index bcdbc40a8..377054b50 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_move-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_move-members.cshtml @@ -20,4 +20,4 @@ SkipAccuracyCheckPokemonUnity.Combat.Effects.Move SpecialUsagePokemonUnity.Combat.Effects.Move TotalDamagePokemonUnity.Combat.Effects.Move - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_move.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_move.cshtml index 1eccf5fc0..8f30b5d09 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_move.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_move.cshtml @@ -151,3 +151,4 @@ Properties
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Effects/Move.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_side-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_side-members.cshtml index 5ecb6cdd0..d8d716361 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_side-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_side-members.cshtml @@ -37,4 +37,4 @@ TailwindPokemonUnity.Combat.Effects.Side ToxicSpikesPokemonUnity.Combat.Effects.Side WideGuardPokemonUnity.Combat.Effects.Side - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_side.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_side.cshtml index 5d06ebfee..0b46b4a68 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_side.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_effects_1_1_side.cshtml @@ -627,3 +627,4 @@ Properties
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Effects/Side.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move-members.cshtml index acc4f6bb3..acbda8d50 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move-members.cshtml @@ -17,65 +17,66 @@

    This is the complete list of members for PokemonUnity.Combat.Move, including all inherited members.

    + + - - + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - - + + + + + - -
    AccuracyPokemonUnity.Combat.Move
    AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    AddlEffectPokemonUnity.Combat.Move
    battlePokemonUnity.Combat.Move
    CategoryPokemonUnity.Combat.Move
    AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    battlePokemonUnity.Combat.Move
    CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    CategoryPokemonUnity.Combat.Move
    Clone()PokemonUnity.Combat.Move
    CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    EffectPokemonUnity.Combat.Move
    FlagsPokemonUnity.Combat.Move
    hasHighCriticalRatePokemonUnity.Combat.Move
    ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    isHealingMove()PokemonUnity.Combat.Movevirtual
    isRecoilMove()PokemonUnity.Combat.Movevirtual
    EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    FlagsPokemonUnity.Combat.Move
    FromMove(IBattle battle, IMove move)PokemonUnity.Combat.Movestatic
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    hasHighCriticalRatePokemonUnity.Combat.Move
    ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    IsDamaging()PokemonUnity.Combat.Movevirtual
    isHealingMove()PokemonUnity.Combat.Movevirtual
    IsMultiHit()PokemonUnity.Combat.Movevirtual
    IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    isRecoilMove()PokemonUnity.Combat.Movevirtual
    IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    IsStatusPokemonUnity.Combat.Move
    ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    NamePokemonUnity.Combat.Move
    pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    pbFromPBMove(IBattle battle, IMove move)PokemonUnity.Combat.Movestatic
    pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbIsDamaging()PokemonUnity.Combat.Movevirtual
    pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    pbIsStatusPokemonUnity.Combat.Move
    pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    MoveIdPokemonUnity.Combat.Move
    NamePokemonUnity.Combat.Move
    NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PPPokemonUnity.Combat.Move
    PriorityPokemonUnity.Combat.Move
    ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    successCheckPerHit()PokemonUnity.Combat.Movevirtual
    TargetPokemonUnity.Combat.Move
    thismovePokemonUnity.Combat.Move
    TotalPPPokemonUnity.Combat.Move
    tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    thismovePokemonUnity.Combat.Move
    TotalPPPokemonUnity.Combat.Move
    tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    TypePokemonUnity.Combat.Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move.cshtml index 1ae116dd9..8dea69eb7 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move.cshtml @@ -35,9 +35,9 @@ Inheritance diagram for PokemonUnity.Combat.Move: PokemonUnity.Combat.PokeBattle_Move_003 PokemonUnity.Combat.PokeBattle_Move_004 PokemonUnity.Combat.PokeBattle_Move_005 -PokemonUnity.Combat.PokeBattle_Move_006 +PokemonUnity.Combat.PokeBattle_Move_006 PokemonUnity.Combat.PokeBattle_Move_007 -PokemonUnity.Combat.PokeBattle_Move_008 +PokemonUnity.Combat.PokeBattle_Move_008 PokemonUnity.Combat.PokeBattle_Move_009 PokemonUnity.Combat.PokeBattle_Move_00A PokemonUnity.Combat.PokeBattle_Move_00B @@ -50,7 +50,7 @@ Inheritance diagram for PokemonUnity.Combat.Move: PokemonUnity.Combat.PokeBattle_Move_012 PokemonUnity.Combat.PokeBattle_Move_013 PokemonUnity.Combat.PokeBattle_Move_014 -PokemonUnity.Combat.PokeBattle_Move_015 +PokemonUnity.Combat.PokeBattle_Move_015 PokemonUnity.Combat.PokeBattle_Move_016 PokemonUnity.Combat.PokeBattle_Move_017 PokemonUnity.Combat.PokeBattle_Move_018 @@ -146,9 +146,9 @@ Inheritance diagram for PokemonUnity.Combat.Move: PokemonUnity.Combat.PokeBattle_Move_072 PokemonUnity.Combat.PokeBattle_Move_073 PokemonUnity.Combat.PokeBattle_Move_074 -PokemonUnity.Combat.PokeBattle_Move_075 +PokemonUnity.Combat.PokeBattle_Move_075 PokemonUnity.Combat.PokeBattle_Move_076 -PokemonUnity.Combat.PokeBattle_Move_077 +PokemonUnity.Combat.PokeBattle_Move_077 PokemonUnity.Combat.PokeBattle_Move_078 PokemonUnity.Combat.PokeBattle_Move_079 PokemonUnity.Combat.PokeBattle_Move_07A @@ -230,12 +230,12 @@ Inheritance diagram for PokemonUnity.Combat.Move: PokemonUnity.Combat.PokeBattle_Move_0C6 PokemonUnity.Combat.PokeBattle_Move_0C7 PokemonUnity.Combat.PokeBattle_Move_0C8 -PokemonUnity.Combat.PokeBattle_Move_0C9 -PokemonUnity.Combat.PokeBattle_Move_0CA -PokemonUnity.Combat.PokeBattle_Move_0CB +PokemonUnity.Combat.PokeBattle_Move_0C9 +PokemonUnity.Combat.PokeBattle_Move_0CA +PokemonUnity.Combat.PokeBattle_Move_0CB PokemonUnity.Combat.PokeBattle_Move_0CC PokemonUnity.Combat.PokeBattle_Move_0CD -PokemonUnity.Combat.PokeBattle_Move_0CE +PokemonUnity.Combat.PokeBattle_Move_0CE PokemonUnity.Combat.PokeBattle_Move_0CF PokemonUnity.Combat.PokeBattle_Move_0D0 PokemonUnity.Combat.PokeBattle_Move_0D1 @@ -251,7 +251,7 @@ Inheritance diagram for PokemonUnity.Combat.Move: PokemonUnity.Combat.PokeBattle_Move_0DB PokemonUnity.Combat.PokeBattle_Move_0DC PokemonUnity.Combat.PokeBattle_Move_0DD -PokemonUnity.Combat.PokeBattle_Move_0DE +PokemonUnity.Combat.PokeBattle_Move_0DE PokemonUnity.Combat.PokeBattle_Move_0DF PokemonUnity.Combat.PokeBattle_Move_0E0 PokemonUnity.Combat.PokeBattle_Move_0E1 @@ -313,7 +313,7 @@ Inheritance diagram for PokemonUnity.Combat.Move: PokemonUnity.Combat.PokeBattle_Move_119 PokemonUnity.Combat.PokeBattle_Move_11A PokemonUnity.Combat.PokeBattle_Move_11B -PokemonUnity.Combat.PokeBattle_Move_11C +PokemonUnity.Combat.PokeBattle_Move_11C PokemonUnity.Combat.PokeBattle_Move_11D PokemonUnity.Combat.PokeBattle_Move_11E PokemonUnity.Combat.PokeBattle_Move_11F @@ -330,7 +330,7 @@ Inheritance diagram for PokemonUnity.Combat.Move: PokemonUnity.Combat.PokeBattle_Move_132 PokemonUnity.Combat.PokeBattle_Move_133 PokemonUnity.Combat.PokeBattle_Move_134 -PokemonUnity.Combat.PokeBattle_Move_135 +PokemonUnity.Combat.PokeBattle_Move_135 PokemonUnity.Combat.PokeBattle_Move_137 PokemonUnity.Combat.PokeBattle_Move_138 PokemonUnity.Combat.PokeBattle_Move_139 @@ -378,31 +378,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -416,56 +416,58 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - - - + + +

    Static Public Member Functions

    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    @@ -503,8 +505,8 @@ Properties - - + + @@ -553,8 +555,8 @@ Properties

    Member Function Documentation

    - -

    ◆ ignoresSubstitute()

    + +

    ◆ AccuracyCheck()

    @@ -563,11 +565,16 @@ Properties
    @@ -577,10 +584,12 @@ Properties

    Properties

     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
    - + - + + + + + +
    virtual bool PokemonUnity.Combat.Move.ignoresSubstitute virtual bool PokemonUnity.Combat.Move.AccuracyCheck ( IBattler attacker)attacker,
    IBattler opponent  )
    - -

    ◆ Initialize()

    + +

    ◆ AdditionalEffect()

    @@ -589,16 +598,16 @@ Properties - + - - + + - - + +
    virtual IBattleMove PokemonUnity.Combat.Move.Initialize virtual void PokemonUnity.Combat.Move.AdditionalEffect (IBattle battle, IBattler attacker,
    IMove move  )IBattler opponent  )
    @@ -608,12 +617,12 @@ Properties
    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Confusion, and PokemonUnity.Combat.PokeBattle_Struggle.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_003, PokemonUnity.Combat.PokeBattle_Move_005, PokemonUnity.Combat.PokeBattle_Move_006, PokemonUnity.Combat.PokeBattle_Move_007, PokemonUnity.Combat.PokeBattle_Move_008, PokemonUnity.Combat.PokeBattle_Move_009, PokemonUnity.Combat.PokeBattle_Move_00A, PokemonUnity.Combat.PokeBattle_Move_00B, PokemonUnity.Combat.PokeBattle_Move_00C, PokemonUnity.Combat.PokeBattle_Move_00D, PokemonUnity.Combat.PokeBattle_Move_00E, PokemonUnity.Combat.PokeBattle_Move_00F, PokemonUnity.Combat.PokeBattle_Move_010, PokemonUnity.Combat.PokeBattle_Move_011, PokemonUnity.Combat.PokeBattle_Move_012, PokemonUnity.Combat.PokeBattle_Move_013, PokemonUnity.Combat.PokeBattle_Move_014, PokemonUnity.Combat.PokeBattle_Move_015, PokemonUnity.Combat.PokeBattle_Move_017, PokemonUnity.Combat.PokeBattle_Move_01C, PokemonUnity.Combat.PokeBattle_Move_01D, PokemonUnity.Combat.PokeBattle_Move_01F, PokemonUnity.Combat.PokeBattle_Move_020, PokemonUnity.Combat.PokeBattle_Move_022, PokemonUnity.Combat.PokeBattle_Move_023, PokemonUnity.Combat.PokeBattle_Move_02D, PokemonUnity.Combat.PokeBattle_Move_02E, PokemonUnity.Combat.PokeBattle_Move_02F, PokemonUnity.Combat.PokeBattle_Move_030, PokemonUnity.Combat.PokeBattle_Move_032, PokemonUnity.Combat.PokeBattle_Move_033, PokemonUnity.Combat.PokeBattle_Move_034, PokemonUnity.Combat.PokeBattle_Move_038, PokemonUnity.Combat.PokeBattle_Move_039, PokemonUnity.Combat.PokeBattle_Move_042, PokemonUnity.Combat.PokeBattle_Move_043, PokemonUnity.Combat.PokeBattle_Move_044, PokemonUnity.Combat.PokeBattle_Move_045, PokemonUnity.Combat.PokeBattle_Move_046, PokemonUnity.Combat.PokeBattle_Move_047, PokemonUnity.Combat.PokeBattle_Move_048, PokemonUnity.Combat.PokeBattle_Move_049, PokemonUnity.Combat.PokeBattle_Move_04B, PokemonUnity.Combat.PokeBattle_Move_04C, PokemonUnity.Combat.PokeBattle_Move_04D, PokemonUnity.Combat.PokeBattle_Move_04E, PokemonUnity.Combat.PokeBattle_Move_04F, PokemonUnity.Combat.PokeBattle_Move_078, PokemonUnity.Combat.PokeBattle_Move_0A4, PokemonUnity.Combat.PokeBattle_Move_0BE, PokemonUnity.Combat.PokeBattle_Move_0C5, PokemonUnity.Combat.PokeBattle_Move_0C6, PokemonUnity.Combat.PokeBattle_Move_0C7, PokemonUnity.Combat.PokeBattle_Move_0CC, PokemonUnity.Combat.PokeBattle_Move_0FD, PokemonUnity.Combat.PokeBattle_Move_0FE, PokemonUnity.Combat.PokeBattle_Move_135, PokemonUnity.Combat.PokeBattle_Move_13B, and PokemonUnity.Combat.PokeBattle_Move_13D.

    - -

    ◆ isHealingMove()

    + +

    ◆ AddTarget()

    - -

    ◆ isRecoilMove()

    + +

    ◆ BaseDamage()

    @@ -649,10 +664,22 @@ Properties - + - + + + + + + + + + + + + +
    virtual bool PokemonUnity.Combat.Move.isRecoilMove virtual int PokemonUnity.Combat.Move.BaseDamage ()int basedmg,
    IBattler attacker,
    IBattler opponent  )
    @@ -662,12 +689,12 @@ Properties
    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_0FA, PokemonUnity.Combat.PokeBattle_Move_0FB, PokemonUnity.Combat.PokeBattle_Move_0FC, PokemonUnity.Combat.PokeBattle_Move_0FD, PokemonUnity.Combat.PokeBattle_Move_0FE, and PokemonUnity.Combat.PokeBattle_Move_10B.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_077, PokemonUnity.Combat.PokeBattle_Move_078, PokemonUnity.Combat.PokeBattle_Move_07B, PokemonUnity.Combat.PokeBattle_Move_07C, PokemonUnity.Combat.PokeBattle_Move_07D, PokemonUnity.Combat.PokeBattle_Move_07E, PokemonUnity.Combat.PokeBattle_Move_07F, PokemonUnity.Combat.PokeBattle_Move_080, PokemonUnity.Combat.PokeBattle_Move_081, PokemonUnity.Combat.PokeBattle_Move_082, PokemonUnity.Combat.PokeBattle_Move_083, PokemonUnity.Combat.PokeBattle_Move_084, PokemonUnity.Combat.PokeBattle_Move_085, PokemonUnity.Combat.PokeBattle_Move_087, PokemonUnity.Combat.PokeBattle_Move_088, PokemonUnity.Combat.PokeBattle_Move_089, PokemonUnity.Combat.PokeBattle_Move_08A, PokemonUnity.Combat.PokeBattle_Move_08B, PokemonUnity.Combat.PokeBattle_Move_08C, PokemonUnity.Combat.PokeBattle_Move_08D, PokemonUnity.Combat.PokeBattle_Move_08E, PokemonUnity.Combat.PokeBattle_Move_08F, PokemonUnity.Combat.PokeBattle_Move_090, PokemonUnity.Combat.PokeBattle_Move_091, PokemonUnity.Combat.PokeBattle_Move_092, PokemonUnity.Combat.PokeBattle_Move_094, PokemonUnity.Combat.PokeBattle_Move_095, PokemonUnity.Combat.PokeBattle_Move_096, PokemonUnity.Combat.PokeBattle_Move_097, PokemonUnity.Combat.PokeBattle_Move_098, PokemonUnity.Combat.PokeBattle_Move_099, PokemonUnity.Combat.PokeBattle_Move_09A, PokemonUnity.Combat.PokeBattle_Move_09B, PokemonUnity.Combat.PokeBattle_Move_0BF, PokemonUnity.Combat.PokeBattle_Move_0C1, PokemonUnity.Combat.PokeBattle_Move_0D3, PokemonUnity.Combat.PokeBattle_Move_0F7, PokemonUnity.Combat.PokeBattle_Move_106, PokemonUnity.Combat.PokeBattle_Move_107, PokemonUnity.Combat.PokeBattle_Move_108, PokemonUnity.Combat.PokeBattle_Move_113, and PokemonUnity.Combat.PokeBattle_Move_11C.

    - -

    ◆ pbAccuracyCheck()

    + +

    ◆ BaseDamageMultiplier()

    @@ -676,8 +703,14 @@ Properties - + + + + + + + @@ -695,12 +728,10 @@ Properties
    virtual bool PokemonUnity.Combat.Move.pbAccuracyCheck virtual double PokemonUnity.Combat.Move.BaseDamageMultiplier (double damagemult,
    IBattler  attacker,
    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ CalcDamage()

    @@ -709,7 +740,7 @@ Properties - + @@ -718,7 +749,13 @@ Properties - + + + + + + +
    virtual void PokemonUnity.Combat.Move.pbAdditionalEffect virtual int PokemonUnity.Combat.Move.CalcDamage ( IBattler  attacker,
    IBattler opponent  )opponent,
    params byte[] options  )
    @@ -728,12 +765,10 @@ Properties
    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_003, PokemonUnity.Combat.PokeBattle_Move_005, PokemonUnity.Combat.PokeBattle_Move_006, PokemonUnity.Combat.PokeBattle_Move_007, PokemonUnity.Combat.PokeBattle_Move_008, PokemonUnity.Combat.PokeBattle_Move_009, PokemonUnity.Combat.PokeBattle_Move_00A, PokemonUnity.Combat.PokeBattle_Move_00B, PokemonUnity.Combat.PokeBattle_Move_00C, PokemonUnity.Combat.PokeBattle_Move_00D, PokemonUnity.Combat.PokeBattle_Move_00E, PokemonUnity.Combat.PokeBattle_Move_00F, PokemonUnity.Combat.PokeBattle_Move_010, PokemonUnity.Combat.PokeBattle_Move_011, PokemonUnity.Combat.PokeBattle_Move_012, PokemonUnity.Combat.PokeBattle_Move_013, PokemonUnity.Combat.PokeBattle_Move_014, PokemonUnity.Combat.PokeBattle_Move_015, PokemonUnity.Combat.PokeBattle_Move_017, PokemonUnity.Combat.PokeBattle_Move_01C, PokemonUnity.Combat.PokeBattle_Move_01D, PokemonUnity.Combat.PokeBattle_Move_01F, PokemonUnity.Combat.PokeBattle_Move_020, PokemonUnity.Combat.PokeBattle_Move_022, PokemonUnity.Combat.PokeBattle_Move_023, PokemonUnity.Combat.PokeBattle_Move_02D, PokemonUnity.Combat.PokeBattle_Move_02E, PokemonUnity.Combat.PokeBattle_Move_02F, PokemonUnity.Combat.PokeBattle_Move_030, PokemonUnity.Combat.PokeBattle_Move_032, PokemonUnity.Combat.PokeBattle_Move_033, PokemonUnity.Combat.PokeBattle_Move_034, PokemonUnity.Combat.PokeBattle_Move_038, PokemonUnity.Combat.PokeBattle_Move_039, PokemonUnity.Combat.PokeBattle_Move_042, PokemonUnity.Combat.PokeBattle_Move_043, PokemonUnity.Combat.PokeBattle_Move_044, PokemonUnity.Combat.PokeBattle_Move_045, PokemonUnity.Combat.PokeBattle_Move_046, PokemonUnity.Combat.PokeBattle_Move_047, PokemonUnity.Combat.PokeBattle_Move_048, PokemonUnity.Combat.PokeBattle_Move_049, PokemonUnity.Combat.PokeBattle_Move_04B, PokemonUnity.Combat.PokeBattle_Move_04C, PokemonUnity.Combat.PokeBattle_Move_04D, PokemonUnity.Combat.PokeBattle_Move_04E, PokemonUnity.Combat.PokeBattle_Move_04F, PokemonUnity.Combat.PokeBattle_Move_078, PokemonUnity.Combat.PokeBattle_Move_0A4, PokemonUnity.Combat.PokeBattle_Move_0BE, PokemonUnity.Combat.PokeBattle_Move_0C5, PokemonUnity.Combat.PokeBattle_Move_0C6, PokemonUnity.Combat.PokeBattle_Move_0C7, PokemonUnity.Combat.PokeBattle_Move_0CC, PokemonUnity.Combat.PokeBattle_Move_0FD, PokemonUnity.Combat.PokeBattle_Move_0FE, PokemonUnity.Combat.PokeBattle_Move_135, PokemonUnity.Combat.PokeBattle_Move_13B, and PokemonUnity.Combat.PokeBattle_Move_13D.

    -
    - -

    ◆ pbAddTarget()

    + +

    ◆ CanUseWhileAsleep()

    @@ -742,16 +777,10 @@ Properties - + - - - - - + - -
    virtual void PokemonUnity.Combat.Move.pbAddTarget virtual bool PokemonUnity.Combat.Move.CanUseWhileAsleep (IList<IBattlertargets,
    ) IBattler attacker  )
    @@ -761,12 +790,29 @@ Properties
    +
    + +

    ◆ Clone()

    + +
    +
    + + + + + + + +
    object PokemonUnity.Combat.Move.Clone ()
    +
    - -

    ◆ pbBaseDamage()

    + +

    ◆ CritialOverride()

    @@ -775,14 +821,8 @@ Properties - + - - - - - - @@ -800,12 +840,12 @@ Properties
    virtual int PokemonUnity.Combat.Move.pbBaseDamage virtual bool PokemonUnity.Combat.Move.CritialOverride (int basedmg,
    IBattler  attacker,
    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_077, PokemonUnity.Combat.PokeBattle_Move_078, PokemonUnity.Combat.PokeBattle_Move_07B, PokemonUnity.Combat.PokeBattle_Move_07C, PokemonUnity.Combat.PokeBattle_Move_07D, PokemonUnity.Combat.PokeBattle_Move_07E, PokemonUnity.Combat.PokeBattle_Move_07F, PokemonUnity.Combat.PokeBattle_Move_080, PokemonUnity.Combat.PokeBattle_Move_081, PokemonUnity.Combat.PokeBattle_Move_082, PokemonUnity.Combat.PokeBattle_Move_083, PokemonUnity.Combat.PokeBattle_Move_084, PokemonUnity.Combat.PokeBattle_Move_085, PokemonUnity.Combat.PokeBattle_Move_087, PokemonUnity.Combat.PokeBattle_Move_088, PokemonUnity.Combat.PokeBattle_Move_089, PokemonUnity.Combat.PokeBattle_Move_08A, PokemonUnity.Combat.PokeBattle_Move_08B, PokemonUnity.Combat.PokeBattle_Move_08C, PokemonUnity.Combat.PokeBattle_Move_08D, PokemonUnity.Combat.PokeBattle_Move_08E, PokemonUnity.Combat.PokeBattle_Move_08F, PokemonUnity.Combat.PokeBattle_Move_090, PokemonUnity.Combat.PokeBattle_Move_091, PokemonUnity.Combat.PokeBattle_Move_092, PokemonUnity.Combat.PokeBattle_Move_094, PokemonUnity.Combat.PokeBattle_Move_095, PokemonUnity.Combat.PokeBattle_Move_096, PokemonUnity.Combat.PokeBattle_Move_097, PokemonUnity.Combat.PokeBattle_Move_098, PokemonUnity.Combat.PokeBattle_Move_099, PokemonUnity.Combat.PokeBattle_Move_09A, PokemonUnity.Combat.PokeBattle_Move_09B, PokemonUnity.Combat.PokeBattle_Move_0BF, PokemonUnity.Combat.PokeBattle_Move_0C1, PokemonUnity.Combat.PokeBattle_Move_0D3, PokemonUnity.Combat.PokeBattle_Move_0F7, PokemonUnity.Combat.PokeBattle_Move_106, PokemonUnity.Combat.PokeBattle_Move_107, PokemonUnity.Combat.PokeBattle_Move_108, PokemonUnity.Combat.PokeBattle_Move_113, and PokemonUnity.Combat.PokeBattle_Move_11C.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_0A0.

    - -

    ◆ pbBaseDamageMultiplier()

    + +

    ◆ DisplayUseMessage()

    @@ -814,22 +854,11 @@ Properties - + - - - - - - - - - - + - -
    virtual double PokemonUnity.Combat.Move.pbBaseDamageMultiplier virtual int PokemonUnity.Combat.Move.DisplayUseMessage (double damagemult,
    IBattler attacker,
    attacker) IBattler opponent  )
    @@ -839,10 +868,21 @@ Properties
    +

    +
    Parameters
    + + +
    attacker
    +
    +
    +
    Returns
    Return values: -1 if the attack should exit as a failure 0 if the attack should proceed with its effect 1 if the attack should exit as a success 2 if Bide is storing energy
    + +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_0D4, PokemonUnity.Combat.PokeBattle_Move_111, and PokemonUnity.Combat.PokeBattle_Move_115.

    +
    - -

    ◆ pbCalcDamage()

    + +

    ◆ EffectAfterHit()

    - -

    ◆ pbCanUseWhileAsleep()

    + +

    ◆ EffectFixedDamage()

    @@ -888,10 +930,40 @@ Properties - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    virtual bool PokemonUnity.Combat.Move.pbCanUseWhileAsleep virtual int PokemonUnity.Combat.Move.EffectFixedDamage ()int damage,
    IBattler attacker,
    IBattler opponent,
    int hitnum = 0,
    int[] alltargets = null,
    bool showanimation = true  )
    @@ -901,12 +973,10 @@ Properties
    - -

    ◆ pbCritialOverride()

    + +

    ◆ EffectMessages()

    @@ -915,7 +985,7 @@ Properties - + @@ -924,7 +994,19 @@ Properties - + + + + + + + + + + + + +
    virtual bool PokemonUnity.Combat.Move.pbCritialOverride virtual void PokemonUnity.Combat.Move.EffectMessages ( IBattler  attacker,
    IBattler opponent  )opponent,
    bool ignoretype = false,
    int[] alltargets = null  )
    @@ -934,12 +1016,10 @@ Properties
    - -

    ◆ pbDisplayUseMessage()

    + +

    ◆ FromMove()

    @@ -948,35 +1028,39 @@ Properties - + - - + + + + + + +
    virtual int PokemonUnity.Combat.Move.pbDisplayUseMessage static IBattleMove PokemonUnity.Combat.Move.FromMove (IBattler attacker)IBattle battle,
    IMove move  )
    -virtual +static
    -

    +

    This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect).

    Parameters
    - + +
    attacker
    battle
    move
    -
    Returns
    Return values: -1 if the attack should exit as a failure 0 if the attack should proceed with its effect 1 if the attack should exit as a success 2 if Bide is storing energy
    - -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_0D4, PokemonUnity.Combat.PokeBattle_Move_111, and PokemonUnity.Combat.PokeBattle_Move_115.

    +
    Returns
    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -985,7 +1069,7 @@ Properties - + @@ -1022,12 +1106,12 @@ Properties
    virtual int PokemonUnity.Combat.Move.pbEffect virtual int PokemonUnity.Combat.Move.GetEffect ( IBattler  attacker,
    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_UnimplementedMove, PokemonUnity.Combat.PokeBattle_FailedMove, PokemonUnity.Combat.PokeBattle_Move_001, PokemonUnity.Combat.PokeBattle_Move_003, PokemonUnity.Combat.PokeBattle_Move_004, PokemonUnity.Combat.PokeBattle_Move_005, PokemonUnity.Combat.PokeBattle_Move_006, PokemonUnity.Combat.PokeBattle_Move_007, PokemonUnity.Combat.PokeBattle_Move_00A, PokemonUnity.Combat.PokeBattle_Move_00C, PokemonUnity.Combat.PokeBattle_Move_00D, PokemonUnity.Combat.PokeBattle_Move_013, PokemonUnity.Combat.PokeBattle_Move_015, PokemonUnity.Combat.PokeBattle_Move_016, PokemonUnity.Combat.PokeBattle_Move_018, PokemonUnity.Combat.PokeBattle_Move_019, PokemonUnity.Combat.PokeBattle_Move_01A, PokemonUnity.Combat.PokeBattle_Move_01B, PokemonUnity.Combat.PokeBattle_Move_01C, PokemonUnity.Combat.PokeBattle_Move_01D, PokemonUnity.Combat.PokeBattle_Move_01E, PokemonUnity.Combat.PokeBattle_Move_01F, PokemonUnity.Combat.PokeBattle_Move_020, PokemonUnity.Combat.PokeBattle_Move_021, PokemonUnity.Combat.PokeBattle_Move_022, PokemonUnity.Combat.PokeBattle_Move_023, PokemonUnity.Combat.PokeBattle_Move_024, PokemonUnity.Combat.PokeBattle_Move_025, PokemonUnity.Combat.PokeBattle_Move_026, PokemonUnity.Combat.PokeBattle_Move_027, PokemonUnity.Combat.PokeBattle_Move_028, PokemonUnity.Combat.PokeBattle_Move_029, PokemonUnity.Combat.PokeBattle_Move_02A, PokemonUnity.Combat.PokeBattle_Move_02B, PokemonUnity.Combat.PokeBattle_Move_02C, PokemonUnity.Combat.PokeBattle_Move_02E, PokemonUnity.Combat.PokeBattle_Move_02F, PokemonUnity.Combat.PokeBattle_Move_030, PokemonUnity.Combat.PokeBattle_Move_031, PokemonUnity.Combat.PokeBattle_Move_032, PokemonUnity.Combat.PokeBattle_Move_033, PokemonUnity.Combat.PokeBattle_Move_034, PokemonUnity.Combat.PokeBattle_Move_035, PokemonUnity.Combat.PokeBattle_Move_036, PokemonUnity.Combat.PokeBattle_Move_037, PokemonUnity.Combat.PokeBattle_Move_038, PokemonUnity.Combat.PokeBattle_Move_039, PokemonUnity.Combat.PokeBattle_Move_03A, PokemonUnity.Combat.PokeBattle_Move_03B, PokemonUnity.Combat.PokeBattle_Move_03C, PokemonUnity.Combat.PokeBattle_Move_03D, PokemonUnity.Combat.PokeBattle_Move_03E, PokemonUnity.Combat.PokeBattle_Move_03F, PokemonUnity.Combat.PokeBattle_Move_040, PokemonUnity.Combat.PokeBattle_Move_041, PokemonUnity.Combat.PokeBattle_Move_042, PokemonUnity.Combat.PokeBattle_Move_043, PokemonUnity.Combat.PokeBattle_Move_044, PokemonUnity.Combat.PokeBattle_Move_045, PokemonUnity.Combat.PokeBattle_Move_046, PokemonUnity.Combat.PokeBattle_Move_047, PokemonUnity.Combat.PokeBattle_Move_048, PokemonUnity.Combat.PokeBattle_Move_049, PokemonUnity.Combat.PokeBattle_Move_04A, PokemonUnity.Combat.PokeBattle_Move_04B, PokemonUnity.Combat.PokeBattle_Move_04C, PokemonUnity.Combat.PokeBattle_Move_04D, PokemonUnity.Combat.PokeBattle_Move_04E, PokemonUnity.Combat.PokeBattle_Move_04F, PokemonUnity.Combat.PokeBattle_Move_050, PokemonUnity.Combat.PokeBattle_Move_051, PokemonUnity.Combat.PokeBattle_Move_052, PokemonUnity.Combat.PokeBattle_Move_053, PokemonUnity.Combat.PokeBattle_Move_054, PokemonUnity.Combat.PokeBattle_Move_055, PokemonUnity.Combat.PokeBattle_Move_056, PokemonUnity.Combat.PokeBattle_Move_057, PokemonUnity.Combat.PokeBattle_Move_058, PokemonUnity.Combat.PokeBattle_Move_059, PokemonUnity.Combat.PokeBattle_Move_05A, PokemonUnity.Combat.PokeBattle_Move_05B, PokemonUnity.Combat.PokeBattle_Move_05C, PokemonUnity.Combat.PokeBattle_Move_05D, PokemonUnity.Combat.PokeBattle_Move_05E, PokemonUnity.Combat.PokeBattle_Move_05F, PokemonUnity.Combat.PokeBattle_Move_060, PokemonUnity.Combat.PokeBattle_Move_061, PokemonUnity.Combat.PokeBattle_Move_062, PokemonUnity.Combat.PokeBattle_Move_063, PokemonUnity.Combat.PokeBattle_Move_064, PokemonUnity.Combat.PokeBattle_Move_065, PokemonUnity.Combat.PokeBattle_Move_066, PokemonUnity.Combat.PokeBattle_Move_067, PokemonUnity.Combat.PokeBattle_Move_068, PokemonUnity.Combat.PokeBattle_Move_069, PokemonUnity.Combat.PokeBattle_Move_06A, PokemonUnity.Combat.PokeBattle_Move_06B, PokemonUnity.Combat.PokeBattle_Move_06C, PokemonUnity.Combat.PokeBattle_Move_06D, PokemonUnity.Combat.PokeBattle_Move_06E, PokemonUnity.Combat.PokeBattle_Move_06F, PokemonUnity.Combat.PokeBattle_Move_070, PokemonUnity.Combat.PokeBattle_Move_071, PokemonUnity.Combat.PokeBattle_Move_072, PokemonUnity.Combat.PokeBattle_Move_073, PokemonUnity.Combat.PokeBattle_Move_074, PokemonUnity.Combat.PokeBattle_Move_079, PokemonUnity.Combat.PokeBattle_Move_07A, PokemonUnity.Combat.PokeBattle_Move_083, PokemonUnity.Combat.PokeBattle_Move_093, PokemonUnity.Combat.PokeBattle_Move_094, PokemonUnity.Combat.PokeBattle_Move_09C, PokemonUnity.Combat.PokeBattle_Move_09D, PokemonUnity.Combat.PokeBattle_Move_09E, PokemonUnity.Combat.PokeBattle_Move_0A1, PokemonUnity.Combat.PokeBattle_Move_0A2, PokemonUnity.Combat.PokeBattle_Move_0A3, PokemonUnity.Combat.PokeBattle_Move_0A6, PokemonUnity.Combat.PokeBattle_Move_0A7, PokemonUnity.Combat.PokeBattle_Move_0A8, PokemonUnity.Combat.PokeBattle_Move_0AA, PokemonUnity.Combat.PokeBattle_Move_0AB, PokemonUnity.Combat.PokeBattle_Move_0AC, PokemonUnity.Combat.PokeBattle_Move_0AD, PokemonUnity.Combat.PokeBattle_Move_0AE, PokemonUnity.Combat.PokeBattle_Move_0AF, PokemonUnity.Combat.PokeBattle_Move_0B0, PokemonUnity.Combat.PokeBattle_Move_0B1, PokemonUnity.Combat.PokeBattle_Move_0B2, PokemonUnity.Combat.PokeBattle_Move_0B3, PokemonUnity.Combat.PokeBattle_Move_0B4, PokemonUnity.Combat.PokeBattle_Move_0B5, PokemonUnity.Combat.PokeBattle_Move_0B6, PokemonUnity.Combat.PokeBattle_Move_0B7, PokemonUnity.Combat.PokeBattle_Move_0B8, PokemonUnity.Combat.PokeBattle_Move_0B9, PokemonUnity.Combat.PokeBattle_Move_0BA, PokemonUnity.Combat.PokeBattle_Move_0BB, PokemonUnity.Combat.PokeBattle_Move_0BC, PokemonUnity.Combat.PokeBattle_Move_0C2, PokemonUnity.Combat.PokeBattle_Move_0C3, PokemonUnity.Combat.PokeBattle_Move_0C4, PokemonUnity.Combat.PokeBattle_Move_0C5, PokemonUnity.Combat.PokeBattle_Move_0C6, PokemonUnity.Combat.PokeBattle_Move_0C7, PokemonUnity.Combat.PokeBattle_Move_0C8, PokemonUnity.Combat.PokeBattle_Move_0C9, PokemonUnity.Combat.PokeBattle_Move_0CA, PokemonUnity.Combat.PokeBattle_Move_0CB, PokemonUnity.Combat.PokeBattle_Move_0CC, PokemonUnity.Combat.PokeBattle_Move_0CD, PokemonUnity.Combat.PokeBattle_Move_0CE, PokemonUnity.Combat.PokeBattle_Move_0CF, PokemonUnity.Combat.PokeBattle_Move_0D0, PokemonUnity.Combat.PokeBattle_Move_0D1, PokemonUnity.Combat.PokeBattle_Move_0D2, PokemonUnity.Combat.PokeBattle_Move_0D3, PokemonUnity.Combat.PokeBattle_Move_0D4, PokemonUnity.Combat.PokeBattle_Move_0D5, PokemonUnity.Combat.PokeBattle_Move_0D6, PokemonUnity.Combat.PokeBattle_Move_0D7, PokemonUnity.Combat.PokeBattle_Move_0D8, PokemonUnity.Combat.PokeBattle_Move_0D9, PokemonUnity.Combat.PokeBattle_Move_0DA, PokemonUnity.Combat.PokeBattle_Move_0DB, PokemonUnity.Combat.PokeBattle_Move_0DC, PokemonUnity.Combat.PokeBattle_Move_0DD, PokemonUnity.Combat.PokeBattle_Move_0DE, PokemonUnity.Combat.PokeBattle_Move_0DF, PokemonUnity.Combat.PokeBattle_Move_0E1, PokemonUnity.Combat.PokeBattle_Move_0E2, PokemonUnity.Combat.PokeBattle_Move_0E3, PokemonUnity.Combat.PokeBattle_Move_0E4, PokemonUnity.Combat.PokeBattle_Move_0E5, PokemonUnity.Combat.PokeBattle_Move_0E6, PokemonUnity.Combat.PokeBattle_Move_0E7, PokemonUnity.Combat.PokeBattle_Move_0E8, PokemonUnity.Combat.PokeBattle_Move_0EA, PokemonUnity.Combat.PokeBattle_Move_0EB, PokemonUnity.Combat.PokeBattle_Move_0ED, PokemonUnity.Combat.PokeBattle_Move_0EE, PokemonUnity.Combat.PokeBattle_Move_0EF, PokemonUnity.Combat.PokeBattle_Move_0F2, PokemonUnity.Combat.PokeBattle_Move_0F3, PokemonUnity.Combat.PokeBattle_Move_0F5, PokemonUnity.Combat.PokeBattle_Move_0F6, PokemonUnity.Combat.PokeBattle_Move_0F7, PokemonUnity.Combat.PokeBattle_Move_0F8, PokemonUnity.Combat.PokeBattle_Move_0F9, PokemonUnity.Combat.PokeBattle_Move_0FF, PokemonUnity.Combat.PokeBattle_Move_100, PokemonUnity.Combat.PokeBattle_Move_101, PokemonUnity.Combat.PokeBattle_Move_102, PokemonUnity.Combat.PokeBattle_Move_103, PokemonUnity.Combat.PokeBattle_Move_104, PokemonUnity.Combat.PokeBattle_Move_105, PokemonUnity.Combat.PokeBattle_Move_106, PokemonUnity.Combat.PokeBattle_Move_107, PokemonUnity.Combat.PokeBattle_Move_108, PokemonUnity.Combat.PokeBattle_Move_109, PokemonUnity.Combat.PokeBattle_Move_10A, PokemonUnity.Combat.PokeBattle_Move_10C, PokemonUnity.Combat.PokeBattle_Move_10D, PokemonUnity.Combat.PokeBattle_Move_10E, PokemonUnity.Combat.PokeBattle_Move_10F, PokemonUnity.Combat.PokeBattle_Move_111, PokemonUnity.Combat.PokeBattle_Move_112, PokemonUnity.Combat.PokeBattle_Move_114, PokemonUnity.Combat.PokeBattle_Move_117, PokemonUnity.Combat.PokeBattle_Move_118, PokemonUnity.Combat.PokeBattle_Move_119, PokemonUnity.Combat.PokeBattle_Move_11A, PokemonUnity.Combat.PokeBattle_Move_11C, PokemonUnity.Combat.PokeBattle_Move_11D, PokemonUnity.Combat.PokeBattle_Move_11E, PokemonUnity.Combat.PokeBattle_Move_11F, PokemonUnity.Combat.PokeBattle_Move_120, PokemonUnity.Combat.PokeBattle_Move_123, PokemonUnity.Combat.PokeBattle_Move_124, PokemonUnity.Combat.PokeBattle_Move_133, PokemonUnity.Combat.PokeBattle_Move_134, PokemonUnity.Combat.PokeBattle_Move_137, PokemonUnity.Combat.PokeBattle_Move_138, PokemonUnity.Combat.PokeBattle_Move_139, PokemonUnity.Combat.PokeBattle_Move_13A, PokemonUnity.Combat.PokeBattle_Move_13C, PokemonUnity.Combat.PokeBattle_Move_13D, PokemonUnity.Combat.PokeBattle_Move_13E, PokemonUnity.Combat.PokeBattle_Move_13F, PokemonUnity.Combat.PokeBattle_Move_140, PokemonUnity.Combat.PokeBattle_Move_141, PokemonUnity.Combat.PokeBattle_Move_142, PokemonUnity.Combat.PokeBattle_Move_143, PokemonUnity.Combat.PokeBattle_Move_145, PokemonUnity.Combat.PokeBattle_Move_146, PokemonUnity.Combat.PokeBattle_Move_148, PokemonUnity.Combat.PokeBattle_Move_149, PokemonUnity.Combat.PokeBattle_Move_14A, PokemonUnity.Combat.PokeBattle_Move_14B, PokemonUnity.Combat.PokeBattle_Move_14C, PokemonUnity.Combat.PokeBattle_Move_14D, PokemonUnity.Combat.PokeBattle_Move_14E, PokemonUnity.Combat.PokeBattle_Move_14F, PokemonUnity.Combat.PokeBattle_Move_150, PokemonUnity.Combat.PokeBattle_Move_151, PokemonUnity.Combat.PokeBattle_Move_152, PokemonUnity.Combat.PokeBattle_Move_153, PokemonUnity.Combat.PokeBattle_Move_154, PokemonUnity.Combat.PokeBattle_Move_155, PokemonUnity.Combat.PokeBattle_Move_156, PokemonUnity.Combat.PokeBattle_Move_157, PokemonUnity.Combat.PokeBattle_Move_126, PokemonUnity.Combat.PokeBattle_Move_127, PokemonUnity.Combat.PokeBattle_Move_128, PokemonUnity.Combat.PokeBattle_Move_129, PokemonUnity.Combat.PokeBattle_Move_12A, PokemonUnity.Combat.PokeBattle_Move_12B, PokemonUnity.Combat.PokeBattle_Move_12C, PokemonUnity.Combat.PokeBattle_Move_12D, PokemonUnity.Combat.PokeBattle_Move_12E, PokemonUnity.Combat.PokeBattle_Move_12F, PokemonUnity.Combat.PokeBattle_Move_130, PokemonUnity.Combat.PokeBattle_Move_131, and PokemonUnity.Combat.PokeBattle_Move_132.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_UnimplementedMove, PokemonUnity.Combat.PokeBattle_FailedMove, PokemonUnity.Combat.PokeBattle_Move_001, PokemonUnity.Combat.PokeBattle_Move_003, PokemonUnity.Combat.PokeBattle_Move_004, PokemonUnity.Combat.PokeBattle_Move_005, PokemonUnity.Combat.PokeBattle_Move_006, PokemonUnity.Combat.PokeBattle_Move_007, PokemonUnity.Combat.PokeBattle_Move_00A, PokemonUnity.Combat.PokeBattle_Move_00C, PokemonUnity.Combat.PokeBattle_Move_00D, PokemonUnity.Combat.PokeBattle_Move_013, PokemonUnity.Combat.PokeBattle_Move_015, PokemonUnity.Combat.PokeBattle_Move_016, PokemonUnity.Combat.PokeBattle_Move_018, PokemonUnity.Combat.PokeBattle_Move_019, PokemonUnity.Combat.PokeBattle_Move_01A, PokemonUnity.Combat.PokeBattle_Move_01B, PokemonUnity.Combat.PokeBattle_Move_01C, PokemonUnity.Combat.PokeBattle_Move_01D, PokemonUnity.Combat.PokeBattle_Move_01E, PokemonUnity.Combat.PokeBattle_Move_01F, PokemonUnity.Combat.PokeBattle_Move_020, PokemonUnity.Combat.PokeBattle_Move_021, PokemonUnity.Combat.PokeBattle_Move_022, PokemonUnity.Combat.PokeBattle_Move_023, PokemonUnity.Combat.PokeBattle_Move_024, PokemonUnity.Combat.PokeBattle_Move_025, PokemonUnity.Combat.PokeBattle_Move_026, PokemonUnity.Combat.PokeBattle_Move_027, PokemonUnity.Combat.PokeBattle_Move_028, PokemonUnity.Combat.PokeBattle_Move_029, PokemonUnity.Combat.PokeBattle_Move_02A, PokemonUnity.Combat.PokeBattle_Move_02B, PokemonUnity.Combat.PokeBattle_Move_02C, PokemonUnity.Combat.PokeBattle_Move_02E, PokemonUnity.Combat.PokeBattle_Move_02F, PokemonUnity.Combat.PokeBattle_Move_030, PokemonUnity.Combat.PokeBattle_Move_031, PokemonUnity.Combat.PokeBattle_Move_032, PokemonUnity.Combat.PokeBattle_Move_033, PokemonUnity.Combat.PokeBattle_Move_034, PokemonUnity.Combat.PokeBattle_Move_035, PokemonUnity.Combat.PokeBattle_Move_036, PokemonUnity.Combat.PokeBattle_Move_037, PokemonUnity.Combat.PokeBattle_Move_038, PokemonUnity.Combat.PokeBattle_Move_039, PokemonUnity.Combat.PokeBattle_Move_03A, PokemonUnity.Combat.PokeBattle_Move_03B, PokemonUnity.Combat.PokeBattle_Move_03C, PokemonUnity.Combat.PokeBattle_Move_03D, PokemonUnity.Combat.PokeBattle_Move_03E, PokemonUnity.Combat.PokeBattle_Move_03F, PokemonUnity.Combat.PokeBattle_Move_040, PokemonUnity.Combat.PokeBattle_Move_041, PokemonUnity.Combat.PokeBattle_Move_042, PokemonUnity.Combat.PokeBattle_Move_043, PokemonUnity.Combat.PokeBattle_Move_044, PokemonUnity.Combat.PokeBattle_Move_045, PokemonUnity.Combat.PokeBattle_Move_046, PokemonUnity.Combat.PokeBattle_Move_047, PokemonUnity.Combat.PokeBattle_Move_048, PokemonUnity.Combat.PokeBattle_Move_049, PokemonUnity.Combat.PokeBattle_Move_04A, PokemonUnity.Combat.PokeBattle_Move_04B, PokemonUnity.Combat.PokeBattle_Move_04C, PokemonUnity.Combat.PokeBattle_Move_04D, PokemonUnity.Combat.PokeBattle_Move_04E, PokemonUnity.Combat.PokeBattle_Move_04F, PokemonUnity.Combat.PokeBattle_Move_050, PokemonUnity.Combat.PokeBattle_Move_051, PokemonUnity.Combat.PokeBattle_Move_052, PokemonUnity.Combat.PokeBattle_Move_053, PokemonUnity.Combat.PokeBattle_Move_054, PokemonUnity.Combat.PokeBattle_Move_055, PokemonUnity.Combat.PokeBattle_Move_056, PokemonUnity.Combat.PokeBattle_Move_057, PokemonUnity.Combat.PokeBattle_Move_058, PokemonUnity.Combat.PokeBattle_Move_059, PokemonUnity.Combat.PokeBattle_Move_05A, PokemonUnity.Combat.PokeBattle_Move_05B, PokemonUnity.Combat.PokeBattle_Move_05C, PokemonUnity.Combat.PokeBattle_Move_05D, PokemonUnity.Combat.PokeBattle_Move_05E, PokemonUnity.Combat.PokeBattle_Move_05F, PokemonUnity.Combat.PokeBattle_Move_060, PokemonUnity.Combat.PokeBattle_Move_061, PokemonUnity.Combat.PokeBattle_Move_062, PokemonUnity.Combat.PokeBattle_Move_063, PokemonUnity.Combat.PokeBattle_Move_064, PokemonUnity.Combat.PokeBattle_Move_065, PokemonUnity.Combat.PokeBattle_Move_066, PokemonUnity.Combat.PokeBattle_Move_067, PokemonUnity.Combat.PokeBattle_Move_068, PokemonUnity.Combat.PokeBattle_Move_069, PokemonUnity.Combat.PokeBattle_Move_06A, PokemonUnity.Combat.PokeBattle_Move_06B, PokemonUnity.Combat.PokeBattle_Move_06C, PokemonUnity.Combat.PokeBattle_Move_06D, PokemonUnity.Combat.PokeBattle_Move_06E, PokemonUnity.Combat.PokeBattle_Move_06F, PokemonUnity.Combat.PokeBattle_Move_070, PokemonUnity.Combat.PokeBattle_Move_071, PokemonUnity.Combat.PokeBattle_Move_072, PokemonUnity.Combat.PokeBattle_Move_073, PokemonUnity.Combat.PokeBattle_Move_074, PokemonUnity.Combat.PokeBattle_Move_079, PokemonUnity.Combat.PokeBattle_Move_07A, PokemonUnity.Combat.PokeBattle_Move_083, PokemonUnity.Combat.PokeBattle_Move_093, PokemonUnity.Combat.PokeBattle_Move_094, PokemonUnity.Combat.PokeBattle_Move_09C, PokemonUnity.Combat.PokeBattle_Move_09D, PokemonUnity.Combat.PokeBattle_Move_09E, PokemonUnity.Combat.PokeBattle_Move_0A1, PokemonUnity.Combat.PokeBattle_Move_0A2, PokemonUnity.Combat.PokeBattle_Move_0A3, PokemonUnity.Combat.PokeBattle_Move_0A6, PokemonUnity.Combat.PokeBattle_Move_0A7, PokemonUnity.Combat.PokeBattle_Move_0A8, PokemonUnity.Combat.PokeBattle_Move_0AA, PokemonUnity.Combat.PokeBattle_Move_0AB, PokemonUnity.Combat.PokeBattle_Move_0AC, PokemonUnity.Combat.PokeBattle_Move_0AD, PokemonUnity.Combat.PokeBattle_Move_0AE, PokemonUnity.Combat.PokeBattle_Move_0AF, PokemonUnity.Combat.PokeBattle_Move_0B0, PokemonUnity.Combat.PokeBattle_Move_0B1, PokemonUnity.Combat.PokeBattle_Move_0B2, PokemonUnity.Combat.PokeBattle_Move_0B3, PokemonUnity.Combat.PokeBattle_Move_0B4, PokemonUnity.Combat.PokeBattle_Move_0B5, PokemonUnity.Combat.PokeBattle_Move_0B6, PokemonUnity.Combat.PokeBattle_Move_0B7, PokemonUnity.Combat.PokeBattle_Move_0B8, PokemonUnity.Combat.PokeBattle_Move_0B9, PokemonUnity.Combat.PokeBattle_Move_0BA, PokemonUnity.Combat.PokeBattle_Move_0BB, PokemonUnity.Combat.PokeBattle_Move_0BC, PokemonUnity.Combat.PokeBattle_Move_0C2, PokemonUnity.Combat.PokeBattle_Move_0C3, PokemonUnity.Combat.PokeBattle_Move_0C4, PokemonUnity.Combat.PokeBattle_Move_0C5, PokemonUnity.Combat.PokeBattle_Move_0C6, PokemonUnity.Combat.PokeBattle_Move_0C7, PokemonUnity.Combat.PokeBattle_Move_0C8, PokemonUnity.Combat.PokeBattle_Move_0C9, PokemonUnity.Combat.PokeBattle_Move_0CA, PokemonUnity.Combat.PokeBattle_Move_0CB, PokemonUnity.Combat.PokeBattle_Move_0CC, PokemonUnity.Combat.PokeBattle_Move_0CD, PokemonUnity.Combat.PokeBattle_Move_0CE, PokemonUnity.Combat.PokeBattle_Move_0CF, PokemonUnity.Combat.PokeBattle_Move_0D0, PokemonUnity.Combat.PokeBattle_Move_0D1, PokemonUnity.Combat.PokeBattle_Move_0D2, PokemonUnity.Combat.PokeBattle_Move_0D3, PokemonUnity.Combat.PokeBattle_Move_0D4, PokemonUnity.Combat.PokeBattle_Move_0D5, PokemonUnity.Combat.PokeBattle_Move_0D6, PokemonUnity.Combat.PokeBattle_Move_0D7, PokemonUnity.Combat.PokeBattle_Move_0D8, PokemonUnity.Combat.PokeBattle_Move_0D9, PokemonUnity.Combat.PokeBattle_Move_0DA, PokemonUnity.Combat.PokeBattle_Move_0DB, PokemonUnity.Combat.PokeBattle_Move_0DC, PokemonUnity.Combat.PokeBattle_Move_0DD, PokemonUnity.Combat.PokeBattle_Move_0DE, PokemonUnity.Combat.PokeBattle_Move_0DF, PokemonUnity.Combat.PokeBattle_Move_0E1, PokemonUnity.Combat.PokeBattle_Move_0E2, PokemonUnity.Combat.PokeBattle_Move_0E3, PokemonUnity.Combat.PokeBattle_Move_0E4, PokemonUnity.Combat.PokeBattle_Move_0E5, PokemonUnity.Combat.PokeBattle_Move_0E6, PokemonUnity.Combat.PokeBattle_Move_0E7, PokemonUnity.Combat.PokeBattle_Move_0E8, PokemonUnity.Combat.PokeBattle_Move_0EA, PokemonUnity.Combat.PokeBattle_Move_0EB, PokemonUnity.Combat.PokeBattle_Move_0ED, PokemonUnity.Combat.PokeBattle_Move_0EE, PokemonUnity.Combat.PokeBattle_Move_0EF, PokemonUnity.Combat.PokeBattle_Move_0F2, PokemonUnity.Combat.PokeBattle_Move_0F3, PokemonUnity.Combat.PokeBattle_Move_0F5, PokemonUnity.Combat.PokeBattle_Move_0F6, PokemonUnity.Combat.PokeBattle_Move_0F7, PokemonUnity.Combat.PokeBattle_Move_0F8, PokemonUnity.Combat.PokeBattle_Move_0F9, PokemonUnity.Combat.PokeBattle_Move_0FF, PokemonUnity.Combat.PokeBattle_Move_100, PokemonUnity.Combat.PokeBattle_Move_101, PokemonUnity.Combat.PokeBattle_Move_102, PokemonUnity.Combat.PokeBattle_Move_103, PokemonUnity.Combat.PokeBattle_Move_104, PokemonUnity.Combat.PokeBattle_Move_105, PokemonUnity.Combat.PokeBattle_Move_106, PokemonUnity.Combat.PokeBattle_Move_107, PokemonUnity.Combat.PokeBattle_Move_108, PokemonUnity.Combat.PokeBattle_Move_109, PokemonUnity.Combat.PokeBattle_Move_10A, PokemonUnity.Combat.PokeBattle_Move_10C, PokemonUnity.Combat.PokeBattle_Move_10D, PokemonUnity.Combat.PokeBattle_Move_10E, PokemonUnity.Combat.PokeBattle_Move_10F, PokemonUnity.Combat.PokeBattle_Move_111, PokemonUnity.Combat.PokeBattle_Move_112, PokemonUnity.Combat.PokeBattle_Move_114, PokemonUnity.Combat.PokeBattle_Move_117, PokemonUnity.Combat.PokeBattle_Move_118, PokemonUnity.Combat.PokeBattle_Move_119, PokemonUnity.Combat.PokeBattle_Move_11A, PokemonUnity.Combat.PokeBattle_Move_11C, PokemonUnity.Combat.PokeBattle_Move_11D, PokemonUnity.Combat.PokeBattle_Move_11E, PokemonUnity.Combat.PokeBattle_Move_11F, PokemonUnity.Combat.PokeBattle_Move_120, PokemonUnity.Combat.PokeBattle_Move_123, PokemonUnity.Combat.PokeBattle_Move_124, PokemonUnity.Combat.PokeBattle_Move_133, PokemonUnity.Combat.PokeBattle_Move_134, PokemonUnity.Combat.PokeBattle_Move_137, PokemonUnity.Combat.PokeBattle_Move_138, PokemonUnity.Combat.PokeBattle_Move_139, PokemonUnity.Combat.PokeBattle_Move_13A, PokemonUnity.Combat.PokeBattle_Move_13C, PokemonUnity.Combat.PokeBattle_Move_13D, PokemonUnity.Combat.PokeBattle_Move_13E, PokemonUnity.Combat.PokeBattle_Move_13F, PokemonUnity.Combat.PokeBattle_Move_140, PokemonUnity.Combat.PokeBattle_Move_141, PokemonUnity.Combat.PokeBattle_Move_142, PokemonUnity.Combat.PokeBattle_Move_143, PokemonUnity.Combat.PokeBattle_Move_145, PokemonUnity.Combat.PokeBattle_Move_146, PokemonUnity.Combat.PokeBattle_Move_148, PokemonUnity.Combat.PokeBattle_Move_149, PokemonUnity.Combat.PokeBattle_Move_14A, PokemonUnity.Combat.PokeBattle_Move_14B, PokemonUnity.Combat.PokeBattle_Move_14C, PokemonUnity.Combat.PokeBattle_Move_14D, PokemonUnity.Combat.PokeBattle_Move_14E, PokemonUnity.Combat.PokeBattle_Move_14F, PokemonUnity.Combat.PokeBattle_Move_150, PokemonUnity.Combat.PokeBattle_Move_151, PokemonUnity.Combat.PokeBattle_Move_152, PokemonUnity.Combat.PokeBattle_Move_153, PokemonUnity.Combat.PokeBattle_Move_154, PokemonUnity.Combat.PokeBattle_Move_155, PokemonUnity.Combat.PokeBattle_Move_156, PokemonUnity.Combat.PokeBattle_Move_157, PokemonUnity.Combat.PokeBattle_Move_126, PokemonUnity.Combat.PokeBattle_Move_127, PokemonUnity.Combat.PokeBattle_Move_128, PokemonUnity.Combat.PokeBattle_Move_129, PokemonUnity.Combat.PokeBattle_Move_12A, PokemonUnity.Combat.PokeBattle_Move_12B, PokemonUnity.Combat.PokeBattle_Move_12C, PokemonUnity.Combat.PokeBattle_Move_12D, PokemonUnity.Combat.PokeBattle_Move_12E, PokemonUnity.Combat.PokeBattle_Move_12F, PokemonUnity.Combat.PokeBattle_Move_130, PokemonUnity.Combat.PokeBattle_Move_131, and PokemonUnity.Combat.PokeBattle_Move_132.

    - -

    ◆ pbEffectAfterHit()

    + +

    ◆ GetPriority()

    - -

    ◆ pbEffectFixedDamage()

    + +

    ◆ GetType()

    @@ -1075,10 +1146,10 @@ Properties - + - - + + @@ -1090,25 +1161,7 @@ Properties - - - - - - - - - - - - - - - - - - - +
    virtual int PokemonUnity.Combat.Move.pbEffectFixedDamage virtual Types PokemonUnity.Combat.Move.GetType (int damage, Types type,
    IBattler opponent,
    int hitnum = 0,
    int[] alltargets = null,
    bool showanimation = true  )opponent  )
    @@ -1120,8 +1173,8 @@ Properties
    - -

    ◆ pbEffectMessages()

    + +

    ◆ ignoresSubstitute()

    @@ -1130,28 +1183,11 @@ Properties - + - - - - - - - - - - - - - - - - + - -
    virtual void PokemonUnity.Combat.Move.pbEffectMessages virtual bool PokemonUnity.Combat.Move.ignoresSubstitute ( IBattler attacker,
    IBattler opponent,
    bool ignoretype = false,
    attacker) int[] alltargets = null  )
    @@ -1163,8 +1199,8 @@ Properties
    - -

    ◆ pbFromPBMove()

    + +

    ◆ Initialize()

    @@ -1173,7 +1209,7 @@ Properties - + @@ -1187,25 +1223,17 @@ Properties
    static IBattleMove PokemonUnity.Combat.Move.pbFromPBMove virtual IBattleMove PokemonUnity.Combat.Move.Initialize ( IBattle  battle,
    -static +virtual
    -

    This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect).

    -
    Parameters
    - - - -
    battle
    move
    -
    -
    -
    Returns
    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Confusion, and PokemonUnity.Combat.PokeBattle_Struggle.

    - -

    ◆ pbIsCritical()

    + +

    ◆ IsCritical()

    @@ -1214,7 +1242,7 @@ Properties - + @@ -1235,8 +1263,33 @@ Properties - -

    ◆ pbIsDamaging()

    + +

    ◆ IsDamaging()

    + +
    +
    +
    virtual bool PokemonUnity.Combat.Move.pbIsCritical virtual bool PokemonUnity.Combat.Move.IsCritical ( IBattler  attacker,
    + + + + +
    + + + + + + + +
    virtual bool PokemonUnity.Combat.Move.IsDamaging ()
    +
    +virtual
    +
    + +
    +
    + +

    ◆ isHealingMove()

    - -

    ◆ pbIsMultiHit()

    + +

    ◆ IsMultiHit()

    @@ -1270,7 +1325,7 @@ Properties - + @@ -1283,14 +1338,14 @@ Properties
    virtual bool PokemonUnity.Combat.Move.pbIsMultiHit virtual bool PokemonUnity.Combat.Move.IsMultiHit ( )
    - -

    ◆ pbIsPhysical()

    + +

    ◆ IsPhysical()

    @@ -1299,7 +1354,7 @@ Properties - + @@ -1315,8 +1370,35 @@ Properties - -

    ◆ pbIsSpecial()

    + +

    ◆ isRecoilMove()

    + +
    +
    +
    virtual bool PokemonUnity.Combat.Move.pbIsPhysical virtual bool PokemonUnity.Combat.Move.IsPhysical ( Types  type)
    + + + + +
    + + + + + + + +
    virtual bool PokemonUnity.Combat.Move.isRecoilMove ()
    +
    +virtual
    +
    +
    + +

    ◆ IsSpecial()

    @@ -1325,7 +1407,7 @@ Properties - + @@ -1341,8 +1423,8 @@ Properties - -

    ◆ pbModifyBaseAccuracy()

    + +

    ◆ ModifyBaseAccuracy()

    @@ -1351,7 +1433,7 @@ Properties
    - -

    ◆ MoveId

    + +

    ◆ IsStatus

    @@ -2157,20 +2176,20 @@ Properties
    +get
    virtual bool PokemonUnity.Combat.Move.pbIsSpecial virtual bool PokemonUnity.Combat.Move.IsSpecial ( Types  type)
    - + @@ -1378,8 +1460,8 @@ Properties - -

    ◆ pbModifyDamage()

    + +

    ◆ ModifyDamage()

    @@ -1388,7 +1470,7 @@ Properties
    - - -
    virtual int PokemonUnity.Combat.Move.pbModifyBaseAccuracy virtual int PokemonUnity.Combat.Move.ModifyBaseAccuracy ( int  baseaccuracy,
    - + @@ -1415,8 +1497,8 @@ Properties - -

    ◆ pbModifyType()

    + +

    ◆ ModifyType()

    @@ -1425,7 +1507,7 @@ Properties
    @@ -1826,10 +1861,12 @@ Properties
    virtual double PokemonUnity.Combat.Move.pbModifyDamage virtual double PokemonUnity.Combat.Move.ModifyDamage ( double  damagemult,
    - + @@ -1450,12 +1532,12 @@ Properties
    virtual Types PokemonUnity.Combat.Move.pbModifyType virtual Types PokemonUnity.Combat.Move.ModifyType ( Types  type,
    - -

    ◆ pbMoveFailed()

    + +

    ◆ MoveFailed()

    @@ -1464,7 +1546,7 @@ Properties
    - + @@ -1483,12 +1565,12 @@ Properties
    virtual bool PokemonUnity.Combat.Move.pbMoveFailed virtual bool PokemonUnity.Combat.Move.MoveFailed ( IBattler  attacker,
    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_011, PokemonUnity.Combat.PokeBattle_Move_012, PokemonUnity.Combat.PokeBattle_Move_0CE, PokemonUnity.Combat.PokeBattle_Move_0F7, PokemonUnity.Combat.PokeBattle_Move_113, PokemonUnity.Combat.PokeBattle_Move_116, PokemonUnity.Combat.PokeBattle_Move_11D, PokemonUnity.Combat.PokeBattle_Move_11E, PokemonUnity.Combat.PokeBattle_Move_125, PokemonUnity.Combat.PokeBattle_Move_13B, PokemonUnity.Combat.PokeBattle_Move_149, PokemonUnity.Combat.PokeBattle_Move_158, PokemonUnity.Combat.PokeBattle_Move_022, PokemonUnity.Combat.PokeBattle_Move_034, PokemonUnity.Combat.PokeBattle_Move_067, PokemonUnity.Combat.PokeBattle_Move_06A, PokemonUnity.Combat.PokeBattle_Move_06B, PokemonUnity.Combat.PokeBattle_Move_070, PokemonUnity.Combat.PokeBattle_Move_0E5, and PokemonUnity.Combat.PokeBattle_Move_0E7.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_011, PokemonUnity.Combat.PokeBattle_Move_012, PokemonUnity.Combat.PokeBattle_Move_0CE, PokemonUnity.Combat.PokeBattle_Move_0F7, PokemonUnity.Combat.PokeBattle_Move_113, PokemonUnity.Combat.PokeBattle_Move_116, PokemonUnity.Combat.PokeBattle_Move_11D, PokemonUnity.Combat.PokeBattle_Move_11E, PokemonUnity.Combat.PokeBattle_Move_125, PokemonUnity.Combat.PokeBattle_Move_13B, PokemonUnity.Combat.PokeBattle_Move_149, PokemonUnity.Combat.PokeBattle_Move_158, PokemonUnity.Combat.PokeBattle_Move_022, PokemonUnity.Combat.PokeBattle_Move_034, PokemonUnity.Combat.PokeBattle_Move_067, PokemonUnity.Combat.PokeBattle_Move_06A, PokemonUnity.Combat.PokeBattle_Move_06B, PokemonUnity.Combat.PokeBattle_Move_070, PokemonUnity.Combat.PokeBattle_Move_0E5, and PokemonUnity.Combat.PokeBattle_Move_0E7.

    - -

    ◆ pbNumHits()

    + +

    ◆ NumHits()

    @@ -1497,7 +1579,7 @@ Properties
    - + @@ -1511,12 +1593,12 @@ Properties
    virtual int PokemonUnity.Combat.Move.pbNumHits virtual int PokemonUnity.Combat.Move.NumHits ( IBattler  attacker)
    - -

    ◆ pbOnDamageLost()

    + +

    ◆ OnDamageLost()

    @@ -1525,7 +1607,7 @@ Properties
    - + @@ -1552,8 +1634,8 @@ Properties - -

    ◆ pbOnStartUse()

    + +

    ◆ OnStartUse()

    @@ -1562,7 +1644,7 @@ Properties
    - - -
    virtual void PokemonUnity.Combat.Move.pbOnDamageLost virtual void PokemonUnity.Combat.Move.OnDamageLost ( int  damage,
    - + @@ -1576,12 +1658,12 @@ Properties
    virtual bool PokemonUnity.Combat.Move.pbOnStartUse virtual bool PokemonUnity.Combat.Move.OnStartUse ( IBattler  attacker)
    - -

    ◆ pbPriority()

    + +

    ◆ ReduceHPDamage()

    @@ -1590,33 +1672,7 @@ Properties
    - - - - - - -
    virtual int PokemonUnity.Combat.Move.pbPriority (IBattler attacker)
    -
    -virtual
    -
    - -
    - - -

    ◆ pbReduceHPDamage()

    - -
    -
    - - - @@ -1789,10 +1833,12 @@ Properties
    - - - + @@ -1643,8 +1699,8 @@ Properties - -

    ◆ pbShowAnimation()

    + +

    ◆ ShowAnimation()

    @@ -1653,7 +1709,7 @@ Properties
    virtual int PokemonUnity.Combat.Move.pbReduceHPDamage virtual int PokemonUnity.Combat.Move.ReduceHPDamage ( int  damage,
    - + @@ -1696,12 +1752,12 @@ Properties
    virtual void PokemonUnity.Combat.Move.pbShowAnimation virtual void PokemonUnity.Combat.Move.ShowAnimation ( Moves  id,
    - -

    ◆ pbTargetsMultiple()

    + +

    ◆ successCheckPerHit()

    @@ -1710,10 +1766,9 @@ Properties
    - + - - +
    virtual bool PokemonUnity.Combat.Move.pbTargetsMultiple virtual bool PokemonUnity.Combat.Move.successCheckPerHit (IBattler attacker))
    @@ -1724,10 +1779,12 @@ Properties
    - -

    ◆ pbTwoTurnAttack()

    + +

    ◆ TargetsMultiple()

    @@ -1736,7 +1793,7 @@ Properties
    - + @@ -1750,12 +1807,10 @@ Properties
    virtual bool PokemonUnity.Combat.Move.pbTwoTurnAttack virtual bool PokemonUnity.Combat.Move.TargetsMultiple ( IBattler  attacker)
    - -

    ◆ pbType()

    + +

    ◆ tramplesMinimize()

    @@ -1764,22 +1819,11 @@ Properties
    - + - - - - - - - - - - - + + - -
    virtual Types PokemonUnity.Combat.Move.pbType virtual bool PokemonUnity.Combat.Move.tramplesMinimize (Types type,
    IBattler attacker,
    int param = 1) IBattler opponent  )
    +

    Causes perfect accuracy and double damage

    +
    - -

    ◆ pbTypeImmunityByAbility()

    + +

    ◆ TwoTurnAttack()

    @@ -1801,22 +1847,11 @@ Properties
    - + - - - - - - - - - - + - -
    virtual bool PokemonUnity.Combat.Move.pbTypeImmunityByAbility virtual bool PokemonUnity.Combat.Move.TwoTurnAttack (Types type,
    IBattler attacker,
    attacker) IBattler opponent  )
    - -

    ◆ pbTypeModifier()

    + +

    ◆ TypeImmunityByAbility()

    @@ -1838,7 +1875,7 @@ Properties
    - + @@ -1863,12 +1900,10 @@ Properties
    virtual float PokemonUnity.Combat.Move.pbTypeModifier virtual bool PokemonUnity.Combat.Move.TypeImmunityByAbility ( Types  type,
    - -

    ◆ pbTypeModMessages()

    + +

    ◆ TypeModifier()

    @@ -1877,7 +1912,7 @@ Properties
    - + @@ -1902,10 +1937,12 @@ Properties
    virtual double PokemonUnity.Combat.Move.pbTypeModMessages virtual float PokemonUnity.Combat.Move.TypeModifier ( Types  type,
    - -

    ◆ successCheckPerHit()

    + +

    ◆ TypeModMessages()

    @@ -1914,38 +1951,22 @@ Properties
    - + - + + + + + + + -
    virtual bool PokemonUnity.Combat.Move.successCheckPerHit virtual double PokemonUnity.Combat.Move.TypeModMessages ()Types type,
    IBattler attacker,
    -
    -virtual
    -
    - -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_0BF.

    - -
    - - -

    ◆ tramplesMinimize()

    - -
    -
    - - - @@ -1955,8 +1976,6 @@ Properties
    - - - - - + + +
    virtual bool PokemonUnity.Combat.Move.tramplesMinimize (int param = 1) IBattler opponent  )
    -

    Causes perfect accuracy and double damage

    -
    @@ -2147,8 +2166,8 @@ Properties
    - +
    Moves PokemonUnity.Combat.Move.MoveIdvirtual bool PokemonUnity.Combat.Move.IsStatus
    -getset
    - -

    ◆ Name

    + +

    ◆ MoveId

    @@ -2179,20 +2198,20 @@ Properties - +
    string PokemonUnity.Combat.Move.NameMoves PokemonUnity.Combat.Move.MoveId
    -get +getset
    - -

    ◆ pbIsStatus

    + +

    ◆ Name

    @@ -2201,7 +2220,7 @@ Properties - +
    virtual bool PokemonUnity.Combat.Move.pbIsStatusstring PokemonUnity.Combat.Move.Name
    @@ -2392,3 +2411,4 @@ Properties
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Move.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move_effect_data-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move_effect_data-members.cshtml index 2c45a647c..9221353eb 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move_effect_data-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move_effect_data-members.cshtml @@ -32,4 +32,4 @@ this[Attack.Data.Effects key]PokemonUnity.Combat.MoveEffectData TryGetValue(Attack.Data.Effects key, out IBattleMove value)PokemonUnity.Combat.MoveEffectData ValuesPokemonUnity.Combat.MoveEffectData - \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move_effect_data.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move_effect_data.cshtml index ec47a9f41..5523c4dce 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move_effect_data.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_move_effect_data.cshtml @@ -392,3 +392,4 @@ Properties
    The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena-members.cshtml index 373186737..825cd8a03 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena-members.cshtml @@ -16,197 +16,190 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_BattleArena, including all inherited members.

    - - + + + + + + + + + + + + - + + + + + - + + + + + - - - - + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + - + + + + + - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + - + + + + + + + + + - + + + + + - -
    AllFainted(IPokemon[] party)PokemonUnity.Combat.Battle
    amuletcoinPokemonUnity.Combat.Battle
    _battlersPokemonUnity.Combat.Battleprotected
    _priorityPokemonUnity.Combat.Battleprotected
    Abort()PokemonUnity.Combat.Battlevirtual
    AddToPlayerParty(IPokemon pokemon)PokemonUnity.Combat.Battle
    AIRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    AllFainted(IPokemon[] party)PokemonUnity.Combat.Battle
    amuletcoinPokemonUnity.Combat.Battle
    Animation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
    AttackPhase()PokemonUnity.Combat.Battle
    AutoChooseMove(int idxPokemon, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
    AutoFightMenu(int i)PokemonUnity.Combat.Battlevirtual
    Battle()PokemonUnity.Combat.Battleprotected
    Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonUnity.Combat.Battle
    Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.Battle
    battlersPokemonUnity.Combat.Battle
    battlerschangedPokemonUnity.Combat.PokeBattle_BattleArena
    battlescenePokemonUnity.Combat.Battle
    CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonUnity.Combat.Battle
    BelongsToPlayer(int battlerIndex)PokemonUnity.Combat.Battle
    BetterBaseDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)PokemonUnity.Combat.Battle
    Call(int index)PokemonUnity.Combat.Battle
    CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonUnity.Combat.Battle
    CanChooseNonActive(int index)PokemonUnity.Combat.Battle
    canLosePokemonUnity.Combat.Battle
    CanShowCommands(int idxPokemon)PokemonUnity.Combat.Battle
    CanMegaEvolve(int index)PokemonUnity.Combat.Battle
    CanRun(int idxPokemon)PokemonUnity.Combat.Battle
    CanShowCommands(int idxPokemon)PokemonUnity.Combat.Battlevirtual
    CanShowFightMenu(int idxPokemon)PokemonUnity.Combat.Battle
    CanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonUnity.Combat.Battle
    CanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    cantescapePokemonUnity.Combat.Battle
    choicesPokemonUnity.Combat.Battle
    controlPlayerPokemonUnity.Combat.Battle
    countPokemonUnity.Combat.PokeBattle_BattleArena
    debugPokemonUnity.Combat.Battle
    CheckGlobalAbility(Abilities a)PokemonUnity.Combat.Battle
    choicesPokemonUnity.Combat.Battle
    ChooseBestNewEnemy(int index, IPokemon[] party, int[] enemies)PokemonUnity.Combat.Battle
    ChooseMoves(int index)PokemonUnity.Combat.Battle
    ChoseMove(int i, Moves move)PokemonUnity.Combat.Battle
    ChoseMoveFunctionCode(int i, Attack.Data.Effects code)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.ChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
    CommandMenu(int i)PokemonUnity.Combat.Battlevirtual
    CommandPhase()PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    CommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
    controlPlayerPokemonUnity.Combat.Battleprotected
    countPokemonUnity.Combat.PokeBattle_BattleArena
    CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.Combat.PokeBattle_BattleArena
    DbgPlayerOnly(int idx)PokemonUnity.Combat.Battle
    debugPokemonUnity.Combat.Battle
    DebugUpdate()PokemonEssentials.Interface.PokeBattle.IBattle
    debugupdatePokemonUnity.Combat.Battle
    decisionPokemonUnity.Combat.Battle
    doublebattlePokemonUnity.Combat.Battle
    DecisionOnDraw()PokemonUnity.Combat.Battlevirtual
    DecisionOnTime()PokemonUnity.Combat.Battle
    DecisionOnTime2()PokemonUnity.Combat.Battle
    DefaultChooseEnemyCommand(int index)PokemonUnity.Combat.Battle
    DefaultChooseNewEnemy(int index, IPokemon[] party)PokemonUnity.Combat.Battle
    Display(string msg)PokemonUnity.Combat.Battlevirtual
    DisplayBrief(string msg)PokemonUnity.Combat.Battlevirtual
    DisplayConfirm(string msg)PokemonUnity.Combat.Battlevirtual
    DisplayPaused(string msg)PokemonUnity.Combat.Battlevirtual
    doublebattlePokemonUnity.Combat.Battle
    DoubleBattleAllowed()PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    doublemoneyPokemonUnity.Combat.Battle
    EndOfBattle(bool canlose=false)PokemonUnity.Combat.Battle
    EndOfRoundPhase()PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    endspeechPokemonUnity.Combat.Battle
    endspeech2PokemonUnity.Combat.Battle
    endspeechwinPokemonUnity.Combat.Battle
    endspeechwin2PokemonUnity.Combat.Battle
    environmentPokemonUnity.Combat.Battle
    extramoneyPokemonUnity.Combat.Battle
    fieldPokemonUnity.Combat.Battle
    fullparty1PokemonUnity.Combat.Battle
    fullparty2PokemonUnity.Combat.Battle
    futuresightPokemonUnity.Combat.Battle
    initialize(PokemonEssentials.Interface.PokeBattle.IPokeBattleArena_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_BattleArena
    EnemyItemAlreadyUsed(int index, Items item, Items[] items)PokemonUnity.Combat.Battle
    EnemyItemToUse(int index)PokemonUnity.Combat.Battle
    EnemyShouldMegaEvolve(int index)PokemonUnity.Combat.Battle
    EnemyShouldUseItem(int index)PokemonUnity.Combat.Battle
    EnemyShouldWithdraw(int index)PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    EnemyShouldWithdrawEx(int index, bool alwaysSwitch)PokemonUnity.Combat.Battle
    EnemyUseItem(Items item, IBattler battler)PokemonUnity.Combat.Battle
    environmentPokemonUnity.Combat.Battle
    extramoneyPokemonUnity.Combat.Battle
    fieldPokemonUnity.Combat.Battle
    FindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonUnity.Combat.Battle
    FindPlayerBattler(int pkmnIndex)PokemonUnity.Combat.Battle
    fullparty1PokemonUnity.Combat.Battle
    fullparty2PokemonUnity.Combat.Battle
    futuresightPokemonUnity.Combat.Battle
    GainEXP()PokemonUnity.Combat.Battlevirtual
    GainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonUnity.Combat.Battle
    GetLastPokeInTeam(int index)PokemonUnity.Combat.Battle
    GetMegaRingName(int battlerIndex)PokemonUnity.Combat.Battle
    GetMoveScore(IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)PokemonUnity.Combat.Battle
    GetOwner(int battlerIndex)PokemonUnity.Combat.Battle
    GetOwnerIndex(int battlerIndex)PokemonUnity.Combat.Battle
    GetOwnerItems(int battlerIndex)PokemonUnity.Combat.Battle
    GetOwnerPartner(int battlerIndex)PokemonUnity.Combat.Battle
    HasMegaRing(int battlerIndex)PokemonUnity.Combat.Battle
    initialize(IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_BattleArena
    initialize(IPokeBattleArena_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_BattleArena
    PokemonUnity::Combat::Battle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)PokemonUnity.Combat.Battle
    PokemonUnity::Combat::Battle.PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonUnity::Combat::Battle.PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleArena.initialize(IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattleArena
    internalbattlePokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    internalbattlePokemonUnity.Combat.Battle
    IsDoubleBattler(int index)PokemonUnity.Combat.Battle
    IsOpposing(int index)PokemonUnity.Combat.Battle
    IsOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    IsUnlosableItem(IBattler pkmn, Items item)PokemonUnity.Combat.Battle
    ItemMenu(int i)PokemonUnity.Combat.Battlevirtual
    itemsPokemonUnity.Combat.Battle
    Judge()PokemonUnity.Combat.Battle
    JudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonUnity.Combat.Battlevirtual
    lastMoveUsedPokemonUnity.Combat.Battle
    lastMoveUserPokemonUnity.Combat.Battle
    MaxLevel(IPokemon[] party)PokemonUnity.Combat.Battle
    LearnMove(int pkmnIndex, Moves move)PokemonUnity.Combat.Battle
    MaxLevel(IPokemon[] party)PokemonUnity.Combat.Battle
    MaxLevelFromIndex(int index)PokemonUnity.Combat.Battle
    megaEvolutionPokemonUnity.Combat.Battle
    MegaEvolve(int index)PokemonUnity.Combat.Battle
    MessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonUnity.Combat.Battle
    mindPokemonUnity.Combat.PokeBattle_BattleArena
    nextPickupUsePokemonUnity.Combat.Battle
    opponentPokemonUnity.Combat.Battle
    MindScore(IBattleMove move)PokemonUnity.Combat.PokeBattle_BattleArena
    nextPickupUsePokemonUnity.Combat.Battle
    OnActiveAll()PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    OnActiveOne(IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    opponentPokemonUnity.Combat.Battle
    OpposingParty(int index)PokemonUnity.Combat.Battle
    OwnedByPlayer(int index)PokemonUnity.Combat.Battle
    Party(int index)PokemonUnity.Combat.Battle
    party1PokemonUnity.Combat.Battle
    party1orderPokemonUnity.Combat.Battle
    party2PokemonUnity.Combat.Battle
    party2orderPokemonUnity.Combat.Battle
    partyindexesPokemonUnity.Combat.PokeBattle_BattleArena
    pbAbort()PokemonUnity.Combat.Battlevirtual
    pbAddToPlayerParty(IPokemon pokemon)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattleArena.pbAddToPlayerParty(IBattler pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAIRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAllFainted(IPokemon[] party)PokemonUnity.Combat.Battle
    pbAnimation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
    pbAttackPhase()PokemonUnity.Combat.Battle
    pbAutoChooseMove(int idxPokemon, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
    pbAutoFightMenu(int i)PokemonUnity.Combat.Battlevirtual
    pbBelongsToPlayer(int battlerIndex)PokemonUnity.Combat.Battle
    pbBetterBaseDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)PokemonUnity.Combat.Battle
    pbCall(int index)PokemonUnity.Combat.Battle
    pbCanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanChooseNonActive(int index)PokemonUnity.Combat.Battle
    pbCanMegaEvolve(int index)PokemonUnity.Combat.Battle
    pbCanRun(int idxPokemon)PokemonUnity.Combat.Battle
    pbCanShowCommands(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanShowFightMenu(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonUnity.Combat.Battle
    pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    pbCheckGlobalAbility(Abilities a)PokemonUnity.Combat.Battle
    pbChooseBestNewEnemy(int index, IPokemon[] party, int[] enemies)PokemonUnity.Combat.Battle
    pbChooseMoves(int index)PokemonUnity.Combat.Battle
    pbChoseMove(int i, Moves move)PokemonUnity.Combat.Battle
    pbChoseMoveFunctionCode(int i, Attack.Data.Effects code)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.pbChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCommandMenu(int i)PokemonUnity.Combat.Battlevirtual
    pbCommandPhase()PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    pbCommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
    pbDbgPlayerOnly(int idx)PokemonUnity.Combat.Battle
    pbDebugUpdate()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnDraw()PokemonUnity.Combat.Battlevirtual
    pbDecisionOnTime()PokemonUnity.Combat.Battle
    pbDecisionOnTime2()PokemonUnity.Combat.Battle
    pbDefaultChooseEnemyCommand(int index)PokemonUnity.Combat.Battle
    pbDefaultChooseNewEnemy(int index, IPokemon[] party)PokemonUnity.Combat.Battle
    pbDisplay(string msg)PokemonUnity.Combat.Battlevirtual
    pbDisplayBrief(string msg)PokemonUnity.Combat.Battlevirtual
    pbDisplayConfirm(string msg)PokemonUnity.Combat.Battlevirtual
    pbDisplayPaused(string msg)PokemonUnity.Combat.Battlevirtual
    pbDoubleBattleAllowed()PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    pbEndOfBattle(bool canlose=false)PokemonUnity.Combat.Battle
    pbEndOfRoundPhase()PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    pbEnemyItemAlreadyUsed(int index, Items item, Items[] items)PokemonUnity.Combat.Battle
    pbEnemyItemToUse(int index)PokemonUnity.Combat.Battle
    pbEnemyShouldMegaEvolve(int index)PokemonUnity.Combat.Battle
    pbEnemyShouldUseItem(int index)PokemonUnity.Combat.Battle
    pbEnemyShouldWithdraw(int index)PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    pbEnemyShouldWithdrawEx(int index, bool alwaysSwitch)PokemonUnity.Combat.Battle
    pbEnemyUseItem(Items item, IBattler battler)PokemonUnity.Combat.Battle
    pbFindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonUnity.Combat.Battle
    pbFindPlayerBattler(int pkmnIndex)PokemonUnity.Combat.Battle
    pbGainEXP()PokemonUnity.Combat.Battlevirtual
    pbGainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonUnity.Combat.Battle
    pbGetLastPokeInTeam(int index)PokemonUnity.Combat.Battle
    pbGetMegaRingName(int battlerIndex)PokemonUnity.Combat.Battle
    pbGetMoveScore(IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)PokemonUnity.Combat.Battle
    pbGetOwner(int battlerIndex)PokemonUnity.Combat.Battle
    pbGetOwnerIndex(int battlerIndex)PokemonUnity.Combat.Battle
    pbGetOwnerItems(int battlerIndex)PokemonUnity.Combat.Battle
    pbGetOwnerPartner(int battlerIndex)PokemonUnity.Combat.Battle
    pbHasMegaRing(int battlerIndex)PokemonUnity.Combat.Battle
    pbIsDoubleBattler(int index)PokemonUnity.Combat.Battle
    pbIsOpposing(int index)PokemonUnity.Combat.Battle
    pbIsOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    pbIsUnlosableItem(IBattler pkmn, Items item)PokemonUnity.Combat.Battle
    pbItemMenu(int i)PokemonUnity.Combat.Battlevirtual
    pbJudge()PokemonUnity.Combat.Battle
    pbJudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonUnity.Combat.Battlevirtual
    pbLearnMove(int pkmnIndex, Moves move)PokemonUnity.Combat.Battle
    pbMaxLevel(IPokemon[] party)PokemonUnity.Combat.Battle
    pbMaxLevelFromIndex(int index)PokemonUnity.Combat.Battle
    pbMegaEvolve(int index)PokemonUnity.Combat.Battle
    pbMessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonUnity.Combat.Battle
    pbMindScore(PokemonEssentials.Interface.PokeBattle.IBattleMove move)PokemonUnity.Combat.PokeBattle_BattleArena
    pbOnActiveAll()PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    pbOnActiveOne(PokemonEssentials.Interface.PokeBattle.IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    pbOpposingParty(int index)PokemonUnity.Combat.Battle
    pbOwnedByPlayer(int index)PokemonUnity.Combat.Battle
    pbParty(int index)PokemonUnity.Combat.Battle
    pbPartyGetOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    pbPartyLength(int battlerIndex)PokemonUnity.Combat.Battle
    pbPlayer()PokemonUnity.Combat.Battle
    pbPokemonCount(IPokemon[] party)PokemonUnity.Combat.Battle
    pbPrimalReversion(int index)PokemonUnity.Combat.Battle
    pbPrimordialWeather()PokemonUnity.Combat.Battle
    pbPriority(bool ignorequickclaw=false, bool log=false)PokemonUnity.Combat.Battle
    pbRandom(int index)PokemonUnity.Combat.Battlevirtual
    pbRecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonUnity.Combat.Battle
    pbRegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonUnity.Combat.Battle
    pbRegisterMegaEvolution(int index)PokemonUnity.Combat.Battle
    pbRegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
    pbRegisterSwitch(int idxPokemon, int idxOther)PokemonUnity.Combat.Battlevirtual
    pbRegisterTarget(int idxPokemon, int idxTarget)PokemonUnity.Combat.Battlevirtual
    pbRemoveFromParty(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    pbReplace(int index, int newpoke, bool batonpass=false)PokemonUnity.Combat.Battle
    pbRoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill)PokemonUnity.Combat.Battle
    pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)PokemonUnity.Combat.Battle
    pbRoughStat(IBattler battler, Stats stat, int skill)PokemonUnity.Combat.Battle
    pbRun(int idxPokemon, bool duringBattle=false)PokemonUnity.Combat.Battlevirtual
    pbSecondPartyBegin(int battlerIndex)PokemonUnity.Combat.Battle
    pbSendOut(int index, IPokemon pokemon)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattleArena.pbSendOut(int index, IBattler pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSetSeen(IPokemon pokemon)PokemonUnity.Combat.Battle
    pbShowCommands(string msg, string[] commands, bool cancancel=true)PokemonUnity.Combat.Battle
    pbShowCommands(string msg, string[] commands, int cancancel)PokemonUnity.Combat.Battle
    pbStartBattle(bool canlose=false)PokemonUnity.Combat.Battlevirtual
    pbStartBattleCore(bool canlose)PokemonUnity.Combat.Battle
    pbStdDev(int[] scores)PokemonUnity.Combat.Battle
    pbStorePokemon(IPokemon pokemon)PokemonUnity.Combat.Battlevirtual
    pbSwitch(bool favorDraws=false)PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    pbSwitchInBetween(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battlevirtual
    pbSwitchPlayer(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battle
    pbThrowPokeball(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonUnity.Combat.Battlevirtual
    pbThrowPokeBall(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonEssentials.Interface.PokeBattle.IBattleCommon
    pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Battle
    pbTypeModifier2(IBattler battlerThis, IBattler battlerOther)PokemonUnity.Combat.Battle
    pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleShadowPokemon.pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon
    pbWeatherPokemonUnity.Combat.Battle
    peerPokemonUnity.Combat.Battle
    playerPokemonUnity.Combat.Battle
    PokeBattle_BattleArena(PokemonEssentials.Interface.PokeBattle.IPokeBattleArena_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_BattleArena
    PokemonCount(IPokemon[] party)PokemonUnity.Combat.Battle
    priorityPokemonUnity.Combat.Battle
    PartyGetOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    partyindexesPokemonUnity.Combat.PokeBattle_BattleArena
    PartyLength(int battlerIndex)PokemonUnity.Combat.Battle
    peerPokemonUnity.Combat.Battleprotected
    pickupUsePokemonUnity.Combat.Battleprotected
    Player()PokemonUnity.Combat.Battle
    playerPokemonUnity.Combat.Battle
    PokeBattle_BattleArena(IPokeBattleArena_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_BattleArena
    PokemonCount(IPokemon[] party)PokemonUnity.Combat.Battle
    PrimalReversion(int index)PokemonUnity.Combat.Battle
    PrimordialWeather()PokemonUnity.Combat.Battle
    Priority(bool ignorequickclaw=false, bool log=false)PokemonUnity.Combat.Battle
    priorityPokemonUnity.Combat.Battleprotected
    Random(int index)PokemonUnity.Combat.Battlevirtual
    RecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonUnity.Combat.Battle
    RegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonUnity.Combat.Battle
    RegisterMegaEvolution(int index)PokemonUnity.Combat.Battle
    RegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
    RegisterSwitch(int idxPokemon, int idxOther)PokemonUnity.Combat.Battlevirtual
    RegisterTarget(int idxPokemon, int idxTarget)PokemonUnity.Combat.Battlevirtual
    RemoveFromParty(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    Replace(int index, int newpoke, bool batonpass=false)PokemonUnity.Combat.Battle
    RoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill)PokemonUnity.Combat.Battle
    RoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)PokemonUnity.Combat.Battle
    RoughStat(IBattler battler, Stats stat, int skill)PokemonUnity.Combat.Battle
    rulesPokemonUnity.Combat.Battle
    runCommandPokemonUnity.Combat.Battle
    scenePokemonUnity.Combat.Battle
    Run(int idxPokemon, bool duringBattle=false)PokemonUnity.Combat.Battlevirtual
    runCommandPokemonUnity.Combat.Battleprotected
    scenePokemonUnity.Combat.Battle
    SecondPartyBegin(int battlerIndex)PokemonUnity.Combat.Battle
    SendOut(int index, IPokemon pokemon)PokemonUnity.Combat.Battle
    SetSeen(IPokemon pokemon)PokemonUnity.Combat.Battle
    shiftStylePokemonUnity.Combat.Battle
    ShowCommands(string msg, string[] commands, bool cancancel=true)PokemonUnity.Combat.Battle
    ShowCommands(string msg, string[] commands, int cancancel)PokemonUnity.Combat.Battle
    sidesPokemonUnity.Combat.Battle
    skillPokemonUnity.Combat.PokeBattle_BattleArena
    snaggedpokemonPokemonUnity.Combat.Battle
    snaggedpokemonPokemonUnity.Combat.Battleprotected
    StartBattle(bool canlose=false)PokemonUnity.Combat.Battlevirtual
    StartBattleCore(bool canlose)PokemonUnity.Combat.Battle
    starthpPokemonUnity.Combat.PokeBattle_BattleArena
    StdDev(int[] scores)PokemonUnity.Combat.Battle
    StorePokemon(IPokemon pokemon)PokemonUnity.Combat.Battlevirtual
    strugglePokemonUnity.Combat.Battle
    successStatesPokemonUnity.Combat.Battle
    Switch(bool favorDraws=false)PokemonUnity.Combat.PokeBattle_BattleArenavirtual
    SwitchInBetween(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battlevirtual
    switchingPokemonUnity.Combat.Battle
    SwitchPlayer(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battle
    ThrowPokeball(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonUnity.Combat.Battlevirtual
    ToString(int battlerindex, int pokemonindex)PokemonUnity.Combat.Battle
    turncountPokemonUnity.Combat.Battle
    usepriorityPokemonUnity.Combat.Battle
    TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Battle
    TypeModifier2(IBattler battlerThis, IBattler battlerOther)PokemonUnity.Combat.Battle
    UseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
    UseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
    usepriorityPokemonUnity.Combat.Battleprotected
    weatherPokemonUnity.Combat.Battle
    weatherdurationPokemonUnity.Combat.Battle
    \ No newline at end of file + WeatherPokemonUnity.Combat.Battle + weatherdurationPokemonUnity.Combat.Battle + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena.cshtml index d37e51680..fc7840e9c 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena.cshtml @@ -24,568 +24,565 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_BattleArena:
    PokemonUnity.Combat.Battle -PokemonEssentials.Interface.PokeBattle.IBattleArena +PokemonEssentials.Interface.Battle.IBattleArena +PokemonEssentials.Interface.PokeBattle.IBattleArena PokemonEssentials.Interface.PokeBattle.IBattleAI PokemonEssentials.Interface.PokeBattle.IBattle -PokemonUnity.IHasDisplayMessage PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon PokemonEssentials.Interface.PokeBattle.IBattleClause -PokemonEssentials.Interface.PokeBattle.IBattle +PokemonEssentials.Interface.Battle.IBattleType +PokemonEssentials.Interface.PokeBattle.IBattle PokemonEssentials.Interface.PokeBattle.IBattleCommon -PokemonEssentials.Interface.PokeBattle.IBattleCommon +PokemonEssentials.Interface.PokeBattle.IBattleCommon
    - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Public Member Functions

    void initialize (PokemonEssentials.Interface.PokeBattle.IPokeBattleArena_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)
     
     PokeBattle_BattleArena (PokemonEssentials.Interface.PokeBattle.IPokeBattleArena_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)
     
    override bool pbDoubleBattleAllowed ()
     
    override bool pbEnemyShouldWithdraw (int index)
     
    override bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    override void pbSwitch (bool favorDraws=false)
     
    override void pbOnActiveAll ()
     
    override bool pbOnActiveOne (PokemonEssentials.Interface.PokeBattle.IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    int pbMindScore (PokemonEssentials.Interface.PokeBattle.IBattleMove move)
     
    override void pbCommandPhase ()
     
    override void pbEndOfRoundPhase ()
     
     PokeBattle_BattleArena (IPokeBattleArena_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    PokemonEssentials.Interface.PokeBattle.IBattleArena initialize (IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    PokemonEssentials.Interface.PokeBattle.IBattleArena initialize (IPokeBattleArena_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
     
    override bool DoubleBattleAllowed ()
     
    override bool EnemyShouldWithdraw (int index)
     
    override bool CanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    override void Switch (bool favorDraws=false)
     
    override void OnActiveAll ()
     
    override bool OnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    int MindScore (IBattleMove move)
     
    override void CommandPhase ()
     
    override void EndOfRoundPhase ()
     
    - Public Member Functions inherited from PokemonUnity.Combat.Battle
    int pbGetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
     Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier2 (IBattler battlerThis, IBattler battlerOther)
     
    int pbRoughStat (IBattler battler, Stats stat, int skill)
     
    int pbBetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
     
    int pbRoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
     
    int pbRoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
     
    void pbChooseMoves (int index)
     Choose a move to use. More...
     
    bool pbEnemyShouldMegaEvolve (int index)
     Decide whether the opponent should Mega Evolve their Pokémon. More...
     
    bool pbEnemyShouldUseItem (int index)
     
    bool pbEnemyItemAlreadyUsed (int index, Items item, Items[] items)
     
    Items pbEnemyItemToUse (int index)
     
    virtual bool pbEnemyShouldWithdraw (int index)
     
    bool pbEnemyShouldWithdrawEx (int index, bool alwaysSwitch)
     
    int pbDefaultChooseNewEnemy (int index, IPokemon[] party)
     
    int pbChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
     
    void pbDefaultChooseEnemyCommand (int index)
     Choose an action. More...
     
    bool pbDbgPlayerOnly (int idx)
     
    int pbStdDev (int[] scores)
     
     Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
    int GetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
     Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier2 (IBattler battlerThis, IBattler battlerOther)
     
    int RoughStat (IBattler battler, Stats stat, int skill)
     
    int BetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
     
    int RoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
     
    int RoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
     
    void ChooseMoves (int index)
     Choose a move to use. More...
     
    bool EnemyShouldMegaEvolve (int index)
     Decide whether the opponent should Mega Evolve their Pokémon. More...
     
    bool EnemyShouldUseItem (int index)
     
    bool EnemyItemAlreadyUsed (int index, Items item, Items[] items)
     
    Items EnemyItemToUse (int index)
     
    virtual bool EnemyShouldWithdraw (int index)
     
    bool EnemyShouldWithdrawEx (int index, bool alwaysSwitch)
     
    int DefaultChooseNewEnemy (int index, IPokemon[] party)
     
    int ChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
     
    void DefaultChooseEnemyCommand (int index)
     Choose an action. More...
     
    bool DbgPlayerOnly (int idx)
     
    int StdDev (int[] scores)
     
     Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
     
     Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)
     
    virtual int pbRandom (int index)
     
    virtual void pbAbort ()
     
    virtual void pbStorePokemon (IPokemon pokemon)
     
    virtual void pbThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    virtual bool pbDoubleBattleAllowed ()
     
    bool pbIsOpposing (int index)
     
    bool pbOwnedByPlayer (int index)
     
    bool pbIsDoubleBattler (int index)
     
    virtual int Random (int index)
     
    virtual void Abort ()
     
    virtual void StorePokemon (IPokemon pokemon)
     
    virtual void ThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    virtual bool DoubleBattleAllowed ()
     
    bool IsOpposing (int index)
     
    bool OwnedByPlayer (int index)
     
    bool IsDoubleBattler (int index)
     
    string ToString (int battlerindex, int pokemonindex)
     Only used for Wish More...
     
    bool pbIsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler pbCheckGlobalAbility (Abilities a)
     
    ITrainer pbPlayer ()
     
    Items[] pbGetOwnerItems (int battlerIndex)
     
    void pbSetSeen (IPokemon pokemon)
     
    string pbGetMegaRingName (int battlerIndex)
     
    bool pbHasMegaRing (int battlerIndex)
     
    bool IsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler CheckGlobalAbility (Abilities a)
     
    ITrainer Player ()
     
    Items[] GetOwnerItems (int battlerIndex)
     
    void SetSeen (IPokemon pokemon)
     
    string GetMegaRingName (int battlerIndex)
     
    bool HasMegaRing (int battlerIndex)
     
    int PokemonCount (IPokemon[] party)
     
    bool AllFainted (IPokemon[] party)
     
    int MaxLevel (IPokemon[] party)
     
    int pbPokemonCount (IPokemon[] party)
     
    bool pbAllFainted (IPokemon[] party)
     
    int pbMaxLevel (IPokemon[] party)
     
    int pbMaxLevelFromIndex (int index)
     
    IPokemon[] pbParty (int index)
     Returns the trainer party of pokemon at this index? More...
     
    IPokemon[] pbOpposingParty (int index)
     
    int pbSecondPartyBegin (int battlerIndex)
     
    int pbPartyLength (int battlerIndex)
     
    int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int pbGetLastPokeInTeam (int index)
     
    IBattler pbFindPlayerBattler (int pkmnIndex)
     
    bool pbIsOwner (int battlerIndex, int partyIndex)
     
    ITrainer pbGetOwner (int battlerIndex)
     
    ITrainer pbGetOwnerPartner (int battlerIndex)
     
    int pbGetOwnerIndex (int battlerIndex)
     
    bool pbBelongsToPlayer (int battlerIndex)
     
    ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
     
    void pbAddToPlayerParty (IPokemon pokemon)
     
    void pbRemoveFromParty (int battlerIndex, int partyIndex)
     
    bool CanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    int MaxLevelFromIndex (int index)
     
    IPokemon[] Party (int index)
     Returns the trainer party of pokemon at this index? More...
     
    IPokemon[] OpposingParty (int index)
     
    int SecondPartyBegin (int battlerIndex)
     
    int PartyLength (int battlerIndex)
     
    int FindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int GetLastPokeInTeam (int index)
     
    IBattler FindPlayerBattler (int pkmnIndex)
     
    bool IsOwner (int battlerIndex, int partyIndex)
     
    ITrainer GetOwner (int battlerIndex)
     
    ITrainer GetOwnerPartner (int battlerIndex)
     
    int GetOwnerIndex (int battlerIndex)
     
    bool BelongsToPlayer (int battlerIndex)
     
    ITrainer PartyGetOwner (int battlerIndex, int partyIndex)
     
    void AddToPlayerParty (IPokemon pokemon)
     
    void RemoveFromParty (int battlerIndex, int partyIndex)
     
    virtual bool CanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool CanShowFightMenu (int idxPokemon)
     
    bool CanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    virtual void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
     
    virtual bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool pbChoseMove (int i, Moves move)
     
    bool pbChoseMoveFunctionCode (int i, Attack.Data.Effects code)
     
    virtual bool pbRegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
     
    virtual bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    virtual bool pbRegisterSwitch (int idxPokemon, int idxOther)
     
    bool pbCanChooseNonActive (int index)
     
    virtual void pbSwitch (bool favorDraws=false)
     
    void pbSendOut (int index, IPokemon pokemon)
     
    void pbReplace (int index, int newpoke, bool batonpass=false)
     
    bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    virtual int pbSwitchInBetween (int index, bool lax, bool cancancel)
     
    int pbSwitchPlayer (int index, bool lax, bool cancancel)
     
    bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void pbEnemyUseItem (Items item, IBattler battler)
     
    bool pbCanRun (int idxPokemon)
     
    virtual int pbRun (int idxPokemon, bool duringBattle=false)
     
    bool pbCanMegaEvolve (int index)
     
    void pbRegisterMegaEvolution (int index)
     
    void pbMegaEvolve (int index)
     
    void pbPrimalReversion (int index)
     
    void pbCall (int index)
     
    virtual void pbGainEXP ()
     
    void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void pbLearnMove (int pkmnIndex, Moves move)
     
    virtual void pbOnActiveAll ()
     
    virtual bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void pbPrimordialWeather ()
     
    BattleResults pbDecisionOnTime ()
     
    BattleResults pbDecisionOnTime2 ()
     
    void pbJudge ()
     
    virtual void pbDisplay (string msg)
     Displays a message on screen, and wait for player input More...
     
    virtual void pbDisplayPaused (string msg)
     
    virtual void pbDisplayBrief (string msg)
     Displays a message on screen, but will continue without player input after short delay More...
     
    virtual bool pbDisplayConfirm (string msg)
     
    void pbShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void pbShowCommands (string msg, string[] commands, int cancancel)
     
    void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    virtual BattleResults pbStartBattle (bool canlose=false)
     
    void pbStartBattleCore (bool canlose)
     
    virtual MenuCommands pbCommandMenu (int i)
     
    virtual KeyValuePair<Items, int?> pbItemMenu (int i)
     
    virtual bool pbAutoFightMenu (int i)
     
    virtual void pbCommandPhase ()
     
    void pbAttackPhase ()
     
    BattleResults pbEndOfBattle (bool canlose=false)
     
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    virtual BattleResults pbDecisionOnDraw ()
     
    virtual void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    virtual void pbEndOfRoundPhase ()
     
    int pbGetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
     Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier2 (IBattler battlerThis, IBattler battlerOther)
     
    int pbRoughStat (IBattler battler, Stats stat, int skill)
     
    int pbBetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
     
    int pbRoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
     
    int pbRoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
     
    void pbChooseMoves (int index)
     Choose a move to use. More...
     
    bool pbEnemyShouldMegaEvolve (int index)
     Decide whether the opponent should Mega Evolve their Pokémon. More...
     
    bool pbEnemyShouldUseItem (int index)
     
    bool pbEnemyItemAlreadyUsed (int index, Items item, Items[] items)
     
    Items pbEnemyItemToUse (int index)
     
    bool pbEnemyShouldWithdraw (int index)
     
    bool pbEnemyShouldWithdrawEx (int index, bool alwaysSwitch)
     
    int pbDefaultChooseNewEnemy (int index, IPokemon[] party)
     
    int pbChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
     
    void pbDefaultChooseEnemyCommand (int index)
     Choose an action. More...
     
    bool pbDbgPlayerOnly (int idx)
     
    int pbStdDev (int[] scores)
     
    virtual void AutoChooseMove (int idxPokemon, bool showMessages=true)
     
    virtual bool RegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool ChoseMove (int i, Moves move)
     
    bool ChoseMoveFunctionCode (int i, Attack.Data.Effects code)
     
    virtual bool RegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] Priority (bool ignorequickclaw=false, bool log=false)
     
    virtual bool CanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool CanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    virtual bool RegisterSwitch (int idxPokemon, int idxOther)
     
    bool CanChooseNonActive (int index)
     
    virtual void Switch (bool favorDraws=false)
     
    void SendOut (int index, IPokemon pokemon)
     
    void Replace (int index, int newpoke, bool batonpass=false)
     
    bool RecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void MessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    virtual int SwitchInBetween (int index, bool lax, bool cancancel)
     
    int SwitchPlayer (int index, bool lax, bool cancancel)
     
    bool UseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool RegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void EnemyUseItem (Items item, IBattler battler)
     
    bool CanRun (int idxPokemon)
     
    virtual int Run (int idxPokemon, bool duringBattle=false)
     
    bool CanMegaEvolve (int index)
     
    void RegisterMegaEvolution (int index)
     
    void MegaEvolve (int index)
     
    void PrimalReversion (int index)
     
    void Call (int index)
     
    virtual void GainEXP ()
     
    void GainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void LearnMove (int pkmnIndex, Moves move)
     
    virtual void OnActiveAll ()
     
    virtual bool OnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void PrimordialWeather ()
     
    BattleResults DecisionOnTime ()
     
    BattleResults DecisionOnTime2 ()
     
    void Judge ()
     
    virtual void Display (string msg)
     Displays a message on screen, and wait for player input More...
     
    virtual void DisplayPaused (string msg)
     
    virtual void DisplayBrief (string msg)
     Displays a message on screen, but will continue without player input after short delay More...
     
    virtual bool DisplayConfirm (string msg)
     
    void ShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void ShowCommands (string msg, string[] commands, int cancancel)
     
    void Animation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void CommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    virtual BattleResults StartBattle (bool canlose=false)
     
    void StartBattleCore (bool canlose)
     
    virtual MenuCommands CommandMenu (int i)
     
    virtual KeyValuePair<Items, int?> ItemMenu (int i)
     
    virtual bool AutoFightMenu (int i)
     
    virtual void CommandPhase ()
     
    void AttackPhase ()
     
    BattleResults EndOfBattle (bool canlose=false)
     
    bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    virtual BattleResults DecisionOnDraw ()
     
    virtual void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    virtual void EndOfRoundPhase ()
     
    int GetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
     Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier2 (IBattler battlerThis, IBattler battlerOther)
     
    int RoughStat (IBattler battler, Stats stat, int skill)
     
    int BetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
     
    int RoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
     
    int RoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
     
    void ChooseMoves (int index)
     Choose a move to use. More...
     
    bool EnemyShouldMegaEvolve (int index)
     Decide whether the opponent should Mega Evolve their Pokémon. More...
     
    bool EnemyShouldUseItem (int index)
     
    bool EnemyItemAlreadyUsed (int index, Items item, Items[] items)
     
    Items EnemyItemToUse (int index)
     
    bool EnemyShouldWithdraw (int index)
     
    bool EnemyShouldWithdrawEx (int index, bool alwaysSwitch)
     
    int DefaultChooseNewEnemy (int index, IPokemon[] party)
     
    int ChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
     
    void DefaultChooseEnemyCommand (int index)
     Choose an action. More...
     
    bool DbgPlayerOnly (int idx)
     
    int StdDev (int[] scores)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    void pbAbort ()
     
    IEnumerator pbDebugUpdate ()
     
    int pbRandom (int x)
     
    int pbAIRandom (int x)
     
    void Abort ()
     
    IEnumerator DebugUpdate ()
     
    int Random (int x)
     
    int AIRandom (int x)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    bool pbDoubleBattleAllowed ()
     
    bool pbIsOpposing (int index)
     
    bool pbOwnedByPlayer (int index)
     
    bool pbIsDoubleBattler (int index)
     
    bool DoubleBattleAllowed ()
     
    bool IsOpposing (int index)
     
    bool OwnedByPlayer (int index)
     
    bool IsDoubleBattler (int index)
     
    string ToString (int battlerindex, int pokemonindex)
     Only used for Wish More...
     
    bool pbIsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler pbCheckGlobalAbility (Abilities a)
     
    ITrainer pbPlayer ()
     
    Items[] pbGetOwnerItems (int battlerIndex)
     
    void pbSetSeen (IPokemon pokemon)
     
    string pbGetMegaRingName (int battlerIndex)
     
    bool pbHasMegaRing (int battlerIndex)
     
    int pbPokemonCount (IPokemon[] party)
     
    bool pbAllFainted (IPokemon[] party)
     
    int pbMaxLevel (IPokemon[] party)
     
    int pbMaxLevelFromIndex (int index)
     
    IPokemon[] pbParty (int index)
     Gets player party of selected battler More...
     
    IPokemon[] pbOpposingParty (int index)
     
    int pbSecondPartyBegin (int battlerIndex)
     
    int pbPartyLength (int battlerIndex)
     
    int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int pbGetLastPokeInTeam (int index)
     
    IBattler pbFindPlayerBattler (int pkmnIndex)
     
    bool pbIsOwner (int battlerIndex, int partyIndex)
     
    ITrainer pbGetOwner (int battlerIndex)
     
    ITrainer pbGetOwnerPartner (int battlerIndex)
     
    int pbGetOwnerIndex (int battlerIndex)
     
    bool pbBelongsToPlayer (int battlerIndex)
     
    ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
     
    void pbAddToPlayerParty (IBattler pokemon)
     
    void pbRemoveFromParty (int battlerIndex, int partyIndex)
     
    bool pbCanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool pbCanShowFightMenu (int idxPokemon)
     
    bool pbCanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
     
    bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool pbChoseMove (int i, Moves move)
     
    bool pbChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
     
    bool pbRegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
     
    bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    bool pbRegisterSwitch (int idxPokemon, int idxOther)
     
    bool pbCanChooseNonActive (int index)
     
    void pbSwitch (bool favorDraws=false)
     
    void pbSendOut (int index, IBattler pokemon)
     
    void pbReplace (int index, int newpoke, bool batonpass=false)
     
    bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    int pbSwitchInBetween (int index, bool lax, bool cancancel)
     
    int pbSwitchPlayer (int index, bool lax, bool cancancel)
     
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void pbEnemyUseItem (Items item, IBattler battler)
     
    bool pbCanRun (int idxPokemon)
     
    int pbRun (int idxPokemon, bool duringBattle=false)
     
    bool pbCanMegaEvolve (int index)
     
    void pbRegisterMegaEvolution (int index)
     
    void pbMegaEvolve (int index)
     
    void pbPrimalReversion (int index)
     
    void pbCall (int index)
     
    void pbGainEXP ()
     
    void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void pbLearnMove (int pkmnIndex, Moves move)
     
    void pbOnActiveAll ()
     
    bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void pbPrimordialWeather ()
     
    void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    BattleResults pbDecisionOnTime ()
     
    BattleResults pbDecisionOnTime2 ()
     
    BattleResults pbDecisionOnDraw ()
     
    void pbJudge ()
     
    void pbDisplay (string msg)
     
    void pbDisplayPaused (string msg)
     
    void pbDisplayBrief (string msg)
     
    bool pbDisplayConfirm (string msg)
     
    void pbShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    void pbStartBattleCore (bool canlose)
     
    MenuCommands pbCommandMenu (int i)
     
    KeyValuePair<Items, int?> pbItemMenu (int i)
     
    bool pbAutoFightMenu (int i)
     
    void pbCommandPhase ()
     
    void pbAttackPhase ()
     
    void pbEndOfRoundPhase ()
     
    BattleResults pbEndOfBattle (bool canlose=false)
     
    void pbStorePokemon (IPokemon pokemon)
     
    void pbThrowPokeBall (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    void pbDisplay (string v)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     
    BattleResults pbDecisionOnDraw ()
     
    void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    void pbEndOfRoundPhase ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleArena
    new IBattleArena initialize (IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    new bool pbDoubleBattleAllowed ()
     
    bool pbEnemyShouldWithdraw (int index)
     
    new bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    new void pbSwitch (bool favorDraws=false)
     
    new void pbOnActiveAll ()
     
    new bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    int pbMindScore (IBattleMove move)
     
    new void pbCommandPhase ()
     
    new void pbEndOfRoundPhase ()
     
    bool IsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler CheckGlobalAbility (Abilities a)
     
    ITrainer Player ()
     
    Items[] GetOwnerItems (int battlerIndex)
     
    void SetSeen (IPokemon pokemon)
     
    string GetMegaRingName (int battlerIndex)
     
    bool HasMegaRing (int battlerIndex)
     
    int PokemonCount (IPokemon[] party)
     
    bool AllFainted (IPokemon[] party)
     
    int MaxLevel (IPokemon[] party)
     
    int MaxLevelFromIndex (int index)
     
    IPokemon[] Party (int index)
     Gets player party of selected battler More...
     
    IPokemon[] OpposingParty (int index)
     
    int SecondPartyBegin (int battlerIndex)
     
    int PartyLength (int battlerIndex)
     
    int FindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int GetLastPokeInTeam (int index)
     
    IBattler FindPlayerBattler (int pkmnIndex)
     
    bool IsOwner (int battlerIndex, int partyIndex)
     
    ITrainer GetOwner (int battlerIndex)
     
    ITrainer GetOwnerPartner (int battlerIndex)
     
    int GetOwnerIndex (int battlerIndex)
     
    bool BelongsToPlayer (int battlerIndex)
     
    ITrainer PartyGetOwner (int battlerIndex, int partyIndex)
     
    void AddToPlayerParty (IPokemon pokemon)
     
    void RemoveFromParty (int battlerIndex, int partyIndex)
     
    bool CanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool CanShowFightMenu (int idxPokemon)
     
    bool CanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    void AutoChooseMove (int idxPokemon, bool showMessages=true)
     
    bool RegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool ChoseMove (int i, Moves move)
     
    bool ChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
     
    bool RegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] Priority (bool ignorequickclaw=false, bool log=false)
     
    bool CanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool CanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    bool RegisterSwitch (int idxPokemon, int idxOther)
     
    bool CanChooseNonActive (int index)
     
    void Switch (bool favorDraws=false)
     
    void SendOut (int index, IPokemon pokemon)
     
    void Replace (int index, int newpoke, bool batonpass=false)
     
    bool RecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void MessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    int SwitchInBetween (int index, bool lax, bool cancancel)
     
    int SwitchPlayer (int index, bool lax, bool cancancel)
     
    bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    bool UseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool RegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void EnemyUseItem (Items item, IBattler battler)
     
    bool CanRun (int idxPokemon)
     
    int Run (int idxPokemon, bool duringBattle=false)
     
    bool CanMegaEvolve (int index)
     
    void RegisterMegaEvolution (int index)
     
    void MegaEvolve (int index)
     
    void PrimalReversion (int index)
     
    void Call (int index)
     
    void GainEXP ()
     
    void GainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void LearnMove (int pkmnIndex, Moves move)
     
    void OnActiveAll ()
     
    bool OnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void PrimordialWeather ()
     
    void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    BattleResults DecisionOnTime ()
     
    BattleResults DecisionOnTime2 ()
     
    BattleResults DecisionOnDraw ()
     
    void Judge ()
     
    void Display (string msg)
     
    void DisplayPaused (string msg)
     
    void DisplayBrief (string msg)
     
    bool DisplayConfirm (string msg)
     
    void ShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void Animation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void CommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    BattleResults StartBattle (bool canlose=false)
     
    void StartBattleCore (bool canlose)
     
    MenuCommands CommandMenu (int i)
     
    KeyValuePair<Items, int?> ItemMenu (int i)
     
    bool AutoFightMenu (int i)
     
    void CommandPhase ()
     
    void AttackPhase ()
     
    void EndOfRoundPhase ()
     
    BattleResults EndOfBattle (bool canlose=false)
     
    void StorePokemon (IPokemon pokemon)
     
    void ThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     
    BattleResults DecisionOnDraw ()
     
    void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    void EndOfRoundPhase ()
     
    IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
     
    IBattleArena initialize (IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    new bool DoubleBattleAllowed ()
     
    bool EnemyShouldWithdraw (int index)
     
    new bool CanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    new void Switch (bool favorDraws=false)
     
    new void OnActiveAll ()
     
    new bool OnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    int MindScore (IBattleMove move)
     
    new void CommandPhase ()
     
    new void EndOfRoundPhase ()
     
    @@ -602,7 +599,7 @@ Properties - + @@ -617,7 +614,7 @@ Properties - + @@ -655,40 +652,40 @@ Properties - + - + - + - + - + - + - + - + @@ -697,7 +694,7 @@ Properties - + @@ -721,29 +718,18 @@ Properties - + - + - - - - - - - - - - - - - + + @@ -809,7 +795,7 @@ Properties - + @@ -863,16 +849,39 @@ Properties - - - - + + +

    Properties

    int count [get]
     
    - Properties inherited from PokemonUnity.Combat.Battle
    IScene scene [get, protected set]
    IScene scene [get, protected set]
     Scene object for this battle More...
     
    BattleResults decision [get, set]
    bool cantescape [get, set]
     True if player can't escape More...
     
    bool canLose [get]
    bool canLose [get, protected set]
     If game cannot progress UNLESS the player is victor of match. False if there are no consequences to player's defeat. More...
     
    bool shiftStyle [get, set]
    bool fullparty2 [get, set]
     True if opponent's party's max size is 6 instead of 3 More...
     
    IBattler[] battlers [get, protected set]
    IBattler[] battlers [get]
     Currently active Pokémon More...
     
    Items[][] items [get, set]
     Items held by opponents More...
     
    IEffectsSide[] sides [get]
    IEffectsSide[] sides [get, protected set]
     Effects common to each side of a battle More...
     
    IEffectsField field [get]
    IEffectsField field [get, protected set]
     Effects common to the whole of a battle More...
     
    Environments environment [get, set]
     Battle surroundings; Environment node is used for background visual, that's displayed behind the floor tile More...
     
    Weather weather [get, set]
     Current weather, custom methods should use pbWeather instead More...
     Current weather, custom methods should use Weather instead More...
     
    int weatherduration [get, set]
     Duration of current weather, or -1 if indefinite More...
     
    bool switching [get]
    bool switching [get, protected set]
     True if during the switching phase of the round More...
     
    bool futuresight [get]
    bool futuresight [get, protected set]
     True if Future Sight is hitting More...
     
    IBattleMove struggle [get]
    IBattleMove struggle [get, protected set]
     The Struggle move More...
     
    IBattleChoice[] choices [get, protected set]
     Choices made by each Pokémon this round More...
     
    ISuccessState[] successStates [get]
    ISuccessState[] successStates [get, protected set]
     Success states More...
     
    Moves lastMoveUsed [get, set]
    int lastMoveUser [get, set]
     Last move user More...
     
    int[][] megaEvolution [get]
    int[][] megaEvolution [get, protected set]
     Battle index of each trainer's Pokémon to Mega Evolve More...
     
    bool amuletcoin [get, protected set]
    string endspeechwin2 [get, set]
     Speech by opponent when opponent wins More...
     
    IDictionary< string, bool > rules [get]
    IDictionary< string, bool > rules [get, protected set]
     
    int turncount [get, set]
     Counter to track number of turns for battle More...
     
    IBattler[] priority [get, protected set]
    IBattler[] priority [get]
     
    List< int > snaggedpokemon [get]
     
    int runCommand [get]
     Each time you use the option to flee, the counter goes up. More...
     
    int nextPickupUse [get]
     Another counter that has something to do with tracking items picked up during a battle More...
     
    bool controlPlayer [get, set]
     
    bool usepriority [get, set]
     
    IBattlePeer peer [get, set]
     
    Weather pbWeather [get]
     
    virtual Weather Weather [get]
     
    - Properties inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    IScene scene [get]
     Scene object for this battle More...
     Battle surroundings More...
     
    Weather weather [get, set]
     Current weather, custom methods should use pbWeather instead More...
     Current weather, custom methods should use Weather instead More...
     
    int weatherduration [get, set]
     Duration of current weather, or -1 if indefinite More...
     
    int turncount [get, set]
     
    bool controlPlayer [get, set]
     
    Weather pbWeather [get]
     
    Weather Weather [get]
     
    int nextPickupUse [get]
     
    + + + + + + + + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Protected Member Functions inherited from PokemonUnity.Combat.Battle
     Battle ()
     using this to override constructor behavior on inherited... More...
     
    - Protected Attributes inherited from PokemonUnity.Combat.Battle
    IBattler[] _battlers
     
    IBattler[] _priority
     
    List< int > snaggedpokemon
     
    int runCommand
     Each time you use the option to flee, the counter goes up. More...
     
    int pickupUse
     
    bool controlPlayer
     
    bool usepriority
     
    IBattlePeer peer
     

    Constructor & Destructor Documentation

    - -

    ◆ PokeBattle_BattleArena()

    + +

    ◆ PokeBattle_BattleArena()

    @@ -880,31 +889,31 @@ Properties PokemonUnity.Combat.PokeBattle_BattleArena.PokeBattle_BattleArena ( - PokemonEssentials.Interface.PokeBattle.IPokeBattleArena_Scene  + IPokeBattleArena_Scene  scene, - PokemonEssentials.Interface.PokeBattle.IPokemon[]  + IPokemon[]  p1, - PokemonEssentials.Interface.PokeBattle.IPokemon[]  + IPokemon[]  p2, - PokemonEssentials.Interface.PokeBattle.ITrainer[]  + ITrainer[]  player, - PokemonEssentials.Interface.PokeBattle.ITrainer[]  + ITrainer[]  opponent  ) @@ -913,49 +922,8 @@ Properties

    Member Function Documentation

    - -

    ◆ initialize()

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    void PokemonUnity.Combat.PokeBattle_BattleArena.initialize (PokemonEssentials.Interface.PokeBattle.IPokeBattleArena_Scene scene,
    PokemonEssentials.Interface.PokeBattle.IPokemon[] p1,
    PokemonEssentials.Interface.PokeBattle.IPokemon[] p2,
    PokemonEssentials.Interface.PokeBattle.ITrainer[] player,
    PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent  )
    -
    - -
    -
    - -

    ◆ pbCanSwitchLax()

    + +

    ◆ CanSwitchLax()

    @@ -964,7 +932,7 @@ Properties - + @@ -989,12 +957,12 @@ Properties
    override bool PokemonUnity.Combat.PokeBattle_BattleArena.pbCanSwitchLax override bool PokemonUnity.Combat.PokeBattle_BattleArena.CanSwitchLax ( int  idxPokemon,
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbCommandPhase()

    + +

    ◆ CommandPhase()

    @@ -1003,7 +971,7 @@ Properties - + @@ -1016,12 +984,43 @@ Properties
    override void PokemonUnity.Combat.PokeBattle_BattleArena.pbCommandPhase override void PokemonUnity.Combat.PokeBattle_BattleArena.CommandPhase ( )
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbDoubleBattleAllowed()

    + +

    ◆ CreateBattle()

    + +
    +
    + + + + + + + + + + + + + + + + + + + +
    IBattle PokemonUnity.Combat.PokeBattle_BattleArena.CreateBattle (IPokeBattle_Scene scene,
    ITrainer[] trainer1,
    ITrainer[] trainer2  )
    +
    +
    + +

    ◆ DoubleBattleAllowed()

    @@ -1030,7 +1029,7 @@ Properties - + @@ -1043,12 +1042,12 @@ Properties
    override bool PokemonUnity.Combat.PokeBattle_BattleArena.pbDoubleBattleAllowed override bool PokemonUnity.Combat.PokeBattle_BattleArena.DoubleBattleAllowed ( )
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbEndOfRoundPhase()

    + +

    ◆ EndOfRoundPhase()

    @@ -1057,7 +1056,7 @@ Properties - + @@ -1070,12 +1069,12 @@ Properties
    override void PokemonUnity.Combat.PokeBattle_BattleArena.pbEndOfRoundPhase override void PokemonUnity.Combat.PokeBattle_BattleArena.EndOfRoundPhase ( )
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbEnemyShouldWithdraw()

    + +

    ◆ EnemyShouldWithdraw()

    @@ -1084,7 +1083,7 @@ Properties - + @@ -1098,32 +1097,116 @@ Properties
    override bool PokemonUnity.Combat.PokeBattle_BattleArena.pbEnemyShouldWithdraw override bool PokemonUnity.Combat.PokeBattle_BattleArena.EnemyShouldWithdraw ( int  index)
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    + +
    +
    + +

    ◆ initialize() [1/2]

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    PokemonEssentials.Interface.PokeBattle.IBattleArena PokemonUnity.Combat.PokeBattle_BattleArena.initialize (IPokeBattle_Scene scene,
    IPokemon[] p1,
    IPokemon[] p2,
    ITrainer[] player,
    ITrainer[] opponent  )
    +
    +
    + +

    ◆ initialize() [2/2]

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    PokemonEssentials.Interface.PokeBattle.IBattleArena PokemonUnity.Combat.PokeBattle_BattleArena.initialize (IPokeBattleArena_Scene scene,
    IPokemon[] p1,
    IPokemon[] p2,
    ITrainer[] player,
    ITrainer[] opponent  )
    +
    - -

    ◆ pbMindScore()

    + +

    ◆ MindScore()

    - + - +
    int PokemonUnity.Combat.PokeBattle_BattleArena.pbMindScore int PokemonUnity.Combat.PokeBattle_BattleArena.MindScore (PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove  move)
    - -

    ◆ pbOnActiveAll()

    + +

    ◆ OnActiveAll()

    @@ -1132,7 +1215,7 @@ Properties - + @@ -1145,12 +1228,12 @@ Properties
    override void PokemonUnity.Combat.PokeBattle_BattleArena.pbOnActiveAll override void PokemonUnity.Combat.PokeBattle_BattleArena.OnActiveAll ( )
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbOnActiveOne()

    + +

    ◆ OnActiveOne()

    @@ -1159,9 +1242,9 @@ Properties - + - + @@ -1184,12 +1267,12 @@ Properties
    override bool PokemonUnity.Combat.PokeBattle_BattleArena.pbOnActiveOne override bool PokemonUnity.Combat.PokeBattle_BattleArena.OnActiveOne (PokemonEssentials.Interface.PokeBattle.IBattler IBattler  pkmn,
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbSwitch()

    + +

    ◆ Switch()

    @@ -1198,7 +1281,7 @@ Properties - + @@ -1212,7 +1295,7 @@ Properties
    override void PokemonUnity.Combat.PokeBattle_BattleArena.pbSwitch override void PokemonUnity.Combat.PokeBattle_BattleArena.Switch ( bool  favorDraws = false)
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    @@ -1352,3 +1435,4 @@ Properties
    The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena.png index 18c34ae6d..e95d1fafa 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player-members.cshtml deleted file mode 100644 index 96af77dcc..000000000 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player-members.cshtml +++ /dev/null @@ -1,178 +0,0 @@ -@{ - Page.Title = "Member List"; -} - -@section breadcrumbs { - -} - -@section headertitle { -
    PokemonUnity.Combat.PokeBattle_BattleArenaPlayer Member List
    -} - - -

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_BattleArenaPlayer, including all inherited members.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    amuletcoinPokemonEssentials.Interface.PokeBattle.IBattle
    battlersPokemonEssentials.Interface.PokeBattle.IBattle
    battlescenePokemonEssentials.Interface.PokeBattle.IBattle
    cantescapePokemonEssentials.Interface.PokeBattle.IBattle
    choicesPokemonEssentials.Interface.PokeBattle.IBattle
    controlPlayerPokemonEssentials.Interface.PokeBattle.IBattle
    debugPokemonEssentials.Interface.PokeBattle.IBattle
    decisionPokemonEssentials.Interface.PokeBattle.IBattle
    doublebattlePokemonEssentials.Interface.PokeBattle.IBattle
    doublemoneyPokemonEssentials.Interface.PokeBattle.IBattle
    endspeechPokemonEssentials.Interface.PokeBattle.IBattle
    endspeech2PokemonEssentials.Interface.PokeBattle.IBattle
    endspeechwinPokemonEssentials.Interface.PokeBattle.IBattle
    endspeechwin2PokemonEssentials.Interface.PokeBattle.IBattle
    environmentPokemonEssentials.Interface.PokeBattle.IBattle
    extramoneyPokemonEssentials.Interface.PokeBattle.IBattle
    fieldPokemonEssentials.Interface.PokeBattle.IBattle
    fullparty1PokemonEssentials.Interface.PokeBattle.IBattle
    fullparty2PokemonEssentials.Interface.PokeBattle.IBattle
    futuresightPokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >.initialize(IPokeBattle_Scene scene, IBattle battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.PokemonEssentials::Interface::PokeBattle::IBattleArena.initialize(IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattleArena
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.IBattlePlayerModule< IBattleArena >.initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattleArena >
    internalbattlePokemonEssentials.Interface.PokeBattle.IBattle
    itemsPokemonEssentials.Interface.PokeBattle.IBattle
    lastMoveUsedPokemonEssentials.Interface.PokeBattle.IBattle
    lastMoveUserPokemonEssentials.Interface.PokeBattle.IBattle
    megaEvolutionPokemonEssentials.Interface.PokeBattle.IBattle
    nextPickupUsePokemonEssentials.Interface.PokeBattle.IBattle
    opponentPokemonEssentials.Interface.PokeBattle.IBattle
    party1PokemonEssentials.Interface.PokeBattle.IBattle
    party1orderPokemonEssentials.Interface.PokeBattle.IBattle
    party2PokemonEssentials.Interface.PokeBattle.IBattle
    party2orderPokemonEssentials.Interface.PokeBattle.IBattle
    pbAbort()PokemonEssentials.Interface.PokeBattle.IBattle
    pbAddToPlayerParty(IBattler pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAIRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAllFainted(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAnimation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAttackPhase()PokemonEssentials.Interface.PokeBattle.IBattle
    pbAutoChooseMove(int idxPokemon, bool showMessages=true)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAutoFightMenu(int i)PokemonEssentials.Interface.PokeBattle.IBattle
    pbBelongsToPlayer(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCall(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanChooseNonActive(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanMegaEvolve(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanRun(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanShowCommands(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanShowFightMenu(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonEssentials.Interface.PokeBattle.IBattleArena
    pbCheckGlobalAbility(Abilities a)PokemonEssentials.Interface.PokeBattle.IBattle
    pbChoseMove(int i, Moves move)PokemonEssentials.Interface.PokeBattle.IBattle
    pbChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCommandMenu(int i)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCommandPhase()PokemonEssentials.Interface.PokeBattle.IBattleArena
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >.pbCommandPhaseCore()PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.pbCommandPhaseCore()PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattleArena >
    pbCommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDebugUpdate()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnDraw()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnTime()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnTime2()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplay(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplayBrief(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplayConfirm(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >.pbDisplayPaused(string str)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.PokemonEssentials::Interface::PokeBattle::IBattleArena.pbDisplayPaused(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.IBattlePlayerModule< IBattleArena >.pbDisplayPaused(string str)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattleArena >
    pbDoubleBattleAllowed()PokemonEssentials.Interface.PokeBattle.IBattleArena
    pbEndOfBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbEndOfRoundPhase()PokemonEssentials.Interface.PokeBattle.IBattleArena
    pbEnemyShouldWithdraw(int index)PokemonEssentials.Interface.PokeBattle.IBattleArena
    pbEnemyUseItem(Items item, IBattler battler)PokemonEssentials.Interface.PokeBattle.IBattle
    pbFindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonEssentials.Interface.PokeBattle.IBattle
    pbFindPlayerBattler(int pkmnIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGainEXP()PokemonEssentials.Interface.PokeBattle.IBattle
    pbGainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetLastPokeInTeam(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetMegaRingName(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwner(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerIndex(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerItems(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerPartner(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbHasMegaRing(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsDoubleBattler(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsOpposing(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsOwner(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsUnlosableItem(IBattler pkmn, Items item)PokemonEssentials.Interface.PokeBattle.IBattle
    pbItemMenu(int i)PokemonEssentials.Interface.PokeBattle.IBattle
    pbJudge()PokemonEssentials.Interface.PokeBattle.IBattle
    pbJudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonEssentials.Interface.PokeBattle.IBattle
    pbLearnMove(int pkmnIndex, Moves move)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMaxLevel(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMaxLevelFromIndex(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMegaEvolve(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMindScore(IBattleMove move)PokemonEssentials.Interface.PokeBattle.IBattleArena
    pbOnActiveAll()PokemonEssentials.Interface.PokeBattle.IBattleArena
    pbOnActiveOne(IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonEssentials.Interface.PokeBattle.IBattleArena
    pbOpposingParty(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbOwnedByPlayer(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbParty(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPartyGetOwner(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPartyLength(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPlayer()PokemonEssentials.Interface.PokeBattle.IBattle
    pbPokemonCount(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPrimalReversion(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPrimordialWeather()PokemonEssentials.Interface.PokeBattle.IBattle
    pbPriority(bool ignorequickclaw=false, bool log=false)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >.pbRandom(int num)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.PokemonEssentials::Interface::PokeBattle::IBattleArena.pbRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.IBattlePlayerModule< IBattleArena >.pbRandom(int num)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattleArena >
    pbRecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterMegaEvolution(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterSwitch(int idxPokemon, int idxOther)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterTarget(int idxPokemon, int idxTarget)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRemoveFromParty(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbReplace(int index, int newpoke, bool batonpass=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRun(int idxPokemon, bool duringBattle=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSecondPartyBegin(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSendOut(int index, IBattler pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSetSeen(IPokemon pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbShowCommands(string msg, string[] commands, bool cancancel=true)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >.pbStartBattle(bool canlose=false)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.PokemonEssentials::Interface::PokeBattle::IBattleArena.pbStartBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.IBattlePlayerModule< IBattleArena >.pbStartBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattleArena >
    pbStartBattleCore(bool canlose)PokemonEssentials.Interface.PokeBattle.IBattle
    pbStorePokemon(IPokemon pokemon)PokemonEssentials.Interface.PokeBattle.IBattleCommon
    pbSwitch(bool favorDraws=false)PokemonEssentials.Interface.PokeBattle.IBattleArena
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >.pbSwitchInBetween(int i1, int i2, bool i3)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.PokemonEssentials::Interface::PokeBattle::IBattleArena.pbSwitchInBetween(int index, bool lax, bool cancancel)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleArenaPlayer.IBattlePlayerModule< IBattleArena >.pbSwitchInBetween(int i1, int i2, bool i3)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattleArena >
    pbSwitchPlayer(int index, bool lax, bool cancancel)PokemonEssentials.Interface.PokeBattle.IBattle
    pbThrowPokeBall(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonEssentials.Interface.PokeBattle.IBattleCommon
    pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    pbWeatherPokemonEssentials.Interface.PokeBattle.IBattle
    playerPokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattleArenaPlayer(IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > battle)PokemonUnity.Combat.PokeBattle_BattleArenaPlayer
    PokeBattle_BattlePlayerModule(IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    randomindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    rulesPokemonEssentials.Interface.PokeBattle.IBattle
    scenePokemonEssentials.Interface.PokeBattle.IBattle
    shiftStylePokemonEssentials.Interface.PokeBattle.IBattle
    sidesPokemonEssentials.Interface.PokeBattle.IBattle
    strugglePokemonEssentials.Interface.PokeBattle.IBattle
    successStatesPokemonEssentials.Interface.PokeBattle.IBattle
    switchindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    switchingPokemonEssentials.Interface.PokeBattle.IBattle
    ToString(int battlerindex, int pokemonindex)PokemonEssentials.Interface.PokeBattle.IBattle
    turncountPokemonEssentials.Interface.PokeBattle.IBattle
    weatherPokemonEssentials.Interface.PokeBattle.IBattle
    weatherdurationPokemonEssentials.Interface.PokeBattle.IBattle
    \ No newline at end of file diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player.cshtml deleted file mode 100644 index 13957da96..000000000 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player.cshtml +++ /dev/null @@ -1,449 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Combat.PokeBattle_BattleArenaPlayer Class Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { - -
    PokemonUnity.Combat.PokeBattle_BattleArenaPlayer Class Reference
    -} - -
    -Inheritance diagram for PokemonUnity.Combat.PokeBattle_BattleArenaPlayer:
    -
    -
    - - -PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > > -PokemonEssentials.Interface.PokeBattle.IBattleArenaPlayer -PokemonEssentials.Interface.PokeBattle.IBattleArena -PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattleArena > -PokemonEssentials.Interface.PokeBattle.IBattle -PokemonEssentials.Interface.PokeBattle.IBattleCommon - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Public Member Functions

     PokeBattle_BattleArenaPlayer (IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule<PokeBattle_BattleArena> battle)
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
     PokeBattle_BattlePlayerModule (IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle)
     
    IBattlePlayerModule< IPokeBattle_RecordedBattleModule > initialize (IPokeBattle_Scene scene, IBattle battle)
     
    override BattleResults pbStartBattle (bool canlose=false)
     
    int pbSwitchInBetween (int i1, int i2, bool i3)
     
    override int pbRandom (int num)
     
    override void pbDisplayPaused (string str)
     
    void pbCommandPhaseCore ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleArena
    new IBattleArena initialize (IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    new bool pbDoubleBattleAllowed ()
     
    bool pbEnemyShouldWithdraw (int index)
     
    new bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    new void pbSwitch (bool favorDraws=false)
     
    new void pbOnActiveAll ()
     
    new bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    int pbMindScore (IBattleMove move)
     
    new void pbCommandPhase ()
     
    new void pbEndOfRoundPhase ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    void pbAbort ()
     
    IEnumerator pbDebugUpdate ()
     
    int pbRandom (int x)
     
    int pbAIRandom (int x)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    bool pbDoubleBattleAllowed ()
     
    bool pbIsOpposing (int index)
     
    bool pbOwnedByPlayer (int index)
     
    bool pbIsDoubleBattler (int index)
     
    string ToString (int battlerindex, int pokemonindex)
     Only used for Wish More...
     
    bool pbIsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler pbCheckGlobalAbility (Abilities a)
     
    ITrainer pbPlayer ()
     
    Items[] pbGetOwnerItems (int battlerIndex)
     
    void pbSetSeen (IPokemon pokemon)
     
    string pbGetMegaRingName (int battlerIndex)
     
    bool pbHasMegaRing (int battlerIndex)
     
    int pbPokemonCount (IPokemon[] party)
     
    bool pbAllFainted (IPokemon[] party)
     
    int pbMaxLevel (IPokemon[] party)
     
    int pbMaxLevelFromIndex (int index)
     
    IPokemon[] pbParty (int index)
     Gets player party of selected battler More...
     
    IPokemon[] pbOpposingParty (int index)
     
    int pbSecondPartyBegin (int battlerIndex)
     
    int pbPartyLength (int battlerIndex)
     
    int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int pbGetLastPokeInTeam (int index)
     
    IBattler pbFindPlayerBattler (int pkmnIndex)
     
    bool pbIsOwner (int battlerIndex, int partyIndex)
     
    ITrainer pbGetOwner (int battlerIndex)
     
    ITrainer pbGetOwnerPartner (int battlerIndex)
     
    int pbGetOwnerIndex (int battlerIndex)
     
    bool pbBelongsToPlayer (int battlerIndex)
     
    ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
     
    void pbAddToPlayerParty (IBattler pokemon)
     
    void pbRemoveFromParty (int battlerIndex, int partyIndex)
     
    bool pbCanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool pbCanShowFightMenu (int idxPokemon)
     
    bool pbCanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
     
    bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool pbChoseMove (int i, Moves move)
     
    bool pbChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
     
    bool pbRegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
     
    bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    bool pbRegisterSwitch (int idxPokemon, int idxOther)
     
    bool pbCanChooseNonActive (int index)
     
    void pbSwitch (bool favorDraws=false)
     
    void pbSendOut (int index, IBattler pokemon)
     
    void pbReplace (int index, int newpoke, bool batonpass=false)
     
    bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    int pbSwitchInBetween (int index, bool lax, bool cancancel)
     
    int pbSwitchPlayer (int index, bool lax, bool cancancel)
     
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void pbEnemyUseItem (Items item, IBattler battler)
     
    bool pbCanRun (int idxPokemon)
     
    int pbRun (int idxPokemon, bool duringBattle=false)
     
    bool pbCanMegaEvolve (int index)
     
    void pbRegisterMegaEvolution (int index)
     
    void pbMegaEvolve (int index)
     
    void pbPrimalReversion (int index)
     
    void pbCall (int index)
     
    void pbGainEXP ()
     
    void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void pbLearnMove (int pkmnIndex, Moves move)
     
    void pbOnActiveAll ()
     
    bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void pbPrimordialWeather ()
     
    void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    BattleResults pbDecisionOnTime ()
     
    BattleResults pbDecisionOnTime2 ()
     
    BattleResults pbDecisionOnDraw ()
     
    void pbJudge ()
     
    void pbDisplay (string msg)
     
    void pbDisplayPaused (string msg)
     
    void pbDisplayBrief (string msg)
     
    bool pbDisplayConfirm (string msg)
     
    void pbShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    void pbStartBattleCore (bool canlose)
     
    MenuCommands pbCommandMenu (int i)
     
    KeyValuePair<Items, int?> pbItemMenu (int i)
     
    bool pbAutoFightMenu (int i)
     
    void pbCommandPhase ()
     
    void pbAttackPhase ()
     
    void pbEndOfRoundPhase ()
     
    BattleResults pbEndOfBattle (bool canlose=false)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleCommon
    void pbStorePokemon (IPokemon pokemon)
     
    void pbThrowPokeBall (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattleArena >
    TBattle initialize (PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    int pbSwitchInBetween (int i1, int i2, bool i3)
     
    int pbRandom (int num)
     
    void pbDisplayPaused (string str)
     
    void pbCommandPhaseCore ()
     
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Additional Inherited Members

    - Properties inherited from PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattleArena > >
    int randomindex [get, protected set]
     
    int switchindex [get, protected set]
     
    - Properties inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    IScene scene [get]
     Scene object for this battle More...
     
    BattleResults decision [get, set]
     Decision: 0=undecided; 1=win; 2=loss; 3=escaped; 4=caught More...
     
    bool internalbattle [get, set]
     Internal battle flag More...
     
    bool doublebattle [get, set]
     Double battle flag More...
     
    bool cantescape [get, set]
     True if player can't escape More...
     
    bool shiftStyle [get, set]
     Shift/Set "battle style" option More...
     
    bool battlescene [get, set]
     "Battle scene" option More...
     
    bool debug [get]
     Debug flag More...
     
    ITrainer[] player [get]
     Player trainer More...
     
    ITrainer[] opponent [get]
     Opponent trainer More...
     
    IPokemon[] party1 [get]
     Player's Pokémon party More...
     
    IPokemon[] party2 [get]
     Foe's Pokémon party More...
     
    IList< int > party1order [get]
     Order of Pokémon in the player's party More...
     
    IList< int > party2order [get]
     Order of Pokémon in the opponent's party More...
     
    bool fullparty1 [get]
     True if player's party's max size is 6 instead of 3 More...
     
    bool fullparty2 [get]
     True if opponent's party's max size is 6 instead of 3 More...
     
    IBattler[] battlers [get]
     Currently active Pokémon More...
     
    Items[][] items [get, set]
     Items held by opponents More...
     
    IEffectsSide[] sides [get]
     Effects common to each side of a battle More...
     
    IEffectsField field [get]
     Effects common to the whole of a battle More...
     
    PokemonUnity.Overworld.Environments environment [get, set]
     Battle surroundings More...
     
    Weather weather [get, set]
     Current weather, custom methods should use pbWeather instead More...
     
    int weatherduration [get, set]
     Duration of current weather, or -1 if indefinite More...
     
    bool switching [get]
     True if during the switching phase of the round More...
     
    bool futuresight [get]
     True if Future Sight is hitting More...
     
    IBattleMove struggle [get]
     The Struggle move More...
     
    IBattleChoice[] choices [get]
     Choices made by each Pokémon this round More...
     
    ISuccessState[] successStates [get]
     Success states More...
     
    Moves lastMoveUsed [get, set]
     Last move used More...
     
    int lastMoveUser [get, set]
     Last move user More...
     
    int[][] megaEvolution [get]
     Battle index of each trainer's Pokémon to Mega Evolve More...
     
    bool amuletcoin [get]
     Whether Amulet Coin's effect applies More...
     
    int extramoney [get, set]
     Money gained in battle by using Pay Day More...
     
    bool doublemoney [get, set]
     Whether Happy Hour's effect applies More...
     
    string endspeech [get, set]
     Speech by opponent when player wins More...
     
    string endspeech2 [get, set]
     Speech by opponent when player wins More...
     
    string endspeechwin [get, set]
     Speech by opponent when opponent wins More...
     
    string endspeechwin2 [get, set]
     Speech by opponent when opponent wins More...
     
    IDictionary< string, bool > rules [get]
     
    int turncount [get, set]
     
    bool controlPlayer [get, set]
     
    Weather pbWeather [get]
     
    int nextPickupUse [get]
     
    -

    Constructor & Destructor Documentation

    - -

    ◆ PokeBattle_BattleArenaPlayer()

    - -
    -
    - - - - - - - - - - - - - -
    PokemonUnity.Combat.PokeBattle_BattleArenaPlayer.PokeBattle_BattleArenaPlayer (IPokeBattle_Scene scene,
    PokeBattle_RecordedBattleModule<PokeBattle_BattleArenabattle  )
    -
    - -
    -
    -
    The documentation for this class was generated from the following file: diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player.png deleted file mode 100644 index 807e2c4ad..000000000 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_arena_player.png and /dev/null differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace-members.cshtml index bdaec8cb6..9fc68a178 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace-members.cshtml @@ -16,188 +16,188 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_BattlePalace, including all inherited members.

    - - + + + + + + + + + + + + - - + + - - - - - + + + + + + + + + + + + + + + - + + + + + + + + + + + - + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + - + + + - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
    AllFainted(IPokemon[] party)PokemonUnity.Combat.Battle
    amuletcoinPokemonUnity.Combat.Battle
    _battlersPokemonUnity.Combat.Battleprotected
    _priorityPokemonUnity.Combat.Battleprotected
    Abort()PokemonUnity.Combat.Battlevirtual
    AddToPlayerParty(IPokemon pokemon)PokemonUnity.Combat.Battle
    AIRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    AllFainted(IPokemon[] party)PokemonUnity.Combat.Battle
    amuletcoinPokemonUnity.Combat.Battle
    Animation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
    AttackPhase()PokemonUnity.Combat.Battle
    AutoChooseMove(int idxPokemon, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
    AutoFightMenu(int idxPokemon)PokemonUnity.Combat.PokeBattle_BattlePalacevirtual
    Battle()PokemonUnity.Combat.Battleprotected
    Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonUnity.Combat.Battle
    Battle(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.Battle
    BattlePalacePinchTablePokemonUnity.Combat.PokeBattle_BattlePalacestatic
    BattlePalaceUsualTablePokemonUnity.Combat.PokeBattle_BattlePalacestatic
    BattlePalacePinchTablePokemonUnity.Combat.PokeBattle_BattlePalace
    BattlePalaceUsualTablePokemonUnity.Combat.PokeBattle_BattlePalace
    battlersPokemonUnity.Combat.Battle
    battlescenePokemonUnity.Combat.Battle
    CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonUnity.Combat.Battle
    canLosePokemonUnity.Combat.Battle
    CanShowCommands(int idxPokemon)PokemonUnity.Combat.Battle
    CanShowFightMenu(int idxPokemon)PokemonUnity.Combat.Battle
    cantescapePokemonUnity.Combat.Battle
    BelongsToPlayer(int battlerIndex)PokemonUnity.Combat.Battle
    BetterBaseDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)PokemonUnity.Combat.Battle
    Call(int index)PokemonUnity.Combat.Battle
    CanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonUnity.Combat.Battle
    CanChooseMovePartial(int idxPokemon, int idxMove)PokemonUnity.Combat.PokeBattle_BattlePalace
    CanChooseNonActive(int index)PokemonUnity.Combat.Battle
    canLosePokemonUnity.Combat.Battle
    CanMegaEvolve(int index)PokemonUnity.Combat.Battle
    CanRun(int idxPokemon)PokemonUnity.Combat.Battle
    CanShowCommands(int idxPokemon)PokemonUnity.Combat.Battlevirtual
    CanShowFightMenu(int idxPokemon)PokemonUnity.Combat.Battle
    CanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonUnity.Combat.Battle
    CanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonUnity.Combat.Battlevirtual
    cantescapePokemonUnity.Combat.Battle
    CheckGlobalAbility(Abilities a)PokemonUnity.Combat.Battle
    choicesPokemonUnity.Combat.Battle
    controlPlayerPokemonUnity.Combat.Battle
    ChooseBestNewEnemy(int index, IPokemon[] party, int[] enemies)PokemonUnity.Combat.Battle
    ChooseMoves(int index)PokemonUnity.Combat.Battle
    ChoseMove(int i, Moves move)PokemonUnity.Combat.Battle
    ChoseMoveFunctionCode(int i, Attack.Data.Effects code)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.ChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
    CommandMenu(int i)PokemonUnity.Combat.Battlevirtual
    CommandPhase()PokemonUnity.Combat.Battlevirtual
    CommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
    controlPlayerPokemonUnity.Combat.Battleprotected
    CreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.Combat.PokeBattle_BattlePalace
    DbgPlayerOnly(int idx)PokemonUnity.Combat.Battle
    debugPokemonUnity.Combat.Battle
    debugupdatePokemonUnity.Combat.Battle
    decisionPokemonUnity.Combat.Battle
    DebugUpdate()PokemonEssentials.Interface.PokeBattle.IBattle
    decisionPokemonUnity.Combat.Battle
    DecisionOnDraw()PokemonUnity.Combat.Battlevirtual
    DecisionOnTime()PokemonUnity.Combat.Battle
    DecisionOnTime2()PokemonUnity.Combat.Battle
    DefaultChooseEnemyCommand(int index)PokemonUnity.Combat.Battle
    DefaultChooseNewEnemy(int index, IPokemon[] party)PokemonUnity.Combat.Battle
    Display(string msg)PokemonUnity.Combat.Battlevirtual
    DisplayBrief(string msg)PokemonUnity.Combat.Battlevirtual
    DisplayConfirm(string msg)PokemonUnity.Combat.Battlevirtual
    DisplayPaused(string msg)PokemonUnity.Combat.Battlevirtual
    doublebattlePokemonUnity.Combat.Battle
    doublemoneyPokemonUnity.Combat.Battle
    endspeechPokemonUnity.Combat.Battle
    endspeech2PokemonUnity.Combat.Battle
    endspeechwinPokemonUnity.Combat.Battle
    endspeechwin2PokemonUnity.Combat.Battle
    DoubleBattleAllowed()PokemonUnity.Combat.Battlevirtual
    doublemoneyPokemonUnity.Combat.Battle
    EndOfBattle(bool canlose=false)PokemonUnity.Combat.Battle
    EndOfRoundPhase()PokemonUnity.Combat.PokeBattle_BattlePalacevirtual
    endspeechPokemonUnity.Combat.Battle
    endspeech2PokemonUnity.Combat.Battle
    endspeechwinPokemonUnity.Combat.Battle
    endspeechwin2PokemonUnity.Combat.Battle
    EnemyItemAlreadyUsed(int index, Items item, Items[] items)PokemonUnity.Combat.Battle
    EnemyItemToUse(int index)PokemonUnity.Combat.Battle
    EnemyShouldMegaEvolve(int index)PokemonUnity.Combat.Battle
    EnemyShouldUseItem(int index)PokemonUnity.Combat.Battle
    EnemyShouldWithdraw(int index)PokemonUnity.Combat.PokeBattle_BattlePalacevirtual
    EnemyShouldWithdrawEx(int index, bool alwaysSwitch)PokemonUnity.Combat.Battle
    EnemyUseItem(Items item, IBattler battler)PokemonUnity.Combat.Battle
    environmentPokemonUnity.Combat.Battle
    extramoneyPokemonUnity.Combat.Battle
    fieldPokemonUnity.Combat.Battle
    FindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonUnity.Combat.Battle
    FindPlayerBattler(int pkmnIndex)PokemonUnity.Combat.Battle
    fullparty1PokemonUnity.Combat.Battle
    fullparty2PokemonUnity.Combat.Battle
    futuresightPokemonUnity.Combat.Battle
    initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    internalbattlePokemonUnity.Combat.Battle
    GainEXP()PokemonUnity.Combat.Battlevirtual
    GainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonUnity.Combat.Battle
    GetLastPokeInTeam(int index)PokemonUnity.Combat.Battle
    GetMegaRingName(int battlerIndex)PokemonUnity.Combat.Battle
    GetMoveScore(IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)PokemonUnity.Combat.Battle
    GetOwner(int battlerIndex)PokemonUnity.Combat.Battle
    GetOwnerIndex(int battlerIndex)PokemonUnity.Combat.Battle
    GetOwnerItems(int battlerIndex)PokemonUnity.Combat.Battle
    GetOwnerPartner(int battlerIndex)PokemonUnity.Combat.Battle
    HasMegaRing(int battlerIndex)PokemonUnity.Combat.Battle
    initialize(IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_BattlePalace
    PokemonUnity::Combat::Battle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    internalbattlePokemonUnity.Combat.Battle
    IsDoubleBattler(int index)PokemonUnity.Combat.Battle
    IsOpposing(int index)PokemonUnity.Combat.Battle
    IsOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    IsUnlosableItem(IBattler pkmn, Items item)PokemonUnity.Combat.Battle
    ItemMenu(int i)PokemonUnity.Combat.Battlevirtual
    itemsPokemonUnity.Combat.Battle
    Judge()PokemonUnity.Combat.Battle
    JudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonUnity.Combat.Battlevirtual
    justswitchedPokemonUnity.Combat.PokeBattle_BattlePalace
    lastMoveUsedPokemonUnity.Combat.Battle
    lastMoveUserPokemonUnity.Combat.Battle
    MaxLevel(IPokemon[] party)PokemonUnity.Combat.Battle
    LearnMove(int pkmnIndex, Moves move)PokemonUnity.Combat.Battle
    MaxLevel(IPokemon[] party)PokemonUnity.Combat.Battle
    MaxLevelFromIndex(int index)PokemonUnity.Combat.Battle
    megaEvolutionPokemonUnity.Combat.Battle
    nextPickupUsePokemonUnity.Combat.Battle
    opponentPokemonUnity.Combat.Battle
    MegaEvolve(int index)PokemonUnity.Combat.Battle
    MessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonUnity.Combat.Battle
    MoveCategory(IBattleMove move)PokemonUnity.Combat.PokeBattle_BattlePalace
    nextPickupUsePokemonUnity.Combat.Battle
    OnActiveAll()PokemonUnity.Combat.Battlevirtual
    OnActiveOne(IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonUnity.Combat.Battlevirtual
    opponentPokemonUnity.Combat.Battle
    OpposingParty(int index)PokemonUnity.Combat.Battle
    OwnedByPlayer(int index)PokemonUnity.Combat.Battle
    Party(int index)PokemonUnity.Combat.Battle
    party1PokemonUnity.Combat.Battle
    party1orderPokemonUnity.Combat.Battle
    party2PokemonUnity.Combat.Battle
    party2orderPokemonUnity.Combat.Battle
    pbAbort()PokemonUnity.Combat.Battlevirtual
    pbAddToPlayerParty(IPokemon pokemon)PokemonUnity.Combat.Battle
    pbAllFainted(IPokemon[] party)PokemonUnity.Combat.Battle
    pbAnimation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
    pbAttackPhase()PokemonUnity.Combat.Battle
    pbAutoChooseMove(int idxPokemon, bool showMessages=true)PokemonUnity.Combat.Battlevirtual
    pbAutoFightMenu(int idxPokemon)PokemonUnity.Combat.PokeBattle_BattlePalacevirtual
    pbBelongsToPlayer(int battlerIndex)PokemonUnity.Combat.Battle
    pbBetterBaseDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)PokemonUnity.Combat.Battle
    pbCall(int index)PokemonUnity.Combat.Battle
    pbCanChooseMovePartial(int idxPokemon, int idxMove)PokemonUnity.Combat.PokeBattle_BattlePalace
    pbCanChooseNonActive(int index)PokemonUnity.Combat.Battle
    pbCanMegaEvolve(int index)PokemonUnity.Combat.Battle
    pbCanRun(int idxPokemon)PokemonUnity.Combat.Battle
    pbCanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonUnity.Combat.Battle
    pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonUnity.Combat.Battlevirtual
    pbCheckGlobalAbility(Abilities a)PokemonUnity.Combat.Battle
    pbChooseBestNewEnemy(int index, IPokemon[] party, int[] enemies)PokemonUnity.Combat.Battle
    pbChooseMoves(int index)PokemonUnity.Combat.Battle
    pbChoseMove(int i, Moves move)PokemonUnity.Combat.Battle
    pbChoseMoveFunctionCode(int i, Attack.Data.Effects code)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.pbChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCommandMenu(int i)PokemonUnity.Combat.Battlevirtual
    pbCommandPhase()PokemonUnity.Combat.Battlevirtual
    pbCommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonUnity.Combat.Battle
    pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonUnity.Combat.PokeBattle_BattlePalace
    PokemonEssentials::Interface::Battle::IBattlePalace.pbCreateBattle(IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)PokemonEssentials.Interface.Battle.IBattleType
    pbDbgPlayerOnly(int idx)PokemonUnity.Combat.Battle
    pbDecisionOnDraw()PokemonUnity.Combat.Battlevirtual
    pbDecisionOnTime()PokemonUnity.Combat.Battle
    pbDecisionOnTime2()PokemonUnity.Combat.Battle
    pbDefaultChooseEnemyCommand(int index)PokemonUnity.Combat.Battle
    pbDefaultChooseNewEnemy(int index, IPokemon[] party)PokemonUnity.Combat.Battle
    pbDisplay(string msg)PokemonUnity.Combat.Battlevirtual
    pbDisplayBrief(string msg)PokemonUnity.Combat.Battlevirtual
    pbDisplayConfirm(string msg)PokemonUnity.Combat.Battlevirtual
    pbDisplayPaused(string msg)PokemonUnity.Combat.Battlevirtual
    pbDoubleBattleAllowed()PokemonUnity.Combat.Battlevirtual
    pbEndOfBattle(bool canlose=false)PokemonUnity.Combat.Battle
    pbEndOfRoundPhase()PokemonUnity.Combat.PokeBattle_BattlePalacevirtual
    pbEnemyItemAlreadyUsed(int index, Items item, Items[] items)PokemonUnity.Combat.Battle
    pbEnemyItemToUse(int index)PokemonUnity.Combat.Battle
    pbEnemyShouldMegaEvolve(int index)PokemonUnity.Combat.Battle
    pbEnemyShouldUseItem(int index)PokemonUnity.Combat.Battle
    pbEnemyShouldWithdraw(int index)PokemonUnity.Combat.PokeBattle_BattlePalacevirtual
    pbEnemyShouldWithdrawEx(int index, bool alwaysSwitch)PokemonUnity.Combat.Battle
    pbEnemyUseItem(Items item, IBattler battler)PokemonUnity.Combat.Battle
    pbFindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonUnity.Combat.Battle
    pbFindPlayerBattler(int pkmnIndex)PokemonUnity.Combat.Battle
    pbGainEXP()PokemonUnity.Combat.Battlevirtual
    pbGainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonUnity.Combat.Battle
    pbGetLastPokeInTeam(int index)PokemonUnity.Combat.Battle
    pbGetMegaRingName(int battlerIndex)PokemonUnity.Combat.Battle
    pbGetMoveScore(IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)PokemonUnity.Combat.Battle
    pbGetOwner(int battlerIndex)PokemonUnity.Combat.Battle
    pbGetOwnerIndex(int battlerIndex)PokemonUnity.Combat.Battle
    pbGetOwnerItems(int battlerIndex)PokemonUnity.Combat.Battle
    pbGetOwnerPartner(int battlerIndex)PokemonUnity.Combat.Battle
    pbHasMegaRing(int battlerIndex)PokemonUnity.Combat.Battle
    pbIsDoubleBattler(int index)PokemonUnity.Combat.Battle
    pbIsOpposing(int index)PokemonUnity.Combat.Battle
    pbIsOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    pbIsUnlosableItem(IBattler pkmn, Items item)PokemonUnity.Combat.Battle
    pbItemMenu(int i)PokemonUnity.Combat.Battlevirtual
    pbJudge()PokemonUnity.Combat.Battle
    pbJudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonUnity.Combat.Battlevirtual
    pbLearnMove(int pkmnIndex, Moves move)PokemonUnity.Combat.Battle
    pbMaxLevel(IPokemon[] party)PokemonUnity.Combat.Battle
    pbMaxLevelFromIndex(int index)PokemonUnity.Combat.Battle
    pbMegaEvolve(int index)PokemonUnity.Combat.Battle
    pbMessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonUnity.Combat.Battle
    pbMoveCategory(IBattleMove move)PokemonUnity.Combat.PokeBattle_BattlePalace
    pbOnActiveAll()PokemonUnity.Combat.Battlevirtual
    pbOnActiveOne(IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonUnity.Combat.Battlevirtual
    pbOpposingParty(int index)PokemonUnity.Combat.Battle
    pbOwnedByPlayer(int index)PokemonUnity.Combat.Battle
    pbParty(int index)PokemonUnity.Combat.Battle
    pbPartyGetOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    pbPartyLength(int battlerIndex)PokemonUnity.Combat.Battle
    pbPinchChange(int idxPokemon)PokemonUnity.Combat.PokeBattle_BattlePalace
    pbPlayer()PokemonUnity.Combat.Battle
    pbPokemonCount(IPokemon[] party)PokemonUnity.Combat.Battle
    pbPrimalReversion(int index)PokemonUnity.Combat.Battle
    pbPrimordialWeather()PokemonUnity.Combat.Battle
    pbPriority(bool ignorequickclaw=false, bool log=false)PokemonUnity.Combat.Battle
    pbRandom(int index)PokemonUnity.Combat.Battlevirtual
    pbRecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonUnity.Combat.Battle
    pbRegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonUnity.Combat.Battle
    pbRegisterMegaEvolution(int index)PokemonUnity.Combat.Battle
    pbRegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonUnity.Combat.PokeBattle_BattlePalacevirtual
    pbRegisterSwitch(int idxPokemon, int idxOther)PokemonUnity.Combat.Battlevirtual
    pbRegisterTarget(int idxPokemon, int idxTarget)PokemonUnity.Combat.Battlevirtual
    pbRemoveFromParty(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    pbReplace(int index, int newpoke, bool batonpass=false)PokemonUnity.Combat.Battle
    pbRoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill)PokemonUnity.Combat.Battle
    pbRoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)PokemonUnity.Combat.Battle
    pbRoughStat(IBattler battler, Stats stat, int skill)PokemonUnity.Combat.Battle
    pbRun(int idxPokemon, bool duringBattle=false)PokemonUnity.Combat.Battlevirtual
    pbSecondPartyBegin(int battlerIndex)PokemonUnity.Combat.Battle
    pbSendOut(int index, IPokemon pokemon)PokemonUnity.Combat.Battle
    pbSetSeen(IPokemon pokemon)PokemonUnity.Combat.Battle
    pbShowCommands(string msg, string[] commands, bool cancancel=true)PokemonUnity.Combat.Battle
    pbShowCommands(string msg, string[] commands, int cancancel)PokemonUnity.Combat.Battle
    pbStartBattle(bool canlose=false)PokemonUnity.Combat.Battlevirtual
    pbStartBattleCore(bool canlose)PokemonUnity.Combat.Battle
    pbStdDev(int[] scores)PokemonUnity.Combat.Battle
    pbStorePokemon(IPokemon pokemon)PokemonUnity.Combat.Battlevirtual
    pbSwitch(bool favorDraws=false)PokemonUnity.Combat.Battlevirtual
    pbSwitchInBetween(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battlevirtual
    pbSwitchPlayer(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battle
    pbThrowPokeball(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonUnity.Combat.Battlevirtual
    pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Battle
    pbTypeModifier2(IBattler battlerThis, IBattler battlerOther)PokemonUnity.Combat.Battle
    pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
    PokemonEssentials::Interface::PokeBattle::IBattle.pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattleShadowPokemon.pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon
    pbWeatherPokemonUnity.Combat.Battle
    peerPokemonUnity.Combat.Battle
    PartyGetOwner(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    PartyLength(int battlerIndex)PokemonUnity.Combat.Battle
    peerPokemonUnity.Combat.Battleprotected
    pickupUsePokemonUnity.Combat.Battleprotected
    PinchChange(int idxPokemon)PokemonUnity.Combat.PokeBattle_BattlePalace
    Player()PokemonUnity.Combat.Battle
    playerPokemonUnity.Combat.Battle
    PokeBattle_BattlePalace(IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_BattlePalace
    PokemonCount(IPokemon[] party)PokemonUnity.Combat.Battle
    priorityPokemonUnity.Combat.Battle
    rulesPokemonUnity.Combat.Battle
    runCommandPokemonUnity.Combat.Battle
    PrimalReversion(int index)PokemonUnity.Combat.Battle
    PrimordialWeather()PokemonUnity.Combat.Battle
    priorityPokemonUnity.Combat.Battleprotected
    Priority(bool ignorequickclaw=false, bool log=false)PokemonUnity.Combat.Battle
    Random(int index)PokemonUnity.Combat.Battlevirtual
    RecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonUnity.Combat.Battle
    RegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonUnity.Combat.Battle
    RegisterMegaEvolution(int index)PokemonUnity.Combat.Battle
    RegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonUnity.Combat.PokeBattle_BattlePalacevirtual
    RegisterSwitch(int idxPokemon, int idxOther)PokemonUnity.Combat.Battlevirtual
    RegisterTarget(int idxPokemon, int idxTarget)PokemonUnity.Combat.Battlevirtual
    RemoveFromParty(int battlerIndex, int partyIndex)PokemonUnity.Combat.Battle
    Replace(int index, int newpoke, bool batonpass=false)PokemonUnity.Combat.Battle
    RoughAccuracy(IBattleMove move, IBattler attacker, IBattler opponent, int skill)PokemonUnity.Combat.Battle
    RoughDamage(IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)PokemonUnity.Combat.Battle
    RoughStat(IBattler battler, Stats stat, int skill)PokemonUnity.Combat.Battle
    rulesPokemonUnity.Combat.Battle
    Run(int idxPokemon, bool duringBattle=false)PokemonUnity.Combat.Battlevirtual
    runCommandPokemonUnity.Combat.Battleprotected
    scenePokemonUnity.Combat.Battle
    shiftStylePokemonUnity.Combat.Battle
    sidesPokemonUnity.Combat.Battle
    snaggedpokemonPokemonUnity.Combat.Battle
    strugglePokemonUnity.Combat.Battle
    successStatesPokemonUnity.Combat.Battle
    switchingPokemonUnity.Combat.Battle
    ToString(int battlerindex, int pokemonindex)PokemonUnity.Combat.Battle
    turncountPokemonUnity.Combat.Battle
    usepriorityPokemonUnity.Combat.Battle
    weatherPokemonUnity.Combat.Battle
    SecondPartyBegin(int battlerIndex)PokemonUnity.Combat.Battle
    SendOut(int index, IPokemon pokemon)PokemonUnity.Combat.Battle
    SetSeen(IPokemon pokemon)PokemonUnity.Combat.Battle
    shiftStylePokemonUnity.Combat.Battle
    ShowCommands(string msg, string[] commands, bool cancancel=true)PokemonUnity.Combat.Battle
    ShowCommands(string msg, string[] commands, int cancancel)PokemonUnity.Combat.Battle
    sidesPokemonUnity.Combat.Battle
    snaggedpokemonPokemonUnity.Combat.Battleprotected
    StartBattle(bool canlose=false)PokemonUnity.Combat.Battlevirtual
    StartBattleCore(bool canlose)PokemonUnity.Combat.Battle
    StdDev(int[] scores)PokemonUnity.Combat.Battle
    StorePokemon(IPokemon pokemon)PokemonUnity.Combat.Battlevirtual
    strugglePokemonUnity.Combat.Battle
    successStatesPokemonUnity.Combat.Battle
    Switch(bool favorDraws=false)PokemonUnity.Combat.Battlevirtual
    SwitchInBetween(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battlevirtual
    switchingPokemonUnity.Combat.Battle
    SwitchPlayer(int index, bool lax, bool cancancel)PokemonUnity.Combat.Battle
    ThrowPokeball(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonUnity.Combat.Battlevirtual
    ToString(int battlerindex, int pokemonindex)PokemonUnity.Combat.Battle
    turncountPokemonUnity.Combat.Battle
    TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Battle
    TypeModifier2(IBattler battlerThis, IBattler battlerOther)PokemonUnity.Combat.Battle
    UseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
    UseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonUnity.Combat.Battle
    usepriorityPokemonUnity.Combat.Battleprotected
    weatherPokemonUnity.Combat.Battle
    WeatherPokemonUnity.Combat.Battle
    weatherdurationPokemonUnity.Combat.Battle
    \ No newline at end of file + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace.cshtml index f411506dd..10b580522 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace.cshtml @@ -12,7 +12,6 @@ @section headertitle {
    PokemonUnity.Combat.PokeBattle_BattlePalace Class Reference
    @@ -26,559 +25,567 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_BattlePalace: PokemonUnity.Combat.Battle PokemonEssentials.Interface.Battle.IBattlePalace +PokemonEssentials.Interface.PokeBattle.IBattlePalace PokemonEssentials.Interface.PokeBattle.IBattleAI PokemonEssentials.Interface.PokeBattle.IBattle -PokemonUnity.IHasDisplayMessage PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon PokemonEssentials.Interface.PokeBattle.IBattleClause PokemonEssentials.Interface.Battle.IBattleType +PokemonEssentials.Interface.PokeBattle.IBattle PokemonEssentials.Interface.PokeBattle.IBattleCommon +PokemonEssentials.Interface.PokeBattle.IBattleCommon - + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Public Member Functions

     PokeBattle_BattlePalace (IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     PokeBattle_BattlePalace (IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
     
    int pbMoveCategory (IBattleMove move)
     
    bool pbCanChooseMovePartial (int idxPokemon, int idxMove)
     Different implementation of pbCanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore More...
     
    void pbPinchChange (int idxPokemon)
     
    override bool pbEnemyShouldWithdraw (int index)
     
    override bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    override bool pbAutoFightMenu (int idxPokemon)
     
    override void pbEndOfRoundPhase ()
     
    PokemonEssentials.Interface.PokeBattle.IBattlePalace initialize (IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
     
    int MoveCategory (IBattleMove move)
     
    bool CanChooseMovePartial (int idxPokemon, int idxMove)
     Different implementation of CanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore More...
     
    void PinchChange (int idxPokemon)
     
    override bool EnemyShouldWithdraw (int index)
     
    override bool RegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    override bool AutoFightMenu (int idxPokemon)
     
    override void EndOfRoundPhase ()
     
    - Public Member Functions inherited from PokemonUnity.Combat.Battle
    int pbGetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
     Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier2 (IBattler battlerThis, IBattler battlerOther)
     
    int pbRoughStat (IBattler battler, Stats stat, int skill)
     
    int pbBetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
     
    int pbRoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
     
    int pbRoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
     
    void pbChooseMoves (int index)
     Choose a move to use. More...
     
    bool pbEnemyShouldMegaEvolve (int index)
     Decide whether the opponent should Mega Evolve their Pokémon. More...
     
    bool pbEnemyShouldUseItem (int index)
     
    bool pbEnemyItemAlreadyUsed (int index, Items item, Items[] items)
     
    Items pbEnemyItemToUse (int index)
     
    virtual bool pbEnemyShouldWithdraw (int index)
     
    bool pbEnemyShouldWithdrawEx (int index, bool alwaysSwitch)
     
    int pbDefaultChooseNewEnemy (int index, IPokemon[] party)
     
    int pbChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
     
    void pbDefaultChooseEnemyCommand (int index)
     Choose an action. More...
     
    bool pbDbgPlayerOnly (int idx)
     
    int pbStdDev (int[] scores)
     
     Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
    int GetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
     Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier2 (IBattler battlerThis, IBattler battlerOther)
     
    int RoughStat (IBattler battler, Stats stat, int skill)
     
    int BetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
     
    int RoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
     
    int RoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
     
    void ChooseMoves (int index)
     Choose a move to use. More...
     
    bool EnemyShouldMegaEvolve (int index)
     Decide whether the opponent should Mega Evolve their Pokémon. More...
     
    bool EnemyShouldUseItem (int index)
     
    bool EnemyItemAlreadyUsed (int index, Items item, Items[] items)
     
    Items EnemyItemToUse (int index)
     
    virtual bool EnemyShouldWithdraw (int index)
     
    bool EnemyShouldWithdrawEx (int index, bool alwaysSwitch)
     
    int DefaultChooseNewEnemy (int index, IPokemon[] party)
     
    int ChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
     
    void DefaultChooseEnemyCommand (int index)
     Choose an action. More...
     
    bool DbgPlayerOnly (int idx)
     
    int StdDev (int[] scores)
     
     Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
     
     Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     Battle (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent, int maxBattlers=4)
     
    virtual int pbRandom (int index)
     
    virtual void pbAbort ()
     
    virtual void pbStorePokemon (IPokemon pokemon)
     
    virtual void pbThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    virtual bool pbDoubleBattleAllowed ()
     
    bool pbIsOpposing (int index)
     
    bool pbOwnedByPlayer (int index)
     
    bool pbIsDoubleBattler (int index)
     
    virtual int Random (int index)
     
    virtual void Abort ()
     
    virtual void StorePokemon (IPokemon pokemon)
     
    virtual void ThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    virtual bool DoubleBattleAllowed ()
     
    bool IsOpposing (int index)
     
    bool OwnedByPlayer (int index)
     
    bool IsDoubleBattler (int index)
     
    string ToString (int battlerindex, int pokemonindex)
     Only used for Wish More...
     
    bool pbIsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler pbCheckGlobalAbility (Abilities a)
     
    ITrainer pbPlayer ()
     
    Items[] pbGetOwnerItems (int battlerIndex)
     
    void pbSetSeen (IPokemon pokemon)
     
    string pbGetMegaRingName (int battlerIndex)
     
    bool pbHasMegaRing (int battlerIndex)
     
    bool IsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler CheckGlobalAbility (Abilities a)
     
    ITrainer Player ()
     
    Items[] GetOwnerItems (int battlerIndex)
     
    void SetSeen (IPokemon pokemon)
     
    string GetMegaRingName (int battlerIndex)
     
    bool HasMegaRing (int battlerIndex)
     
    int PokemonCount (IPokemon[] party)
     
    bool AllFainted (IPokemon[] party)
     
    int MaxLevel (IPokemon[] party)
     
    int pbPokemonCount (IPokemon[] party)
     
    bool pbAllFainted (IPokemon[] party)
     
    int pbMaxLevel (IPokemon[] party)
     
    int pbMaxLevelFromIndex (int index)
     
    IPokemon[] pbParty (int index)
     Returns the trainer party of pokemon at this index? More...
     
    IPokemon[] pbOpposingParty (int index)
     
    int pbSecondPartyBegin (int battlerIndex)
     
    int pbPartyLength (int battlerIndex)
     
    int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int pbGetLastPokeInTeam (int index)
     
    IBattler pbFindPlayerBattler (int pkmnIndex)
     
    bool pbIsOwner (int battlerIndex, int partyIndex)
     
    ITrainer pbGetOwner (int battlerIndex)
     
    ITrainer pbGetOwnerPartner (int battlerIndex)
     
    int pbGetOwnerIndex (int battlerIndex)
     
    bool pbBelongsToPlayer (int battlerIndex)
     
    ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
     
    void pbAddToPlayerParty (IPokemon pokemon)
     
    void pbRemoveFromParty (int battlerIndex, int partyIndex)
     
    bool CanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    int MaxLevelFromIndex (int index)
     
    IPokemon[] Party (int index)
     Returns the trainer party of pokemon at this index? More...
     
    IPokemon[] OpposingParty (int index)
     
    int SecondPartyBegin (int battlerIndex)
     
    int PartyLength (int battlerIndex)
     
    int FindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int GetLastPokeInTeam (int index)
     
    IBattler FindPlayerBattler (int pkmnIndex)
     
    bool IsOwner (int battlerIndex, int partyIndex)
     
    ITrainer GetOwner (int battlerIndex)
     
    ITrainer GetOwnerPartner (int battlerIndex)
     
    int GetOwnerIndex (int battlerIndex)
     
    bool BelongsToPlayer (int battlerIndex)
     
    ITrainer PartyGetOwner (int battlerIndex, int partyIndex)
     
    void AddToPlayerParty (IPokemon pokemon)
     
    void RemoveFromParty (int battlerIndex, int partyIndex)
     
    virtual bool CanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool CanShowFightMenu (int idxPokemon)
     
    bool CanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    virtual void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
     
    virtual bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool pbChoseMove (int i, Moves move)
     
    bool pbChoseMoveFunctionCode (int i, Attack.Data.Effects code)
     
    virtual bool pbRegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
     
    virtual bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    virtual bool pbRegisterSwitch (int idxPokemon, int idxOther)
     
    bool pbCanChooseNonActive (int index)
     
    virtual void pbSwitch (bool favorDraws=false)
     
    void pbSendOut (int index, IPokemon pokemon)
     
    void pbReplace (int index, int newpoke, bool batonpass=false)
     
    bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    virtual int pbSwitchInBetween (int index, bool lax, bool cancancel)
     
    int pbSwitchPlayer (int index, bool lax, bool cancancel)
     
    bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void pbEnemyUseItem (Items item, IBattler battler)
     
    bool pbCanRun (int idxPokemon)
     
    virtual int pbRun (int idxPokemon, bool duringBattle=false)
     
    bool pbCanMegaEvolve (int index)
     
    void pbRegisterMegaEvolution (int index)
     
    void pbMegaEvolve (int index)
     
    void pbPrimalReversion (int index)
     
    void pbCall (int index)
     
    virtual void pbGainEXP ()
     
    void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void pbLearnMove (int pkmnIndex, Moves move)
     
    virtual void pbOnActiveAll ()
     
    virtual bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void pbPrimordialWeather ()
     
    BattleResults pbDecisionOnTime ()
     
    BattleResults pbDecisionOnTime2 ()
     
    void pbJudge ()
     
    virtual void pbDisplay (string msg)
     Displays a message on screen, and wait for player input More...
     
    virtual void pbDisplayPaused (string msg)
     
    virtual void pbDisplayBrief (string msg)
     Displays a message on screen, but will continue without player input after short delay More...
     
    virtual bool pbDisplayConfirm (string msg)
     
    void pbShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void pbShowCommands (string msg, string[] commands, int cancancel)
     
    void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    virtual BattleResults pbStartBattle (bool canlose=false)
     
    void pbStartBattleCore (bool canlose)
     
    virtual MenuCommands pbCommandMenu (int i)
     
    virtual KeyValuePair<Items, int?> pbItemMenu (int i)
     
    virtual bool pbAutoFightMenu (int i)
     
    virtual void pbCommandPhase ()
     
    void pbAttackPhase ()
     
    BattleResults pbEndOfBattle (bool canlose=false)
     
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    virtual BattleResults pbDecisionOnDraw ()
     
    virtual void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    virtual void pbEndOfRoundPhase ()
     
    int pbGetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
     Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier2 (IBattler battlerThis, IBattler battlerOther)
     
    int pbRoughStat (IBattler battler, Stats stat, int skill)
     
    int pbBetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
     
    int pbRoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
     
    int pbRoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
     
    void pbChooseMoves (int index)
     Choose a move to use. More...
     
    bool pbEnemyShouldMegaEvolve (int index)
     Decide whether the opponent should Mega Evolve their Pokémon. More...
     
    bool pbEnemyShouldUseItem (int index)
     
    bool pbEnemyItemAlreadyUsed (int index, Items item, Items[] items)
     
    Items pbEnemyItemToUse (int index)
     
    bool pbEnemyShouldWithdraw (int index)
     
    bool pbEnemyShouldWithdrawEx (int index, bool alwaysSwitch)
     
    int pbDefaultChooseNewEnemy (int index, IPokemon[] party)
     
    int pbChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
     
    void pbDefaultChooseEnemyCommand (int index)
     Choose an action. More...
     
    bool pbDbgPlayerOnly (int idx)
     
    int pbStdDev (int[] scores)
     
    virtual void AutoChooseMove (int idxPokemon, bool showMessages=true)
     
    virtual bool RegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool ChoseMove (int i, Moves move)
     
    bool ChoseMoveFunctionCode (int i, Attack.Data.Effects code)
     
    virtual bool RegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] Priority (bool ignorequickclaw=false, bool log=false)
     
    virtual bool CanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool CanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    virtual bool RegisterSwitch (int idxPokemon, int idxOther)
     
    bool CanChooseNonActive (int index)
     
    virtual void Switch (bool favorDraws=false)
     
    void SendOut (int index, IPokemon pokemon)
     
    void Replace (int index, int newpoke, bool batonpass=false)
     
    bool RecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void MessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    virtual int SwitchInBetween (int index, bool lax, bool cancancel)
     
    int SwitchPlayer (int index, bool lax, bool cancancel)
     
    bool UseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool RegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void EnemyUseItem (Items item, IBattler battler)
     
    bool CanRun (int idxPokemon)
     
    virtual int Run (int idxPokemon, bool duringBattle=false)
     
    bool CanMegaEvolve (int index)
     
    void RegisterMegaEvolution (int index)
     
    void MegaEvolve (int index)
     
    void PrimalReversion (int index)
     
    void Call (int index)
     
    virtual void GainEXP ()
     
    void GainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void LearnMove (int pkmnIndex, Moves move)
     
    virtual void OnActiveAll ()
     
    virtual bool OnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void PrimordialWeather ()
     
    BattleResults DecisionOnTime ()
     
    BattleResults DecisionOnTime2 ()
     
    void Judge ()
     
    virtual void Display (string msg)
     Displays a message on screen, and wait for player input More...
     
    virtual void DisplayPaused (string msg)
     
    virtual void DisplayBrief (string msg)
     Displays a message on screen, but will continue without player input after short delay More...
     
    virtual bool DisplayConfirm (string msg)
     
    void ShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void ShowCommands (string msg, string[] commands, int cancancel)
     
    void Animation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void CommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    virtual BattleResults StartBattle (bool canlose=false)
     
    void StartBattleCore (bool canlose)
     
    virtual MenuCommands CommandMenu (int i)
     
    virtual KeyValuePair<Items, int?> ItemMenu (int i)
     
    virtual bool AutoFightMenu (int i)
     
    virtual void CommandPhase ()
     
    void AttackPhase ()
     
    BattleResults EndOfBattle (bool canlose=false)
     
    bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    virtual BattleResults DecisionOnDraw ()
     
    virtual void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    virtual void EndOfRoundPhase ()
     
    int GetMoveScore (IBattleMove move, IBattler attacker, IBattler opponent, int skill=100)
     Get a score for each move being considered (trainer-owned Pokémon only). Moves with higher scores are more likely to be chosen. More...
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier2 (IBattler battlerThis, IBattler battlerOther)
     
    int RoughStat (IBattler battler, Stats stat, int skill)
     
    int BetterBaseDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, int basedamage)
     
    int RoughDamage (IBattleMove move, IBattler attacker, IBattler opponent, int skill, double basedamage)
     
    int RoughAccuracy (IBattleMove move, IBattler attacker, IBattler opponent, int skill)
     
    void ChooseMoves (int index)
     Choose a move to use. More...
     
    bool EnemyShouldMegaEvolve (int index)
     Decide whether the opponent should Mega Evolve their Pokémon. More...
     
    bool EnemyShouldUseItem (int index)
     
    bool EnemyItemAlreadyUsed (int index, Items item, Items[] items)
     
    Items EnemyItemToUse (int index)
     
    bool EnemyShouldWithdraw (int index)
     
    bool EnemyShouldWithdrawEx (int index, bool alwaysSwitch)
     
    int DefaultChooseNewEnemy (int index, IPokemon[] party)
     
    int ChooseBestNewEnemy (int index, IPokemon[] party, int[] enemies)
     
    void DefaultChooseEnemyCommand (int index)
     Choose an action. More...
     
    bool DbgPlayerOnly (int idx)
     
    int StdDev (int[] scores)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    void pbAbort ()
     
    IEnumerator pbDebugUpdate ()
     
    int pbRandom (int x)
     
    int pbAIRandom (int x)
     
    void Abort ()
     
    IEnumerator DebugUpdate ()
     
    int Random (int x)
     
    int AIRandom (int x)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    bool pbDoubleBattleAllowed ()
     
    bool pbIsOpposing (int index)
     
    bool pbOwnedByPlayer (int index)
     
    bool pbIsDoubleBattler (int index)
     
    bool DoubleBattleAllowed ()
     
    bool IsOpposing (int index)
     
    bool OwnedByPlayer (int index)
     
    bool IsDoubleBattler (int index)
     
    string ToString (int battlerindex, int pokemonindex)
     Only used for Wish More...
     
    bool pbIsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler pbCheckGlobalAbility (Abilities a)
     
    ITrainer pbPlayer ()
     
    Items[] pbGetOwnerItems (int battlerIndex)
     
    void pbSetSeen (IPokemon pokemon)
     
    string pbGetMegaRingName (int battlerIndex)
     
    bool pbHasMegaRing (int battlerIndex)
     
    int pbPokemonCount (IPokemon[] party)
     
    bool pbAllFainted (IPokemon[] party)
     
    int pbMaxLevel (IPokemon[] party)
     
    int pbMaxLevelFromIndex (int index)
     
    IPokemon[] pbParty (int index)
     Gets player party of selected battler More...
     
    IPokemon[] pbOpposingParty (int index)
     
    int pbSecondPartyBegin (int battlerIndex)
     
    int pbPartyLength (int battlerIndex)
     
    int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int pbGetLastPokeInTeam (int index)
     
    IBattler pbFindPlayerBattler (int pkmnIndex)
     
    bool pbIsOwner (int battlerIndex, int partyIndex)
     
    ITrainer pbGetOwner (int battlerIndex)
     
    ITrainer pbGetOwnerPartner (int battlerIndex)
     
    int pbGetOwnerIndex (int battlerIndex)
     
    bool pbBelongsToPlayer (int battlerIndex)
     
    ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
     
    void pbAddToPlayerParty (IBattler pokemon)
     
    void pbRemoveFromParty (int battlerIndex, int partyIndex)
     
    bool pbCanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool pbCanShowFightMenu (int idxPokemon)
     
    bool pbCanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
     
    bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool pbChoseMove (int i, Moves move)
     
    bool pbChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
     
    bool pbRegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
     
    bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    bool pbRegisterSwitch (int idxPokemon, int idxOther)
     
    bool pbCanChooseNonActive (int index)
     
    void pbSwitch (bool favorDraws=false)
     
    void pbSendOut (int index, IBattler pokemon)
     
    void pbReplace (int index, int newpoke, bool batonpass=false)
     
    bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    int pbSwitchInBetween (int index, bool lax, bool cancancel)
     
    int pbSwitchPlayer (int index, bool lax, bool cancancel)
     
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void pbEnemyUseItem (Items item, IBattler battler)
     
    bool pbCanRun (int idxPokemon)
     
    int pbRun (int idxPokemon, bool duringBattle=false)
     
    bool pbCanMegaEvolve (int index)
     
    void pbRegisterMegaEvolution (int index)
     
    void pbMegaEvolve (int index)
     
    void pbPrimalReversion (int index)
     
    void pbCall (int index)
     
    void pbGainEXP ()
     
    void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void pbLearnMove (int pkmnIndex, Moves move)
     
    void pbOnActiveAll ()
     
    bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void pbPrimordialWeather ()
     
    void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    BattleResults pbDecisionOnTime ()
     
    BattleResults pbDecisionOnTime2 ()
     
    BattleResults pbDecisionOnDraw ()
     
    void pbJudge ()
     
    void pbDisplay (string msg)
     
    void pbDisplayPaused (string msg)
     
    void pbDisplayBrief (string msg)
     
    bool pbDisplayConfirm (string msg)
     
    void pbShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    void pbStartBattleCore (bool canlose)
     
    MenuCommands pbCommandMenu (int i)
     
    KeyValuePair<Items, int?> pbItemMenu (int i)
     
    bool pbAutoFightMenu (int i)
     
    void pbCommandPhase ()
     
    void pbAttackPhase ()
     
    void pbEndOfRoundPhase ()
     
    BattleResults pbEndOfBattle (bool canlose=false)
     
    void pbStorePokemon (IPokemon pokemon)
     
    void pbThrowPokeBall (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    void pbDisplay (string v)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleShadowPokemon
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     
    BattleResults pbDecisionOnDraw ()
     
    void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    void pbEndOfRoundPhase ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.Battle.IBattleType
    IBattle pbCreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
     
    - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    -Static Public Attributes

    static readonly int[] BattlePalaceUsualTable
     
    static readonly int[] BattlePalacePinchTable
     
    bool IsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler CheckGlobalAbility (Abilities a)
     
    ITrainer Player ()
     
    Items[] GetOwnerItems (int battlerIndex)
     
    void SetSeen (IPokemon pokemon)
     
    string GetMegaRingName (int battlerIndex)
     
    bool HasMegaRing (int battlerIndex)
     
    int PokemonCount (IPokemon[] party)
     
    bool AllFainted (IPokemon[] party)
     
    int MaxLevel (IPokemon[] party)
     
    int MaxLevelFromIndex (int index)
     
    IPokemon[] Party (int index)
     Gets player party of selected battler More...
     
    IPokemon[] OpposingParty (int index)
     
    int SecondPartyBegin (int battlerIndex)
     
    int PartyLength (int battlerIndex)
     
    int FindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int GetLastPokeInTeam (int index)
     
    IBattler FindPlayerBattler (int pkmnIndex)
     
    bool IsOwner (int battlerIndex, int partyIndex)
     
    ITrainer GetOwner (int battlerIndex)
     
    ITrainer GetOwnerPartner (int battlerIndex)
     
    int GetOwnerIndex (int battlerIndex)
     
    bool BelongsToPlayer (int battlerIndex)
     
    ITrainer PartyGetOwner (int battlerIndex, int partyIndex)
     
    void AddToPlayerParty (IPokemon pokemon)
     
    void RemoveFromParty (int battlerIndex, int partyIndex)
     
    bool CanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool CanShowFightMenu (int idxPokemon)
     
    bool CanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    void AutoChooseMove (int idxPokemon, bool showMessages=true)
     
    bool RegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool ChoseMove (int i, Moves move)
     
    bool ChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
     
    bool RegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] Priority (bool ignorequickclaw=false, bool log=false)
     
    bool CanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool CanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    bool RegisterSwitch (int idxPokemon, int idxOther)
     
    bool CanChooseNonActive (int index)
     
    void Switch (bool favorDraws=false)
     
    void SendOut (int index, IPokemon pokemon)
     
    void Replace (int index, int newpoke, bool batonpass=false)
     
    bool RecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void MessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    int SwitchInBetween (int index, bool lax, bool cancancel)
     
    int SwitchPlayer (int index, bool lax, bool cancancel)
     
    bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    bool UseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool RegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void EnemyUseItem (Items item, IBattler battler)
     
    bool CanRun (int idxPokemon)
     
    int Run (int idxPokemon, bool duringBattle=false)
     
    bool CanMegaEvolve (int index)
     
    void RegisterMegaEvolution (int index)
     
    void MegaEvolve (int index)
     
    void PrimalReversion (int index)
     
    void Call (int index)
     
    void GainEXP ()
     
    void GainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void LearnMove (int pkmnIndex, Moves move)
     
    void OnActiveAll ()
     
    bool OnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void PrimordialWeather ()
     
    void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    BattleResults DecisionOnTime ()
     
    BattleResults DecisionOnTime2 ()
     
    BattleResults DecisionOnDraw ()
     
    void Judge ()
     
    void Display (string msg)
     
    void DisplayPaused (string msg)
     
    void DisplayBrief (string msg)
     
    bool DisplayConfirm (string msg)
     
    void ShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void Animation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void CommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    BattleResults StartBattle (bool canlose=false)
     
    void StartBattleCore (bool canlose)
     
    MenuCommands CommandMenu (int i)
     
    KeyValuePair<Items, int?> ItemMenu (int i)
     
    bool AutoFightMenu (int i)
     
    void CommandPhase ()
     
    void AttackPhase ()
     
    void EndOfRoundPhase ()
     
    BattleResults EndOfBattle (bool canlose=false)
     
    void StorePokemon (IPokemon pokemon)
     
    void ThrowPokeball (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    bool UseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     
    BattleResults DecisionOnDraw ()
     
    void JudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    void EndOfRoundPhase ()
     
    IBattle CreateBattle (IPokeBattle_Scene scene, ITrainer[] trainer1, ITrainer[] trainer2)
     
    IBattlePalace initialize (PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    int MoveCategory (IBattleMove move)
     
    bool CanChooseMovePartial (int idxPokemon, int idxMove)
     Different implementation of CanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore More...
     
    void PinchChange (int idxPokemon)
     
    bool EnemyShouldWithdraw (int index)
     
    new bool RegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    new bool AutoFightMenu (int idxPokemon)
     
    new void EndOfRoundPhase ()
     
    + + + + - + @@ -593,7 +600,7 @@ Properties - + @@ -631,40 +638,40 @@ Properties - + - + - + - + - + - + - + - + @@ -673,7 +680,7 @@ Properties - + @@ -697,29 +704,18 @@ Properties - + - + - - - - - - - - - - - - - + + @@ -785,7 +781,7 @@ Properties - + @@ -839,12 +835,40 @@ Properties - - - - + + + + + + + +

    Properties

    bool[] justswitched [get]
     
    int[] BattlePalaceUsualTable [get]
     
    int[] BattlePalacePinchTable [get]
     
    - Properties inherited from PokemonUnity.Combat.Battle
    IScene scene [get, protected set]
    IScene scene [get, protected set]
     Scene object for this battle More...
     
    BattleResults decision [get, set]
    bool cantescape [get, set]
     True if player can't escape More...
     
    bool canLose [get]
    bool canLose [get, protected set]
     If game cannot progress UNLESS the player is victor of match. False if there are no consequences to player's defeat. More...
     
    bool shiftStyle [get, set]
    bool fullparty2 [get, set]
     True if opponent's party's max size is 6 instead of 3 More...
     
    IBattler[] battlers [get, protected set]
    IBattler[] battlers [get]
     Currently active Pokémon More...
     
    Items[][] items [get, set]
     Items held by opponents More...
     
    IEffectsSide[] sides [get]
    IEffectsSide[] sides [get, protected set]
     Effects common to each side of a battle More...
     
    IEffectsField field [get]
    IEffectsField field [get, protected set]
     Effects common to the whole of a battle More...
     
    Environments environment [get, set]
     Battle surroundings; Environment node is used for background visual, that's displayed behind the floor tile More...
     
    Weather weather [get, set]
     Current weather, custom methods should use pbWeather instead More...
     Current weather, custom methods should use Weather instead More...
     
    int weatherduration [get, set]
     Duration of current weather, or -1 if indefinite More...
     
    bool switching [get]
    bool switching [get, protected set]
     True if during the switching phase of the round More...
     
    bool futuresight [get]
    bool futuresight [get, protected set]
     True if Future Sight is hitting More...
     
    IBattleMove struggle [get]
    IBattleMove struggle [get, protected set]
     The Struggle move More...
     
    IBattleChoice[] choices [get, protected set]
     Choices made by each Pokémon this round More...
     
    ISuccessState[] successStates [get]
    ISuccessState[] successStates [get, protected set]
     Success states More...
     
    Moves lastMoveUsed [get, set]
    int lastMoveUser [get, set]
     Last move user More...
     
    int[][] megaEvolution [get]
    int[][] megaEvolution [get, protected set]
     Battle index of each trainer's Pokémon to Mega Evolve More...
     
    bool amuletcoin [get, protected set]
    string endspeechwin2 [get, set]
     Speech by opponent when opponent wins More...
     
    IDictionary< string, bool > rules [get]
    IDictionary< string, bool > rules [get, protected set]
     
    int turncount [get, set]
     Counter to track number of turns for battle More...
     
    IBattler[] priority [get, protected set]
    IBattler[] priority [get]
     
    List< int > snaggedpokemon [get]
     
    int runCommand [get]
     Each time you use the option to flee, the counter goes up. More...
     
    int nextPickupUse [get]
     Another counter that has something to do with tracking items picked up during a battle More...
     
    bool controlPlayer [get, set]
     
    bool usepriority [get, set]
     
    IBattlePeer peer [get, set]
     
    Weather pbWeather [get]
     
    virtual Weather Weather [get]
     
    - Properties inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    IScene scene [get]
     Scene object for this battle More...
     Battle surroundings More...
     
    Weather weather [get, set]
     Current weather, custom methods should use pbWeather instead More...
     Current weather, custom methods should use Weather instead More...
     
    int weatherduration [get, set]
     Duration of current weather, or -1 if indefinite More...
     
    int turncount [get, set]
     
    bool controlPlayer [get, set]
     
    Weather pbWeather [get]
     
    Weather Weather [get]
     
    int nextPickupUse [get]
     
    - Properties inherited from PokemonEssentials.Interface.PokeBattle.IBattlePalace
    int[] BattlePalaceUsualTable [get]
     
    int[] BattlePalacePinchTable [get]
     
    + + + + + + + + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Protected Member Functions inherited from PokemonUnity.Combat.Battle
     Battle ()
     using this to override constructor behavior on inherited... More...
     
    - Protected Attributes inherited from PokemonUnity.Combat.Battle
    IBattler[] _battlers
     
    IBattler[] _priority
     
    List< int > snaggedpokemon
     
    int runCommand
     Each time you use the option to flee, the counter goes up. More...
     
    int pickupUse
     
    bool controlPlayer
     
    bool usepriority
     
    IBattlePeer peer
     

    Constructor & Destructor Documentation

    @@ -856,7 +880,7 @@ Properties PokemonUnity.Combat.PokeBattle_BattlePalace.PokeBattle_BattlePalace ( - IPokeBattle_Scene  + IPokeBattle_Scene  scene, @@ -889,8 +913,8 @@ Properties

    Member Function Documentation

    - -

    ◆ pbAutoFightMenu()

    + +

    ◆ AutoFightMenu()

    @@ -899,7 +923,7 @@ Properties - + @@ -913,18 +937,18 @@ Properties
    override bool PokemonUnity.Combat.PokeBattle_BattlePalace.pbAutoFightMenu override bool PokemonUnity.Combat.PokeBattle_BattlePalace.AutoFightMenu ( int  idxPokemon)
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbCanChooseMovePartial()

    + +

    ◆ CanChooseMovePartial()

    - + @@ -938,7 +962,7 @@ Properties
    bool PokemonUnity.Combat.PokeBattle_BattlePalace.pbCanChooseMovePartial bool PokemonUnity.Combat.PokeBattle_BattlePalace.CanChooseMovePartial ( int  idxPokemon,
    -

    Different implementation of pbCanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore

    +

    Different implementation of CanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore

    Parameters
    @@ -948,18 +972,20 @@ Properties
    Returns
    +

    Implements PokemonEssentials.Interface.PokeBattle.IBattlePalace.

    + - -

    ◆ pbCreateBattle()

    + +

    ◆ CreateBattle()

    idxPokemon
    - + - + @@ -977,10 +1003,12 @@ Properties
    IBattle PokemonUnity.Combat.PokeBattle_BattlePalace.pbCreateBattle IBattle PokemonUnity.Combat.PokeBattle_BattlePalace.CreateBattle (IPokeBattle_Scene IPokeBattle_Scene  scene,
    - -

    ◆ pbEndOfRoundPhase()

    + +

    ◆ EndOfRoundPhase()

    @@ -989,7 +1017,7 @@ Properties - + @@ -1002,12 +1030,12 @@ Properties
    override void PokemonUnity.Combat.PokeBattle_BattlePalace.pbEndOfRoundPhase override void PokemonUnity.Combat.PokeBattle_BattlePalace.EndOfRoundPhase ( )
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbEnemyShouldWithdraw()

    + +

    ◆ EnemyShouldWithdraw()

    @@ -1016,7 +1044,7 @@ Properties - + @@ -1030,18 +1058,61 @@ Properties
    override bool PokemonUnity.Combat.PokeBattle_BattlePalace.pbEnemyShouldWithdraw override bool PokemonUnity.Combat.PokeBattle_BattlePalace.EnemyShouldWithdraw ( int  index)
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    - -

    ◆ pbMoveCategory()

    + +

    ◆ initialize()

    - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    int PokemonUnity.Combat.PokeBattle_BattlePalace.pbMoveCategory PokemonEssentials.Interface.PokeBattle.IBattlePalace PokemonUnity.Combat.PokeBattle_BattlePalace.initialize (IPokeBattle_Scene scene,
    IPokemon[] p1,
    IPokemon[] p2,
    ITrainer[] player,
    ITrainer[] opponent  )
    +
    +
    + +

    ◆ MoveCategory()

    + +
    +
    + + + @@ -1050,16 +1121,27 @@ Properties
    int PokemonUnity.Combat.PokeBattle_BattlePalace.MoveCategory ( IBattleMove  move)
    +

    +
    Parameters
    + + +
    move
    +
    +
    +
    Returns
    Returns Category?
    + +

    Implements PokemonEssentials.Interface.PokeBattle.IBattlePalace.

    +
    - -

    ◆ pbPinchChange()

    + +

    ◆ PinchChange()

    - + @@ -1068,10 +1150,12 @@ Properties
    void PokemonUnity.Combat.PokeBattle_BattlePalace.pbPinchChange void PokemonUnity.Combat.PokeBattle_BattlePalace.PinchChange ( int  idxPokemon)
    - -

    ◆ pbRegisterMove()

    + +

    ◆ RegisterMove()

    @@ -1080,7 +1164,7 @@ Properties - + @@ -1105,13 +1189,13 @@ Properties
    override bool PokemonUnity.Combat.PokeBattle_BattlePalace.pbRegisterMove override bool PokemonUnity.Combat.PokeBattle_BattlePalace.RegisterMove ( int  idxPokemon,
    -

    Reimplemented from PokemonUnity.Combat.Battle.

    +

    Reimplemented from PokemonUnity.Combat.Battle.

    -

    Member Data Documentation

    - -

    ◆ BattlePalacePinchTable

    +

    Property Documentation

    + +

    ◆ BattlePalacePinchTable

    @@ -1120,47 +1204,22 @@ Properties - +
    readonly int [] PokemonUnity.Combat.PokeBattle_BattlePalace.BattlePalacePinchTableint [] PokemonUnity.Combat.PokeBattle_BattlePalace.BattlePalacePinchTable
    -static +get
    -Initial value:
    =new int[] {
    -
    61, 7,32,
    -
    84, 8, 8,
    -
    32,60, 8,
    -
    70,15,15,
    -
    70,22, 8,
    -
    32,58,10,
    -
    56,22,22,
    -
    75,15,10,
    -
    28,55,17,
    -
    29, 6,65,
    -
    30,20,50,
    -
    88, 6, 6,
    -
    29,11,60,
    -
    35,60, 5,
    -
    56,22,22,
    -
    34,60, 6,
    -
    34, 6,60,
    -
    56,22,22,
    -
    30,58,12,
    -
    27, 6,67,
    -
    25,62,13,
    -
    90, 5, 5,
    -
    22,20,58,
    -
    42, 5,53,
    -
    56,22,22
    -
    }
    -
    + +

    Implements PokemonEssentials.Interface.PokeBattle.IBattlePalace.

    +
    - -

    ◆ BattlePalaceUsualTable

    + +

    ◆ BattlePalaceUsualTable

    @@ -1169,46 +1228,20 @@ Properties - +
    readonly int [] PokemonUnity.Combat.PokeBattle_BattlePalace.BattlePalaceUsualTableint [] PokemonUnity.Combat.PokeBattle_BattlePalace.BattlePalaceUsualTable
    -static +get
    -Initial value:
    =new int[] {
    -
    61, 7,32,
    -
    20,25,55,
    -
    70,15,15,
    -
    38,31,31,
    -
    20,70,10,
    -
    30,20,50,
    -
    56,22,22,
    -
    25,15,60,
    -
    69, 6,25,
    -
    35,10,55,
    -
    62,10,28,
    -
    58,37, 5,
    -
    34,11,55,
    -
    35, 5,60,
    -
    56,22,22,
    -
    35,45,20,
    -
    44,50, 6,
    -
    56,22,22,
    -
    30,58,12,
    -
    30,13,57,
    -
    40,50,10,
    -
    18,70,12,
    -
    88, 6, 6,
    -
    42,50, 8,
    -
    56,22,22
    -
    }
    -
    + +

    Implements PokemonEssentials.Interface.PokeBattle.IBattlePalace.

    +
    -

    Property Documentation

    ◆ justswitched

    @@ -1234,3 +1267,4 @@ Properties
    The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace.png index 1ec1c8acc..6cbe278d4 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player-members.cshtml deleted file mode 100644 index 365f4ae7c..000000000 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player-members.cshtml +++ /dev/null @@ -1,182 +0,0 @@ -@{ - Page.Title = "Member List"; -} - -@section breadcrumbs { - -} - -@section headertitle { -
    PokemonUnity.Combat.PokeBattle_BattlePalacePlayer Member List
    -} - - -

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_BattlePalacePlayer, including all inherited members.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    amuletcoinPokemonEssentials.Interface.PokeBattle.IBattle
    BattlePalacePinchTablePokemonEssentials.Interface.PokeBattle.IBattlePalace
    BattlePalaceUsualTablePokemonEssentials.Interface.PokeBattle.IBattlePalace
    battlersPokemonEssentials.Interface.PokeBattle.IBattle
    battlescenePokemonEssentials.Interface.PokeBattle.IBattle
    cantescapePokemonEssentials.Interface.PokeBattle.IBattle
    choicesPokemonEssentials.Interface.PokeBattle.IBattle
    controlPlayerPokemonEssentials.Interface.PokeBattle.IBattle
    debugPokemonEssentials.Interface.PokeBattle.IBattle
    decisionPokemonEssentials.Interface.PokeBattle.IBattle
    doublebattlePokemonEssentials.Interface.PokeBattle.IBattle
    doublemoneyPokemonEssentials.Interface.PokeBattle.IBattle
    endspeechPokemonEssentials.Interface.PokeBattle.IBattle
    endspeech2PokemonEssentials.Interface.PokeBattle.IBattle
    endspeechwinPokemonEssentials.Interface.PokeBattle.IBattle
    endspeechwin2PokemonEssentials.Interface.PokeBattle.IBattle
    environmentPokemonEssentials.Interface.PokeBattle.IBattle
    extramoneyPokemonEssentials.Interface.PokeBattle.IBattle
    fieldPokemonEssentials.Interface.PokeBattle.IBattle
    fullparty1PokemonEssentials.Interface.PokeBattle.IBattle
    fullparty2PokemonEssentials.Interface.PokeBattle.IBattle
    futuresightPokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >.initialize(IPokeBattle_Scene scene, IBattle battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.PokemonEssentials::Interface::PokeBattle::IBattlePalace.initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattlePalace
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.IBattlePlayerModule< IBattlePalace >.initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattlePalace >
    internalbattlePokemonEssentials.Interface.PokeBattle.IBattle
    itemsPokemonEssentials.Interface.PokeBattle.IBattle
    lastMoveUsedPokemonEssentials.Interface.PokeBattle.IBattle
    lastMoveUserPokemonEssentials.Interface.PokeBattle.IBattle
    megaEvolutionPokemonEssentials.Interface.PokeBattle.IBattle
    nextPickupUsePokemonEssentials.Interface.PokeBattle.IBattle
    opponentPokemonEssentials.Interface.PokeBattle.IBattle
    party1PokemonEssentials.Interface.PokeBattle.IBattle
    party1orderPokemonEssentials.Interface.PokeBattle.IBattle
    party2PokemonEssentials.Interface.PokeBattle.IBattle
    party2orderPokemonEssentials.Interface.PokeBattle.IBattle
    pbAbort()PokemonEssentials.Interface.PokeBattle.IBattle
    pbAddToPlayerParty(IBattler pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAIRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAllFainted(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAnimation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAttackPhase()PokemonEssentials.Interface.PokeBattle.IBattle
    pbAutoChooseMove(int idxPokemon, bool showMessages=true)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAutoFightMenu(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattlePalace
    pbBelongsToPlayer(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCall(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanChooseMovePartial(int idxPokemon, int idxMove)PokemonEssentials.Interface.PokeBattle.IBattlePalace
    pbCanChooseNonActive(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanMegaEvolve(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanRun(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanShowCommands(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanShowFightMenu(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCheckGlobalAbility(Abilities a)PokemonEssentials.Interface.PokeBattle.IBattle
    pbChoseMove(int i, Moves move)PokemonEssentials.Interface.PokeBattle.IBattle
    pbChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCommandMenu(int i)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCommandPhase()PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >.pbCommandPhaseCore()PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.pbCommandPhaseCore()PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattlePalace >
    pbCommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDebugUpdate()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnDraw()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnTime()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnTime2()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplay(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplayBrief(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplayConfirm(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >.pbDisplayPaused(string str)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.PokemonEssentials::Interface::PokeBattle::IBattlePalace.pbDisplayPaused(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.IBattlePlayerModule< IBattlePalace >.pbDisplayPaused(string str)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattlePalace >
    pbDoubleBattleAllowed()PokemonEssentials.Interface.PokeBattle.IBattle
    pbEndOfBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbEndOfRoundPhase()PokemonEssentials.Interface.PokeBattle.IBattlePalace
    pbEnemyShouldWithdraw(int index)PokemonEssentials.Interface.PokeBattle.IBattlePalace
    pbEnemyUseItem(Items item, IBattler battler)PokemonEssentials.Interface.PokeBattle.IBattle
    pbFindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonEssentials.Interface.PokeBattle.IBattle
    pbFindPlayerBattler(int pkmnIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGainEXP()PokemonEssentials.Interface.PokeBattle.IBattle
    pbGainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetLastPokeInTeam(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetMegaRingName(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwner(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerIndex(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerItems(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerPartner(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbHasMegaRing(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsDoubleBattler(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsOpposing(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsOwner(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsUnlosableItem(IBattler pkmn, Items item)PokemonEssentials.Interface.PokeBattle.IBattle
    pbItemMenu(int i)PokemonEssentials.Interface.PokeBattle.IBattle
    pbJudge()PokemonEssentials.Interface.PokeBattle.IBattle
    pbJudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonEssentials.Interface.PokeBattle.IBattle
    pbLearnMove(int pkmnIndex, Moves move)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMaxLevel(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMaxLevelFromIndex(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMegaEvolve(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMoveCategory(IBattleMove move)PokemonEssentials.Interface.PokeBattle.IBattlePalace
    pbOnActiveAll()PokemonEssentials.Interface.PokeBattle.IBattle
    pbOnActiveOne(IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbOpposingParty(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbOwnedByPlayer(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbParty(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPartyGetOwner(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPartyLength(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPinchChange(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattlePalace
    pbPlayer()PokemonEssentials.Interface.PokeBattle.IBattle
    pbPokemonCount(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPrimalReversion(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPrimordialWeather()PokemonEssentials.Interface.PokeBattle.IBattle
    pbPriority(bool ignorequickclaw=false, bool log=false)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >.pbRandom(int num)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.PokemonEssentials::Interface::PokeBattle::IBattlePalace.pbRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.IBattlePlayerModule< IBattlePalace >.pbRandom(int num)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattlePalace >
    pbRecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterMegaEvolution(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonEssentials.Interface.PokeBattle.IBattlePalace
    pbRegisterSwitch(int idxPokemon, int idxOther)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterTarget(int idxPokemon, int idxTarget)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRemoveFromParty(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbReplace(int index, int newpoke, bool batonpass=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRun(int idxPokemon, bool duringBattle=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSecondPartyBegin(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSendOut(int index, IBattler pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSetSeen(IPokemon pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbShowCommands(string msg, string[] commands, bool cancancel=true)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >.pbStartBattle(bool canlose=false)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.PokemonEssentials::Interface::PokeBattle::IBattlePalace.pbStartBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.IBattlePlayerModule< IBattlePalace >.pbStartBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattlePalace >
    pbStartBattleCore(bool canlose)PokemonEssentials.Interface.PokeBattle.IBattle
    pbStorePokemon(IPokemon pokemon)PokemonEssentials.Interface.PokeBattle.IBattleCommon
    pbSwitch(bool favorDraws=false)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >.pbSwitchInBetween(int i1, int i2, bool i3)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.PokemonEssentials::Interface::PokeBattle::IBattlePalace.pbSwitchInBetween(int index, bool lax, bool cancancel)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePalacePlayer.IBattlePlayerModule< IBattlePalace >.pbSwitchInBetween(int i1, int i2, bool i3)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattlePalace >
    pbSwitchPlayer(int index, bool lax, bool cancancel)PokemonEssentials.Interface.PokeBattle.IBattle
    pbThrowPokeBall(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonEssentials.Interface.PokeBattle.IBattleCommon
    pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    pbWeatherPokemonEssentials.Interface.PokeBattle.IBattle
    playerPokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePalacePlayer(IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > battle)PokemonUnity.Combat.PokeBattle_BattlePalacePlayer
    PokeBattle_BattlePlayerModule(IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    randomindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    rulesPokemonEssentials.Interface.PokeBattle.IBattle
    scenePokemonEssentials.Interface.PokeBattle.IBattle
    shiftStylePokemonEssentials.Interface.PokeBattle.IBattle
    sidesPokemonEssentials.Interface.PokeBattle.IBattle
    strugglePokemonEssentials.Interface.PokeBattle.IBattle
    successStatesPokemonEssentials.Interface.PokeBattle.IBattle
    switchindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    switchingPokemonEssentials.Interface.PokeBattle.IBattle
    ToString(int battlerindex, int pokemonindex)PokemonEssentials.Interface.PokeBattle.IBattle
    turncountPokemonEssentials.Interface.PokeBattle.IBattle
    weatherPokemonEssentials.Interface.PokeBattle.IBattle
    weatherdurationPokemonEssentials.Interface.PokeBattle.IBattle
    \ No newline at end of file diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player.cshtml deleted file mode 100644 index 7c1386d2e..000000000 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player.cshtml +++ /dev/null @@ -1,451 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Combat.PokeBattle_BattlePalacePlayer Class Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { - -
    PokemonUnity.Combat.PokeBattle_BattlePalacePlayer Class Reference
    -} - -
    -Inheritance diagram for PokemonUnity.Combat.PokeBattle_BattlePalacePlayer:
    -
    -
    - - -PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > > -PokemonEssentials.Interface.PokeBattle.IBattlePalacePlayer -PokemonEssentials.Interface.PokeBattle.IBattlePalace -PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattlePalace > -PokemonEssentials.Interface.PokeBattle.IBattle -PokemonEssentials.Interface.PokeBattle.IBattleCommon - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Public Member Functions

     PokeBattle_BattlePalacePlayer (IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule<PokeBattle_BattlePalace> battle)
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
     PokeBattle_BattlePlayerModule (IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle)
     
    IBattlePlayerModule< IPokeBattle_RecordedBattleModule > initialize (IPokeBattle_Scene scene, IBattle battle)
     
    override BattleResults pbStartBattle (bool canlose=false)
     
    int pbSwitchInBetween (int i1, int i2, bool i3)
     
    override int pbRandom (int num)
     
    override void pbDisplayPaused (string str)
     
    void pbCommandPhaseCore ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattlePalace
    new IBattlePalace initialize (PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    int pbMoveCategory (IBattleMove move)
     
    bool pbCanChooseMovePartial (int idxPokemon, int idxMove)
     Different implementation of pbCanChooseMove, ignores Imprison/Torment/Taunt/Disable/Encore More...
     
    void pbPinchChange (int idxPokemon)
     
    bool pbEnemyShouldWithdraw (int index)
     
    new bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    new bool pbAutoFightMenu (int idxPokemon)
     
    new void pbEndOfRoundPhase ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    void pbAbort ()
     
    IEnumerator pbDebugUpdate ()
     
    int pbRandom (int x)
     
    int pbAIRandom (int x)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    bool pbDoubleBattleAllowed ()
     
    bool pbIsOpposing (int index)
     
    bool pbOwnedByPlayer (int index)
     
    bool pbIsDoubleBattler (int index)
     
    string ToString (int battlerindex, int pokemonindex)
     Only used for Wish More...
     
    bool pbIsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler pbCheckGlobalAbility (Abilities a)
     
    ITrainer pbPlayer ()
     
    Items[] pbGetOwnerItems (int battlerIndex)
     
    void pbSetSeen (IPokemon pokemon)
     
    string pbGetMegaRingName (int battlerIndex)
     
    bool pbHasMegaRing (int battlerIndex)
     
    int pbPokemonCount (IPokemon[] party)
     
    bool pbAllFainted (IPokemon[] party)
     
    int pbMaxLevel (IPokemon[] party)
     
    int pbMaxLevelFromIndex (int index)
     
    IPokemon[] pbParty (int index)
     Gets player party of selected battler More...
     
    IPokemon[] pbOpposingParty (int index)
     
    int pbSecondPartyBegin (int battlerIndex)
     
    int pbPartyLength (int battlerIndex)
     
    int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int pbGetLastPokeInTeam (int index)
     
    IBattler pbFindPlayerBattler (int pkmnIndex)
     
    bool pbIsOwner (int battlerIndex, int partyIndex)
     
    ITrainer pbGetOwner (int battlerIndex)
     
    ITrainer pbGetOwnerPartner (int battlerIndex)
     
    int pbGetOwnerIndex (int battlerIndex)
     
    bool pbBelongsToPlayer (int battlerIndex)
     
    ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
     
    void pbAddToPlayerParty (IBattler pokemon)
     
    void pbRemoveFromParty (int battlerIndex, int partyIndex)
     
    bool pbCanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool pbCanShowFightMenu (int idxPokemon)
     
    bool pbCanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
     
    bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool pbChoseMove (int i, Moves move)
     
    bool pbChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
     
    bool pbRegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
     
    bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    bool pbRegisterSwitch (int idxPokemon, int idxOther)
     
    bool pbCanChooseNonActive (int index)
     
    void pbSwitch (bool favorDraws=false)
     
    void pbSendOut (int index, IBattler pokemon)
     
    void pbReplace (int index, int newpoke, bool batonpass=false)
     
    bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    int pbSwitchInBetween (int index, bool lax, bool cancancel)
     
    int pbSwitchPlayer (int index, bool lax, bool cancancel)
     
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void pbEnemyUseItem (Items item, IBattler battler)
     
    bool pbCanRun (int idxPokemon)
     
    int pbRun (int idxPokemon, bool duringBattle=false)
     
    bool pbCanMegaEvolve (int index)
     
    void pbRegisterMegaEvolution (int index)
     
    void pbMegaEvolve (int index)
     
    void pbPrimalReversion (int index)
     
    void pbCall (int index)
     
    void pbGainEXP ()
     
    void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void pbLearnMove (int pkmnIndex, Moves move)
     
    void pbOnActiveAll ()
     
    bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void pbPrimordialWeather ()
     
    void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    BattleResults pbDecisionOnTime ()
     
    BattleResults pbDecisionOnTime2 ()
     
    BattleResults pbDecisionOnDraw ()
     
    void pbJudge ()
     
    void pbDisplay (string msg)
     
    void pbDisplayPaused (string msg)
     
    void pbDisplayBrief (string msg)
     
    bool pbDisplayConfirm (string msg)
     
    void pbShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    void pbStartBattleCore (bool canlose)
     
    MenuCommands pbCommandMenu (int i)
     
    KeyValuePair<Items, int?> pbItemMenu (int i)
     
    bool pbAutoFightMenu (int i)
     
    void pbCommandPhase ()
     
    void pbAttackPhase ()
     
    void pbEndOfRoundPhase ()
     
    BattleResults pbEndOfBattle (bool canlose=false)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleCommon
    void pbStorePokemon (IPokemon pokemon)
     
    void pbThrowPokeBall (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattlePalace >
    TBattle initialize (PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    int pbSwitchInBetween (int i1, int i2, bool i3)
     
    int pbRandom (int num)
     
    void pbDisplayPaused (string str)
     
    void pbCommandPhaseCore ()
     
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Additional Inherited Members

    - Properties inherited from PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< PokeBattle_BattlePalace > >
    int randomindex [get, protected set]
     
    int switchindex [get, protected set]
     
    - Properties inherited from PokemonEssentials.Interface.PokeBattle.IBattlePalace
    int[] BattlePalaceUsualTable [get]
     
    int[] BattlePalacePinchTable [get]
     
    - Properties inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    IScene scene [get]
     Scene object for this battle More...
     
    BattleResults decision [get, set]
     Decision: 0=undecided; 1=win; 2=loss; 3=escaped; 4=caught More...
     
    bool internalbattle [get, set]
     Internal battle flag More...
     
    bool doublebattle [get, set]
     Double battle flag More...
     
    bool cantescape [get, set]
     True if player can't escape More...
     
    bool shiftStyle [get, set]
     Shift/Set "battle style" option More...
     
    bool battlescene [get, set]
     "Battle scene" option More...
     
    bool debug [get]
     Debug flag More...
     
    ITrainer[] player [get]
     Player trainer More...
     
    ITrainer[] opponent [get]
     Opponent trainer More...
     
    IPokemon[] party1 [get]
     Player's Pokémon party More...
     
    IPokemon[] party2 [get]
     Foe's Pokémon party More...
     
    IList< int > party1order [get]
     Order of Pokémon in the player's party More...
     
    IList< int > party2order [get]
     Order of Pokémon in the opponent's party More...
     
    bool fullparty1 [get]
     True if player's party's max size is 6 instead of 3 More...
     
    bool fullparty2 [get]
     True if opponent's party's max size is 6 instead of 3 More...
     
    IBattler[] battlers [get]
     Currently active Pokémon More...
     
    Items[][] items [get, set]
     Items held by opponents More...
     
    IEffectsSide[] sides [get]
     Effects common to each side of a battle More...
     
    IEffectsField field [get]
     Effects common to the whole of a battle More...
     
    PokemonUnity.Overworld.Environments environment [get, set]
     Battle surroundings More...
     
    Weather weather [get, set]
     Current weather, custom methods should use pbWeather instead More...
     
    int weatherduration [get, set]
     Duration of current weather, or -1 if indefinite More...
     
    bool switching [get]
     True if during the switching phase of the round More...
     
    bool futuresight [get]
     True if Future Sight is hitting More...
     
    IBattleMove struggle [get]
     The Struggle move More...
     
    IBattleChoice[] choices [get]
     Choices made by each Pokémon this round More...
     
    ISuccessState[] successStates [get]
     Success states More...
     
    Moves lastMoveUsed [get, set]
     Last move used More...
     
    int lastMoveUser [get, set]
     Last move user More...
     
    int[][] megaEvolution [get]
     Battle index of each trainer's Pokémon to Mega Evolve More...
     
    bool amuletcoin [get]
     Whether Amulet Coin's effect applies More...
     
    int extramoney [get, set]
     Money gained in battle by using Pay Day More...
     
    bool doublemoney [get, set]
     Whether Happy Hour's effect applies More...
     
    string endspeech [get, set]
     Speech by opponent when player wins More...
     
    string endspeech2 [get, set]
     Speech by opponent when player wins More...
     
    string endspeechwin [get, set]
     Speech by opponent when opponent wins More...
     
    string endspeechwin2 [get, set]
     Speech by opponent when opponent wins More...
     
    IDictionary< string, bool > rules [get]
     
    int turncount [get, set]
     
    bool controlPlayer [get, set]
     
    Weather pbWeather [get]
     
    int nextPickupUse [get]
     
    -

    Constructor & Destructor Documentation

    - -

    ◆ PokeBattle_BattlePalacePlayer()

    - -
    -
    - - - - - - - - - - - - - -
    PokemonUnity.Combat.PokeBattle_BattlePalacePlayer.PokeBattle_BattlePalacePlayer (IPokeBattle_Scene scene,
    PokeBattle_RecordedBattleModule<PokeBattle_BattlePalacebattle  )
    -
    - -
    -
    -
    The documentation for this class was generated from the following file: diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player.png deleted file mode 100644 index edafa5290..000000000 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_palace_player.png and /dev/null differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player-members.cshtml deleted file mode 100644 index 1f051fb83..000000000 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player-members.cshtml +++ /dev/null @@ -1,175 +0,0 @@ -@{ - Page.Title = "Member List"; -} - -@section breadcrumbs { - -} - -@section headertitle { -
    PokemonUnity.Combat.PokeBattle_BattlePlayer Member List
    -} - - -

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_BattlePlayer, including all inherited members.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    amuletcoinPokemonEssentials.Interface.PokeBattle.IBattle
    battlersPokemonEssentials.Interface.PokeBattle.IBattle
    battlescenePokemonEssentials.Interface.PokeBattle.IBattle
    cantescapePokemonEssentials.Interface.PokeBattle.IBattle
    choicesPokemonEssentials.Interface.PokeBattle.IBattle
    controlPlayerPokemonEssentials.Interface.PokeBattle.IBattle
    debugPokemonEssentials.Interface.PokeBattle.IBattle
    decisionPokemonEssentials.Interface.PokeBattle.IBattle
    doublebattlePokemonEssentials.Interface.PokeBattle.IBattle
    doublemoneyPokemonEssentials.Interface.PokeBattle.IBattle
    endspeechPokemonEssentials.Interface.PokeBattle.IBattle
    endspeech2PokemonEssentials.Interface.PokeBattle.IBattle
    endspeechwinPokemonEssentials.Interface.PokeBattle.IBattle
    endspeechwin2PokemonEssentials.Interface.PokeBattle.IBattle
    environmentPokemonEssentials.Interface.PokeBattle.IBattle
    extramoneyPokemonEssentials.Interface.PokeBattle.IBattle
    fieldPokemonEssentials.Interface.PokeBattle.IBattle
    fullparty1PokemonEssentials.Interface.PokeBattle.IBattle
    fullparty2PokemonEssentials.Interface.PokeBattle.IBattle
    futuresightPokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >.initialize(IPokeBattle_Scene scene, IBattle battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.PokemonEssentials::Interface::PokeBattle::IBattle.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.initialize(IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.IBattlePlayerModule< IBattle >.initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattle >
    internalbattlePokemonEssentials.Interface.PokeBattle.IBattle
    itemsPokemonEssentials.Interface.PokeBattle.IBattle
    lastMoveUsedPokemonEssentials.Interface.PokeBattle.IBattle
    lastMoveUserPokemonEssentials.Interface.PokeBattle.IBattle
    megaEvolutionPokemonEssentials.Interface.PokeBattle.IBattle
    nextPickupUsePokemonEssentials.Interface.PokeBattle.IBattle
    opponentPokemonEssentials.Interface.PokeBattle.IBattle
    party1PokemonEssentials.Interface.PokeBattle.IBattle
    party1orderPokemonEssentials.Interface.PokeBattle.IBattle
    party2PokemonEssentials.Interface.PokeBattle.IBattle
    party2orderPokemonEssentials.Interface.PokeBattle.IBattle
    pbAbort()PokemonEssentials.Interface.PokeBattle.IBattle
    pbAddToPlayerParty(IBattler pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAIRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAllFainted(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAnimation(Moves move, IBattler attacker, IBattler opponent, int hitnum=0)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAttackPhase()PokemonEssentials.Interface.PokeBattle.IBattle
    pbAutoChooseMove(int idxPokemon, bool showMessages=true)PokemonEssentials.Interface.PokeBattle.IBattle
    pbAutoFightMenu(int i)PokemonEssentials.Interface.PokeBattle.IBattle
    pbBelongsToPlayer(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCall(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanChooseMove(int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanChooseNonActive(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanMegaEvolve(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanRun(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanShowCommands(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanShowFightMenu(int idxPokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanSwitch(int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCheckGlobalAbility(Abilities a)PokemonEssentials.Interface.PokeBattle.IBattle
    pbChoseMove(int i, Moves move)PokemonEssentials.Interface.PokeBattle.IBattle
    pbChoseMoveFunctionCode(int i, PokemonUnity.Attack.Data.Effects code)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCommandMenu(int i)PokemonEssentials.Interface.PokeBattle.IBattle
    pbCommandPhase()PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >.pbCommandPhaseCore()PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.pbCommandPhaseCore()PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattle >
    pbCommonAnimation(string name, IBattler attacker, IBattler opponent, int hitnum=0)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDebugUpdate()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnDraw()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnTime()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDecisionOnTime2()PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplay(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplayBrief(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    pbDisplayConfirm(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >.pbDisplayPaused(string str)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.PokemonEssentials::Interface::PokeBattle::IBattle.pbDisplayPaused(string msg)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.IBattlePlayerModule< IBattle >.pbDisplayPaused(string str)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattle >
    pbDoubleBattleAllowed()PokemonEssentials.Interface.PokeBattle.IBattle
    pbEndOfBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbEndOfRoundPhase()PokemonEssentials.Interface.PokeBattle.IBattle
    pbEnemyUseItem(Items item, IBattler battler)PokemonEssentials.Interface.PokeBattle.IBattle
    pbFindNextUnfainted(IPokemon[] party, int start, int finish=-1)PokemonEssentials.Interface.PokeBattle.IBattle
    pbFindPlayerBattler(int pkmnIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGainEXP()PokemonEssentials.Interface.PokeBattle.IBattle
    pbGainExpOne(int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetLastPokeInTeam(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetMegaRingName(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwner(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerIndex(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerItems(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbGetOwnerPartner(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbHasMegaRing(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsDoubleBattler(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsOpposing(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsOwner(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbIsUnlosableItem(IBattler pkmn, Items item)PokemonEssentials.Interface.PokeBattle.IBattle
    pbItemMenu(int i)PokemonEssentials.Interface.PokeBattle.IBattle
    pbJudge()PokemonEssentials.Interface.PokeBattle.IBattle
    pbJudgeCheckpoint(IBattler attacker, IBattleMove move=null)PokemonEssentials.Interface.PokeBattle.IBattle
    pbLearnMove(int pkmnIndex, Moves move)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMaxLevel(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMaxLevelFromIndex(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMegaEvolve(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbMessagesOnReplace(int index, int newpoke, int newpokename=-1)PokemonEssentials.Interface.PokeBattle.IBattle
    pbOnActiveAll()PokemonEssentials.Interface.PokeBattle.IBattle
    pbOnActiveOne(IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbOpposingParty(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbOwnedByPlayer(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbParty(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPartyGetOwner(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPartyLength(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPlayer()PokemonEssentials.Interface.PokeBattle.IBattle
    pbPokemonCount(IPokemon[] party)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPrimalReversion(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbPrimordialWeather()PokemonEssentials.Interface.PokeBattle.IBattle
    pbPriority(bool ignorequickclaw=false, bool log=false)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >.pbRandom(int num)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.PokemonEssentials::Interface::PokeBattle::IBattle.pbRandom(int x)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.IBattlePlayerModule< IBattle >.pbRandom(int num)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattle >
    pbRecallAndReplace(int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterItem(int idxPokemon, Items idxItem, int? idxTarget=null)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterMegaEvolution(int index)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterMove(int idxPokemon, int idxMove, bool showMessages=true)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterSwitch(int idxPokemon, int idxOther)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRegisterTarget(int idxPokemon, int idxTarget)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRemoveFromParty(int battlerIndex, int partyIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbReplace(int index, int newpoke, bool batonpass=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbRun(int idxPokemon, bool duringBattle=false)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSecondPartyBegin(int battlerIndex)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSendOut(int index, IBattler pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbSetSeen(IPokemon pokemon)PokemonEssentials.Interface.PokeBattle.IBattle
    pbShowCommands(string msg, string[] commands, bool cancancel=true)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >.pbStartBattle(bool canlose=false)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.PokemonEssentials::Interface::PokeBattle::IBattle.pbStartBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.IBattlePlayerModule< IBattle >.pbStartBattle(bool canlose=false)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattle >
    pbStartBattleCore(bool canlose)PokemonEssentials.Interface.PokeBattle.IBattle
    pbStorePokemon(IPokemon pokemon)PokemonEssentials.Interface.PokeBattle.IBattleCommon
    pbSwitch(bool favorDraws=false)PokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >.pbSwitchInBetween(int i1, int i2, bool i3)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.PokemonEssentials::Interface::PokeBattle::IBattle.pbSwitchInBetween(int index, bool lax, bool cancancel)PokemonEssentials.Interface.PokeBattle.IBattle
    PokemonEssentials::Interface::PokeBattle::IBattlePlayer.IBattlePlayerModule< IBattle >.pbSwitchInBetween(int i1, int i2, bool i3)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattle >
    pbSwitchPlayer(int index, bool lax, bool cancancel)PokemonEssentials.Interface.PokeBattle.IBattle
    pbThrowPokeBall(int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)PokemonEssentials.Interface.PokeBattle.IBattleCommon
    pbUseItemOnBattler(Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    pbUseItemOnPokemon(Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)PokemonEssentials.Interface.PokeBattle.IBattle
    pbWeatherPokemonEssentials.Interface.PokeBattle.IBattle
    playerPokemonEssentials.Interface.PokeBattle.IBattle
    PokeBattle_BattlePlayer(IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule< Battle > battle)PokemonUnity.Combat.PokeBattle_BattlePlayer
    PokeBattle_BattlePlayerModule(IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    randomindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    rulesPokemonEssentials.Interface.PokeBattle.IBattle
    scenePokemonEssentials.Interface.PokeBattle.IBattle
    shiftStylePokemonEssentials.Interface.PokeBattle.IBattle
    sidesPokemonEssentials.Interface.PokeBattle.IBattle
    strugglePokemonEssentials.Interface.PokeBattle.IBattle
    successStatesPokemonEssentials.Interface.PokeBattle.IBattle
    switchindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    switchingPokemonEssentials.Interface.PokeBattle.IBattle
    ToString(int battlerindex, int pokemonindex)PokemonEssentials.Interface.PokeBattle.IBattle
    turncountPokemonEssentials.Interface.PokeBattle.IBattle
    weatherPokemonEssentials.Interface.PokeBattle.IBattle
    weatherdurationPokemonEssentials.Interface.PokeBattle.IBattle
    \ No newline at end of file diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player.cshtml deleted file mode 100644 index 63c14de2c..000000000 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player.cshtml +++ /dev/null @@ -1,427 +0,0 @@ -@{ - Page.Title = "PokemonUnity.Combat.PokeBattle_BattlePlayer Class Reference"; -} - -@section breadcrumbs { - -} - -@section headertitle { - -
    PokemonUnity.Combat.PokeBattle_BattlePlayer Class Reference
    -} - -
    -Inheritance diagram for PokemonUnity.Combat.PokeBattle_BattlePlayer:
    -
    -
    - - -PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > > -PokemonEssentials.Interface.PokeBattle.IBattlePlayer -PokemonEssentials.Interface.PokeBattle.IBattle -PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattle > -PokemonEssentials.Interface.PokeBattle.IBattleCommon - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Public Member Functions

     PokeBattle_BattlePlayer (IPokeBattle_Scene scene, PokeBattle_RecordedBattleModule<Battle> battle)
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
     PokeBattle_BattlePlayerModule (IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle)
     
    IBattlePlayerModule< IPokeBattle_RecordedBattleModule > initialize (IPokeBattle_Scene scene, IBattle battle)
     
    override BattleResults pbStartBattle (bool canlose=false)
     
    int pbSwitchInBetween (int i1, int i2, bool i3)
     
    override int pbRandom (int num)
     
    override void pbDisplayPaused (string str)
     
    void pbCommandPhaseCore ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    void pbAbort ()
     
    IEnumerator pbDebugUpdate ()
     
    int pbRandom (int x)
     
    int pbAIRandom (int x)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer player, ITrainer opponent)
     
    IBattle initialize (IScene scene, IPokemon[] p1, IPokemon[] p2, ITrainer[] player, ITrainer[] opponent)
     
    bool pbDoubleBattleAllowed ()
     
    bool pbIsOpposing (int index)
     
    bool pbOwnedByPlayer (int index)
     
    bool pbIsDoubleBattler (int index)
     
    string ToString (int battlerindex, int pokemonindex)
     Only used for Wish More...
     
    bool pbIsUnlosableItem (IBattler pkmn, Items item)
     Checks whether an item can be removed from a Pokémon. More...
     
    IBattler pbCheckGlobalAbility (Abilities a)
     
    ITrainer pbPlayer ()
     
    Items[] pbGetOwnerItems (int battlerIndex)
     
    void pbSetSeen (IPokemon pokemon)
     
    string pbGetMegaRingName (int battlerIndex)
     
    bool pbHasMegaRing (int battlerIndex)
     
    int pbPokemonCount (IPokemon[] party)
     
    bool pbAllFainted (IPokemon[] party)
     
    int pbMaxLevel (IPokemon[] party)
     
    int pbMaxLevelFromIndex (int index)
     
    IPokemon[] pbParty (int index)
     Gets player party of selected battler More...
     
    IPokemon[] pbOpposingParty (int index)
     
    int pbSecondPartyBegin (int battlerIndex)
     
    int pbPartyLength (int battlerIndex)
     
    int pbFindNextUnfainted (IPokemon[] party, int start, int finish=-1)
     
    int pbGetLastPokeInTeam (int index)
     
    IBattler pbFindPlayerBattler (int pkmnIndex)
     
    bool pbIsOwner (int battlerIndex, int partyIndex)
     
    ITrainer pbGetOwner (int battlerIndex)
     
    ITrainer pbGetOwnerPartner (int battlerIndex)
     
    int pbGetOwnerIndex (int battlerIndex)
     
    bool pbBelongsToPlayer (int battlerIndex)
     
    ITrainer pbPartyGetOwner (int battlerIndex, int partyIndex)
     
    void pbAddToPlayerParty (IBattler pokemon)
     
    void pbRemoveFromParty (int battlerIndex, int partyIndex)
     
    bool pbCanShowCommands (int idxPokemon)
     Check whether actions can be taken. More...
     
    bool pbCanShowFightMenu (int idxPokemon)
     
    bool pbCanChooseMove (int idxPokemon, int idxMove, bool showMessages, bool sleeptalk=false)
     
    void pbAutoChooseMove (int idxPokemon, bool showMessages=true)
     
    bool pbRegisterMove (int idxPokemon, int idxMove, bool showMessages=true)
     
    bool pbChoseMove (int i, Moves move)
     
    bool pbChoseMoveFunctionCode (int i, PokemonUnity.Attack.Data.Effects code)
     
    bool pbRegisterTarget (int idxPokemon, int idxTarget)
     
    IBattler[] pbPriority (bool ignorequickclaw=false, bool log=false)
     
    bool pbCanSwitchLax (int idxPokemon, int pkmnidxTo, bool showMessages)
     
    bool pbCanSwitch (int idxPokemon, int pkmnidxTo, bool showMessages, bool ignoremeanlook=false)
     
    bool pbRegisterSwitch (int idxPokemon, int idxOther)
     
    bool pbCanChooseNonActive (int index)
     
    void pbSwitch (bool favorDraws=false)
     
    void pbSendOut (int index, IBattler pokemon)
     
    void pbReplace (int index, int newpoke, bool batonpass=false)
     
    bool pbRecallAndReplace (int index, int newpoke, int newpokename=-1, bool batonpass=false, bool moldbreaker=false)
     
    void pbMessagesOnReplace (int index, int newpoke, int newpokename=-1)
     
    int pbSwitchInBetween (int index, bool lax, bool cancancel)
     
    int pbSwitchPlayer (int index, bool lax, bool cancancel)
     
    bool pbUseItemOnPokemon (Items item, int pkmnIndex, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on a Pokémon in the player's party. More...
     
    bool pbUseItemOnBattler (Items item, int index, IBattler userPkmn, IHasDisplayMessage scene)
     Uses an item on an active Pokémon. More...
     
    bool pbRegisterItem (int idxPokemon, Items idxItem, int? idxTarget=null)
     
    void pbEnemyUseItem (Items item, IBattler battler)
     
    bool pbCanRun (int idxPokemon)
     
    int pbRun (int idxPokemon, bool duringBattle=false)
     
    bool pbCanMegaEvolve (int index)
     
    void pbRegisterMegaEvolution (int index)
     
    void pbMegaEvolve (int index)
     
    void pbPrimalReversion (int index)
     
    void pbCall (int index)
     
    void pbGainEXP ()
     
    void pbGainExpOne (int index, IBattler defeated, int partic, int expshare, bool haveexpall, bool showmessages=true)
     
    void pbLearnMove (int pkmnIndex, Moves move)
     
    void pbOnActiveAll ()
     
    bool pbOnActiveOne (IBattler pkmn, bool onlyabilities=false, bool moldbreaker=false)
     
    void pbPrimordialWeather ()
     
    void pbJudgeCheckpoint (IBattler attacker, IBattleMove move=null)
     
    BattleResults pbDecisionOnTime ()
     
    BattleResults pbDecisionOnTime2 ()
     
    BattleResults pbDecisionOnDraw ()
     
    void pbJudge ()
     
    void pbDisplay (string msg)
     
    void pbDisplayPaused (string msg)
     
    void pbDisplayBrief (string msg)
     
    bool pbDisplayConfirm (string msg)
     
    void pbShowCommands (string msg, string[] commands, bool cancancel=true)
     
    void pbAnimation (Moves move, IBattler attacker, IBattler opponent, int hitnum=0)
     
    void pbCommonAnimation (string name, IBattler attacker, IBattler opponent, int hitnum=0)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    void pbStartBattleCore (bool canlose)
     
    MenuCommands pbCommandMenu (int i)
     
    KeyValuePair<Items, int?> pbItemMenu (int i)
     
    bool pbAutoFightMenu (int i)
     
    void pbCommandPhase ()
     
    void pbAttackPhase ()
     
    void pbEndOfRoundPhase ()
     
    BattleResults pbEndOfBattle (bool canlose=false)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleCommon
    void pbStorePokemon (IPokemon pokemon)
     
    void pbThrowPokeBall (int idxPokemon, Items ball, int? rareness=null, bool showplayer=false)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IBattle >
    TBattle initialize (PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    int pbSwitchInBetween (int i1, int i2, bool i3)
     
    int pbRandom (int num)
     
    void pbDisplayPaused (string str)
     
    void pbCommandPhaseCore ()
     
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Additional Inherited Members

    - Properties inherited from PokemonUnity.Combat.PokeBattle_BattlePlayerModule< PokeBattle_RecordedBattleModule< Battle > >
    int randomindex [get, protected set]
     
    int switchindex [get, protected set]
     
    - Properties inherited from PokemonEssentials.Interface.PokeBattle.IBattle
    IScene scene [get]
     Scene object for this battle More...
     
    BattleResults decision [get, set]
     Decision: 0=undecided; 1=win; 2=loss; 3=escaped; 4=caught More...
     
    bool internalbattle [get, set]
     Internal battle flag More...
     
    bool doublebattle [get, set]
     Double battle flag More...
     
    bool cantescape [get, set]
     True if player can't escape More...
     
    bool shiftStyle [get, set]
     Shift/Set "battle style" option More...
     
    bool battlescene [get, set]
     "Battle scene" option More...
     
    bool debug [get]
     Debug flag More...
     
    ITrainer[] player [get]
     Player trainer More...
     
    ITrainer[] opponent [get]
     Opponent trainer More...
     
    IPokemon[] party1 [get]
     Player's Pokémon party More...
     
    IPokemon[] party2 [get]
     Foe's Pokémon party More...
     
    IList< int > party1order [get]
     Order of Pokémon in the player's party More...
     
    IList< int > party2order [get]
     Order of Pokémon in the opponent's party More...
     
    bool fullparty1 [get]
     True if player's party's max size is 6 instead of 3 More...
     
    bool fullparty2 [get]
     True if opponent's party's max size is 6 instead of 3 More...
     
    IBattler[] battlers [get]
     Currently active Pokémon More...
     
    Items[][] items [get, set]
     Items held by opponents More...
     
    IEffectsSide[] sides [get]
     Effects common to each side of a battle More...
     
    IEffectsField field [get]
     Effects common to the whole of a battle More...
     
    PokemonUnity.Overworld.Environments environment [get, set]
     Battle surroundings More...
     
    Weather weather [get, set]
     Current weather, custom methods should use pbWeather instead More...
     
    int weatherduration [get, set]
     Duration of current weather, or -1 if indefinite More...
     
    bool switching [get]
     True if during the switching phase of the round More...
     
    bool futuresight [get]
     True if Future Sight is hitting More...
     
    IBattleMove struggle [get]
     The Struggle move More...
     
    IBattleChoice[] choices [get]
     Choices made by each Pokémon this round More...
     
    ISuccessState[] successStates [get]
     Success states More...
     
    Moves lastMoveUsed [get, set]
     Last move used More...
     
    int lastMoveUser [get, set]
     Last move user More...
     
    int[][] megaEvolution [get]
     Battle index of each trainer's Pokémon to Mega Evolve More...
     
    bool amuletcoin [get]
     Whether Amulet Coin's effect applies More...
     
    int extramoney [get, set]
     Money gained in battle by using Pay Day More...
     
    bool doublemoney [get, set]
     Whether Happy Hour's effect applies More...
     
    string endspeech [get, set]
     Speech by opponent when player wins More...
     
    string endspeech2 [get, set]
     Speech by opponent when player wins More...
     
    string endspeechwin [get, set]
     Speech by opponent when opponent wins More...
     
    string endspeechwin2 [get, set]
     Speech by opponent when opponent wins More...
     
    IDictionary< string, bool > rules [get]
     
    int turncount [get, set]
     
    bool controlPlayer [get, set]
     
    Weather pbWeather [get]
     
    int nextPickupUse [get]
     
    -

    Constructor & Destructor Documentation

    - -

    ◆ PokeBattle_BattlePlayer()

    - -
    -
    - - - - - - - - - - - - - -
    PokemonUnity.Combat.PokeBattle_BattlePlayer.PokeBattle_BattlePlayer (IPokeBattle_Scene scene,
    PokeBattle_RecordedBattleModule<Battlebattle  )
    -
    - -
    -
    -
    The documentation for this class was generated from the following file: diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player.png deleted file mode 100644 index dab32c818..000000000 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player.png and /dev/null differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module-members.cshtml index b29203966..bdc2ee79a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module-members.cshtml @@ -10,40 +10,40 @@ } @section headertitle { -
    PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule > Member List
    +
    PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > Member List
    } -

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >, including all inherited members.

    +

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >, including all inherited members.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    battletypePokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    initialize(IPokeBattle_Scene scene, IBattle battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    PokeBattle_RecordedBattleModule< IBattle >.initialize(IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    IBattlePlayerModule< IPokeBattle_RecordedBattleModule >.initialize(PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IPokeBattle_RecordedBattleModule >
    pbAutoChooseMove(int i1, bool showMessages=true)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbCommandPhase()PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbCommandPhaseCore()PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    pbDisplayPaused(string str)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    pbDumpRecord()PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbGetBattleType()PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >virtual
    pbGetTrainerInfo(ITrainer[] trainer)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbRandom(int num)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    pbRegisterItem(int i1, Items i2)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbRegisterMove(int i1, int i2, bool showMessages=true)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbRegisterSwitch(int i1, int i2)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbRegisterTarget(int i1, int i2)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbRun(int i1, bool duringBattle=false)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbStartBattle(bool canlose=false)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    pbStorePokemon(IPokemon pkmn)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    pbSwitchInBetween(int i1, int i2, bool i3)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    PokeBattle_RecordedBattleModule< IBattle >.pbSwitchInBetween(int i1, bool i2, bool i3)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    PokeBattle_BattlePlayerModule(IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    PokeBattle_RecordedBattleModule(IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    propertiesPokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    randomindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    randomnumsPokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    roundindexPokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    roundsPokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    switchesPokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    switchindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >
    \ No newline at end of file + AutoChooseMove(int i1, bool showMessages=true)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + battletypePokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + CommandPhase()PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + CommandPhaseCore()PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + DisplayPaused(string str)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + DumpRecord()PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + GetBattleType()PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T >virtual + GetTrainerInfo(ITrainer[] trainer)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + initialize(IPokeBattle_Scene scene, IRecordedBattleModule< T > battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + PokeBattle_RecordedBattleModule< T >.initialize(IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + InstancePokemonUnity.Combat.PokeBattle_RecordedBattleModule< T >protected + PokeBattle_BattlePlayerModule(IPokeBattle_Scene scene, IBattle battle)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + PokeBattle_RecordedBattleModule(IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + propertiesPokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + Random(int num)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + randomindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + randomnumbersPokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + RegisterItem(int i1, Items i2)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + RegisterMove(int i1, int i2, bool showMessages=true)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + RegisterSwitch(int i1, int i2)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + RegisterTarget(int i1, int i2)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + roundindexPokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + roundsPokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + Run(int i1, bool duringBattle=false)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + StartBattle(bool canlose=false)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + StorePokemon(IPokemon pkmn)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + switchesPokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + SwitchInBetween(int i1, int i2, bool i3)PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + PokeBattle_RecordedBattleModule< T >.SwitchInBetween(int i1, bool i2, bool i3)PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > + switchindexPokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module.cshtml index c192123d4..0d186fa16 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module.cshtml @@ -1,5 +1,5 @@ @{ - Page.Title = "PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule > Class Template Reference"; + Page.Title = "PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > Class Template Reference"; } @section breadcrumbs { @@ -14,105 +14,111 @@ Public Member Functions | Properties | List of all members -
    PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule > Class Template Reference
    +
    PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T > Class Template Reference
    }

    Playback? More...

    -Inheritance diagram for PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >:
    +Inheritance diagram for PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >:
    - - -PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle > -PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IPokeBattle_RecordedBattleModule > + + +PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T > +PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< T >
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Public Member Functions

     PokeBattle_BattlePlayerModule (IPokeBattle_Scene scene, IPokeBattle_RecordedBattleModule battle)
     
    IBattlePlayerModule< IPokeBattle_RecordedBattleModule > initialize (IPokeBattle_Scene scene, IBattle battle)
     
    override BattleResults pbStartBattle (bool canlose=false)
     
    int pbSwitchInBetween (int i1, int i2, bool i3)
     
    override int pbRandom (int num)
     
    override void pbDisplayPaused (string str)
     
    void pbCommandPhaseCore ()
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
     PokeBattle_RecordedBattleModule (IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)
     
    IBattle initialize (IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)
     
    virtual int pbGetBattleType ()
     
    ITrainer[] pbGetTrainerInfo (ITrainer[] trainer)
     
    override BattleResults pbStartBattle (bool canlose=false)
     
    string pbDumpRecord ()
     
    override int pbSwitchInBetween (int i1, bool i2, bool i3)
     
    override bool pbRegisterMove (int i1, int i2, bool showMessages=true)
     
    override int pbRun (int i1, bool duringBattle=false)
     
    override bool pbRegisterTarget (int i1, int i2)
     
    override void pbAutoChooseMove (int i1, bool showMessages=true)
     
    override bool pbRegisterSwitch (int i1, int i2)
     
    bool pbRegisterItem (int i1, Items i2)
     
    override void pbCommandPhase ()
     
    override void pbStorePokemon (IPokemon pkmn)
     
    override int pbRandom (int num)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< IPokeBattle_RecordedBattleModule >
    TBattle initialize (PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)
     
    BattleResults pbStartBattle (bool canlose=false)
     
    int pbSwitchInBetween (int i1, int i2, bool i3)
     
    int pbRandom (int num)
     
    void pbDisplayPaused (string str)
     
    void pbCommandPhaseCore ()
     
     PokeBattle_BattlePlayerModule (IPokeBattle_Scene scene, IBattle battle)
     
    IBattlePlayerModule< T > initialize (IPokeBattle_Scene scene, IRecordedBattleModule< T > battle)
     
    override BattleResults StartBattle (bool canlose=false)
     
    int SwitchInBetween (int i1, int i2, bool i3)
     
    override int Random (int num)
     
    override void DisplayPaused (string str)
     
    void CommandPhaseCore ()
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T >
     PokeBattle_RecordedBattleModule (IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)
     
    IBattle initialize (IPokeBattle_Scene scene, PokemonEssentials.Interface.PokeBattle.IPokemon[] p1, PokemonEssentials.Interface.PokeBattle.IPokemon[] p2, PokemonEssentials.Interface.PokeBattle.ITrainer[] player, PokemonEssentials.Interface.PokeBattle.ITrainer[] opponent)
     
    virtual int GetBattleType ()
     
    ITrainer[] GetTrainerInfo (ITrainer[] trainer)
     
    override BattleResults StartBattle (bool canlose=false)
     
    string DumpRecord ()
     
    override int SwitchInBetween (int i1, bool i2, bool i3)
     
    override bool RegisterMove (int i1, int i2, bool showMessages=true)
     
    override int Run (int i1, bool duringBattle=false)
     
    override bool RegisterTarget (int i1, int i2)
     
    override void AutoChooseMove (int i1, bool showMessages=true)
     
    override bool RegisterSwitch (int i1, int i2)
     
    bool RegisterItem (int i1, Items i2)
     
    override void CommandPhase ()
     
    override void StorePokemon (IPokemon pkmn)
     
    override int Random (int num)
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattlePlayerModule< T >
    IBattlePlayerModule< TBattle > initialize (PokemonEssentials.Interface.Screen.IPokeBattle_Scene scene, IBattle battle)
     
    BattleResults StartBattle (bool canlose=false)
     
    int SwitchInBetween (int i1, int i2, bool i3)
     
    int Random (int num)
     
    void DisplayPaused (string str)
     
    void CommandPhaseCore ()
     
    - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +

    Properties

    int randomindex [get, protected set]
     
    int switchindex [get, protected set]
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_RecordedBattleModule< IBattle >
    IList< int > randomnums [get, protected set]
     
    IList< KeyValuePair<MenuCommands, int >[]> rounds [get, protected set]
     
    IList< int > switches [get, protected set]
     
    int roundindex [get, protected set]
     
    IBattleMetaData properties [get, protected set]
     
    int battletype [get, protected set]
     
    int randomindex [get, protected set]
     
    int switchindex [get, protected set]
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T >
    IList< int > randomnumbers [get, protected set]
     
    IList< KeyValuePair<MenuCommands, int >?[]> rounds [get, protected set]
     
    IList< int > switches [get, protected set]
     
    int roundindex [get, protected set]
     
    IBattleMetaData properties [get, protected set]
     
    int battletype [get, protected set]
     
    + + + +

    +Additional Inherited Members

    - Protected Attributes inherited from PokemonUnity.Combat.PokeBattle_RecordedBattleModule< T >
    TBattle Instance
     

    Detailed Description

    Playback?

    @@ -122,23 +128,33 @@ Properties +
    +
    Type Constraints
    + + + + +
    T :IRecordedBattleModule<T> 
    T :IBattle 
    T :IBattleRecordData 
    +
    +
    +

    Constructor & Destructor Documentation

    - -

    ◆ PokeBattle_BattlePlayerModule()

    + +

    ◆ PokeBattle_BattlePlayerModule()

    - + - + - +
    PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.PokeBattle_BattlePlayerModule PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.PokeBattle_BattlePlayerModule (IPokeBattle_Scene IPokeBattle_Scene  scene,
    IPokeBattle_RecordedBattleModule IBattle  battle  )
    @@ -147,73 +163,73 @@ Properties

    Member Function Documentation

    - -

    ◆ initialize()

    + +

    ◆ CommandPhaseCore()

    - + - - - - - + - -
    IBattlePlayerModule< IPokeBattle_RecordedBattleModule > PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.initialize void PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.CommandPhaseCore (IPokeBattle_Scene scene,
    ) IBattle battle  )
    +

    RegisterMove(i,@@rounds[@@roundindex][i][1]);

    - -

    ◆ pbCommandPhaseCore()

    + +

    ◆ DisplayPaused()

    - + - + +
    void PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.pbCommandPhaseCore override void PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.DisplayPaused ()string str)
    -

    pbRegisterMove(i,@@rounds[@@roundindex][i][1]);

    - -

    ◆ pbDisplayPaused()

    + +

    ◆ initialize()

    - + - - + + + + + + +
    override void PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.pbDisplayPaused IBattlePlayerModule< T > PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.initialize (string str)IPokeBattle_Scene scene,
    IRecordedBattleModule< T > battle  )
    - -

    ◆ pbRandom()

    + +

    ◆ Random()

    - + @@ -224,14 +240,14 @@ Properties - -

    ◆ pbStartBattle()

    + +

    ◆ StartBattle()

    override int PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.pbRandom override int PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.Random ( int  num)
    - + @@ -242,14 +258,14 @@ Properties - -

    ◆ pbSwitchInBetween()

    + +

    ◆ SwitchInBetween()

    override BattleResults PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.pbStartBattle override BattleResults PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.StartBattle ( bool  canlose = false)
    - + @@ -272,8 +288,8 @@ Properties

    Property Documentation

    - -

    ◆ randomindex

    + +

    ◆ randomindex

    @@ -282,7 +298,7 @@ Properties
    @@ -294,8 +310,8 @@ Properties - -

    ◆ switchindex

    + +

    ◆ switchindex

    @@ -304,7 +320,7 @@ Properties
    @@ -319,3 +335,4 @@ Properties
    The documentation for this class was generated from the following file: + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module.png index 2831a8f4f..b28bdf3bd 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___battle_player_module.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion-members.cshtml index 2a8645264..cf81177f6 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion-members.cshtml @@ -19,128 +19,129 @@ + + + + + + + + + + - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
    int PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.pbSwitchInBetween int PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.SwitchInBetween ( int  i1,
    - +
    int PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.randomindexint PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.randomindex
    - +
    int PokemonUnity.Combat.PokeBattle_BattlePlayerModule< out IPokeBattle_RecordedBattleModule >.switchindexint PokemonUnity.Combat.PokeBattle_BattlePlayerModule< T >.switchindex
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    CalcDamage(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Confusion
    PokemonUnity::Combat::PokeBattle_Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::PokeBattle_Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.PokeBattle_Confusionvirtual
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbCalcDamage(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Confusion
    PokemonUnity::Combat::PokeBattle_Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::PokeBattle_Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false)PokemonUnity.Combat.PokeBattle_Confusion
    PokemonUnity::Combat::PokeBattle_Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::PokeBattle_Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Confusion()PokemonUnity.Combat.PokeBattle_Confusion
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false)PokemonUnity.Combat.PokeBattle_Confusion
    PokemonUnity::Combat::PokeBattle_Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::PokeBattle_Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.PokeBattle_Confusionvirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokeBattle_Confusion()PokemonUnity.Combat.PokeBattle_Confusion
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion.cshtml index 218256f91..55cf816b4 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Confusion:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -37,10 +37,10 @@ Public Member Functions   override IBattleMove Initialize (IBattle battle, IMove move)   -int pbCalcDamage (IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false) -  +int CalcDamage (IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -51,31 +51,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -89,83 +89,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -206,57 +208,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -313,8 +315,8 @@ Additional Inherited Members - - + + @@ -349,8 +351,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Pseudomove for confusion damage.

    @@ -373,47 +375,37 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ Initialize()

    + +

    ◆ CalcDamage()

    - - - - - -
    - + - - + + - - + +
    override IBattleMove PokemonUnity.Combat.PokeBattle_Confusion.Initialize int PokemonUnity.Combat.PokeBattle_Confusion.CalcDamage (IBattle battle, IBattler attacker,
    IMove move  )IBattler opponent  )
    -
    -virtual
    -

    Reimplemented from PokemonUnity.Combat.Move.

    -
    - -

    ◆ pbCalcDamage()

    + +

    ◆ EffectMessages()

    - + @@ -422,42 +414,53 @@ Additional Inherited Members - + + + + + + +
    int PokemonUnity.Combat.PokeBattle_Confusion.pbCalcDamage void PokemonUnity.Combat.PokeBattle_Confusion.EffectMessages ( IBattler  attacker,
    IBattler opponent  )opponent,
    bool ignoretype = false  )
    - -

    ◆ pbEffectMessages()

    + +

    ◆ Initialize()

    + + + + + +
    - + - - - - - - - - + + - - + +
    void PokemonUnity.Combat.PokeBattle_Confusion.pbEffectMessages override IBattleMove PokemonUnity.Combat.PokeBattle_Confusion.Initialize (IBattler attacker,
    IBattler opponent, IBattle battle,
    bool ignoretype = false  )IMove move  )
    +
    +virtual
    +

    Reimplemented from PokemonUnity.Combat.Move.

    +

    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion.png index efd142e2d..4cd37cc27 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___confusion.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move-members.cshtml index 0997c8d5a..0a67ea190 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move-members.cshtml @@ -16,128 +16,129 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_FailedMove, including all inherited members.

    - - + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_FailedMovevirtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_FailedMovevirtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_FailedMove()PokemonUnity.Combat.PokeBattle_FailedMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_FailedMove()PokemonUnity.Combat.PokeBattle_FailedMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move.cshtml index ad8331018..8bef9f7c1 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_FailedMove:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_FailedMove:
    Public Member Functions  PokeBattle_FailedMove ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -47,31 +47,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -85,83 +85,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -202,57 +204,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -309,8 +311,8 @@ Additional Inherited Members - - + + @@ -345,8 +347,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Superclass for a failed move. Always fails. This class is unused.

    @@ -369,8 +371,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -379,7 +381,7 @@ Additional Inherited Members - + @@ -416,10 +418,11 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_FailedMove.pbEffect override int PokemonUnity.Combat.PokeBattle_FailedMove.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move.png index 2a7a71972..3500a3b2c 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___failed_move.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move-members.cshtml index 16412c895..cfb007a9b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move-members.cshtml @@ -16,128 +16,129 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move, including all inherited members.

    + + - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + doubledPokemonUnity.Combat.PokeBattle_Moveprotected + doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + idPokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + immediatePokemonUnity.Combat.PokeBattle_Moveprotected + Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + Move()PokemonUnity.Combat.Move + Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + MoveIdPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + ostagePokemonUnity.Combat.PokeBattle_Moveprotected + overridetypePokemonUnity.Combat.PokeBattle_Moveprotected + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move.cshtml index 790d7f751..93adb26a1 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move.cshtml @@ -28,345 +28,345 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move: PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove -PokemonUnity.Combat.PokeBattle_Confusion -PokemonUnity.Combat.PokeBattle_FailedMove -PokemonUnity.Combat.PokeBattle_Move_000 -PokemonUnity.Combat.PokeBattle_Move_001 -PokemonUnity.Combat.PokeBattle_Move_003 -PokemonUnity.Combat.PokeBattle_Move_004 -PokemonUnity.Combat.PokeBattle_Move_005 -PokemonUnity.Combat.PokeBattle_Move_006 -PokemonUnity.Combat.PokeBattle_Move_007 -PokemonUnity.Combat.PokeBattle_Move_008 -PokemonUnity.Combat.PokeBattle_Move_009 -PokemonUnity.Combat.PokeBattle_Move_00A -PokemonUnity.Combat.PokeBattle_Move_00B -PokemonUnity.Combat.PokeBattle_Move_00C -PokemonUnity.Combat.PokeBattle_Move_00D -PokemonUnity.Combat.PokeBattle_Move_00E -PokemonUnity.Combat.PokeBattle_Move_00F -PokemonUnity.Combat.PokeBattle_Move_010 -PokemonUnity.Combat.PokeBattle_Move_011 -PokemonUnity.Combat.PokeBattle_Move_012 -PokemonUnity.Combat.PokeBattle_Move_013 -PokemonUnity.Combat.PokeBattle_Move_014 -PokemonUnity.Combat.PokeBattle_Move_015 -PokemonUnity.Combat.PokeBattle_Move_016 -PokemonUnity.Combat.PokeBattle_Move_017 -PokemonUnity.Combat.PokeBattle_Move_018 -PokemonUnity.Combat.PokeBattle_Move_019 -PokemonUnity.Combat.PokeBattle_Move_01A -PokemonUnity.Combat.PokeBattle_Move_01B -PokemonUnity.Combat.PokeBattle_Move_01C -PokemonUnity.Combat.PokeBattle_Move_01D -PokemonUnity.Combat.PokeBattle_Move_01E -PokemonUnity.Combat.PokeBattle_Move_01F -PokemonUnity.Combat.PokeBattle_Move_020 -PokemonUnity.Combat.PokeBattle_Move_021 -PokemonUnity.Combat.PokeBattle_Move_022 -PokemonUnity.Combat.PokeBattle_Move_023 -PokemonUnity.Combat.PokeBattle_Move_024 -PokemonUnity.Combat.PokeBattle_Move_025 -PokemonUnity.Combat.PokeBattle_Move_026 -PokemonUnity.Combat.PokeBattle_Move_027 -PokemonUnity.Combat.PokeBattle_Move_028 -PokemonUnity.Combat.PokeBattle_Move_029 -PokemonUnity.Combat.PokeBattle_Move_02A -PokemonUnity.Combat.PokeBattle_Move_02B -PokemonUnity.Combat.PokeBattle_Move_02C -PokemonUnity.Combat.PokeBattle_Move_02D -PokemonUnity.Combat.PokeBattle_Move_02E -PokemonUnity.Combat.PokeBattle_Move_02F -PokemonUnity.Combat.PokeBattle_Move_030 -PokemonUnity.Combat.PokeBattle_Move_031 -PokemonUnity.Combat.PokeBattle_Move_032 -PokemonUnity.Combat.PokeBattle_Move_033 -PokemonUnity.Combat.PokeBattle_Move_034 -PokemonUnity.Combat.PokeBattle_Move_035 -PokemonUnity.Combat.PokeBattle_Move_036 -PokemonUnity.Combat.PokeBattle_Move_037 -PokemonUnity.Combat.PokeBattle_Move_038 -PokemonUnity.Combat.PokeBattle_Move_039 -PokemonUnity.Combat.PokeBattle_Move_03A -PokemonUnity.Combat.PokeBattle_Move_03B -PokemonUnity.Combat.PokeBattle_Move_03C -PokemonUnity.Combat.PokeBattle_Move_03D -PokemonUnity.Combat.PokeBattle_Move_03E -PokemonUnity.Combat.PokeBattle_Move_03F -PokemonUnity.Combat.PokeBattle_Move_040 -PokemonUnity.Combat.PokeBattle_Move_041 -PokemonUnity.Combat.PokeBattle_Move_042 -PokemonUnity.Combat.PokeBattle_Move_043 -PokemonUnity.Combat.PokeBattle_Move_044 -PokemonUnity.Combat.PokeBattle_Move_045 -PokemonUnity.Combat.PokeBattle_Move_046 -PokemonUnity.Combat.PokeBattle_Move_047 -PokemonUnity.Combat.PokeBattle_Move_048 -PokemonUnity.Combat.PokeBattle_Move_049 -PokemonUnity.Combat.PokeBattle_Move_04A -PokemonUnity.Combat.PokeBattle_Move_04B -PokemonUnity.Combat.PokeBattle_Move_04C -PokemonUnity.Combat.PokeBattle_Move_04D -PokemonUnity.Combat.PokeBattle_Move_04E -PokemonUnity.Combat.PokeBattle_Move_04F -PokemonUnity.Combat.PokeBattle_Move_050 -PokemonUnity.Combat.PokeBattle_Move_051 -PokemonUnity.Combat.PokeBattle_Move_052 -PokemonUnity.Combat.PokeBattle_Move_053 -PokemonUnity.Combat.PokeBattle_Move_054 -PokemonUnity.Combat.PokeBattle_Move_055 -PokemonUnity.Combat.PokeBattle_Move_056 -PokemonUnity.Combat.PokeBattle_Move_057 -PokemonUnity.Combat.PokeBattle_Move_058 -PokemonUnity.Combat.PokeBattle_Move_059 -PokemonUnity.Combat.PokeBattle_Move_05A -PokemonUnity.Combat.PokeBattle_Move_05B -PokemonUnity.Combat.PokeBattle_Move_05C -PokemonUnity.Combat.PokeBattle_Move_05D -PokemonUnity.Combat.PokeBattle_Move_05E -PokemonUnity.Combat.PokeBattle_Move_05F -PokemonUnity.Combat.PokeBattle_Move_060 -PokemonUnity.Combat.PokeBattle_Move_061 -PokemonUnity.Combat.PokeBattle_Move_062 -PokemonUnity.Combat.PokeBattle_Move_063 -PokemonUnity.Combat.PokeBattle_Move_064 -PokemonUnity.Combat.PokeBattle_Move_065 -PokemonUnity.Combat.PokeBattle_Move_066 -PokemonUnity.Combat.PokeBattle_Move_067 -PokemonUnity.Combat.PokeBattle_Move_068 -PokemonUnity.Combat.PokeBattle_Move_069 -PokemonUnity.Combat.PokeBattle_Move_06A -PokemonUnity.Combat.PokeBattle_Move_06B -PokemonUnity.Combat.PokeBattle_Move_06C -PokemonUnity.Combat.PokeBattle_Move_06D -PokemonUnity.Combat.PokeBattle_Move_06E -PokemonUnity.Combat.PokeBattle_Move_06F -PokemonUnity.Combat.PokeBattle_Move_070 -PokemonUnity.Combat.PokeBattle_Move_071 -PokemonUnity.Combat.PokeBattle_Move_072 -PokemonUnity.Combat.PokeBattle_Move_073 -PokemonUnity.Combat.PokeBattle_Move_074 -PokemonUnity.Combat.PokeBattle_Move_075 -PokemonUnity.Combat.PokeBattle_Move_076 -PokemonUnity.Combat.PokeBattle_Move_077 -PokemonUnity.Combat.PokeBattle_Move_078 -PokemonUnity.Combat.PokeBattle_Move_079 -PokemonUnity.Combat.PokeBattle_Move_07A -PokemonUnity.Combat.PokeBattle_Move_07B -PokemonUnity.Combat.PokeBattle_Move_07C -PokemonUnity.Combat.PokeBattle_Move_07D -PokemonUnity.Combat.PokeBattle_Move_07E -PokemonUnity.Combat.PokeBattle_Move_07F -PokemonUnity.Combat.PokeBattle_Move_080 -PokemonUnity.Combat.PokeBattle_Move_081 -PokemonUnity.Combat.PokeBattle_Move_082 -PokemonUnity.Combat.PokeBattle_Move_083 -PokemonUnity.Combat.PokeBattle_Move_084 -PokemonUnity.Combat.PokeBattle_Move_085 -PokemonUnity.Combat.PokeBattle_Move_086 -PokemonUnity.Combat.PokeBattle_Move_087 -PokemonUnity.Combat.PokeBattle_Move_088 -PokemonUnity.Combat.PokeBattle_Move_089 -PokemonUnity.Combat.PokeBattle_Move_08A -PokemonUnity.Combat.PokeBattle_Move_08B -PokemonUnity.Combat.PokeBattle_Move_08C -PokemonUnity.Combat.PokeBattle_Move_08D -PokemonUnity.Combat.PokeBattle_Move_08E -PokemonUnity.Combat.PokeBattle_Move_08F -PokemonUnity.Combat.PokeBattle_Move_090 -PokemonUnity.Combat.PokeBattle_Move_091 -PokemonUnity.Combat.PokeBattle_Move_092 -PokemonUnity.Combat.PokeBattle_Move_093 -PokemonUnity.Combat.PokeBattle_Move_094 -PokemonUnity.Combat.PokeBattle_Move_095 -PokemonUnity.Combat.PokeBattle_Move_096 -PokemonUnity.Combat.PokeBattle_Move_097 -PokemonUnity.Combat.PokeBattle_Move_098 -PokemonUnity.Combat.PokeBattle_Move_099 -PokemonUnity.Combat.PokeBattle_Move_09A -PokemonUnity.Combat.PokeBattle_Move_09B -PokemonUnity.Combat.PokeBattle_Move_09C -PokemonUnity.Combat.PokeBattle_Move_09D -PokemonUnity.Combat.PokeBattle_Move_09E -PokemonUnity.Combat.PokeBattle_Move_09F -PokemonUnity.Combat.PokeBattle_Move_0A0 -PokemonUnity.Combat.PokeBattle_Move_0A1 -PokemonUnity.Combat.PokeBattle_Move_0A2 -PokemonUnity.Combat.PokeBattle_Move_0A3 -PokemonUnity.Combat.PokeBattle_Move_0A4 -PokemonUnity.Combat.PokeBattle_Move_0A5 -PokemonUnity.Combat.PokeBattle_Move_0A6 -PokemonUnity.Combat.PokeBattle_Move_0A7 -PokemonUnity.Combat.PokeBattle_Move_0A8 -PokemonUnity.Combat.PokeBattle_Move_0A9 -PokemonUnity.Combat.PokeBattle_Move_0AA -PokemonUnity.Combat.PokeBattle_Move_0AB -PokemonUnity.Combat.PokeBattle_Move_0AC -PokemonUnity.Combat.PokeBattle_Move_0AD -PokemonUnity.Combat.PokeBattle_Move_0AE -PokemonUnity.Combat.PokeBattle_Move_0AF -PokemonUnity.Combat.PokeBattle_Move_0B0 -PokemonUnity.Combat.PokeBattle_Move_0B1 -PokemonUnity.Combat.PokeBattle_Move_0B2 -PokemonUnity.Combat.PokeBattle_Move_0B3 -PokemonUnity.Combat.PokeBattle_Move_0B4 -PokemonUnity.Combat.PokeBattle_Move_0B5 -PokemonUnity.Combat.PokeBattle_Move_0B6 -PokemonUnity.Combat.PokeBattle_Move_0B7 -PokemonUnity.Combat.PokeBattle_Move_0B8 -PokemonUnity.Combat.PokeBattle_Move_0B9 -PokemonUnity.Combat.PokeBattle_Move_0BA -PokemonUnity.Combat.PokeBattle_Move_0BB -PokemonUnity.Combat.PokeBattle_Move_0BC -PokemonUnity.Combat.PokeBattle_Move_0BD -PokemonUnity.Combat.PokeBattle_Move_0BE -PokemonUnity.Combat.PokeBattle_Move_0BF -PokemonUnity.Combat.PokeBattle_Move_0C0 -PokemonUnity.Combat.PokeBattle_Move_0C1 -PokemonUnity.Combat.PokeBattle_Move_0C2 -PokemonUnity.Combat.PokeBattle_Move_0C3 -PokemonUnity.Combat.PokeBattle_Move_0C4 -PokemonUnity.Combat.PokeBattle_Move_0C5 -PokemonUnity.Combat.PokeBattle_Move_0C6 -PokemonUnity.Combat.PokeBattle_Move_0C7 -PokemonUnity.Combat.PokeBattle_Move_0C8 -PokemonUnity.Combat.PokeBattle_Move_0C9 -PokemonUnity.Combat.PokeBattle_Move_0CA -PokemonUnity.Combat.PokeBattle_Move_0CB -PokemonUnity.Combat.PokeBattle_Move_0CC -PokemonUnity.Combat.PokeBattle_Move_0CD -PokemonUnity.Combat.PokeBattle_Move_0CE -PokemonUnity.Combat.PokeBattle_Move_0CF -PokemonUnity.Combat.PokeBattle_Move_0D0 -PokemonUnity.Combat.PokeBattle_Move_0D1 -PokemonUnity.Combat.PokeBattle_Move_0D2 -PokemonUnity.Combat.PokeBattle_Move_0D3 -PokemonUnity.Combat.PokeBattle_Move_0D4 -PokemonUnity.Combat.PokeBattle_Move_0D5 -PokemonUnity.Combat.PokeBattle_Move_0D6 -PokemonUnity.Combat.PokeBattle_Move_0D7 -PokemonUnity.Combat.PokeBattle_Move_0D8 -PokemonUnity.Combat.PokeBattle_Move_0D9 -PokemonUnity.Combat.PokeBattle_Move_0DA -PokemonUnity.Combat.PokeBattle_Move_0DB -PokemonUnity.Combat.PokeBattle_Move_0DC -PokemonUnity.Combat.PokeBattle_Move_0DD -PokemonUnity.Combat.PokeBattle_Move_0DE -PokemonUnity.Combat.PokeBattle_Move_0DF -PokemonUnity.Combat.PokeBattle_Move_0E0 -PokemonUnity.Combat.PokeBattle_Move_0E1 -PokemonUnity.Combat.PokeBattle_Move_0E2 -PokemonUnity.Combat.PokeBattle_Move_0E3 -PokemonUnity.Combat.PokeBattle_Move_0E4 -PokemonUnity.Combat.PokeBattle_Move_0E5 -PokemonUnity.Combat.PokeBattle_Move_0E6 -PokemonUnity.Combat.PokeBattle_Move_0E7 -PokemonUnity.Combat.PokeBattle_Move_0E8 -PokemonUnity.Combat.PokeBattle_Move_0E9 -PokemonUnity.Combat.PokeBattle_Move_0EA -PokemonUnity.Combat.PokeBattle_Move_0EB -PokemonUnity.Combat.PokeBattle_Move_0EC -PokemonUnity.Combat.PokeBattle_Move_0ED -PokemonUnity.Combat.PokeBattle_Move_0EE -PokemonUnity.Combat.PokeBattle_Move_0EF -PokemonUnity.Combat.PokeBattle_Move_0F0 -PokemonUnity.Combat.PokeBattle_Move_0F1 -PokemonUnity.Combat.PokeBattle_Move_0F2 -PokemonUnity.Combat.PokeBattle_Move_0F3 -PokemonUnity.Combat.PokeBattle_Move_0F4 -PokemonUnity.Combat.PokeBattle_Move_0F5 -PokemonUnity.Combat.PokeBattle_Move_0F6 -PokemonUnity.Combat.PokeBattle_Move_0F7 -PokemonUnity.Combat.PokeBattle_Move_0F8 -PokemonUnity.Combat.PokeBattle_Move_0F9 -PokemonUnity.Combat.PokeBattle_Move_0FA -PokemonUnity.Combat.PokeBattle_Move_0FB -PokemonUnity.Combat.PokeBattle_Move_0FC -PokemonUnity.Combat.PokeBattle_Move_0FD -PokemonUnity.Combat.PokeBattle_Move_0FE -PokemonUnity.Combat.PokeBattle_Move_0FF -PokemonUnity.Combat.PokeBattle_Move_100 -PokemonUnity.Combat.PokeBattle_Move_101 -PokemonUnity.Combat.PokeBattle_Move_102 -PokemonUnity.Combat.PokeBattle_Move_103 -PokemonUnity.Combat.PokeBattle_Move_104 -PokemonUnity.Combat.PokeBattle_Move_105 -PokemonUnity.Combat.PokeBattle_Move_106 -PokemonUnity.Combat.PokeBattle_Move_107 -PokemonUnity.Combat.PokeBattle_Move_108 -PokemonUnity.Combat.PokeBattle_Move_109 -PokemonUnity.Combat.PokeBattle_Move_10A -PokemonUnity.Combat.PokeBattle_Move_10B -PokemonUnity.Combat.PokeBattle_Move_10C -PokemonUnity.Combat.PokeBattle_Move_10D -PokemonUnity.Combat.PokeBattle_Move_10E -PokemonUnity.Combat.PokeBattle_Move_10F -PokemonUnity.Combat.PokeBattle_Move_110 -PokemonUnity.Combat.PokeBattle_Move_111 -PokemonUnity.Combat.PokeBattle_Move_112 -PokemonUnity.Combat.PokeBattle_Move_113 -PokemonUnity.Combat.PokeBattle_Move_114 -PokemonUnity.Combat.PokeBattle_Move_115 -PokemonUnity.Combat.PokeBattle_Move_116 -PokemonUnity.Combat.PokeBattle_Move_117 -PokemonUnity.Combat.PokeBattle_Move_118 -PokemonUnity.Combat.PokeBattle_Move_119 -PokemonUnity.Combat.PokeBattle_Move_11A -PokemonUnity.Combat.PokeBattle_Move_11B -PokemonUnity.Combat.PokeBattle_Move_11C -PokemonUnity.Combat.PokeBattle_Move_11D -PokemonUnity.Combat.PokeBattle_Move_11E -PokemonUnity.Combat.PokeBattle_Move_11F -PokemonUnity.Combat.PokeBattle_Move_120 -PokemonUnity.Combat.PokeBattle_Move_121 -PokemonUnity.Combat.PokeBattle_Move_122 -PokemonUnity.Combat.PokeBattle_Move_123 -PokemonUnity.Combat.PokeBattle_Move_124 -PokemonUnity.Combat.PokeBattle_Move_125 -PokemonUnity.Combat.PokeBattle_Move_12C -PokemonUnity.Combat.PokeBattle_Move_12E -PokemonUnity.Combat.PokeBattle_Move_130 -PokemonUnity.Combat.PokeBattle_Move_131 -PokemonUnity.Combat.PokeBattle_Move_132 -PokemonUnity.Combat.PokeBattle_Move_133 -PokemonUnity.Combat.PokeBattle_Move_134 -PokemonUnity.Combat.PokeBattle_Move_135 -PokemonUnity.Combat.PokeBattle_Move_137 -PokemonUnity.Combat.PokeBattle_Move_138 -PokemonUnity.Combat.PokeBattle_Move_139 -PokemonUnity.Combat.PokeBattle_Move_13A -PokemonUnity.Combat.PokeBattle_Move_13B -PokemonUnity.Combat.PokeBattle_Move_13C -PokemonUnity.Combat.PokeBattle_Move_13D -PokemonUnity.Combat.PokeBattle_Move_13E -PokemonUnity.Combat.PokeBattle_Move_13F -PokemonUnity.Combat.PokeBattle_Move_140 -PokemonUnity.Combat.PokeBattle_Move_141 -PokemonUnity.Combat.PokeBattle_Move_142 -PokemonUnity.Combat.PokeBattle_Move_143 -PokemonUnity.Combat.PokeBattle_Move_144 -PokemonUnity.Combat.PokeBattle_Move_145 -PokemonUnity.Combat.PokeBattle_Move_146 -PokemonUnity.Combat.PokeBattle_Move_147 -PokemonUnity.Combat.PokeBattle_Move_148 -PokemonUnity.Combat.PokeBattle_Move_149 -PokemonUnity.Combat.PokeBattle_Move_14A -PokemonUnity.Combat.PokeBattle_Move_14B -PokemonUnity.Combat.PokeBattle_Move_14C -PokemonUnity.Combat.PokeBattle_Move_14D -PokemonUnity.Combat.PokeBattle_Move_14E -PokemonUnity.Combat.PokeBattle_Move_14F -PokemonUnity.Combat.PokeBattle_Move_150 -PokemonUnity.Combat.PokeBattle_Move_151 -PokemonUnity.Combat.PokeBattle_Move_152 -PokemonUnity.Combat.PokeBattle_Move_153 -PokemonUnity.Combat.PokeBattle_Move_154 -PokemonUnity.Combat.PokeBattle_Move_155 -PokemonUnity.Combat.PokeBattle_Move_156 -PokemonUnity.Combat.PokeBattle_Move_157 -PokemonUnity.Combat.PokeBattle_Move_158 -PokemonUnity.Combat.PokeBattle_Struggle -PokemonUnity.Combat.PokeBattle_UnimplementedMove +PokemonUnity.Combat.PokeBattle_Confusion +PokemonUnity.Combat.PokeBattle_FailedMove +PokemonUnity.Combat.PokeBattle_Move_000 +PokemonUnity.Combat.PokeBattle_Move_001 +PokemonUnity.Combat.PokeBattle_Move_003 +PokemonUnity.Combat.PokeBattle_Move_004 +PokemonUnity.Combat.PokeBattle_Move_005 +PokemonUnity.Combat.PokeBattle_Move_006 +PokemonUnity.Combat.PokeBattle_Move_007 +PokemonUnity.Combat.PokeBattle_Move_008 +PokemonUnity.Combat.PokeBattle_Move_009 +PokemonUnity.Combat.PokeBattle_Move_00A +PokemonUnity.Combat.PokeBattle_Move_00B +PokemonUnity.Combat.PokeBattle_Move_00C +PokemonUnity.Combat.PokeBattle_Move_00D +PokemonUnity.Combat.PokeBattle_Move_00E +PokemonUnity.Combat.PokeBattle_Move_00F +PokemonUnity.Combat.PokeBattle_Move_010 +PokemonUnity.Combat.PokeBattle_Move_011 +PokemonUnity.Combat.PokeBattle_Move_012 +PokemonUnity.Combat.PokeBattle_Move_013 +PokemonUnity.Combat.PokeBattle_Move_014 +PokemonUnity.Combat.PokeBattle_Move_015 +PokemonUnity.Combat.PokeBattle_Move_016 +PokemonUnity.Combat.PokeBattle_Move_017 +PokemonUnity.Combat.PokeBattle_Move_018 +PokemonUnity.Combat.PokeBattle_Move_019 +PokemonUnity.Combat.PokeBattle_Move_01A +PokemonUnity.Combat.PokeBattle_Move_01B +PokemonUnity.Combat.PokeBattle_Move_01C +PokemonUnity.Combat.PokeBattle_Move_01D +PokemonUnity.Combat.PokeBattle_Move_01E +PokemonUnity.Combat.PokeBattle_Move_01F +PokemonUnity.Combat.PokeBattle_Move_020 +PokemonUnity.Combat.PokeBattle_Move_021 +PokemonUnity.Combat.PokeBattle_Move_022 +PokemonUnity.Combat.PokeBattle_Move_023 +PokemonUnity.Combat.PokeBattle_Move_024 +PokemonUnity.Combat.PokeBattle_Move_025 +PokemonUnity.Combat.PokeBattle_Move_026 +PokemonUnity.Combat.PokeBattle_Move_027 +PokemonUnity.Combat.PokeBattle_Move_028 +PokemonUnity.Combat.PokeBattle_Move_029 +PokemonUnity.Combat.PokeBattle_Move_02A +PokemonUnity.Combat.PokeBattle_Move_02B +PokemonUnity.Combat.PokeBattle_Move_02C +PokemonUnity.Combat.PokeBattle_Move_02D +PokemonUnity.Combat.PokeBattle_Move_02E +PokemonUnity.Combat.PokeBattle_Move_02F +PokemonUnity.Combat.PokeBattle_Move_030 +PokemonUnity.Combat.PokeBattle_Move_031 +PokemonUnity.Combat.PokeBattle_Move_032 +PokemonUnity.Combat.PokeBattle_Move_033 +PokemonUnity.Combat.PokeBattle_Move_034 +PokemonUnity.Combat.PokeBattle_Move_035 +PokemonUnity.Combat.PokeBattle_Move_036 +PokemonUnity.Combat.PokeBattle_Move_037 +PokemonUnity.Combat.PokeBattle_Move_038 +PokemonUnity.Combat.PokeBattle_Move_039 +PokemonUnity.Combat.PokeBattle_Move_03A +PokemonUnity.Combat.PokeBattle_Move_03B +PokemonUnity.Combat.PokeBattle_Move_03C +PokemonUnity.Combat.PokeBattle_Move_03D +PokemonUnity.Combat.PokeBattle_Move_03E +PokemonUnity.Combat.PokeBattle_Move_03F +PokemonUnity.Combat.PokeBattle_Move_040 +PokemonUnity.Combat.PokeBattle_Move_041 +PokemonUnity.Combat.PokeBattle_Move_042 +PokemonUnity.Combat.PokeBattle_Move_043 +PokemonUnity.Combat.PokeBattle_Move_044 +PokemonUnity.Combat.PokeBattle_Move_045 +PokemonUnity.Combat.PokeBattle_Move_046 +PokemonUnity.Combat.PokeBattle_Move_047 +PokemonUnity.Combat.PokeBattle_Move_048 +PokemonUnity.Combat.PokeBattle_Move_049 +PokemonUnity.Combat.PokeBattle_Move_04A +PokemonUnity.Combat.PokeBattle_Move_04B +PokemonUnity.Combat.PokeBattle_Move_04C +PokemonUnity.Combat.PokeBattle_Move_04D +PokemonUnity.Combat.PokeBattle_Move_04E +PokemonUnity.Combat.PokeBattle_Move_04F +PokemonUnity.Combat.PokeBattle_Move_050 +PokemonUnity.Combat.PokeBattle_Move_051 +PokemonUnity.Combat.PokeBattle_Move_052 +PokemonUnity.Combat.PokeBattle_Move_053 +PokemonUnity.Combat.PokeBattle_Move_054 +PokemonUnity.Combat.PokeBattle_Move_055 +PokemonUnity.Combat.PokeBattle_Move_056 +PokemonUnity.Combat.PokeBattle_Move_057 +PokemonUnity.Combat.PokeBattle_Move_058 +PokemonUnity.Combat.PokeBattle_Move_059 +PokemonUnity.Combat.PokeBattle_Move_05A +PokemonUnity.Combat.PokeBattle_Move_05B +PokemonUnity.Combat.PokeBattle_Move_05C +PokemonUnity.Combat.PokeBattle_Move_05D +PokemonUnity.Combat.PokeBattle_Move_05E +PokemonUnity.Combat.PokeBattle_Move_05F +PokemonUnity.Combat.PokeBattle_Move_060 +PokemonUnity.Combat.PokeBattle_Move_061 +PokemonUnity.Combat.PokeBattle_Move_062 +PokemonUnity.Combat.PokeBattle_Move_063 +PokemonUnity.Combat.PokeBattle_Move_064 +PokemonUnity.Combat.PokeBattle_Move_065 +PokemonUnity.Combat.PokeBattle_Move_066 +PokemonUnity.Combat.PokeBattle_Move_067 +PokemonUnity.Combat.PokeBattle_Move_068 +PokemonUnity.Combat.PokeBattle_Move_069 +PokemonUnity.Combat.PokeBattle_Move_06A +PokemonUnity.Combat.PokeBattle_Move_06B +PokemonUnity.Combat.PokeBattle_Move_06C +PokemonUnity.Combat.PokeBattle_Move_06D +PokemonUnity.Combat.PokeBattle_Move_06E +PokemonUnity.Combat.PokeBattle_Move_06F +PokemonUnity.Combat.PokeBattle_Move_070 +PokemonUnity.Combat.PokeBattle_Move_071 +PokemonUnity.Combat.PokeBattle_Move_072 +PokemonUnity.Combat.PokeBattle_Move_073 +PokemonUnity.Combat.PokeBattle_Move_074 +PokemonUnity.Combat.PokeBattle_Move_075 +PokemonUnity.Combat.PokeBattle_Move_076 +PokemonUnity.Combat.PokeBattle_Move_077 +PokemonUnity.Combat.PokeBattle_Move_078 +PokemonUnity.Combat.PokeBattle_Move_079 +PokemonUnity.Combat.PokeBattle_Move_07A +PokemonUnity.Combat.PokeBattle_Move_07B +PokemonUnity.Combat.PokeBattle_Move_07C +PokemonUnity.Combat.PokeBattle_Move_07D +PokemonUnity.Combat.PokeBattle_Move_07E +PokemonUnity.Combat.PokeBattle_Move_07F +PokemonUnity.Combat.PokeBattle_Move_080 +PokemonUnity.Combat.PokeBattle_Move_081 +PokemonUnity.Combat.PokeBattle_Move_082 +PokemonUnity.Combat.PokeBattle_Move_083 +PokemonUnity.Combat.PokeBattle_Move_084 +PokemonUnity.Combat.PokeBattle_Move_085 +PokemonUnity.Combat.PokeBattle_Move_086 +PokemonUnity.Combat.PokeBattle_Move_087 +PokemonUnity.Combat.PokeBattle_Move_088 +PokemonUnity.Combat.PokeBattle_Move_089 +PokemonUnity.Combat.PokeBattle_Move_08A +PokemonUnity.Combat.PokeBattle_Move_08B +PokemonUnity.Combat.PokeBattle_Move_08C +PokemonUnity.Combat.PokeBattle_Move_08D +PokemonUnity.Combat.PokeBattle_Move_08E +PokemonUnity.Combat.PokeBattle_Move_08F +PokemonUnity.Combat.PokeBattle_Move_090 +PokemonUnity.Combat.PokeBattle_Move_091 +PokemonUnity.Combat.PokeBattle_Move_092 +PokemonUnity.Combat.PokeBattle_Move_093 +PokemonUnity.Combat.PokeBattle_Move_094 +PokemonUnity.Combat.PokeBattle_Move_095 +PokemonUnity.Combat.PokeBattle_Move_096 +PokemonUnity.Combat.PokeBattle_Move_097 +PokemonUnity.Combat.PokeBattle_Move_098 +PokemonUnity.Combat.PokeBattle_Move_099 +PokemonUnity.Combat.PokeBattle_Move_09A +PokemonUnity.Combat.PokeBattle_Move_09B +PokemonUnity.Combat.PokeBattle_Move_09C +PokemonUnity.Combat.PokeBattle_Move_09D +PokemonUnity.Combat.PokeBattle_Move_09E +PokemonUnity.Combat.PokeBattle_Move_09F +PokemonUnity.Combat.PokeBattle_Move_0A0 +PokemonUnity.Combat.PokeBattle_Move_0A1 +PokemonUnity.Combat.PokeBattle_Move_0A2 +PokemonUnity.Combat.PokeBattle_Move_0A3 +PokemonUnity.Combat.PokeBattle_Move_0A4 +PokemonUnity.Combat.PokeBattle_Move_0A5 +PokemonUnity.Combat.PokeBattle_Move_0A6 +PokemonUnity.Combat.PokeBattle_Move_0A7 +PokemonUnity.Combat.PokeBattle_Move_0A8 +PokemonUnity.Combat.PokeBattle_Move_0A9 +PokemonUnity.Combat.PokeBattle_Move_0AA +PokemonUnity.Combat.PokeBattle_Move_0AB +PokemonUnity.Combat.PokeBattle_Move_0AC +PokemonUnity.Combat.PokeBattle_Move_0AD +PokemonUnity.Combat.PokeBattle_Move_0AE +PokemonUnity.Combat.PokeBattle_Move_0AF +PokemonUnity.Combat.PokeBattle_Move_0B0 +PokemonUnity.Combat.PokeBattle_Move_0B1 +PokemonUnity.Combat.PokeBattle_Move_0B2 +PokemonUnity.Combat.PokeBattle_Move_0B3 +PokemonUnity.Combat.PokeBattle_Move_0B4 +PokemonUnity.Combat.PokeBattle_Move_0B5 +PokemonUnity.Combat.PokeBattle_Move_0B6 +PokemonUnity.Combat.PokeBattle_Move_0B7 +PokemonUnity.Combat.PokeBattle_Move_0B8 +PokemonUnity.Combat.PokeBattle_Move_0B9 +PokemonUnity.Combat.PokeBattle_Move_0BA +PokemonUnity.Combat.PokeBattle_Move_0BB +PokemonUnity.Combat.PokeBattle_Move_0BC +PokemonUnity.Combat.PokeBattle_Move_0BD +PokemonUnity.Combat.PokeBattle_Move_0BE +PokemonUnity.Combat.PokeBattle_Move_0BF +PokemonUnity.Combat.PokeBattle_Move_0C0 +PokemonUnity.Combat.PokeBattle_Move_0C1 +PokemonUnity.Combat.PokeBattle_Move_0C2 +PokemonUnity.Combat.PokeBattle_Move_0C3 +PokemonUnity.Combat.PokeBattle_Move_0C4 +PokemonUnity.Combat.PokeBattle_Move_0C5 +PokemonUnity.Combat.PokeBattle_Move_0C6 +PokemonUnity.Combat.PokeBattle_Move_0C7 +PokemonUnity.Combat.PokeBattle_Move_0C8 +PokemonUnity.Combat.PokeBattle_Move_0C9 +PokemonUnity.Combat.PokeBattle_Move_0CA +PokemonUnity.Combat.PokeBattle_Move_0CB +PokemonUnity.Combat.PokeBattle_Move_0CC +PokemonUnity.Combat.PokeBattle_Move_0CD +PokemonUnity.Combat.PokeBattle_Move_0CE +PokemonUnity.Combat.PokeBattle_Move_0CF +PokemonUnity.Combat.PokeBattle_Move_0D0 +PokemonUnity.Combat.PokeBattle_Move_0D1 +PokemonUnity.Combat.PokeBattle_Move_0D2 +PokemonUnity.Combat.PokeBattle_Move_0D3 +PokemonUnity.Combat.PokeBattle_Move_0D4 +PokemonUnity.Combat.PokeBattle_Move_0D5 +PokemonUnity.Combat.PokeBattle_Move_0D6 +PokemonUnity.Combat.PokeBattle_Move_0D7 +PokemonUnity.Combat.PokeBattle_Move_0D8 +PokemonUnity.Combat.PokeBattle_Move_0D9 +PokemonUnity.Combat.PokeBattle_Move_0DA +PokemonUnity.Combat.PokeBattle_Move_0DB +PokemonUnity.Combat.PokeBattle_Move_0DC +PokemonUnity.Combat.PokeBattle_Move_0DD +PokemonUnity.Combat.PokeBattle_Move_0DE +PokemonUnity.Combat.PokeBattle_Move_0DF +PokemonUnity.Combat.PokeBattle_Move_0E0 +PokemonUnity.Combat.PokeBattle_Move_0E1 +PokemonUnity.Combat.PokeBattle_Move_0E2 +PokemonUnity.Combat.PokeBattle_Move_0E3 +PokemonUnity.Combat.PokeBattle_Move_0E4 +PokemonUnity.Combat.PokeBattle_Move_0E5 +PokemonUnity.Combat.PokeBattle_Move_0E6 +PokemonUnity.Combat.PokeBattle_Move_0E7 +PokemonUnity.Combat.PokeBattle_Move_0E8 +PokemonUnity.Combat.PokeBattle_Move_0E9 +PokemonUnity.Combat.PokeBattle_Move_0EA +PokemonUnity.Combat.PokeBattle_Move_0EB +PokemonUnity.Combat.PokeBattle_Move_0EC +PokemonUnity.Combat.PokeBattle_Move_0ED +PokemonUnity.Combat.PokeBattle_Move_0EE +PokemonUnity.Combat.PokeBattle_Move_0EF +PokemonUnity.Combat.PokeBattle_Move_0F0 +PokemonUnity.Combat.PokeBattle_Move_0F1 +PokemonUnity.Combat.PokeBattle_Move_0F2 +PokemonUnity.Combat.PokeBattle_Move_0F3 +PokemonUnity.Combat.PokeBattle_Move_0F4 +PokemonUnity.Combat.PokeBattle_Move_0F5 +PokemonUnity.Combat.PokeBattle_Move_0F6 +PokemonUnity.Combat.PokeBattle_Move_0F7 +PokemonUnity.Combat.PokeBattle_Move_0F8 +PokemonUnity.Combat.PokeBattle_Move_0F9 +PokemonUnity.Combat.PokeBattle_Move_0FA +PokemonUnity.Combat.PokeBattle_Move_0FB +PokemonUnity.Combat.PokeBattle_Move_0FC +PokemonUnity.Combat.PokeBattle_Move_0FD +PokemonUnity.Combat.PokeBattle_Move_0FE +PokemonUnity.Combat.PokeBattle_Move_0FF +PokemonUnity.Combat.PokeBattle_Move_100 +PokemonUnity.Combat.PokeBattle_Move_101 +PokemonUnity.Combat.PokeBattle_Move_102 +PokemonUnity.Combat.PokeBattle_Move_103 +PokemonUnity.Combat.PokeBattle_Move_104 +PokemonUnity.Combat.PokeBattle_Move_105 +PokemonUnity.Combat.PokeBattle_Move_106 +PokemonUnity.Combat.PokeBattle_Move_107 +PokemonUnity.Combat.PokeBattle_Move_108 +PokemonUnity.Combat.PokeBattle_Move_109 +PokemonUnity.Combat.PokeBattle_Move_10A +PokemonUnity.Combat.PokeBattle_Move_10B +PokemonUnity.Combat.PokeBattle_Move_10C +PokemonUnity.Combat.PokeBattle_Move_10D +PokemonUnity.Combat.PokeBattle_Move_10E +PokemonUnity.Combat.PokeBattle_Move_10F +PokemonUnity.Combat.PokeBattle_Move_110 +PokemonUnity.Combat.PokeBattle_Move_111 +PokemonUnity.Combat.PokeBattle_Move_112 +PokemonUnity.Combat.PokeBattle_Move_113 +PokemonUnity.Combat.PokeBattle_Move_114 +PokemonUnity.Combat.PokeBattle_Move_115 +PokemonUnity.Combat.PokeBattle_Move_116 +PokemonUnity.Combat.PokeBattle_Move_117 +PokemonUnity.Combat.PokeBattle_Move_118 +PokemonUnity.Combat.PokeBattle_Move_119 +PokemonUnity.Combat.PokeBattle_Move_11A +PokemonUnity.Combat.PokeBattle_Move_11B +PokemonUnity.Combat.PokeBattle_Move_11C +PokemonUnity.Combat.PokeBattle_Move_11D +PokemonUnity.Combat.PokeBattle_Move_11E +PokemonUnity.Combat.PokeBattle_Move_11F +PokemonUnity.Combat.PokeBattle_Move_120 +PokemonUnity.Combat.PokeBattle_Move_121 +PokemonUnity.Combat.PokeBattle_Move_122 +PokemonUnity.Combat.PokeBattle_Move_123 +PokemonUnity.Combat.PokeBattle_Move_124 +PokemonUnity.Combat.PokeBattle_Move_125 +PokemonUnity.Combat.PokeBattle_Move_12C +PokemonUnity.Combat.PokeBattle_Move_12E +PokemonUnity.Combat.PokeBattle_Move_130 +PokemonUnity.Combat.PokeBattle_Move_131 +PokemonUnity.Combat.PokeBattle_Move_132 +PokemonUnity.Combat.PokeBattle_Move_133 +PokemonUnity.Combat.PokeBattle_Move_134 +PokemonUnity.Combat.PokeBattle_Move_135 +PokemonUnity.Combat.PokeBattle_Move_137 +PokemonUnity.Combat.PokeBattle_Move_138 +PokemonUnity.Combat.PokeBattle_Move_139 +PokemonUnity.Combat.PokeBattle_Move_13A +PokemonUnity.Combat.PokeBattle_Move_13B +PokemonUnity.Combat.PokeBattle_Move_13C +PokemonUnity.Combat.PokeBattle_Move_13D +PokemonUnity.Combat.PokeBattle_Move_13E +PokemonUnity.Combat.PokeBattle_Move_13F +PokemonUnity.Combat.PokeBattle_Move_140 +PokemonUnity.Combat.PokeBattle_Move_141 +PokemonUnity.Combat.PokeBattle_Move_142 +PokemonUnity.Combat.PokeBattle_Move_143 +PokemonUnity.Combat.PokeBattle_Move_144 +PokemonUnity.Combat.PokeBattle_Move_145 +PokemonUnity.Combat.PokeBattle_Move_146 +PokemonUnity.Combat.PokeBattle_Move_147 +PokemonUnity.Combat.PokeBattle_Move_148 +PokemonUnity.Combat.PokeBattle_Move_149 +PokemonUnity.Combat.PokeBattle_Move_14A +PokemonUnity.Combat.PokeBattle_Move_14B +PokemonUnity.Combat.PokeBattle_Move_14C +PokemonUnity.Combat.PokeBattle_Move_14D +PokemonUnity.Combat.PokeBattle_Move_14E +PokemonUnity.Combat.PokeBattle_Move_14F +PokemonUnity.Combat.PokeBattle_Move_150 +PokemonUnity.Combat.PokeBattle_Move_151 +PokemonUnity.Combat.PokeBattle_Move_152 +PokemonUnity.Combat.PokeBattle_Move_153 +PokemonUnity.Combat.PokeBattle_Move_154 +PokemonUnity.Combat.PokeBattle_Move_155 +PokemonUnity.Combat.PokeBattle_Move_156 +PokemonUnity.Combat.PokeBattle_Move_157 +PokemonUnity.Combat.PokeBattle_Move_158 +PokemonUnity.Combat.PokeBattle_Struggle +PokemonUnity.Combat.PokeBattle_UnimplementedMove @@ -381,31 +381,31 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -419,83 +419,85 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -536,50 +538,50 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     
    virtual IBattleMove Initialize (IBattle battle, IMove move)
     
    virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool pbIsPhysical (Types type)
     
    virtual bool pbIsSpecial (Types type)
     
    virtual bool pbIsDamaging ()
     
    virtual bool pbTargetsMultiple (IBattler attacker)
     
    virtual int pbPriority (IBattler attacker)
     
    virtual int pbNumHits (IBattler attacker)
     
    virtual bool pbIsMultiHit ()
     not the same as pbNumHits>1 More...
     
    virtual bool pbTwoTurnAttack (IBattler attacker)
     
    virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool pbCanUseWhileAsleep ()
     
    virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool IsPhysical (Types type)
     
    virtual bool IsSpecial (Types type)
     
    virtual bool IsDamaging ()
     
    virtual bool TargetsMultiple (IBattler attacker)
     
    virtual int GetPriority (IBattler attacker)
     
    virtual int NumHits (IBattler attacker)
     
    virtual bool IsMultiHit ()
     not the same as NumHits>1 More...
     
    virtual bool TwoTurnAttack (IBattler attacker)
     
    virtual void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool CanUseWhileAsleep ()
     
    virtual bool isHealingMove ()
     
    virtual bool isRecoilMove ()
     
    virtual bool ignoresSubstitute (IBattler attacker)
     
    virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool pbOnStartUse (IBattler attacker)
     
    virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int pbDisplayUseMessage (IBattler attacker)
     
    virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool CritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool IsCritical (IBattler attacker, IBattler opponent)
     
    virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool OnStartUse (IBattler attacker)
     
    virtual void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int DisplayUseMessage (IBattler attacker)
     
    virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool MoveFailed (IBattler attacker, IBattler opponent)
     
    object Clone ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove
    IBattleMove initialize (IBattle battle, IMove move)
     
    IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    - More...
     
    IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    + More...
     
    int ToInt ()
     
    Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    bool pbIsPhysical (Types type)
     
    bool pbIsSpecial (Types type)
     
    bool pbIsDamaging ()
     
    bool pbTargetsMultiple (IBattler attacker)
     
    int pbPriority (IBattler attacker)
     
    int pbNumHits (IBattler attacker)
     
    bool pbIsMultiHit ()
     
    bool pbTwoTurnAttack (IBattler attacker)
     
    void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool pbCanUseWhileAsleep ()
     
    Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    bool IsPhysical (Types type)
     
    bool IsSpecial (Types type)
     
    bool IsDamaging ()
     
    bool TargetsMultiple (IBattler attacker)
     
    int GetPriority (IBattler attacker)
     
    int NumHits (IBattler attacker)
     
    bool IsMultiHit ()
     
    bool TwoTurnAttack (IBattler attacker)
     
    void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool CanUseWhileAsleep ()
     
    bool isHealingMove ()
     
    bool isRecoilMove ()
     
    bool ignoresSubstitute (IBattler attacker)
     
    bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool pbOnStartUse (IBattler attacker)
     
    void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    int pbDisplayUseMessage (IBattler attacker)
     
    void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool CritialOverride (IBattler attacker, IBattler opponent)
     
    bool IsCritical (IBattler attacker, IBattler opponent)
     
    int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool OnStartUse (IBattler attacker)
     
    void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    int DisplayUseMessage (IBattler attacker)
     
    void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool MoveFailed (IBattler attacker, IBattler opponent)
     
    @@ -638,8 +640,8 @@ Properties - - + + @@ -674,15 +676,15 @@ Properties - - + +

    Properties

     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     
    - - - + + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     

    Detailed Description

    Uses current battle and manipulates the data then return the current battle with updated values.

    @@ -930,3 +932,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move.png index 9d67283bc..d1b0c7c5d 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000-members.cshtml index 0dfd59dd8..df98a4a71 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000-members.cshtml @@ -19,126 +19,127 @@ accuracyPokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove - doubledPokemonUnity.Combat.PokeBattle_Moveprotected - doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove - idPokemonUnity.Combat.PokeBattle_Move - PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - immediatePokemonUnity.Combat.PokeBattle_Moveprotected - Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual - PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove - Move()PokemonUnity.Combat.Move - Move(IBattle battle, IMove move)PokemonUnity.Combat.Move - MoveIdPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove - ostagePokemonUnity.Combat.PokeBattle_Moveprotected - overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_000()PokemonUnity.Combat.PokeBattle_Move_000 - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + doubledPokemonUnity.Combat.PokeBattle_Moveprotected + doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + idPokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + immediatePokemonUnity.Combat.PokeBattle_Moveprotected + Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + Move()PokemonUnity.Combat.Move + Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + MoveIdPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + ostagePokemonUnity.Combat.PokeBattle_Moveprotected + overridetypePokemonUnity.Combat.PokeBattle_Moveprotected + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_000()PokemonUnity.Combat.PokeBattle_Move_000 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000.cshtml index 73f42339e..7d326b9ca 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000.cshtml @@ -25,10 +25,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_000:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove -PokemonUnity.Combat.PokeBattle_Move_126 +PokemonUnity.Combat.PokeBattle_Move_126
    @@ -46,31 +46,31 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -84,83 +84,85 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -201,57 +203,57 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     
    virtual IBattleMove Initialize (IBattle battle, IMove move)
     
    virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool pbIsPhysical (Types type)
     
    virtual bool pbIsSpecial (Types type)
     
    virtual bool pbIsDamaging ()
     
    virtual bool pbTargetsMultiple (IBattler attacker)
     
    virtual int pbPriority (IBattler attacker)
     
    virtual int pbNumHits (IBattler attacker)
     
    virtual bool pbIsMultiHit ()
     not the same as pbNumHits>1 More...
     
    virtual bool pbTwoTurnAttack (IBattler attacker)
     
    virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool pbCanUseWhileAsleep ()
     
    virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool IsPhysical (Types type)
     
    virtual bool IsSpecial (Types type)
     
    virtual bool IsDamaging ()
     
    virtual bool TargetsMultiple (IBattler attacker)
     
    virtual int GetPriority (IBattler attacker)
     
    virtual int NumHits (IBattler attacker)
     
    virtual bool IsMultiHit ()
     not the same as NumHits>1 More...
     
    virtual bool TwoTurnAttack (IBattler attacker)
     
    virtual void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool CanUseWhileAsleep ()
     
    virtual bool isHealingMove ()
     
    virtual bool isRecoilMove ()
     
    virtual bool ignoresSubstitute (IBattler attacker)
     
    virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool pbOnStartUse (IBattler attacker)
     
    virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int pbDisplayUseMessage (IBattler attacker)
     
    virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool CritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool IsCritical (IBattler attacker, IBattler opponent)
     
    virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool OnStartUse (IBattler attacker)
     
    virtual void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int DisplayUseMessage (IBattler attacker)
     
    virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool MoveFailed (IBattler attacker, IBattler opponent)
     
    object Clone ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove
    IBattleMove initialize (IBattle battle, IMove move)
     
    IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    - More...
     
    IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    + More...
     
    int ToInt ()
     
    Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    bool pbIsPhysical (Types type)
     
    bool pbIsSpecial (Types type)
     
    bool pbIsDamaging ()
     
    bool pbTargetsMultiple (IBattler attacker)
     
    int pbPriority (IBattler attacker)
     
    int pbNumHits (IBattler attacker)
     
    bool pbIsMultiHit ()
     
    bool pbTwoTurnAttack (IBattler attacker)
     
    void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool pbCanUseWhileAsleep ()
     
    Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    bool IsPhysical (Types type)
     
    bool IsSpecial (Types type)
     
    bool IsDamaging ()
     
    bool TargetsMultiple (IBattler attacker)
     
    int GetPriority (IBattler attacker)
     
    int NumHits (IBattler attacker)
     
    bool IsMultiHit ()
     
    bool TwoTurnAttack (IBattler attacker)
     
    void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool CanUseWhileAsleep ()
     
    bool isHealingMove ()
     
    bool isRecoilMove ()
     
    bool ignoresSubstitute (IBattler attacker)
     
    bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool pbOnStartUse (IBattler attacker)
     
    void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    int pbDisplayUseMessage (IBattler attacker)
     
    void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool CritialOverride (IBattler attacker, IBattler opponent)
     
    bool IsCritical (IBattler attacker, IBattler opponent)
     
    int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool OnStartUse (IBattler attacker)
     
    void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    int DisplayUseMessage (IBattler attacker)
     
    void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool MoveFailed (IBattler attacker, IBattler opponent)
     
    - - - + + + @@ -308,8 +310,8 @@ Additional Inherited Members - - + + @@ -344,8 +346,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    No additional effect.

    @@ -370,3 +372,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000.png index 1c3ccf3a1..538ad7bf7 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__000.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001-members.cshtml index 8c3dddffe..2aef3423a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001-members.cshtml @@ -16,128 +16,129 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_001, including all inherited members.

    - - + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_001virtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_001virtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_001()PokemonUnity.Combat.PokeBattle_Move_001
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.PokeBattle_Move_001virtual
    \ No newline at end of file + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_001()PokemonUnity.Combat.PokeBattle_Move_001 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.PokeBattle_Move_001virtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001.cshtml index 8d6bb9b14..b7ab95f36 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_001:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -37,8 +37,8 @@ Public Member Functions   override bool UnusableInGravity ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -49,31 +49,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -87,83 +87,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -204,57 +206,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -311,8 +313,8 @@ Additional Inherited Members - - + + @@ -347,8 +349,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Does absolutely nothing. (Splash)

    @@ -371,8 +373,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -381,7 +383,7 @@ Additional Inherited Members - + @@ -418,7 +420,7 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_001.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_001.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    @@ -452,3 +454,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001.png index 06432d2b5..5fd4ed77d 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__001.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002-members.cshtml index 9e6276ac9..49a9bade9 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002-members.cshtml @@ -19,127 +19,128 @@ accuracyPokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + CalcDamage(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Struggle + PokemonUnity::Combat::PokeBattle_Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::PokeBattle_Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove doubledPokemonUnity.Combat.PokeBattle_Moveprotected doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove - idPokemonUnity.Combat.PokeBattle_Move - PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - immediatePokemonUnity.Combat.PokeBattle_Moveprotected - Initialize(IBattle battle, IMove move)PokemonUnity.Combat.PokeBattle_Strugglevirtual - PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove - Move()PokemonUnity.Combat.Move - Move(IBattle battle, IMove move)PokemonUnity.Combat.Move - MoveIdPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove - ostagePokemonUnity.Combat.PokeBattle_Moveprotected - overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbCalcDamage(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Struggle - PokemonUnity::Combat::PokeBattle_Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonUnity::Combat::PokeBattle_Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.PokeBattle_Strugglevirtual - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_002()PokemonUnity.Combat.PokeBattle_Move_002 - PokeBattle_Struggle()PokemonUnity.Combat.PokeBattle_Struggle - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move + EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.PokeBattle_Strugglevirtual + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + idPokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + immediatePokemonUnity.Combat.PokeBattle_Moveprotected + Initialize(IBattle battle, IMove move)PokemonUnity.Combat.PokeBattle_Strugglevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + Move()PokemonUnity.Combat.Move + Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + MoveIdPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + ostagePokemonUnity.Combat.PokeBattle_Moveprotected + overridetypePokemonUnity.Combat.PokeBattle_Moveprotected + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_002()PokemonUnity.Combat.PokeBattle_Move_002 + PokeBattle_Struggle()PokemonUnity.Combat.PokeBattle_Struggle + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002.cshtml index bd165eddd..047260420 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002.cshtml @@ -25,8 +25,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_002:
    -PokemonUnity.Combat.PokeBattle_Struggle -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Struggle +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -41,10 +41,10 @@ Public Member Functions   override IBattleMove Initialize (IBattle battle, IMove move)   -override void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -int pbCalcDamage (IBattler attacker, IBattler opponent) -  +override void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +int CalcDamage (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -55,31 +55,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -93,83 +93,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -210,57 +212,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -317,8 +319,8 @@ Additional Inherited Members - - + + @@ -353,8 +355,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Struggle. Overrides the default Struggle effect above.

    @@ -379,3 +381,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002.png index e632dd79d..cb9f7723c 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__002.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003-members.cshtml index 688f50584..5483c0fc0 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003-members.cshtml @@ -19,123 +19,124 @@ accuracyPokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove - astagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove - calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_003virtual + PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove + calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove doubledPokemonUnity.Combat.PokeBattle_Moveprotected doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.PokeBattle_Move_003virtual + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_003virtual + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove idPokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove immediatePokemonUnity.Combat.PokeBattle_Moveprotected Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove Move()PokemonUnity.Combat.Move Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove MoveIdPokemonUnity.Combat.Move PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove ostagePokemonUnity.Combat.PokeBattle_Moveprotected overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_003virtual - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_003virtual - pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.PokeBattle_Move_003virtual - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_003()PokemonUnity.Combat.PokeBattle_Move_003 - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_003()PokemonUnity.Combat.PokeBattle_Move_003 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003.cshtml index 1986df195..e5b02eba1 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_003:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,12 +35,12 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_003:
    Public Member Functions  PokeBattle_Move_003 ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -override void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  +override void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -51,31 +51,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -89,83 +89,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -206,57 +208,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -313,8 +315,8 @@ Additional Inherited Members - - + + @@ -349,8 +351,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Puts the target to sleep.

    @@ -373,8 +375,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -383,7 +385,7 @@ Additional Inherited Members - + @@ -402,12 +404,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_003.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_003.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ EffectAfterHit()

    @@ -416,7 +418,7 @@ Additional Inherited Members - + @@ -430,20 +432,8 @@ Additional Inherited Members - - - - - - - - - - - - - - + +
    override int PokemonUnity.Combat.PokeBattle_Move_003.pbEffect override void PokemonUnity.Combat.PokeBattle_Move_003.EffectAfterHit ( IBattler  attacker,
    int hitnum = 0,
    int[] alltargets = null,
    bool showanimation = true  )IEffectsMove turneffects  )
    @@ -453,12 +443,12 @@ Additional Inherited Members
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffectAfterHit()

    + +

    ◆ GetEffect()

    @@ -467,7 +457,7 @@ Additional Inherited Members - + @@ -481,8 +471,20 @@ Additional Inherited Members - - + + + + + + + + + + + + + +
    override void PokemonUnity.Combat.PokeBattle_Move_003.pbEffectAfterHit override int PokemonUnity.Combat.PokeBattle_Move_003.GetEffect ( IBattler  attacker,
    IEffectsMove turneffects  )int hitnum = 0,
    int[] alltargets = null,
    bool showanimation = true  )
    @@ -492,10 +494,11 @@ Additional Inherited Members
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003.png index c170c47b3..307bfffcd 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__003.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004-members.cshtml index 5e0e23e36..f10180383 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004-members.cshtml @@ -16,128 +16,129 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_004, including all inherited members.

    - - + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_004virtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_004virtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_004()PokemonUnity.Combat.PokeBattle_Move_004
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_004()PokemonUnity.Combat.PokeBattle_Move_004
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004.cshtml index 9187ef6c9..1c76984bc 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_004:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_004:
    Public Member Functions  PokeBattle_Move_004 ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -47,31 +47,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -85,83 +85,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -202,57 +204,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -309,8 +311,8 @@ Additional Inherited Members - - + + @@ -345,8 +347,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Makes the target drowsy; it will fall asleep at the end of the next turn. (Yawn)

    @@ -369,8 +371,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -379,7 +381,7 @@ Additional Inherited Members - + @@ -416,10 +418,11 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_004.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_004.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004.png index 52c8e628d..1b786296e 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__004.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005-members.cshtml index 2fe8595a2..b26564111 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005-members.cshtml @@ -16,127 +16,128 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_005, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_005virtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_005virtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_005virtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_005()PokemonUnity.Combat.PokeBattle_Move_005
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_005virtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_005()PokemonUnity.Combat.PokeBattle_Move_005
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005.cshtml index 92f6aaa31..91ca9cc4c 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_005:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,10 +35,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_005:
    Public Member Functions  PokeBattle_Move_005 ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -49,31 +49,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -87,83 +87,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -204,57 +206,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -311,8 +313,8 @@ Additional Inherited Members - - + + @@ -347,8 +349,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Poisons the target.

    @@ -371,8 +373,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -381,7 +383,7 @@ Additional Inherited Members - + @@ -400,12 +402,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_005.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_005.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -414,7 +416,7 @@ Additional Inherited Members - + @@ -451,10 +453,11 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_005.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_005.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005.png index b34784ed0..8efe9926e 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__005.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006-members.cshtml index 85f781159..aa54ccc11 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006-members.cshtml @@ -16,127 +16,128 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_006, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_006virtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_006virtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_006virtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_006()PokemonUnity.Combat.PokeBattle_Move_006
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_006virtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_006()PokemonUnity.Combat.PokeBattle_Move_006
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006.cshtml index ae4d1764d..01ce4ec2b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006.cshtml @@ -17,7 +17,7 @@ } -

    Badly poisons the target. (Poison Fang, Toxic) (Handled in Pokemon's pbSuccessCheck): Hits semi-invulnerable targets if user is Poison-type and move is status move. +

    Badly poisons the target. (Poison Fang, Toxic) (Handled in Pokemon's SuccessCheck): Hits semi-invulnerable targets if user is Poison-type and move is status move. More...

    Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_006:
    @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_006:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,10 +35,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_006:
    Public Member Functions  PokeBattle_Move_006 ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -49,31 +49,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -87,83 +87,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -204,57 +206,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -311,8 +313,8 @@ Additional Inherited Members - - + + @@ -347,11 +349,11 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    -

    Badly poisons the target. (Poison Fang, Toxic) (Handled in Pokemon's pbSuccessCheck): Hits semi-invulnerable targets if user is Poison-type and move is status move.

    +

    Badly poisons the target. (Poison Fang, Toxic) (Handled in Pokemon's SuccessCheck): Hits semi-invulnerable targets if user is Poison-type and move is status move.

    Constructor & Destructor Documentation

    ◆ PokeBattle_Move_006()

    @@ -371,8 +373,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -381,7 +383,7 @@ Additional Inherited Members - + @@ -400,12 +402,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_006.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_006.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -414,7 +416,7 @@ Additional Inherited Members - + @@ -451,10 +453,11 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_006.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_006.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006.png index 26245e381..e6e3aa448 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__006.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007-members.cshtml index 46c2b4d7c..fd84ecfeb 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007-members.cshtml @@ -16,127 +16,128 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_007, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_007virtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_007virtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_007virtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_007()PokemonUnity.Combat.PokeBattle_Move_007
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_007virtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_007()PokemonUnity.Combat.PokeBattle_Move_007
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007.cshtml index 89e6d6f09..6849e591d 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007.cshtml @@ -25,10 +25,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_007:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove -PokemonUnity.Combat.PokeBattle_Move_127 +PokemonUnity.Combat.PokeBattle_Move_127
    @@ -36,10 +36,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_007: Public Member Functions - - - - + + + + @@ -50,31 +50,31 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -88,83 +88,85 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -205,57 +207,57 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     PokeBattle_Move_007 ()
     
    override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    override void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    override void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move
     PokeBattle_Move ()
     
     
    virtual IBattleMove Initialize (IBattle battle, IMove move)
     
    virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool pbIsPhysical (Types type)
     
    virtual bool pbIsSpecial (Types type)
     
    virtual bool pbIsDamaging ()
     
    virtual bool pbTargetsMultiple (IBattler attacker)
     
    virtual int pbPriority (IBattler attacker)
     
    virtual int pbNumHits (IBattler attacker)
     
    virtual bool pbIsMultiHit ()
     not the same as pbNumHits>1 More...
     
    virtual bool pbTwoTurnAttack (IBattler attacker)
     
    virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool pbCanUseWhileAsleep ()
     
    virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool IsPhysical (Types type)
     
    virtual bool IsSpecial (Types type)
     
    virtual bool IsDamaging ()
     
    virtual bool TargetsMultiple (IBattler attacker)
     
    virtual int GetPriority (IBattler attacker)
     
    virtual int NumHits (IBattler attacker)
     
    virtual bool IsMultiHit ()
     not the same as NumHits>1 More...
     
    virtual bool TwoTurnAttack (IBattler attacker)
     
    virtual void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool CanUseWhileAsleep ()
     
    virtual bool isHealingMove ()
     
    virtual bool isRecoilMove ()
     
    virtual bool ignoresSubstitute (IBattler attacker)
     
    virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool pbOnStartUse (IBattler attacker)
     
    virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int pbDisplayUseMessage (IBattler attacker)
     
    virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool CritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool IsCritical (IBattler attacker, IBattler opponent)
     
    virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool OnStartUse (IBattler attacker)
     
    virtual void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int DisplayUseMessage (IBattler attacker)
     
    virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool MoveFailed (IBattler attacker, IBattler opponent)
     
    object Clone ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove
    IBattleMove initialize (IBattle battle, IMove move)
     
    IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    - More...
     
    IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    + More...
     
    int ToInt ()
     
    Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    bool pbIsPhysical (Types type)
     
    bool pbIsSpecial (Types type)
     
    bool pbIsDamaging ()
     
    bool pbTargetsMultiple (IBattler attacker)
     
    int pbPriority (IBattler attacker)
     
    int pbNumHits (IBattler attacker)
     
    bool pbIsMultiHit ()
     
    bool pbTwoTurnAttack (IBattler attacker)
     
    void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool pbCanUseWhileAsleep ()
     
    Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    bool IsPhysical (Types type)
     
    bool IsSpecial (Types type)
     
    bool IsDamaging ()
     
    bool TargetsMultiple (IBattler attacker)
     
    int GetPriority (IBattler attacker)
     
    int NumHits (IBattler attacker)
     
    bool IsMultiHit ()
     
    bool TwoTurnAttack (IBattler attacker)
     
    void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool CanUseWhileAsleep ()
     
    bool isHealingMove ()
     
    bool isRecoilMove ()
     
    bool ignoresSubstitute (IBattler attacker)
     
    bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool pbOnStartUse (IBattler attacker)
     
    void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    int pbDisplayUseMessage (IBattler attacker)
     
    void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool CritialOverride (IBattler attacker, IBattler opponent)
     
    bool IsCritical (IBattler attacker, IBattler opponent)
     
    int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool OnStartUse (IBattler attacker)
     
    void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    int DisplayUseMessage (IBattler attacker)
     
    void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool MoveFailed (IBattler attacker, IBattler opponent)
     
    - - - + + + @@ -312,8 +314,8 @@ Additional Inherited Members - - + + @@ -348,8 +350,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Paralyzes the target. Thunder Wave: Doesn't affect target if move's type has no effect on it. Bolt Strike: Powers up the next Fusion Flare used this round.

    @@ -372,8 +374,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -382,7 +384,7 @@ Additional Inherited Members - + @@ -401,12 +403,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_007.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_007.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -415,7 +417,7 @@ Additional Inherited Members - + @@ -452,12 +454,13 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_007.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_007.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_127.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_127.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007.png index 56ea99756..42e99d9f8 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__007.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008-members.cshtml index 4fc3259fa..499eea0c3 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008-members.cshtml @@ -16,129 +16,130 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_008, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_008virtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_008virtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    pbModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_008
    PokemonUnity::Combat::PokeBattle_Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::PokeBattle_Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_008()PokemonUnity.Combat.PokeBattle_Move_008
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    ModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_008
    PokemonUnity::Combat::PokeBattle_Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::PokeBattle_Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_008()PokemonUnity.Combat.PokeBattle_Move_008
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008.cshtml index 5555603a4..a52e3f53e 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008.cshtml @@ -17,7 +17,7 @@ } -

    Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. +

    Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...

    Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_008:
    @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_008:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,10 +35,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_008:
    Public Member Functions  PokeBattle_Move_008 ()   -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (byte baseaccuracy, IBattler attacker, IBattler opponent) -  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (byte baseaccuracy, IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -49,31 +49,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -87,83 +87,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -204,57 +206,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -311,8 +313,8 @@ Additional Inherited Members - - + + @@ -347,11 +349,11 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    -

    Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets.

    +

    Paralyzes the target. Accuracy perfect in rain, 50% in sunshine. (Thunder) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets.

    Constructor & Destructor Documentation

    ◆ PokeBattle_Move_008()

    @@ -371,8 +373,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -381,7 +383,7 @@ Additional Inherited Members - + @@ -400,18 +402,18 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_008.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_008.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbModifyBaseAccuracy()

    + +

    ◆ ModifyBaseAccuracy()

    - + @@ -436,3 +438,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008.png index dbac1b41e..0ca0b3efd 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__008.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009-members.cshtml index 2e77575ed..3a89a1e8c 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009-members.cshtml @@ -19,125 +19,126 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    int PokemonUnity.Combat.PokeBattle_Move_008.pbModifyBaseAccuracy int PokemonUnity.Combat.PokeBattle_Move_008.ModifyBaseAccuracy ( byte  baseaccuracy,
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_009virtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_009virtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_009()PokemonUnity.Combat.PokeBattle_Move_009
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_009()PokemonUnity.Combat.PokeBattle_Move_009
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009.cshtml index 258aca198..fb6a62b12 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_009:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_009:
    Public Member Functions  PokeBattle_Move_009 ()   -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -47,31 +47,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -85,83 +85,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -202,57 +204,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -309,8 +311,8 @@ Additional Inherited Members - - + + @@ -345,8 +347,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Paralyzes the target. May cause the target to flinch. (Thunder Fang)

    @@ -369,8 +371,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -379,7 +381,7 @@ Additional Inherited Members - + @@ -398,10 +400,11 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_009.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_009.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009.png index 0d1fb1e68..7a7c75686 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__009.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a-members.cshtml index f80f2bd21..5d9c2b56b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a-members.cshtml @@ -16,127 +16,128 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_00A, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Avirtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Avirtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_00Avirtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_00A()PokemonUnity.Combat.PokeBattle_Move_00A
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_00Avirtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_00A()PokemonUnity.Combat.PokeBattle_Move_00A
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a.cshtml index 8a7cf7edb..a30a1c254 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a.cshtml @@ -25,10 +25,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00A:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove -PokemonUnity.Combat.PokeBattle_Move_128 +PokemonUnity.Combat.PokeBattle_Move_128
    @@ -36,10 +36,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00A: Public Member Functions - - - - + + + + @@ -50,31 +50,31 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -88,83 +88,85 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -205,57 +207,57 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     PokeBattle_Move_00A ()
     
    override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    override void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    override void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move
     PokeBattle_Move ()
     
     
    virtual IBattleMove Initialize (IBattle battle, IMove move)
     
    virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool pbIsPhysical (Types type)
     
    virtual bool pbIsSpecial (Types type)
     
    virtual bool pbIsDamaging ()
     
    virtual bool pbTargetsMultiple (IBattler attacker)
     
    virtual int pbPriority (IBattler attacker)
     
    virtual int pbNumHits (IBattler attacker)
     
    virtual bool pbIsMultiHit ()
     not the same as pbNumHits>1 More...
     
    virtual bool pbTwoTurnAttack (IBattler attacker)
     
    virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool pbCanUseWhileAsleep ()
     
    virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool IsPhysical (Types type)
     
    virtual bool IsSpecial (Types type)
     
    virtual bool IsDamaging ()
     
    virtual bool TargetsMultiple (IBattler attacker)
     
    virtual int GetPriority (IBattler attacker)
     
    virtual int NumHits (IBattler attacker)
     
    virtual bool IsMultiHit ()
     not the same as NumHits>1 More...
     
    virtual bool TwoTurnAttack (IBattler attacker)
     
    virtual void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool CanUseWhileAsleep ()
     
    virtual bool isHealingMove ()
     
    virtual bool isRecoilMove ()
     
    virtual bool ignoresSubstitute (IBattler attacker)
     
    virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool pbOnStartUse (IBattler attacker)
     
    virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int pbDisplayUseMessage (IBattler attacker)
     
    virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool CritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool IsCritical (IBattler attacker, IBattler opponent)
     
    virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool OnStartUse (IBattler attacker)
     
    virtual void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int DisplayUseMessage (IBattler attacker)
     
    virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool MoveFailed (IBattler attacker, IBattler opponent)
     
    object Clone ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove
    IBattleMove initialize (IBattle battle, IMove move)
     
    IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    - More...
     
    IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    + More...
     
    int ToInt ()
     
    Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    bool pbIsPhysical (Types type)
     
    bool pbIsSpecial (Types type)
     
    bool pbIsDamaging ()
     
    bool pbTargetsMultiple (IBattler attacker)
     
    int pbPriority (IBattler attacker)
     
    int pbNumHits (IBattler attacker)
     
    bool pbIsMultiHit ()
     
    bool pbTwoTurnAttack (IBattler attacker)
     
    void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool pbCanUseWhileAsleep ()
     
    Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    bool IsPhysical (Types type)
     
    bool IsSpecial (Types type)
     
    bool IsDamaging ()
     
    bool TargetsMultiple (IBattler attacker)
     
    int GetPriority (IBattler attacker)
     
    int NumHits (IBattler attacker)
     
    bool IsMultiHit ()
     
    bool TwoTurnAttack (IBattler attacker)
     
    void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool CanUseWhileAsleep ()
     
    bool isHealingMove ()
     
    bool isRecoilMove ()
     
    bool ignoresSubstitute (IBattler attacker)
     
    bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool pbOnStartUse (IBattler attacker)
     
    void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    int pbDisplayUseMessage (IBattler attacker)
     
    void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool CritialOverride (IBattler attacker, IBattler opponent)
     
    bool IsCritical (IBattler attacker, IBattler opponent)
     
    int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool OnStartUse (IBattler attacker)
     
    void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    int DisplayUseMessage (IBattler attacker)
     
    void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool MoveFailed (IBattler attacker, IBattler opponent)
     
    - - - + + + @@ -312,8 +314,8 @@ Additional Inherited Members - - + + @@ -348,8 +350,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Burns the target. Blue Flare: Powers up the next Fusion Bolt used this round.

    @@ -372,8 +374,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -382,7 +384,7 @@ Additional Inherited Members - + @@ -401,12 +403,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_00A.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_00A.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -415,7 +417,7 @@ Additional Inherited Members - + @@ -452,12 +454,13 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_00A.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_00A.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_128.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_128.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a.png index fa5ce8d67..41d2e59ca 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_a.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b-members.cshtml index ba8f73231..44c586b4a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b-members.cshtml @@ -19,125 +19,126 @@ PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove accuracyPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove - astagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove - calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Bvirtual + PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove + calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove doubledPokemonUnity.Combat.PokeBattle_Moveprotected doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove idPokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove immediatePokemonUnity.Combat.PokeBattle_Moveprotected Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove Move()PokemonUnity.Combat.Move Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove MoveIdPokemonUnity.Combat.Move PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove ostagePokemonUnity.Combat.PokeBattle_Moveprotected overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Bvirtual - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_00B()PokemonUnity.Combat.PokeBattle_Move_00B - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_00B()PokemonUnity.Combat.PokeBattle_Move_00B + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b.cshtml index 2fcf18d34..0d49fe61c 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00B:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00B:
    Public Member Functions  PokeBattle_Move_00B ()   -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -47,31 +47,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -85,83 +85,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -202,57 +204,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -309,8 +311,8 @@ Additional Inherited Members - - + + @@ -345,8 +347,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Burns the target. May cause the target to flinch. (Fire Fang)

    @@ -369,8 +371,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -379,7 +381,7 @@ Additional Inherited Members - + @@ -398,10 +400,11 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_00B.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_00B.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b.png index 1f63026a0..881c10cbc 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_b.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c-members.cshtml index dd85e1ec6..40ed84f1b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c-members.cshtml @@ -16,127 +16,128 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_00C, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Cvirtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Cvirtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_00Cvirtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_00C()PokemonUnity.Combat.PokeBattle_Move_00C
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_00Cvirtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_00C()PokemonUnity.Combat.PokeBattle_Move_00C
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c.cshtml index bdd07848d..dc954b9a6 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c.cshtml @@ -25,10 +25,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00C:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove -PokemonUnity.Combat.PokeBattle_Move_129 +PokemonUnity.Combat.PokeBattle_Move_129
    @@ -36,10 +36,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00C: Public Member Functions - - - - + + + + @@ -50,31 +50,31 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -88,83 +88,85 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -205,57 +207,57 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     PokeBattle_Move_00C ()
     
    override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    override void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    override void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move
     PokeBattle_Move ()
     
     
    virtual IBattleMove Initialize (IBattle battle, IMove move)
     
    virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool pbIsPhysical (Types type)
     
    virtual bool pbIsSpecial (Types type)
     
    virtual bool pbIsDamaging ()
     
    virtual bool pbTargetsMultiple (IBattler attacker)
     
    virtual int pbPriority (IBattler attacker)
     
    virtual int pbNumHits (IBattler attacker)
     
    virtual bool pbIsMultiHit ()
     not the same as pbNumHits>1 More...
     
    virtual bool pbTwoTurnAttack (IBattler attacker)
     
    virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool pbCanUseWhileAsleep ()
     
    virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool IsPhysical (Types type)
     
    virtual bool IsSpecial (Types type)
     
    virtual bool IsDamaging ()
     
    virtual bool TargetsMultiple (IBattler attacker)
     
    virtual int GetPriority (IBattler attacker)
     
    virtual int NumHits (IBattler attacker)
     
    virtual bool IsMultiHit ()
     not the same as NumHits>1 More...
     
    virtual bool TwoTurnAttack (IBattler attacker)
     
    virtual void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool CanUseWhileAsleep ()
     
    virtual bool isHealingMove ()
     
    virtual bool isRecoilMove ()
     
    virtual bool ignoresSubstitute (IBattler attacker)
     
    virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool pbOnStartUse (IBattler attacker)
     
    virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int pbDisplayUseMessage (IBattler attacker)
     
    virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool CritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool IsCritical (IBattler attacker, IBattler opponent)
     
    virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool OnStartUse (IBattler attacker)
     
    virtual void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int DisplayUseMessage (IBattler attacker)
     
    virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool MoveFailed (IBattler attacker, IBattler opponent)
     
    object Clone ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove
    IBattleMove initialize (IBattle battle, IMove move)
     
    IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    - More...
     
    IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    + More...
     
    int ToInt ()
     
    Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    bool pbIsPhysical (Types type)
     
    bool pbIsSpecial (Types type)
     
    bool pbIsDamaging ()
     
    bool pbTargetsMultiple (IBattler attacker)
     
    int pbPriority (IBattler attacker)
     
    int pbNumHits (IBattler attacker)
     
    bool pbIsMultiHit ()
     
    bool pbTwoTurnAttack (IBattler attacker)
     
    void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool pbCanUseWhileAsleep ()
     
    Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    bool IsPhysical (Types type)
     
    bool IsSpecial (Types type)
     
    bool IsDamaging ()
     
    bool TargetsMultiple (IBattler attacker)
     
    int GetPriority (IBattler attacker)
     
    int NumHits (IBattler attacker)
     
    bool IsMultiHit ()
     
    bool TwoTurnAttack (IBattler attacker)
     
    void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool CanUseWhileAsleep ()
     
    bool isHealingMove ()
     
    bool isRecoilMove ()
     
    bool ignoresSubstitute (IBattler attacker)
     
    bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool pbOnStartUse (IBattler attacker)
     
    void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    int pbDisplayUseMessage (IBattler attacker)
     
    void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool CritialOverride (IBattler attacker, IBattler opponent)
     
    bool IsCritical (IBattler attacker, IBattler opponent)
     
    int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool OnStartUse (IBattler attacker)
     
    void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    int DisplayUseMessage (IBattler attacker)
     
    void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool MoveFailed (IBattler attacker, IBattler opponent)
     
    - - - + + + @@ -312,8 +314,8 @@ Additional Inherited Members - - + + @@ -348,8 +350,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Freezes the target.

    @@ -372,8 +374,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -382,7 +384,7 @@ Additional Inherited Members - + @@ -401,12 +403,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_00C.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_00C.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -415,7 +417,7 @@ Additional Inherited Members - + @@ -452,12 +454,13 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_00C.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_00C.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_129.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_129.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c.png index 71eff735d..6d3252b5e 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_c.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d-members.cshtml index 4257a15b2..06e90caa0 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d-members.cshtml @@ -19,125 +19,126 @@ accuracyPokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove - astagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove - calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Dvirtual + PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove + calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove doubledPokemonUnity.Combat.PokeBattle_Moveprotected doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove - idPokemonUnity.Combat.PokeBattle_Move - PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - immediatePokemonUnity.Combat.PokeBattle_Moveprotected - Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual - PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_00Dvirtual + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + idPokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + immediatePokemonUnity.Combat.PokeBattle_Moveprotected + Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + ModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00D + PokemonUnity::Combat::PokeBattle_Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::PokeBattle_Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove Move()PokemonUnity.Combat.Move Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove MoveIdPokemonUnity.Combat.Move PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove ostagePokemonUnity.Combat.PokeBattle_Moveprotected overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Dvirtual - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_00Dvirtual - PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - pbModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00D - PokemonUnity::Combat::PokeBattle_Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonUnity::Combat::PokeBattle_Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_00D()PokemonUnity.Combat.PokeBattle_Move_00D - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_00D()PokemonUnity.Combat.PokeBattle_Move_00D + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d.cshtml index 55776f528..d80628b9b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00D:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,12 +35,12 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00D:
    Public Member Functions  PokeBattle_Move_00D ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (byte baseaccuracy, IBattler attacker, IBattler opponent) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (byte baseaccuracy, IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -51,31 +51,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -89,83 +89,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -206,57 +208,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -313,8 +315,8 @@ Additional Inherited Members - - + + @@ -349,8 +351,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Freezes the target. Accuracy perfect in hail. (Blizzard)

    @@ -373,8 +375,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -383,7 +385,7 @@ Additional Inherited Members - + @@ -402,12 +404,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_00D.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_00D.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -416,7 +418,7 @@ Additional Inherited Members - + @@ -453,18 +455,18 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_00D.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_00D.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbModifyBaseAccuracy()

    + +

    ◆ ModifyBaseAccuracy()

    - + @@ -489,3 +491,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d.png index 8f1625559..a8e5959c7 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_d.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e-members.cshtml index 1090c3861..980903384 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e-members.cshtml @@ -19,125 +19,126 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    int PokemonUnity.Combat.PokeBattle_Move_00D.pbModifyBaseAccuracy int PokemonUnity.Combat.PokeBattle_Move_00D.ModifyBaseAccuracy ( byte  baseaccuracy,
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Evirtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Evirtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_00E()PokemonUnity.Combat.PokeBattle_Move_00E
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_00E()PokemonUnity.Combat.PokeBattle_Move_00E
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e.cshtml index 228e526e5..d3038e4de 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00E:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00E:
    Public Member Functions  PokeBattle_Move_00E ()   -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -47,31 +47,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -85,83 +85,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -202,57 +204,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -309,8 +311,8 @@ Additional Inherited Members - - + + @@ -345,8 +347,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Freezes the target. May cause the target to flinch. (Ice Fang)

    @@ -369,8 +371,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -379,7 +381,7 @@ Additional Inherited Members - + @@ -398,10 +400,11 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_00E.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_00E.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e.png index 5fff08905..ff4a04b56 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_e.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f-members.cshtml index bbfa8939f..71f256b0e 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f-members.cshtml @@ -19,125 +19,126 @@ PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove accuracyPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove - astagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove - calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Fvirtual + PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove + calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove doubledPokemonUnity.Combat.PokeBattle_Moveprotected doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove idPokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove immediatePokemonUnity.Combat.PokeBattle_Moveprotected Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove Move()PokemonUnity.Combat.Move Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove MoveIdPokemonUnity.Combat.Move PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove ostagePokemonUnity.Combat.PokeBattle_Moveprotected overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_00Fvirtual - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_00F()PokemonUnity.Combat.PokeBattle_Move_00F - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_00F()PokemonUnity.Combat.PokeBattle_Move_00F + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f.cshtml index 9536eaccd..dedf4d158 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00F:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_00F:
    Public Member Functions  PokeBattle_Move_00F ()   -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -47,31 +47,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -85,83 +85,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -202,57 +204,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -309,8 +311,8 @@ Additional Inherited Members - - + + @@ -345,8 +347,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Causes the target to flinch.

    @@ -369,8 +371,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -379,7 +381,7 @@ Additional Inherited Members - + @@ -398,10 +400,11 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_00F.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_00F.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f.png index 4194528c4..47293fa31 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__00_f.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010-members.cshtml index c5877b00f..5f1307b65 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010-members.cshtml @@ -16,129 +16,130 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_010, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_010virtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_010virtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_010()PokemonUnity.Combat.PokeBattle_Move_010
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    tramplesMinimize(byte param=1)PokemonUnity.Combat.PokeBattle_Move_010
    PokemonUnity::Combat::PokeBattle_Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::PokeBattle_Move.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_010()PokemonUnity.Combat.PokeBattle_Move_010 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + tramplesMinimize(byte param=1)PokemonUnity.Combat.PokeBattle_Move_010 + PokemonUnity::Combat::PokeBattle_Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::PokeBattle_Move.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010.cshtml index 530667b83..6dc0b4bac 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_010:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_010:
    Public Member Functions  PokeBattle_Move_010 ()   -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  bool tramplesMinimize (byte param=1)   - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move @@ -49,31 +49,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -87,83 +87,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -204,57 +206,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -311,8 +313,8 @@ Additional Inherited Members - - + + @@ -347,8 +349,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Causes the target to flinch. Does double damage and has perfect accuracy if the target is Minimized.

    @@ -371,8 +373,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -381,7 +383,7 @@ Additional Inherited Members - + @@ -400,7 +402,7 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_010.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_010.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    @@ -425,3 +427,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010.png index ac41c7569..c56a1e753 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__010.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011-members.cshtml index 85497fc2f..781ccb759 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011-members.cshtml @@ -19,123 +19,124 @@ accuracyPokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove - astagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove - calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_011virtual + PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove + calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + CanUseWhileAsleep()PokemonUnity.Combat.PokeBattle_Move_011virtual PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove - doubledPokemonUnity.Combat.PokeBattle_Moveprotected - doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove - idPokemonUnity.Combat.PokeBattle_Move - PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - immediatePokemonUnity.Combat.PokeBattle_Moveprotected - Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual - PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove - Move()PokemonUnity.Combat.Move - Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + doubledPokemonUnity.Combat.PokeBattle_Moveprotected + doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + idPokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + immediatePokemonUnity.Combat.PokeBattle_Moveprotected + Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + Move()PokemonUnity.Combat.Move + Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_011virtual MoveIdPokemonUnity.Combat.Move PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove ostagePokemonUnity.Combat.PokeBattle_Moveprotected overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_011virtual - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbCanUseWhileAsleep()PokemonUnity.Combat.PokeBattle_Move_011virtual - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_011virtual - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_011()PokemonUnity.Combat.PokeBattle_Move_011 - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_011()PokemonUnity.Combat.PokeBattle_Move_011 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011.cshtml index 6a78618a1..ce59d5462 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_011:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,12 +35,12 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_011:
    Public Member Functions  PokeBattle_Move_011 ()   -override bool pbCanUseWhileAsleep () -  -override bool pbMoveFailed (IBattler attacker, IBattler opponent) -  -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override bool CanUseWhileAsleep () +  +override bool MoveFailed (IBattler attacker, IBattler opponent) +  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -51,31 +51,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -89,83 +89,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -206,57 +208,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -313,8 +315,8 @@ Additional Inherited Members - - + + @@ -349,8 +351,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Causes the target to flinch. Fails if the user is not asleep. (Snore)

    @@ -373,8 +375,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -383,7 +385,7 @@ Additional Inherited Members - + @@ -402,12 +404,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_011.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_011.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbCanUseWhileAsleep()

    + +

    ◆ CanUseWhileAsleep()

    @@ -416,7 +418,7 @@ Additional Inherited Members - + @@ -429,12 +431,12 @@ Additional Inherited Members
    override bool PokemonUnity.Combat.PokeBattle_Move_011.pbCanUseWhileAsleep override bool PokemonUnity.Combat.PokeBattle_Move_011.CanUseWhileAsleep ( )
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbMoveFailed()

    + +

    ◆ MoveFailed()

    @@ -443,7 +445,7 @@ Additional Inherited Members - + @@ -462,10 +464,11 @@ Additional Inherited Members
    override bool PokemonUnity.Combat.PokeBattle_Move_011.pbMoveFailed override bool PokemonUnity.Combat.PokeBattle_Move_011.MoveFailed ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011.png index 4405ca613..3e4b158db 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__011.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012-members.cshtml index bb0616cda..2b41bf7d6 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012-members.cshtml @@ -16,127 +16,128 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_012, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_012virtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_012virtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_012virtual
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_012()PokemonUnity.Combat.PokeBattle_Move_012
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_012virtual + MoveIdPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + ostagePokemonUnity.Combat.PokeBattle_Moveprotected + overridetypePokemonUnity.Combat.PokeBattle_Moveprotected + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_012()PokemonUnity.Combat.PokeBattle_Move_012 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012.cshtml index 9524b3fd8..d46e16113 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_012:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,10 +35,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_012:
    Public Member Functions  PokeBattle_Move_012 ()   -override bool pbMoveFailed (IBattler attacker, IBattler opponent) -  -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override bool MoveFailed (IBattler attacker, IBattler opponent) +  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -49,31 +49,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -87,83 +87,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -204,57 +206,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -311,8 +313,8 @@ Additional Inherited Members - - + + @@ -347,8 +349,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Causes the target to flinch. Fails if this isn't the user's first turn. (Fake Out)

    @@ -371,8 +373,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -381,7 +383,7 @@ Additional Inherited Members - + @@ -400,12 +402,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_012.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_012.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbMoveFailed()

    + +

    ◆ MoveFailed()

    @@ -414,7 +416,7 @@ Additional Inherited Members - + @@ -433,10 +435,11 @@ Additional Inherited Members
    override bool PokemonUnity.Combat.PokeBattle_Move_012.pbMoveFailed override bool PokemonUnity.Combat.PokeBattle_Move_012.MoveFailed ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012.png index 586472bc5..83121fe3b 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__012.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013-members.cshtml index d61275209..74ba3af68 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013-members.cshtml @@ -16,127 +16,128 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_013, including all inherited members.

    - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_013virtual
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_013virtual
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_013virtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_013()PokemonUnity.Combat.PokeBattle_Move_013
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_013virtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_013()PokemonUnity.Combat.PokeBattle_Move_013
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013.cshtml index 4b564a041..24963df83 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013.cshtml @@ -25,10 +25,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_013:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove -PokemonUnity.Combat.PokeBattle_Move_12A +PokemonUnity.Combat.PokeBattle_Move_12A
    @@ -36,10 +36,10 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_013: Public Member Functions - - - - + + + + @@ -50,31 +50,31 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -88,83 +88,85 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -205,57 +207,57 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     PokeBattle_Move_013 ()
     
    override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    override void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    override void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move
     PokeBattle_Move ()
     
     
    virtual IBattleMove Initialize (IBattle battle, IMove move)
     
    virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool pbIsPhysical (Types type)
     
    virtual bool pbIsSpecial (Types type)
     
    virtual bool pbIsDamaging ()
     
    virtual bool pbTargetsMultiple (IBattler attacker)
     
    virtual int pbPriority (IBattler attacker)
     
    virtual int pbNumHits (IBattler attacker)
     
    virtual bool pbIsMultiHit ()
     not the same as pbNumHits>1 More...
     
    virtual bool pbTwoTurnAttack (IBattler attacker)
     
    virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool pbCanUseWhileAsleep ()
     
    virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    virtual Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    virtual bool IsPhysical (Types type)
     
    virtual bool IsSpecial (Types type)
     
    virtual bool IsDamaging ()
     
    virtual bool TargetsMultiple (IBattler attacker)
     
    virtual int GetPriority (IBattler attacker)
     
    virtual int NumHits (IBattler attacker)
     
    virtual bool IsMultiHit ()
     not the same as NumHits>1 More...
     
    virtual bool TwoTurnAttack (IBattler attacker)
     
    virtual void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    virtual bool CanUseWhileAsleep ()
     
    virtual bool isHealingMove ()
     
    virtual bool isRecoilMove ()
     
    virtual bool ignoresSubstitute (IBattler attacker)
     
    virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool pbOnStartUse (IBattler attacker)
     
    virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int pbDisplayUseMessage (IBattler attacker)
     
    virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    virtual bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    virtual bool CritialOverride (IBattler attacker, IBattler opponent)
     
    virtual bool IsCritical (IBattler attacker, IBattler opponent)
     
    virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    virtual bool OnStartUse (IBattler attacker)
     
    virtual void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    virtual int DisplayUseMessage (IBattler attacker)
     
    virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    virtual bool MoveFailed (IBattler attacker, IBattler opponent)
     
    object Clone ()
     
    - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove
    IBattleMove initialize (IBattle battle, IMove move)
     
    IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    - More...
     
    IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a IBattleMove object.
    + More...
     
    int ToInt ()
     
    Types pbModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types pbType (Types type, IBattler attacker, IBattler opponent)
     
    bool pbIsPhysical (Types type)
     
    bool pbIsSpecial (Types type)
     
    bool pbIsDamaging ()
     
    bool pbTargetsMultiple (IBattler attacker)
     
    int pbPriority (IBattler attacker)
     
    int pbNumHits (IBattler attacker)
     
    bool pbIsMultiHit ()
     
    bool pbTwoTurnAttack (IBattler attacker)
     
    void pbAdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool pbCanUseWhileAsleep ()
     
    Types ModifyType (Types type, IBattler attacker, IBattler opponent)
     
    Types GetType (Types type, IBattler attacker, IBattler opponent)
     
    bool IsPhysical (Types type)
     
    bool IsSpecial (Types type)
     
    bool IsDamaging ()
     
    bool TargetsMultiple (IBattler attacker)
     
    int GetPriority (IBattler attacker)
     
    int NumHits (IBattler attacker)
     
    bool IsMultiHit ()
     
    bool TwoTurnAttack (IBattler attacker)
     
    void AdditionalEffect (IBattler attacker, IBattler opponent)
     
    bool CanUseWhileAsleep ()
     
    bool isHealingMove ()
     
    bool isRecoilMove ()
     
    bool ignoresSubstitute (IBattler attacker)
     
    bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float pbTypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool pbAccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool pbCritialOverride (IBattler attacker, IBattler opponent)
     
    bool pbIsCritical (IBattler attacker, IBattler opponent)
     
    int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool pbOnStartUse (IBattler attacker)
     
    void pbAddTarget (IList<IBattler> targets, IBattler attacker)
     
    int pbDisplayUseMessage (IBattler attacker)
     
    void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool pbMoveFailed (IBattler attacker, IBattler opponent)
     
    bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent)
     
    float TypeModifier (Types type, IBattler attacker, IBattler opponent)
     
    double TypeModMessages (Types type, IBattler attacker, IBattler opponent)
     
    int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent)
     
    bool AccuracyCheck (IBattler attacker, IBattler opponent)
     
    bool CritialOverride (IBattler attacker, IBattler opponent)
     
    bool IsCritical (IBattler attacker, IBattler opponent)
     
    int BaseDamage (int basedmg, IBattler attacker, IBattler opponent)
     
    double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent)
     
    double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent)
     
    int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options)
     
    int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent)
     
    void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)
     
    int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects)
     
    bool OnStartUse (IBattler attacker)
     
    void AddTarget (IList<IBattler> targets, IBattler attacker)
     
    int DisplayUseMessage (IBattler attacker)
     
    void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)
     
    void OnDamageLost (int damage, IBattler attacker, IBattler opponent)
     
    bool MoveFailed (IBattler attacker, IBattler opponent)
     
    - - - + + + @@ -312,8 +314,8 @@ Additional Inherited Members - - + + @@ -348,8 +350,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Confuses the target.

    @@ -372,8 +374,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -382,7 +384,7 @@ Additional Inherited Members - + @@ -401,12 +403,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_013.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_013.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -415,7 +417,7 @@ Additional Inherited Members - + @@ -452,12 +454,13 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_013.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_013.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    -

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_12A.

    +

    Reimplemented in PokemonUnity.Combat.PokeBattle_Move_12A.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013.png index 9271fc643..ed87276d9 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__013.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014-members.cshtml index f812a5fc4..8de114f63 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014-members.cshtml @@ -19,124 +19,125 @@ accuracyPokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove - AddlEffectPokemonUnity.Combat.PokeBattle_Move_014 - astagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove - calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_014virtual + AddlEffectPokemonUnity.Combat.PokeBattle_Move_014 + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove + calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove doubledPokemonUnity.Combat.PokeBattle_Moveprotected doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove idPokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove immediatePokemonUnity.Combat.PokeBattle_Moveprotected Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove Move()PokemonUnity.Combat.Move Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove MoveIdPokemonUnity.Combat.Move PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove ostagePokemonUnity.Combat.PokeBattle_Moveprotected overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_014virtual - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_014()PokemonUnity.Combat.PokeBattle_Move_014 - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move - PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_014()PokemonUnity.Combat.PokeBattle_Move_014 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014.cshtml index 6762c0d89..b3200d4cf 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014.cshtml @@ -18,7 +18,7 @@ } -

    Confuses the target. Chance of causing confusion depends on the cry's volume. Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) TODO: Play the actual chatter cry as part of the move animation this.battle.scene.pbChatter(attacker,opponent) // Just plays cry +

    Confuses the target. Chance of causing confusion depends on the cry's volume. Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) TODO: Play the actual chatter cry as part of the move animation this.battle.scene.Chatter(attacker,opponent) // Just plays cry More...

    Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_014:
    @@ -26,7 +26,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_014:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -36,8 +36,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_014:
    Public Member Functions  PokeBattle_Move_014 ()   -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -48,31 +48,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -86,83 +86,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -203,50 +205,50 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  @@ -308,8 +310,8 @@ Properties - - + + @@ -344,18 +346,18 @@ Properties - - + +

    Properties

     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     
    - - - + + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     

    Detailed Description

    -

    Confuses the target. Chance of causing confusion depends on the cry's volume. Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) TODO: Play the actual chatter cry as part of the move animation this.battle.scene.pbChatter(attacker,opponent) // Just plays cry

    +

    Confuses the target. Chance of causing confusion depends on the cry's volume. Confusion chance is 0% if user doesn't have a recorded cry. (Chatter) TODO: Play the actual chatter cry as part of the move animation this.battle.scene.Chatter(attacker,opponent) // Just plays cry

    Constructor & Destructor Documentation

    ◆ PokeBattle_Move_014()

    @@ -375,8 +377,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -385,7 +387,7 @@ Additional Inherited Members - + @@ -404,7 +406,7 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_014.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_014.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    @@ -436,3 +438,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014.png index 51b4a65f9..3d4b132f6 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__014.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015-members.cshtml index 3107191e7..a74d08433 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015-members.cshtml @@ -19,125 +19,126 @@ accuracyPokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove - astagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove - calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_015virtual + PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove + calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove doubledPokemonUnity.Combat.PokeBattle_Moveprotected doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove - idPokemonUnity.Combat.PokeBattle_Move - PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - immediatePokemonUnity.Combat.PokeBattle_Moveprotected - Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual - PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_015virtual + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + idPokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + immediatePokemonUnity.Combat.PokeBattle_Moveprotected + Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + ModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_015 + PokemonUnity::Combat::PokeBattle_Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::PokeBattle_Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove Move()PokemonUnity.Combat.Move Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove MoveIdPokemonUnity.Combat.Move PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove ostagePokemonUnity.Combat.PokeBattle_Moveprotected overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_015virtual - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_015virtual - PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - pbModifyBaseAccuracy(byte baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_015 - PokemonUnity::Combat::PokeBattle_Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonUnity::Combat::PokeBattle_Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_015()PokemonUnity.Combat.PokeBattle_Move_015 - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_015()PokemonUnity.Combat.PokeBattle_Move_015 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015.cshtml index f5ca8d0a6..5d88b174b 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015.cshtml @@ -17,7 +17,7 @@ } -

    Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets. +

    Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets. More...

    Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_015:
    @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_015:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,12 +35,12 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_015:
    Public Member Functions  PokeBattle_Move_015 ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (byte baseaccuracy, IBattler attacker, IBattler opponent) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (byte baseaccuracy, IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -51,31 +51,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -89,83 +89,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -206,57 +208,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -313,8 +315,8 @@ Additional Inherited Members - - + + @@ -349,11 +351,11 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    -

    Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) (Handled in Pokemon's pbSuccessCheck): Hits some semi-invulnerable targets.

    +

    Confuses the target. Accuracy perfect in rain, 50% in sunshine. (Hurricane) (Handled in Pokemon's SuccessCheck): Hits some semi-invulnerable targets.

    Constructor & Destructor Documentation

    ◆ PokeBattle_Move_015()

    @@ -373,8 +375,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -383,7 +385,7 @@ Additional Inherited Members - + @@ -402,12 +404,12 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_015.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_015.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -416,7 +418,7 @@ Additional Inherited Members - + @@ -453,18 +455,18 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_015.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_015.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.

    - -

    ◆ pbModifyBaseAccuracy()

    + +

    ◆ ModifyBaseAccuracy()

    - + @@ -489,3 +491,4 @@ Additional Inherited Members
    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015.png index 31aaf00fc..43b8f6ac4 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__015.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016-members.cshtml index 41f64c0cd..1afc9f223 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016-members.cshtml @@ -16,128 +16,129 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_016, including all inherited members.

    int PokemonUnity.Combat.PokeBattle_Move_015.pbModifyBaseAccuracy int PokemonUnity.Combat.PokeBattle_Move_015.ModifyBaseAccuracy ( byte  baseaccuracy,
    - - + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    accuracyPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    astagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove
    calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    Clone()PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    doubledPokemonUnity.Combat.PokeBattle_Moveprotected
    doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove
    GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_016virtual
    PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    idPokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    immediatePokemonUnity.Combat.PokeBattle_Moveprotected
    Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual
    PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    Move()PokemonUnity.Combat.Move
    Move(IBattle battle, IMove move)PokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    MoveIdPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    ostagePokemonUnity.Combat.PokeBattle_Moveprotected
    overridetypePokemonUnity.Combat.PokeBattle_Moveprotected
    PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.PokeBattle_Move_016virtual
    PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_016()PokemonUnity.Combat.PokeBattle_Move_016
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move
    PokeBattle_Move_016()PokemonUnity.Combat.PokeBattle_Move_016
    PowerPokemonUnity.Combat.Move
    PowerBoostPokemonUnity.Combat.Move
    PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove
    PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move
    PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove
    typePokemonUnity.Combat.PokeBattle_Move
    UnusableInGravity()PokemonUnity.Combat.Movevirtual
    \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016.cshtml index 5fc26b6a1..bdea01de0 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_016:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_016:
    Public Member Functions  PokeBattle_Move_016 ()   -override int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  +override int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -47,31 +47,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -85,83 +85,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -202,57 +204,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -309,8 +311,8 @@ Additional Inherited Members - - + + @@ -345,8 +347,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Attracts the target. (Attract)

    @@ -369,8 +371,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbEffect()

    + +

    ◆ GetEffect()

    @@ -379,7 +381,7 @@ Additional Inherited Members - + @@ -416,10 +418,11 @@ Additional Inherited Members
    override int PokemonUnity.Combat.PokeBattle_Move_016.pbEffect override int PokemonUnity.Combat.PokeBattle_Move_016.GetEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016.png index 48dcee931..71a1aa8d3 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__016.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017-members.cshtml index 4468fa557..85bd67fd5 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017-members.cshtml @@ -19,125 +19,126 @@ PokemonUnity::Combat::Move.AccuracyPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyPokemonEssentials.Interface.PokeBattle.IBattleMove accuracyPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove - astagePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove - calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + AdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_017virtual + PokemonUnity::Combat::Move.AddlEffectPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddlEffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.AddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + astagePokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.BaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.battlePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.battlePokemonEssentials.Interface.PokeBattle.IBattleMove + calcbasedmgPokemonUnity.Combat.PokeBattle_Moveprotected + PokemonUnity::Combat::Move.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CanUseWhileAsleep()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.CategoryPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.CategoryPokemonEssentials.Interface.PokeBattle.IBattleMove + Clone()PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.CritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.CritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.DisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.DisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove doubledPokemonUnity.Combat.PokeBattle_Moveprotected doubledamagePokemonUnity.Combat.PokeBattle_Moveprotected PokemonUnity::Combat::Move.EffectPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.EffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.FlagsPokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.FlagsPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.GetType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.GetType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove idPokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.ignoresSubstitute(IBattler attacker)PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.ignoresSubstitute(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove immediatePokemonUnity.Combat.PokeBattle_Moveprotected Initialize(IBattle battle, IMove move)PokemonUnity.Combat.Movevirtual + PokemonUnity::Combat::Move.IsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsDamaging()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isHealingMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isHealingMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsMultiHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsPhysical(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove PokemonUnity::Combat::Move.isRecoilMove()PokemonUnity.Combat.Movevirtual PokemonEssentials::Interface::PokeBattle::IBattleMove.isRecoilMove()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsSpecial(Types type)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.IsStatusPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.IsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove Move()PokemonUnity.Combat.Move Move(IBattle battle, IMove move)PokemonUnity.Combat.Move + PokemonUnity::Combat::Move.MoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.MoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove MoveIdPokemonUnity.Combat.Move PokemonUnity::Combat::Move.NamePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.NamePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.NumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.NumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.OnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.OnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove ostagePokemonUnity.Combat.PokeBattle_Moveprotected overridetypePokemonUnity.Combat.PokeBattle_Moveprotected - PokemonUnity::Combat::Move.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAccuracyCheck(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - pbAdditionalEffect(IBattler attacker, IBattler opponent)PokemonUnity.Combat.PokeBattle_Move_017virtual - PokemonUnity::Combat::Move.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbAddTarget(IList< IBattler > targets, IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamage(int basedmg, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbBaseDamageMultiplier(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCalcDamage(IBattler attacker, IBattler opponent, params byte[] options)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCanUseWhileAsleep()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCanUseWhileAsleep()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbCritialOverride(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbDisplayUseMessage(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbDisplayUseMessage(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffect(IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectAfterHit(IBattler attacker, IBattler opponent, IEffectsMove turneffects)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectFixedDamage(int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbEffectMessages(IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsCritical(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsCritical(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsDamaging()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsDamaging()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsMultiHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsMultiHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsPhysical(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsPhysical(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsSpecial(Types type)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsSpecial(Types type)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbIsStatusPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbIsStatusPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyBaseAccuracy(int baseaccuracy, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyDamage(double damagemult, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbModifyType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbMoveFailed(IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbNumHits(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbNumHits(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnDamageLost(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbOnStartUse(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbOnStartUse(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbPriority(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbPriority(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbType(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbType(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.pbTypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove - PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move - PokeBattle_Move_017()PokemonUnity.Combat.PokeBattle_Move_017 - PowerPokemonUnity.Combat.Move - PowerBoostPokemonUnity.Combat.Move - PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move - PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove - PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual - PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokeBattle_Move()PokemonUnity.Combat.PokeBattle_Move + PokeBattle_Move_017()PokemonUnity.Combat.PokeBattle_Move_017 + PowerPokemonUnity.Combat.Move + PowerBoostPokemonUnity.Combat.Move + PokemonUnity::Combat::Move.PPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.PriorityPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.PriorityPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ReduceHPDamage(int damage, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.ShowAnimation(Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.successCheckPerHit()PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.successCheckPerHit()PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TargetsMultiple(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TargetsMultiple(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.thismovePokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.thismovePokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TotalPPPokemonUnity.Combat.Move + PokemonEssentials::Interface::PokeBattle::IBattleMove.TotalPPPokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.tramplesMinimize(int param=1)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.tramplesMinimize(int param=1)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TwoTurnAttack(IBattler attacker)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TwoTurnAttack(IBattler attacker)PokemonEssentials.Interface.PokeBattle.IBattleMove + typePokemonUnity.Combat.PokeBattle_Move PokemonUnity::Combat::Move.TypePokemonUnity.Combat.Move PokemonEssentials::Interface::PokeBattle::IBattleMove.TypePokemonEssentials.Interface.PokeBattle.IBattleMove - typePokemonUnity.Combat.PokeBattle_Move - UnusableInGravity()PokemonUnity.Combat.Movevirtual - \ No newline at end of file + PokemonUnity::Combat::Move.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeImmunityByAbility(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModifier(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + PokemonUnity::Combat::Move.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonUnity.Combat.Movevirtual + PokemonEssentials::Interface::PokeBattle::IBattleMove.TypeModMessages(Types type, IBattler attacker, IBattler opponent)PokemonEssentials.Interface.PokeBattle.IBattleMove + UnusableInGravity()PokemonUnity.Combat.Movevirtual + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017.cshtml index fbb61cfae..0edc6da9a 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017.cshtml @@ -25,7 +25,7 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_017:
    -PokemonUnity.Combat.PokeBattle_Move +PokemonUnity.Combat.PokeBattle_Move PokemonUnity.Combat.Move PokemonEssentials.Interface.PokeBattle.IBattleMove @@ -35,8 +35,8 @@ Inheritance diagram for PokemonUnity.Combat.PokeBattle_Move_017:
    Public Member Functions  PokeBattle_Move_017 ()   -override void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  +override void AdditionalEffect (IBattler attacker, IBattler opponent) +  - Public Member Functions inherited from PokemonUnity.Combat.PokeBattle_Move  PokeBattle_Move ()   @@ -47,31 +47,31 @@ Public Member Functions   virtual IBattleMove Initialize (IBattle battle, IMove move)   -virtual Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -virtual Types pbType (Types type, IBattler attacker, IBattler opponent) -  -virtual bool pbIsPhysical (Types type) -  -virtual bool pbIsSpecial (Types type) -  -virtual bool pbIsDamaging () -  -virtual bool pbTargetsMultiple (IBattler attacker) -  -virtual int pbPriority (IBattler attacker) -  -virtual int pbNumHits (IBattler attacker) -  -virtual bool pbIsMultiHit () - not the same as pbNumHits>1 More...
    -  -virtual bool pbTwoTurnAttack (IBattler attacker) -  -virtual void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -virtual bool pbCanUseWhileAsleep () -  +virtual Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +virtual Types GetType (Types type, IBattler attacker, IBattler opponent) +  +virtual bool IsPhysical (Types type) +  +virtual bool IsSpecial (Types type) +  +virtual bool IsDamaging () +  +virtual bool TargetsMultiple (IBattler attacker) +  +virtual int GetPriority (IBattler attacker) +  +virtual int NumHits (IBattler attacker) +  +virtual bool IsMultiHit () + not the same as NumHits>1 More...
    +  +virtual bool TwoTurnAttack (IBattler attacker) +  +virtual void AdditionalEffect (IBattler attacker, IBattler opponent) +  +virtual bool CanUseWhileAsleep () +  virtual bool isHealingMove ()   virtual bool isRecoilMove () @@ -85,83 +85,85 @@ Public Member Functions   virtual bool ignoresSubstitute (IBattler attacker)   -virtual bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -virtual float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -virtual double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -virtual int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -virtual bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -virtual bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -virtual bool pbIsCritical (IBattler attacker, IBattler opponent) -  -virtual int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -virtual double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -virtual double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -virtual int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -virtual int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -virtual void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -virtual int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -virtual bool pbOnStartUse (IBattler attacker) -  -virtual void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -virtual int pbDisplayUseMessage (IBattler attacker) -  -virtual void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -virtual void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -virtual bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +virtual bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +virtual float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +virtual double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +virtual int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +virtual bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +virtual bool CritialOverride (IBattler attacker, IBattler opponent) +  +virtual bool IsCritical (IBattler attacker, IBattler opponent) +  +virtual int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +virtual double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +virtual double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +virtual int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +virtual int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +virtual void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +virtual int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +virtual bool OnStartUse (IBattler attacker) +  +virtual void AddTarget (IList<IBattler> targets, IBattler attacker) +  +virtual int DisplayUseMessage (IBattler attacker) +  +virtual void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +virtual void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +virtual bool MoveFailed (IBattler attacker, IBattler opponent) +  +object Clone () +  - Public Member Functions inherited from PokemonEssentials.Interface.PokeBattle.IBattleMove IBattleMove initialize (IBattle battle, IMove move)   -IBattleMove pbFromPBMove (IBattle battle, IMove move) - This is the code actually used to generate a IBattleMove object.
    - More...
    -  +IBattleMove FromMove (IBattle battle, IMove move) + This is the code actually used to generate a IBattleMove object.
    + More...
    +  int ToInt ()   -Types pbModifyType (Types type, IBattler attacker, IBattler opponent) -  -Types pbType (Types type, IBattler attacker, IBattler opponent) -  -bool pbIsPhysical (Types type) -  -bool pbIsSpecial (Types type) -  -bool pbIsDamaging () -  -bool pbTargetsMultiple (IBattler attacker) -  -int pbPriority (IBattler attacker) -  -int pbNumHits (IBattler attacker) -  -bool pbIsMultiHit () -  -bool pbTwoTurnAttack (IBattler attacker) -  -void pbAdditionalEffect (IBattler attacker, IBattler opponent) -  -bool pbCanUseWhileAsleep () -  +Types ModifyType (Types type, IBattler attacker, IBattler opponent) +  +Types GetType (Types type, IBattler attacker, IBattler opponent) +  +bool IsPhysical (Types type) +  +bool IsSpecial (Types type) +  +bool IsDamaging () +  +bool TargetsMultiple (IBattler attacker) +  +int GetPriority (IBattler attacker) +  +int NumHits (IBattler attacker) +  +bool IsMultiHit () +  +bool TwoTurnAttack (IBattler attacker) +  +void AdditionalEffect (IBattler attacker, IBattler opponent) +  +bool CanUseWhileAsleep () +  bool isHealingMove ()   bool isRecoilMove () @@ -202,57 +204,57 @@ Public Member Functions   bool ignoresSubstitute (IBattler attacker)   -bool pbTypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) -  -float pbTypeModifier (Types type, IBattler attacker, IBattler opponent) -  -double pbTypeModMessages (Types type, IBattler attacker, IBattler opponent) -  -int pbModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) -  -bool pbAccuracyCheck (IBattler attacker, IBattler opponent) -  -bool pbCritialOverride (IBattler attacker, IBattler opponent) -  -bool pbIsCritical (IBattler attacker, IBattler opponent) -  -int pbBaseDamage (int basedmg, IBattler attacker, IBattler opponent) -  -double pbBaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) -  -double pbModifyDamage (double damagemult, IBattler attacker, IBattler opponent) -  -int pbCalcDamage (IBattler attacker, IBattler opponent, params byte[] options) -  -int pbReduceHPDamage (int damage, IBattler attacker, IBattler opponent) -  -void pbEffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) -  -int pbEffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -int pbEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbEffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) -  -bool pbOnStartUse (IBattler attacker) -  -void pbAddTarget (IList<IBattler> targets, IBattler attacker) -  -int pbDisplayUseMessage (IBattler attacker) -  -void pbShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) -  -void pbOnDamageLost (int damage, IBattler attacker, IBattler opponent) -  -bool pbMoveFailed (IBattler attacker, IBattler opponent) -  +bool TypeImmunityByAbility (Types type, IBattler attacker, IBattler opponent) +  +float TypeModifier (Types type, IBattler attacker, IBattler opponent) +  +double TypeModMessages (Types type, IBattler attacker, IBattler opponent) +  +int ModifyBaseAccuracy (int baseaccuracy, IBattler attacker, IBattler opponent) +  +bool AccuracyCheck (IBattler attacker, IBattler opponent) +  +bool CritialOverride (IBattler attacker, IBattler opponent) +  +bool IsCritical (IBattler attacker, IBattler opponent) +  +int BaseDamage (int basedmg, IBattler attacker, IBattler opponent) +  +double BaseDamageMultiplier (double damagemult, IBattler attacker, IBattler opponent) +  +double ModifyDamage (double damagemult, IBattler attacker, IBattler opponent) +  +int CalcDamage (IBattler attacker, IBattler opponent, params byte[] options) +  +int ReduceHPDamage (int damage, IBattler attacker, IBattler opponent) +  +void EffectMessages (IBattler attacker, IBattler opponent, bool ignoretype=false, int[] alltargets=null) +  +int EffectFixedDamage (int damage, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +int GetEffect (IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void EffectAfterHit (IBattler attacker, IBattler opponent, IEffectsMove turneffects) +  +bool OnStartUse (IBattler attacker) +  +void AddTarget (IList<IBattler> targets, IBattler attacker) +  +int DisplayUseMessage (IBattler attacker) +  +void ShowAnimation (Moves id, IBattler attacker, IBattler opponent, int hitnum=0, int[] alltargets=null, bool showanimation=true) +  +void OnDamageLost (int damage, IBattler attacker, IBattler opponent) +  +bool MoveFailed (IBattler attacker, IBattler opponent) +  - - - + + + @@ -309,8 +311,8 @@ Additional Inherited Members - - + + @@ -345,8 +347,8 @@ Additional Inherited Members - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from PokemonUnity.Combat.Move
    static IBattleMove pbFromPBMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    static IBattleMove FromMove (IBattle battle, IMove move)
     This is the code actually used to generate a PokeBattle_Move object. The object generated is a subclass of this one which depends on the move's function code (found in the script section PokeBattle_MoveEffect). More...
     
    - Properties inherited from PokemonUnity.Combat.PokeBattle_Move
    int[] astage [get, set]
     
     
    virtual int TotalPP [get, set]
     
    virtual bool pbIsStatus [get]
     
    virtual bool IsStatus [get]
     
    virtual bool hasHighCriticalRate [get]
     flag h: Has high critical hit rate More...
     
     
    int TotalPP [get, set]
     
    bool pbIsStatus [get]
     
    bool IsStatus [get]
     

    Detailed Description

    Burns, freezes or paralyzes the target. (Tri Attack)

    @@ -369,8 +371,8 @@ Additional Inherited Members

    Member Function Documentation

    - -

    ◆ pbAdditionalEffect()

    + +

    ◆ AdditionalEffect()

    @@ -379,7 +381,7 @@ Additional Inherited Members - + @@ -398,10 +400,11 @@ Additional Inherited Members
    override void PokemonUnity.Combat.PokeBattle_Move_017.pbAdditionalEffect override void PokemonUnity.Combat.PokeBattle_Move_017.AdditionalEffect ( IBattler  attacker,
    -

    Reimplemented from PokemonUnity.Combat.Move.

    +

    Reimplemented from PokemonUnity.Combat.Move.


    The documentation for this class was generated from the following file:
    • PokemonUnity.Application/Combat/Attack/Attack.cs
    + diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017.png b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017.png index cad25f5e5..23e081cf9 100644 Binary files a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017.png and b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__017.png differ diff --git a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__018-members.cshtml b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__018-members.cshtml index 54cc01599..6370e7bef 100644 --- a/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__018-members.cshtml +++ b/PokemonUnity.Web.Public/Api/class_pokemon_unity_1_1_combat_1_1_poke_battle___move__018-members.cshtml @@ -16,128 +16,129 @@

    This is the complete list of members for PokemonUnity.Combat.PokeBattle_Move_018, including all inherited members.

    -