Example #1
0
    if ($r_tbeam >= 2) {
        Production_entry("Tractor beam studies", "Enable production of the cobra.", $r_tbeam - 1, "Researching...", "5000 metal,5000c");
    }
    if ($r_tbeam == 1) {
        Production_entry("Tractor beam studies", "Enable production of the cobra.", "120", "Done", "5000m,5000c");
    }
}
if ($myrow["r_tbeam"] == 1) {
    if ($r_uscan == 0) {
        Production_entry("Unit scan studies", "Enable unit scans.", "180", "<a href=\"research.php?research=uscan\">Research</a>", "10000m,10000c");
    }
    if ($r_uscan >= 2) {
        Production_entry("Unit scan studies", "Enable unit scans.", $r_uscan - 1, "Researching...", "10000 metal,10000c");
    }
    if ($r_uscan == 1) {
        Production_entry("Unit scan studies", "Enable unit scans.", "180", "Done", "10000m,10000c");
    }
}
if ($myrow["r_uscan"] == 1) {
    if ($r_odg == 0) {
        Production_entry("ODG studies", "Enable Orbital Defense Grid.", "180", "<a href=\"research.php?research=odg\">Research</a>", "10000m,10000c");
    }
    if ($r_odg >= 2) {
        Production_entry("ODG studies", "Enable Orbital Defense Grid.", $r_odg - 1, "Researching...", "10000 metal,10000c");
    }
    if ($r_odg == 1) {
        Production_entry("ODG studies", "Enable Orbital Defense Grid.", "180", "Done", "10000m,10000c");
    }
}
echo "</table>";
require "footer.php";
Example #2
0
    if ($c_destfact >= 2) {
        Production_entry("Destroyer factory", "Enables building of destroyers.", $c_destfact - 1, "Building...", "10000c 10000m");
    }
    if ($c_destfact == 1) {
        Production_entry("Destroyer factory", "Enables building of destroyers.", "120", "Done", "10000c 10000m");
    }
}
if ($c_destfact == 1) {
    if ($c_scorpfact == 0) {
        Production_entry("Scorpion factory", "Enables building of scorpions.", "120", "<a href=\"construct.php?building=scorpfact\">Build</a>", "20000c 20000m");
    }
    if ($c_scorpfact >= 2) {
        Production_entry("Scorpion factory", "Enables building of scorpions.", $c_scorpfact - 1, "Building...", "20000c 20000m");
    }
    if ($c_scorpfact == 1) {
        Production_entry("Scorpion factory", "Enables building of scorpions.", "120", "Done", "20000c 20000m");
    }
}
if ($r_odg == 1) {
    if ($c_odg == 0) {
        Production_entry("ODG factory", "Enables building of ODG units.", "120", "<a href=\"construct.php?building=odg\">Build</a>", "20000c 20000m");
    }
    if ($c_odg >= 2) {
        Production_entry("ODG factory", "Enables building of ODG units.", $c_odg - 1, "Building...", "20000c 20000m");
    }
    if ($c_odg == 1) {
        Production_entry("ODG factory", "Enables building of ODG units.", "120", "Done", "20000c 20000m");
    }
}
echo "</table>";
require "footer.php";
Example #3
0
    }
    if ($vars["c_odg"] == 1) {
        echo "<tr><td></td><td><b>Orbital Defense Grid:</td><tr>";
        if ($p_rcannons == 0) {
            $temp[1] = floor($metal / 800);
            $temp[2] = floor($metal / 800);
            $tmp = min($temp);
            Production_entry("Reaper cannons", "<font size=\"1\">The reaper cannon is a general purpose cannon which can be seen cluttering a planet from many light years away. They are small extremely useful cannons which have been described as the sherman tank of the 22nd century. With  its low cost and fast tracking abilities it can target the light fast ships, which if there are enough of them in the Grid can make a mess of infinitys and it even start targeting astropods. Surely any commander would never leave his planet without his reaper cannons being at his empire's home at all times.", "20", "800m", "{$rcannons}", "<form action=\"{$PHP_SELF}\" METHOD=\"GET\"><input type=\"text\" size=\"3\" name=\"buildrcannons\" value=\"{$tmp}\"><input type=\"submit\" value=\"Build\"></form>");
        } else {
            Production_entry("Reaper cannons", "<font size=\"1\">The reaper cannon is a general purpose cannon which can be seen cluttering a planet from many light years away. They are small extremely useful cannons which have been described as the sherman tank of the 22nd century. With  its low cost and fast tracking abilities it can target the light fast ships, which if there are enough of them in the Grid can make a mess of infinitys and it even start targeting astropods. Surely any commander would never leave his planet without his reaper cannons being at his empire's home at all times.", "{$p_rcannonst}", "800m", "{$rcannons}", "Building {$p_rcannons}");
        }
        if ($p_avengers == 0) {
            $temp[1] = floor($metal / 700);
            $temp[2] = floor($crystal / 700);
            $tmp = min($temp);
            Production_entry("Avengers", "<font size=\"1\">Using a mounted Tachyon Particle Disrupter, it charges up a concentrated ball of tachyon energy and fire it at great speed that will once it hits it target release all the built-up energy causing the hull of ship to be literally torn apart. But due to charging time involved and the energy dispersing over travel it is only able to hit medium speed moving vessels due to their lower speed than fighters, and the hull of heavier class ship are only partially affected due to their heavier armour integrity. ", "30", "700m 700c", "{$avengers}", "<form action=\"{$PHP_SELF}\" METHOD=\"GET\"><input type=\"text\" size=\"3\" name=\"buildavengers\" value=\"{$tmp}\"><input type=\"submit\" value=\"Build\"></form>");
        } else {
            Production_entry("Avengers", "<font size=\"1\">Using a mounted Tachyon Particle Disrupter, it charges up a concentrated ball of tachyon energy and fire it at great speed that will once it hits it target release all the built-up energy causing the hull of ship to be literally torn apart. But due to charging time involved and the energy dispersing over travel it is only able to hit medium speed moving vessels due to their lower speed than fighters, and the hull of heavier class ship are only partially affected due to their heavier armour integrity. ", "{$p_avengerst}", "700m 700c", "{$avengers}", "Building {$p_avengers}");
        }
        if ($p_lstalkers == 0) {
            $temp[1] = floor($metal / 3000);
            $temp[2] = floor($crystal / 3000);
            $tmp = min($temp);
            Production_entry("Lucius Stalkers", "<font size=\"1\">The Lucius Stalkers are large slow firing cannons that use physical rounds instead of energy weapons. It uses massive electromagnets and speeds up a 40-mm hyper velocity round, to such a great speed that it is capable of penetrating the toughest armour. But unfortunately loading time of round is slow and the power drain of activating the immensely powerful magnets causes a great strain on the reactor. So a recharge period is necessary, so due to these limitations it is only capable of targeting slow moving vessels. But it can easily penetrate their hulls.", "60", "3000m 3000c", "{$lstalkers}", "<form action=\"{$PHP_SELF}\" METHOD=\"GET\"><input type=\"text\" size=\"3\" name=\"buildlstalkers\" value=\"{$tmp}\"><input type=\"submit\" value=\"Build\"></form>");
        } else {
            Production_entry("Lucius Stalkers", "<font size=\"1\">The Lucius Stalkers are large slow firing cannons that use physical rounds instead of energy weapons. It uses massive electromagnets and speeds up a 40-mm hyper velocity round, to such a great speed that it is capable of penetrating the toughest armour. But unfortunately loading time of round is slow and the power drain of activating the immensely powerful magnets causes a great strain on the reactor. So a recharge period is necessary, so due to these limitations it is only capable of targeting slow moving vessels. But it can easily penetrate their hulls.", "{$p_lstalkerst}", "3000m 3000c", "{$lstalkers}", "Building {$p_lstalkers}");
        }
    }
}
echo "</table>";
require "footer.php";