It is currently Thu Apr 18, 2024 11:57 pm


The forum is READ ONLY. Please direct any future discussions to our Facebook page


 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Scan problem
PostPosted: Sat May 12, 2007 5:04 pm 
Forum Roamer
Forum Roamer
User avatar

Joined: Fri Mar 16, 2007 9:58 am
Posts: 62
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;


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron