stfc2 team mailing list archive
-
stfc2 team
-
Mailing list archive
-
Message #00087
[Branch ~cristiano-delogu/+junk/stfc2] Rev 485: Aggiunta la visualizzazione del report relativo alla ricognizione su un pianeta indipendente.
------------------------------------------------------------
revno: 485
committer: Cristiano Delogu <cristiano@linux-ixc1>
branch nick: stfc2
timestamp: Fri 2011-02-25 19:01:36 +0100
message:
Aggiunta la visualizzazione del report relativo alla ricognizione su un pianeta indipendente.
modified:
game/include/libs/logbook_tactical.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/logbook_tactical.php'
--- game/include/libs/logbook_tactical.php 2010-06-20 20:43:58 +0000
+++ game/include/libs/logbook_tactical.php 2011-02-25 18:01:36 +0000
@@ -510,12 +510,37 @@
<td width="65" valign="top"><b>'.constant($game->sprache("TEXT34")).' </b></td>
<td width="385">
');
-
- switch($log['log_data'][8]) {
- case -1: $game->out(constant($game->sprache("TEXT155"))); break;
- case -2: $game->out(constant($game->sprache("TEXT157"))); break;
- case 1: $game->out(constant($game->sprache("TEXT156"))); break;
- default: $game->out('Illegal status code - report this as a bug'); break;
+
+ $t_a_data = $log['log_data'][8];
+ switch($t_a_data['mission_type']) {
+ case 0:
+ switch($t_a_data['mission_result']) {
+ case -1: $game->out(constant($game->sprache("TEXT155"))); break;
+ case -2: $game->out(constant($game->sprache("TEXT157"))); break;
+ case 1: $game->out(constant($game->sprache("TEXT156"))); break;
+ default: $game->out('Illegal status code - report this as a bug'); break;
+ }
+ break;
+ case 1:
+ $game->out('Lo stato delle nostre relazioni: '.$t_a_data['user_mood']['value']);
+ if(isset($t_a_data['user_mood']['alliance']) || isset($t_a_data['user_mood']['race']) ) {
+// $game->out('<UL>');
+ if(!empty($t_a_data['user_mood']['alliance'])) $game->out('<br>.... benefici da azioni diplomatiche alleate: '.$t_a_data['user_mood']['alliance'].'.');
+ if(!empty($t_a_data['user_mood']['race'])) $game->out('<br>.... benefici da altri membri della nostra razza: '.$t_a_data['user_mood']['race'].'.');
+// $game->out('</UL>');
+ }
+
+ $game->out('<br><br>');
+
+ if(isset($t_a_data['toptenlist'][0])) {
+ $game->out('Dalle nostre osservazioni, sono emersi i seguenti risultati:<br><br>');
+ foreach($t_a_data['toptenlist'] as $other_user) {
+ $game->out('<b>'.$other_user['user_name'].'</b> ');
+ $game->out(' ha un indice di gradimento di '.$other_user['mood_value'].'.<br>');
+ }
+ }
+ break;
+
}
$game->out('