Refactored a bit of the connection process, added a GlobalConfig class to control behavior

This commit is contained in:
Pazaz 2022-04-20 12:58:48 -04:00
parent ec83b1f868
commit 80c6ba05ff
94 changed files with 592 additions and 578 deletions

View file

@ -31,19 +31,19 @@ public final class Static176 {
@Pc(3) World local3 = Static54.method1310(arg0);
if (local3 == null) {
return false;
} else if (SignLink.anInt5928 == 1 || SignLink.anInt5928 == 2 || Static83.anInt370 == 2) {
} else if (SignLink.anInt5928 == 1 || SignLink.anInt5928 == 2 || Static83.modeWhere == 2) {
@Pc(31) byte[] local31 = local3.aClass100_71.method3148();
Static60.aString1 = new String(local31, 0, local31.length);
Static125.anInt3103 = local3.anInt382;
if (Static83.anInt370 != 0) {
Static271.anInt5800 = Static125.anInt3103 + 40000;
Static209.anInt4794 = Static271.anInt5800;
Static55.anInt1738 = Static125.anInt3103 + 50000;
Static60.hostname = new String(local31, 0, local31.length);
Static125.worldId = local3.anInt382;
if (Static83.modeWhere != 0) {
Static271.defaultPort = Static125.worldId + 43594; // 40000;
Static209.port = Static271.defaultPort;
Static55.alternatePort = Static125.worldId + 43594; // 50000;
}
return true;
} else {
@Pc(62) JagString local62 = Static211.aClass100_230;
if (Static83.anInt370 != 0) {
if (Static83.modeWhere != 0) {
local62 = Static34.method882(new JagString[] { Static31.aClass100_193, Static123.method2423(local3.anInt382 + 7000) });
}
@Pc(89) JagString local89 = Static211.aClass100_230;
@ -79,7 +79,7 @@ public final class Static176 {
Static98.method1966(Static246.anInt5393, 0L, Static225.aClass100_961, local33, (short) 11, Static102.aClass100_545, local47);
}
} else {
if (Static266.anInt5343 == 1) {
if (Static266.game == 1) {
Static98.method1966(-1, 0L, Static186.aClass100_827, local33, (short) 36, LocalizedText.FACEHERE, local47);
}
Static98.method1966(-1, 0L, Static186.aClass100_827, local33, (short) 60, Static195.aClass100_859, local47);