Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
Removing p.getEquipmentSlotName since that belongs over in the base Items module.
(Movin' code over)
 
(Removing p.getEquipmentSlotName since that belongs over in the base Items module.)
Line 243: Line 243:
    
    
   return p._getCreationTable(item)
   return p._getCreationTable(item)
end
function p.getEquipmentSlotName(id)
  for slotName, i in Shared.skpairs(Constants.equipmentSlot) do
    if i == id then
      return slotName
    end
  end
  return 'Invalid'
end
end