← Back to team overview

stfc2 team mailing list archive

[Branch ~cristiano-delogu/+junk/stfc2] Rev 481: ALFA: aggiunta funzione per il recupero dei droni Borg dopo la conquista di un pianeta Borg.

 

------------------------------------------------------------
revno: 481
committer: Kail <cristiano.delogu@xxxxxxxx>
branch nick: stfc2.kail
timestamp: Tue 2011-02-08 17:05:37 +0100
message:
  ALFA: aggiunta funzione per il recupero dei droni Borg dopo la conquista di un pianeta Borg.
modified:
  game/include/libs/moves.php


--
lp:~cristiano-delogu/+junk/stfc2
https://code.launchpad.net/~cristiano-delogu/+junk/stfc2

Your team STFC2 developers is subscribed to branch lp:~cristiano-delogu/+junk/stfc2.
To unsubscribe from this branch go to https://code.launchpad.net/~cristiano-delogu/+junk/stfc2/+edit-subscription
=== modified file 'game/include/libs/moves.php'
--- game/include/libs/moves.php	2011-01-26 11:17:26 +0000
+++ game/include/libs/moves.php	2011-02-08 16:05:37 +0000
@@ -261,11 +261,31 @@
     return true;
 }
 
+function check_borg_captives($user_id, $honor_bonus, $planet_id)
+{
+// Questa funzione verifica se su un pianeta conquistato ai Borg c'è un drone ancora attivo da usare come trojan per l'intranet Borg.
+	global $db;
+	
+	$base_chance = 33.0;
+	
+	$proc_chance = $base_chance + (86.0 * $honor_bonus)
+	
+	$test_roll = mt_rand(0, 1000);
+	
+	if((int)$proc_chance > $test_roll) {
+		//Abbiamo trovato un drone da utilizzare!!!
+		$sql = 'INSERT INTO borg_event
+	}	
+	
+	return true;
+}
+
+
+function meet_mission_req($ship_id, $unit_1, $unit_2, $unit_3, $unit_4, $unit_5, $unit_6)
+{
 // This function checks that on the ship are present the requested number of units in order to perform ground mission
 // 
 // missing: array, it shows which and how many units are missing the requirements
-function meet_mission_req($ship_id, $unit_1, $unit_2, $unit_3, $unit_4, $unit_5, $unit_6)
-{
     global $db;
 
     $sql = 'SELECT s.unit_1 - st.min_unit_1 AS unit_1,