forked from halo-battle/game
Version 0.10a
This commit is contained in:
parent
b9c240c781
commit
e391f66774
201 changed files with 5182 additions and 8158 deletions
|
|
@ -37,29 +37,30 @@ $pos=$_SESSION['pos'];
|
|||
}
|
||||
|
||||
if ($_GET['bat'] == 1) {
|
||||
$metal += ceil(exp(0.4*$mine_m)*190);
|
||||
$cristal += ceil(exp(0.4*$mine_m)*90);
|
||||
$metal += ceil(pow(1.5,($mine_m-1))*68);
|
||||
$cristal += ceil(pow(1.5,($mine_m-1))*17);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', temps_b='$temps_b', bat='$bat' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
}
|
||||
elseif ($_GET['bat'] == 2) {
|
||||
$metal += ceil(exp(0.43*$mine_c)*205);
|
||||
$cristal += ceil(exp(0.43*$mine_c)*110);
|
||||
$metal += ceil(pow(1.6,($mine_c-1))*53);
|
||||
$cristal += ceil(pow(1.6,($mine_c-1))*27);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', temps_b='$temps_b', bat='$bat' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
}
|
||||
elseif ($_GET['bat'] == 3) {
|
||||
$metal += ceil(exp(0.445*$mine_h)*235);
|
||||
$cristal += ceil(exp(0.445*$mine_h)*150);
|
||||
$metal += ceil(pow(1.5,($mine_h-1))*242);
|
||||
$cristal += ceil(pow(1.5,($mine_h-1))*72);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', temps_b='$temps_b', bat='$bat' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
}
|
||||
elseif ($_GET['bat'] == 4) {
|
||||
$metal += ceil(exp(0.442*$centrale_s)*165);
|
||||
$cristal += ceil(exp(0.442*$centrale_s)*99);
|
||||
$metal += ceil(pow(1.5,($centrale_s-1))*92);
|
||||
$cristal += ceil(pow(1.5,($centrale_s-1))*37);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', temps_b='$temps_b', bat='$bat' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
}
|
||||
elseif ($_GET['bat'] == 5) {
|
||||
$metal += ceil(pow(1.8,$centrale_s)*300);
|
||||
$cristal += ceil(pow(1.82,$centrale_s)*230);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', temps_b='$temps_b', bat='$bat' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
$metal += ceil(pow(1.73,($centrale_f-1))*800);
|
||||
$cristal += ceil(pow(1.73,($centrale_f-1))*420);
|
||||
$hydrogene += ceil(pow(1.68,($centrale_f-1))*285);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene', temps_b='$temps_b', bat='$bat' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
}
|
||||
elseif ($_GET['bat'] == 6) {
|
||||
$metal += ceil(pow(2,$radar)*750);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue