コード例 #1
0
        public static void Init()
        {
            string        itemName      = "Table Tech Bomb";
            string        resourceName  = "BunnyMod/Resources/tabletechbomb.png";
            GameObject    obj           = new GameObject(itemName);
            TableTechBomb minigunrounds = obj.AddComponent <TableTechBomb>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Reactive Flips";
            string longDesc  = "This ancient technique allows the user to create bombs by flipping tables.\n\n Chapter 8-1 of the Table Sutra. Those who imbue reaction into their flips shall project it onto the flipped.";

            minigunrounds.SetupItem(shortDesc, longDesc, "bny");
            minigunrounds.AddToSubShop(ItemBuilder.ShopType.Trorc, 1f);
            minigunrounds.quality = PickupObject.ItemQuality.C;
            List <string> mandatoryConsoleIDs14 = new List <string>
            {
                "bny:table_tech_bomb"
            };
            List <string> optionalConsoleIDs = new List <string>
            {
                "air_strike",
                "proximity_mine",
                "big_boy",
                "portable_turret",
                "blast_helmet",
                "hegemony_carbine",
                "hegemony_rifle",
                "rc_rocket"
            };

            CustomSynergies.Add("Hidden Tech Landmine", mandatoryConsoleIDs14, optionalConsoleIDs, true);
        }