class Garment::Pants

  # Styles:
  #   leggings (tight fitting)
  #     cotton, wool, leather
  #
  #   harem (loose and voluminous)
  #     cotton, wool
  #
  #   chaps (only covers the legs)
  #     leather, studded-leather
  #
  # There are no options for pants at the moment. Pants are kind of boring
  # really, it's what's in them what counts.
  #
  def self.forge! data = {}
    garment = Garment.new data.merge(code:"pants", slot:"lower")

    if garment.style == "leggings"
      garment.name = "#{garment.material_title} Leggings"
      garment.flavor = "Tight fitting leggings of #{garment.color_and_material_phrase}."
      garment.base_price = 30
    end

    if garment.style == "harem"
      garment.name = "#{garment.material_title} Harem Pants"
      garment.flavor = "Loose fitting voluminous pants of #{garment.color_and_material_phrase}."
      garment.base_price = 35
    end

    if garment.style == "chaps"
      garment.name = "#{garment.material_title} Chaps"
      garment.flavor = "Chaps fashioned from #{garment.color_and_material_phrase}, made in the traditional manner "+
        "which leaves the ass and crotch completely exposed."
      garment.base_price = 50
    end

    garment.save!
    garment
  end

end
