Fixes #1449 and updates another area where the Heading class can apply (#1451)

This commit is contained in:
bgreman
2021-07-22 15:30:46 -04:00
committed by GitHub
parent edbd3de4a4
commit 1094085872
2 changed files with 6 additions and 6 deletions

View File

@@ -425,7 +425,7 @@ class GenericCarrierGenerator(GenericGroundObjectGenerator[GenericCarrierGroundO
return ship
def steam_into_wind(self, group: ShipGroup) -> Optional[Heading]:
wind = self.game.conditions.weather.wind.at_0m.direction
wind = self.game.conditions.weather.wind.at_0m
brc = Heading.from_degrees(wind.direction).opposite
# Aim for 25kts over the deck.
carrier_speed = knots(25) - mps(wind.speed)