Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Huxinator authored and g5bot committed Jan 22, 2025
1 parent c799c19 commit a0f3ce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Component/Anomaly/Type/IonStorm/IonStormHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private function deactivateDrive(SpacecraftWrapperInterface $wrapper, Informatio
$system = $spacecraft->getSystems()[$systemType->value] ?? null;
if ($system !== null) {
$this->spacecraftSystemManager->deactivate($wrapper, $systemType, true);
$system->setCooldown($this->stuTime->time() + $this->stuRandom->rand(0, 2 * self::DRIVE_DEACTIVATION_MEAN_SECONDS, true, 10, 2));
$system->setCooldown($this->stuTime->time() + $this->stuRandom->rand(0, 2 * self::DRIVE_DEACTIVATION_MEAN_SECONDS, true, TimeConstants::TEN_MINUTES_IN_SECONDS, 2));

$informations->addInformationf('Der %s ist ausgefallen und kann vorerst nicht mehr aktiviert werden', $systemType->getDescription());
}
Expand Down
4 changes: 3 additions & 1 deletion src/Component/Game/TimeConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ final class TimeConstants
//minutes
public const int THIRTY_MINUTES_IN_SECONDS = 1800;

public const int TEN_MINUTES_IN_SECONDS = 600;

//hours
public const int ONE_HOUR_IN_SECONDS = 3600;

Expand All @@ -20,4 +22,4 @@ final class TimeConstants
//weeks
public const int TWO_WEEKS_IN_SECONDS = 1_209_600;
public const int EIGHT_WEEKS_IN_SECONDS = 4_838_400;
}
}

0 comments on commit a0f3ce4

Please sign in to comment.