From 801969dc071a3bd5279eec872bc74dae6da4181b Mon Sep 17 00:00:00 2001 From: Sid Pranjale Date: Sun, 9 Oct 2022 14:46:00 +0530 Subject: [PATCH] Add mats for experimental effects to mat list --- src/app/components/ModalShoppingList.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/app/components/ModalShoppingList.jsx b/src/app/components/ModalShoppingList.jsx index ee28d9d1..edf08d5c 100644 --- a/src/app/components/ModalShoppingList.jsx +++ b/src/app/components/ModalShoppingList.jsx @@ -177,6 +177,16 @@ export default class ModalShoppingList extends TranslatedComponent { mats[i] = module.m.blueprint.grades[g].components[i] * this.state.matsPerGrade[g]; } } + for (const j in module.m.blueprint.special.components) { + if (!module.m.blueprint.special.components.hasOwnProperty(j)) { + continue; + } + if (mats[j]) { + mats[j] += module.m.blueprint.special.components[j]; + } else { + mats[j] = module.m.blueprint.special.components[j]; + } + } } } }