$silo[$x]['silo_link'] = $row0['silo_link'] ? $row0['silo_link'] : 0; //if ($x == 495) { echo '<pre>';print_r($silo[$x]);echo '</pre>';exit; } //reactor/harvester info $row = $posmgmt->GetConnectedReator($silo_connection); if ($row) { $structure_type = $row['structure_type']; $structure_material_id = $row['material_id']; $silo[$x]['structure_type'] = $row['structure_type']; $silo[$x]['structure_material_id'] = $row['material_id']; } //Reactor/Harvster Name/type $struct = $posmgmt->GetStaticModInfo($structure_type); if ($struct) { $silo[$x]['structure_name'] = $struct['name']; } $matinfo = $posmgmt->GetStaticMatInfo($structure_material_id); if ($matinfo) { $silo[$x]['structure_material_name'] = $matinfo['material_name']; } //Moon harvester Rate if ($structure_type == 16221 && $structure_material_id == $silo_material_id) { $rate = 100; } //Reactor Rates if ($structure_type == 16869 || $structure_type == 20175) { //Reaction info $reactioninfo = $posmgmt->GetStaticReactionInfo($structure_material_id); if ($reactioninfo) { //For Output Silo if ($silo_material_id == $reactioninfo['material_id']) { $rate = $reactioninfo['material_produced'];
$silo[$x]['connection_id'] = $row0['connection_id']; $silo[$x]['silo_link'] = $row0['silo_link'] ? $row0['silo_link'] : 0; //reactor/harvester info $row = $posmgmt->GetConnectedReator($silo_connection); if ($row) { $structure_type = $row['structure_type']; $structure_material_id = $row['material_id']; $silo[$x]['structure_type'] = $row['structure_type']; $silo[$x]['structure_material_id'] = $row['material_id']; } //Reactor/Harvster Name/type $struct = $posmgmt->GetStaticModInfo($structure_type); if ($struct) { $silo[$x]['structure_name'] = $struct['name']; } $matinfo = $posmgmt->GetStaticMatInfo($structure_material_id); if ($matinfo) { $silo[$x]['structure_material_name'] = $matinfo['material_name']; } //Moon harvester Rate if ($structure_type == 16221 && $structure_material_id == $silo_material_id) { $rate = 100; } //Reactor Rates if ($structure_type == 16869 || $structure_type == 20175) { //Reaction info $reactioninfo = $posmgmt->GetStaticReactionInfo($structure_material_id); if ($reactioninfo) { //For Output Silo if ($silo_material_id == $reactioninfo['material_id']) { $rate = $reactioninfo['material_produced'];