示例#1
0
 public Creation(Creation.CreationType type, God godToDefeat)
 {
     this.GodToDefeat = godToDefeat;
     this.TypeEnum    = type;
     this.Count       = 0;
     this.InitSubItemCost(0);
 }
示例#2
0
 public UltimateBeingV2(int tier)
 {
     this.HPPercent = 100;
     this.Tier      = tier;
     if (this.Tier == 1)
     {
         this.Name                    = "Planet Eater V2";
         this.CreationNeeded          = Creation.CreationType.Planet;
         this.CreationName            = "Poison Planet";
         this.CreationDescriptionBase = "It looks like a normal planet, but it is poisoned. Maybe you have some need for that...";
     }
     else if (this.Tier == 2)
     {
         this.Name                    = "Godly Tribunal V2";
         this.CreationNeeded          = Creation.CreationType.Earthlike_planet;
         this.CreationName            = "Draining Planet";
         this.CreationDescriptionBase = "Almost like a normal earthlike planet, except all the plants on this planet are draining plants. It drains the power of anybody who comes near it.";
     }
     else if (this.Tier == 3)
     {
         this.Name                    = "Living Sun V2";
         this.CreationNeeded          = Creation.CreationType.Sun;
         this.CreationName            = "Icy Sun";
         this.CreationDescriptionBase = "It just looks like a white star and is so cold, that the cold feels like it burns. It is even colder than the minimum temperature.";
     }
     else if (this.Tier == 4)
     {
         this.Name                    = "God Above All V2";
         this.CreationNeeded          = Creation.CreationType.Solar_system;
         this.CreationName            = "Trap System";
         this.CreationDescriptionBase = "All stars and planets in this solar system are set to explode as soon as you command it.";
     }
     else if (this.Tier == 5)
     {
         this.Name                    = "ITRTG V2";
         this.CreationNeeded          = Creation.CreationType.Universe;
         this.CreationName            = "Fakeverse";
         this.CreationDescriptionBase = "It looks just like a normal universe. Nobody but you might find out the difference. A good present to fool someone with it.";
     }
     this.CreationDescription = this.CreationDescriptionBase;
 }
        public static string Name(Creation.CreationType enumValue)
        {
            switch (enumValue)
            {
            case Creation.CreationType.Shadow_clone:
                return("Shadow clone");

            case Creation.CreationType.Light:
                return("Light");

            case Creation.CreationType.Stone:
                return("Stone");

            case Creation.CreationType.Soil:
                return("Soil");

            case Creation.CreationType.Air:
                return("Air");

            case Creation.CreationType.Water:
                return("Water");

            case Creation.CreationType.Plant:
                return("Plant");

            case Creation.CreationType.Tree:
                return("Tree");

            case Creation.CreationType.Fish:
                return("Fish");

            case Creation.CreationType.Animal:
                return("Animal");

            case Creation.CreationType.Human:
                return("Human");

            case Creation.CreationType.River:
                return("River");

            case Creation.CreationType.Mountain:
                return("Mountain");

            case Creation.CreationType.Forest:
                return("Forest");

            case Creation.CreationType.Village:
                return("Village");

            case Creation.CreationType.Town:
                return("Town");

            case Creation.CreationType.Ocean:
                return("Ocean");

            case Creation.CreationType.Nation:
                return("Nation");

            case Creation.CreationType.Continent:
                return("Continent");

            case Creation.CreationType.Weather:
                return("Weather");

            case Creation.CreationType.Sky:
                return("Sky");

            case Creation.CreationType.Night:
                return("Night");

            case Creation.CreationType.Moon:
                return("Moon");

            case Creation.CreationType.Planet:
                return("Planet");

            case Creation.CreationType.Earthlike_planet:
                return("Earthlike planet");

            case Creation.CreationType.Sun:
                return("Sun");

            case Creation.CreationType.Solar_system:
                return("Solar system");

            case Creation.CreationType.Galaxy:
                return("Galaxy");

            case Creation.CreationType.Universe:
                return("Universe");

            default:
                return(string.Empty);
            }
        }
        public static List <CreationCost> RequiredCreations(Creation.CreationType creationType, long count = 0L, bool offlineCalc = false)
        {
            List <CreationCost> list = new List <CreationCost>();

            switch (creationType)
            {
            case Creation.CreationType.Soil:
                list.Add(new CreationCost(1, Creation.CreationType.Stone));
                break;

            case Creation.CreationType.Air:
                list.Add(new CreationCost(2, Creation.CreationType.Light));
                break;

            case Creation.CreationType.Water:
                list.Add(new CreationCost(3, Creation.CreationType.Air));
                break;

            case Creation.CreationType.Plant:
                list.Add(new CreationCost(2, Creation.CreationType.Soil));
                list.Add(new CreationCost(2, Creation.CreationType.Water));
                break;

            case Creation.CreationType.Tree:
                list.Add(new CreationCost(5, Creation.CreationType.Soil));
                list.Add(new CreationCost(3, Creation.CreationType.Water));
                break;

            case Creation.CreationType.Fish:
                list.Add(new CreationCost(10, Creation.CreationType.Water));
                list.Add(new CreationCost(5, Creation.CreationType.Plant));
                break;

            case Creation.CreationType.Animal:
                list.Add(new CreationCost(15, Creation.CreationType.Water));
                list.Add(new CreationCost(9, Creation.CreationType.Plant));
                list.Add(new CreationCost(3, Creation.CreationType.Fish));
                break;

            case Creation.CreationType.Human:
                list.Add(new CreationCost(100, Creation.CreationType.Water));
                list.Add(new CreationCost(25, Creation.CreationType.Plant));
                list.Add(new CreationCost(25, Creation.CreationType.Fish));
                list.Add(new CreationCost(15, Creation.CreationType.Animal));
                break;

            case Creation.CreationType.River:
                list.Add(new CreationCost(5000, Creation.CreationType.Water));
                break;

            case Creation.CreationType.Mountain:
                list.Add(new CreationCost(200000, Creation.CreationType.Stone));
                break;

            case Creation.CreationType.Forest:
                list.Add(new CreationCost(10000, Creation.CreationType.Tree));
                break;

            case Creation.CreationType.Village:
                list.Add(new CreationCost(5000, Creation.CreationType.Stone));
                list.Add(new CreationCost(5000, Creation.CreationType.Plant));
                list.Add(new CreationCost(200, Creation.CreationType.Human));
                list.Add(new CreationCost(1, Creation.CreationType.River));
                list.Add(new CreationCost(1, Creation.CreationType.Forest));
                break;

            case Creation.CreationType.Town:
                list.Add(new CreationCost(250000, Creation.CreationType.Stone));
                list.Add(new CreationCost(10000, Creation.CreationType.Plant));
                list.Add(new CreationCost(5000, Creation.CreationType.Human));
                list.Add(new CreationCost(1, Creation.CreationType.River));
                break;

            case Creation.CreationType.Ocean:
                list.Add(new CreationCost(30000000, Creation.CreationType.Water));
                list.Add(new CreationCost(5000000, Creation.CreationType.Plant));
                list.Add(new CreationCost(1000000, Creation.CreationType.Fish));
                list.Add(new CreationCost(500, Creation.CreationType.River));
                break;

            case Creation.CreationType.Nation:
                list.Add(new CreationCost(1000000, Creation.CreationType.Plant));
                list.Add(new CreationCost(100000, Creation.CreationType.Animal));
                list.Add(new CreationCost(100, Creation.CreationType.River));
                list.Add(new CreationCost(3, Creation.CreationType.Mountain));
                list.Add(new CreationCost(10, Creation.CreationType.Forest));
                list.Add(new CreationCost(15, Creation.CreationType.Town));
                break;

            case Creation.CreationType.Continent:
                list.Add(new CreationCost(1, Creation.CreationType.Ocean));
                list.Add(new CreationCost(5, Creation.CreationType.Nation));
                break;

            case Creation.CreationType.Weather:
                list.Add(new CreationCost(1000000000, Creation.CreationType.Air));
                list.Add(new CreationCost(100000000, Creation.CreationType.Water));
                list.Add(new CreationCost(5, Creation.CreationType.Ocean));
                list.Add(new CreationCost(1, Creation.CreationType.Continent));
                break;

            case Creation.CreationType.Sky:
                list.Add(new CreationCost(100000000, Creation.CreationType.Light));
                list.Add(new CreationCost(3000000000u, Creation.CreationType.Air));
                list.Add(new CreationCost(1, Creation.CreationType.Weather));
                break;

            case Creation.CreationType.Night:
                list.Add(new CreationCost(2, Creation.CreationType.Sky));
                break;

            case Creation.CreationType.Moon:
                list.Add(new CreationCost(150000000000L, Creation.CreationType.Stone));
                list.Add(new CreationCost(1, Creation.CreationType.Night));
                break;

            case Creation.CreationType.Planet:
                list.Add(new CreationCost(300000000000L, Creation.CreationType.Stone));
                list.Add(new CreationCost(1, Creation.CreationType.Moon));
                break;

            case Creation.CreationType.Earthlike_planet:
                list.Add(new CreationCost(100000000000L, Creation.CreationType.Air));
                list.Add(new CreationCost(10000000000L, Creation.CreationType.Soil));
                list.Add(new CreationCost(25000000000L, Creation.CreationType.Water));
                list.Add(new CreationCost(5000000000L, Creation.CreationType.Plant));
                list.Add(new CreationCost(1, Creation.CreationType.Planet));
                break;

            case Creation.CreationType.Sun:
                list.Add(new CreationCost(9999999999999L, Creation.CreationType.Light));
                break;

            case Creation.CreationType.Solar_system:
                list.Add(new CreationCost(100, Creation.CreationType.Planet));
                list.Add(new CreationCost(1, Creation.CreationType.Earthlike_planet));
                list.Add(new CreationCost(10, Creation.CreationType.Sun));
                break;

            case Creation.CreationType.Galaxy:
                list.Add(new CreationCost(5, Creation.CreationType.Solar_system));
                break;

            case Creation.CreationType.Universe:
                list.Add(new CreationCost(5, Creation.CreationType.Galaxy));
                break;
            }
            long num = 1L;

            try
            {
                if ((App.State != null && App.State.GameSettings.CreationToCreateCount > 1) || offlineCalc)
                {
                    if (offlineCalc || (count > 0L && count < (long)App.State.GameSettings.CreationToCreateCount))
                    {
                        num = count;
                    }
                    else if (App.State.GameSettings.CreationToCreateCount > 0)
                    {
                        num = (long)App.State.GameSettings.CreationToCreateCount;
                    }
                    long num2 = 100L;
                    long num3 = num;
                    long num4 = 0L;
                    if (num > 12L)
                    {
                        num3 = 12L;
                        num4 = num - num3;
                    }
                    int num5 = 1;
                    while ((long)num5 < num3)
                    {
                        int num6 = 5 * num5;
                        if (num6 >= 50)
                        {
                            num6 = 50;
                        }
                        num2 += (long)(100 - num6);
                        num5++;
                    }
                    if (num4 > 0L)
                    {
                        num2 += num4 * 50L;
                    }
                    foreach (CreationCost current in list)
                    {
                        double num7 = current.CountNeeded.Double * (double)num2 / (double)(100L * num) * (double)num;
                        num7 = Math.Round(num7);
                        current.CountNeeded = new CDouble(Convert.ToDecimal(num7).ToString(), true);
                    }
                }
            }
            catch (Exception e)
            {
            }
            return(list);
        }
 public CreationCost(CDouble count, Creation.CreationType type)
 {
     this.CountNeeded = count;
     this.TypeEnum    = type;
 }