Example #1
0
 public void ChangePet(string basepet = "Robbit", bool shiny = false)
 {
     Base = PetList.FindPetByName(basepet);//Pulls up base pet regardless
     if (!shiny)
     {
         Source = "Pet_" + basepet + "_Normal.png";//FOR NORMAL PETS
     }
     else
     {
         Source = "Pet_" + basepet + "_Rare.png";//FOR SHINY PETS
     }
     SetImageProperties();
 }
Example #2
0
        public Pet(PlayerData playerData)
        {
            NickName  = playerData.PetName;
            Happiness = playerData.Happiness;
            Age       = playerData.Age;
            Hunger    = playerData.Hunger;
            Hygiene   = playerData.Hygiene;
            Health    = playerData.Health;
            IsShiny   = playerData.IsShiny;
            Base      = PetList.FindPetByName(playerData.BasePet);

            ChangePet(Base.Name, IsShiny);

            UpdateAllStates();
        }
Example #3
0
        }                               //Base of the pet (If loading pets into objects at runtime [Slow start but better finish, does not matter too much if not many to load])

        public Pet(string nickname = "Josh", int happiness = 50, int age = 0, int hunger = 50, int hygiene = 50, int health = 100, string basepet = "Rockworm", bool shiny = false)
        {
            NickName  = nickname;
            Happiness = happiness;
            Age       = age;
            Hunger    = hunger;
            Hygiene   = hygiene;
            Health    = health;
            IsShiny   = shiny;
            Base      = PetList.FindPetByName(basepet);


            ChangePet(Base.Name, IsShiny);

            UpdateAllStates();
        }