comparisonUtil.py (504B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\comparison\comparisonUtil.py 2 import evetypes 3 from inventorycommon.const import compareCategories 4 5 def is_comparable(type_id): 6 if evetypes.IsDynamicType(type_id): 7 return False 8 if not sm.GetService('info').GetAttributeDictForType(type_id): 9 return False 10 category_id = evetypes.GetCategoryID(type_id) 11 if category_id not in compareCategories: 12 return False 13 return True