Esempio n. 1
0
 private void basicInit(PokeJSONObj obj)
 {
     types = Global.types;
     name  = obj.species.ToLower();
     type1 = types[obj.types[0].ToLower()];
     if (obj.types.Count < 2)
     {
         type2 = type1;
     }
     else
     {
         type2 = types[obj.types[1].ToLower()];
     }
     stats = obj.baseStats;
     setAbilities(obj.abilities);
     weight    = (float)obj.weightkg;
     deftype   = new DefenseType();
     role      = new Role();
     realStats = new Dictionary <string, int>();
 }
Esempio n. 2
0
 private void basicInit(PokeJSONObj obj)
 {
     types = Global.types;
     name = obj.species.ToLower();
     type1 = types[obj.types[0].ToLower()];
     if (obj.types.Count < 2)
         type2 = type1;
     else
         type2 = types[obj.types[1].ToLower()];
     stats = obj.baseStats;
     abilities = obj.abilities;
     weight = (float)obj.weightkg;
     deftype = new DefenseType();
     role = new Role();
     realStats = new Dictionary<string, int>();
 }