mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Fixed autodeploy to do latest coriolis-data dist. Fixed sendToEDOMH function to only send the blueprint at the selected grade, not each grade up to that grade.
This commit is contained in:
@@ -173,11 +173,12 @@ export default class ModalShoppingList extends TranslatedComponent {
|
||||
"blueprint": module.m.blueprint.special.edname
|
||||
});
|
||||
}
|
||||
for (const g in module.m.blueprint.grades) {
|
||||
for (let g in module.m.blueprint.grades) {
|
||||
if (!module.m.blueprint.grades.hasOwnProperty(g)) {
|
||||
continue;
|
||||
}
|
||||
if (g < module.m.blueprint.grade) {
|
||||
// We only want the grade that the module is currently at, not every grade up to that point
|
||||
if (Number(g) !== module.m.blueprint.grade) {
|
||||
continue;
|
||||
}
|
||||
let item = "";
|
||||
@@ -200,11 +201,11 @@ export default class ModalShoppingList extends TranslatedComponent {
|
||||
item = ship.id + "_Armour_Reactive";
|
||||
break;
|
||||
}
|
||||
console.log(item);
|
||||
}
|
||||
else {
|
||||
item = module.m.symbol;
|
||||
}
|
||||
console.log(module.m)
|
||||
|
||||
blueprints.push({
|
||||
"item": item,
|
||||
|
||||
Reference in New Issue
Block a user