Compare commits

...

3 Commits

Author SHA1 Message Date
CI
355beb8394 chore: [skip ci] 2025-10-22 16:09:15 +00:00
CI
d82eeba792 chore: release version v1.83.2 2025-10-22 16:09:15 +00:00
Dmitry Popov
0396b05e58 fix(Connections): Set new connection time status based on to/from system class 2025-10-22 18:08:38 +02:00
3 changed files with 50 additions and 2 deletions

View File

@@ -2,6 +2,15 @@
<!-- changelog -->
## [v1.83.2](https://github.com/wanderer-industries/wanderer/compare/v1.83.1...v1.83.2) (2025-10-22)
### Bug Fixes:
* Connections: Set new connection time status based on to/from system class
## [v1.83.1](https://github.com/wanderer-industries/wanderer/compare/v1.83.0...v1.83.1) (2025-10-21)

View File

@@ -525,7 +525,11 @@ defmodule WandererApp.Map.Server.ConnectionsImpl do
time_status =
if connection_type == @connection_type_wormhole do
@connection_time_status_eol_24
get_time_status(
old_location.solar_system_id,
location.solar_system_id,
ship_size_type
)
else
@connection_time_status_default
end
@@ -865,6 +869,41 @@ defmodule WandererApp.Map.Server.ConnectionsImpl do
defp get_ship_size_type(_source_solar_system_id, _target_solar_system_id, _connection_type),
do: @large_ship_size
defp get_time_status(
_source_solar_system_id,
_target_solar_system_id,
@frigate_ship_size
),
do: @connection_time_status_eol_4_5
defp get_time_status(
source_solar_system_id,
target_solar_system_id,
_ship_size_type
) do
# Check if either system is C1 before creating the connection
{:ok, source_system_info} = get_system_static_info(source_solar_system_id)
{:ok, target_system_info} = get_system_static_info(target_solar_system_id)
cond do
# C1/2/3/4 systems always get eol_16
source_system_info.system_class in [@c1, @c2, @c3, @c4] or
target_system_info.system_class in [@c1, @c2, @c3, @c4] ->
@connection_time_status_eol_16
# C5/6 systems always get eol_24
source_system_info.system_class in [@c5, @c6] or
target_system_info.system_class in [@c5, @c6] ->
@connection_time_status_eol_24
true ->
@connection_time_status_default
end
end
defp get_time_status(_source_solar_system_id, _target_solar_system_id, _ship_size_type),
do: @connection_time_status_default
defp get_new_time_status(_start_time, @connection_time_status_default),
do: @connection_time_status_eol_24

View File

@@ -3,7 +3,7 @@ defmodule WandererApp.MixProject do
@source_url "https://github.com/wanderer-industries/wanderer"
@version "1.83.1"
@version "1.83.2"
def project do
[