mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Changes as per comments on the PR
This commit is contained in:
@@ -312,7 +312,7 @@ export default class AvailableModulesMenu extends TranslatedComponent {
|
|||||||
let itemsOnThisRow = 0;
|
let itemsOnThisRow = 0;
|
||||||
for (let i = 0; i < sortedModules.length; i++) {
|
for (let i = 0; i < sortedModules.length; i++) {
|
||||||
let m = sortedModules[i];
|
let m = sortedModules[i];
|
||||||
if (ModuleUtils.isMissingModule(m.info)) {
|
if (m.grp == 'mh' || m.grp == 'mm') {
|
||||||
// If this is a missing module, skip it
|
// If this is a missing module, skip it
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export default class StandardSlot extends TranslatedComponent {
|
|||||||
this._modificationsSelected = false;
|
this._modificationsSelected = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If this is a missing module, therefore has the 'info' field, set the warning value on the module to be true when loaded.
|
||||||
if (m.info) {
|
if (m.info) {
|
||||||
warning = () => true;
|
warning = () => true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -322,15 +322,6 @@ export function isShieldGenerator(g) {
|
|||||||
return g == 'sg' || g == 'psg' || g == 'bsg';
|
return g == 'sg' || g == 'psg' || g == 'bsg';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Determine if a module group is a missing module
|
|
||||||
* @param {String} info Module Group name
|
|
||||||
* @return {Boolean} True if the group is a missing module
|
|
||||||
*/
|
|
||||||
export function isMissingModule(info) {
|
|
||||||
return info == 'Not in Coriolis yet. Check GitHub issues. Add Issue if needed.';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new ModuleSet that contains all available modules
|
* Creates a new ModuleSet that contains all available modules
|
||||||
* that the specified ship is eligible to use.
|
* that the specified ship is eligible to use.
|
||||||
|
|||||||
Reference in New Issue
Block a user