public int[] ppBoosts; //0, 1, 2 or 3 public PokemonSet(string speciesId = "", string name = "", int level = 100, Globals.GenderName gender = Globals.GenderName.F, int happiness = 0, string pokeball = "", bool shiny = false, string abilityId = "", string itemId = "", string[] movesId = null, Globals.StatsTable evs = null, Globals.StatsTable ivs = null, Globals.Nature nature = null, int[] ppBoosts = null) { this.speciesId = speciesId; this.name = name; this.level = level; this.gender = gender; this.happiness = happiness; this.pokeball = pokeball; this.shiny = shiny; this.abilityId = abilityId; this.itemId = itemId; this.movesId = movesId; if (evs == null) { evs = new Globals.StatsTable(); } this.evs = evs; if (ivs == null) { ivs = new Globals.StatsTable(); ivs.StatsTableIvs(); } this.ivs = ivs; if (nature == null) { nature = new Globals.Nature(name: "basic"); } this.nature = nature; if (movesId != null && (ppBoosts == null || ppBoosts.Length < movesId.Length)) { this.ppBoosts = new int[movesId.Length]; for (int i = 0; i < movesId.Length; ++i) { if (ppBoosts == null || ppBoosts.Length <= i) { this.ppBoosts[i] = 0; } else { this.ppBoosts[i] = ppBoosts[i]; } } } else { this.ppBoosts = ppBoosts; } }
public TemplateData( /*Required*/ string ability0, Globals.StatsTable baseStats, string color, Globals.EggGroups eggGroups, float heightm, int num, string species, Globals.Type[] types, float weightkg, /*Optional*/ string ability1 = "", string abilityH = "", string abilityS = "", string baseForme = "", string baseSpecies = "", int evoLevel = -1, string evoMove = "", string[] evos = null, string forme = "", /*Optional*/ string formeLetter = "", Globals.GenderName gender = Globals.GenderName.MorF, float maleGenderRatio = 0, float femaleGenderRatio = 0, int maxHP = -1, string[] otherForms = null, string[] otherFormes = null, /*Optional*/ string prevo = "", bool isMega = false, string requiredMove = "", string requiredItem = "", bool isUltra = false ) { /*Required*/ this.ability0 = ability0; this.baseStats = baseStats; this.color = color; this.eggGroups = eggGroups; this.heightm = heightm; this.num = num; this.species = species; this.types = types; this.weightkg = weightkg; /*Optional*/ this.ability1 = ability1; this.abilityH = abilityH; this.abilityS = abilityS; this.baseForme = baseForme; this.baseSpecies = (baseSpecies == "") ? species : baseSpecies; this.evoLevel = evoLevel; this.evoMove = evoMove; this.evos = evos; this.forme = forme; this.formeLetter = formeLetter; this.gender = gender; this.maleGenderRatio = maleGenderRatio; this.femaleGenderRatio = femaleGenderRatio; this.maxHP = maxHP; this.otherForms = otherForms; this.otherFormes = otherFormes; this.prevo = prevo; this.isMega = isMega; this.requiredMove = requiredMove; this.requiredItem = requiredItem; this.isUltra = isUltra; //logged until here }