libraries/HighThroughputHelper.rb
# Gather materials. label if they are empty containers, display if they are materials are equiptement, and take items that are represented in Aq
Gather materials. label if they are empty containers, display if they are materials are equiptement, and take items that are represented in Aq
Gather materials . label if they are empty containers display if they are materials are equiptement and take items that are represented in Aq
def gather_materials(empty_containers: [], transfer_required: false, new_materials: [], take_items: [])
    new_materials = new_materials.select {|m| !Protocol.materials_list.include? m}
    if !empty_containers.empty? || !new_materials.empty?
      show do
        title "Gather The Following Materials"
        separator
        note "Gather the following and bring them to your bench:"
        empty_containers.each {|c|
          ((c.is_a? Item) || (c.is_a? Collection)) ? (check "#{c.object_type.name} and label as <b>#{c.id}</b>") : (check "#{c}")
        }
        new_materials.each {|m| check "#{m}" }
      end 
    end
    take take_items, interactive: true unless take_items.length <= 0
    Protocol.materials_list.concat(new_materials).concat(empty_containers)
  end
def gather_materials ( empty_containers : [ ] , transfer_required : false , new_materials : [ ] , take_items : [ ] ) new_materials = new_materials . select { | m | ! Protocol . materials_list . include? m } if ! empty_containers . empty? || ! new_materials . empty? show do title "Gather The Following Materials" separator note "Gather the following and bring them to your bench:" empty_containers . each { | c | ( ( c . is_a? Item ) || ( c . is_a? Collection ) ) ? ( check "#{c.object_type.name} and label as <b>#{c.id}</b>" ) : ( check "#{c}" ) } new_materials . each { | m | check "#{m}" } end end take take_items , interactive : true unless take_items . length <= 0 Protocol . materials_list . concat ( new_materials ) . concat ( empty_containers ) end
Gather materials.
Gather materials .
empty_containers
transfer_required
new_materials
take_items