mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +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:
1
.github/workflows/autodeploy.yml
vendored
1
.github/workflows/autodeploy.yml
vendored
@@ -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
|
||||
|
||||
@@ -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