Exemplo n.º 1
0
        public static void Init()
        {
            string        name         = "Enchanted Book";
            string        resourcePath = "katmod/Resources/V2MiscItems/enchantedbook.png";
            GameObject    gameObject   = new GameObject(name);
            EnchantedTome item         = gameObject.AddComponent <EnchantedTome>();

            ItemBuilder.AddSpriteToObject(name, resourcePath, gameObject);
            string shortDesc = "RNG Prayer";
            string longDesc  = "Gives you three random permanent buffs on use.\n\nA copy of Gunjuration 101 which, surpisingly, doesn't try to kill you.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "psm");
            item.quality = PickupObject.ItemQuality.A;
            ItemBuilder.SetCooldownType(item, ItemBuilder.CooldownType.None, 3f);
            item.consumable = true;
            item.SetupUnlockOnFlag(GungeonFlags.BOSSKILLED_HIGH_PRIEST, true);
            Prismatism.Unlocks.Add(item.PickupObjectId, "Kill the high priest");
            item.PlaceItemInAmmonomiconAfterItemById(487);
        }