/** * Returns material buy cost, without subprocesses. * * @param \iveeCore\IndustryModifier $buyContext for market context * * @return float * @throws \iveeCore\Exceptions\PriceDataTooOldException if $maxPriceDataAge is exceeded by any of the materials */ public function getMaterialBuyCost(IndustryModifier $buyContext) { if (!isset($this->materials)) { return 0; } return $this->materials->getMaterialBuyCost($buyContext); }