private void updateCost() { modifiedCost = coreModule.getModuleCost(); if (useAdapterCost) { modifiedCost += topModule.getModuleCost(); modifiedCost += bottomModule.getModuleCost(); modifiedCost += topDockModule.getModuleCost(); modifiedCost += bottomDockModule.getModuleCost(); } modifiedCost += solarModule.getCost(); }