diff --git a/eve_glue/location_type.py b/eve_glue/location_type.py index f411ed4..9335be7 100644 --- a/eve_glue/location_type.py +++ b/eve_glue/location_type.py @@ -1,11 +1,14 @@ """Helpers for resolving the location type by ID.""" -def resolve_location_type_enum(location_type_id): - """Resolve the location type ID to name.""" +def resolve_location_type_enum(location_id): + """Resolve the location item ID to its type name.""" - if 30000000 <= location_type_id <= 39999999: + if 30000000 <= location_id <= 39999999: return "solar_system" - if 60000000 <= location_type_id < 64000000: + if 60000000 <= location_id < 64000000: return "station" + if location_id >= 100000000: + return "item" + return "other"