Inheritance: Terraria.ModLoader.ModItem
Exemple #1
0
 public override void SetupStartInventory(IList <Item> items)
 {
     if (AprilFools.CheckAprilFools())
     {
         Item item = new Item();
         item.SetDefaults(mod.ItemType("AprilFools"));
         items.Add(item);
     }
 }
Exemple #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>());
        }