Ejemplo n.º 1
0
         // print message
         $force_msg[] = "<span style=\"color:yellow;\">{$number_hitting}</span> combat drones drones launch at <span style=\"color:yellow;\">{$curr_attacker->player_name}</span> destroying <span style=\"color:red;\">{$damage}</span> armor.";
     }
 }
 // update ship
 $curr_attacker_ship->update_hardware();
 // is he dead now?
 if ($curr_attacker_ship->hardware[HARDWARE_SHIELDS] == 0 && $curr_attacker_ship->hardware[HARDWARE_ARMOR] == 0) {
     $curr_attacker->mark_dead();
 }
 // is he dead?
 if ($curr_attacker->dead == "TRUE") {
     // print message
     $force_msg[] = "<span style=\"color:yellow;\">{$curr_attacker->player_name}</span> is <span style=\"color:red;\">DESTROYED!</span>";
     // run through dead methods for player and ship
     $curr_attacker->died_by_forces($forces->owner_id);
     $curr_attacker_ship->get_pod();
     // if we are the guy who's dead
     if ($curr_attacker->account_id == $player->account_id) {
         // we don't want to get a pod screen
         $curr_attacker->dead = "FALSE";
         // and there shouldn't be a cont' button
         $container["continue"] = "no";
     }
     // make it permanent
     $curr_attacker->update();
 }
 if ($forces->mines < 1 && $forces->combat_drones < 1 && $forces->scout_drones < 1) {
     $attacker_msg[] = "Forces are <span style=\"color:red;\">DESTROYED!</span>";
     $container["continue"] = "no";
 }