Пример #1
0
 private void RandomMap_Click(object sender, EventArgs e)
 {
     MapList.SelectedItem = GameMaps.RandomName((int)Teams.Value, false);
 }
        public static GameSettings Default()
        {
            var s = new GameSettings
            {
                NumTeams         = 2,
                GameType         = EGameType.Skirmish,
                MapName          = GameMaps.RandomName(2, false),
                WormholesVisible = true,
                RocksVisible     = false,

                TeamColours       = new[] { DefaultTeamColours[0], DefaultTeamColours[1] },
                TeamAlliance      = new[] { 1, 2 },
                RestrictTechToIds = new int[2][],
                NumPilots         = 16,
                MaximumPilots     = int.MaxValue,
                AiDifficulty      = 3,
                VariantAi         = true,

                WormholesSignatureMultiplier = 1,

                MinersInitial            = 1,
                MinersMaxDrones          = 4,
                MinersCapacityMultiplier = 1,

                ConstructorsMaxDrones      = 1,
                ConstructorsMaxTowerDrones = 4,
                InitialCapitalMaxDrones    = 2,

                ResourcesStartingMultiplier      = 1,
                ResourcesPerRockMultiplier       = 1,
                ResourcesEachTickMultiplier      = 1,
                ResourceConversionRateMultiplier = 1,

                ResearchCostMultiplier = 1,
                ResearchTimeMultiplier = 1,

                RocksPerSectorTech     = 2,
                RocksPerSectorResource = 4,
                RocksPerSectorGeneral  = 8,
                RocksAllowedTech       = new List <EAsteroidType> {
                    EAsteroidType.Carbon, EAsteroidType.Silicon, EAsteroidType.Uranium
                },

                StationHealthMultiplier    = new Dictionary <EBaseType, float>(),
                StationSignatureMultiplier = new Dictionary <EBaseType, float>(),

                ShipSpeedMultiplier     = new Dictionary <EShipType, float>(),
                ShipHealthMultiplier    = new Dictionary <EShipType, float>(),
                ShipSignatureMultiplier = new Dictionary <EShipType, float>(),

                AntiShipWeaponRangeMultiplier    = 1,
                AntiShipWeaponFireRateMultiplier = 1,
                AntiShipWeaponDamageMultiplier   = 1,

                NanWeaponRangeMultiplier    = 1,
                NanWeaponFireRateMultiplier = 1,
                NanWeaponHealingMultiplier  = 1,

                AntiBaseWeaponRangeMultiplier    = 1,
                AntiBaseWeaponFireRateMultiplier = 1,
                AntiBaseWeaponDamageMultiplier   = 1,

                MissileWeaponDamageMultiplier   = 1,
                MissileWeaponFireRateMultiplier = 1,
                MissileWeaponRangeMultiplier    = 1,
                MissileWeaponSpeedMultiplier    = 1,
                MissileWeaponTrackingMultiplier = 1,

                AlienChance            = 0f,
                MinAliensPerSector     = 2,
                MaxAliensPerSector     = 4,
                MinAlienBasesPerSector = 1,
                MaxAlienBasesPerSector = 2,
                WaveShipsPerBase       = 1,
                InitialWaveDelay       = 45 * 4,
                DecreaseWaveDelay      = 1 * 4,

                AlientWaveTargetType = EWaveTargetType.Everyone,

                GameSpeed = 0.5f,
                NormalShipCostMultiplier = 0.5f,
            };

            s.TeamFactions = new[] { Faction.Default(s), Faction.Random(s) };

            foreach (EBaseType e in Enum.GetValues(typeof(EBaseType)))
            {
                s.StationHealthMultiplier.Add(e, 1);
                s.StationSignatureMultiplier.Add(e, 1);
            }

            foreach (EShipType e in Enum.GetValues(typeof(EShipType)))
            {
                s.ShipSpeedMultiplier.Add(e, 1);
                s.ShipHealthMultiplier.Add(e, 1);
                s.ShipSignatureMultiplier.Add(e, 1);
            }

            return(s);
        }
Пример #3
0
 private void RandomMap_Click(object sender, EventArgs e)
 {
     SoundEffect.Play(ESounds.mousedown);
     MapList.SelectedItem = GameMaps.RandomName((int)Teams.Value, false);
 }