예제 #1
0
        public override void Pickup(PlayerController player)
        {
            //   player.CustomDodgeRollEffect/
            //   player.startingAlternateGunIds.Add(LostGun.gunId);
            player.startingAlternateGunIds.Add(LostGunAlt.gunId);
            player.startingGunIds.Add(LostGun.gunId);
            //player.
            player.finalFightGunIds.Clear();
            player.finalFightGunIds.Add(LostGun.gunId);
            player.finalFightGunIds.Add(145);


            //tk2dSpriteAnimation library = spriteAnimator.Library;

            BulletArmorItem bulletArmor = PickupObjectDatabase.GetById(160).GetComponent <BulletArmorItem>();

            player.AlternateCostumeLibrary = bulletArmor.knightLibrary;



            base.Pickup(player);
        }
예제 #2
0
        protected override void DoEffect(PlayerController user)
        {
            this.DoAmbientTalk(user.transform, new Vector3(1, 2, 0), "git gud", 4f);

            ETGModConsole.Log(StringTableManager.EvaluateReplacementToken("%INSULT"));
            ETGModConsole.Log(StringTableManager.GetString("#MASKGUN_ROOMCLEAR_ENMITY"));
            ETGModConsole.Log(StringTableManager.GetString("#MASKGUN_ROOMCLEAR_BEGRUDGING"));


            return;

            //Dictionary<string, StringTableManager.StringCollection> diolog = StringTableManager.CoreTable["#MASKGUN_ROOMCLEAR_BEGRUDGING"];
            Dictionary <string, StringTableManager.StringCollection> dialog = new Dictionary <string, StringTableManager.StringCollection>();

            List <string> textList = new List <string>();

            textList = dialog.Select(kvp => kvp.Key).ToList();

            textList = dialog.Keys.ToList();

            int t = 1;

            foreach (string text in textList)
            {
                ETGModConsole.Log(text);
                ETGModConsole.Log("" + t);
                t++;
            }



            //GameStatsManager.Instance.RegisterStatChange(TrackedStats.NUMBER_DEATHS, 1000000f);
            GameStatsManager.Instance.SetStat(TrackedStats.NUMBER_DEATHS, 1000000f);
            Shader shader = Shader.Find("Brave/Internal/GlitchEevee");

            //user.SetOverrideShader(ShaderCache.Acquire("Brave/Internal/GlitchEevee"));
            Camera.main.RenderWithShader(shader, "10");
            Camera.current.RenderWithShader(shader, "10");
            GameManager manager = GameManager.Instance;

            ETGModConsole.Log(user.name, false);
            ETGModConsole.Log(user.ActorName, false);

            GameOptions options = new GameOptions();
            //options.CurrentLanguage = StringTableManager.GungeonSupportedLanguages.RUBEL_TEST;

            //MoreBreachShrine.roomMagic(user);
            Dungeon dungeon = GameManager.Instance.Dungeon;

            if (component = null)
            {
                component = dungeon.data.tilemap;
            }


            Vector2 pos = user.sprite.WorldCenter;

            dungeon.BossMasteryTokenItemId = Apache.gunId;
            //dungeon.OverrideAmbientColor = Color.black;
            //dungeon.OverrideAmbientLight = true;
            //dungeon.data.tilemap = component;
            dungeon.DungeonFloorLevelTextOverride = "bob";


            //user.ForceMetalGearMenu = true;
            AkSoundEngine.PostEvent("Play_WPN_earthwormgun_shot_01", base.gameObject);
            //SpriteOutlineManager.RemoveOutlineFromSprite(user.sprite, false);
            //zSpriteOutlineManager.AddOutlineToSprite(user.sprite, Color.red);

            GameManager.PVP_ENABLED = true;

            BulletArmorItem bulletArmor = PickupObjectDatabase.GetById(160).GetComponent <BulletArmorItem>();

            transformSprites = bulletArmor.knightLibrary;

            user.SwapToAlternateCostume();
            //Chest chest = Chest.Spawn(GameManager.Instance.RewardManager.Rainbow_Chest, npc.sprite.WorldCenter + Vector2.down, npc.sprite.WorldCenter.GetAbsoluteRoom(), true);
            //MoreBreachShrine.roomMagic(user);
            //user.OverrideAnimationLibrary = bulletArmor.knightLibrary;
            //Start();
        }