vue
Homer Messages : 1925 | Bon, j'ai résolu le soucis du RRI en fait c'était tout con .... Dans la page GetBuildingTime.php, modifier dans le elseif (in_array($Element, $reslist['tech'])) en remplacant, dans les formule de calcul de temps, la variable $PLANET[$resource[31]] pas $Level (Il y a 7 ligne impactées au total) |
lundi 25 février 2013
| |
caroline Messages : 209 | hein quoi jai rien compris xd et je suis blonde n oublie pas xd |
lundi 25 février 2013
| |
Homer Messages : 1925 | remplace le code : elseif (in_array($Element, $reslist['tech'])) par ça : elseif (in_array($Element, $reslist['tech'])) |
lundi 25 février 2013
| |
caroline Messages : 209 | comme ca? if(!defined('INSIDE')) die('Hacking attempt!'); function GetBuildingTime ($USER, $PLANET, $Element, $Destroy = false) { global $pricelist, $resource, $reslist, $requeriments;
$CONF = getConfig($USER['universe']); $level = isset($PLANET[$resource[$Element]]) ? $PLANET[$resource[$Element]] : $USER[$resource[$Element]];
$Cost = floor($pricelist[$Element]['metal'] * pow($pricelist[$Element]['factor'], $level)) + floor($pricelist[$Element]['crystal'] * pow($pricelist[$Element]['factor'], $level));
if (in_array($Element, $reslist['build'])) {
if($USER['commander'] >= 1 xor $USER['raza'] == 0) { $tiempo = $Cost / ($CONF['game_speed'] * (1 + $PLANET[$resource[14]])) * pow(0.5, $PLANET[$resource[15]]); $porcentaje = $tiempo * 10/100; $time = $tiempo - $porcentaje; } elseif($USER['commander'] >= 1 and $USER['raza'] == 0) { $tiempo = $Cost / ($CONF['game_speed'] * (1 + $PLANET[$resource[14]])) * pow(0.5, $PLANET[$resource[15]]); $porcentaje = $tiempo * 20/100; $time = $tiempo - $porcentaje; } else { $time = $Cost / ($CONF['game_speed'] * (1 + $PLANET[$resource[14]])) * pow(0.5, $PLANET[$resource[15]]); } } elseif (in_array($Element, $reslist['fleet'])) { if($USER['commander'] >= 1 xor $USER['raza'] == 1) { @$tiempo = $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]); $porcentaje = $tiempo * 10/100; $time = $tiempo - $porcentaje; } elseif($USER['commander'] >= 1 and $USER['raza'] == 1) { @$tiempo = $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]); $porcentaje = $tiempo * 20/100; $time = $tiempo - $porcentaje; } else { @$time = $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]); } }elseif (in_array($Element, $reslist['defense'])) { if($USER['commander'] >= 1) { @$tiempo= $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]); $porcentaje = $tiempo * 10/100; $time = $tiempo - $porcentaje; } else { @$time= $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]); } } elseif (in_array($Element, $reslist['tech'])) { if(is_array($PLANET[$resource[31].'_inter'])) { $Level = 0; foreach($PLANET[$resource[31].'_inter'] as $Levels) { if($Levels >= $requeriments[$Element][31]) $Level += $Levels; } } else { $Level = $PLANET[$resource[31]]; }
if($USER['commander'] >= 1 and $USER['technocratic'] >= 1) { $tiempo = $Cost / ($CONF['game_speed'] * (1 + $Level)) * pow(0.5, $PLANET[$resource[6]]) + (0.3 - $comandante_tecnos); $porcentaje = $tiempo * 35/100; $time = $tiempo - $porcentaje; } elseif($USER['commander'] >= 1 and $USER['technocratic'] <= 0) { $tiempo = $Cost / ($CONF['game_speed'] * (1 + $Level)) * pow(0.5, $PLANET[$resource[6]]) + (0.3 - $comandante_tecnos); $porcentaje = $tiempo * 10/100; $time = $tiempo - $porcentaje; } elseif($USER['commander'] <= 0 and $USER['technocratic'] >= 1) { $tiempo = $Cost / ($CONF['game_speed'] * (1 + $Level)) * pow(0.5, $PLANET[$resource[6]]) + (0.3 - $comandante_tecnos); $porcentaje = $tiempo * 25/100; $time = $tiempo - $porcentaje; } elseif($USER['commander'] >= 1 and $USER['technocratic'] >= 1 and $USER['raza'] == 1) { $tiempo = $Cost / ($CONF['game_speed'] * (1 + $Level)) * pow(0.5, $PLANET[$resource[6]]) + (0.3 - $comandante_tecnos); $porcentaje = $tiempo * 45/100; $time = $tiempo - $porcentaje; } elseif($USER['commander'] >= 1 and $USER['technocratic'] <= 0 and $USER['raza'] == 1) { $tiempo = $Cost / ($CONF['game_speed'] * (1 + $Level)) * pow(0.5, $PLANET[$resource[6]]) + (0.3 - $comandante_tecnos); $porcentaje = $tiempo * 20/100; $time = $tiempo - $porcentaje; } elseif($USER['commander'] <= 0 and $USER['technocratic'] >= 1 and $USER['raza'] == 1) { $tiempo = $Cost / ($CONF['game_speed'] * (1 + $Level)) * pow(0.5, $PLANET[$resource[6]]) + (0.3 - $comandante_tecnos); $porcentaje = $tiempo * 35/100; $time = $tiempo - $porcentaje; } else { $time = $Cost / ($CONF['game_speed'] * (1 + $Level)) * pow(0.5, $PLANET[$resource[6]]) + (0.3 - $comandante_tecnos); } }
if(!$Destroy) $time = floor($time * 3600); else $time = floor($time * 1300);
return max($time, $CONF['min_build_time']); } ?> |
lundi 25 février 2013
| |
Homer Messages : 1925 | oui ça semble etre bon |
mardi 26 février 2013
| |
caroline Messages : 209 | ca a laire de marcher je fait des test ta pus verifier ta verifier pour la technologie |
mardi 26 février 2013
| |
Homer Messages : 1925 | |
mardi 26 février 2013
| |
Homer Messages : 1925 | tu as mis : ca a laire de marcher je fait des test ta pus verifier ta verifier pour la technologie j'ai compris le début mais pas la suite ... |
mardi 26 février 2013
| |
caroline Messages : 209 | jai regarder les le temps de construction sa change rien quand tu monte 1 niveau |
mardi 26 février 2013
| |
Homer Messages : 1925 | si si sa marche, j'ai testé validé et les gens qui joue chez moi l'on validé aussi |
mardi 26 février 2013
|
Aperçu (pas encore publié) | |
Kommunauty © Tous droits réservés
Contact /
Charte & Mentions légales /
Hebergement gratuit /
Bon plan hébergement /
Aide B2i