When I scan other ship, there is missing text "Energy" and how many energy ship have.
Problem is maybe in scan.php, because code is {From line 300}
$template_object->assign("l_total_cargo", $l_total_cargo);
$template_object->assign("holds_used", NUMBER($holds_used));
$template_object->assign("holds_max", NUMBER($holds_max));
$template_object->assign("energy_max", NUMBER($energy_max));
$template_object->assign("l_fighters", $l_fighters);
$template_object->assign("shipinfo_fighters", NUMBER($sc_ship_fighters));
$template_object->assign("ship_fighters_max", NUMBER($ship_fighters_max));
And also in scan error energy is missing.
Is missing code something like this?
$template_object->assign("l_energy", $l_energy); $template_object->assign("shipinfo_energy", NUMBER($sc_ship_energy));
and
$sc_error = SCAN_ERROR($shipinfo['sensors'], $targetshipinfo['cloak']); $sc_ship_energy = (mt_rand(1, 100) < $success) ? round($targetshipinfo['energy'] * $sc_error / 100) : 0;
|