Exemplo n.º 1
0
        public static void Init()
        {
            string itemName = "Bullet Relic";

            string      resourceName = "BunnyMod/Resources/bulletrelic";
            GameObject  obj          = new GameObject(itemName);
            BulletRelic bulletRelic  = obj.AddComponent <BulletRelic>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Grave robbery";
            string longDesc  = "An unusual relic from a lead-line of famous gundead from a past forgotten.\n\n" +
                               "Despite them all being long-gone, they'll protect it as any cost, for whatever reason. You can't even use this thing as ammo!";

            bulletRelic.SetupItem(shortDesc, longDesc, "bny");
            bulletRelic.AddPassiveStatModifier(PlayerStats.StatType.Damage, .1f, StatModifier.ModifyMethod.ADDITIVE);
            bulletRelic.AddPassiveStatModifier(PlayerStats.StatType.Curse, .5f, StatModifier.ModifyMethod.ADDITIVE);
            bulletRelic.AddToSubShop(ItemBuilder.ShopType.Cursula, 1f);
            bulletRelic.quality = PickupObject.ItemQuality.D;
        }