Anonymous

Module:Constants: Difference between revisions

From Melvor Idle
Moved getEquipmentSlotName to here
(Typo fixing)
(Moved getEquipmentSlotName to here)
Line 177: Line 177:
   end
   end
   return nil
   return nil
end
function p.getEquipmentSlotName(id)
  for slotName, i in Shared.skpairs(ConstantData.equipmentSlot) do
    if i == id then
      return slotName
    end
  end
  return 'Invalid'
end
end