コード例 #1
0
        public static bool OnFixedUpdate_Creature()
        {
            int time = (int)GlobalHistory.instance.GetCurrentTime();

            if (time != 0 && time % 60 == 0)
            {
                WhiteNightSpace.DeathAngelPlaySpeedBlockUI UI = new WhiteNightSpace.DeathAngelPlaySpeedBlockUI();
                UI.MakeSound("creature/deathangel/Lucifer_Bell0");

                int Day = PlayerModel.instance.GetDay() + 1;
                if (Day <= 20)
                {
                    CreatureOverloadManager.instance.ActivateOverload(1, 0, 60, false, true, false, new long[0]);
                }
                else if (Day > 20 && Day <= 35)
                {
                    CreatureOverloadManager.instance.ActivateOverload(2, 0, 60, false, true, false, new long[0]);
                }
                else
                {
                    CreatureOverloadManager.instance.ActivateOverload(3, 0, 60, false, true, false, new long[0]);
                }

                GlobalGameManager.instance.playTime += 1;
            }
            return(true);
        }
コード例 #2
0
        public static bool OnFixedUpdate_Creature()
        {
            int time = (int)GlobalHistory.instance.GetCurrentTime();

            if (time != 0 && time % 60 == 0)
            {
                WhiteNightSpace.DeathAngelPlaySpeedBlockUI UI = new WhiteNightSpace.DeathAngelPlaySpeedBlockUI();
                UI.MakeSound("creature/deathangel/Lucifer_Bell0");

                int overNum = 0;

                int Day = PlayerModel.instance.GetDay() + 1;
                if (Day <= 20)
                {
                    CreatureOverloadManager.instance.ActivateOverload(1, 0, 60, false, true, false, new long[0]);
                    overNum = 1;
                }
                else if (Day > 20 && Day <= 35)
                {
                    CreatureOverloadManager.instance.ActivateOverload(2, 0, 60, false, true, false, new long[0]);
                    overNum = 2;
                }
                else
                {
                    CreatureOverloadManager.instance.ActivateOverload(3, 0, 60, false, true, false, new long[0]);
                    overNum = 3;
                }

                for (int i = 0; i < overNum; i++)
                {
                    CreatureOverloadManager.instance.AddOverloadGague();
                }
                GlobalGameManager.instance.playTime += 1;
            }

            if (time != 0 && time % 150 == 0)
            {
                var rand      = new Random();
                int randCount = rand.Next(0, 10);

                List <long> WhiteList = new List <long>();
                String      bgmPath;

                if (randCount <= 5)        // HE && TETH (60%)
                {
                    WhiteList.Add(100054); // 고기 초롱
                    WhiteList.Add(100060); // 공허한 꿈
                    WhiteList.Add(100018); // 버려진 살인마
                    WhiteList.Add(100001); // 불타버린 소녀
                    WhiteList.Add(100036); // 우주 속의 조각
                    WhiteList.Add(100020); // 징벌 새
                    WhiteList.Add(100106); // 징벌 새

                    WhiteList.Add(300101); // 무엇이든 도와드립니다
                    WhiteList.Add(100049); // 샤덴프로이데
                    WhiteList.Add(100016); // 썰매의 루돌타
                    WhiteList.Add(100042); // 죽은 나비들의 장례
                    WhiteList.Add(100050); // 죽은 나비들의 장례
                    WhiteList.Add(100057); // 포큐버스

                    bgmPath = "Ordeal/Circus/Circus_Start";
                }
                else if (randCount > 5 && randCount <= 8) // WAW (30%)
                {
                    WhiteList.Add(100047);                // 꿈꾸는 해류
                    WhiteList.Add(100023);                // 백설공주의 사과
                    WhiteList.Add(100032);                // 불새
                    WhiteList.Add(100035);                // 심판새
                    WhiteList.Add(100029);                // 알리우네
                    WhiteList.Add(100026);                // 여왕벌
                    WhiteList.Add(100104);                // 음
                    WhiteList.Add(100004);                // 증오의 여왕
                    WhiteList.Add(100055);                // 차원굴절 변이체
                    WhiteList.Add(100033);                // 커다랗고 나쁠 늑대
                    WhiteList.Add(100008);                // 큰 새
                    WhiteList.Add(100039);                // 탐욕의 왕
                    WhiteList.Add(100045);                // 흑조의 꿈
                    WhiteList.Add(100065);                // 달의 울음
                    WhiteList.Add(100105);                // 풍운승려

                    bgmPath = "Ordeal/OutterGod/OutterGod_Start";
                }
                else // ALEPH (10%)
                {
                    WhiteList.Add(100056); // 검열삭제
                    WhiteList.Add(100042); // 웃는 시체들의 산
                    WhiteList.Add(100064); // 검은 군단

                    bgmPath = "Ordeal/Machine/Machine_Start";
                }

                SoundEffectPlayer soundEffectPlayer = SoundEffectPlayer.PlayOnce(bgmPath, UnityEngine.Vector2.zero);
                soundEffectPlayer.transform.SetParent(UnityEngine.Camera.main.transform);
                soundEffectPlayer.transform.localPosition = UnityEngine.Vector3.zero;

                List <CreatureModel> list = new List <CreatureModel>();
                foreach (CreatureModel creatureModel in CreatureManager.instance.GetCreatureList())
                {
                    if (creatureModel.qliphothCounter > 0 && creatureModel.script.GetQliphothCounterMax() > 0 && WhiteList.Exists(x => x == creatureModel.metadataId))
                    {
                        list.Add(creatureModel);
                    }
                }
                if (list.Count > 0)
                {
                    list[rand.Next(0, list.Count)].SetQliphothCounter(0);
                }
                GlobalGameManager.instance.playTime += 1;
            }
            return(true);
        }