mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Do nothing if a module has no experimentals
This fixes materials not being shown for modules that can be engineered but not having experimental effects
This commit is contained in:
@@ -177,6 +177,7 @@ export default class ModalShoppingList extends TranslatedComponent {
|
|||||||
mats[i] = module.m.blueprint.grades[g].components[i] * this.state.matsPerGrade[g];
|
mats[i] = module.m.blueprint.grades[g].components[i] * this.state.matsPerGrade[g];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (module.m.blueprint.special) {
|
||||||
for (const j in module.m.blueprint.special.components) {
|
for (const j in module.m.blueprint.special.components) {
|
||||||
if (!module.m.blueprint.special.components.hasOwnProperty(j)) {
|
if (!module.m.blueprint.special.components.hasOwnProperty(j)) {
|
||||||
continue;
|
continue;
|
||||||
@@ -190,6 +191,7 @@ export default class ModalShoppingList extends TranslatedComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
let matsString = '';
|
let matsString = '';
|
||||||
for (const i in mats) {
|
for (const i in mats) {
|
||||||
if (!mats.hasOwnProperty(i)) {
|
if (!mats.hasOwnProperty(i)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user