Version 2007-11-04
This commit is contained in:
parent
4909921671
commit
ebc73c5744
377 changed files with 5163 additions and 2495 deletions
|
|
@ -31,7 +31,7 @@ if ($sa < 0) $sa=0;
|
|||
if (isset($_POST['cons_vaisseau_att']) && $sa > 0) {
|
||||
if ($metal - ($sa*500) >= 0) {
|
||||
if ($cristal - ($sa*300) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(720/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(720/pow(1.25,($chantier_terrestre-1)));
|
||||
$unit = 1;
|
||||
$metal -= ($sa*500);
|
||||
$cristal -= ($sa*300);
|
||||
|
|
@ -46,7 +46,7 @@ if (isset($_POST['cons_vaisseau_att']) && $sa > 0) {
|
|||
elseif (isset($_POST['cons_vaisseau_1']) && $sa > 0) {
|
||||
if ($metal - ($sa*680) >= 0) {
|
||||
if ($cristal - ($sa*420) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(2040/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(2040/pow(1.25,($chantier_terrestre-3)));
|
||||
$unit = 2;
|
||||
$metal -= ($sa*680);
|
||||
$cristal -= ($sa*420);
|
||||
|
|
@ -61,7 +61,7 @@ elseif (isset($_POST['cons_vaisseau_1']) && $sa > 0) {
|
|||
elseif (isset($_POST['cons_vaisseau_2']) && $sa > 0) {
|
||||
if ($metal - ($sa*1000) >= 0) {
|
||||
if ($cristal - ($sa*600) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(2700/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(2700/pow(1.25,($chantier_terrestre-4)));
|
||||
$unit = 3;
|
||||
$metal -= ($sa*1000);
|
||||
$cristal -= ($sa*600);
|
||||
|
|
@ -76,7 +76,7 @@ elseif (isset($_POST['cons_vaisseau_2']) && $sa > 0) {
|
|||
elseif (isset($_POST['cons_vaisseau_3']) && $sa > 0) {
|
||||
if ($metal - ($sa*1400) >= 0) {
|
||||
if ($cristal - ($sa*950) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(3960/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(3960/pow(1.25,($chantier_terrestre-6)));
|
||||
$unit = 4;
|
||||
$metal -= ($sa*1400);
|
||||
$cristal -= ($sa*950);
|
||||
|
|
@ -91,7 +91,7 @@ elseif (isset($_POST['cons_vaisseau_3']) && $sa > 0) {
|
|||
elseif (isset($_POST['cons_vcl_1']) && $sa > 0) {
|
||||
if ($metal - ($sa*400) >= 0) {
|
||||
if ($cristal - ($sa*240) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(600/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(600/pow(1.25,($chantier_terrestre-1)));
|
||||
$unit = 5;
|
||||
$metal -= ($sa*400);
|
||||
$cristal -= ($sa*240);
|
||||
|
|
@ -106,7 +106,7 @@ elseif (isset($_POST['cons_vcl_1']) && $sa > 0) {
|
|||
elseif (isset($_POST['cons_vcl_2']) && $sa > 0) {
|
||||
if ($metal - ($sa*480) >= 0) {
|
||||
if ($cristal - ($sa*260) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(1080/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(1080/pow(1.25,($chantier_terrestre-2)));
|
||||
$unit = 6;
|
||||
$metal -= ($sa*480);
|
||||
$cristal -= ($sa*260);
|
||||
|
|
@ -121,7 +121,7 @@ elseif (isset($_POST['cons_vcl_2']) && $sa > 0) {
|
|||
elseif (isset($_POST['cons_vcl_3']) && $sa > 0) {
|
||||
if ($metal - ($sa*600) >= 0) {
|
||||
if ($cristal - ($sa*420) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(2160/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(2160/pow(1.25,($chantier_terrestre-3)));
|
||||
$unit = 7;
|
||||
$metal -= ($sa*600);
|
||||
$cristal -= ($sa*420);
|
||||
|
|
@ -136,7 +136,7 @@ elseif (isset($_POST['cons_vcl_3']) && $sa > 0) {
|
|||
elseif (isset($_POST['cons_vcl_4']) && $sa > 0) {
|
||||
if ($metal - ($sa*1000) >= 0) {
|
||||
if ($cristal - ($sa*500) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(4680/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(4680/pow(1.25,($chantier_terrestre-5)));
|
||||
$unit = 8;
|
||||
$metal -= ($sa*1000);
|
||||
$cristal -= ($sa*500);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue