Ejemplo n.º 1
0
        private static RaidParameters[] InitializeDenList(RaidSpawnList8 raids, RaidSpawnList8 raidsArmor)
        {
            // current release has these numbers bugged

            var dl       = new RaidParameters[raids.CountUsed + raidsArmor.CountUsed];
            var allRaids = raids.GetAllRaids();

            for (int i = 0; i < raids.CountUsed; i++)
            {
                int idx         = i;
                var currentRaid = allRaids[i];
                var detail      = NestLocations.Nests[i];
                dl[idx] = new RaidParameters(idx, currentRaid, detail.Location, detail.MapX, detail.MapY);
            }

            var allArmorRaids = raidsArmor.GetAllRaids();

            for (int i = 0; i < raidsArmor.CountUsed; i++)
            {
                int idx         = raids.CountUsed + i;
                var currentRaid = allArmorRaids[i];
                var detail      = NestLocations.Nests[idx];
                dl[idx] = new RaidParameters(idx, currentRaid, detail.Location, detail.MapX, detail.MapY);
            }

            return(dl);
        }
Ejemplo n.º 2
0
        private static RaidParameters[] InitializeDenList(RaidSpawnList8 raids)
        {
            var dl       = new RaidParameters[100];
            var allRaids = raids.GetAllRaids();

            for (int i = 0; i < dl.Length; i++)
            {
                int idx         = i;
                var currentRaid = allRaids[idx];
                var detail      = NestLocations.Nests[i];
                dl[i] = new RaidParameters(i, currentRaid, detail.Location, detail.MapX, detail.MapY);
            }
            return(dl);
        }
Ejemplo n.º 3
0
        private static RaidParameters[] InitializeDenList(RaidSpawnList8 raids, RaidSpawnList8 raidsArmor, RaidSpawnList8 raidsCrown)
        {
            // current release has these numbers bugged
            int NormalUsed = raids.CountUsed;
            int ArmorUsed  = raidsArmor.CountUsed;
            int CrownUsed  = 86;

            var dl       = new RaidParameters[NormalUsed + ArmorUsed + CrownUsed];
            var allRaids = raids.GetAllRaids();

            for (int i = 0; i < NormalUsed; i++)
            {
                int idx         = i;
                var currentRaid = allRaids[i];
                var detail      = NestLocations.Nests[i];
                dl[idx] = new RaidParameters(idx, currentRaid, detail.Location, detail.MapX, detail.MapY);
            }

            var allArmorRaids = raidsArmor.GetAllRaids();

            for (int i = 0; i < ArmorUsed; i++)
            {
                int idx         = NormalUsed + i;
                var currentRaid = allArmorRaids[i];
                var detail      = NestLocations.Nests[idx];
                dl[idx] = new RaidParameters(idx, currentRaid, detail.Location, detail.MapX, detail.MapY);
            }

            var allCrownRaids = raidsCrown.GetAllRaids();

            for (int i = 0; i < CrownUsed; i++)
            {
                int idx         = NormalUsed + ArmorUsed + i;
                var currentRaid = allCrownRaids[i];
                var detail      = NestLocations.Nests[idx];
                dl[idx] = new RaidParameters(idx, currentRaid, detail.Location, detail.MapX, detail.MapY);
            }

            return(dl);
        }
Ejemplo n.º 4
0
        public DenManager(RaidSpawnList8 raids, GameVersion game, int badges, uint tid, uint sid)
        {
            this.raids  = raids;
            this.game   = game;
            this.badges = NumberOfSetBits(badges);
            this.tid    = tid;
            this.sid    = sid;

            this.denList = new Den[99];
            var allRaids = raids.GetAllRaids();

            for (int i = 0; i < 99; i++)
            {
                int idx = i;
                if (idx >= 15)
                {
                    idx++;
                }
                var currentRaid = allRaids[idx];
                Den den         = new Den(i, currentRaid.Seed, currentRaid.Stars, currentRaid.RandRoll, currentRaid.Flags, currentRaid.DenType, (int)DenHashes[i][2]);
                this.denList[i] = den;
            }
        }