Exemple #1
0
 public static PokemonData CreatePokemonData(int Id, int PokeId, string name, int?type1, int?type2, int?ability1, int?ability2, int?hiddenAbility,
                                             /*float maleRatio,*/ int catchRate, int?eggGroup1, int?eggGroup2, int hatchTime,
                                             float height, float weight, int baseExpYield, int levelingRate,
                                             /*int? evYieldHP, int? evYieldATK, int? evYieldDEF, int? evYieldSPA, int? evYieldSPD, int? evYieldSPE,*/
                                             PokedexColor pokedexColor, /*int baseFriendship,*/ string species, string pokedexEntry,
                                             int baseStatsHP, int baseStatsATK, int baseStatsDEF, int baseStatsSPA, int baseStatsSPD, int baseStatsSPE,
                                             float luminance, /*Color lightColor,*/ int[] movesetLevels, int[] movesetMoves, int[] tmList,
                                             int[] evolutionID, int[] evolutionLevel, int[] evolutionMethod, /*string[] evolutionRequirements,* /*int? forms,*/ int[,] heldItem = null)
 {//PokemonData(ePokemons.Pokemon.BULBASAUR,1,12,4,65,null,34,45,1,7,20,7f,69f,64,4,PokemonData.PokedexColor.GREEN,SEED,45,49,49,65,65,45,0f,new int[]{1,3,7,9,13,13,15,19,21,25,27,31,33,37},new int[]{33,45,73,22,77,79,36,75,230,74,38,388,235,402},new int[]{14,15,70,76,92,104,113,148,156,164,182,188,207,213,214,216,218,219,237,241,249,263,267,290,412,447,474,496,497,590},new int[]{2},new int[]{16},new int[]{1})
     return(new PokemonData(
                Id,
                null,//PokeId,
                type1 != null ? (PokemonData.Type)type1 : PokemonData.Type.NONE,
                type2 != null ? (PokemonData.Type)type2 : PokemonData.Type.NONE,
                new eAbility.Ability[] {
         ability1 != null ? (eAbility.Ability)ability1 : eAbility.Ability.NONE,
         ability2 != null ? (eAbility.Ability)ability2 : eAbility.Ability.NONE,
         hiddenAbility != null ? (eAbility.Ability)hiddenAbility : eAbility.Ability.NONE
     },
                catchRate,
                eggGroup1 != null ? (EggGroup)eggGroup1 : PokemonData.EggGroup.NONE,
                eggGroup2 != null ? (EggGroup)eggGroup2 : PokemonData.EggGroup.NONE,
                hatchTime,
                height,
                weight,
                baseExpYield,
                levelingRate,
                pokedexColor | PokemonData.PokedexColor.NONE,
                baseStatsHP, baseStatsATK, baseStatsDEF, baseStatsSPA, baseStatsSPD, baseStatsSPE,
                luminance, movesetLevels, System.Array.ConvertAll(movesetMoves, move => (eMoves.Move)move), tmList, evolutionID, evolutionLevel, evolutionMethod, heldItem));
 }
Exemple #2
0
    public PokemonData(int Id, int[] regionalDex /*, string name*/, Type?type1, Type?type2, eAbility.Ability[] abilities,  //eAbility.Ability? ability1, eAbility.Ability? ability2, eAbility.Ability? hiddenAbility,
                       /*float maleRatio,*/ int catchRate, EggGroup eggGroup1, EggGroup eggGroup2, int hatchTime,
                       float height, float weight, int baseExpYield, int levelingRate,
                       /*int? evYieldHP, int? evYieldATK, int? evYieldDEF, int? evYieldSPA, int? evYieldSPD, int? evYieldSPE,*/
                       PokedexColor pokedexColor,  /*int baseFriendship,* / string species, string pokedexEntry,*/
                       int baseStatsHP, int baseStatsATK, int baseStatsDEF, int baseStatsSPA, int baseStatsSPD, int baseStatsSPE,
                       float luminance, /*Color lightColor,*/ int[] movesetLevels, eMoves.Move[] movesetMoves, int[] tmList,
                       int[] evolutionID, int[] evolutionLevel, int[] evolutionMethod, /*string[] evolutionRequirements,* /*int? forms,*/ int[,] heldItem = null)
    {//new PokemonData(1,1,"Bulbasaur",12,4,65,null,34,45,1,7,20,7f,69f,64,4,PokemonData.PokedexColor.GREEN,"Seed","\"Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun’s rays, the seed grows progressively larger.\"",45,49,49,65,65,45,0f,new int[]{1,3,7,9,13,13,15,19,21,25,27,31,33,37},new int[]{33,45,73,22,77,79,36,75,230,74,38,388,235,402},new int[]{14,15,70,76,92,104,113,148,156,164,182,188,207,213,214,216,218,219,237,241,249,263,267,290,412,447,474,496,497,590},new int[]{2},new int[]{16},new int[]{1})
        PokedexTranslation translation = PokemonDatabase.GetPokedexTranslation(Id);

        this.ID = Id;
        this.regionalPokedex = regionalDex;
        this.Name            = translation.Name;
        this.Species         = translation.Species;
        this.pokedexEntry    = translation.PokedexEntry;
        //this.forms = forms; //ToDo: need new mechanic for how this should work

        this.type1     = type1 != null ? (PokemonData.Type)type1 : PokemonData.Type.NONE;
        this.type2     = type2 != null ? (PokemonData.Type)type2 : PokemonData.Type.NONE;
        this.Abilities = abilities;
        //this.ability1Id = (eAbility.Ability)ability1;
        //this.ability2Id = (eAbility.Ability)ability2;
        //this.hiddenAbilityId = (eAbility.Ability)hiddenAbility;

        //this.maleRatio = maleRatio; //ToDo
        this.catchRate = catchRate;
        this.eggGroup1 = eggGroup1;
        this.eggGroup2 = eggGroup2;
        this.hatchTime = hatchTime;

        this.height       = height;
        this.weight       = weight;
        this.baseExpYield = baseExpYield;
        this.levelingRate = (LevelingRate)levelingRate; //== null ? (PokemonData.LevelingRate)levelingRate : PokemonData.LevelingRate.NONE;

        this.baseStatsHP  = baseStatsHP;
        this.baseStatsATK = baseStatsATK;
        this.baseStatsDEF = baseStatsDEF;
        this.baseStatsSPA = baseStatsSPA;
        this.baseStatsSPD = baseStatsSPD;
        this.baseStatsSPE = baseStatsSPE;
        //this.baseFriendship = baseFriendship; //ToDo: forgot to implement when transfering database

        this.luminance = luminance;
        //this.lightColor = lightColor;
        this.pokedexColor = pokedexColor | PokemonData.PokedexColor.NONE;

        //ToDo: wild pokemon held items not yet implemented
        this.heldItem = heldItem; //[item id,% chance]

        this.movesetLevels = movesetLevels;
        this.movesetMoves  = movesetMoves; //ToDo: Array Cast conversion
        //this.tmList = tmList; //ToDo: Need new item database array/enum for this; one that's regional/generation dependant

        this.evolutionID = evolutionID;
        //this.evolutionRequirements = evolutionRequirements;
    }
Exemple #3
0
    //E.G.	Poliwhirl(61)
    //		new int[]{62,186},
    //		new string[]{"Stone,Water Stone","Trade\Item,King's Rock"}),
    //
    //E.G. to evolve to sylveon
    //		new int[]{..., 700},
    //		new string[]{..., "Amie\Move,2\Fairy"}),
    //
    //
    //Level,int level
    //	if pokemon's level is greater or equal to int level
    //Stone,string itemName
    //	if name of stone is equal to string itemName
    //Trade
    //	if currently trading pokemon
    //Friendship
    //	if pokemon's friendship is greater or equal to 220
    //Item,string itemName
    //	if pokemon's heldItem is equal to string itemName
    //Gender,Pokemon.Gender
    //  if pokemon's gender is equal to Pokemon.Gender
    //Move,string moveName
    //	if pokemon has a move thats name or typing is equal to string moveName
    //Map,string mapName
    //  if currentMap is equal to string mapName
    //Time,string dayNight
    //	if time is between 9PM and 4AM time is "Night". else time is "Day".
    //	if time is equal to string dayNight (either Day, or Night)
    //
    //		Unique evolution methods:
    //Mantine
    //	if party contains a Remoraid
    //Pangoro
    //	if party contains a dark pokemon
    //Goodra
    //	if currentMap's weather is rain
    //Hitmonlee
    //	if pokemon's ATK is greater than DEF
    //Hitmonchan
    //	if pokemon's ATK is lower than DEF
    //Hitmontop
    //  if pokemon's ATK is equal to DEF
    //Silcoon
    //  if pokemon's shinyValue divided by 2's remainder is equal to 0
    //Cascoon
    //	if pokemon's shinyValue divided by 2's remainder is equal to 1


    public PokemonData(int ID, string name, Type type1, Type type2, string ability1, string ability2, string hiddenAbility,
                       float maleRatio, int catchRate, EggGroup eggGroup1, EggGroup eggGroup2, int hatchTime,
                       float height, float weight, int baseExpYield, LevelingRate levelingRate,
                       int evYieldHP, int evYieldATK, int evYieldDEF, int evYieldSPA, int evYieldSPD, int evYieldSPE,
                       PokedexColor pokedexColor, int baseFriendship,
                       string species, string pokedexEntry,
                       int baseStatsHP, int baseStatsATK, int baseStatsDEF, int baseStatsSPA, int baseStatsSPD, int baseStatsSPE,
                       float luminance, Color lightColor,      //string[] heldItem,
                       int[] movesetLevels, string[] movesetMoves, string[] tmList,
                       int[] evolutionID, string[] evolutionRequirements)
    {
        this.ID            = ID;
        this.name          = name;
        this.type1         = type1;
        this.type2         = type2;
        this.ability1      = ability1;
        this.ability2      = ability2;
        this.hiddenAbility = hiddenAbility;

        this.maleRatio = maleRatio;
        this.catchRate = catchRate;
        this.eggGroup1 = eggGroup1;
        this.eggGroup2 = eggGroup2;
        this.hatchTime = hatchTime;

        this.height       = height;
        this.weight       = weight;
        this.baseExpYield = baseExpYield;
        this.levelingRate = levelingRate;

        this.evYieldHP  = evYieldHP;
        this.evYieldATK = evYieldATK;
        this.evYieldDEF = evYieldDEF;
        this.evYieldSPA = evYieldSPA;
        this.evYieldSPD = evYieldSPD;
        this.evYieldSPE = evYieldSPE;

        this.pokedexColor   = pokedexColor;
        this.baseFriendship = baseFriendship;

        this.species      = species;
        this.pokedexEntry = pokedexEntry;

        this.baseStatsHP  = baseStatsHP;
        this.baseStatsATK = baseStatsATK;
        this.baseStatsDEF = baseStatsDEF;
        this.baseStatsSPA = baseStatsSPA;
        this.baseStatsSPD = baseStatsSPD;
        this.baseStatsSPE = baseStatsSPE;

        this.luminance  = luminance;
        this.lightColor = lightColor;

        //wild pokemon held items not yet implemented
        //this.heldItem = heldItem;

        this.movesetLevels = movesetLevels;
        this.movesetMoves  = movesetMoves;
        this.tmList        = tmList;

        this.evolutionID           = evolutionID;
        this.evolutionRequirements = evolutionRequirements;
    }
Exemple #4
0
    public PokemonData(int ID, string name, Type type1, Type type2, int?ability1, int?ability2, int?hiddenAbility,
                       float maleRatio, int catchRate, EggGroup eggGroup1, EggGroup eggGroup2, int hatchTime,
                       float height, float weight, int baseExpYield, LevelingRate levelingRate,
                       int evYieldHP, int evYieldATK, int evYieldDEF, int evYieldSPA, int evYieldSPD, int evYieldSPE,
                       PokedexColor pokedexColor, int baseFriendship, int species, string pokedexEntry,
                       int baseStatsHP, int baseStatsATK, int baseStatsDEF, int baseStatsSPA, int baseStatsSPD, int baseStatsSPE,
                       float luminance, Color lightColor, int[] movesetLevels, int[] movesetMoves, int[] tmList,
                       int[] evolutionID, string[] evolutionRequirements, int?forms, System.Collections.Generic.Dictionary <int, float> heldItem = null /*new int[1][] { new int[2]{-1,100} }*/)
    {
        this.ID            = ID;
        this.Species       = name;
        this.type1         = type1;
        this.type2         = type2;
        this.ability1      = (string)ability1.ToString();
        this.ability2      = (string)ability2.ToString();
        this.hiddenAbility = (string)hiddenAbility.ToString();

        this.maleRatio = maleRatio;
        this.catchRate = catchRate;
        this.eggGroup1 = eggGroup1;
        this.eggGroup2 = eggGroup2;
        this.hatchTime = hatchTime;

        this.height       = height;
        this.weight       = weight;
        this.baseExpYield = baseExpYield;
        this.levelingRate = levelingRate;

        this.evYieldHP  = evYieldHP;
        this.evYieldATK = evYieldATK;
        this.evYieldDEF = evYieldDEF;
        this.evYieldSPA = evYieldSPA;
        this.evYieldSPD = evYieldSPD;
        this.evYieldSPE = evYieldSPE;

        this.pokedexColor   = pokedexColor;
        this.baseFriendship = baseFriendship;

        //this.Species = species;
        this.pokedexEntry = pokedexEntry;

        this.baseStatsHP  = baseStatsHP;
        this.baseStatsATK = baseStatsATK;
        this.baseStatsDEF = baseStatsDEF;
        this.baseStatsSPA = baseStatsSPA;
        this.baseStatsSPD = baseStatsSPD;
        this.baseStatsSPE = baseStatsSPE;

        this.luminance  = luminance;
        this.lightColor = lightColor;

        //wild pokemon held items not yet implemented
        //this.heldItem = heldItem; //[item id,% chance]

        this.movesetLevels = movesetLevels;
        //this.movesetMoves = movesetMoves;
        //this.tmList = tmList;

        this.evolutionID           = evolutionID;
        this.evolutionRequirements = evolutionRequirements;
    }