public DmItemClothing( DmItemTypeClothing iType ) : base(iType) { itemName = iType; Type = iType; baseItemType = DmItemType.Clothing; }
/// <summary> /// Create a set of clothing of a specified type /// </summary> /// <returns></returns> public static DmItemClothing CreateClothing( DmItemTypeClothing cType ) { DmItemClothing item = null; // set item type item = new DmItemClothing( cType ); item.Quality = PickQuality(); if( item.Quality == DmItemQuality.Masterwork ) if( rand.Next( 100 ) > 50 ) item.Enchantment = PickEnchantmentClothing(); return item; }