Minor modifications for Multi-limpet Controllers

This commit is contained in:
Sid
2021-12-23 09:54:10 +05:30
parent 873dfaa305
commit 85ddce14a5
2 changed files with 12 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ const GRPCAT = {
'cc': 'limpet controllers',
'fx': 'limpet controllers',
'hb': 'limpet controllers',
'mlc': 'limpet controllers',
'pc': 'limpet controllers',
'rpl': 'limpet controllers',
'pce': 'passenger cabins',
@@ -92,7 +93,7 @@ const CATEGORIES = {
'fi': ['fi'],
'fuel': ['ft', 'fs'],
'hangars': ['fh', 'pv'],
'limpet controllers': ['cc', 'fx', 'hb', 'pc', 'rpl'],
'limpet controllers': ['cc', 'fx', 'hb', 'pc', 'rpl', 'mlc'],
'passenger cabins': ['pce', 'pci', 'pcm', 'pcq'],
'rf': ['rf'],
'shields': ['sg', 'bsg', 'psg', 'scb'],
@@ -516,6 +517,15 @@ export default class AvailableModulesMenu extends TranslatedComponent {
return 1;
}
}
// Sort multi limpet controllers by name
if (a.grp === 'mlc') {
if (a.name[0] <= b.name[0]) {
return -1;
}
if (a.name[0] > b.name[0]) {
return 1;
}
}
// Rating ordered from highest (A) to lowest (E)
if (a.rating < b.rating) {
return -1;

View File

@@ -110,6 +110,7 @@
"mc": "Multi-cannon",
"axmc": "AX Multi-cannon",
"ml": "Mining Laser",
"mlc": "Multi Limpet Controller",
"mr": "Missile Rack",
"axmr": "AX Missile Rack",
"mrp": "Module Reinforcement Package",