Skip to content

[Formule] Deuterium Consumption. #544

Answered by jonamix-ar
jonamix-ar asked this question in Q&A
Discussion options

You must be logged in to vote

Haciendo mas averguaciones

public static function fleetConsumption($fleetArray, $speed_factor, $mission_duration, $mission_distance, $user, $consumption_factor = 1)
{
    $consumption = 0;

    foreach ($fleetArray as $ship => $count) {
        if ($ship > 0) {
            $ship_speed = self::fleetMaxSpeed(null, $ship, $user);
            $ship_consumption = self::shipConsumption($ship, $user, $consumption_factor);
            $spd = 35000 / ($mission_duration * $speed_factor - 10) * sqrt($mission_distance * 10 / $ship_speed);
            $basic_consumption = $spd + $count * $ship_consumption * pow((($spd / 10) + 1), 2);
            $consumption += $basic_consumption * $mission_distance /…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jonamix-ar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant