示例#1
0
 public DmItemClothing( DmItemTypeClothing iType )
     : base(iType)
 {
     itemName = iType;
       Type = iType;
       baseItemType = DmItemType.Clothing;
 }
示例#2
0
        /// <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;
        }