Пример #1
0
        public override void OnCustomContentLoad()
        {
            Console.WriteLine("Trying to load custom content....");

            alex = ModItem.AddItem("Alex", "Knows the game", "roomba", 420, this);
            alex.AddItemCategories(ItemCategories.Misc);

            GordonFreeman = ModItem.AddItem("The Freeman's Shield", "*Insert relevant and funny description*", "WoodenShield", 420, this);
            GordonFreeman.AddItemCategories(ItemCategories.Shield);
            GordonFreeman.AddEquipmentInfo("Wooden");
            GordonFreeman.EquipInfo.SetStats(ShldHP: 1337);

            InstaRepair = ModItem.AddItem("Critical Blindfold", "True strength reveals itself when all oods are stacked against you.", "Flybold", 420, this);
            InstaRepair.AddItemCategories(ItemCategories.Facegear);
            InstaRepair.AddFacegearInfo("Flybold");
            InstaRepair.FacegearInfo.SetRenderOffsets(new Vector2(2f, -1f), new Vector2(5f, -3f), new Vector2(3f, -5f), new Vector2(2f, -1f));
            InstaRepair.FacegearInfo.SetStats(CritDMG: 80, Crit: 80, EPRegen: -65, DEF: -20, ASPD: -10, CSPD: -20, EP: -20);

            Hattus = ModItem.AddItem("Hattus Maxxus", "Maxximus prottectus!", "Slimeus", 420, this);
            Hattus.AddItemCategories(ItemCategories.Hat);
            Hattus.AddHatInfo("Slimeus");
            Hattus.HatInfo.SetStats(DEF: 420, HP: 69);
            Hattus.HatInfo.SetObstructions(true, true, false);
            Hattus.HatInfo.SetRenderOffsets(new Vector2(4f, 7f), new Vector2(5f, 5f), new Vector2(5f, 5f), new Vector2(4f, 7f));

            Weapon = ModItem.AddItem("The Free Weapon 2.0", "When all you have is a bent metal rod, every problem looks like an alien crab.", "Claymore", 420, this);
            Weapon.AddItemCategories(ItemCategories.Weapon);
            Weapon.AddWeaponInfo("Claymore", (int)WeaponCategory.TwoHanded, false);
            Weapon.WeaponInfo.SetStats(ATK: 75, ASPD: -10, Crit: 10);
            Weapon.WeaponInfo.AddSpecialEffect((int)SpecialEffect._Unique_BladeOfEchoes_Cursed);

            WeaponOne = ModItem.AddItem("The Free Weapon", "When all you have is a bent metal rod, every problem looks like an alien crab.", "Crowbar", 420, this);
            WeaponOne.AddItemCategories(ItemCategories.Weapon);
            WeaponOne.AddWeaponInfo("IronSword", (int)WeaponCategory.OneHanded, false);
            WeaponOne.WeaponInfo.SetStats(ATK: 75, ASPD: -10, Crit: 10);
            WeaponOne.WeaponInfo.AddSpecialEffect((int)SpecialEffect._Unique_LightningGlove_StaticTouch);

            Console.WriteLine("Custom Content Loaded!");
        }