From 7ccfa09ddd223bba12304f854f462a807ac55c1c Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Sun, 2 Jun 2024 11:38:06 +0100 Subject: [PATCH] Issue 703 edomh integration (#9) * Adds valid module checking to all types of modules on import * Adds the Advanced MC's, AX MC's, AX MR's and Nanite Torpedo * Changes as per comments on the PR * Modified export to EDOMH/EDEngineer page to be less 'bodged', allow EDOMH button to be clickable without checking for EDEngineer API (If they have EDOMH, they probably don't have EDEngineer...) and added a workaround for Coriolis sending bogus data for bulkheads. * 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. * Fixed miscalculation of mats and got rid of unhelpful 'rolls' table, as the mats are calculated for the whole build and some blueprints may not be all the way up to g5. --------- Co-authored-by: David Sangrey Co-authored-by: Felix Linker --- src/app/components/ModalShoppingList.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/ModalShoppingList.jsx b/src/app/components/ModalShoppingList.jsx index 79a32c0e..14716278 100644 --- a/src/app/components/ModalShoppingList.jsx +++ b/src/app/components/ModalShoppingList.jsx @@ -264,11 +264,13 @@ export default class ModalShoppingList extends TranslatedComponent { if (!module.m.blueprint.grades[g].components.hasOwnProperty(i)) { continue; } + console.log("Grade: " + g + " Component: " + i + " Amount: " + module.m.blueprint.grades[g].components[i] + " Rolls: " + this.state.matsPerGrade[g]) if (mats[i]) { mats[i] += module.m.blueprint.grades[g].components[i] * this.state.matsPerGrade[g]; } else { mats[i] = module.m.blueprint.grades[g].components[i] * this.state.matsPerGrade[g]; } + console.log(mats[i]) } } if (module.m.blueprint.special) {