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:
Alex Williams
2024-06-02 11:02:52 +01:00
parent 2a6ae0f2ff
commit d1217439bd
2 changed files with 5 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ jobs:
git clone https://github.com/alex-williams/coriolis-data.git --single-branch --branch alpha
cd coriolis-data
npm install
npm start
cd ../coriolis
npm install
npm run build

View File

@@ -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,