示例#1
0
        public static void Init()
        {
            string        name         = "Plague Bullets";
            string        resourcePath = "katmod/Resources/V2MiscItems/plaguebullets";
            GameObject    gameObject   = new GameObject(name);
            PlagueBullets item         = gameObject.AddComponent <PlagueBullets>();

            ItemBuilder.AddSpriteToObject(name, resourcePath, gameObject);
            string shortDesc = "Green Death";
            string longDesc  = "Has a chance to shoot a bouncing plague bullet on fire.\n\nTheir cure is most efficient.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "psm");
            item.quality = PickupObject.ItemQuality.C;
            item.PlaceItemInAmmonomiconAfterItemById(640);
        }