internal static void AddItemCollection(ItemCollectionDelegate item) { int type = item(out float level, out Version version, out DateTime date); if (CheckMask(type) && CheckMark(ref level, ref version, ref date)) { ItemCollection.Add(type, ZFunctions.ZItemInfoSetDefaults(type, level, version, date)); } }
public override void SetupStartInventory(IList <Item> items, bool mediumcoreDeath) { if (!mediumcoreDeath) { items.Add(ZFunctions.ItemSetDefaults(ModContent.ItemType <FuruiYohishi>())); } else { items.Add(ZFunctions.ItemSetDefaults(ModContent.ItemType <ChisanaMemo>())); } }
public void SetDefaultByType(bool noMatCheck = false) { Item typeItem = ZFunctions.ItemSetDefaults(Type, noMatCheck); Crit = typeItem.crit; Class = ZFunctions.ToZItemClass(typeItem); Scale = typeItem.scale; Width = typeItem.width; Damage = typeItem.damage; Expert = typeItem.expert || typeItem.expertOnly; Height = typeItem.height; UseTime = Math.Max(typeItem.useTime, typeItem.useAnimation); MaxStack = typeItem.maxStack; KnockBack = typeItem.knockBack; CanEquipped = typeItem.accessory || typeItem.vanity; }