コード例 #1
0
        public BossEnemy(Monster typedObject) : base(typedObject)
        {
            isRandomized = Level.GameSave.GetSettings().BossRando.Value;
            if (!isRandomized || !Level.GameSave.GetSaveBool("IsFightingBoss"))
            {
                return;
            }

            switch (TypedObject.EnemyType)
            {
            case EEnemyTileType.EmperorBoss:
                if (Dynamic._isPrinceEmperor)
                {
                    CreateAndCallCutsceneMethod.InvokeStatic(CutsceneEnumType.GetEnumValue("Alt0_Nuvius"), Level, new Point(200, 200));
                }
                break;

            case EEnemyTileType.MawBoss:
                Dynamic.DoIntroCloseMouth();
                break;

            case EEnemyTileType.BirdBoss:
                Dynamic.InitializeMob();
                Dynamic.EndBossIntroCutscene();
                break;

            case EEnemyTileType.VarndagrothBoss:
                Level.MainHero.TeleportToPoint(new Point(200, 200));
                Dynamic._spindleItem.SilentKill();
                Dynamic.ChangeEyelidAnimation(VarndagrothEyeEnumType.GetEnumValue("Open"));
                Dynamic.StartBattle();
                break;
            }
        }