Exemple #1
0
        protected override void DoListingItems()
        {
            this.listing.DoLabel("Wellcome to te faction gauntlet!");

            this.listing.DoLabel("Choose one of the challenges types below:");

            this.DrawDebugAction("Fight another Faction", delegate() { MapComponentFactionGauntlet.GetMapComponent().competitorTable = ChallengeType.AnotherFaction; });
            this.DrawDebugAction("Challenge Core Factions", delegate() { MapComponentFactionGauntlet.GetMapComponent().competitorTable = ChallengeType.AllCoreFactions; });
            this.DrawDebugAction("Challenge All Factions", delegate() { MapComponentFactionGauntlet.GetMapComponent().competitorTable = ChallengeType.AllOtherFactions; });
        }
        public static MapComponentFactionGauntlet GetMapComponent()
        {
            MapComponentFactionGauntlet ret = Find.Map.components.OfType<MapComponentFactionGauntlet>().FirstOrDefault();
            if (ret == null)
            {
                ret = new MapComponentFactionGauntlet();
                Find.Map.components.Add(ret);
            }

            return ret;
        }
        protected override void DoListingItems()
        {
            this.listing.DoLabel("Choose how big the squads will be:");

            this.DrawDebugAction((100.0).ToString("N0") + "pts", delegate() { MapComponentFactionGauntlet.GetMapComponent().raidScales.Add(100.0f); });
            this.DrawDebugAction((500.0).ToString("N0") + "pts", delegate() { MapComponentFactionGauntlet.GetMapComponent().raidScales.Add(500.0f); });
            this.DrawDebugAction((1000.0).ToString("N0") + "pts", delegate() { MapComponentFactionGauntlet.GetMapComponent().raidScales.Add(1000.0f); });
            this.DrawDebugAction((2000.0).ToString("N0") + "pts", delegate() { MapComponentFactionGauntlet.GetMapComponent().raidScales.Add(2000.0f); });
            this.DrawDebugAction((5000.0).ToString("N0") + "pts", delegate() { MapComponentFactionGauntlet.GetMapComponent().raidScales.Add(5000.0f); });
            this.DrawDebugAction("All of Above!", delegate() { MapComponentFactionGauntlet.GetMapComponent().raidScales.AddRange(new float[] { 100.0f, 500.0f, 1000.0f, 2000.0f, 5000.0f }); });
        }
Exemple #4
0
        public static MapComponentFactionGauntlet GetMapComponent()
        {
            MapComponentFactionGauntlet ret = Find.Map.components.OfType <MapComponentFactionGauntlet>().FirstOrDefault();

            if (ret == null)
            {
                ret = new MapComponentFactionGauntlet();
                Find.Map.components.Add(ret);
            }

            return(ret);
        }
Exemple #5
0
        protected override void DoListingItems()
        {
            this.listing.DoLabel("Choose fighting grounds!");

            this.DrawDebugAction("0% SandBag, 0% Wall (Clean Arena)", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 000; MapComponentFactionGauntlet.GetMapComponent().wallChance = 000; });
            this.DrawDebugAction("1% SandBag, 0% Wall", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 001; MapComponentFactionGauntlet.GetMapComponent().wallChance = 000; });
            this.DrawDebugAction("5% SandBag, 0% Wall", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 005; MapComponentFactionGauntlet.GetMapComponent().wallChance = 000; });
            this.DrawDebugAction("0% SandBag, 1% Wall", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 000; MapComponentFactionGauntlet.GetMapComponent().wallChance = 001; });
            this.DrawDebugAction("1% SandBag, 1% Wall", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 001; MapComponentFactionGauntlet.GetMapComponent().wallChance = 001; });
            this.DrawDebugAction("5% SandBag, 1% Wall", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 005; MapComponentFactionGauntlet.GetMapComponent().wallChance = 001; });
            this.DrawDebugAction("0% SandBag, 5% Wall", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 000; MapComponentFactionGauntlet.GetMapComponent().wallChance = 005; });
            this.DrawDebugAction("1% SandBag, 5% Wall", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 001; MapComponentFactionGauntlet.GetMapComponent().wallChance = 005; });
            this.DrawDebugAction("5% SandBag, 5% Wall", delegate() { MapComponentFactionGauntlet.GetMapComponent().sandBagChance = 005; MapComponentFactionGauntlet.GetMapComponent().wallChance = 005; });
        }
        protected override void DoListingItems()
        {
            this.listing.DoLabel("Choose the Gauntlet type:");

            this.DrawDebugAction("1 Sudden Death", delegate()
            {
                MapComponentFactionGauntlet.GetMapComponent().style        = FightStyle.SuddendDeath;
                MapComponentFactionGauntlet.GetMapComponent().roundNumbers = 1;
            });
            this.DrawDebugAction("3 Sudden Death", delegate()
            {
                MapComponentFactionGauntlet.GetMapComponent().style        = FightStyle.SuddendDeath;
                MapComponentFactionGauntlet.GetMapComponent().roundNumbers = 3;
            });
            this.DrawDebugAction("5 Sudden Death", delegate()
            {
                MapComponentFactionGauntlet.GetMapComponent().style        = FightStyle.SuddendDeath;
                MapComponentFactionGauntlet.GetMapComponent().roundNumbers = 5;
            });
            this.DrawDebugAction("12 Sudden Death", delegate()
            {
                MapComponentFactionGauntlet.GetMapComponent().style        = FightStyle.SuddendDeath;
                MapComponentFactionGauntlet.GetMapComponent().roundNumbers = 12;
            });
            this.DrawDebugAction("3 Rounds Fight", delegate()
            {
                MapComponentFactionGauntlet.GetMapComponent().style        = FightStyle.TimedRounds;
                MapComponentFactionGauntlet.GetMapComponent().roundNumbers = 3;
            });
            this.DrawDebugAction("5 Rounds Fight", delegate()
            {
                MapComponentFactionGauntlet.GetMapComponent().style        = FightStyle.TimedRounds;
                MapComponentFactionGauntlet.GetMapComponent().roundNumbers = 5;
            });
            this.DrawDebugAction("12 Rounds Fight", delegate()
            {
                MapComponentFactionGauntlet.GetMapComponent().style        = FightStyle.TimedRounds;
                MapComponentFactionGauntlet.GetMapComponent().roundNumbers = 12;
            });

            this.listing.DoLabel("Sudden Death: Fight until all unit dies");
            this.listing.DoLabel("Rounds: Fight for " + MapComponentFactionGauntlet.roundLenght.ToString("N0") + " ticks");
        }
Exemple #7
0
        protected override void DoListingItems()
        {
            if (MapComponentFactionGauntlet.GetMapComponent().toRaid.Count == 0)
            {
                this.listing.DoLabel("Choose the faction to enter the gauntlet!");
            }
            else
            {
                this.listing.DoLabel("Choose the faction to fight aganist the " + MapComponentFactionGauntlet.GetMapComponent().toRaid[0].name + "!");
            }

            foreach (Faction current in Find.FactionManager.AllFactions.Where(i => i.HostileTo(Faction.OfColony)))
            {
                if ((MapComponentFactionGauntlet.GetMapComponent().toRaid.Count == 0) ||
                    (MapComponentFactionGauntlet.GetMapComponent().toRaid[0] != current))
                {
                    this.DrawDebugAction(current.name, delegate() { MapComponentFactionGauntlet.GetMapComponent().toRaid.Add(current); });
                }
            }
        }