コード例 #1
0
        public static void Init()
        {
            string     itemName     = "S'more";
            string     resourceName = "katmod/Resources/V3MiscItems/shmore";
            GameObject obj          = new GameObject();
            Smore      item         = obj.AddComponent <Smore>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Campfire";
            string longDesc  = "Does more damage to flaming enemies.\n\nA piece of marshmallow, slapped between two biscuits. Naturally attracted to fire.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "psm");
            item.quality = ItemQuality.D;
            item.PlaceItemInAmmonomiconAfterItemById(253);
        }