mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
changelog & release workflow refactor
This commit is contained in:
1 parent
5563848ad6
commit
9d7286dcca
34 files changed
+8120
-44
No files matched your search
@@ -576,6 +576,7 @@ public static class GameStates
|
||||
Modded,
|
||||
Niko,
|
||||
AOU,
|
||||
GG,
|
||||
Local,
|
||||
Custom
|
||||
}
|
||||
@@ -611,6 +612,7 @@ public static class GameStates
|
||||
"MEU" or "MAS" or "MNA" => ServerType.Modded,
|
||||
_ when regionName.Contains("Niko", StringComparison.OrdinalIgnoreCase) => ServerType.Niko,
|
||||
_ when regionName.StartsWith("AOU", StringComparison.OrdinalIgnoreCase) => ServerType.AOU,
|
||||
_ when regionName.StartsWith("GG", StringComparison.OrdinalIgnoreCase) => ServerType.GG,
|
||||
_ => ServerType.Custom
|
||||
};
|
||||
}
|
||||
@@ -630,6 +632,7 @@ public static class GameStates
|
||||
"MEU" or "MAS" or "MNA" => ServerType.Modded,
|
||||
_ when regionName.Contains("Niko", StringComparison.OrdinalIgnoreCase) => ServerType.Niko,
|
||||
_ when regionName.StartsWith("AOU", StringComparison.OrdinalIgnoreCase) => ServerType.AOU,
|
||||
_ when regionName.StartsWith("GG", StringComparison.OrdinalIgnoreCase) => ServerType.GG,
|
||||
_ => ServerType.Custom
|
||||
};
|
||||
}
|
||||
|
||||
+11
-1
@@ -5066,7 +5066,7 @@ public static class Utils
|
||||
return name;
|
||||
}
|
||||
|
||||
if (region.PingServer.EndsWith("among.us", StringComparison.Ordinal))
|
||||
if (region.PingServer.EndsWith(".among.us", StringComparison.Ordinal))
|
||||
{
|
||||
// Official server
|
||||
name = name switch
|
||||
@@ -5109,6 +5109,16 @@ public static class Utils
|
||||
return name;
|
||||
}
|
||||
|
||||
if (ip.Contains("gurge44.eu"))
|
||||
{
|
||||
if (ip.Contains("play-hu"))
|
||||
name = "GG-HU";
|
||||
else if (ip.Contains("play-us"))
|
||||
name = "GG-US";
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
if (name.Contains("Niko", StringComparison.OrdinalIgnoreCase))
|
||||
name = name.Replace("233(", "-").Replace("233 (", "-").TrimEnd(')');
|
||||
|
||||
|
||||
Reference in new issue
Block a user