Inheritance: Terraria.ModLoader.ModItem
Example #1
0
 public override void SetupStartInventory(IList <Item> items)
 {
     if (AprilFools.CheckAprilFools())
     {
         Item item = new Item();
         item.SetDefaults(mod.ItemType("AprilFools"));
         items.Add(item);
     }
 }
Example #2
0
        public override IEnumerable <Item> AddStartingItems(bool mediumCoreDeath)
        {
            if (AprilFools.CheckAprilFools())
            {
                return(new List <Item> {
                    new Item(ModContent.ItemType <AprilFools>())
                });
            }

            return(Enumerable.Empty <Item>());
        }