Beispiel #1
0
        public static void Init(AssetBundle expandSharedAssets1)
        {
            PowBlockObject = expandSharedAssets1.LoadAsset <GameObject>("Pow Block");

            tk2dSprite m_PowBlockSprite = SpriteSerializer.AddSpriteToObject(PowBlockObject, ExpandPrefabs.EXItemCollection, "PowBlock");

            ExpandUtility.GenerateSpriteAnimator(PowBlockObject, playAutomatically: true);

            tk2dSpriteAnimator m_PowBlockAnimator = PowBlockObject.GetComponent <tk2dSpriteAnimator>();

            ExpandUtility.AddAnimation(m_PowBlockAnimator, m_PowBlockSprite.Collection, PowBlockIdleSprites, "Idle", tk2dSpriteAnimationClip.WrapMode.Loop, 8);
            ExpandUtility.AddAnimation(m_PowBlockAnimator, m_PowBlockSprite.Collection, PowBlockUsedSprites, "POW", tk2dSpriteAnimationClip.WrapMode.Loop, 2);


            PowBlock powBlock  = PowBlockObject.AddComponent <PowBlock>();
            string   shortDesc = "Shaken not stirred...";
            string   longDesc  = "A special block that when stomped on causes a violent shaking.\n\nEnemies shall lose their footing.";

            ItemBuilder.SetupItem(powBlock, shortDesc, longDesc, "ex");
            ItemBuilder.SetCooldownType(powBlock, ItemBuilder.CooldownType.Damage, 380f);
            powBlock.quality = ItemQuality.C;
            if (!ExpandSettings.EnableEXItems)
            {
                powBlock.quality = ItemQuality.EXCLUDED;
            }


            PowBlockPickupID = powBlock.PickupObjectId;
        }
        public static void Init(AssetBundle expandSharedAssets1)
        {
            TheLeadKeyObject = expandSharedAssets1.LoadAsset <GameObject>("The Lead Key");
            SpriteSerializer.AddSpriteToObject(TheLeadKeyObject, ExpandPrefabs.EXItemCollection, "theleadkey");

            TheLeadKey theleadkey = TheLeadKeyObject.AddComponent <TheLeadKey>();
            string     shortDesc  = "Ancient Dungeons Beyond Space";
            string     longDesc   = "Takes you to a space that only exists in dreams, spitting you back out into the real world somewhere... else.";

            ItemBuilder.SetupItem(theleadkey, shortDesc, longDesc, "ex");
            ItemBuilder.SetCooldownType(theleadkey, ItemBuilder.CooldownType.Damage, 450f);
            theleadkey.quality = ItemQuality.B;
            if (!ExpandSettings.EnableEXItems)
            {
                theleadkey.quality = ItemQuality.EXCLUDED;
            }

            theleadkey.passiveStatModifiers = new StatModifier[] {
                new StatModifier()
                {
                    statToBoost   = PlayerStats.StatType.Curse,
                    amount        = 1,
                    modifyType    = StatModifier.ModifyMethod.ADDITIVE,
                    isMeatBunBuff = false
                }
            };

            TheLeadKeyPickupID = theleadkey.PickupObjectId;
        }
        public static void Init(AssetBundle expandSharedAssets1)
        {
            MimiclayObject = expandSharedAssets1.LoadAsset <GameObject>("Mimiclay");
            ItemBuilder.AddSpriteToObject(MimiclayObject, expandSharedAssets1.LoadAsset <Texture2D>("ex_mimiclay"), false, false);

            Mimiclay mimiClay = MimiclayObject.AddComponent <Mimiclay>();

            string shortDesc = "The Highest Form Of Flattery";
            string longDesc  = "Becomes a copy of any item.\n\nMalleable material that formed the mysterious Doppelgunner. After its defeat, it seems oddly content with applying its ability in service of Gungeoneers.";

            ItemBuilder.SetupItem(mimiClay, shortDesc, longDesc, "ex");
            ItemBuilder.SetCooldownType(mimiClay, ItemBuilder.CooldownType.Timed, 1);

            mimiClay.consumable = true;
            mimiClay.quality    = ItemQuality.SPECIAL;

            MimiclayPickupID = mimiClay.PickupObjectId;
        }
Beispiel #4
0
        public static void Init(AssetBundle expandSharedAssets1)
        {
            PowBlockObject = expandSharedAssets1.LoadAsset <GameObject>("Pow Block");
            ItemBuilder.AddSpriteToObject(PowBlockObject, expandSharedAssets1.LoadAsset <Texture2D>("PowBlock"), false, false);
            SpriteBuilder.AddSpriteToCollection(expandSharedAssets1.LoadAsset <Texture2D>("PowBlock_Used"), PowBlockObject.GetComponent <tk2dSprite>().Collection);

            PowBlock powBlock  = PowBlockObject.AddComponent <PowBlock>();
            string   shortDesc = "Shaken not stirred...";
            string   longDesc  = "A special block that when stomped on causes a violent shaking.\n\nEnemies shall lose their footing.";

            ItemBuilder.SetupItem(powBlock, shortDesc, longDesc, "ex");
            ItemBuilder.SetCooldownType(powBlock, ItemBuilder.CooldownType.Damage, 380f);
            powBlock.quality = ItemQuality.C;



            PowBlockPickupID = powBlock.PickupObjectId;
        }
        public static void Init(AssetBundle expandSharedAssets1)
        {
            RockslideObject = expandSharedAssets1.LoadAsset <GameObject>("Rock Slide");
            ItemBuilder.AddSpriteToObject(RockslideObject, expandSharedAssets1.LoadAsset <Texture2D>("rockslide"), false, false);

            RockSlide rockslide = RockslideObject.AddComponent <RockSlide>();
            string    shortDesc = "Crushing Defeat";
            string    longDesc  = "Falling rocks are a well known threat to everyone, especially within the Gungeon.\n\nIt does not help that a long gone Gungeoneer accidentally popularized the idea of using falling debris as a weapon among the Gundead.\n\nHowever, they quickly grew tired of it, seeming too easy or effortless to eliminate Gungeoneers compared to the exhilarating experience of the combat they were forged for.";

            ItemBuilder.SetupItem(rockslide, shortDesc, longDesc, "ex");
            ItemBuilder.SetCooldownType(rockslide, ItemBuilder.CooldownType.Damage, 275f);
            rockslide.quality = ItemQuality.B;

            List <string> spritePaths = new List <string>()
            {
                "plunger_fire_001",
                "plunger_fire_002",
                "plunger_fire_003",
                "plunger_fire_004",
                "plunger_fire_005",
                "plunger_fire_006"
            };

            tk2dSprite rockslidesprite = RockslideObject.GetComponent <tk2dSprite>();

            foreach (string sprite in spritePaths)
            {
                SpriteBuilder.AddSpriteToCollection(expandSharedAssets1.LoadAsset <Texture2D>(sprite), rockslidesprite.Collection);
            }

            ExpandUtility.GenerateSpriteAnimator(RockslideObject);

            tk2dSpriteAnimator rockslideAnimator = RockslideObject.GetComponent <tk2dSpriteAnimator>();

            ExpandUtility.AddAnimation(rockslideAnimator, rockslidesprite.Collection, spritePaths, "Activate", frameRate: 8);

            RockSlidePickupID = rockslide.PickupObjectId;
        }
        public static void Init(AssetBundle expandSharedAssets1)
        {
            hammerItemObject = expandSharedAssets1.LoadAsset <GameObject>("Baby Good Hammer");
            BabyGoodHammer babyGoodHammer = hammerItemObject.AddComponent <BabyGoodHammer>();

            SpriteSerializer.AddSpriteToObject(hammerItemObject, ExpandPrefabs.EXItemCollection, "babygoodhammer");

            string shortDesc = "It's Hammer Time!";
            string longDesc  = "Summons a Dead Blow Hammer.\n\nIt's cry sounds a lot like a whistle.\n\nThe closer you are to the Forge, the more powerful the hammers will be.";

            // ItemBuilder.SetupItem(babyGoodHammer, shortDesc, longDesc, "ex");
            ItemBuilder.SetupItem(babyGoodHammer, shortDesc, longDesc, "ex");
            ItemBuilder.SetCooldownType(babyGoodHammer, ItemBuilder.CooldownType.Damage, 350f);
            babyGoodHammer.quality = ItemQuality.B;
            if (!ExpandSettings.EnableEXItems)
            {
                babyGoodHammer.quality = ItemQuality.EXCLUDED;
            }

            // Hammer Spawn FX Object
            hammerSpawnFX = expandSharedAssets1.LoadAsset <GameObject>("HammerSpawningFX");
            tk2dSprite hammerSpawnFXSprite = SpriteSerializer.AddSpriteToObject(hammerSpawnFX, ExpandPrefabs.EXItemCollection, "babygoodhammer_spawn_00");

            List <string> spritePaths = new List <string>()
            {
                "babygoodhammer_spawn_00",
                "babygoodhammer_spawn_00",
                "babygoodhammer_spawn_01",
                "babygoodhammer_spawn_01",
                "babygoodhammer_spawn_01",
                "babygoodhammer_spawn_01",
                "babygoodhammer_spawn_02",
                "babygoodhammer_spawn_03",
                "babygoodhammer_spawn_04",
                "babygoodhammer_spawn_05",
                "babygoodhammer_spawn_06",
                "babygoodhammer_spawn_07",
                "babygoodhammer_spawn_08",
                "babygoodhammer_spawn_09",
                "babygoodhammer_spawn_10",
                "babygoodhammer_spawn_11",
                "babygoodhammer_spawn_12",
                "babygoodhammer_spawn_13",
                "babygoodhammer_spawn_14",
                "babygoodhammer_spawn_15",
                "babygoodhammer_spawn_16",
                "babygoodhammer_spawn_17",
                "babygoodhammer_spawn_18",
                "babygoodhammer_spawn_19",
                "babygoodhammer_spawn_20",
                "babygoodhammer_spawn_21",
                "babygoodhammer_spawn_22",
                "babygoodhammer_spawn_23",
                "babygoodhammer_spawn_24",
                "babygoodhammer_spawn_25"
            };

            /*foreach (string spriteName in spritePaths) {
             *  if (spriteName != "babygoodhammer_spawn_00") {
             *      SpriteBuilder.AddSpriteToCollection(expandSharedAssets1.LoadAsset<Texture2D>(spriteName), hammerSpawnFXSprite.Collection);
             *  }
             * }*/

            ExpandUtility.GenerateSpriteAnimator(hammerSpawnFX);
            tk2dSpriteAnimator hammerAnimator = hammerSpawnFX.GetComponent <tk2dSpriteAnimator>();

            List <string> spritePaths_reversed = new List <string>()
            {
                "babygoodhammer_spawn_25",
                "babygoodhammer_spawn_24",
                "babygoodhammer_spawn_23",
                "babygoodhammer_spawn_22",
                "babygoodhammer_spawn_21",
                "babygoodhammer_spawn_20",
                "babygoodhammer_spawn_19",
                "babygoodhammer_spawn_18",
                "babygoodhammer_spawn_17",
                "babygoodhammer_spawn_16",
                "babygoodhammer_spawn_15",
                "babygoodhammer_spawn_14",
                "babygoodhammer_spawn_13",
                "babygoodhammer_spawn_12",
                "babygoodhammer_spawn_11",
                "babygoodhammer_spawn_10",
                "babygoodhammer_spawn_09",
                "babygoodhammer_spawn_08",
                "babygoodhammer_spawn_07",
                "babygoodhammer_spawn_06",
                "babygoodhammer_spawn_05",
                "babygoodhammer_spawn_04",
                "babygoodhammer_spawn_03",
                "babygoodhammer_spawn_02",
                "babygoodhammer_spawn_01",
                "babygoodhammer_spawn_01",
                "babygoodhammer_spawn_01",
                "babygoodhammer_spawn_01",
                "babygoodhammer_spawn_00"
            };


            ExpandUtility.AddAnimation(hammerAnimator, ExpandPrefabs.EXItemCollection.GetComponent <tk2dSpriteCollectionData>(), spritePaths, "HammerSpawn", tk2dSpriteAnimationClip.WrapMode.Once);
            ExpandUtility.AddAnimation(hammerAnimator, ExpandPrefabs.EXItemCollection.GetComponent <tk2dSpriteCollectionData>(), spritePaths_reversed, "HammerReturnSpawn", tk2dSpriteAnimationClip.WrapMode.Once);

            HammerPickupID = babyGoodHammer.PickupObjectId;
        }