 handleSlot = (slots) ->
   slotId = []
   slotLv = []
+  slotAlv = []
   for i in [1..4]
     slot = 'i' + i.toString()
     if slots.hasOwnProperty(slot)

        slotLv.push slots[slot].rf
      else
        slotLv.push null
  if slots.ix?.id?
    slotId.push slots.ix.id
    slotLv.push null

  ids: slotId
  lvs: slotLv

handleShip = (ship) ->
  shipDetail = Object.clone emptyShip

  slots = handleSlot ship.items
  shipDetail[2] = slots.ids
  shipDetail[3] = slots.lvs
  shipDetail[4] = slots.alvs

  shipDetail

