Ejemplo n.º 1
0
        // Token: 0x060004F1 RID: 1265 RVA: 0x0002A4DC File Offset: 0x000286DC
        public static void Init()
        {
            string     name         = "Spare Shell";
            string     resourcePath = "CakeMod/Resources/SpareShell";
            GameObject gameObject   = new GameObject(name);
            SpareShell item         = gameObject.AddComponent <SpareShell>();

            ItemBuilder.AddSpriteToObject(name, resourcePath, gameObject);
            string shortDesc = "Shell A Ton";
            string longDesc  = "A shell of a rare species of Gundead, the Turtle Kin. It is quite hardy.";

            item.SetupItem(shortDesc, longDesc, "cak");
            item.SetCooldownType(ItemBuilder.CooldownType.Damage, 600f);
            item.consumable   = false;
            item.quality      = PickupObject.ItemQuality.D;
            CakeIDs.TurtItem1 = item.PickupObjectId;
        }