print "Opening<br>"; } //$players contains all player info for the trigger and his alliance IS $players = getPlayerArray(); //$weapons contains info for weapons being used this battle $weapons = getWeapons(getHardware($players)); if (!sizeof($players[$player->account_id][WEAPONS])) { create_error("What are you going to do? Insult it to death?"); } $port = getPortArray(); //in case there are more than 10 players IS. $fleet contains account_ids of the attackers $fleet = getFleet($players, $weapons); if (DEBUG) { print "Pre news<br>"; } hofTracker($players, $port); // Take off the 3 turns for attacking $player->take_turns(3); $player->update(); // fire shots if (DEBUG) { print "Pre Shots<br>"; } portFires($fleet, $port, $players); fleetFires($fleet, $port, $players, $weapons); //get results in a way we want them $results = processResults($players, $port, $fleet, $weapons); //post on alliances MB or send to player portDowngrade($results, $port); sendReport($results, $port); //log player
print "Level is still set to " . $planet[PLANET_LEVEL] . "<br>"; } //$players contains all player info for the trigger and his alliance IS $players = getPlayerArray(); //$weapons contains info for weapons being used this battle $weapons = getWeapons(getHardware($players)); if (!sizeof($players[$player->account_id][WEAPONS])) { create_error("What are you going to do? Insult it to death?"); } //in case there are more than 10 players IS. $fleet contains account_ids of the attackers $fleet = getFleet($players, $weapons); if (DEBUG) { print "Pre news<br>"; } processNews($fleet, $planet); hofTracker($players, $planet); // Take off the 3 turns for attacking $player->take_turns(3); $player->update(); // fire shots if (DEBUG) { print "Pre Shots<br>"; } planetFires($fleet, $planet, $players); fleetFires($fleet, $planet, $players, $weapons); //get results in a way we want them $results = processResults($players, $planet, $fleet, $weapons); //post on alliances MB or send to player planetDowngrade($results, $planet); sendReport($results, $planet); //log player