Formules coûts et production

Anciens sujets importants
RoRaR
Decurion
Decurion
Messages : 17
Inscription : 10 juil. 2009, 09:14
Contact :

Formules coûts et production

Messagepar RoRaR » 26 oct. 2011, 16:31

Bonjour,

Je souhaiterais savoir les différentes formules pour les coûts des bâtiments et aussi leurs production.

Est ce qu'il serrait possible de les avoir pour pouvoir prévoir à l'avance combien coûte tel ou tel bâtiment.


Merci, RoRaR

Stukov
Administrateur
Administrateur
Messages : 2492
Inscription : 28 mai 2008, 21:09
Contact :

Re: Formules coûts et production

Messagepar Stukov » 26 oct. 2011, 17:59

Les formules hors bonus (géologue, reines, statut colo, etc) sont assez compliquées et différentes pour chaque bâtiment de prod.

En général ça a la forme :

Code : Tout sélectionner

prix de base * coeff^(niveau-1)
avec un coeff variant de 1,1 à 2 selon les batiments

Code : Tout sélectionner

prod de base * niveau * coeff^(niveau-1)*statutcolo/100*(1+bonus)
avec un coeff autours de 1.5 selon les bâtiments si je me souviens bien
Je peux te sortir le détail, mais ça n'a pas grand intérêt.
Image

RoRaR
Decurion
Decurion
Messages : 17
Inscription : 10 juil. 2009, 09:14
Contact :

Re: Formules coûts et production

Messagepar RoRaR » 26 oct. 2011, 18:46

Il serait bien pour moi d'avoir les productions des bâtiments Xorg, et pour moi cela à un intérêt ^^.

Ruche, nid de larve et nid de cochenilles :).

Merci ;)

Stukov
Administrateur
Administrateur
Messages : 2492
Inscription : 28 mai 2008, 21:09
Contact :

Re: Formules coûts et production

Messagepar Stukov » 27 oct. 2011, 11:09

Pour les coûts, réfère toi à l'id du batiment pour voir qu'est ce qui est quoi.

Code : Tout sélectionner

1 => array ( 'metal' => 60, 'crystal' => 15, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2), 2 => array ( 'metal' => 48, 'crystal' => 24, 'deuterium' => 0, 'energy' => 0, 'factor' => 1.6), 3 => array ( 'metal' => 225, 'crystal' => 75, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2), 4 => array ( 'metal' => 75, 'crystal' => 30, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2), 5 => array ( 'metal' => 136, 'crystal' => 48, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2), 6 => array ( 'metal' => 136, 'crystal' => 48, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2), 7 => array ( 'metal' => 136, 'crystal' => 48, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2), 8 => array ( 'metal' => 100, 'crystal' => 70, 'deuterium' => 25, 'energy' => 0, 'factor' => 1.6), 9 => array ( 'metal' => 90, 'crystal' => 23, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2), 10 => array ( 'metal' => 72, 'crystal' => 36, 'deuterium' => 0, 'energy' => 0, 'factor' => 1.6), 11 => array ( 'metal' => 235, 'crystal' => 82, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2), 12 => array ( 'metal' => 900, 'crystal' => 360, 'deuterium' => 180, 'energy' => 0, 'factor' => 1.8),
Pour la prod, avec la formule du poste précédent plus la prod de base de la colo, multiplié par la vitesse de l'univers et ça doit sortir à peu pret ...

Code : Tout sélectionner

// Mine de Métal 1 => array( 'metal' => 40, 'crystal' => 10, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => 'energy', 'produce' => 'metal', 'formule' => array( 'metal' => 'return (30 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return - (10 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Mine de Cristal 2 => array( 'metal' => 30, 'crystal' => 15, 'deuterium' => 0, 'energy' => 0, 'factor' => 1.6, 'needed' => 'energy', 'produce' => 'crystal', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return (20 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);', 'deuterium' => 'return "0";', 'energy' => 'return - (10 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Mine de Deutérium 3 => array( 'metal' => 150, 'crystal' => 50, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => 'energy', 'produce' => 'deuterium', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return ((10 * $BuildLevel * pow((1.1), $BuildLevel)) * (-0.002 * $BuildTemp + 1.28)) * (0.1 * $BuildLevelFactor);', 'energy' => 'return - (20 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Energie Solaire 4 => array( 'metal' => 50, 'crystal' => 20, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => '', 'produce' => 'energy', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return (20 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Ruche 5 => array( 'metal' => 136, 'crystal' => 48, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => '', 'produce' => 'metal,crystal,deuterium,energy', 'formule' => array( 'metal' => 'return 2.95*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'crystal' => 'return 2.3*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'deuterium' => 'return 1*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'energy' => 'return $BuildLevel;') ), 6 => array( 'metal' => 136, 'crystal' => 48, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => '', 'produce' => 'metal,crystal,deuterium,energy', 'formule' => array( 'metal' => 'return 2.95*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'crystal' => 'return 2.3*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'deuterium' => 'return 1*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'energy' => 'return $BuildLevel;') ), 7 => array( 'metal' => 136, 'crystal' => 48, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => '', 'produce' => 'metal,crystal,deuterium,energy', 'formule' => array( 'metal' => 'return 2.95*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'crystal' => 'return 2.3*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'deuterium' => 'return 1*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/20000,$BuildLevel)* (0.1 * $BuildLevelFactor);', 'energy' => 'return $BuildLevel;') ), // Nid de larves 8 => array( 'metal' => 100, 'crystal' => 70, 'deuterium' => 25, 'energy' => 0, 'factor' => 1.6, 'needed' => 'metal', 'produce' => 'crystal', 'formule' => array( 'metal' => 'return -2.16*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/10000,$BuildLevel)*(0.1 * $BuildLevelFactor);', 'crystal' => 'return 2.16*floor($BuildLevel*(3+($BuildLevel-1)/(10.7-1.1/($BuildLevel+0.1))))*pow(1.08+$BuildTemp/10000,$BuildLevel)*(0.1 * $BuildLevelFactor);', 'deuterium' => 'return "0";', 'energy' => 'return -3*$BuildLevel*(0.1 * $BuildLevelFactor);') ), //métal alien 9 => array( 'metal' => 60, 'crystal' => 15, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => 'energy', 'produce' => 'metal', 'formule' => array( 'metal' => 'return (43 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return - (23 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Mine de Cristal alien 10 => array( 'metal' => 45, 'crystal' => 23, 'deuterium' => 0, 'energy' => 0, 'factor' => 1.6, 'needed' => 'energy', 'produce' => 'crystal', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return (29 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);', 'deuterium' => 'return "0";', 'energy' => 'return - (23 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Mine de Deutérium alien 11 => array( 'metal' => 160, 'crystal' => 55, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => 'energy', 'produce' => 'deuterium', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return ((10 * $BuildLevel * pow((1.1), $BuildLevel)) * 1.28) * (0.1 * $BuildLevelFactor);', 'energy' => 'return - (23 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Energie Fusion 12 => array( 'metal' => 500, 'crystal' => 200, 'deuterium' => 100, 'energy' => 0, 'factor' => 1.8, 'needed' => 'deuterium', 'produce' => 'energy', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return - (10 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);', 'energy' => 'return (50 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Générateur 13 => array( 'metal' => 100, 'crystal' => 40, 'deuterium' => 0, 'energy' => 0, 'factor' => 2, 'needed' => '', 'produce' => 'energy', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return (200 * $BuildLevel) * (0.1 * $BuildLevelFactor);') ),// Couveuse 17 => array( 'metal' => 400, 'crystal' => 200, 'deuterium' => 100, 'energy' => 0, 'factor' => 2, 'needed' => '', 'produce' => 'crystal', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return $BuildLevel*$BuildLevel*(0.1 * $BuildLevelFactor);', 'deuterium' => 'return "0";', 'energy' => 'return "0";') ), // plasma generator 19 => array( 'metal' => 1000, 'crystal' => 250, 'deuterium' => 10, 'energy' => 0, 'factor' => 3/2, 'needed' => '', 'produce' => 'energy', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return (60 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Deut gazeuse humaine 52 => array( 'metal' => 150, 'crystal' => 50, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => 'energy', 'produce' => 'deuterium', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return ((15 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.002 * $BuildTemp + 1.28)) * (0.1 * $BuildLevelFactor);', 'energy' => 'return - (20 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // carb gazeuse Xorg 55 => array( 'metal' => 150, 'crystal' => 50, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => '', 'produce' => 'crystal,energy', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return ((15 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.002 * $BuildTemp + 1.28)) * (0.1 * $BuildLevelFactor);', 'deuterium' => 'return "0";', 'energy' => 'return (5*$BuildLevel) ;') ), // Deut gazeuse Origa 54 => array( 'metal' => 150, 'crystal' => 50, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2, 'needed' => 'energy', 'produce' => 'deuterium', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return ((16 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.002 * $BuildTemp + 1.28)) * (0.1 * $BuildLevelFactor);', 'energy' => 'return - (22 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);') ), // Satelitte Solaire 212 => array( 'metal' => 0, 'crystal' => 2000, 'deuterium' => 500, 'energy' => 0, 'factor' => 0.5, 'needed' => '', 'produce' => 'energy', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return max(3,(($BuildTemp / 4) + 20)) * $BuildLevel * (0.1 * $BuildLevelFactor);') ), // petit générateur 428 => array( 'metal' => 1000, 'crystal' => 1000, 'deuterium' => 500, 'energy' => 0, 'factor' => 0.5, 'needed' => '', 'produce' => 'energy', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return 25 *(1 + $BuildTemp / 200 )*$BuildLevel * (0.1 * $BuildLevelFactor);') ), 504 => array( 'metal' => 1000, 'crystal' => 1000, 'deuterium' => 1000, 'energy' => 0, 'factor' => 1, 'needed' => '', 'produce' => '', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return "0";') ), 505 => array( 'metal' => 1000, 'crystal' => 1000, 'deuterium' => 1000, 'energy' => 0, 'factor' => 1, 'needed' => '', 'produce' => '', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return "0";') ), 506 => array( 'metal' => 1000, 'crystal' => 1000, 'deuterium' => 1000, 'energy' => 0, 'factor' => 1, 'needed' => '', 'produce' => '', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return "0";') ), 507 => array( 'metal' => 1000, 'crystal' => 1000, 'deuterium' => 1000, 'energy' => 0, 'factor' => 1, 'needed' => '', 'produce' => '', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return "0";') ), 508 => array( 'metal' => 1000, 'crystal' => 1000, 'deuterium' => 1000, 'energy' => 0, 'factor' => 1, 'needed' => '', 'produce' => '', 'formule' => array( 'metal' => 'return "0";', 'crystal' => 'return "0";', 'deuterium' => 'return "0";', 'energy' => 'return "0";') ), );
Image


Revenir à « Archives »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Google [Bot] et 5 invités