runescape-client: fix the thing

This commit is contained in:
ThatGamerBlue
2020-12-11 06:14:29 +00:00
parent f74baf08ce
commit 463bc42f5f
325 changed files with 35526 additions and 35531 deletions

View File

@@ -83,14 +83,14 @@ public abstract class AbstractArchive {
boolean shallowFiles;
static {
gzipDecompressor = new GZipDecompressor();
field3171 = 0;
gzipDecompressor = new GZipDecompressor(); // L: 23
field3171 = 0; // L: 27
}
AbstractArchive(boolean var1, boolean var2) {
this.releaseGroups = var1;
this.shallowFiles = var2;
}
this.releaseGroups = var1; // L: 32
this.shallowFiles = var2; // L: 33
} // L: 34
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -99,66 +99,66 @@ public abstract class AbstractArchive {
)
@Export("decodeIndex")
void decodeIndex(byte[] var1) {
this.hash = DynamicObject.method2305(var1, var1.length);
Buffer var2 = new Buffer(PrivateChatMode.decompressBytes(var1));
int var3 = var2.readUnsignedByte();
if (var3 >= 5 && var3 <= 7) {
if (var3 >= 6) {
var2.readInt();
this.hash = DynamicObject.method2305(var1, var1.length); // L: 37
Buffer var2 = new Buffer(PrivateChatMode.decompressBytes(var1)); // L: 38
int var3 = var2.readUnsignedByte(); // L: 39
if (var3 >= 5 && var3 <= 7) { // L: 40
if (var3 >= 6) { // L: 41
var2.readInt(); // L: 42
}
int var4 = var2.readUnsignedByte();
if (var3 >= 7) {
int var4 = var2.readUnsignedByte(); // L: 45
if (var3 >= 7) { // L: 46
this.groupCount = var2.method5558();
} else {
this.groupCount = var2.readUnsignedShort();
this.groupCount = var2.readUnsignedShort(); // L: 47
}
int var5 = 0;
int var6 = -1;
this.groupIds = new int[this.groupCount];
int var5 = 0; // L: 48
int var6 = -1; // L: 49
this.groupIds = new int[this.groupCount]; // L: 50
int var7;
if (var3 >= 7) {
for (var7 = 0; var7 < this.groupCount; ++var7) {
this.groupIds[var7] = var5 += var2.method5558();
if (this.groupIds[var7] > var6) {
if (var3 >= 7) { // L: 51
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 52
this.groupIds[var7] = var5 += var2.method5558(); // L: 53
if (this.groupIds[var7] > var6) { // L: 54
var6 = this.groupIds[var7];
}
}
} else {
for (var7 = 0; var7 < this.groupCount; ++var7) {
this.groupIds[var7] = var5 += var2.readUnsignedShort();
if (this.groupIds[var7] > var6) {
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 58
this.groupIds[var7] = var5 += var2.readUnsignedShort(); // L: 59
if (this.groupIds[var7] > var6) { // L: 60
var6 = this.groupIds[var7];
}
}
}
this.groupCrcs = new int[var6 + 1];
this.groupVersions = new int[var6 + 1];
this.fileCounts = new int[var6 + 1];
this.fileIds = new int[var6 + 1][];
this.groups = new Object[var6 + 1];
this.files = new Object[var6 + 1][];
if (var4 != 0) {
this.groupNameHashes = new int[var6 + 1];
this.groupCrcs = new int[var6 + 1]; // L: 63
this.groupVersions = new int[var6 + 1]; // L: 64
this.fileCounts = new int[var6 + 1]; // L: 65
this.fileIds = new int[var6 + 1][]; // L: 66
this.groups = new Object[var6 + 1]; // L: 67
this.files = new Object[var6 + 1][]; // L: 68
if (var4 != 0) { // L: 69
this.groupNameHashes = new int[var6 + 1]; // L: 70
for (var7 = 0; var7 < this.groupCount; ++var7) {
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 71
this.groupNameHashes[this.groupIds[var7]] = var2.readInt();
}
this.groupNameHashTable = new IntHashTable(this.groupNameHashes);
this.groupNameHashTable = new IntHashTable(this.groupNameHashes); // L: 72
}
for (var7 = 0; var7 < this.groupCount; ++var7) {
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 74
this.groupCrcs[this.groupIds[var7]] = var2.readInt();
}
for (var7 = 0; var7 < this.groupCount; ++var7) {
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 75
this.groupVersions[this.groupIds[var7]] = var2.readInt();
}
for (var7 = 0; var7 < this.groupCount; ++var7) {
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 76
this.fileCounts[this.groupIds[var7]] = var2.readUnsignedShort();
}
@@ -167,63 +167,63 @@ public abstract class AbstractArchive {
int var10;
int var11;
int var12;
if (var3 >= 7) {
for (var7 = 0; var7 < this.groupCount; ++var7) {
var8 = this.groupIds[var7];
var9 = this.fileCounts[var8];
var5 = 0;
var10 = -1;
this.fileIds[var8] = new int[var9];
if (var3 >= 7) { // L: 77
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 78
var8 = this.groupIds[var7]; // L: 79
var9 = this.fileCounts[var8]; // L: 80
var5 = 0; // L: 81
var10 = -1; // L: 82
this.fileIds[var8] = new int[var9]; // L: 83
for (var11 = 0; var11 < var9; ++var11) {
var12 = this.fileIds[var8][var11] = var5 += var2.method5558();
if (var12 > var10) {
for (var11 = 0; var11 < var9; ++var11) { // L: 84
var12 = this.fileIds[var8][var11] = var5 += var2.method5558(); // L: 85
if (var12 > var10) { // L: 86
var10 = var12;
}
}
this.files[var8] = new Object[var10 + 1];
this.files[var8] = new Object[var10 + 1]; // L: 88
}
} else {
for (var7 = 0; var7 < this.groupCount; ++var7) {
var8 = this.groupIds[var7];
var9 = this.fileCounts[var8];
var5 = 0;
var10 = -1;
this.fileIds[var8] = new int[var9];
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 92
var8 = this.groupIds[var7]; // L: 93
var9 = this.fileCounts[var8]; // L: 94
var5 = 0; // L: 95
var10 = -1; // L: 96
this.fileIds[var8] = new int[var9]; // L: 97
for (var11 = 0; var11 < var9; ++var11) {
var12 = this.fileIds[var8][var11] = var5 += var2.readUnsignedShort();
if (var12 > var10) {
for (var11 = 0; var11 < var9; ++var11) { // L: 98
var12 = this.fileIds[var8][var11] = var5 += var2.readUnsignedShort(); // L: 99
if (var12 > var10) { // L: 100
var10 = var12;
}
}
this.files[var8] = new Object[var10 + 1];
this.files[var8] = new Object[var10 + 1]; // L: 102
}
}
if (var4 != 0) {
this.fileNameHashes = new int[var6 + 1][];
this.fileNameHashTables = new IntHashTable[var6 + 1];
if (var4 != 0) { // L: 105
this.fileNameHashes = new int[var6 + 1][]; // L: 106
this.fileNameHashTables = new IntHashTable[var6 + 1]; // L: 107
for (var7 = 0; var7 < this.groupCount; ++var7) {
var8 = this.groupIds[var7];
var9 = this.fileCounts[var8];
this.fileNameHashes[var8] = new int[this.files[var8].length];
for (var7 = 0; var7 < this.groupCount; ++var7) { // L: 108
var8 = this.groupIds[var7]; // L: 109
var9 = this.fileCounts[var8]; // L: 110
this.fileNameHashes[var8] = new int[this.files[var8].length]; // L: 111
for (var10 = 0; var10 < var9; ++var10) {
for (var10 = 0; var10 < var9; ++var10) { // L: 112
this.fileNameHashes[var8][this.fileIds[var8][var10]] = var2.readInt();
}
this.fileNameHashTables[var8] = new IntHashTable(this.fileNameHashes[var8]);
this.fileNameHashTables[var8] = new IntHashTable(this.fileNameHashes[var8]); // L: 113
}
}
} else {
throw new RuntimeException("");
}
}
} // L: 116
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -232,7 +232,7 @@ public abstract class AbstractArchive {
)
@Export("loadRegionFromGroup")
void loadRegionFromGroup(int var1) {
}
} // L: 118
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -241,7 +241,7 @@ public abstract class AbstractArchive {
)
@Export("takeFile")
public byte[] takeFile(int var1, int var2) {
return this.takeFileEncrypted(var1, var2, (int[])null);
return this.takeFileEncrypted(var1, var2, (int[])null); // L: 121
}
@ObfuscatedName("w")
@@ -251,24 +251,24 @@ public abstract class AbstractArchive {
)
@Export("takeFileEncrypted")
public byte[] takeFileEncrypted(int var1, int var2, int[] var3) {
if (var1 >= 0 && var1 < this.files.length && this.files[var1] != null && var2 >= 0 && var2 < this.files[var1].length) {
if (this.files[var1][var2] == null) {
boolean var4 = this.buildFiles(var1, var3);
if (!var4) {
this.loadGroup(var1);
var4 = this.buildFiles(var1, var3);
if (!var4) {
if (var1 >= 0 && var1 < this.files.length && this.files[var1] != null && var2 >= 0 && var2 < this.files[var1].length) { // L: 125
if (this.files[var1][var2] == null) { // L: 126
boolean var4 = this.buildFiles(var1, var3); // L: 127
if (!var4) { // L: 128
this.loadGroup(var1); // L: 129
var4 = this.buildFiles(var1, var3); // L: 130
if (!var4) { // L: 131
return null;
}
}
}
byte[] var5 = GrandExchangeOffer.method188(this.files[var1][var2], false);
byte[] var5 = GrandExchangeOffer.method188(this.files[var1][var2], false); // L: 134
if (this.shallowFiles) {
this.files[var1][var2] = null;
this.files[var1][var2] = null; // L: 135
}
return var5;
return var5; // L: 136
} else {
return null;
}
@@ -281,17 +281,17 @@ public abstract class AbstractArchive {
)
@Export("tryLoadFile")
public boolean tryLoadFile(int var1, int var2) {
if (var1 >= 0 && var1 < this.files.length && this.files[var1] != null && var2 >= 0 && var2 < this.files[var1].length) {
if (this.files[var1][var2] != null) {
if (var1 >= 0 && var1 < this.files.length && this.files[var1] != null && var2 >= 0 && var2 < this.files[var1].length) { // L: 140
if (this.files[var1][var2] != null) { // L: 141
return true;
} else if (this.groups[var1] != null) {
} else if (this.groups[var1] != null) { // L: 142
return true;
} else {
this.loadGroup(var1);
return this.groups[var1] != null;
this.loadGroup(var1); // L: 143
return this.groups[var1] != null; // L: 144
}
} else {
return false;
return false; // L: 145
}
}
@@ -301,12 +301,12 @@ public abstract class AbstractArchive {
garbageValue = "256"
)
public boolean method4196(int var1) {
if (this.files.length == 1) {
if (this.files.length == 1) { // L: 149
return this.tryLoadFile(0, var1);
} else if (this.files[var1].length == 1) {
return this.tryLoadFile(var1, 0);
return this.tryLoadFile(var1, 0); // L: 150
} else {
throw new RuntimeException();
throw new RuntimeException(); // L: 151
}
}
@@ -317,11 +317,11 @@ public abstract class AbstractArchive {
)
@Export("tryLoadGroup")
public boolean tryLoadGroup(int var1) {
if (this.groups[var1] != null) {
if (this.groups[var1] != null) { // L: 155
return true;
} else {
this.loadGroup(var1);
return this.groups[var1] != null;
this.loadGroup(var1); // L: 156
return this.groups[var1] != null; // L: 157
}
}
@@ -332,19 +332,19 @@ public abstract class AbstractArchive {
)
@Export("isFullyLoaded")
public boolean isFullyLoaded() {
boolean var1 = true;
boolean var1 = true; // L: 162
for (int var2 = 0; var2 < this.groupIds.length; ++var2) {
int var3 = this.groupIds[var2];
if (this.groups[var3] == null) {
this.loadGroup(var3);
if (this.groups[var3] == null) {
for (int var2 = 0; var2 < this.groupIds.length; ++var2) { // L: 163
int var3 = this.groupIds[var2]; // L: 164
if (this.groups[var3] == null) { // L: 165
this.loadGroup(var3); // L: 166
if (this.groups[var3] == null) { // L: 167
var1 = false;
}
}
}
return var1;
return var1; // L: 170
}
@ObfuscatedName("l")
@@ -354,7 +354,7 @@ public abstract class AbstractArchive {
)
@Export("groupLoadPercent")
int groupLoadPercent(int var1) {
return this.groups[var1] != null ? 100 : 0;
return this.groups[var1] != null ? 100 : 0; // L: 174 175
}
@ObfuscatedName("z")
@@ -364,12 +364,12 @@ public abstract class AbstractArchive {
)
@Export("takeFileFlat")
public byte[] takeFileFlat(int var1) {
if (this.files.length == 1) {
if (this.files.length == 1) { // L: 179
return this.takeFile(0, var1);
} else if (this.files[var1].length == 1) {
return this.takeFile(var1, 0);
return this.takeFile(var1, 0); // L: 180
} else {
throw new RuntimeException();
throw new RuntimeException(); // L: 181
}
}
@@ -380,20 +380,20 @@ public abstract class AbstractArchive {
)
@Export("getFile")
public byte[] getFile(int var1, int var2) {
if (var1 >= 0 && var1 < this.files.length && this.files[var1] != null && var2 >= 0 && var2 < this.files[var1].length) {
if (this.files[var1][var2] == null) {
boolean var3 = this.buildFiles(var1, (int[])null);
if (!var3) {
this.loadGroup(var1);
var3 = this.buildFiles(var1, (int[])null);
if (!var3) {
if (var1 >= 0 && var1 < this.files.length && this.files[var1] != null && var2 >= 0 && var2 < this.files[var1].length) { // L: 185
if (this.files[var1][var2] == null) { // L: 186
boolean var3 = this.buildFiles(var1, (int[])null); // L: 187
if (!var3) { // L: 188
this.loadGroup(var1); // L: 189
var3 = this.buildFiles(var1, (int[])null); // L: 190
if (!var3) { // L: 191
return null;
}
}
}
byte[] var4 = GrandExchangeOffer.method188(this.files[var1][var2], false);
return var4;
byte[] var4 = GrandExchangeOffer.method188(this.files[var1][var2], false); // L: 194
return var4; // L: 195
} else {
return null;
}
@@ -406,12 +406,12 @@ public abstract class AbstractArchive {
)
@Export("getFileFlat")
public byte[] getFileFlat(int var1) {
if (this.files.length == 1) {
if (this.files.length == 1) { // L: 199
return this.getFile(0, var1);
} else if (this.files[var1].length == 1) {
return this.getFile(var1, 0);
return this.getFile(var1, 0); // L: 200
} else {
throw new RuntimeException();
throw new RuntimeException(); // L: 201
}
}
@@ -422,7 +422,7 @@ public abstract class AbstractArchive {
)
@Export("loadGroup")
void loadGroup(int var1) {
}
} // L: 204
@ObfuscatedName("c")
@ObfuscatedSignature(
@@ -431,7 +431,7 @@ public abstract class AbstractArchive {
)
@Export("getGroupFileIds")
public int[] getGroupFileIds(int var1) {
return var1 >= 0 && var1 < this.fileIds.length ? this.fileIds[var1] : null;
return var1 >= 0 && var1 < this.fileIds.length ? this.fileIds[var1] : null; // L: 207 208 210
}
@ObfuscatedName("i")
@@ -441,7 +441,7 @@ public abstract class AbstractArchive {
)
@Export("getGroupFileCount")
public int getGroupFileCount(int var1) {
return this.files[var1].length;
return this.files[var1].length; // L: 214
}
@ObfuscatedName("f")
@@ -451,7 +451,7 @@ public abstract class AbstractArchive {
)
@Export("getGroupCount")
public int getGroupCount() {
return this.files.length;
return this.files.length; // L: 218
}
@ObfuscatedName("y")
@@ -461,11 +461,11 @@ public abstract class AbstractArchive {
)
@Export("clearGroups")
public void clearGroups() {
for (int var1 = 0; var1 < this.groups.length; ++var1) {
for (int var1 = 0; var1 < this.groups.length; ++var1) { // L: 222
this.groups[var1] = null;
}
}
} // L: 223
@ObfuscatedName("r")
@ObfuscatedSignature(
@@ -474,11 +474,11 @@ public abstract class AbstractArchive {
)
@Export("clearFilesGroup")
public void clearFilesGroup(int var1) {
for (int var2 = 0; var2 < this.files[var1].length; ++var2) {
for (int var2 = 0; var2 < this.files[var1].length; ++var2) { // L: 226
this.files[var1][var2] = null;
}
}
} // L: 227
@ObfuscatedName("q")
@ObfuscatedSignature(
@@ -487,15 +487,15 @@ public abstract class AbstractArchive {
)
@Export("clearFiles")
public void clearFiles() {
for (int var1 = 0; var1 < this.files.length; ++var1) {
if (this.files[var1] != null) {
for (int var2 = 0; var2 < this.files[var1].length; ++var2) {
for (int var1 = 0; var1 < this.files.length; ++var1) { // L: 230
if (this.files[var1] != null) { // L: 231
for (int var2 = 0; var2 < this.files[var1].length; ++var2) { // L: 232
this.files[var1][var2] = null;
}
}
}
}
} // L: 235
@ObfuscatedName("g")
@ObfuscatedSignature(
@@ -504,120 +504,120 @@ public abstract class AbstractArchive {
)
@Export("buildFiles")
boolean buildFiles(int var1, int[] var2) {
if (this.groups[var1] == null) {
if (this.groups[var1] == null) { // L: 238
return false;
} else {
int var3 = this.fileCounts[var1];
int[] var4 = this.fileIds[var1];
Object[] var5 = this.files[var1];
boolean var6 = true;
int var3 = this.fileCounts[var1]; // L: 239
int[] var4 = this.fileIds[var1]; // L: 240
Object[] var5 = this.files[var1]; // L: 241
boolean var6 = true; // L: 242
for (int var7 = 0; var7 < var3; ++var7) {
if (var5[var4[var7]] == null) {
var6 = false;
for (int var7 = 0; var7 < var3; ++var7) { // L: 243
if (var5[var4[var7]] == null) { // L: 244
var6 = false; // L: 245
break;
}
}
if (var6) {
if (var6) { // L: 249
return true;
} else {
byte[] var21;
if (var2 == null || var2[0] == 0 && var2[1] == 0 && var2[2] == 0 && var2[3] == 0) {
var21 = GrandExchangeOffer.method188(this.groups[var1], false);
if (var2 == null || var2[0] == 0 && var2[1] == 0 && var2[2] == 0 && var2[3] == 0) { // L: 251
var21 = GrandExchangeOffer.method188(this.groups[var1], false); // L: 256
} else {
var21 = GrandExchangeOffer.method188(this.groups[var1], true);
Buffer var8 = new Buffer(var21);
var8.xteaDecrypt(var2, 5, var8.array.length);
var21 = GrandExchangeOffer.method188(this.groups[var1], true); // L: 252
Buffer var8 = new Buffer(var21); // L: 253
var8.xteaDecrypt(var2, 5, var8.array.length); // L: 254
}
byte[] var25 = PrivateChatMode.decompressBytes(var21);
if (this.releaseGroups) {
byte[] var25 = PrivateChatMode.decompressBytes(var21); // L: 259
if (this.releaseGroups) { // L: 264
this.groups[var1] = null;
}
int var10;
if (var3 > 1) {
int var22 = var25.length;
--var22;
if (var3 > 1) { // L: 265
int var22 = var25.length; // L: 266
--var22; // L: 267
var10 = var25[var22] & 255;
var22 -= var10 * var3 * 4;
Buffer var11 = new Buffer(var25);
int[] var12 = new int[var3];
var11.offset = var22;
var22 -= var10 * var3 * 4; // L: 268
Buffer var11 = new Buffer(var25); // L: 269
int[] var12 = new int[var3]; // L: 270
var11.offset = var22; // L: 271
int var14;
int var15;
for (int var13 = 0; var13 < var10; ++var13) {
var14 = 0;
for (int var13 = 0; var13 < var10; ++var13) { // L: 272
var14 = 0; // L: 273
for (var15 = 0; var15 < var3; ++var15) {
var14 += var11.readInt();
var12[var15] += var14;
for (var15 = 0; var15 < var3; ++var15) { // L: 274
var14 += var11.readInt(); // L: 275
var12[var15] += var14; // L: 276
}
}
byte[][] var23 = new byte[var3][];
byte[][] var23 = new byte[var3][]; // L: 279
for (var14 = 0; var14 < var3; ++var14) {
var23[var14] = new byte[var12[var14]];
var12[var14] = 0;
for (var14 = 0; var14 < var3; ++var14) { // L: 280
var23[var14] = new byte[var12[var14]]; // L: 281
var12[var14] = 0; // L: 282
}
var11.offset = var22;
var14 = 0;
var11.offset = var22; // L: 284
var14 = 0; // L: 285
int var17;
for (var15 = 0; var15 < var10; ++var15) {
int var24 = 0;
for (var15 = 0; var15 < var10; ++var15) { // L: 286
int var24 = 0; // L: 287
for (var17 = 0; var17 < var3; ++var17) {
var24 += var11.readInt();
System.arraycopy(var25, var14, var23[var17], var12[var17], var24);
var12[var17] += var24;
var14 += var24;
for (var17 = 0; var17 < var3; ++var17) { // L: 288
var24 += var11.readInt(); // L: 289
System.arraycopy(var25, var14, var23[var17], var12[var17], var24); // L: 290
var12[var17] += var24; // L: 291
var14 += var24; // L: 292
}
}
for (var15 = 0; var15 < var3; ++var15) {
if (!this.shallowFiles) {
var17 = var4[var15];
byte[] var19 = var23[var15];
for (var15 = 0; var15 < var3; ++var15) { // L: 295
if (!this.shallowFiles) { // L: 296
var17 = var4[var15]; // L: 298
byte[] var19 = var23[var15]; // L: 300
Object var18;
if (var19 == null) {
var18 = null;
} else if (var19.length > 136) {
DirectByteArrayCopier var20 = new DirectByteArrayCopier();
var20.set(var19);
var18 = var20;
if (var19 == null) { // L: 302
var18 = null; // L: 303
} else if (var19.length > 136) { // L: 306
DirectByteArrayCopier var20 = new DirectByteArrayCopier(); // L: 308
var20.set(var19); // L: 309
var18 = var20; // L: 310
} else {
var18 = var19;
var18 = var19; // L: 324
}
var5[var17] = var18;
var5[var17] = var18; // L: 326
} else {
var5[var4[var15]] = var23[var15];
var5[var4[var15]] = var23[var15]; // L: 328
}
}
} else if (!this.shallowFiles) {
var10 = var4[0];
} else if (!this.shallowFiles) { // L: 332
var10 = var4[0]; // L: 334
Object var26;
if (var25 == null) {
var26 = null;
} else if (var25.length > 136) {
DirectByteArrayCopier var27 = new DirectByteArrayCopier();
var27.set(var25);
var26 = var27;
if (var25 == null) { // L: 337
var26 = null; // L: 338
} else if (var25.length > 136) { // L: 341
DirectByteArrayCopier var27 = new DirectByteArrayCopier(); // L: 343
var27.set(var25); // L: 344
var26 = var27; // L: 345
} else {
var26 = var25;
var26 = var25; // L: 359
}
var5[var10] = var26;
var5[var10] = var26; // L: 361
} else {
var5[var4[0]] = var25;
var5[var4[0]] = var25; // L: 363
}
return true;
return true; // L: 365
}
}
}
@@ -629,8 +629,8 @@ public abstract class AbstractArchive {
)
@Export("getGroupId")
public int getGroupId(String var1) {
var1 = var1.toLowerCase();
return this.groupNameHashTable.get(JagexCache.hashString(var1));
var1 = var1.toLowerCase(); // L: 369
return this.groupNameHashTable.get(JagexCache.hashString(var1)); // L: 370
}
@ObfuscatedName("an")
@@ -640,8 +640,8 @@ public abstract class AbstractArchive {
)
@Export("getFileId")
public int getFileId(int var1, String var2) {
var2 = var2.toLowerCase();
return this.fileNameHashTables[var1].get(JagexCache.hashString(var2));
var2 = var2.toLowerCase(); // L: 374
return this.fileNameHashTables[var1].get(JagexCache.hashString(var2)); // L: 375
}
@ObfuscatedName("aj")
@@ -651,14 +651,14 @@ public abstract class AbstractArchive {
)
@Export("isValidFileName")
public boolean isValidFileName(String var1, String var2) {
var1 = var1.toLowerCase();
var2 = var2.toLowerCase();
int var3 = this.groupNameHashTable.get(JagexCache.hashString(var1));
if (var3 < 0) {
var1 = var1.toLowerCase(); // L: 379
var2 = var2.toLowerCase(); // L: 380
int var3 = this.groupNameHashTable.get(JagexCache.hashString(var1)); // L: 381
if (var3 < 0) { // L: 382
return false;
} else {
int var4 = this.fileNameHashTables[var3].get(JagexCache.hashString(var2));
return var4 >= 0;
int var4 = this.fileNameHashTables[var3].get(JagexCache.hashString(var2)); // L: 383
return var4 >= 0; // L: 384
}
}
@@ -669,11 +669,11 @@ public abstract class AbstractArchive {
)
@Export("takeFileByNames")
public byte[] takeFileByNames(String var1, String var2) {
var1 = var1.toLowerCase();
var2 = var2.toLowerCase();
int var3 = this.groupNameHashTable.get(JagexCache.hashString(var1));
int var4 = this.fileNameHashTables[var3].get(JagexCache.hashString(var2));
return this.takeFile(var3, var4);
var1 = var1.toLowerCase(); // L: 389
var2 = var2.toLowerCase(); // L: 390
int var3 = this.groupNameHashTable.get(JagexCache.hashString(var1)); // L: 391
int var4 = this.fileNameHashTables[var3].get(JagexCache.hashString(var2)); // L: 392
return this.takeFile(var3, var4); // L: 393
}
@ObfuscatedName("ag")
@@ -683,11 +683,11 @@ public abstract class AbstractArchive {
)
@Export("tryLoadFileByNames")
public boolean tryLoadFileByNames(String var1, String var2) {
var1 = var1.toLowerCase();
var2 = var2.toLowerCase();
int var3 = this.groupNameHashTable.get(JagexCache.hashString(var1));
int var4 = this.fileNameHashTables[var3].get(JagexCache.hashString(var2));
return this.tryLoadFile(var3, var4);
var1 = var1.toLowerCase(); // L: 397
var2 = var2.toLowerCase(); // L: 398
int var3 = this.groupNameHashTable.get(JagexCache.hashString(var1)); // L: 399
int var4 = this.fileNameHashTables[var3].get(JagexCache.hashString(var2)); // L: 400
return this.tryLoadFile(var3, var4); // L: 401
}
@ObfuscatedName("au")
@@ -697,9 +697,9 @@ public abstract class AbstractArchive {
)
@Export("tryLoadGroupByName")
public boolean tryLoadGroupByName(String var1) {
var1 = var1.toLowerCase();
int var2 = this.groupNameHashTable.get(JagexCache.hashString(var1));
return this.tryLoadGroup(var2);
var1 = var1.toLowerCase(); // L: 405
int var2 = this.groupNameHashTable.get(JagexCache.hashString(var1)); // L: 406
return this.tryLoadGroup(var2); // L: 407
}
@ObfuscatedName("as")
@@ -709,12 +709,12 @@ public abstract class AbstractArchive {
)
@Export("loadRegionFromName")
public void loadRegionFromName(String var1) {
var1 = var1.toLowerCase();
int var2 = this.groupNameHashTable.get(JagexCache.hashString(var1));
if (var2 >= 0) {
this.loadRegionFromGroup(var2);
var1 = var1.toLowerCase(); // L: 411
int var2 = this.groupNameHashTable.get(JagexCache.hashString(var1)); // L: 412
if (var2 >= 0) { // L: 413
this.loadRegionFromGroup(var2); // L: 414
}
}
} // L: 415
@ObfuscatedName("ae")
@ObfuscatedSignature(
@@ -723,8 +723,8 @@ public abstract class AbstractArchive {
)
@Export("groupLoadPercentByName")
public int groupLoadPercentByName(String var1) {
var1 = var1.toLowerCase();
int var2 = this.groupNameHashTable.get(JagexCache.hashString(var1));
return this.groupLoadPercent(var2);
var1 = var1.toLowerCase(); // L: 418
int var2 = this.groupNameHashTable.get(JagexCache.hashString(var1)); // L: 419
return this.groupLoadPercent(var2); // L: 420
}
}

View File

@@ -7,7 +7,7 @@ import net.runelite.mapping.ObfuscatedSignature;
@Implements("AbstractByteArrayCopier")
public abstract class AbstractByteArrayCopier {
AbstractByteArrayCopier() {
}
} // L: 4
@ObfuscatedName("v")
@ObfuscatedSignature(

File diff suppressed because it is too large Load Diff

View File

@@ -24,7 +24,7 @@ public abstract class AbstractRasterProvider {
public int height;
protected AbstractRasterProvider() {
}
} // L: 8
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -49,6 +49,6 @@ public abstract class AbstractRasterProvider {
)
@Export("apply")
public final void apply() {
Rasterizer2D.Rasterizer2D_replace(this.pixels, this.width, this.height);
}
Rasterizer2D.Rasterizer2D_replace(this.pixels, this.width, this.height); // L: 11
} // L: 12
}

View File

@@ -8,7 +8,7 @@ import net.runelite.mapping.ObfuscatedSignature;
@Implements("AbstractSocket")
public abstract class AbstractSocket {
protected AbstractSocket() {
}
} // L: 7
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -64,10 +64,10 @@ public abstract class AbstractSocket {
garbageValue = "66"
)
static void method5846(byte[] var0, int var1) {
if (Client.randomDatData == null) {
if (Client.randomDatData == null) { // L: 11134
Client.randomDatData = new byte[24];
}
class311.writeRandomDat(var0, var1, Client.randomDatData, 0, 24);
}
class311.writeRandomDat(var0, var1, Client.randomDatData, 0, 24); // L: 11135
} // L: 11136
}

View File

@@ -10,5 +10,5 @@ public abstract class AbstractSound extends Node {
int position;
AbstractSound() {
}
} // L: 10
}

View File

@@ -25,7 +25,7 @@ public abstract class AbstractUserComparator implements Comparator {
Comparator nextComparator;
protected AbstractUserComparator() {
}
} // L: 8
@ObfuscatedName("p")
@ObfuscatedSignature(
@@ -34,13 +34,13 @@ public abstract class AbstractUserComparator implements Comparator {
)
@Export("addComparator")
final void addComparator(Comparator var1) {
if (this.nextComparator == null) {
this.nextComparator = var1;
} else if (this.nextComparator instanceof AbstractUserComparator) {
((AbstractUserComparator)this.nextComparator).addComparator(var1);
if (this.nextComparator == null) { // L: 11
this.nextComparator = var1; // L: 12
} else if (this.nextComparator instanceof AbstractUserComparator) { // L: 14
((AbstractUserComparator)this.nextComparator).addComparator(var1); // L: 15
}
}
} // L: 17
@ObfuscatedName("l")
@ObfuscatedSignature(
@@ -49,10 +49,10 @@ public abstract class AbstractUserComparator implements Comparator {
)
@Export("compareUser")
protected final int compareUser(User var1, User var2) {
return this.nextComparator == null ? 0 : this.nextComparator.compare(var1, var2);
return this.nextComparator == null ? 0 : this.nextComparator.compare(var1, var2); // L: 20 21
}
public boolean equals(Object var1) {
return super.equals(var1);
return super.equals(var1); // L: 25
}
}

View File

@@ -17,13 +17,13 @@ public abstract class AbstractWorldMapData {
static PcmPlayer pcmPlayer0;
@ObfuscatedName("h")
@ObfuscatedGetter(
intValue = 1285877760
intValue = 1489291855
)
@Export("regionXLow")
int regionXLow;
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = 447666752
intValue = -731202711
)
@Export("regionYLow")
int regionYLow;
@@ -85,12 +85,12 @@ public abstract class AbstractWorldMapData {
boolean field191;
AbstractWorldMapData() {
this.groupId = -1;
this.fileId = -1;
this.groupId = -1; // L: 14
this.fileId = -1; // L: 15
new LinkedList();
this.field190 = false;
this.field191 = false;
}
this.field190 = false; // L: 26
this.field191 = false; // L: 27
} // L: 29
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -107,7 +107,7 @@ public abstract class AbstractWorldMapData {
)
@Export("isFullyLoaded")
boolean isFullyLoaded() {
return this.field190 && this.field191;
return this.field190 && this.field191; // L: 32
}
@ObfuscatedName("u")
@@ -117,16 +117,16 @@ public abstract class AbstractWorldMapData {
)
@Export("loadGeography")
void loadGeography(AbstractArchive var1) {
if (!this.isFullyLoaded()) {
byte[] var2 = var1.takeFile(this.groupId, this.fileId);
if (var2 != null) {
this.readGeography(new Buffer(var2));
this.field190 = true;
this.field191 = true;
if (!this.isFullyLoaded()) { // L: 36
byte[] var2 = var1.takeFile(this.groupId, this.fileId); // L: 37
if (var2 != null) { // L: 38
this.readGeography(new Buffer(var2)); // L: 39
this.field190 = true; // L: 40
this.field191 = true; // L: 41
}
}
}
} // L: 43
@ObfuscatedName("e")
@ObfuscatedSignature(
@@ -135,14 +135,14 @@ public abstract class AbstractWorldMapData {
)
@Export("reset")
void reset() {
this.floorUnderlayIds = null;
this.floorOverlayIds = null;
this.field178 = null;
this.field177 = null;
this.decorations = null;
this.field190 = false;
this.field191 = false;
}
this.floorUnderlayIds = null; // L: 46
this.floorOverlayIds = null; // L: 47
this.field178 = null; // L: 48
this.field177 = null; // L: 49
this.decorations = null; // L: 50
this.field190 = false; // L: 51
this.field191 = false; // L: 52
} // L: 53
@ObfuscatedName("m")
@ObfuscatedSignature(
@@ -151,16 +151,16 @@ public abstract class AbstractWorldMapData {
)
@Export("readTile")
void readTile(int var1, int var2, Buffer var3) {
int var4 = var3.readUnsignedByte();
if (var4 != 0) {
if ((var4 & 1) != 0) {
this.method306(var1, var2, var3, var4);
int var4 = var3.readUnsignedByte(); // L: 56
if (var4 != 0) { // L: 57
if ((var4 & 1) != 0) { // L: 60
this.method306(var1, var2, var3, var4); // L: 61
} else {
this.method314(var1, var2, var3, var4);
this.method314(var1, var2, var3, var4); // L: 64
}
}
}
} // L: 58 66
@ObfuscatedName("c")
@ObfuscatedSignature(
@@ -168,13 +168,13 @@ public abstract class AbstractWorldMapData {
garbageValue = "732495103"
)
void method306(int var1, int var2, Buffer var3, int var4) {
boolean var5 = (var4 & 2) != 0;
if (var5) {
this.floorOverlayIds[0][var1][var2] = (short)var3.readUnsignedByte();
boolean var5 = (var4 & 2) != 0; // L: 69
if (var5) { // L: 70
this.floorOverlayIds[0][var1][var2] = (short)var3.readUnsignedByte(); // L: 71
}
this.floorUnderlayIds[0][var1][var2] = (short)var3.readUnsignedByte();
}
this.floorUnderlayIds[0][var1][var2] = (short)var3.readUnsignedByte(); // L: 73
} // L: 74
@ObfuscatedName("i")
@ObfuscatedSignature(
@@ -182,43 +182,43 @@ public abstract class AbstractWorldMapData {
garbageValue = "-550064835"
)
void method314(int var1, int var2, Buffer var3, int var4) {
int var5 = ((var4 & 24) >> 3) + 1;
boolean var6 = (var4 & 2) != 0;
boolean var7 = (var4 & 4) != 0;
this.floorUnderlayIds[0][var1][var2] = (short)var3.readUnsignedByte();
int var5 = ((var4 & 24) >> 3) + 1; // L: 77
boolean var6 = (var4 & 2) != 0; // L: 78
boolean var7 = (var4 & 4) != 0; // L: 79
this.floorUnderlayIds[0][var1][var2] = (short)var3.readUnsignedByte(); // L: 80
int var8;
int var9;
int var11;
if (var6) {
var8 = var3.readUnsignedByte();
if (var6) { // L: 81
var8 = var3.readUnsignedByte(); // L: 82
for (var9 = 0; var9 < var8; ++var9) {
int var14 = var3.readUnsignedByte();
if (var14 != 0) {
this.floorOverlayIds[var9][var1][var2] = (short)var14;
var11 = var3.readUnsignedByte();
this.field178[var9][var1][var2] = (byte)(var11 >> 2);
this.field177[var9][var1][var2] = (byte)(var11 & 3);
for (var9 = 0; var9 < var8; ++var9) { // L: 83
int var14 = var3.readUnsignedByte(); // L: 84
if (var14 != 0) { // L: 85
this.floorOverlayIds[var9][var1][var2] = (short)var14; // L: 86
var11 = var3.readUnsignedByte(); // L: 87
this.field178[var9][var1][var2] = (byte)(var11 >> 2); // L: 88
this.field177[var9][var1][var2] = (byte)(var11 & 3); // L: 89
}
}
}
if (var7) {
for (var8 = 0; var8 < var5; ++var8) {
var9 = var3.readUnsignedByte();
if (var9 != 0) {
WorldMapDecoration[] var10 = this.decorations[var8][var1][var2] = new WorldMapDecoration[var9];
if (var7) { // L: 93
for (var8 = 0; var8 < var5; ++var8) { // L: 94
var9 = var3.readUnsignedByte(); // L: 95
if (var9 != 0) { // L: 96
WorldMapDecoration[] var10 = this.decorations[var8][var1][var2] = new WorldMapDecoration[var9]; // L: 99
for (var11 = 0; var11 < var9; ++var11) {
int var12 = var3.method5559();
int var13 = var3.readUnsignedByte();
var10[var11] = new WorldMapDecoration(var12, var13 >> 2, var13 & 3);
for (var11 = 0; var11 < var9; ++var11) { // L: 100
int var12 = var3.method5559(); // L: 101
int var13 = var3.readUnsignedByte(); // L: 102
var10[var11] = new WorldMapDecoration(var12, var13 >> 2, var13 & 3); // L: 103
}
}
}
}
}
} // L: 107
@ObfuscatedName("f")
@ObfuscatedSignature(
@@ -227,7 +227,7 @@ public abstract class AbstractWorldMapData {
)
@Export("getRegionX")
int getRegionX() {
return this.regionX;
return this.regionX; // L: 112
}
@ObfuscatedName("y")
@@ -237,7 +237,7 @@ public abstract class AbstractWorldMapData {
)
@Export("getRegionY")
int getRegionY() {
return this.regionY;
return this.regionY; // L: 116
}
@ObfuscatedName("o")
@@ -246,32 +246,32 @@ public abstract class AbstractWorldMapData {
garbageValue = "-970565394"
)
static int method328(int var0, Script var1, boolean var2) {
Widget var3 = CollisionMap.getWidget(Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]);
if (var0 == ScriptOpcodes.IF_GETTARGETMASK) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ServerPacket.Widget_unpackTargetMask(FaceNormal.getWidgetFlags(var3));
return 1;
} else if (var0 != ScriptOpcodes.IF_GETOP) {
if (var0 == ScriptOpcodes.IF_GETOPBASE) {
if (var3.dataText == null) {
Widget var3 = CollisionMap.getWidget(Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]); // L: 1306
if (var0 == ScriptOpcodes.IF_GETTARGETMASK) { // L: 1307
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ServerPacket.Widget_unpackTargetMask(FaceNormal.getWidgetFlags(var3)); // L: 1308
return 1; // L: 1309
} else if (var0 != ScriptOpcodes.IF_GETOP) { // L: 1311
if (var0 == ScriptOpcodes.IF_GETOPBASE) { // L: 1318
if (var3.dataText == null) { // L: 1319
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.dataText;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.dataText; // L: 1320
}
return 1;
return 1; // L: 1321
} else {
return 2;
return 2; // L: 1323
}
} else {
int var4 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
--var4;
if (var3.actions != null && var4 < var3.actions.length && var3.actions[var4] != null) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.actions[var4];
int var4 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 1312
--var4; // L: 1313
if (var3.actions != null && var4 < var3.actions.length && var3.actions[var4] != null) { // L: 1314
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.actions[var4]; // L: 1315
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
}
return 1;
return 1; // L: 1316
}
}
@@ -282,22 +282,22 @@ public abstract class AbstractWorldMapData {
)
@Export("worldToMinimap")
static final void worldToMinimap(int var0, int var1, int var2, int var3, Sprite var4, SpriteMask var5) {
int var6 = var3 * var3 + var2 * var2;
if (var6 > 4225 && var6 < 90000) {
int var7 = Client.camAngleY & 2047;
int var8 = Rasterizer3D.Rasterizer3D_sine[var7];
int var9 = Rasterizer3D.Rasterizer3D_cosine[var7];
int var10 = var9 * var2 + var3 * var8 >> 16;
int var11 = var3 * var9 - var8 * var2 >> 16;
double var12 = Math.atan2((double)var10, (double)var11);
int var14 = var5.width / 2 - 25;
int var15 = (int)(Math.sin(var12) * (double)var14);
int var16 = (int)(Math.cos(var12) * (double)var14);
byte var17 = 20;
ViewportMouse.redHintArrowSprite.method6189(var15 + (var0 + var5.width / 2 - var17 / 2), var5.height / 2 + var1 - var17 / 2 - var16 - 10, var17, var17, 15, 15, var12, 256);
int var6 = var3 * var3 + var2 * var2; // L: 10964
if (var6 > 4225 && var6 < 90000) { // L: 10965
int var7 = Client.camAngleY & 2047; // L: 10966
int var8 = Rasterizer3D.Rasterizer3D_sine[var7]; // L: 10967
int var9 = Rasterizer3D.Rasterizer3D_cosine[var7]; // L: 10968
int var10 = var9 * var2 + var3 * var8 >> 16; // L: 10969
int var11 = var3 * var9 - var8 * var2 >> 16; // L: 10970
double var12 = Math.atan2((double)var10, (double)var11); // L: 10971
int var14 = var5.width / 2 - 25; // L: 10972
int var15 = (int)(Math.sin(var12) * (double)var14); // L: 10973
int var16 = (int)(Math.cos(var12) * (double)var14); // L: 10974
byte var17 = 20; // L: 10975
ViewportMouse.redHintArrowSprite.method6189(var15 + (var0 + var5.width / 2 - var17 / 2), var5.height / 2 + var1 - var17 / 2 - var16 - 10, var17, var17, 15, 15, var12, 256); // L: 10976
} else {
class25.drawSpriteOnMinimap(var0, var1, var2, var3, var4, var5);
class25.drawSpriteOnMinimap(var0, var1, var2, var3, var4, var5); // L: 10978
}
}
} // L: 10979
}

File diff suppressed because it is too large Load Diff

View File

@@ -34,32 +34,32 @@ public final class AccessFile {
long offset;
public AccessFile(File var1, String var2, long var3) throws IOException {
if (var3 == -1L) {
if (var3 == -1L) { // L: 11
var3 = Long.MAX_VALUE;
}
if (var1.length() > var3) {
var1.delete();
if (var1.length() > var3) { // L: 12
var1.delete(); // L: 13
}
this.file = new RandomAccessFile(var1, var2);
this.maxSize = var3;
this.offset = 0L;
int var5 = this.file.read();
if (var5 != -1 && !var2.equals("r")) {
this.file.seek(0L);
this.file.write(var5);
this.file = new RandomAccessFile(var1, var2); // L: 15
this.maxSize = var3; // L: 16
this.offset = 0L; // L: 17
int var5 = this.file.read(); // L: 18
if (var5 != -1 && !var2.equals("r")) { // L: 19
this.file.seek(0L); // L: 20
this.file.write(var5); // L: 21
}
this.file.seek(0L);
}
this.file.seek(0L); // L: 23
} // L: 24
@ObfuscatedName("h")
@Export("seek")
final void seek(long var1) throws IOException {
this.file.seek(var1);
this.offset = var1;
}
this.file.seek(var1); // L: 27
this.offset = var1; // L: 28
} // L: 29
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -68,15 +68,15 @@ public final class AccessFile {
)
@Export("write")
public final void write(byte[] var1, int var2, int var3) throws IOException {
if (this.offset + (long)var3 > this.maxSize) {
this.file.seek(this.maxSize);
this.file.write(1);
throw new EOFException();
if (this.offset + (long)var3 > this.maxSize) { // L: 32
this.file.seek(this.maxSize); // L: 33
this.file.write(1); // L: 34
throw new EOFException(); // L: 35
} else {
this.file.write(var1, var2, var3);
this.offset += (long)var3;
this.file.write(var1, var2, var3); // L: 37
this.offset += (long)var3; // L: 38
}
}
} // L: 39
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -85,8 +85,8 @@ public final class AccessFile {
)
@Export("close")
public final void close() throws IOException {
this.closeSync(false);
}
this.closeSync(false); // L: 42
} // L: 43
@ObfuscatedName("w")
@ObfuscatedSignature(
@@ -95,19 +95,19 @@ public final class AccessFile {
)
@Export("closeSync")
public final void closeSync(boolean var1) throws IOException {
if (this.file != null) {
if (var1) {
if (this.file != null) { // L: 46
if (var1) { // L: 47
try {
this.file.getFD().sync();
} catch (SyncFailedException var3) {
this.file.getFD().sync(); // L: 49
} catch (SyncFailedException var3) { // L: 51
}
}
this.file.close();
this.file = null;
this.file.close(); // L: 53
this.file = null; // L: 54
}
}
} // L: 56
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -116,7 +116,7 @@ public final class AccessFile {
)
@Export("length")
public final long length() throws IOException {
return this.file.length();
return this.file.length(); // L: 59
}
@ObfuscatedName("j")
@@ -126,19 +126,19 @@ public final class AccessFile {
)
@Export("read")
public final int read(byte[] var1, int var2, int var3) throws IOException {
int var4 = this.file.read(var1, var2, var3);
int var4 = this.file.read(var1, var2, var3); // L: 63
if (var4 > 0) {
this.offset += (long)var4;
this.offset += (long)var4; // L: 64
}
return var4;
return var4; // L: 65
}
protected void finalize() throws Throwable {
if (this.file != null) {
System.out.println("");
this.close();
if (this.file != null) { // L: 69
System.out.println(""); // L: 70
this.close(); // L: 71
}
}
} // L: 73
}

View File

@@ -36,7 +36,7 @@ public abstract class Actor extends Entity {
int rotation;
@ObfuscatedName("ac")
@ObfuscatedGetter(
intValue = -1237850944
intValue = -824647789
)
int field941;
@ObfuscatedName("ak")
@@ -322,52 +322,52 @@ public abstract class Actor extends Entity {
int field996;
Actor() {
this.isWalking = false;
this.field941 = 64;
this.idleSequence = -1;
this.turnLeftSequence = -1;
this.turnRightSequence = -1;
this.walkSequence = -1;
this.walkBackSequence = -1;
this.walkLeftSequence = -1;
this.walkRightSequence = -1;
this.runSequence = -1;
this.overheadText = null;
this.field953 = false;
this.overheadTextCyclesRemaining = 100;
this.overheadTextColor = 0;
this.overheadTextEffect = 0;
this.hitSplatCount = 0;
this.hitSplatTypes = new int[4];
this.hitSplatValues = new int[4];
this.hitSplatCycles = new int[4];
this.hitSplatTypes2 = new int[4];
this.hitSplatValues2 = new int[4];
this.healthBars = new IterableNodeDeque();
this.targetIndex = -1;
this.false0 = false;
this.field959 = -1;
this.movementSequence = -1;
this.movementFrame = 0;
this.movementFrameCycle = 0;
this.sequence = -1;
this.sequenceFrame = 0;
this.sequenceFrameCycle = 0;
this.sequenceDelay = 0;
this.field974 = 0;
this.spotAnimation = -1;
this.spotAnimationFrame = 0;
this.spotAnimationFrameCycle = 0;
this.npcCycle = 0;
this.defaultHeight = 200;
this.field954 = 0;
this.field940 = 32;
this.pathLength = 0;
this.pathX = new int[10];
this.pathY = new int[10];
this.pathTraversed = new byte[10];
this.field963 = 0;
this.field996 = 0;
this.isWalking = false; // L: 13
this.field941 = 1; // L: 14
this.idleSequence = -1; // L: 16
this.turnLeftSequence = -1; // L: 17
this.turnRightSequence = -1; // L: 18
this.walkSequence = -1; // L: 19
this.walkBackSequence = -1; // L: 20
this.walkLeftSequence = -1; // L: 21
this.walkRightSequence = -1; // L: 22
this.runSequence = -1; // L: 23
this.overheadText = null; // L: 24
this.field953 = false; // L: 26
this.overheadTextCyclesRemaining = 100; // L: 27
this.overheadTextColor = 0; // L: 28
this.overheadTextEffect = 0; // L: 29
this.hitSplatCount = 0; // L: 31
this.hitSplatTypes = new int[4]; // L: 32
this.hitSplatValues = new int[4]; // L: 33
this.hitSplatCycles = new int[4]; // L: 34
this.hitSplatTypes2 = new int[4]; // L: 35
this.hitSplatValues2 = new int[4]; // L: 36
this.healthBars = new IterableNodeDeque(); // L: 37
this.targetIndex = -1; // L: 38
this.false0 = false; // L: 39
this.field959 = -1; // L: 40
this.movementSequence = -1; // L: 41
this.movementFrame = 0; // L: 42
this.movementFrameCycle = 0; // L: 43
this.sequence = -1; // L: 44
this.sequenceFrame = 0; // L: 45
this.sequenceFrameCycle = 0; // L: 46
this.sequenceDelay = 0; // L: 47
this.field974 = 0; // L: 48
this.spotAnimation = -1; // L: 49
this.spotAnimationFrame = 0; // L: 50
this.spotAnimationFrameCycle = 0; // L: 51
this.npcCycle = 0; // L: 61
this.defaultHeight = 200; // L: 62
this.field954 = 0; // L: 64
this.field940 = 32; // L: 65
this.pathLength = 0; // L: 66
this.pathX = new int[10]; // L: 67
this.pathY = new int[10]; // L: 68
this.pathTraversed = new byte[10]; // L: 69
this.field963 = 0; // L: 70
this.field996 = 0; // L: 71
}
@ObfuscatedName("m")
@@ -377,7 +377,7 @@ public abstract class Actor extends Entity {
)
@Export("isVisible")
boolean isVisible() {
return false;
return false; // L: 81
}
@ObfuscatedName("bh")
@@ -386,9 +386,9 @@ public abstract class Actor extends Entity {
garbageValue = "-874125335"
)
final void method1803() {
this.pathLength = 0;
this.field996 = 0;
}
this.pathLength = 0; // L: 76
this.field996 = 0; // L: 77
} // L: 78
@ObfuscatedName("by")
@ObfuscatedSignature(
@@ -409,34 +409,34 @@ public abstract class Actor extends Entity {
}
}
var9 = -1;
int var10 = -1;
int var11 = 0;
if (var1 >= 0) {
HitSplatDefinition var12 = class198.method3697(var1);
var10 = var12.field3373;
var11 = var12.field3364;
var9 = -1; // L: 91
int var10 = -1; // L: 92
int var11 = 0; // L: 93
if (var1 >= 0) { // L: 94
HitSplatDefinition var12 = class198.method3697(var1); // L: 95
var10 = var12.field3373; // L: 96
var11 = var12.field3364; // L: 97
}
int var14;
if (var8) {
if (var10 == -1) {
if (var8) { // L: 99
if (var10 == -1) { // L: 100
return;
}
var9 = 0;
var14 = 0;
if (var10 == 0) {
var9 = 0; // L: 101
var14 = 0; // L: 102
if (var10 == 0) { // L: 103
var14 = this.hitSplatCycles[0];
} else if (var10 == 1) {
} else if (var10 == 1) { // L: 104
var14 = this.hitSplatValues[0];
}
for (int var13 = 1; var13 < 4; ++var13) {
if (var10 == 0) {
if (this.hitSplatCycles[var13] < var14) {
var9 = var13;
var14 = this.hitSplatCycles[var13];
for (int var13 = 1; var13 < 4; ++var13) { // L: 105
if (var10 == 0) { // L: 106
if (this.hitSplatCycles[var13] < var14) { // L: 107
var9 = var13; // L: 108
var14 = this.hitSplatCycles[var13]; // L: 109
}
} else if (var10 == 1 && this.hitSplatValues[var13] < var14) {
var9 = var13;
@@ -463,9 +463,9 @@ public abstract class Actor extends Entity {
}
if (var9 >= 0) {
this.hitSplatTypes[var9] = var1;
this.hitSplatValues[var9] = var2;
this.hitSplatTypes2[var9] = var3;
this.hitSplatTypes[var9] = var1; // L: 133
this.hitSplatValues[var9] = var2; // L: 134
this.hitSplatTypes2[var9] = var3; // L: 135
this.hitSplatValues2[var9] = var4;
this.hitSplatCycles[var9] = var5 + var11 + var6;
}
@@ -487,36 +487,36 @@ public abstract class Actor extends Entity {
HealthBar var12;
for (var12 = (HealthBar)this.healthBars.last(); var12 != null; var12 = (HealthBar)this.healthBars.previous()) {
++var11;
if (var12.definition.field3313 == var7.field3313) {
if (var12.definition.field3313 == var7.field3313) { // L: 148
var12.put(var2 + var4, var5, var6, var3);
return;
return; // L: 150
}
if (var12.definition.int1 <= var7.int1) {
if (var12.definition.int1 <= var7.int1) { // L: 152
var8 = var12;
}
if (var12.definition.int2 > var10) {
var9 = var12;
var10 = var12.definition.int2;
if (var12.definition.int2 > var10) { // L: 153
var9 = var12; // L: 154
var10 = var12.definition.int2; // L: 155
}
}
if (var9 != null || var11 < 4) {
var12 = new HealthBar(var7);
if (var8 == null) {
if (var9 != null || var11 < 4) { // L: 158
var12 = new HealthBar(var7); // L: 159
if (var8 == null) { // L: 160
this.healthBars.addLast(var12);
} else {
IterableNodeDeque.IterableNodeDeque_addBefore(var12, var8);
IterableNodeDeque.IterableNodeDeque_addBefore(var12, var8); // L: 161
}
var12.put(var2 + var4, var5, var6, var3);
if (var11 >= 4) {
var12.put(var2 + var4, var5, var6, var3); // L: 162
if (var11 >= 4) { // L: 163
var9.remove();
}
}
}
} // L: 164
@ObfuscatedName("br")
@ObfuscatedSignature(
@@ -525,16 +525,16 @@ public abstract class Actor extends Entity {
)
@Export("removeHealthBar")
final void removeHealthBar(int var1) {
HealthBarDefinition var2 = HealthBarUpdate.method1826(var1);
HealthBarDefinition var2 = HealthBarUpdate.method1826(var1); // L: 167
for (HealthBar var3 = (HealthBar)this.healthBars.last(); var3 != null; var3 = (HealthBar)this.healthBars.previous()) {
if (var2 == var3.definition) {
var3.remove();
return;
for (HealthBar var3 = (HealthBar)this.healthBars.last(); var3 != null; var3 = (HealthBar)this.healthBars.previous()) { // L: 168
if (var2 == var3.definition) { // L: 169
var3.remove(); // L: 170
return; // L: 171
}
}
}
} // L: 174
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -542,12 +542,12 @@ public abstract class Actor extends Entity {
garbageValue = "411546609"
)
public static void method1821(AbstractArchive var0, AbstractArchive var1, boolean var2, Font var3) {
NPC.ItemDefinition_archive = var0;
VertexNormal.ItemDefinition_modelArchive = var1;
ItemDefinition.ItemDefinition_inMembersWorld = var2;
Varcs.ItemDefinition_fileCount = NPC.ItemDefinition_archive.getGroupFileCount(10);
ItemDefinition.ItemDefinition_fontPlain11 = var3;
}
NPC.ItemDefinition_archive = var0; // L: 84
VertexNormal.ItemDefinition_modelArchive = var1; // L: 85
ItemDefinition.ItemDefinition_inMembersWorld = var2; // L: 86
Varcs.ItemDefinition_fileCount = NPC.ItemDefinition_archive.getGroupFileCount(10); // L: 87
ItemDefinition.ItemDefinition_fontPlain11 = var3; // L: 88
} // L: 89
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -556,54 +556,54 @@ public abstract class Actor extends Entity {
)
@Export("newScript")
static Script newScript(byte[] var0) {
Script var1 = new Script();
Buffer var2 = new Buffer(var0);
var2.offset = var2.array.length - 2;
int var3 = var2.readUnsignedShort();
int var4 = var2.array.length - 2 - var3 - 12;
var2.offset = var4;
int var5 = var2.readInt();
var1.localIntCount = var2.readUnsignedShort();
var1.localStringCount = var2.readUnsignedShort();
var1.intArgumentCount = var2.readUnsignedShort();
var1.stringArgumentCount = var2.readUnsignedShort();
int var6 = var2.readUnsignedByte();
Script var1 = new Script(); // L: 111
Buffer var2 = new Buffer(var0); // L: 112
var2.offset = var2.array.length - 2; // L: 113
int var3 = var2.readUnsignedShort(); // L: 114
int var4 = var2.array.length - 2 - var3 - 12; // L: 115
var2.offset = var4; // L: 116
int var5 = var2.readInt(); // L: 117
var1.localIntCount = var2.readUnsignedShort(); // L: 118
var1.localStringCount = var2.readUnsignedShort(); // L: 119
var1.intArgumentCount = var2.readUnsignedShort(); // L: 120
var1.stringArgumentCount = var2.readUnsignedShort(); // L: 121
int var6 = var2.readUnsignedByte(); // L: 122
int var7;
int var8;
if (var6 > 0) {
var1.switches = var1.newIterableNodeHashTable(var6);
if (var6 > 0) { // L: 123
var1.switches = var1.newIterableNodeHashTable(var6); // L: 124
for (var7 = 0; var7 < var6; ++var7) {
var8 = var2.readUnsignedShort();
IterableNodeHashTable var9 = new IterableNodeHashTable(var8 > 0 ? World.method1870(var8) : 1);
var1.switches[var7] = var9;
for (var7 = 0; var7 < var6; ++var7) { // L: 125
var8 = var2.readUnsignedShort(); // L: 126
IterableNodeHashTable var9 = new IterableNodeHashTable(var8 > 0 ? World.method1870(var8) : 1); // L: 127
var1.switches[var7] = var9; // L: 128
while (var8-- > 0) {
int var10 = var2.readInt();
int var11 = var2.readInt();
var9.put(new IntegerNode(var11), (long)var10);
while (var8-- > 0) { // L: 129
int var10 = var2.readInt(); // L: 130
int var11 = var2.readInt(); // L: 131
var9.put(new IntegerNode(var11), (long)var10); // L: 132
}
}
}
var2.offset = 0;
var2.readStringCp1252NullTerminatedOrNull();
var1.opcodes = new int[var5];
var1.intOperands = new int[var5];
var1.stringOperands = new String[var5];
var2.offset = 0; // L: 136
var2.readStringCp1252NullTerminatedOrNull(); // L: 137
var1.opcodes = new int[var5]; // L: 138
var1.intOperands = new int[var5]; // L: 139
var1.stringOperands = new String[var5]; // L: 140
for (var7 = 0; var2.offset < var4; var1.opcodes[var7++] = var8) {
var8 = var2.readUnsignedShort();
if (var8 == 3) {
for (var7 = 0; var2.offset < var4; var1.opcodes[var7++] = var8) { // L: 141 142 147
var8 = var2.readUnsignedShort(); // L: 143
if (var8 == 3) { // L: 144
var1.stringOperands[var7] = var2.readStringCp1252NullTerminated();
} else if (var8 < 100 && var8 != 21 && var8 != 38 && var8 != 39) {
} else if (var8 < 100 && var8 != 21 && var8 != 38 && var8 != 39) { // L: 145
var1.intOperands[var7] = var2.readInt();
} else {
var1.intOperands[var7] = var2.readUnsignedByte();
var1.intOperands[var7] = var2.readUnsignedByte(); // L: 146
}
}
return var1;
return var1; // L: 149
}
@ObfuscatedName("j")
@@ -612,11 +612,11 @@ public abstract class Actor extends Entity {
garbageValue = "1653526163"
)
static void method1819(int var0) {
ItemContainer var1 = (ItemContainer)ItemContainer.itemContainers.get((long)var0);
ItemContainer var1 = (ItemContainer)ItemContainer.itemContainers.get((long)var0); // L: 72
if (var1 != null) {
var1.remove();
var1.remove(); // L: 74
}
}
} // L: 73 75
@ObfuscatedName("fe")
@ObfuscatedSignature(
@@ -625,6 +625,6 @@ public abstract class Actor extends Entity {
)
@Export("getWorldMap")
static WorldMap getWorldMap() {
return WorldMapRectangle.worldMap;
return WorldMapRectangle.worldMap; // L: 663
}
}

View File

@@ -40,93 +40,93 @@ public class Animation {
boolean hasAlphaTransform;
static {
field1657 = new int[500];
field1651 = new int[500];
field1652 = new int[500];
field1659 = new int[500];
field1657 = new int[500]; // L: 8
field1651 = new int[500]; // L: 9
field1652 = new int[500]; // L: 10
field1659 = new int[500]; // L: 11
}
@ObfuscatedSignature(
descriptor = "([BLej;)V"
)
Animation(byte[] var1, Skeleton var2) {
this.skeleton = null;
this.transformCount = -1;
this.hasAlphaTransform = false;
this.skeleton = var2;
Buffer var3 = new Buffer(var1);
Buffer var4 = new Buffer(var1);
var3.offset = 2;
int var5 = var3.readUnsignedByte();
int var6 = -1;
int var7 = 0;
var4.offset = var5 + var3.offset;
this.skeleton = null; // L: 12
this.transformCount = -1; // L: 13
this.hasAlphaTransform = false; // L: 18
this.skeleton = var2; // L: 21
Buffer var3 = new Buffer(var1); // L: 22
Buffer var4 = new Buffer(var1); // L: 23
var3.offset = 2; // L: 24
int var5 = var3.readUnsignedByte(); // L: 25
int var6 = -1; // L: 26
int var7 = 0; // L: 27
var4.offset = var5 + var3.offset; // L: 28
int var8;
for (var8 = 0; var8 < var5; ++var8) {
int var9 = var3.readUnsignedByte();
if (var9 > 0) {
if (this.skeleton.transformTypes[var8] != 0) {
for (int var10 = var8 - 1; var10 > var6; --var10) {
if (this.skeleton.transformTypes[var10] == 0) {
field1657[var7] = var10;
field1651[var7] = 0;
field1652[var7] = 0;
field1659[var7] = 0;
++var7;
for (var8 = 0; var8 < var5; ++var8) { // L: 29
int var9 = var3.readUnsignedByte(); // L: 30
if (var9 > 0) { // L: 31
if (this.skeleton.transformTypes[var8] != 0) { // L: 32
for (int var10 = var8 - 1; var10 > var6; --var10) { // L: 33
if (this.skeleton.transformTypes[var10] == 0) { // L: 34
field1657[var7] = var10; // L: 35
field1651[var7] = 0; // L: 36
field1652[var7] = 0; // L: 37
field1659[var7] = 0; // L: 38
++var7; // L: 39
break;
}
}
}
field1657[var7] = var8;
short var11 = 0;
if (this.skeleton.transformTypes[var8] == 3) {
field1657[var7] = var8; // L: 44
short var11 = 0; // L: 45
if (this.skeleton.transformTypes[var8] == 3) { // L: 46
var11 = 128;
}
if ((var9 & 1) != 0) {
if ((var9 & 1) != 0) { // L: 47
field1651[var7] = var4.readShortSmart();
} else {
field1651[var7] = var11;
field1651[var7] = var11; // L: 48
}
if ((var9 & 2) != 0) {
if ((var9 & 2) != 0) { // L: 49
field1652[var7] = var4.readShortSmart();
} else {
field1652[var7] = var11;
field1652[var7] = var11; // L: 50
}
if ((var9 & 4) != 0) {
if ((var9 & 4) != 0) { // L: 51
field1659[var7] = var4.readShortSmart();
} else {
field1659[var7] = var11;
field1659[var7] = var11; // L: 52
}
var6 = var8;
++var7;
if (this.skeleton.transformTypes[var8] == 5) {
var6 = var8; // L: 53
++var7; // L: 54
if (this.skeleton.transformTypes[var8] == 5) { // L: 55
this.hasAlphaTransform = true;
}
}
}
if (var1.length != var4.offset) {
throw new RuntimeException();
if (var1.length != var4.offset) { // L: 58
throw new RuntimeException(); // L: 59
} else {
this.transformCount = var7;
this.transformSkeletonLabels = new int[var7];
this.transformXs = new int[var7];
this.transformYs = new int[var7];
this.transformZs = new int[var7];
this.transformCount = var7; // L: 61
this.transformSkeletonLabels = new int[var7]; // L: 62
this.transformXs = new int[var7]; // L: 63
this.transformYs = new int[var7]; // L: 64
this.transformZs = new int[var7]; // L: 65
for (var8 = 0; var8 < var7; ++var8) {
this.transformSkeletonLabels[var8] = field1657[var8];
this.transformXs[var8] = field1651[var8];
this.transformYs[var8] = field1652[var8];
this.transformZs[var8] = field1659[var8];
for (var8 = 0; var8 < var7; ++var8) { // L: 66
this.transformSkeletonLabels[var8] = field1657[var8]; // L: 67
this.transformXs[var8] = field1651[var8]; // L: 68
this.transformYs[var8] = field1652[var8]; // L: 69
this.transformZs[var8] = field1659[var8]; // L: 70
}
}
}
} // L: 72
}

View File

@@ -8,7 +8,7 @@ import net.runelite.rs.ScriptOpcodes;
@Implements("ApproximateRouteStrategy")
public class ApproximateRouteStrategy extends RouteStrategy {
ApproximateRouteStrategy() {
}
} // L: 11273
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -17,7 +17,7 @@ public class ApproximateRouteStrategy extends RouteStrategy {
)
@Export("hasArrived")
public boolean hasArrived(int var1, int var2, int var3, CollisionMap var4) {
return var2 == super.approxDestinationX && var3 == super.approxDestinationY;
return var2 == super.approxDestinationX && var3 == super.approxDestinationY; // L: 11276
}
@ObfuscatedName("au")
@@ -26,356 +26,356 @@ public class ApproximateRouteStrategy extends RouteStrategy {
garbageValue = "-1846731136"
)
static int method1302(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.FRIEND_COUNT) {
if (MilliClock.friendSystem.field1069 == 0) {
if (var0 == ScriptOpcodes.FRIEND_COUNT) { // L: 1971
if (MilliClock.friendSystem.field1069 == 0) { // L: 1972
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -2;
} else if (MilliClock.friendSystem.field1069 == 1) {
} else if (MilliClock.friendSystem.field1069 == 1) { // L: 1973
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1;
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = MilliClock.friendSystem.friendsList.getSize();
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = MilliClock.friendSystem.friendsList.getSize(); // L: 1974
}
return 1;
return 1; // L: 1975
} else {
int var3;
if (var0 == ScriptOpcodes.FRIEND_GETNAME) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (MilliClock.friendSystem.method1939() && var3 >= 0 && var3 < MilliClock.friendSystem.friendsList.getSize()) {
Friend var8 = (Friend)MilliClock.friendSystem.friendsList.get(var3);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var8.getName();
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var8.getPreviousName();
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 1978
if (MilliClock.friendSystem.method1939() && var3 >= 0 && var3 < MilliClock.friendSystem.friendsList.getSize()) { // L: 1979
Friend var8 = (Friend)MilliClock.friendSystem.friendsList.get(var3); // L: 1980
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var8.getName(); // L: 1981
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var8.getPreviousName(); // L: 1982
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 1985
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 1986
}
return 1;
return 1; // L: 1988
} else if (var0 == ScriptOpcodes.FRIEND_GETWORLD) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (MilliClock.friendSystem.method1939() && var3 >= 0 && var3 < MilliClock.friendSystem.friendsList.getSize()) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ((Buddy)MilliClock.friendSystem.friendsList.get(var3)).world;
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 1991
if (MilliClock.friendSystem.method1939() && var3 >= 0 && var3 < MilliClock.friendSystem.friendsList.getSize()) { // L: 1992
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ((Buddy)MilliClock.friendSystem.friendsList.get(var3)).world; // L: 1993
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 1995
}
return 1;
return 1; // L: 1996
} else if (var0 == ScriptOpcodes.FRIEND_GETRANK) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (MilliClock.friendSystem.method1939() && var3 >= 0 && var3 < MilliClock.friendSystem.friendsList.getSize()) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ((Buddy)MilliClock.friendSystem.friendsList.get(var3)).rank;
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 1999
if (MilliClock.friendSystem.method1939() && var3 >= 0 && var3 < MilliClock.friendSystem.friendsList.getSize()) { // L: 2000
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ((Buddy)MilliClock.friendSystem.friendsList.get(var3)).rank; // L: 2001
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 2003
}
return 1;
return 1; // L: 2004
} else {
String var5;
if (var0 == ScriptOpcodes.FRIEND_SETRANK) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
int var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
GrandExchangeOfferOwnWorldComparator.method1359(var5, var6);
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2007
int var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2008
GrandExchangeOfferOwnWorldComparator.method1359(var5, var6); // L: 2009
return 1; // L: 2010
} else if (var0 == ScriptOpcodes.FRIEND_ADD) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
MilliClock.friendSystem.addFriend(var5);
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2013
MilliClock.friendSystem.addFriend(var5); // L: 2014
return 1; // L: 2015
} else if (var0 == ScriptOpcodes.FRIEND_DEL) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
MilliClock.friendSystem.removeFriend(var5);
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2018
MilliClock.friendSystem.removeFriend(var5); // L: 2019
return 1; // L: 2020
} else if (var0 == ScriptOpcodes.IGNORE_ADD) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
MilliClock.friendSystem.addIgnore(var5);
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2023
MilliClock.friendSystem.addIgnore(var5); // L: 2024
return 1; // L: 2025
} else if (var0 == ScriptOpcodes.IGNORE_DEL) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
MilliClock.friendSystem.removeIgnore(var5);
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2028
MilliClock.friendSystem.removeIgnore(var5); // L: 2029
return 1; // L: 2030
} else if (var0 == ScriptOpcodes.FRIEND_TEST) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
var5 = class22.method220(var5);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = MilliClock.friendSystem.isFriended(new Username(var5, GrandExchangeOfferUnitPriceComparator.loginType), false) ? 1 : 0;
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2033
var5 = class22.method220(var5); // L: 2034
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = MilliClock.friendSystem.isFriended(new Username(var5, GrandExchangeOfferUnitPriceComparator.loginType), false) ? 1 : 0; // L: 2035
return 1; // L: 2036
} else if (var0 == ScriptOpcodes.CLAN_GETCHATDISPLAYNAME) {
if (WorldMapArea.clanChat != null) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapArea.clanChat.name;
if (WorldMapArea.clanChat != null) { // L: 2039
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapArea.clanChat.name; // L: 2040
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 2042
}
return 1;
return 1; // L: 2043
} else if (var0 == ScriptOpcodes.CLAN_GETCHATCOUNT) {
if (WorldMapArea.clanChat != null) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapArea.clanChat.getSize();
if (WorldMapArea.clanChat != null) { // L: 2046
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapArea.clanChat.getSize(); // L: 2047
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 2049
}
return 1;
return 1; // L: 2050
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERNAME) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize()) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapArea.clanChat.get(var3).getUsername().getName();
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2053
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize()) { // L: 2054
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapArea.clanChat.get(var3).getUsername().getName(); // L: 2055
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 2057
}
return 1;
return 1; // L: 2058
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERWORLD) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize()) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ((Buddy)WorldMapArea.clanChat.get(var3)).getWorld();
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2061
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize()) { // L: 2062
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ((Buddy)WorldMapArea.clanChat.get(var3)).getWorld(); // L: 2063
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 2065
}
return 1;
return 1; // L: 2066
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERRANK) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize()) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ((Buddy)WorldMapArea.clanChat.get(var3)).rank;
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2069
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize()) { // L: 2070
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = ((Buddy)WorldMapArea.clanChat.get(var3)).rank; // L: 2071
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 2073
}
return 1;
return 1; // L: 2074
} else if (var0 == ScriptOpcodes.CLAN_GETCHATMINKICK) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapArea.clanChat != null ? WorldMapArea.clanChat.minKick : 0;
return 1;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapArea.clanChat != null ? WorldMapArea.clanChat.minKick : 0; // L: 2077
return 1; // L: 2078
} else if (var0 == ScriptOpcodes.CLAN_KICKUSER) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Tiles.clanKickUser(var5);
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2081
Tiles.clanKickUser(var5); // L: 2082
return 1; // L: 2083
} else if (var0 == ScriptOpcodes.CLAN_GETCHATRANK) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapArea.clanChat != null ? WorldMapArea.clanChat.rank : 0;
return 1;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapArea.clanChat != null ? WorldMapArea.clanChat.rank * 120160835 * 1015634539 : 0; // L: 2086
return 1; // L: 2087
} else if (var0 == ScriptOpcodes.CLAN_JOINCHAT) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Varcs.Clan_joinChat(var5);
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2090
Varcs.Clan_joinChat(var5); // L: 2091
return 1; // L: 2092
} else if (var0 == ScriptOpcodes.CLAN_LEAVECHAT) {
BZip2State.Clan_leaveChat();
return 1;
BZip2State.Clan_leaveChat(); // L: 2095
return 1; // L: 2096
} else if (var0 == ScriptOpcodes.IGNORE_COUNT) {
if (!MilliClock.friendSystem.method1939()) {
if (!MilliClock.friendSystem.method1939()) { // L: 2099
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1;
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = MilliClock.friendSystem.ignoreList.getSize();
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = MilliClock.friendSystem.ignoreList.getSize(); // L: 2100
}
return 1;
return 1; // L: 2101
} else if (var0 == ScriptOpcodes.IGNORE_GETNAME) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (MilliClock.friendSystem.method1939() && var3 >= 0 && var3 < MilliClock.friendSystem.ignoreList.getSize()) {
Ignored var4 = (Ignored)MilliClock.friendSystem.ignoreList.get(var3);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getName();
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getPreviousName();
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2104
if (MilliClock.friendSystem.method1939() && var3 >= 0 && var3 < MilliClock.friendSystem.ignoreList.getSize()) { // L: 2105
Ignored var4 = (Ignored)MilliClock.friendSystem.ignoreList.get(var3); // L: 2106
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getName(); // L: 2107
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getPreviousName(); // L: 2108
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 2111
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 2112
}
return 1;
return 1; // L: 2114
} else if (var0 == ScriptOpcodes.IGNORE_TEST) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
var5 = class22.method220(var5);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = MilliClock.friendSystem.isIgnored(new Username(var5, GrandExchangeOfferUnitPriceComparator.loginType)) ? 1 : 0;
return 1;
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2117
var5 = class22.method220(var5); // L: 2118
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = MilliClock.friendSystem.isIgnored(new Username(var5, GrandExchangeOfferUnitPriceComparator.loginType)) ? 1 : 0; // L: 2119
return 1; // L: 2120
} else if (var0 == ScriptOpcodes.CLAN_ISSELF) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize() && WorldMapArea.clanChat.get(var3).getUsername().equals(PlayerAppearance.localPlayer.username)) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1;
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2123
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize() && WorldMapArea.clanChat.get(var3).getUsername().equals(PlayerAppearance.localPlayer.username)) { // L: 2124
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1; // L: 2125
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 2127
}
return 1;
return 1; // L: 2128
} else if (var0 == ScriptOpcodes.CLAN_GETCHATOWNERNAME) {
if (WorldMapArea.clanChat != null && WorldMapArea.clanChat.owner != null) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapArea.clanChat.owner;
if (WorldMapArea.clanChat != null && WorldMapArea.clanChat.owner != null) { // L: 2131
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapArea.clanChat.owner; // L: 2132
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 2134
}
return 1;
return 1; // L: 2135
} else if (var0 == ScriptOpcodes.CLAN_ISFRIEND) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize() && ((ClanMate)WorldMapArea.clanChat.get(var3)).isFriend()) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1;
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2138
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize() && ((ClanMate)WorldMapArea.clanChat.get(var3)).isFriend()) { // L: 2139
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1; // L: 2140
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 2142
}
return 1;
return 1; // L: 2143
} else if (var0 != ScriptOpcodes.CLAN_ISIGNORE) {
if (var0 == 3628) {
MilliClock.friendSystem.friendsList.removeComparator();
return 1;
MilliClock.friendSystem.friendsList.removeComparator(); // L: 2154
return 1; // L: 2155
} else {
boolean var7;
if (var0 == 3629) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator1(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2158
MilliClock.friendSystem.friendsList.addComparator(new UserComparator1(var7)); // L: 2159
return 1; // L: 2160
} else if (var0 == 3630) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator2(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2163
MilliClock.friendSystem.friendsList.addComparator(new UserComparator2(var7)); // L: 2164
return 1; // L: 2165
} else if (var0 == 3631) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator3(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2168
MilliClock.friendSystem.friendsList.addComparator(new UserComparator3(var7)); // L: 2169
return 1; // L: 2170
} else if (var0 == 3632) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator4(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2173
MilliClock.friendSystem.friendsList.addComparator(new UserComparator4(var7)); // L: 2174
return 1; // L: 2175
} else if (var0 == 3633) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator5(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2178
MilliClock.friendSystem.friendsList.addComparator(new UserComparator5(var7)); // L: 2179
return 1; // L: 2180
} else if (var0 == 3634) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator6(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2183
MilliClock.friendSystem.friendsList.addComparator(new UserComparator6(var7)); // L: 2184
return 1; // L: 2185
} else if (var0 == 3635) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator7(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2188
MilliClock.friendSystem.friendsList.addComparator(new UserComparator7(var7)); // L: 2189
return 1; // L: 2190
} else if (var0 == 3636) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator8(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2193
MilliClock.friendSystem.friendsList.addComparator(new UserComparator8(var7)); // L: 2194
return 1; // L: 2195
} else if (var0 == 3637) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator9(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2198
MilliClock.friendSystem.friendsList.addComparator(new UserComparator9(var7)); // L: 2199
return 1; // L: 2200
} else if (var0 == 3638) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new UserComparator10(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2203
MilliClock.friendSystem.friendsList.addComparator(new UserComparator10(var7)); // L: 2204
return 1; // L: 2205
} else if (var0 == 3639) {
MilliClock.friendSystem.friendsList.sort();
return 1;
MilliClock.friendSystem.friendsList.sort(); // L: 2208
return 1; // L: 2209
} else if (var0 == 3640) {
MilliClock.friendSystem.ignoreList.removeComparator();
return 1;
MilliClock.friendSystem.ignoreList.removeComparator(); // L: 2212
return 1; // L: 2213
} else if (var0 == 3641) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.ignoreList.addComparator(new UserComparator1(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2216
MilliClock.friendSystem.ignoreList.addComparator(new UserComparator1(var7)); // L: 2217
return 1; // L: 2218
} else if (var0 == 3642) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.ignoreList.addComparator(new UserComparator2(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2221
MilliClock.friendSystem.ignoreList.addComparator(new UserComparator2(var7)); // L: 2222
return 1; // L: 2223
} else if (var0 == 3643) {
MilliClock.friendSystem.ignoreList.sort();
return 1;
MilliClock.friendSystem.ignoreList.sort(); // L: 2226
return 1; // L: 2227
} else if (var0 == 3644) {
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.removeComparator();
if (WorldMapArea.clanChat != null) { // L: 2230
WorldMapArea.clanChat.removeComparator(); // L: 2231
}
return 1;
return 1; // L: 2233
} else if (var0 == 3645) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator1(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2236
if (WorldMapArea.clanChat != null) { // L: 2237
WorldMapArea.clanChat.addComparator(new UserComparator1(var7)); // L: 2238
}
return 1;
return 1; // L: 2240
} else if (var0 == 3646) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator2(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2243
if (WorldMapArea.clanChat != null) { // L: 2244
WorldMapArea.clanChat.addComparator(new UserComparator2(var7)); // L: 2245
}
return 1;
return 1; // L: 2247
} else if (var0 == 3647) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator3(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2250
if (WorldMapArea.clanChat != null) { // L: 2251
WorldMapArea.clanChat.addComparator(new UserComparator3(var7)); // L: 2252
}
return 1;
return 1; // L: 2254
} else if (var0 == 3648) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator4(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2257
if (WorldMapArea.clanChat != null) { // L: 2258
WorldMapArea.clanChat.addComparator(new UserComparator4(var7)); // L: 2259
}
return 1;
return 1; // L: 2261
} else if (var0 == 3649) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator5(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2264
if (WorldMapArea.clanChat != null) { // L: 2265
WorldMapArea.clanChat.addComparator(new UserComparator5(var7)); // L: 2266
}
return 1;
return 1; // L: 2268
} else if (var0 == 3650) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator6(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2271
if (WorldMapArea.clanChat != null) { // L: 2272
WorldMapArea.clanChat.addComparator(new UserComparator6(var7)); // L: 2273
}
return 1;
return 1; // L: 2275
} else if (var0 == 3651) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator7(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2278
if (WorldMapArea.clanChat != null) { // L: 2279
WorldMapArea.clanChat.addComparator(new UserComparator7(var7)); // L: 2280
}
return 1;
return 1; // L: 2282
} else if (var0 == 3652) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator8(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2285
if (WorldMapArea.clanChat != null) { // L: 2286
WorldMapArea.clanChat.addComparator(new UserComparator8(var7)); // L: 2287
}
return 1;
return 1; // L: 2289
} else if (var0 == 3653) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator9(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2292
if (WorldMapArea.clanChat != null) { // L: 2293
WorldMapArea.clanChat.addComparator(new UserComparator9(var7)); // L: 2294
}
return 1;
return 1; // L: 2296
} else if (var0 == 3654) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new UserComparator10(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2299
if (WorldMapArea.clanChat != null) { // L: 2300
WorldMapArea.clanChat.addComparator(new UserComparator10(var7)); // L: 2301
}
return 1;
return 1; // L: 2303
} else if (var0 == 3655) {
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.sort();
if (WorldMapArea.clanChat != null) { // L: 2306
WorldMapArea.clanChat.sort(); // L: 2307
}
return 1;
return 1; // L: 2309
} else if (var0 == 3656) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
MilliClock.friendSystem.friendsList.addComparator(new BuddyRankComparator(var7));
return 1;
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2312
MilliClock.friendSystem.friendsList.addComparator(new BuddyRankComparator(var7)); // L: 2313
return 1; // L: 2314
} else if (var0 == 3657) {
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.addComparator(new BuddyRankComparator(var7));
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2317
if (WorldMapArea.clanChat != null) { // L: 2318
WorldMapArea.clanChat.addComparator(new BuddyRankComparator(var7)); // L: 2319
}
return 1;
return 1; // L: 2321
} else {
return 2;
return 2; // L: 2323
}
}
} else {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize() && ((ClanMate)WorldMapArea.clanChat.get(var3)).isIgnored()) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1;
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2146
if (WorldMapArea.clanChat != null && var3 < WorldMapArea.clanChat.getSize() && ((ClanMate)WorldMapArea.clanChat.get(var3)).isIgnored()) { // L: 2147
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1; // L: 2148
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 2150
}
return 1;
return 1; // L: 2151
}
}
}
@@ -388,12 +388,12 @@ public class ApproximateRouteStrategy extends RouteStrategy {
)
@Export("addCancelMenuEntry")
static void addCancelMenuEntry() {
Client.menuOptionsCount = 0;
Client.isMenuOpen = false;
Client.menuActions[0] = "Cancel";
Client.menuTargets[0] = "";
Client.menuOpcodes[0] = 1006;
Client.menuShiftClick[0] = false;
Client.menuOptionsCount = 1;
}
Client.menuOptionsCount = 0; // L: 7313
Client.isMenuOpen = false; // L: 7314
Client.menuActions[0] = "Cancel"; // L: 7316
Client.menuTargets[0] = ""; // L: 7317
Client.menuOpcodes[0] = 1006; // L: 7318
Client.menuShiftClick[0] = false; // L: 7319
Client.menuOptionsCount = 1; // L: 7320
} // L: 7321
}

View File

@@ -55,33 +55,33 @@ public class Archive extends AbstractArchive {
int field3191;
static {
Archive_crc = new CRC32();
Archive_crc = new CRC32(); // L: 17
}
@ObfuscatedSignature(
descriptor = "(Llx;Llx;IZZZ)V"
)
public Archive(ArchiveDisk var1, ArchiveDisk var2, int var3, boolean var4, boolean var5, boolean var6) {
super(var4, var5);
this.field3185 = false;
this.field3192 = false;
this.field3191 = -1;
this.archiveDisk = var1;
this.masterDisk = var2;
this.index = var3;
this.field3192 = var6;
int var8 = this.index;
if (WorldMapLabel.NetCache_reference != null) {
WorldMapLabel.NetCache_reference.offset = var8 * 8 + 5;
int var9 = WorldMapLabel.NetCache_reference.readInt();
int var10 = WorldMapLabel.NetCache_reference.readInt();
this.loadIndex(var9, var10);
super(var4, var5); // L: 23
this.field3185 = false; // L: 14
this.field3192 = false; // L: 15
this.field3191 = -1; // L: 20
this.archiveDisk = var1; // L: 24
this.masterDisk = var2; // L: 25
this.index = var3; // L: 26
this.field3192 = var6; // L: 27
int var8 = this.index; // L: 29
if (WorldMapLabel.NetCache_reference != null) { // L: 31
WorldMapLabel.NetCache_reference.offset = var8 * 8 + 5; // L: 32
int var9 = WorldMapLabel.NetCache_reference.readInt(); // L: 33
int var10 = WorldMapLabel.NetCache_reference.readInt(); // L: 34
this.loadIndex(var9, var10); // L: 35
} else {
Widget.requestNetFile((Archive)null, 255, 255, 0, (byte)0, true);
NetCache.NetCache_archives[var8] = this;
Widget.requestNetFile((Archive)null, 255, 255, 0, (byte)0, true); // L: 38
NetCache.NetCache_archives[var8] = this; // L: 39
}
}
} // L: 41
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -90,14 +90,14 @@ public class Archive extends AbstractArchive {
)
@Export("loadRegionFromGroup")
void loadRegionFromGroup(int var1) {
int var2 = this.index;
long var3 = (long)((var2 << 16) + var1);
NetFileRequest var5 = (NetFileRequest)NetCache.NetCache_pendingWrites.get(var3);
if (var5 != null) {
NetCache.NetCache_pendingWritesQueue.addLast(var5);
int var2 = this.index; // L: 66
long var3 = (long)((var2 << 16) + var1); // L: 68
NetFileRequest var5 = (NetFileRequest)NetCache.NetCache_pendingWrites.get(var3); // L: 69
if (var5 != null) { // L: 70
NetCache.NetCache_pendingWritesQueue.addLast(var5); // L: 71
}
}
} // L: 73
@ObfuscatedName("l")
@ObfuscatedSignature(
@@ -106,21 +106,21 @@ public class Archive extends AbstractArchive {
)
@Export("groupLoadPercent")
int groupLoadPercent(int var1) {
if (super.groups[var1] != null) {
if (super.groups[var1] != null) { // L: 277
return 100;
} else if (this.validGroups[var1]) {
} else if (this.validGroups[var1]) { // L: 278
return 100;
} else {
int var3 = this.index;
long var4 = (long)((var3 << 16) + var1);
int var3 = this.index; // L: 280
long var4 = (long)((var3 << 16) + var1); // L: 282
int var2;
if (NetCache.NetCache_currentResponse != null && NetCache.NetCache_currentResponse.key == var4) {
var2 = class206.NetCache_responseArchiveBuffer.offset * 99 / (class206.NetCache_responseArchiveBuffer.array.length - NetCache.NetCache_currentResponse.padding) + 1;
if (NetCache.NetCache_currentResponse != null && NetCache.NetCache_currentResponse.key == var4) { // L: 283
var2 = class206.NetCache_responseArchiveBuffer.offset * 99 / (class206.NetCache_responseArchiveBuffer.array.length - NetCache.NetCache_currentResponse.padding) + 1; // L: 287
} else {
var2 = 0;
var2 = 0; // L: 284
}
return var2;
return var2; // L: 289
}
}
@@ -131,29 +131,29 @@ public class Archive extends AbstractArchive {
)
@Export("loadGroup")
void loadGroup(int var1) {
if (this.archiveDisk != null && this.validGroups != null && this.validGroups[var1]) {
ArchiveDisk var2 = this.archiveDisk;
byte[] var4 = null;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) {
for (ArchiveDiskAction var6 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.last(); var6 != null; var6 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.previous()) {
if (var6.key == (long)var1 && var2 == var6.archiveDisk && var6.type == 0) {
var4 = var6.data;
break;
if (this.archiveDisk != null && this.validGroups != null && this.validGroups[var1]) { // L: 76
ArchiveDisk var2 = this.archiveDisk; // L: 77
byte[] var4 = null; // L: 80
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) { // L: 81
for (ArchiveDiskAction var6 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.last(); var6 != null; var6 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.previous()) { // L: 82
if (var6.key == (long)var1 && var2 == var6.archiveDisk && var6.type == 0) { // L: 83
var4 = var6.data; // L: 84
break; // L: 85
}
}
}
if (var4 != null) {
this.load(var2, var1, var4, true);
if (var4 != null) { // L: 89
this.load(var2, var1, var4, true); // L: 90
} else {
byte[] var5 = var2.read(var1);
this.load(var2, var1, var5, true);
byte[] var5 = var2.read(var1); // L: 93
this.load(var2, var1, var5, true); // L: 94
}
} else {
Widget.requestNetFile(this, this.index, var1, super.groupCrcs[var1], (byte)2, true);
Widget.requestNetFile(this, this.index, var1, super.groupCrcs[var1], (byte)2, true); // L: 97
}
}
} // L: 98
@ObfuscatedName("cv")
@ObfuscatedSignature(
@@ -161,7 +161,7 @@ public class Archive extends AbstractArchive {
garbageValue = "2"
)
public boolean method4304() {
return this.field3185;
return this.field3185; // L: 44
}
@ObfuscatedName("cs")
@@ -171,26 +171,26 @@ public class Archive extends AbstractArchive {
)
@Export("percentage")
public int percentage() {
if (this.field3185) {
if (this.field3185) { // L: 48
return 100;
} else if (super.groups != null) {
} else if (super.groups != null) { // L: 49
return 99;
} else {
int var2 = this.index;
long var3 = (long)(var2 + 16711680);
int var2 = this.index; // L: 51
long var3 = (long)(var2 + 16711680); // L: 53
int var1;
if (NetCache.NetCache_currentResponse != null && NetCache.NetCache_currentResponse.key == var3) {
var1 = class206.NetCache_responseArchiveBuffer.offset * 99 / (class206.NetCache_responseArchiveBuffer.array.length - NetCache.NetCache_currentResponse.padding) + 1;
if (NetCache.NetCache_currentResponse != null && NetCache.NetCache_currentResponse.key == var3) { // L: 54
var1 = class206.NetCache_responseArchiveBuffer.offset * 99 / (class206.NetCache_responseArchiveBuffer.array.length - NetCache.NetCache_currentResponse.padding) + 1; // L: 58
} else {
var1 = 0;
var1 = 0; // L: 55
}
int var5 = var1;
if (var1 >= 100) {
int var5 = var1; // L: 60
if (var1 >= 100) { // L: 61
var5 = 99;
}
return var5;
return var5; // L: 62
}
}
@@ -201,32 +201,32 @@ public class Archive extends AbstractArchive {
)
@Export("loadIndex")
public void loadIndex(int var1, int var2) {
this.indexCrc = var1;
this.indexVersion = var2;
if (this.masterDisk != null) {
int var3 = this.index;
ArchiveDisk var4 = this.masterDisk;
byte[] var6 = null;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) {
for (ArchiveDiskAction var8 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.last(); var8 != null; var8 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.previous()) {
if ((long)var3 == var8.key && var4 == var8.archiveDisk && var8.type == 0) {
var6 = var8.data;
break;
this.indexCrc = var1; // L: 101
this.indexVersion = var2; // L: 102
if (this.masterDisk != null) { // L: 103
int var3 = this.index; // L: 104
ArchiveDisk var4 = this.masterDisk; // L: 105
byte[] var6 = null; // L: 108
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) { // L: 109
for (ArchiveDiskAction var8 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.last(); var8 != null; var8 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.previous()) { // L: 110
if ((long)var3 == var8.key && var4 == var8.archiveDisk && var8.type == 0) { // L: 111
var6 = var8.data; // L: 112
break; // L: 113
}
}
}
if (var6 != null) {
this.load(var4, var3, var6, true);
if (var6 != null) { // L: 117
this.load(var4, var3, var6, true); // L: 118
} else {
byte[] var7 = var4.read(var3);
this.load(var4, var3, var7, true);
byte[] var7 = var4.read(var3); // L: 121
this.load(var4, var3, var7, true); // L: 122
}
} else {
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true);
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true); // L: 125
}
}
} // L: 126
@ObfuscatedName("co")
@ObfuscatedSignature(
@@ -235,43 +235,43 @@ public class Archive extends AbstractArchive {
)
@Export("write")
public void write(int var1, byte[] var2, boolean var3, boolean var4) {
if (var3) {
if (this.field3185) {
throw new RuntimeException();
if (var3) { // L: 129
if (this.field3185) { // L: 130
throw new RuntimeException(); // L: 131
}
if (this.masterDisk != null) {
if (this.masterDisk != null) { // L: 133
KeyHandler.method872(this.index, var2, this.masterDisk);
}
this.decodeIndex(var2);
this.loadAllLocal();
this.decodeIndex(var2); // L: 134
this.loadAllLocal(); // L: 135
} else {
var2[var2.length - 2] = (byte)(super.groupVersions[var1] >> 8);
var2[var2.length - 1] = (byte)super.groupVersions[var1];
if (this.archiveDisk != null) {
KeyHandler.method872(var1, var2, this.archiveDisk);
this.validGroups[var1] = true;
var2[var2.length - 2] = (byte)(super.groupVersions[var1] >> 8); // L: 138
var2[var2.length - 1] = (byte)super.groupVersions[var1]; // L: 139
if (this.archiveDisk != null) { // L: 140
KeyHandler.method872(var1, var2, this.archiveDisk); // L: 141
this.validGroups[var1] = true; // L: 142
}
if (var4) {
Object[] var5 = super.groups;
if (var4) { // L: 144
Object[] var5 = super.groups; // L: 145
Object var7;
if (var2 == null) {
var7 = null;
} else if (var2.length > 136) {
DirectByteArrayCopier var8 = new DirectByteArrayCopier();
var8.set(var2);
var7 = var8;
if (var2 == null) { // L: 149
var7 = null; // L: 150
} else if (var2.length > 136) { // L: 153
DirectByteArrayCopier var8 = new DirectByteArrayCopier(); // L: 155
var8.set(var2); // L: 156
var7 = var8; // L: 157
} else {
var7 = var2;
var7 = var2; // L: 171
}
var5[var1] = var7;
var5[var1] = var7; // L: 173
}
}
}
} // L: 176
@ObfuscatedName("dh")
@ObfuscatedSignature(
@@ -281,88 +281,88 @@ public class Archive extends AbstractArchive {
@Export("load")
void load(ArchiveDisk var1, int var2, byte[] var3, boolean var4) {
int var5;
if (var1 == this.masterDisk) {
if (this.field3185) {
throw new RuntimeException();
if (var1 == this.masterDisk) { // L: 179
if (this.field3185) { // L: 180
throw new RuntimeException(); // L: 181
}
if (var3 == null) {
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true);
return;
if (var3 == null) { // L: 183
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true); // L: 184
return; // L: 185
}
Archive_crc.reset();
Archive_crc.update(var3, 0, var3.length);
var5 = (int)Archive_crc.getValue();
if (var5 != this.indexCrc) {
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true);
return;
Archive_crc.reset(); // L: 187
Archive_crc.update(var3, 0, var3.length); // L: 188
var5 = (int)Archive_crc.getValue(); // L: 189
if (var5 != this.indexCrc) { // L: 190
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true); // L: 191
return; // L: 192
}
Buffer var11 = new Buffer(PrivateChatMode.decompressBytes(var3));
int var12 = var11.readUnsignedByte();
if (var12 != 5 && var12 != 6) {
Buffer var11 = new Buffer(PrivateChatMode.decompressBytes(var3)); // L: 194
int var12 = var11.readUnsignedByte(); // L: 195
if (var12 != 5 && var12 != 6) { // L: 196
throw new RuntimeException(var12 + "," + this.index + "," + var2);
}
int var8 = 0;
if (var12 >= 6) {
int var8 = 0; // L: 197
if (var12 >= 6) { // L: 198
var8 = var11.readInt();
}
if (var8 != this.indexVersion) {
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true);
return;
if (var8 != this.indexVersion) { // L: 199
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true); // L: 200
return; // L: 201
}
this.decodeIndex(var3);
this.loadAllLocal();
this.decodeIndex(var3); // L: 203
this.loadAllLocal(); // L: 204
} else {
if (!var4 && var2 == this.field3191) {
this.field3185 = true;
if (!var4 && var2 == this.field3191) { // L: 207
this.field3185 = true; // L: 208
}
if (var3 == null || var3.length <= 2) {
this.validGroups[var2] = false;
if (this.field3192 || var4) {
if (var3 == null || var3.length <= 2) { // L: 210
this.validGroups[var2] = false; // L: 211
if (this.field3192 || var4) { // L: 212
Widget.requestNetFile(this, this.index, var2, super.groupCrcs[var2], (byte)2, var4);
}
return;
return; // L: 213
}
Archive_crc.reset();
Archive_crc.update(var3, 0, var3.length - 2);
var5 = (int)Archive_crc.getValue();
int var6 = ((var3[var3.length - 2] & 255) << 8) + (var3[var3.length - 1] & 255);
if (var5 != super.groupCrcs[var2] || var6 != super.groupVersions[var2]) {
this.validGroups[var2] = false;
if (this.field3192 || var4) {
Archive_crc.reset(); // L: 215
Archive_crc.update(var3, 0, var3.length - 2); // L: 216
var5 = (int)Archive_crc.getValue(); // L: 217
int var6 = ((var3[var3.length - 2] & 255) << 8) + (var3[var3.length - 1] & 255); // L: 218
if (var5 != super.groupCrcs[var2] || var6 != super.groupVersions[var2]) { // L: 219
this.validGroups[var2] = false; // L: 220
if (this.field3192 || var4) { // L: 221
Widget.requestNetFile(this, this.index, var2, super.groupCrcs[var2], (byte)2, var4);
}
return;
return; // L: 222
}
this.validGroups[var2] = true;
if (var4) {
Object[] var7 = super.groups;
this.validGroups[var2] = true; // L: 224
if (var4) { // L: 225
Object[] var7 = super.groups; // L: 226
Object var9;
if (var3 == null) {
var9 = null;
} else if (var3.length > 136) {
DirectByteArrayCopier var10 = new DirectByteArrayCopier();
var10.set(var3);
var9 = var10;
if (var3 == null) { // L: 230
var9 = null; // L: 231
} else if (var3.length > 136) { // L: 234
DirectByteArrayCopier var10 = new DirectByteArrayCopier(); // L: 236
var10.set(var3); // L: 237
var9 = var10; // L: 238
} else {
var9 = var3;
var9 = var3; // L: 252
}
var7[var2] = var9;
var7[var2] = var9; // L: 254
}
}
}
} // L: 257
@ObfuscatedName("dl")
@ObfuscatedSignature(
@@ -371,31 +371,31 @@ public class Archive extends AbstractArchive {
)
@Export("loadAllLocal")
void loadAllLocal() {
this.validGroups = new boolean[super.groups.length];
this.validGroups = new boolean[super.groups.length]; // L: 260
int var1;
for (var1 = 0; var1 < this.validGroups.length; ++var1) {
for (var1 = 0; var1 < this.validGroups.length; ++var1) { // L: 261
this.validGroups[var1] = false;
}
if (this.archiveDisk == null) {
this.field3185 = true;
if (this.archiveDisk == null) { // L: 262
this.field3185 = true; // L: 263
} else {
this.field3191 = -1;
this.field3191 = -1; // L: 266
for (var1 = 0; var1 < this.validGroups.length; ++var1) {
if (super.fileCounts[var1] > 0) {
Skills.method4147(var1, this.archiveDisk, this);
this.field3191 = var1;
for (var1 = 0; var1 < this.validGroups.length; ++var1) { // L: 267
if (super.fileCounts[var1] > 0) { // L: 268
Skills.method4147(var1, this.archiveDisk, this); // L: 269
this.field3191 = var1; // L: 270
}
}
if (this.field3191 == -1) {
if (this.field3191 == -1) { // L: 273
this.field3185 = true;
}
}
}
} // L: 264 274
@ObfuscatedName("du")
@ObfuscatedSignature(
@@ -403,7 +403,7 @@ public class Archive extends AbstractArchive {
garbageValue = "-215383381"
)
public boolean method4319(int var1) {
return this.validGroups[var1];
return this.validGroups[var1]; // L: 293
}
@ObfuscatedName("de")
@@ -412,7 +412,7 @@ public class Archive extends AbstractArchive {
garbageValue = "2"
)
public boolean method4305(int var1) {
return this.getGroupFileIds(var1) != null;
return this.getGroupFileIds(var1) != null; // L: 297
}
@ObfuscatedName("dw")
@@ -422,22 +422,22 @@ public class Archive extends AbstractArchive {
)
@Export("loadPercent")
public int loadPercent() {
int var1 = 0;
int var2 = 0;
int var1 = 0; // L: 301
int var2 = 0; // L: 302
int var3;
for (var3 = 0; var3 < super.groups.length; ++var3) {
if (super.fileCounts[var3] > 0) {
var1 += 100;
var2 += this.groupLoadPercent(var3);
for (var3 = 0; var3 < super.groups.length; ++var3) { // L: 303
if (super.fileCounts[var3] > 0) { // L: 304
var1 += 100; // L: 305
var2 += this.groupLoadPercent(var3); // L: 306
}
}
if (var1 == 0) {
if (var1 == 0) { // L: 309
return 100;
} else {
var3 = var2 * 100 / var1;
return var3;
var3 = var2 * 100 / var1; // L: 310
return var3; // L: 311
}
}
@@ -448,6 +448,6 @@ public class Archive extends AbstractArchive {
)
@Export("isWorldMapEvent")
public static boolean isWorldMapEvent(int var0) {
return var0 == 10 || var0 == 11 || var0 == 12 || var0 == 13 || var0 == 14 || var0 == 15 || var0 == 16 || var0 == 17;
return var0 == 10 || var0 == 11 || var0 == 12 || var0 == 13 || var0 == 14 || var0 == 15 || var0 == 16 || var0 == 17; // L: 19
}
}

View File

@@ -38,21 +38,21 @@ public final class ArchiveDisk {
int maxEntrySize;
static {
ArchiveDisk_buffer = new byte[520];
ArchiveDisk_buffer = new byte[520]; // L: 7
}
@ObfuscatedSignature(
descriptor = "(ILmz;Lmz;I)V"
)
public ArchiveDisk(int var1, BufferedFile var2, BufferedFile var3, int var4) {
this.datFile = null;
this.idxFile = null;
this.maxEntrySize = 65000;
this.archive = var1;
this.datFile = var2;
this.idxFile = var3;
this.maxEntrySize = var4;
}
this.datFile = null; // L: 8
this.idxFile = null; // L: 9
this.maxEntrySize = 65000; // L: 11
this.archive = var1; // L: 14
this.datFile = var2; // L: 15
this.idxFile = var3; // L: 16
this.maxEntrySize = var4; // L: 17
} // L: 18
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -61,89 +61,89 @@ public final class ArchiveDisk {
)
@Export("read")
public byte[] read(int var1) {
synchronized(this.datFile) {
synchronized(this.datFile) { // L: 21
try {
Object var10000;
if (this.idxFile.length() < (long)(var1 * 6 + 6)) {
if (this.idxFile.length() < (long)(var1 * 6 + 6)) { // L: 23
var10000 = null;
return (byte[])var10000;
} else {
this.idxFile.seek((long)(var1 * 6));
this.idxFile.read(ArchiveDisk_buffer, 0, 6);
int var3 = ((ArchiveDisk_buffer[0] & 255) << 16) + (ArchiveDisk_buffer[2] & 255) + ((ArchiveDisk_buffer[1] & 255) << 8);
int var4 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[3] & 255) << 16) + ((ArchiveDisk_buffer[4] & 255) << 8);
if (var3 < 0 || var3 > this.maxEntrySize) {
this.idxFile.seek((long)(var1 * 6)); // L: 24
this.idxFile.read(ArchiveDisk_buffer, 0, 6); // L: 25
int var3 = ((ArchiveDisk_buffer[0] & 255) << 16) + (ArchiveDisk_buffer[2] & 255) + ((ArchiveDisk_buffer[1] & 255) << 8); // L: 26
int var4 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[3] & 255) << 16) + ((ArchiveDisk_buffer[4] & 255) << 8); // L: 27
if (var3 < 0 || var3 > this.maxEntrySize) { // L: 28
var10000 = null;
return (byte[])var10000;
} else if (var4 <= 0 || (long)var4 > this.datFile.length() / 520L) {
} else if (var4 <= 0 || (long)var4 > this.datFile.length() / 520L) { // L: 29
var10000 = null;
return (byte[])var10000;
} else {
byte[] var5 = new byte[var3];
int var6 = 0;
byte[] var5 = new byte[var3]; // L: 30
int var6 = 0; // L: 31
for (int var7 = 0; var6 < var3; ++var7) {
if (var4 == 0) {
for (int var7 = 0; var6 < var3; ++var7) { // L: 32 33 65
if (var4 == 0) { // L: 34
var10000 = null;
return (byte[])var10000;
}
this.datFile.seek((long)var4 * 520L);
int var8 = var3 - var6;
this.datFile.seek((long)var4 * 520L); // L: 35
int var8 = var3 - var6; // L: 36
int var9;
int var10;
int var11;
int var12;
byte var13;
if (var1 > 65535) {
if (var8 > 510) {
if (var1 > 65535) { // L: 42
if (var8 > 510) { // L: 43
var8 = 510;
}
var13 = 10;
this.datFile.read(ArchiveDisk_buffer, 0, var13 + var8);
var9 = ((ArchiveDisk_buffer[1] & 255) << 16) + ((ArchiveDisk_buffer[0] & 255) << 24) + (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8);
var10 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[4] & 255) << 8);
var11 = (ArchiveDisk_buffer[8] & 255) + ((ArchiveDisk_buffer[7] & 255) << 8) + ((ArchiveDisk_buffer[6] & 255) << 16);
var12 = ArchiveDisk_buffer[9] & 255;
var13 = 10; // L: 44
this.datFile.read(ArchiveDisk_buffer, 0, var13 + var8); // L: 45
var9 = ((ArchiveDisk_buffer[1] & 255) << 16) + ((ArchiveDisk_buffer[0] & 255) << 24) + (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8); // L: 46
var10 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[4] & 255) << 8); // L: 47
var11 = (ArchiveDisk_buffer[8] & 255) + ((ArchiveDisk_buffer[7] & 255) << 8) + ((ArchiveDisk_buffer[6] & 255) << 16); // L: 48
var12 = ArchiveDisk_buffer[9] & 255; // L: 49
} else {
if (var8 > 512) {
if (var8 > 512) { // L: 52
var8 = 512;
}
var13 = 8;
this.datFile.read(ArchiveDisk_buffer, 0, var8 + var13);
var9 = (ArchiveDisk_buffer[1] & 255) + ((ArchiveDisk_buffer[0] & 255) << 8);
var10 = (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8);
var11 = ((ArchiveDisk_buffer[5] & 255) << 8) + ((ArchiveDisk_buffer[4] & 255) << 16) + (ArchiveDisk_buffer[6] & 255);
var12 = ArchiveDisk_buffer[7] & 255;
var13 = 8; // L: 53
this.datFile.read(ArchiveDisk_buffer, 0, var8 + var13); // L: 54
var9 = (ArchiveDisk_buffer[1] & 255) + ((ArchiveDisk_buffer[0] & 255) << 8); // L: 55
var10 = (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8); // L: 56
var11 = ((ArchiveDisk_buffer[5] & 255) << 8) + ((ArchiveDisk_buffer[4] & 255) << 16) + (ArchiveDisk_buffer[6] & 255); // L: 57
var12 = ArchiveDisk_buffer[7] & 255; // L: 58
}
if (var9 != var1 || var7 != var10 || var12 != this.archive) {
if (var9 != var1 || var7 != var10 || var12 != this.archive) { // L: 60
var10000 = null;
return (byte[])var10000;
}
if (var11 < 0 || (long)var11 > this.datFile.length() / 520L) {
if (var11 < 0 || (long)var11 > this.datFile.length() / 520L) { // L: 61
var10000 = null;
return (byte[])var10000;
}
int var14 = var13 + var8;
int var14 = var13 + var8; // L: 62
for (int var15 = var13; var15 < var14; ++var15) {
for (int var15 = var13; var15 < var14; ++var15) { // L: 63
var5[var6++] = ArchiveDisk_buffer[var15];
}
var4 = var11;
var4 = var11; // L: 64
}
byte[] var20 = var5;
return var20;
return var20; // L: 67
}
}
} catch (IOException var18) {
return null;
} catch (IOException var18) { // L: 69
return null; // L: 70
}
}
}
@@ -155,16 +155,16 @@ public final class ArchiveDisk {
)
@Export("write")
public boolean write(int var1, byte[] var2, int var3) {
synchronized(this.datFile) {
if (var3 >= 0 && var3 <= this.maxEntrySize) {
boolean var5 = this.write0(var1, var2, var3, true);
synchronized(this.datFile) { // L: 76
if (var3 >= 0 && var3 <= this.maxEntrySize) { // L: 77
boolean var5 = this.write0(var1, var2, var3, true); // L: 80
if (!var5) {
var5 = this.write0(var1, var2, var3, false);
var5 = this.write0(var1, var2, var3, false); // L: 81
}
return var5;
return var5; // L: 82
} else {
throw new IllegalArgumentException("" + this.archive + ',' + var1 + ',' + var3);
throw new IllegalArgumentException("" + this.archive + ',' + var1 + ',' + var3); // L: 78
}
}
}
@@ -176,161 +176,161 @@ public final class ArchiveDisk {
)
@Export("write0")
boolean write0(int var1, byte[] var2, int var3, boolean var4) {
synchronized(this.datFile) {
synchronized(this.datFile) { // L: 87
try {
int var6;
boolean var10000;
if (var4) {
if (this.idxFile.length() < (long)(var1 * 6 + 6)) {
if (var4) { // L: 90
if (this.idxFile.length() < (long)(var1 * 6 + 6)) { // L: 91
var10000 = false;
return var10000;
}
this.idxFile.seek((long)(var1 * 6));
this.idxFile.read(ArchiveDisk_buffer, 0, 6);
var6 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[3] & 255) << 16) + ((ArchiveDisk_buffer[4] & 255) << 8);
if (var6 <= 0 || (long)var6 > this.datFile.length() / 520L) {
this.idxFile.seek((long)(var1 * 6)); // L: 92
this.idxFile.read(ArchiveDisk_buffer, 0, 6); // L: 93
var6 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[3] & 255) << 16) + ((ArchiveDisk_buffer[4] & 255) << 8); // L: 94
if (var6 <= 0 || (long)var6 > this.datFile.length() / 520L) { // L: 95
var10000 = false;
return var10000;
}
} else {
var6 = (int)((this.datFile.length() + 519L) / 520L);
if (var6 == 0) {
var6 = (int)((this.datFile.length() + 519L) / 520L); // L: 98
if (var6 == 0) { // L: 99
var6 = 1;
}
}
ArchiveDisk_buffer[0] = (byte)(var3 >> 16);
ArchiveDisk_buffer[1] = (byte)(var3 >> 8);
ArchiveDisk_buffer[2] = (byte)var3;
ArchiveDisk_buffer[3] = (byte)(var6 >> 16);
ArchiveDisk_buffer[4] = (byte)(var6 >> 8);
ArchiveDisk_buffer[5] = (byte)var6;
this.idxFile.seek((long)(var1 * 6));
this.idxFile.write(ArchiveDisk_buffer, 0, 6);
int var7 = 0;
int var8 = 0;
ArchiveDisk_buffer[0] = (byte)(var3 >> 16); // L: 101
ArchiveDisk_buffer[1] = (byte)(var3 >> 8); // L: 102
ArchiveDisk_buffer[2] = (byte)var3; // L: 103
ArchiveDisk_buffer[3] = (byte)(var6 >> 16); // L: 104
ArchiveDisk_buffer[4] = (byte)(var6 >> 8); // L: 105
ArchiveDisk_buffer[5] = (byte)var6; // L: 106
this.idxFile.seek((long)(var1 * 6)); // L: 107
this.idxFile.write(ArchiveDisk_buffer, 0, 6); // L: 108
int var7 = 0; // L: 109
int var8 = 0; // L: 110
while (true) {
if (var7 < var3) {
if (var7 < var3) { // L: 111
label170: {
int var9 = 0;
int var9 = 0; // L: 112
int var10;
if (var4) {
this.datFile.seek(520L * (long)var6);
if (var4) { // L: 113
this.datFile.seek(520L * (long)var6); // L: 114
int var11;
int var12;
if (var1 > 65535) {
if (var1 > 65535) { // L: 118
try {
this.datFile.read(ArchiveDisk_buffer, 0, 10);
} catch (EOFException var17) {
break label170;
this.datFile.read(ArchiveDisk_buffer, 0, 10); // L: 120
} catch (EOFException var17) { // L: 122
break label170; // L: 123
}
var10 = ((ArchiveDisk_buffer[1] & 255) << 16) + ((ArchiveDisk_buffer[0] & 255) << 24) + (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8);
var11 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[4] & 255) << 8);
var9 = (ArchiveDisk_buffer[8] & 255) + ((ArchiveDisk_buffer[7] & 255) << 8) + ((ArchiveDisk_buffer[6] & 255) << 16);
var12 = ArchiveDisk_buffer[9] & 255;
var10 = ((ArchiveDisk_buffer[1] & 255) << 16) + ((ArchiveDisk_buffer[0] & 255) << 24) + (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8); // L: 125
var11 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[4] & 255) << 8); // L: 126
var9 = (ArchiveDisk_buffer[8] & 255) + ((ArchiveDisk_buffer[7] & 255) << 8) + ((ArchiveDisk_buffer[6] & 255) << 16); // L: 127
var12 = ArchiveDisk_buffer[9] & 255; // L: 128
} else {
try {
this.datFile.read(ArchiveDisk_buffer, 0, 8);
} catch (EOFException var16) {
break label170;
this.datFile.read(ArchiveDisk_buffer, 0, 8); // L: 132
} catch (EOFException var16) { // L: 134
break label170; // L: 135
}
var10 = (ArchiveDisk_buffer[1] & 255) + ((ArchiveDisk_buffer[0] & 255) << 8);
var11 = (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8);
var9 = ((ArchiveDisk_buffer[5] & 255) << 8) + ((ArchiveDisk_buffer[4] & 255) << 16) + (ArchiveDisk_buffer[6] & 255);
var12 = ArchiveDisk_buffer[7] & 255;
var10 = (ArchiveDisk_buffer[1] & 255) + ((ArchiveDisk_buffer[0] & 255) << 8); // L: 137
var11 = (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8); // L: 138
var9 = ((ArchiveDisk_buffer[5] & 255) << 8) + ((ArchiveDisk_buffer[4] & 255) << 16) + (ArchiveDisk_buffer[6] & 255); // L: 139
var12 = ArchiveDisk_buffer[7] & 255; // L: 140
}
if (var10 != var1 || var8 != var11 || var12 != this.archive) {
if (var10 != var1 || var8 != var11 || var12 != this.archive) { // L: 142
var10000 = false;
return var10000;
}
if (var9 < 0 || (long)var9 > this.datFile.length() / 520L) {
if (var9 < 0 || (long)var9 > this.datFile.length() / 520L) { // L: 143
var10000 = false;
return var10000;
}
}
if (var9 == 0) {
var4 = false;
var9 = (int)((this.datFile.length() + 519L) / 520L);
if (var9 == 0) {
if (var9 == 0) { // L: 145
var4 = false; // L: 146
var9 = (int)((this.datFile.length() + 519L) / 520L); // L: 147
if (var9 == 0) { // L: 148
++var9;
}
if (var9 == var6) {
if (var9 == var6) { // L: 149
++var9;
}
}
if (var1 > 65535) {
if (var3 - var7 <= 510) {
if (var1 > 65535) { // L: 151
if (var3 - var7 <= 510) { // L: 152
var9 = 0;
}
ArchiveDisk_buffer[0] = (byte)(var1 >> 24);
ArchiveDisk_buffer[1] = (byte)(var1 >> 16);
ArchiveDisk_buffer[2] = (byte)(var1 >> 8);
ArchiveDisk_buffer[3] = (byte)var1;
ArchiveDisk_buffer[4] = (byte)(var8 >> 8);
ArchiveDisk_buffer[5] = (byte)var8;
ArchiveDisk_buffer[6] = (byte)(var9 >> 16);
ArchiveDisk_buffer[7] = (byte)(var9 >> 8);
ArchiveDisk_buffer[8] = (byte)var9;
ArchiveDisk_buffer[9] = (byte)this.archive;
this.datFile.seek(520L * (long)var6);
this.datFile.write(ArchiveDisk_buffer, 0, 10);
var10 = var3 - var7;
if (var10 > 510) {
ArchiveDisk_buffer[0] = (byte)(var1 >> 24); // L: 153
ArchiveDisk_buffer[1] = (byte)(var1 >> 16); // L: 154
ArchiveDisk_buffer[2] = (byte)(var1 >> 8); // L: 155
ArchiveDisk_buffer[3] = (byte)var1; // L: 156
ArchiveDisk_buffer[4] = (byte)(var8 >> 8); // L: 157
ArchiveDisk_buffer[5] = (byte)var8; // L: 158
ArchiveDisk_buffer[6] = (byte)(var9 >> 16); // L: 159
ArchiveDisk_buffer[7] = (byte)(var9 >> 8); // L: 160
ArchiveDisk_buffer[8] = (byte)var9; // L: 161
ArchiveDisk_buffer[9] = (byte)this.archive; // L: 162
this.datFile.seek(520L * (long)var6); // L: 163
this.datFile.write(ArchiveDisk_buffer, 0, 10); // L: 164
var10 = var3 - var7; // L: 165
if (var10 > 510) { // L: 166
var10 = 510;
}
this.datFile.write(var2, var7, var10);
var7 += var10;
this.datFile.write(var2, var7, var10); // L: 167
var7 += var10; // L: 168
} else {
if (var3 - var7 <= 512) {
if (var3 - var7 <= 512) { // L: 171
var9 = 0;
}
ArchiveDisk_buffer[0] = (byte)(var1 >> 8);
ArchiveDisk_buffer[1] = (byte)var1;
ArchiveDisk_buffer[2] = (byte)(var8 >> 8);
ArchiveDisk_buffer[3] = (byte)var8;
ArchiveDisk_buffer[4] = (byte)(var9 >> 16);
ArchiveDisk_buffer[5] = (byte)(var9 >> 8);
ArchiveDisk_buffer[6] = (byte)var9;
ArchiveDisk_buffer[7] = (byte)this.archive;
this.datFile.seek(520L * (long)var6);
this.datFile.write(ArchiveDisk_buffer, 0, 8);
var10 = var3 - var7;
if (var10 > 512) {
ArchiveDisk_buffer[0] = (byte)(var1 >> 8); // L: 172
ArchiveDisk_buffer[1] = (byte)var1; // L: 173
ArchiveDisk_buffer[2] = (byte)(var8 >> 8); // L: 174
ArchiveDisk_buffer[3] = (byte)var8; // L: 175
ArchiveDisk_buffer[4] = (byte)(var9 >> 16); // L: 176
ArchiveDisk_buffer[5] = (byte)(var9 >> 8); // L: 177
ArchiveDisk_buffer[6] = (byte)var9; // L: 178
ArchiveDisk_buffer[7] = (byte)this.archive; // L: 179
this.datFile.seek(520L * (long)var6); // L: 180
this.datFile.write(ArchiveDisk_buffer, 0, 8); // L: 181
var10 = var3 - var7; // L: 182
if (var10 > 512) { // L: 183
var10 = 512;
}
this.datFile.write(var2, var7, var10);
var7 += var10;
this.datFile.write(var2, var7, var10); // L: 184
var7 += var10; // L: 185
}
var6 = var9;
++var8;
continue;
var6 = var9; // L: 187
++var8; // L: 188
continue; // L: 189
}
}
var10000 = true;
var10000 = true; // L: 190
return var10000;
}
} catch (IOException var18) {
return false;
} catch (IOException var18) { // L: 192
return false; // L: 193
}
}
}
public String toString() {
return "" + this.archive;
return "" + this.archive; // L: 198
}
}

View File

@@ -36,7 +36,7 @@ public class ArchiveDiskAction extends Node {
Archive archive;
ArchiveDiskAction() {
}
} // L: 12
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -45,69 +45,69 @@ public class ArchiveDiskAction extends Node {
)
@Export("isNumber")
public static boolean isNumber(CharSequence var0) {
boolean var2 = false;
boolean var3 = false;
int var4 = 0;
int var5 = var0.length();
boolean var2 = false; // L: 37
boolean var3 = false; // L: 38
int var4 = 0; // L: 39
int var5 = var0.length(); // L: 40
int var6 = 0;
boolean var1;
while (true) {
if (var6 >= var5) {
var1 = var3;
var1 = var3; // L: 70
break;
}
label84: {
char var7 = var0.charAt(var6);
if (var6 == 0) {
if (var7 == '-') {
var2 = true;
char var7 = var0.charAt(var6); // L: 42
if (var6 == 0) { // L: 43
if (var7 == '-') { // L: 44
var2 = true; // L: 45
break label84;
}
if (var7 == '+') {
if (var7 == '+') { // L: 48
break label84;
}
}
int var9;
if (var7 >= '0' && var7 <= '9') {
if (var7 >= '0' && var7 <= '9') { // L: 50
var9 = var7 - '0';
} else if (var7 >= 'A' && var7 <= 'Z') {
} else if (var7 >= 'A' && var7 <= 'Z') { // L: 51
var9 = var7 - '7';
} else {
if (var7 < 'a' || var7 > 'z') {
var1 = false;
if (var7 < 'a' || var7 > 'z') { // L: 52
var1 = false; // L: 54
break;
}
var9 = var7 - 'W';
}
if (var9 >= 10) {
var1 = false;
break;
if (var9 >= 10) { // L: 57
var1 = false; // L: 58
break; // L: 59
}
if (var2) {
if (var2) { // L: 61
var9 = -var9;
}
int var8 = var9 + var4 * 10;
if (var4 != var8 / 10) {
var1 = false;
int var8 = var9 + var4 * 10; // L: 62
if (var4 != var8 / 10) { // L: 63
var1 = false; // L: 64
break;
}
var4 = var8;
var3 = true;
var4 = var8; // L: 67
var3 = true; // L: 68
}
++var6;
++var6; // L: 41
}
return var1;
return var1; // L: 72
}
@ObfuscatedName("u")
@@ -117,16 +117,16 @@ public class ArchiveDiskAction extends Node {
)
@Export("getFrames")
static Frames getFrames(int var0) {
Frames var1 = (Frames)SequenceDefinition.SequenceDefinition_cachedFrames.get((long)var0);
if (var1 != null) {
Frames var1 = (Frames)SequenceDefinition.SequenceDefinition_cachedFrames.get((long)var0); // L: 187
if (var1 != null) { // L: 188
return var1;
} else {
var1 = UserComparator4.method3470(SequenceDefinition.SequenceDefinition_animationsArchive, SequenceDefinition.SequenceDefinition_skeletonsArchive, var0, false);
if (var1 != null) {
var1 = UserComparator4.method3470(SequenceDefinition.SequenceDefinition_animationsArchive, SequenceDefinition.SequenceDefinition_skeletonsArchive, var0, false); // L: 189
if (var1 != null) { // L: 190
SequenceDefinition.SequenceDefinition_cachedFrames.put(var1, (long)var0);
}
return var1;
return var1; // L: 191
}
}
}

View File

@@ -32,11 +32,11 @@ public class ArchiveDiskActionHandler implements Runnable {
static int[] Tiles_saturation;
static {
ArchiveDiskActionHandler_requestQueue = new NodeDeque();
ArchiveDiskActionHandler_responseQueue = new NodeDeque();
field3178 = 0;
ArchiveDiskActionHandler_requestQueue = new NodeDeque(); // L: 9
ArchiveDiskActionHandler_responseQueue = new NodeDeque(); // L: 10
field3178 = 0; // L: 11
ArchiveDiskActionHandler_lock = new Object();
}
} // L: 12
ArchiveDiskActionHandler() {
}
@@ -45,49 +45,49 @@ public class ArchiveDiskActionHandler implements Runnable {
try {
while (true) {
ArchiveDiskAction var1;
synchronized(ArchiveDiskActionHandler_requestQueue) {
var1 = (ArchiveDiskAction)ArchiveDiskActionHandler_requestQueue.last();
}
synchronized(ArchiveDiskActionHandler_requestQueue) { // L: 76
var1 = (ArchiveDiskAction)ArchiveDiskActionHandler_requestQueue.last(); // L: 77
} // L: 78
if (var1 != null) {
if (var1.type == 0) {
var1.archiveDisk.write((int)var1.key, var1.data, var1.data.length);
synchronized(ArchiveDiskActionHandler_requestQueue) {
var1.remove();
}
} else if (var1.type == 1) {
var1.data = var1.archiveDisk.read((int)var1.key);
synchronized(ArchiveDiskActionHandler_requestQueue) {
ArchiveDiskActionHandler_responseQueue.addFirst(var1);
}
if (var1 != null) { // L: 79
if (var1.type == 0) { // L: 80
var1.archiveDisk.write((int)var1.key, var1.data, var1.data.length); // L: 81
synchronized(ArchiveDiskActionHandler_requestQueue) { // L: 82
var1.remove(); // L: 83
} // L: 84
} else if (var1.type == 1) { // L: 86
var1.data = var1.archiveDisk.read((int)var1.key); // L: 87
synchronized(ArchiveDiskActionHandler_requestQueue) { // L: 88
ArchiveDiskActionHandler_responseQueue.addFirst(var1); // L: 89
} // L: 90
}
synchronized(ArchiveDiskActionHandler_lock) {
if (field3178 <= 1) {
field3178 = 0;
ArchiveDiskActionHandler_lock.notifyAll();
return;
synchronized(ArchiveDiskActionHandler_lock) { // L: 92
if (field3178 <= 1) { // L: 93
field3178 = 0; // L: 94
ArchiveDiskActionHandler_lock.notifyAll(); // L: 95
return; // L: 96
}
field3178 = 600;
field3178 = 600; // L: 98
}
} else {
class236.sleepExact(100L);
synchronized(ArchiveDiskActionHandler_lock) {
if (field3178 <= 1) {
field3178 = 0;
ArchiveDiskActionHandler_lock.notifyAll();
return;
class236.sleepExact(100L); // L: 102
synchronized(ArchiveDiskActionHandler_lock) { // L: 103
if (field3178 <= 1) { // L: 104
field3178 = 0; // L: 105
ArchiveDiskActionHandler_lock.notifyAll(); // L: 106
return; // L: 107
}
--field3178;
--field3178; // L: 109
}
}
}
} catch (Exception var13) {
PlayerAppearance.RunException_sendStackTrace((String)null, var13);
} catch (Exception var13) { // L: 114
PlayerAppearance.RunException_sendStackTrace((String)null, var13); // L: 115
}
}
} // L: 117
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -95,16 +95,16 @@ public class ArchiveDiskActionHandler implements Runnable {
garbageValue = "961736597"
)
public static double[] method4294(double var0, double var2, int var4) {
int var5 = var4 * 2 + 1;
double[] var6 = new double[var5];
int var5 = var4 * 2 + 1; // L: 13
double[] var6 = new double[var5]; // L: 14
int var7 = -var4;
for (int var8 = 0; var7 <= var4; ++var8) {
double var11 = FriendSystem.method1972(((double)var7 - var0) / var2) / var2;
var6[var8] = var11;
++var7;
double var11 = FriendSystem.method1972(((double)var7 - var0) / var2) / var2; // L: 20
var6[var8] = var11; // L: 22
++var7; // L: 15
}
return var6;
return var6; // L: 24
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -49,8 +49,8 @@ public enum AttackOption implements Enumerated {
final int id;
AttackOption(int var3) {
this.id = var3;
}
this.id = var3; // L: 11231
} // L: 11232
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -59,7 +59,7 @@ public enum AttackOption implements Enumerated {
)
@Export("rsOrdinal")
public int rsOrdinal() {
return this.id;
return this.id; // L: 11235
}
@ObfuscatedName("h")
@@ -69,11 +69,11 @@ public enum AttackOption implements Enumerated {
)
@Export("openURL")
public static void openURL(String var0, boolean var1, boolean var2) {
if (var1) {
if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Action.BROWSE)) {
if (var1) { // L: 23
if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Action.BROWSE)) { // L: 24
try {
Desktop.getDesktop().browse(new URI(var0));
return;
Desktop.getDesktop().browse(new URI(var0)); // L: 26
return; // L: 47
} catch (Exception var4) {
}
}
@@ -81,12 +81,12 @@ public enum AttackOption implements Enumerated {
if (class60.field439.startsWith("win")) {
ScriptEvent.method1260(var0, 0);
} else if (class60.field439.startsWith("mac")) {
class13.method131(var0, 1, "openjs");
class13.method131(var0, 1, "openjs"); // L: 38
} else {
ScriptEvent.method1260(var0, 2);
ScriptEvent.method1260(var0, 2); // L: 41
}
} else {
ScriptEvent.method1260(var0, 3);
ScriptEvent.method1260(var0, 3); // L: 44
}
}
@@ -98,315 +98,315 @@ public enum AttackOption implements Enumerated {
)
@Export("runScript")
static void runScript(ScriptEvent var0, int var1) {
Object[] var2 = var0.args;
Object[] var2 = var0.args; // L: 103
Script var3;
int var17;
if (Archive.isWorldMapEvent(var0.type)) {
Script.worldMapEvent = (WorldMapEvent)var2[0];
WorldMapElement var4 = UserComparator10.WorldMapElement_get(Script.worldMapEvent.mapElement);
var3 = TileItem.getWorldMapScript(var0.type, var4.objectId, var4.category);
if (Archive.isWorldMapEvent(var0.type)) { // L: 105
Script.worldMapEvent = (WorldMapEvent)var2[0]; // L: 106
WorldMapElement var4 = UserComparator10.WorldMapElement_get(Script.worldMapEvent.mapElement); // L: 107
var3 = TileItem.getWorldMapScript(var0.type, var4.objectId, var4.category); // L: 108
} else {
var17 = (Integer)var2[0];
var3 = ChatChannel.getScript(var17);
var17 = (Integer)var2[0]; // L: 111
var3 = ChatChannel.getScript(var17); // L: 112
}
if (var3 != null) {
VarcInt.Interpreter_intStackSize = 0;
Interpreter.Interpreter_stringStackSize = 0;
var17 = -1;
int[] var5 = var3.opcodes;
int[] var6 = var3.intOperands;
byte var7 = -1;
Interpreter.Interpreter_frameDepth = 0;
Interpreter.field1104 = false;
if (var3 != null) { // L: 114
VarcInt.Interpreter_intStackSize = 0; // L: 117
Interpreter.Interpreter_stringStackSize = 0; // L: 118
var17 = -1; // L: 119
int[] var5 = var3.opcodes; // L: 120
int[] var6 = var3.intOperands; // L: 121
byte var7 = -1; // L: 122
Interpreter.Interpreter_frameDepth = 0; // L: 123
Interpreter.field1104 = false; // L: 124
try {
int var10;
try {
InterfaceParent.Interpreter_intLocals = new int[var3.localIntCount];
int var8 = 0;
Username.Interpreter_stringLocals = new String[var3.localStringCount];
int var9 = 0;
InterfaceParent.Interpreter_intLocals = new int[var3.localIntCount]; // L: 126
int var8 = 0; // L: 127
Username.Interpreter_stringLocals = new String[var3.localStringCount]; // L: 128
int var9 = 0; // L: 129
int var11;
String var18;
for (var10 = 1; var10 < var2.length; ++var10) {
if (var2[var10] instanceof Integer) {
var11 = (Integer)var2[var10];
if (var11 == -2147483647) {
for (var10 = 1; var10 < var2.length; ++var10) { // L: 130
if (var2[var10] instanceof Integer) { // L: 131
var11 = (Integer)var2[var10]; // L: 132
if (var11 == -2147483647) { // L: 133
var11 = var0.mouseX;
}
if (var11 == -2147483646) {
if (var11 == -2147483646) { // L: 134
var11 = var0.mouseY;
}
if (var11 == -2147483645) {
var11 = var0.widget != null ? var0.widget.id : -1;
if (var11 == -2147483645) { // L: 135
var11 = var0.widget != null ? var0.widget.id * -437932207 * 653064625 : -1;
}
if (var11 == -2147483644) {
if (var11 == -2147483644) { // L: 136
var11 = var0.opIndex;
}
if (var11 == -2147483643) {
var11 = var0.widget != null ? var0.widget.childIndex : -1;
if (var11 == -2147483643) { // L: 137
var11 = var0.widget != null ? var0.widget.childIndex * 951345111 * 2098332647 : -1;
}
if (var11 == -2147483642) {
var11 = var0.dragTarget != null ? var0.dragTarget.id : -1;
if (var11 == -2147483642) { // L: 138
var11 = var0.dragTarget != null ? var0.dragTarget.id * -437932207 * 653064625 : -1;
}
if (var11 == -2147483641) {
var11 = var0.dragTarget != null ? var0.dragTarget.childIndex : -1;
if (var11 == -2147483641) { // L: 139
var11 = var0.dragTarget != null ? var0.dragTarget.childIndex * 951345111 * 2098332647 : -1;
}
if (var11 == -2147483640) {
if (var11 == -2147483640) { // L: 140
var11 = var0.keyTyped;
}
if (var11 == -2147483639) {
if (var11 == -2147483639) { // L: 141
var11 = var0.keyPressed;
}
InterfaceParent.Interpreter_intLocals[var8++] = var11;
} else if (var2[var10] instanceof String) {
var18 = (String)var2[var10];
if (var18.equals("event_opbase")) {
InterfaceParent.Interpreter_intLocals[var8++] = var11; // L: 142
} else if (var2[var10] instanceof String) { // L: 144
var18 = (String)var2[var10]; // L: 145
if (var18.equals("event_opbase")) { // L: 146
var18 = var0.targetName;
}
Username.Interpreter_stringLocals[var9++] = var18;
Username.Interpreter_stringLocals[var9++] = var18; // L: 147
}
}
var10 = 0;
Interpreter.field1097 = var0.field569;
var10 = 0; // L: 151
Interpreter.field1097 = var0.field569; // L: 152
while (true) {
++var10;
if (var10 > var1) {
++var10; // L: 154
if (var10 > var1) { // L: 155
throw new RuntimeException();
}
++var17;
++var17; // L: 156
int var29 = var5[var17];
int var20;
if (var29 >= 100) {
if (var29 >= 100) { // L: 157
boolean var32;
if (var3.intOperands[var17] == 1) {
if (var3.intOperands[var17] == 1) { // L: 355
var32 = true;
} else {
var32 = false;
var32 = false; // L: 356
}
var20 = FaceNormal.method3345(var29, var3, var32);
switch(var20) {
var20 = FaceNormal.method3345(var29, var3, var32); // L: 357
switch(var20) { // L: 358
case 0:
return;
case 1:
default:
break;
case 2:
throw new IllegalStateException();
throw new IllegalStateException(); // L: 363
}
} else if (var29 == 0) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var6[var17];
} else if (var29 == ScriptOpcodes.GET_VARP) {
var11 = var6[var17];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Varps.Varps_main[var11];
} else if (var29 == ScriptOpcodes.SET_VARP) {
var11 = var6[var17];
Varps.Varps_main[var11] = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Script.changeGameOptions(var11);
} else if (var29 == ScriptOpcodes.SCONST) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.stringOperands[var17];
} else if (var29 == ScriptOpcodes.JUMP) {
var17 += var6[var17];
} else if (var29 == ScriptOpcodes.IF_ICMPNE) {
VarcInt.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] != Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) {
} else if (var29 == 0) { // L: 158
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var6[var17]; // L: 159
} else if (var29 == ScriptOpcodes.GET_VARP) { // L: 162
var11 = var6[var17]; // L: 163
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Varps.Varps_main[var11]; // L: 164
} else if (var29 == ScriptOpcodes.SET_VARP) { // L: 167
var11 = var6[var17]; // L: 168
Varps.Varps_main[var11] = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 169
Script.changeGameOptions(var11); // L: 170
} else if (var29 == ScriptOpcodes.SCONST) { // L: 173
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.stringOperands[var17]; // L: 174
} else if (var29 == ScriptOpcodes.JUMP) { // L: 177
var17 += var6[var17]; // L: 178
} else if (var29 == ScriptOpcodes.IF_ICMPNE) { // L: 181
VarcInt.Interpreter_intStackSize -= 2; // L: 182
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] != Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) { // L: 183
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.IF_ICMPEQ) {
VarcInt.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] == Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) {
} else if (var29 == ScriptOpcodes.IF_ICMPEQ) { // L: 186
VarcInt.Interpreter_intStackSize -= 2; // L: 187
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] == Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) { // L: 188
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.IF_ICMPLT) {
VarcInt.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] < Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) {
} else if (var29 == ScriptOpcodes.IF_ICMPLT) { // L: 191
VarcInt.Interpreter_intStackSize -= 2; // L: 192
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] < Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) { // L: 193
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.IF_ICMPGT) {
VarcInt.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] > Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) {
} else if (var29 == ScriptOpcodes.IF_ICMPGT) { // L: 196
VarcInt.Interpreter_intStackSize -= 2; // L: 197
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] > Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) { // L: 198
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.RETURN) {
if (Interpreter.Interpreter_frameDepth == 0) {
} else if (var29 == ScriptOpcodes.RETURN) { // L: 201
if (Interpreter.Interpreter_frameDepth == 0) { // L: 202
return;
}
ScriptFrame var34 = Interpreter.Interpreter_frames[--Interpreter.Interpreter_frameDepth];
var3 = var34.script;
var5 = var3.opcodes;
var6 = var3.intOperands;
var17 = var34.pc;
InterfaceParent.Interpreter_intLocals = var34.intLocals;
Username.Interpreter_stringLocals = var34.stringLocals;
} else if (var29 == ScriptOpcodes.GET_VARBIT) {
var11 = var6[var17];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Coord.getVarbit(var11);
} else if (var29 == ScriptOpcodes.SET_VARBIT) {
var11 = var6[var17];
KitDefinition.method4491(var11, Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]);
} else if (var29 == ScriptOpcodes.IF_ICMPLE) {
VarcInt.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] <= Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) {
ScriptFrame var34 = Interpreter.Interpreter_frames[--Interpreter.Interpreter_frameDepth]; // L: 203
var3 = var34.script; // L: 204
var5 = var3.opcodes; // L: 205
var6 = var3.intOperands; // L: 206
var17 = var34.pc; // L: 207
InterfaceParent.Interpreter_intLocals = var34.intLocals; // L: 208
Username.Interpreter_stringLocals = var34.stringLocals; // L: 209
} else if (var29 == ScriptOpcodes.GET_VARBIT) { // L: 212
var11 = var6[var17]; // L: 213
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Coord.getVarbit(var11); // L: 214
} else if (var29 == ScriptOpcodes.SET_VARBIT) { // L: 217
var11 = var6[var17]; // L: 218
KitDefinition.method4491(var11, Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]); // L: 219
} else if (var29 == ScriptOpcodes.IF_ICMPLE) { // L: 222
VarcInt.Interpreter_intStackSize -= 2; // L: 223
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] <= Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) { // L: 224
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.IF_ICMPGE) {
VarcInt.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] >= Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) {
} else if (var29 == ScriptOpcodes.IF_ICMPGE) { // L: 227
VarcInt.Interpreter_intStackSize -= 2; // L: 228
if (Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] >= Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]) { // L: 229
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.ILOAD) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = InterfaceParent.Interpreter_intLocals[var6[var17]];
} else if (var29 == ScriptOpcodes.ISTORE) {
InterfaceParent.Interpreter_intLocals[var6[var17]] = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
} else if (var29 == ScriptOpcodes.SLOAD) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = Username.Interpreter_stringLocals[var6[var17]];
} else if (var29 == ScriptOpcodes.SSTORE) {
Username.Interpreter_stringLocals[var6[var17]] = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
} else if (var29 == ScriptOpcodes.JOIN_STRING) {
var11 = var6[var17];
Interpreter.Interpreter_stringStackSize -= var11;
String var31 = class90.method2125(Interpreter.Interpreter_stringStack, Interpreter.Interpreter_stringStackSize, var11);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var31;
} else if (var29 == ScriptOpcodes.POP_INT) {
--VarcInt.Interpreter_intStackSize;
} else if (var29 == ScriptOpcodes.POP_STRING) {
--Interpreter.Interpreter_stringStackSize;
} else if (var29 == ScriptOpcodes.ILOAD) { // L: 232
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = InterfaceParent.Interpreter_intLocals[var6[var17]]; // L: 233
} else if (var29 == ScriptOpcodes.ISTORE) { // L: 236
InterfaceParent.Interpreter_intLocals[var6[var17]] = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 237
} else if (var29 == ScriptOpcodes.SLOAD) { // L: 240
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = Username.Interpreter_stringLocals[var6[var17]]; // L: 241
} else if (var29 == ScriptOpcodes.SSTORE) { // L: 244
Username.Interpreter_stringLocals[var6[var17]] = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 245
} else if (var29 == ScriptOpcodes.JOIN_STRING) { // L: 248
var11 = var6[var17]; // L: 249
Interpreter.Interpreter_stringStackSize -= var11; // L: 250
String var31 = class90.method2125(Interpreter.Interpreter_stringStack, Interpreter.Interpreter_stringStackSize, var11); // L: 251
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var31; // L: 252
} else if (var29 == ScriptOpcodes.POP_INT) { // L: 255
--VarcInt.Interpreter_intStackSize; // L: 256
} else if (var29 == ScriptOpcodes.POP_STRING) { // L: 259
--Interpreter.Interpreter_stringStackSize; // L: 260
} else {
int var15;
if (var29 != ScriptOpcodes.INVOKE) {
if (var29 == ScriptOpcodes.GET_VARC_INT) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Varcs.varcs.getInt(var6[var17]);
} else if (var29 == ScriptOpcodes.SET_VARC_INT) {
Varcs.varcs.setInt(var6[var17], Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]);
} else if (var29 == ScriptOpcodes.DEFINE_ARRAY) {
var11 = var6[var17] >> 16;
var20 = var6[var17] & 65535;
int var21 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (var21 < 0 || var21 > 5000) {
throw new RuntimeException();
if (var29 != ScriptOpcodes.INVOKE) { // L: 263
if (var29 == ScriptOpcodes.GET_VARC_INT) { // L: 286
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Varcs.varcs.getInt(var6[var17]); // L: 287
} else if (var29 == ScriptOpcodes.SET_VARC_INT) { // L: 290
Varcs.varcs.setInt(var6[var17], Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]); // L: 291
} else if (var29 == ScriptOpcodes.DEFINE_ARRAY) { // L: 294
var11 = var6[var17] >> 16; // L: 295
var20 = var6[var17] & 65535; // L: 296
int var21 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 297
if (var21 < 0 || var21 > 5000) { // L: 298
throw new RuntimeException(); // L: 299
}
Interpreter.Interpreter_arrayLengths[var11] = var21;
byte var22 = -1;
if (var20 == 105) {
Interpreter.Interpreter_arrayLengths[var11] = var21; // L: 301
byte var22 = -1; // L: 302
if (var20 == 105) { // L: 303
var22 = 0;
}
for (var15 = 0; var15 < var21; ++var15) {
for (var15 = 0; var15 < var21; ++var15) { // L: 304
Interpreter.Interpreter_arrays[var11][var15] = var22;
}
} else if (var29 == ScriptOpcodes.GET_ARRAY_INT) {
var11 = var6[var17];
var20 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (var20 < 0 || var20 >= Interpreter.Interpreter_arrayLengths[var11]) {
throw new RuntimeException();
} else if (var29 == ScriptOpcodes.GET_ARRAY_INT) { // L: 307
var11 = var6[var17]; // L: 308
var20 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 309
if (var20 < 0 || var20 >= Interpreter.Interpreter_arrayLengths[var11]) { // L: 310
throw new RuntimeException(); // L: 311
}
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Interpreter.Interpreter_arrays[var11][var20];
} else if (var29 == ScriptOpcodes.SET_ARRAY_INT) {
var11 = var6[var17];
VarcInt.Interpreter_intStackSize -= 2;
var20 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
if (var20 < 0 || var20 >= Interpreter.Interpreter_arrayLengths[var11]) {
throw new RuntimeException();
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Interpreter.Interpreter_arrays[var11][var20]; // L: 313
} else if (var29 == ScriptOpcodes.SET_ARRAY_INT) { // L: 316
var11 = var6[var17]; // L: 317
VarcInt.Interpreter_intStackSize -= 2; // L: 318
var20 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 319
if (var20 < 0 || var20 >= Interpreter.Interpreter_arrayLengths[var11]) { // L: 320
throw new RuntimeException(); // L: 321
}
Interpreter.Interpreter_arrays[var11][var20] = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
} else if (var29 == ScriptOpcodes.GET_VARC_STRING_OLD) {
var18 = Varcs.varcs.getStringOld(var6[var17]);
if (var18 == null) {
Interpreter.Interpreter_arrays[var11][var20] = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 323
} else if (var29 == ScriptOpcodes.GET_VARC_STRING_OLD) { // L: 326
var18 = Varcs.varcs.getStringOld(var6[var17]); // L: 327
if (var18 == null) { // L: 328
var18 = "null";
}
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var18;
} else if (var29 == ScriptOpcodes.SET_VARC_STRING_OLD) {
Varcs.varcs.setStringOld(var6[var17], Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]);
} else if (var29 == ScriptOpcodes.GET_VARC_STRING) {
var18 = Varcs.varcs.getString(var6[var17]);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var18;
} else if (var29 == ScriptOpcodes.SET_VARC_STRING) {
Varcs.varcs.setString(var6[var17], Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var18; // L: 329
} else if (var29 == ScriptOpcodes.SET_VARC_STRING_OLD) { // L: 332
Varcs.varcs.setStringOld(var6[var17], Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]); // L: 333
} else if (var29 == ScriptOpcodes.GET_VARC_STRING) { // L: 336
var18 = Varcs.varcs.getString(var6[var17]); // L: 337
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var18; // L: 338
} else if (var29 == ScriptOpcodes.SET_VARC_STRING) { // L: 341
Varcs.varcs.setString(var6[var17], Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]); // L: 342
} else {
if (var29 != ScriptOpcodes.SWITCH) {
throw new IllegalStateException();
if (var29 != ScriptOpcodes.SWITCH) { // L: 345
throw new IllegalStateException(); // L: 351
}
IterableNodeHashTable var33 = var3.switches[var6[var17]];
IntegerNode var30 = (IntegerNode)var33.get((long)Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]);
if (var30 != null) {
IterableNodeHashTable var33 = var3.switches[var6[var17]]; // L: 346
IntegerNode var30 = (IntegerNode)var33.get((long)Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]); // L: 347
if (var30 != null) { // L: 348
var17 += var30.integer;
}
}
} else {
var11 = var6[var17];
Script var12 = ChatChannel.getScript(var11);
int[] var13 = new int[var12.localIntCount];
String[] var14 = new String[var12.localStringCount];
var11 = var6[var17]; // L: 264
Script var12 = ChatChannel.getScript(var11); // L: 265
int[] var13 = new int[var12.localIntCount]; // L: 266
String[] var14 = new String[var12.localStringCount]; // L: 267
for (var15 = 0; var15 < var12.intArgumentCount; ++var15) {
for (var15 = 0; var15 < var12.intArgumentCount; ++var15) { // L: 268
var13[var15] = Interpreter.Interpreter_intStack[var15 + (VarcInt.Interpreter_intStackSize - var12.intArgumentCount)];
}
for (var15 = 0; var15 < var12.stringArgumentCount; ++var15) {
for (var15 = 0; var15 < var12.stringArgumentCount; ++var15) { // L: 269
var14[var15] = Interpreter.Interpreter_stringStack[var15 + (Interpreter.Interpreter_stringStackSize - var12.stringArgumentCount)];
}
VarcInt.Interpreter_intStackSize -= var12.intArgumentCount;
Interpreter.Interpreter_stringStackSize -= var12.stringArgumentCount;
ScriptFrame var19 = new ScriptFrame();
var19.script = var3;
var19.pc = var17;
var19.intLocals = InterfaceParent.Interpreter_intLocals;
var19.stringLocals = Username.Interpreter_stringLocals;
Interpreter.Interpreter_frames[++Interpreter.Interpreter_frameDepth - 1] = var19;
var3 = var12;
var5 = var12.opcodes;
var6 = var12.intOperands;
var17 = -1;
InterfaceParent.Interpreter_intLocals = var13;
Username.Interpreter_stringLocals = var14;
VarcInt.Interpreter_intStackSize -= var12.intArgumentCount; // L: 270
Interpreter.Interpreter_stringStackSize -= var12.stringArgumentCount; // L: 271
ScriptFrame var19 = new ScriptFrame(); // L: 272
var19.script = var3; // L: 273
var19.pc = var17; // L: 274
var19.intLocals = InterfaceParent.Interpreter_intLocals; // L: 275
var19.stringLocals = Username.Interpreter_stringLocals; // L: 276
Interpreter.Interpreter_frames[++Interpreter.Interpreter_frameDepth - 1] = var19; // L: 277
var3 = var12; // L: 278
var5 = var12.opcodes; // L: 279
var6 = var12.intOperands; // L: 280
var17 = -1; // L: 281
InterfaceParent.Interpreter_intLocals = var13; // L: 282
Username.Interpreter_stringLocals = var14; // L: 283
}
}
}
} catch (Exception var27) {
StringBuilder var24 = new StringBuilder(30);
var24.append("").append(var3.key).append(" ");
} catch (Exception var27) { // L: 371
StringBuilder var24 = new StringBuilder(30); // L: 373
var24.append("").append(var3.key).append(" "); // L: 374
for (var10 = Interpreter.Interpreter_frameDepth - 1; var10 >= 0; --var10) {
for (var10 = Interpreter.Interpreter_frameDepth - 1; var10 >= 0; --var10) { // L: 375
var24.append("").append(Interpreter.Interpreter_frames[var10].script.key).append(" ");
}
var24.append("").append(var7);
PlayerAppearance.RunException_sendStackTrace(var24.toString(), var27);
var24.append("").append(var7); // L: 376
PlayerAppearance.RunException_sendStackTrace(var24.toString(), var27); // L: 377
}
} finally {
if (Interpreter.field1104) {
Interpreter.field1103 = true;
ServerPacket.method3664();
Interpreter.field1103 = false;
Interpreter.field1104 = false;
if (Interpreter.field1104) { // L: 381
Interpreter.field1103 = true; // L: 382
ServerPacket.method3664(); // L: 383
Interpreter.field1103 = false; // L: 384
Interpreter.field1104 = false; // L: 385
}
}
}
}
} // L: 115 388
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -416,20 +416,20 @@ public enum AttackOption implements Enumerated {
public static String method2135(Buffer var0) {
String var1;
try {
int var2 = var0.readUShortSmart();
if (var2 > 32767) {
int var2 = var0.readUShortSmart(); // L: 29
if (var2 > 32767) { // L: 30
var2 = 32767;
}
byte[] var3 = new byte[var2];
var0.offset += class219.huffman.decompress(var0.array, var0.offset, var3, 0, var2);
String var4 = Clock.decodeStringCp1252(var3, 0, var2);
var1 = var4;
} catch (Exception var6) {
var1 = "Cabbage";
byte[] var3 = new byte[var2]; // L: 31
var0.offset += class219.huffman.decompress(var0.array, var0.offset, var3, 0, var2); // L: 32
String var4 = Clock.decodeStringCp1252(var3, 0, var2); // L: 33
var1 = var4; // L: 34
} catch (Exception var6) { // L: 36
var1 = "Cabbage"; // L: 37
}
return var1;
return var1; // L: 40
}
@ObfuscatedName("gq")
@@ -438,9 +438,9 @@ public enum AttackOption implements Enumerated {
garbageValue = "1150447373"
)
static void method2138() {
if (PlayerAppearance.localPlayer.x >> 7 == Client.destinationX && PlayerAppearance.localPlayer.y >> 7 == Client.destinationY) {
Client.destinationX = 0;
if (PlayerAppearance.localPlayer.x >> 7 == Client.destinationX && PlayerAppearance.localPlayer.y >> 7 == Client.destinationY) { // L: 4702
Client.destinationX = 0; // L: 4703
}
}
} // L: 4705
}

View File

@@ -27,81 +27,81 @@ public class AudioFilter {
int[] field1498;
static {
field1499 = new float[2][8];
coefficients = new int[2][8];
field1499 = new float[2][8]; // L: 13
coefficients = new int[2][8]; // L: 14
}
AudioFilter() {
this.pairs = new int[2];
this.field1495 = new int[2][2][4];
this.field1497 = new int[2][2][4];
this.field1498 = new int[2];
}
this.pairs = new int[2]; // L: 8
this.field1495 = new int[2][2][4]; // L: 10
this.field1497 = new int[2][2][4]; // L: 11
this.field1498 = new int[2]; // L: 12
} // L: 21
@ObfuscatedName("h")
float method2768(int var1, int var2, float var3) {
float var4 = (float)this.field1497[var1][0][var2] + var3 * (float)(this.field1497[var1][1][var2] - this.field1497[var1][0][var2]);
var4 *= 0.0015258789F;
return 1.0F - (float)Math.pow(10.0D, (double)(-var4 / 20.0F));
float var4 = (float)this.field1497[var1][0][var2] + var3 * (float)(this.field1497[var1][1][var2] - this.field1497[var1][0][var2]); // L: 24
var4 *= 0.0015258789F; // L: 25
return 1.0F - (float)Math.pow(10.0D, (double)(-var4 / 20.0F)); // L: 26
}
@ObfuscatedName("x")
float method2770(int var1, int var2, float var3) {
float var4 = (float)this.field1495[var1][0][var2] + var3 * (float)(this.field1495[var1][1][var2] - this.field1495[var1][0][var2]);
var4 *= 1.2207031E-4F;
return normalize(var4);
float var4 = (float)this.field1495[var1][0][var2] + var3 * (float)(this.field1495[var1][1][var2] - this.field1495[var1][0][var2]); // L: 35
var4 *= 1.2207031E-4F; // L: 36
return normalize(var4); // L: 37
}
@ObfuscatedName("w")
@Export("compute")
int compute(int var1, float var2) {
float var3;
if (var1 == 0) {
var3 = (float)this.field1498[0] + (float)(this.field1498[1] - this.field1498[0]) * var2;
var3 *= 0.0030517578F;
field1501 = (float)Math.pow(0.1D, (double)(var3 / 20.0F));
forwardMultiplier = (int)(field1501 * 65536.0F);
if (var1 == 0) { // L: 41
var3 = (float)this.field1498[0] + (float)(this.field1498[1] - this.field1498[0]) * var2; // L: 42
var3 *= 0.0030517578F; // L: 43
field1501 = (float)Math.pow(0.1D, (double)(var3 / 20.0F)); // L: 44
forwardMultiplier = (int)(field1501 * 65536.0F); // L: 45
}
if (this.pairs[var1] == 0) {
if (this.pairs[var1] == 0) { // L: 47
return 0;
} else {
var3 = this.method2768(var1, 0, var2);
field1499[var1][0] = -2.0F * var3 * (float)Math.cos((double)this.method2770(var1, 0, var2));
field1499[var1][1] = var3 * var3;
var3 = this.method2768(var1, 0, var2); // L: 48
field1499[var1][0] = -2.0F * var3 * (float)Math.cos((double)this.method2770(var1, 0, var2)); // L: 49
field1499[var1][1] = var3 * var3; // L: 50
float[] var10000;
int var4;
for (var4 = 1; var4 < this.pairs[var1]; ++var4) {
var3 = this.method2768(var1, var4, var2);
float var5 = -2.0F * var3 * (float)Math.cos((double)this.method2770(var1, var4, var2));
float var6 = var3 * var3;
field1499[var1][var4 * 2 + 1] = field1499[var1][var4 * 2 - 1] * var6;
field1499[var1][var4 * 2] = field1499[var1][var4 * 2 - 1] * var5 + field1499[var1][var4 * 2 - 2] * var6;
for (var4 = 1; var4 < this.pairs[var1]; ++var4) { // L: 51
var3 = this.method2768(var1, var4, var2); // L: 52
float var5 = -2.0F * var3 * (float)Math.cos((double)this.method2770(var1, var4, var2)); // L: 53
float var6 = var3 * var3; // L: 54
field1499[var1][var4 * 2 + 1] = field1499[var1][var4 * 2 - 1] * var6; // L: 55
field1499[var1][var4 * 2] = field1499[var1][var4 * 2 - 1] * var5 + field1499[var1][var4 * 2 - 2] * var6; // L: 56
for (int var7 = var4 * 2 - 1; var7 >= 2; --var7) {
for (int var7 = var4 * 2 - 1; var7 >= 2; --var7) { // L: 57
var10000 = field1499[var1];
var10000[var7] += field1499[var1][var7 - 1] * var5 + field1499[var1][var7 - 2] * var6;
}
var10000 = field1499[var1];
var10000 = field1499[var1]; // L: 58
var10000[1] += field1499[var1][0] * var5 + var6;
var10000 = field1499[var1];
var10000 = field1499[var1]; // L: 59
var10000[0] += var5;
}
if (var1 == 0) {
if (var1 == 0) { // L: 61
for (var4 = 0; var4 < this.pairs[0] * 2; ++var4) {
var10000 = field1499[0];
var10000[var4] *= field1501;
}
}
for (var4 = 0; var4 < this.pairs[var1] * 2; ++var4) {
for (var4 = 0; var4 < this.pairs[var1] * 2; ++var4) { // L: 62
coefficients[var1][var4] = (int)(field1499[var1][var4] * 65536.0F);
}
return this.pairs[var1] * 2;
return this.pairs[var1] * 2; // L: 63
}
}
@@ -110,50 +110,50 @@ public class AudioFilter {
descriptor = "(Lkj;Ldr;)V"
)
final void method2772(Buffer var1, SoundEnvelope var2) {
int var3 = var1.readUnsignedByte();
this.pairs[0] = var3 >> 4;
this.pairs[1] = var3 & 15;
if (var3 != 0) {
this.field1498[0] = var1.readUnsignedShort();
this.field1498[1] = var1.readUnsignedShort();
int var7 = var1.readUnsignedByte();
int var3 = var1.readUnsignedByte(); // L: 67
this.pairs[0] = var3 >> 4; // L: 68
this.pairs[1] = var3 & 15; // L: 69
if (var3 != 0) { // L: 70
this.field1498[0] = var1.readUnsignedShort(); // L: 71
this.field1498[1] = var1.readUnsignedShort(); // L: 72
int var7 = var1.readUnsignedByte(); // L: 73
int var5;
int var6;
for (var5 = 0; var5 < 2; ++var5) {
for (var6 = 0; var6 < this.pairs[var5]; ++var6) {
this.field1495[var5][0][var6] = var1.readUnsignedShort();
this.field1497[var5][0][var6] = var1.readUnsignedShort();
for (var5 = 0; var5 < 2; ++var5) { // L: 74
for (var6 = 0; var6 < this.pairs[var5]; ++var6) { // L: 75
this.field1495[var5][0][var6] = var1.readUnsignedShort(); // L: 76
this.field1497[var5][0][var6] = var1.readUnsignedShort(); // L: 77
}
}
for (var5 = 0; var5 < 2; ++var5) {
for (var6 = 0; var6 < this.pairs[var5]; ++var6) {
if ((var7 & 1 << var5 * 4 << var6) != 0) {
this.field1495[var5][1][var6] = var1.readUnsignedShort();
this.field1497[var5][1][var6] = var1.readUnsignedShort();
for (var5 = 0; var5 < 2; ++var5) { // L: 80
for (var6 = 0; var6 < this.pairs[var5]; ++var6) { // L: 81
if ((var7 & 1 << var5 * 4 << var6) != 0) { // L: 82
this.field1495[var5][1][var6] = var1.readUnsignedShort(); // L: 83
this.field1497[var5][1][var6] = var1.readUnsignedShort(); // L: 84
} else {
this.field1495[var5][1][var6] = this.field1495[var5][0][var6];
this.field1497[var5][1][var6] = this.field1497[var5][0][var6];
this.field1495[var5][1][var6] = this.field1495[var5][0][var6]; // L: 87
this.field1497[var5][1][var6] = this.field1497[var5][0][var6]; // L: 88
}
}
}
if (var7 != 0 || this.field1498[1] != this.field1498[0]) {
if (var7 != 0 || this.field1498[1] != this.field1498[0]) { // L: 92
var2.decodeSegments(var1);
}
} else {
int[] var4 = this.field1498;
this.field1498[1] = 0;
var4[0] = 0;
int[] var4 = this.field1498; // L: 95
this.field1498[1] = 0; // L: 96
var4[0] = 0; // L: 97
}
}
} // L: 99
@ObfuscatedName("v")
@Export("normalize")
static float normalize(float var0) {
float var1 = 32.703197F * (float)Math.pow(2.0D, (double)var0);
return var1 * 3.1415927F / 11025.0F;
float var1 = 32.703197F * (float)Math.pow(2.0D, (double)var0); // L: 30
return var1 * 3.1415927F / 11025.0F; // L: 31
}
}

View File

@@ -14,27 +14,27 @@ public final class BZip2Decompressor {
static BZip2State BZip2Decompressor_state;
static {
BZip2Decompressor_state = new BZip2State();
BZip2Decompressor_state = new BZip2State(); // L: 13
}
@ObfuscatedName("h")
@Export("BZip2Decompressor_decompress")
public static int BZip2Decompressor_decompress(byte[] var0, int var1, byte[] var2, int var3, int var4) {
synchronized(BZip2Decompressor_state) {
BZip2Decompressor_state.inputArray = var2;
BZip2Decompressor_state.nextByte = var4;
BZip2Decompressor_state.outputArray = var0;
BZip2Decompressor_state.next_out = 0;
BZip2Decompressor_state.outputLength = var1;
BZip2Decompressor_state.bsLive = 0;
BZip2Decompressor_state.bsBuff = 0;
BZip2Decompressor_state.nextBit_unused = 0;
BZip2Decompressor_state.field3772 = 0;
BZip2Decompressor_decompress(BZip2Decompressor_state);
var1 -= BZip2Decompressor_state.outputLength;
BZip2Decompressor_state.inputArray = null;
BZip2Decompressor_state.outputArray = null;
return var1;
synchronized(BZip2Decompressor_state) { // L: 20
BZip2Decompressor_state.inputArray = var2; // L: 21
BZip2Decompressor_state.nextByte = var4; // L: 22
BZip2Decompressor_state.outputArray = var0; // L: 23
BZip2Decompressor_state.next_out = 0; // L: 24
BZip2Decompressor_state.outputLength = var1; // L: 25
BZip2Decompressor_state.bsLive = 0; // L: 26
BZip2Decompressor_state.bsBuff = 0; // L: 27
BZip2Decompressor_state.nextBit_unused = 0; // L: 28
BZip2Decompressor_state.field3772 = 0; // L: 29
BZip2Decompressor_decompress(BZip2Decompressor_state); // L: 30
var1 -= BZip2Decompressor_state.outputLength; // L: 31
BZip2Decompressor_state.inputArray = null; // L: 32
BZip2Decompressor_state.outputArray = null; // L: 33
return var1; // L: 34
}
}
@@ -43,89 +43,89 @@ public final class BZip2Decompressor {
descriptor = "(Lli;)V"
)
static void method5845(BZip2State var0) {
byte var2 = var0.out_char;
int var3 = var0.su_rNToGo;
int var4 = var0.nblocks_used;
int var5 = var0.su_ch2;
int[] var6 = TileItemPile.BZip2Decompressor_block;
int var7 = var0.field3779;
byte[] var8 = var0.outputArray;
int var9 = var0.next_out;
int var10 = var0.outputLength;
int var12 = var0.field3797 + 1;
byte var2 = var0.out_char; // L: 40
int var3 = var0.su_rNToGo; // L: 41
int var4 = var0.nblocks_used; // L: 42
int var5 = var0.su_ch2; // L: 43
int[] var6 = TileItemPile.BZip2Decompressor_block; // L: 44
int var7 = var0.field3779; // L: 45
byte[] var8 = var0.outputArray; // L: 46
int var9 = var0.next_out; // L: 47
int var10 = var0.outputLength; // L: 48
int var12 = var0.field3797 + 1; // L: 50
label70:
while (true) {
if (var3 > 0) {
if (var3 > 0) { // L: 53
while (true) {
if (var10 == 0) {
if (var10 == 0) { // L: 55
break label70;
}
if (var3 == 1) {
if (var10 == 0) {
var3 = 1;
if (var3 == 1) { // L: 56
if (var10 == 0) { // L: 62
var3 = 1; // L: 63
break label70;
}
var8[var9] = var2;
++var9;
--var10;
var8[var9] = var2; // L: 66
++var9; // L: 67
--var10; // L: 68
break;
}
var8[var9] = var2;
--var3;
++var9;
--var10;
var8[var9] = var2; // L: 57
--var3; // L: 58
++var9; // L: 59
--var10; // L: 60
}
}
while (var4 != var12) {
var2 = (byte)var5;
var7 = var6[var7];
byte var1 = (byte)var7;
var7 >>= 8;
++var4;
if (var1 != var5) {
var5 = var1;
if (var10 == 0) {
var3 = 1;
break label70;
while (var4 != var12) { // L: 71
var2 = (byte)var5; // L: 75
var7 = var6[var7]; // L: 76
byte var1 = (byte)var7; // L: 77
var7 >>= 8; // L: 78
++var4; // L: 79
if (var1 != var5) { // L: 80
var5 = var1; // L: 81
if (var10 == 0) { // L: 82
var3 = 1; // L: 83
break label70; // L: 84
}
var8[var9] = var2;
++var9;
--var10;
var8[var9] = var2; // L: 86
++var9; // L: 87
--var10; // L: 88
} else {
if (var4 != var12) {
var3 = 2;
var7 = var6[var7];
var1 = (byte)var7;
var7 >>= 8;
++var4;
if (var4 != var12) {
if (var1 != var5) {
var5 = var1;
if (var4 != var12) { // L: 91
var3 = 2; // L: 103
var7 = var6[var7]; // L: 104
var1 = (byte)var7; // L: 105
var7 >>= 8; // L: 106
++var4; // L: 107
if (var4 != var12) { // L: 108
if (var1 != var5) { // L: 109
var5 = var1; // L: 110
} else {
var3 = 3;
var7 = var6[var7];
var1 = (byte)var7;
var7 >>= 8;
++var4;
if (var4 != var12) {
if (var1 != var5) {
var5 = var1;
var3 = 3; // L: 113
var7 = var6[var7]; // L: 114
var1 = (byte)var7; // L: 115
var7 >>= 8; // L: 116
++var4; // L: 117
if (var4 != var12) { // L: 118
if (var1 != var5) { // L: 119
var5 = var1; // L: 120
} else {
var7 = var6[var7];
var1 = (byte)var7;
var7 >>= 8;
++var4;
var3 = (var1 & 255) + 4;
var7 = var6[var7];
var5 = (byte)var7;
var7 >>= 8;
++var4;
var7 = var6[var7]; // L: 123
var1 = (byte)var7; // L: 124
var7 >>= 8; // L: 125
++var4; // L: 126
var3 = (var1 & 255) + 4; // L: 127
var7 = var6[var7]; // L: 128
var5 = (byte)var7; // L: 129
var7 >>= 8; // L: 130
++var4; // L: 131
}
}
}
@@ -133,36 +133,36 @@ public final class BZip2Decompressor {
continue label70;
}
if (var10 == 0) {
var3 = 1;
break label70;
if (var10 == 0) { // L: 92
var3 = 1; // L: 93
break label70; // L: 94
}
var8[var9] = var2;
++var9;
--var10;
var8[var9] = var2; // L: 96
++var9; // L: 97
--var10; // L: 98
}
}
var3 = 0;
break;
var3 = 0; // L: 72
break; // L: 73
}
int var13 = var0.field3772;
var0.field3772 += var10 - var10;
if (var0.field3772 < var13) {
int var13 = var0.field3772; // L: 133
var0.field3772 += var10 - var10; // L: 134
if (var0.field3772 < var13) { // L: 135
}
var0.out_char = var2;
var0.su_rNToGo = var3;
var0.nblocks_used = var4;
var0.su_ch2 = var5;
TileItemPile.BZip2Decompressor_block = var6;
var0.field3779 = var7;
var0.outputArray = var8;
var0.next_out = var9;
var0.outputLength = var10;
}
var0.out_char = var2; // L: 136
var0.su_rNToGo = var3; // L: 137
var0.nblocks_used = var4; // L: 138
var0.su_ch2 = var5; // L: 139
TileItemPile.BZip2Decompressor_block = var6; // L: 140
var0.field3779 = var7; // L: 141
var0.outputArray = var8; // L: 142
var0.next_out = var9; // L: 143
var0.outputLength = var10; // L: 144
} // L: 145
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -170,371 +170,371 @@ public final class BZip2Decompressor {
)
@Export("BZip2Decompressor_decompress")
static void BZip2Decompressor_decompress(BZip2State var0) {
boolean var4 = false;
boolean var5 = false;
boolean var6 = false;
boolean var7 = false;
boolean var8 = false;
boolean var9 = false;
boolean var10 = false;
boolean var11 = false;
boolean var12 = false;
boolean var13 = false;
boolean var14 = false;
boolean var15 = false;
boolean var16 = false;
boolean var17 = false;
boolean var18 = false;
boolean var19 = false;
boolean var20 = false;
boolean var21 = false;
int var22 = 0;
int[] var23 = null;
int[] var24 = null;
int[] var25 = null;
var0.blockSize100k = 1410065408;
if (TileItemPile.BZip2Decompressor_block == null) {
TileItemPile.BZip2Decompressor_block = new int[var0.blockSize100k * 100000];
boolean var4 = false; // L: 151
boolean var5 = false; // L: 152
boolean var6 = false; // L: 153
boolean var7 = false; // L: 154
boolean var8 = false; // L: 155
boolean var9 = false; // L: 156
boolean var10 = false; // L: 157
boolean var11 = false; // L: 158
boolean var12 = false; // L: 159
boolean var13 = false; // L: 160
boolean var14 = false; // L: 161
boolean var15 = false; // L: 162
boolean var16 = false; // L: 163
boolean var17 = false; // L: 164
boolean var18 = false; // L: 165
boolean var19 = false; // L: 166
boolean var20 = false; // L: 167
boolean var21 = false; // L: 168
int var22 = 0; // L: 169
int[] var23 = null; // L: 170
int[] var24 = null; // L: 171
int[] var25 = null; // L: 172
var0.blockSize100k = -1205153797; // L: 173
if (TileItemPile.BZip2Decompressor_block == null) { // L: 174
TileItemPile.BZip2Decompressor_block = new int[var0.blockSize100k * 1124970976];
}
boolean var26 = true;
boolean var26 = true; // L: 175
while (true) {
while (var26) {
byte var1 = BZip2Decompressor_readNextByte(var0);
if (var1 == 23) {
byte var1 = BZip2Decompressor_readNextByte(var0); // L: 177
if (var1 == 23) { // L: 178
return;
}
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextByte(var0);
var1 = BZip2Decompressor_readNextBit(var0);
if (var1 != 0) {
var1 = BZip2Decompressor_readNextByte(var0); // L: 179
var1 = BZip2Decompressor_readNextByte(var0); // L: 180
var1 = BZip2Decompressor_readNextByte(var0); // L: 181
var1 = BZip2Decompressor_readNextByte(var0); // L: 182
var1 = BZip2Decompressor_readNextByte(var0); // L: 183
var1 = BZip2Decompressor_readNextByte(var0); // L: 184
var1 = BZip2Decompressor_readNextByte(var0); // L: 185
var1 = BZip2Decompressor_readNextByte(var0); // L: 186
var1 = BZip2Decompressor_readNextByte(var0); // L: 187
var1 = BZip2Decompressor_readNextBit(var0); // L: 188
if (var1 != 0) { // L: 189
}
var0.originalPointer = 0;
var1 = BZip2Decompressor_readNextByte(var0);
var0.originalPointer = var0.originalPointer << 8 | var1 & 255;
var1 = BZip2Decompressor_readNextByte(var0);
var0.originalPointer = var0.originalPointer << 8 | var1 & 255;
var1 = BZip2Decompressor_readNextByte(var0);
var0.originalPointer = var0.originalPointer << 8 | var1 & 255;
var0.originalPointer = 0; // L: 191
var1 = BZip2Decompressor_readNextByte(var0); // L: 192
var0.originalPointer = var0.originalPointer << 8 | var1 & 255; // L: 193
var1 = BZip2Decompressor_readNextByte(var0); // L: 194
var0.originalPointer = var0.originalPointer << 8 | var1 & 255; // L: 195
var1 = BZip2Decompressor_readNextByte(var0); // L: 196
var0.originalPointer = var0.originalPointer << 8 | var1 & 255; // L: 197
int var36;
for (var36 = 0; var36 < 16; ++var36) {
var1 = BZip2Decompressor_readNextBit(var0);
if (var1 == 1) {
for (var36 = 0; var36 < 16; ++var36) { // L: 198
var1 = BZip2Decompressor_readNextBit(var0); // L: 199
if (var1 == 1) { // L: 200
var0.inUse16[var36] = true;
} else {
var0.inUse16[var36] = false;
var0.inUse16[var36] = false; // L: 201
}
}
for (var36 = 0; var36 < 256; ++var36) {
for (var36 = 0; var36 < 256; ++var36) { // L: 203
var0.inUse[var36] = false;
}
int var37;
for (var36 = 0; var36 < 16; ++var36) {
if (var0.inUse16[var36]) {
for (var37 = 0; var37 < 16; ++var37) {
var1 = BZip2Decompressor_readNextBit(var0);
if (var1 == 1) {
for (var36 = 0; var36 < 16; ++var36) { // L: 204
if (var0.inUse16[var36]) { // L: 205
for (var37 = 0; var37 < 16; ++var37) { // L: 206
var1 = BZip2Decompressor_readNextBit(var0); // L: 207
if (var1 == 1) { // L: 208
var0.inUse[var37 + var36 * 16] = true;
}
}
}
}
makeMaps(var0);
int var39 = var0.nInUse + 2;
int var40 = BZip2Decompressor_readBits(3, var0);
int var41 = BZip2Decompressor_readBits(15, var0);
makeMaps(var0); // L: 212
int var39 = var0.nInUse + 2; // L: 213
int var40 = BZip2Decompressor_readBits(3, var0); // L: 214
int var41 = BZip2Decompressor_readBits(15, var0); // L: 215
for (var36 = 0; var36 < var41; ++var36) {
var37 = 0;
for (var36 = 0; var36 < var41; ++var36) { // L: 216
var37 = 0; // L: 217
while (true) {
var1 = BZip2Decompressor_readNextBit(var0);
if (var1 == 0) {
var0.selectorMtf[var36] = (byte)var37;
var1 = BZip2Decompressor_readNextBit(var0); // L: 219
if (var1 == 0) { // L: 220
var0.selectorMtf[var36] = (byte)var37; // L: 223
break;
}
++var37;
++var37; // L: 221
}
}
byte[] var27 = new byte[6];
byte[] var27 = new byte[6]; // L: 226
byte var29;
for (var29 = 0; var29 < var40; var27[var29] = var29++) {
for (var29 = 0; var29 < var40; var27[var29] = var29++) { // L: 229
}
for (var36 = 0; var36 < var41; ++var36) {
var29 = var0.selectorMtf[var36];
for (var36 = 0; var36 < var41; ++var36) { // L: 230
var29 = var0.selectorMtf[var36]; // L: 231
byte var28;
for (var28 = var27[var29]; var29 > 0; --var29) {
var27[var29] = var27[var29 - 1];
for (var28 = var27[var29]; var29 > 0; --var29) { // L: 232 233 235
var27[var29] = var27[var29 - 1]; // L: 234
}
var27[0] = var28;
var0.selector[var36] = var28;
var27[0] = var28; // L: 237
var0.selector[var36] = var28; // L: 238
}
int var38;
for (var38 = 0; var38 < var40; ++var38) {
int var50 = BZip2Decompressor_readBits(5, var0);
for (var38 = 0; var38 < var40; ++var38) { // L: 241
int var50 = BZip2Decompressor_readBits(5, var0); // L: 242
for (var36 = 0; var36 < var39; ++var36) {
for (var36 = 0; var36 < var39; ++var36) { // L: 243
while (true) {
var1 = BZip2Decompressor_readNextBit(var0);
if (var1 == 0) {
var0.temp_charArray2d[var38][var36] = (byte)var50;
var1 = BZip2Decompressor_readNextBit(var0); // L: 245
if (var1 == 0) { // L: 246
var0.temp_charArray2d[var38][var36] = (byte)var50; // L: 251
break;
}
var1 = BZip2Decompressor_readNextBit(var0);
if (var1 == 0) {
var1 = BZip2Decompressor_readNextBit(var0); // L: 247
if (var1 == 0) { // L: 248
++var50;
} else {
--var50;
--var50; // L: 249
}
}
}
}
for (var38 = 0; var38 < var40; ++var38) {
byte var2 = 32;
byte var3 = 0;
for (var38 = 0; var38 < var40; ++var38) { // L: 254
byte var2 = 32; // L: 255
byte var3 = 0; // L: 256
for (var36 = 0; var36 < var39; ++var36) {
if (var0.temp_charArray2d[var38][var36] > var3) {
for (var36 = 0; var36 < var39; ++var36) { // L: 257
if (var0.temp_charArray2d[var38][var36] > var3) { // L: 258
var3 = var0.temp_charArray2d[var38][var36];
}
if (var0.temp_charArray2d[var38][var36] < var2) {
if (var0.temp_charArray2d[var38][var36] < var2) { // L: 259
var2 = var0.temp_charArray2d[var38][var36];
}
}
BZip2Decompressor_createHuffmanTables(var0.limit[var38], var0.base[var38], var0.perm[var38], var0.temp_charArray2d[var38], var2, var3, var39);
var0.minLens[var38] = var2;
BZip2Decompressor_createHuffmanTables(var0.limit[var38], var0.base[var38], var0.perm[var38], var0.temp_charArray2d[var38], var2, var3, var39); // L: 261
var0.minLens[var38] = var2; // L: 262
}
int var42 = var0.nInUse + 1;
int var43 = -1;
byte var44 = 0;
int var42 = var0.nInUse + 1; // L: 264
int var43 = -1; // L: 265
byte var44 = 0; // L: 266
for (var36 = 0; var36 <= 255; ++var36) {
for (var36 = 0; var36 <= 255; ++var36) { // L: 267
var0.unzftab[var36] = 0;
}
int var56 = 4095;
int var56 = 4095; // L: 272
int var35;
int var55;
for (var35 = 15; var35 >= 0; --var35) {
for (var55 = 15; var55 >= 0; --var55) {
var0.ll8[var56] = (byte)(var55 + var35 * 16);
--var56;
for (var35 = 15; var35 >= 0; --var35) { // L: 273
for (var55 = 15; var55 >= 0; --var55) { // L: 274
var0.ll8[var56] = (byte)(var55 + var35 * 16); // L: 275
--var56; // L: 276
}
var0.getAndMoveToFrontDecode_yy[var35] = var56 + 1;
var0.getAndMoveToFrontDecode_yy[var35] = var56 + 1; // L: 278
}
int var47 = 0;
int var47 = 0; // L: 281
byte var54;
if (var44 == 0) {
++var43;
var44 = 50;
var54 = var0.selector[var43];
var22 = var0.minLens[var54];
var23 = var0.limit[var54];
var25 = var0.perm[var54];
var24 = var0.base[var54];
if (var44 == 0) { // L: 282
++var43; // L: 283
var44 = 50; // L: 284
var54 = var0.selector[var43]; // L: 285
var22 = var0.minLens[var54]; // L: 286
var23 = var0.limit[var54]; // L: 287
var25 = var0.perm[var54]; // L: 288
var24 = var0.base[var54]; // L: 289
}
int var45 = var44 - 1;
int var51 = var22;
int var45 = var44 - 1; // L: 291
int var51 = var22; // L: 292
int var52;
byte var53;
for (var52 = BZip2Decompressor_readBits(var22, var0); var52 > var23[var51]; var52 = var52 << 1 | var53) {
++var51;
var53 = BZip2Decompressor_readNextBit(var0);
for (var52 = BZip2Decompressor_readBits(var22, var0); var52 > var23[var51]; var52 = var52 << 1 | var53) { // L: 293 295 298
++var51; // L: 296
var53 = BZip2Decompressor_readNextBit(var0); // L: 297
}
int var46 = var25[var52 - var24[var51]];
int var46 = var25[var52 - var24[var51]]; // L: 300
while (true) {
int[] var10000;
int var10002;
while (var46 != var42) {
if (var46 != 0 && var46 != 1) {
int var33 = var46 - 1;
while (var46 != var42) { // L: 302
if (var46 != 0 && var46 != 1) { // L: 303
int var33 = var46 - 1; // L: 349
int var30;
if (var33 < 16) {
var30 = var0.getAndMoveToFrontDecode_yy[0];
if (var33 < 16) { // L: 350
var30 = var0.getAndMoveToFrontDecode_yy[0]; // L: 351
for (var1 = var0.ll8[var30 + var33]; var33 > 3; var33 -= 4) {
int var34 = var30 + var33;
var0.ll8[var34] = var0.ll8[var34 - 1];
var0.ll8[var34 - 1] = var0.ll8[var34 - 2];
var0.ll8[var34 - 2] = var0.ll8[var34 - 3];
var0.ll8[var34 - 3] = var0.ll8[var34 - 4];
for (var1 = var0.ll8[var30 + var33]; var33 > 3; var33 -= 4) { // L: 352 353 359
int var34 = var30 + var33; // L: 354
var0.ll8[var34] = var0.ll8[var34 - 1]; // L: 355
var0.ll8[var34 - 1] = var0.ll8[var34 - 2]; // L: 356
var0.ll8[var34 - 2] = var0.ll8[var34 - 3]; // L: 357
var0.ll8[var34 - 3] = var0.ll8[var34 - 4]; // L: 358
}
while (var33 > 0) {
var0.ll8[var30 + var33] = var0.ll8[var30 + var33 - 1];
--var33;
while (var33 > 0) { // L: 361
var0.ll8[var30 + var33] = var0.ll8[var30 + var33 - 1]; // L: 362
--var33; // L: 363
}
var0.ll8[var30] = var1;
var0.ll8[var30] = var1; // L: 365
} else {
int var31 = var33 / 16;
int var32 = var33 % 16;
var30 = var0.getAndMoveToFrontDecode_yy[var31] + var32;
int var31 = var33 / 16; // L: 368
int var32 = var33 % 16; // L: 369
var30 = var0.getAndMoveToFrontDecode_yy[var31] + var32; // L: 370
for (var1 = var0.ll8[var30]; var30 > var0.getAndMoveToFrontDecode_yy[var31]; --var30) {
var0.ll8[var30] = var0.ll8[var30 - 1];
for (var1 = var0.ll8[var30]; var30 > var0.getAndMoveToFrontDecode_yy[var31]; --var30) { // L: 371 372 374
var0.ll8[var30] = var0.ll8[var30 - 1]; // L: 373
}
for (var10002 = var0.getAndMoveToFrontDecode_yy[var31]++; var31 > 0; --var31) {
var10002 = var0.getAndMoveToFrontDecode_yy[var31]--;
var0.ll8[var0.getAndMoveToFrontDecode_yy[var31]] = var0.ll8[var0.getAndMoveToFrontDecode_yy[var31 - 1] + 16 - 1];
for (var10002 = var0.getAndMoveToFrontDecode_yy[var31]++; var31 > 0; --var31) { // L: 376 377 380
var10002 = var0.getAndMoveToFrontDecode_yy[var31]--; // L: 378
var0.ll8[var0.getAndMoveToFrontDecode_yy[var31]] = var0.ll8[var0.getAndMoveToFrontDecode_yy[var31 - 1] + 16 - 1]; // L: 379
}
var10002 = var0.getAndMoveToFrontDecode_yy[0]--;
var0.ll8[var0.getAndMoveToFrontDecode_yy[0]] = var1;
if (var0.getAndMoveToFrontDecode_yy[0] == 0) {
var56 = 4095;
var10002 = var0.getAndMoveToFrontDecode_yy[0]--; // L: 382
var0.ll8[var0.getAndMoveToFrontDecode_yy[0]] = var1; // L: 383
if (var0.getAndMoveToFrontDecode_yy[0] == 0) { // L: 384
var56 = 4095; // L: 385
for (var35 = 15; var35 >= 0; --var35) {
for (var55 = 15; var55 >= 0; --var55) {
var0.ll8[var56] = var0.ll8[var0.getAndMoveToFrontDecode_yy[var35] + var55];
--var56;
for (var35 = 15; var35 >= 0; --var35) { // L: 386
for (var55 = 15; var55 >= 0; --var55) { // L: 387
var0.ll8[var56] = var0.ll8[var0.getAndMoveToFrontDecode_yy[var35] + var55]; // L: 388
--var56; // L: 389
}
var0.getAndMoveToFrontDecode_yy[var35] = var56 + 1;
var0.getAndMoveToFrontDecode_yy[var35] = var56 + 1; // L: 391
}
}
}
var10002 = var0.unzftab[var0.seqToUnseq[var1 & 255] & 255]++;
TileItemPile.BZip2Decompressor_block[var47] = var0.seqToUnseq[var1 & 255] & 255;
++var47;
if (var45 == 0) {
++var43;
var45 = 50;
var54 = var0.selector[var43];
var22 = var0.minLens[var54];
var23 = var0.limit[var54];
var25 = var0.perm[var54];
var24 = var0.base[var54];
var10002 = var0.unzftab[var0.seqToUnseq[var1 & 255] & 255]++; // L: 396
TileItemPile.BZip2Decompressor_block[var47] = var0.seqToUnseq[var1 & 255] & 255; // L: 397
++var47; // L: 398
if (var45 == 0) { // L: 399
++var43; // L: 400
var45 = 50; // L: 401
var54 = var0.selector[var43]; // L: 402
var22 = var0.minLens[var54]; // L: 403
var23 = var0.limit[var54]; // L: 404
var25 = var0.perm[var54]; // L: 405
var24 = var0.base[var54]; // L: 406
}
--var45;
var51 = var22;
--var45; // L: 408
var51 = var22; // L: 409
for (var52 = BZip2Decompressor_readBits(var22, var0); var52 > var23[var51]; var52 = var52 << 1 | var53) {
++var51;
var53 = BZip2Decompressor_readNextBit(var0);
for (var52 = BZip2Decompressor_readBits(var22, var0); var52 > var23[var51]; var52 = var52 << 1 | var53) { // L: 410 412 415
++var51; // L: 413
var53 = BZip2Decompressor_readNextBit(var0); // L: 414
}
var46 = var25[var52 - var24[var51]];
var46 = var25[var52 - var24[var51]]; // L: 417
} else {
int var48 = -1;
int var49 = 1;
int var48 = -1; // L: 304
int var49 = 1; // L: 305
do {
if (var46 == 0) {
if (var46 == 0) { // L: 307
var48 += var49;
} else if (var46 == 1) {
} else if (var46 == 1) { // L: 308
var48 += var49 * 2;
}
var49 *= 2;
if (var45 == 0) {
++var43;
var45 = 50;
var54 = var0.selector[var43];
var22 = var0.minLens[var54];
var23 = var0.limit[var54];
var25 = var0.perm[var54];
var24 = var0.base[var54];
var49 *= 2; // L: 309
if (var45 == 0) { // L: 310
++var43; // L: 311
var45 = 50; // L: 312
var54 = var0.selector[var43]; // L: 313
var22 = var0.minLens[var54]; // L: 314
var23 = var0.limit[var54]; // L: 315
var25 = var0.perm[var54]; // L: 316
var24 = var0.base[var54]; // L: 317
}
--var45;
var51 = var22;
--var45; // L: 319
var51 = var22; // L: 320
for (var52 = BZip2Decompressor_readBits(var22, var0); var52 > var23[var51]; var52 = var52 << 1 | var53) {
++var51;
var53 = BZip2Decompressor_readNextBit(var0);
for (var52 = BZip2Decompressor_readBits(var22, var0); var52 > var23[var51]; var52 = var52 << 1 | var53) { // L: 321 323 326
++var51; // L: 324
var53 = BZip2Decompressor_readNextBit(var0); // L: 325
}
var46 = var25[var52 - var24[var51]];
} while(var46 == 0 || var46 == 1);
var46 = var25[var52 - var24[var51]]; // L: 328
} while(var46 == 0 || var46 == 1); // L: 329
++var48;
var1 = var0.seqToUnseq[var0.ll8[var0.getAndMoveToFrontDecode_yy[0]] & 255];
var10000 = var0.unzftab;
++var48; // L: 330
var1 = var0.seqToUnseq[var0.ll8[var0.getAndMoveToFrontDecode_yy[0]] & 255]; // L: 331
var10000 = var0.unzftab; // L: 332
for (var10000[var1 & 255] += var48; var48 > 0; --var48) {
TileItemPile.BZip2Decompressor_block[var47] = var1 & 255;
++var47;
for (var10000[var1 & 255] += var48; var48 > 0; --var48) { // L: 333 336
TileItemPile.BZip2Decompressor_block[var47] = var1 & 255; // L: 334
++var47; // L: 335
}
}
}
var0.su_rNToGo = 0;
var0.out_char = 0;
var0.cftab[0] = 0;
var0.su_rNToGo = 0; // L: 421
var0.out_char = 0; // L: 422
var0.cftab[0] = 0; // L: 423
for (var36 = 1; var36 <= 256; ++var36) {
for (var36 = 1; var36 <= 256; ++var36) { // L: 424
var0.cftab[var36] = var0.unzftab[var36 - 1];
}
for (var36 = 1; var36 <= 256; ++var36) {
for (var36 = 1; var36 <= 256; ++var36) { // L: 425
var10000 = var0.cftab;
var10000[var36] += var0.cftab[var36 - 1];
}
for (var36 = 0; var36 < var47; ++var36) {
var1 = (byte)(TileItemPile.BZip2Decompressor_block[var36] & 255);
var10000 = TileItemPile.BZip2Decompressor_block;
for (var36 = 0; var36 < var47; ++var36) { // L: 426
var1 = (byte)(TileItemPile.BZip2Decompressor_block[var36] & 255); // L: 427
var10000 = TileItemPile.BZip2Decompressor_block; // L: 428
int var10001 = var0.cftab[var1 & 255];
var10000[var10001] |= var36 << 8;
var10002 = var0.cftab[var1 & 255]++;
var10002 = var0.cftab[var1 & 255]++; // L: 429
}
var0.field3779 = TileItemPile.BZip2Decompressor_block[var0.originalPointer] >> 8;
var0.nblocks_used = 0;
var0.field3779 = TileItemPile.BZip2Decompressor_block[var0.field3779];
var0.su_ch2 = (byte)(var0.field3779 & 255);
var0.field3779 >>= 8;
++var0.nblocks_used;
var0.field3797 = var47;
method5845(var0);
if (var0.field3797 + 1 == var0.nblocks_used && var0.su_rNToGo == 0) {
var0.field3779 = TileItemPile.BZip2Decompressor_block[var0.originalPointer] >> 8; // L: 431
var0.nblocks_used = 0; // L: 432
var0.field3779 = TileItemPile.BZip2Decompressor_block[var0.field3779]; // L: 433
var0.su_ch2 = (byte)(var0.field3779 & 255); // L: 434
var0.field3779 >>= 8; // L: 436
++var0.nblocks_used; // L: 437
var0.field3797 = var47; // L: 438
method5845(var0); // L: 439
if (var0.field3797 + 1 == var0.nblocks_used && var0.su_rNToGo == 0) { // L: 440
var26 = true;
break;
}
var26 = false;
var26 = false; // L: 441
break;
}
}
return;
return; // L: 443
}
}
@@ -544,7 +544,7 @@ public final class BZip2Decompressor {
)
@Export("BZip2Decompressor_readNextByte")
static byte BZip2Decompressor_readNextByte(BZip2State var0) {
return (byte)BZip2Decompressor_readBits(8, var0);
return (byte)BZip2Decompressor_readBits(8, var0); // L: 447
}
@ObfuscatedName("t")
@@ -553,7 +553,7 @@ public final class BZip2Decompressor {
)
@Export("BZip2Decompressor_readNextBit")
static byte BZip2Decompressor_readNextBit(BZip2State var0) {
return (byte)BZip2Decompressor_readBits(1, var0);
return (byte)BZip2Decompressor_readBits(1, var0); // L: 451
}
@ObfuscatedName("j")
@@ -562,18 +562,18 @@ public final class BZip2Decompressor {
)
@Export("BZip2Decompressor_readBits")
static int BZip2Decompressor_readBits(int var0, BZip2State var1) {
while (var1.bsLive < var0) {
var1.bsBuff = var1.bsBuff << 8 | var1.inputArray[var1.nextByte] & 255;
var1.bsLive += 8;
++var1.nextByte;
++var1.nextBit_unused;
if (var1.nextBit_unused == 0) {
while (var1.bsLive < var0) { // L: 456
var1.bsBuff = var1.bsBuff << 8 | var1.inputArray[var1.nextByte] & 255; // L: 462
var1.bsLive += 8; // L: 463
++var1.nextByte; // L: 464
++var1.nextBit_unused; // L: 465
if (var1.nextBit_unused == 0) { // L: 466
}
}
int var2 = var1.bsBuff >> var1.bsLive - var0 & (1 << var0) - 1;
var1.bsLive -= var0;
return var2;
int var2 = var1.bsBuff >> var1.bsLive - var0 & (1 << var0) - 1; // L: 458
var1.bsLive -= var0; // L: 459
return var2; // L: 460
}
@ObfuscatedName("n")
@@ -582,59 +582,59 @@ public final class BZip2Decompressor {
)
@Export("makeMaps")
static void makeMaps(BZip2State var0) {
var0.nInUse = 0;
var0.nInUse = 0; // L: 472
for (int var1 = 0; var1 < 256; ++var1) {
if (var0.inUse[var1]) {
var0.seqToUnseq[var0.nInUse] = (byte)var1;
++var0.nInUse;
for (int var1 = 0; var1 < 256; ++var1) { // L: 473
if (var0.inUse[var1]) { // L: 474
var0.seqToUnseq[var0.nInUse] = (byte)var1; // L: 475
++var0.nInUse; // L: 476
}
}
}
} // L: 479
@ObfuscatedName("p")
@Export("BZip2Decompressor_createHuffmanTables")
static void BZip2Decompressor_createHuffmanTables(int[] var0, int[] var1, int[] var2, byte[] var3, int var4, int var5, int var6) {
int var7 = 0;
int var7 = 0; // L: 486
int var8;
for (var8 = var4; var8 <= var5; ++var8) {
for (int var9 = 0; var9 < var6; ++var9) {
if (var8 == var3[var9]) {
var2[var7] = var9;
++var7;
for (var8 = var4; var8 <= var5; ++var8) { // L: 487
for (int var9 = 0; var9 < var6; ++var9) { // L: 488
if (var8 == var3[var9]) { // L: 489
var2[var7] = var9; // L: 490
++var7; // L: 491
}
}
}
for (var8 = 0; var8 < 23; ++var8) {
for (var8 = 0; var8 < 23; ++var8) { // L: 495
var1[var8] = 0;
}
for (var8 = 0; var8 < var6; ++var8) {
for (var8 = 0; var8 < var6; ++var8) { // L: 496
++var1[var3[var8] + 1];
}
for (var8 = 1; var8 < 23; ++var8) {
for (var8 = 1; var8 < 23; ++var8) { // L: 497
var1[var8] += var1[var8 - 1];
}
for (var8 = 0; var8 < 23; ++var8) {
for (var8 = 0; var8 < 23; ++var8) { // L: 498
var0[var8] = 0;
}
int var10 = 0;
int var10 = 0; // L: 499
for (var8 = var4; var8 <= var5; ++var8) {
var10 += var1[var8 + 1] - var1[var8];
var0[var8] = var10 - 1;
var10 <<= 1;
for (var8 = var4; var8 <= var5; ++var8) { // L: 500
var10 += var1[var8 + 1] - var1[var8]; // L: 501
var0[var8] = var10 - 1; // L: 502
var10 <<= 1; // L: 503
}
for (var8 = var4 + 1; var8 <= var5; ++var8) {
var1[var8] = (var0[var8 - 1] + 1 << 1) - var1[var8];
for (var8 = var4 + 1; var8 <= var5; ++var8) { // L: 505
var1[var8] = (var0[var8 - 1] + 1 << 1) - var1[var8]; // L: 506
}
}
} // L: 508
}

View File

@@ -76,9 +76,6 @@ public final class BZip2State {
@Export("bsLive")
int bsLive;
@ObfuscatedName("b")
@ObfuscatedGetter(
intValue = -980784128
)
@Export("blockSize100k")
int blockSize100k;
@ObfuscatedName("y")
@@ -159,29 +156,29 @@ public final class BZip2State {
int field3797;
BZip2State() {
this.field3765 = 4096;
this.field3761 = 16;
this.field3762 = 258;
this.field3769 = 6;
this.field3783 = 50;
this.field3793 = 18002;
this.nextByte = 0;
this.next_out = 0;
this.unzftab = new int[256];
this.cftab = new int[257];
this.inUse = new boolean[256];
this.inUse16 = new boolean[16];
this.seqToUnseq = new byte[256];
this.ll8 = new byte[4096];
this.getAndMoveToFrontDecode_yy = new int[16];
this.selector = new byte[18002];
this.selectorMtf = new byte[18002];
this.temp_charArray2d = new byte[6][258];
this.limit = new int[6][258];
this.base = new int[6][258];
this.perm = new int[6][258];
this.minLens = new int[6];
}
this.field3765 = 4096; // L: 4
this.field3761 = 16; // L: 5
this.field3762 = 258; // L: 6
this.field3769 = 6; // L: 7
this.field3783 = 50; // L: 8
this.field3793 = 18002; // L: 9
this.nextByte = 0; // L: 11
this.next_out = 0; // L: 14
this.unzftab = new int[256]; // L: 25
this.cftab = new int[257]; // L: 27
this.inUse = new boolean[256]; // L: 30
this.inUse16 = new boolean[16]; // L: 31
this.seqToUnseq = new byte[256]; // L: 32
this.ll8 = new byte[4096]; // L: 33
this.getAndMoveToFrontDecode_yy = new int[16]; // L: 34
this.selector = new byte[18002]; // L: 35
this.selectorMtf = new byte[18002]; // L: 36
this.temp_charArray2d = new byte[6][258]; // L: 37
this.limit = new int[6][258]; // L: 38
this.base = new int[6][258]; // L: 39
this.perm = new int[6][258]; // L: 40
this.minLens = new int[6]; // L: 41
} // L: 44
@ObfuscatedName("le")
@ObfuscatedSignature(
@@ -190,8 +187,8 @@ public final class BZip2State {
)
@Export("Clan_leaveChat")
static final void Clan_leaveChat() {
PacketBufferNode var0 = ItemContainer.getPacketBufferNode(ClientPacket.field2285, Client.packetWriter.isaacCipher);
var0.packetBuffer.writeByte(0);
Client.packetWriter.addNode(var0);
}
PacketBufferNode var0 = ItemContainer.getPacketBufferNode(ClientPacket.field2285, Client.packetWriter.isaacCipher); // L: 11039
var0.packetBuffer.writeByte(0); // L: 11040
Client.packetWriter.addNode(var0); // L: 11041
} // L: 11042
}

View File

@@ -73,26 +73,26 @@ public final class BoundaryObject {
garbageValue = "-2018740830"
)
public static String method3343(CharSequence var0) {
int var1 = var0.length();
StringBuilder var2 = new StringBuilder(var1);
int var1 = var0.length(); // L: 11
StringBuilder var2 = new StringBuilder(var1); // L: 12
for (int var3 = 0; var3 < var1; ++var3) {
char var4 = var0.charAt(var3);
if ((var4 < 'a' || var4 > 'z') && (var4 < 'A' || var4 > 'Z') && (var4 < '0' || var4 > '9') && var4 != '.' && var4 != '-' && var4 != '*' && var4 != '_') {
if (var4 == ' ') {
for (int var3 = 0; var3 < var1; ++var3) { // L: 13
char var4 = var0.charAt(var3); // L: 14
if ((var4 < 'a' || var4 > 'z') && (var4 < 'A' || var4 > 'Z') && (var4 < '0' || var4 > '9') && var4 != '.' && var4 != '-' && var4 != '*' && var4 != '_') { // L: 15
if (var4 == ' ') { // L: 16
var2.append('+');
} else {
byte var5 = Varps.charToByteCp1252(var4);
var2.append('%');
int var6 = var5 >> 4 & 15;
if (var6 >= 10) {
byte var5 = Varps.charToByteCp1252(var4); // L: 18
var2.append('%'); // L: 19
int var6 = var5 >> 4 & 15; // L: 20
if (var6 >= 10) { // L: 21
var2.append((char)(var6 + 55));
} else {
var2.append((char)(var6 + 48));
var2.append((char)(var6 + 48)); // L: 22
}
var6 = var5 & 15;
if (var6 >= 10) {
var6 = var5 & 15; // L: 23
if (var6 >= 10) { // L: 24
var2.append((char)(var6 + 55));
} else {
var2.append((char)(var6 + 48));
@@ -103,7 +103,7 @@ public final class BoundaryObject {
}
}
return var2.toString();
return var2.toString(); // L: 28
}
@ObfuscatedName("v")
@@ -112,7 +112,7 @@ public final class BoundaryObject {
garbageValue = "-57"
)
public static boolean method3342(int var0) {
return var0 == WorldMapDecorationType.field2766.id;
return var0 == WorldMapDecorationType.field2766.id; // L: 46
}
@ObfuscatedName("t")
@@ -121,6 +121,6 @@ public final class BoundaryObject {
garbageValue = "14"
)
public static boolean method3341(int var0) {
return (var0 >> 29 & 1) != 0;
return (var0 >> 29 & 1) != 0; // L: 25
}
}

View File

@@ -39,13 +39,13 @@ public class Bounds {
public int highY;
public Bounds(int var1, int var2, int var3, int var4) {
this.setLow(var1, var2);
this.setHigh(var3, var4);
}
this.setLow(var1, var2); // L: 14
this.setHigh(var3, var4); // L: 15
} // L: 16
public Bounds(int var1, int var2) {
this(0, 0, var1, var2);
}
this(0, 0, var1, var2); // L: 10
} // L: 11
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -54,9 +54,9 @@ public class Bounds {
)
@Export("setLow")
public void setLow(int var1, int var2) {
this.lowX = var1;
this.lowY = var2;
}
this.lowX = var1; // L: 19
this.lowY = var2; // L: 20
} // L: 21
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -65,9 +65,9 @@ public class Bounds {
)
@Export("setHigh")
public void setHigh(int var1, int var2) {
this.highX = var1;
this.highY = var2;
}
this.highX = var1; // L: 24
this.highY = var2; // L: 25
} // L: 26
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -75,9 +75,9 @@ public class Bounds {
garbageValue = "-769796699"
)
public void method6014(Bounds var1, Bounds var2) {
this.method6015(var1, var2);
this.method6024(var1, var2);
}
this.method6015(var1, var2); // L: 33
this.method6024(var1, var2); // L: 34
} // L: 35
@ObfuscatedName("w")
@ObfuscatedSignature(
@@ -85,22 +85,22 @@ public class Bounds {
garbageValue = "-1678302488"
)
void method6015(Bounds var1, Bounds var2) {
var2.lowX = this.lowX;
var2.highX = this.highX;
if (this.lowX < var1.lowX) {
var2.highX -= var1.lowX - this.lowX;
var2.lowX = var1.lowX;
var2.lowX = this.lowX; // L: 38
var2.highX = this.highX; // L: 39
if (this.lowX < var1.lowX) { // L: 40
var2.highX = (var2.highX * 1575555575 - (var1.lowX * 1575555575 - this.lowX * 1575555575)) * 620953543; // L: 41
var2.lowX = var1.lowX; // L: 42
}
if (var2.method6017() > var1.method6017()) {
var2.highX -= var2.method6017() - var1.method6017();
if (var2.method6017() > var1.method6017()) { // L: 44
var2.highX -= var2.method6017() - var1.method6017(); // L: 45
}
if (var2.highX < 0) {
if (var2.highX < 0) { // L: 47
var2.highX = 0;
}
}
} // L: 48
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -108,22 +108,22 @@ public class Bounds {
garbageValue = "394854704"
)
void method6024(Bounds var1, Bounds var2) {
var2.lowY = this.lowY;
var2.highY = this.highY;
if (this.lowY < var1.lowY) {
var2.highY -= var1.lowY - this.lowY;
var2.lowY = var1.lowY;
var2.lowY = this.lowY; // L: 51
var2.highY = this.highY; // L: 52
if (this.lowY < var1.lowY) { // L: 53
var2.highY = (var2.highY * 1547305793 - (var1.lowY * 1547305793 - this.lowY * 1547305793)) * 1803324609; // L: 54
var2.lowY = var1.lowY; // L: 55
}
if (var2.method6018() > var1.method6018()) {
var2.highY -= var2.method6018() - var1.method6018();
if (var2.method6018() > var1.method6018()) { // L: 57
var2.highY -= var2.method6018() - var1.method6018(); // L: 58
}
if (var2.highY < 0) {
if (var2.highY < 0) { // L: 60
var2.highY = 0;
}
}
} // L: 61
@ObfuscatedName("j")
@ObfuscatedSignature(
@@ -131,7 +131,7 @@ public class Bounds {
garbageValue = "-1901002144"
)
int method6017() {
return this.highX + this.lowX;
return this.highX + this.lowX; // L: 64
}
@ObfuscatedName("n")
@@ -140,10 +140,10 @@ public class Bounds {
garbageValue = "924077669"
)
int method6018() {
return this.lowY + this.highY;
return this.lowY + this.highY; // L: 68
}
public String toString() {
return null;
return null; // L: 29
}
}

View File

@@ -27,8 +27,8 @@ public class Buddy extends User {
public int rank;
Buddy() {
this.world = -1;
}
this.world = -1; // L: 4
} // L: 8
@ObfuscatedName("af")
@ObfuscatedSignature(
@@ -37,9 +37,9 @@ public class Buddy extends User {
)
@Export("set")
void set(int var1, int var2) {
this.world = var1;
this.int2 = var2;
}
this.world = var1; // L: 11
this.int2 = var2; // L: 12
} // L: 13
@ObfuscatedName("ar")
@ObfuscatedSignature(
@@ -48,7 +48,7 @@ public class Buddy extends User {
)
@Export("getWorld")
public int getWorld() {
return this.world;
return this.world; // L: 16
}
@ObfuscatedName("az")
@@ -58,6 +58,6 @@ public class Buddy extends User {
)
@Export("hasWorld")
public boolean hasWorld() {
return this.world > 0;
return this.world > 0; // L: 20
}
}

View File

@@ -17,8 +17,8 @@ public class BuddyRankComparator extends AbstractUserComparator {
final boolean reversed;
public BuddyRankComparator(boolean var1) {
this.reversed = var1;
}
this.reversed = var1; // L: 10
} // L: 11
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -27,15 +27,15 @@ public class BuddyRankComparator extends AbstractUserComparator {
)
@Export("compareBuddy")
int compareBuddy(Buddy var1, Buddy var2) {
if (var2.rank != var1.rank) {
return this.reversed ? var1.rank - var2.rank : var2.rank - var1.rank;
if (var2.rank != var1.rank) { // L: 14
return this.reversed ? var1.rank - var2.rank : var2.rank - var1.rank; // L: 15
} else {
return this.compareUser(var1, var2);
return this.compareUser(var1, var2); // L: 17
}
}
public int compare(Object var1, Object var2) {
return this.compareBuddy((Buddy)var1, (Buddy)var2);
return this.compareBuddy((Buddy)var1, (Buddy)var2); // L: 21
}
@ObfuscatedName("ih")
@@ -44,40 +44,40 @@ public class BuddyRankComparator extends AbstractUserComparator {
garbageValue = "9125"
)
static void method3522(int var0, int var1) {
int var2 = GrandExchangeOfferTotalQuantityComparator.fontBold12.stringWidth("Choose Option");
int var2 = GrandExchangeOfferTotalQuantityComparator.fontBold12.stringWidth("Choose Option"); // L: 7440
int var3;
int var4;
for (var3 = 0; var3 < Client.menuOptionsCount; ++var3) {
var4 = GrandExchangeOfferTotalQuantityComparator.fontBold12.stringWidth(ArchiveLoader.method1230(var3));
if (var4 > var2) {
for (var3 = 0; var3 < Client.menuOptionsCount; ++var3) { // L: 7441
var4 = GrandExchangeOfferTotalQuantityComparator.fontBold12.stringWidth(ArchiveLoader.method1230(var3)); // L: 7442
if (var4 > var2) { // L: 7443
var2 = var4;
}
}
var2 += 8;
var3 = Client.menuOptionsCount * 15 + 22;
var4 = var0 - var2 / 2;
if (var2 + var4 > IgnoreList.canvasWidth) {
var2 += 8; // L: 7445
var3 = Client.menuOptionsCount * 15 + 22; // L: 7446
var4 = var0 - var2 / 2; // L: 7447
if (var2 + var4 > IgnoreList.canvasWidth) { // L: 7448
var4 = IgnoreList.canvasWidth - var2;
}
if (var4 < 0) {
if (var4 < 0) { // L: 7449
var4 = 0;
}
int var5 = var1;
if (var3 + var1 > ModelData0.canvasHeight) {
int var5 = var1; // L: 7450
if (var3 + var1 > ModelData0.canvasHeight) { // L: 7451
var5 = ModelData0.canvasHeight - var3;
}
if (var5 < 0) {
if (var5 < 0) { // L: 7452
var5 = 0;
}
AbstractUserComparator.menuX = var4;
DynamicObject.menuY = var5;
Occluder.menuWidth = var2;
class182.menuHeight = Client.menuOptionsCount * 15 + 22;
}
AbstractUserComparator.menuX = var4; // L: 7453
DynamicObject.menuY = var5; // L: 7454
Occluder.menuWidth = var2; // L: 7455
class182.menuHeight = Client.menuOptionsCount * 15 + 22; // L: 7456
} // L: 7457
}

File diff suppressed because it is too large Load Diff

View File

@@ -74,15 +74,15 @@ public class BufferedFile {
descriptor = "(Lmy;II)V"
)
public BufferedFile(AccessFile var1, int var2, int var3) throws IOException {
this.readBufferOffset = -1L;
this.writeBufferOffset = -1L;
this.writeBufferLength = 0;
this.accessFile = var1;
this.length = this.fileLength = var1.length();
this.readBuffer = new byte[var2];
this.writeBuffer = new byte[var3];
this.offset = 0L;
}
this.readBufferOffset = -1L; // L: 9
this.writeBufferOffset = -1L; // L: 12
this.writeBufferLength = 0; // L: 13
this.accessFile = var1; // L: 20
this.length = this.fileLength = var1.length(); // L: 21
this.readBuffer = new byte[var2]; // L: 22
this.writeBuffer = new byte[var3]; // L: 23
this.offset = 0L; // L: 24
} // L: 25
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -91,19 +91,19 @@ public class BufferedFile {
)
@Export("close")
public void close() throws IOException {
this.flush();
this.accessFile.close();
}
this.flush(); // L: 28
this.accessFile.close(); // L: 29
} // L: 30
@ObfuscatedName("v")
@Export("seek")
public void seek(long var1) throws IOException {
if (var1 < 0L) {
if (var1 < 0L) { // L: 33
throw new IOException("");
} else {
this.offset = var1;
this.offset = var1; // L: 34
}
}
} // L: 35
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -112,7 +112,7 @@ public class BufferedFile {
)
@Export("length")
public long length() {
return this.length;
return this.length; // L: 38
}
@ObfuscatedName("w")
@@ -122,8 +122,8 @@ public class BufferedFile {
)
@Export("readFully")
public void readFully(byte[] var1) throws IOException {
this.read(var1, 0, var1.length);
}
this.read(var1, 0, var1.length); // L: 42
} // L: 43
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -133,103 +133,103 @@ public class BufferedFile {
@Export("read")
public void read(byte[] var1, int var2, int var3) throws IOException {
try {
if (var3 + var2 > var1.length) {
if (var3 + var2 > var1.length) { // L: 47
throw new ArrayIndexOutOfBoundsException(var3 + var2 - var1.length);
}
if (-1L != this.writeBufferOffset && this.offset >= this.writeBufferOffset && (long)var3 + this.offset <= (long)this.writeBufferLength + this.writeBufferOffset) {
System.arraycopy(this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var1, var2, var3);
this.offset += (long)var3;
return;
if (-1L != this.writeBufferOffset && this.offset >= this.writeBufferOffset && (long)var3 + this.offset <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 48
System.arraycopy(this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var1, var2, var3); // L: 49
this.offset += (long)var3; // L: 50
return; // L: 51
}
long var4 = this.offset;
int var7 = var3;
long var4 = this.offset; // L: 53
int var7 = var3; // L: 55
int var8;
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) {
var8 = (int)((long)this.readBufferLength - (this.offset - this.readBufferOffset));
if (var8 > var3) {
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) { // L: 56
var8 = (int)((long)this.readBufferLength - (this.offset - this.readBufferOffset)); // L: 57
if (var8 > var3) { // L: 58
var8 = var3;
}
System.arraycopy(this.readBuffer, (int)(this.offset - this.readBufferOffset), var1, var2, var8);
this.offset += (long)var8;
var2 += var8;
var3 -= var8;
System.arraycopy(this.readBuffer, (int)(this.offset - this.readBufferOffset), var1, var2, var8); // L: 59
this.offset += (long)var8; // L: 60
var2 += var8; // L: 61
var3 -= var8; // L: 62
}
if (var3 > this.readBuffer.length) {
this.accessFile.seek(this.offset);
if (var3 > this.readBuffer.length) { // L: 64
this.accessFile.seek(this.offset); // L: 65
for (this.fileOffset = this.offset; var3 > 0; var3 -= var8) {
var8 = this.accessFile.read(var1, var2, var3);
if (var8 == -1) {
for (this.fileOffset = this.offset; var3 > 0; var3 -= var8) { // L: 66 67 73
var8 = this.accessFile.read(var1, var2, var3); // L: 68
if (var8 == -1) { // L: 69
break;
}
this.fileOffset += (long)var8;
this.offset += (long)var8;
var2 += var8;
this.fileOffset += (long)var8; // L: 70
this.offset += (long)var8; // L: 71
var2 += var8; // L: 72
}
} else if (var3 > 0) {
this.load();
var8 = var3;
if (var3 > this.readBufferLength) {
} else if (var3 > 0) { // L: 76
this.load(); // L: 77
var8 = var3; // L: 78
if (var3 > this.readBufferLength) { // L: 79
var8 = this.readBufferLength;
}
System.arraycopy(this.readBuffer, 0, var1, var2, var8);
var2 += var8;
var3 -= var8;
this.offset += (long)var8;
System.arraycopy(this.readBuffer, 0, var1, var2, var8); // L: 80
var2 += var8; // L: 81
var3 -= var8; // L: 82
this.offset += (long)var8; // L: 83
}
if (-1L != this.writeBufferOffset) {
if (this.writeBufferOffset > this.offset && var3 > 0) {
var8 = var2 + (int)(this.writeBufferOffset - this.offset);
if (var8 > var3 + var2) {
if (-1L != this.writeBufferOffset) { // L: 85
if (this.writeBufferOffset > this.offset && var3 > 0) { // L: 86
var8 = var2 + (int)(this.writeBufferOffset - this.offset); // L: 87
if (var8 > var3 + var2) { // L: 88
var8 = var3 + var2;
}
while (var2 < var8) {
var1[var2++] = 0;
--var3;
++this.offset;
while (var2 < var8) { // L: 89
var1[var2++] = 0; // L: 90
--var3; // L: 91
++this.offset; // L: 92
}
}
long var13 = -1L;
long var10 = -1L;
if (this.writeBufferOffset >= var4 && this.writeBufferOffset < var4 + (long)var7) {
var13 = this.writeBufferOffset;
} else if (var4 >= this.writeBufferOffset && var4 < this.writeBufferOffset + (long)this.writeBufferLength) {
var13 = var4;
long var13 = -1L; // L: 95
long var10 = -1L; // L: 96
if (this.writeBufferOffset >= var4 && this.writeBufferOffset < var4 + (long)var7) { // L: 97
var13 = this.writeBufferOffset; // L: 98
} else if (var4 >= this.writeBufferOffset && var4 < this.writeBufferOffset + (long)this.writeBufferLength) { // L: 100
var13 = var4; // L: 101
}
if (this.writeBufferOffset + (long)this.writeBufferLength > var4 && this.writeBufferOffset + (long)this.writeBufferLength <= var4 + (long)var7) {
var10 = (long)this.writeBufferLength + this.writeBufferOffset;
} else if (var4 + (long)var7 > this.writeBufferOffset && (long)var7 + var4 <= (long)this.writeBufferLength + this.writeBufferOffset) {
var10 = (long)var7 + var4;
if (this.writeBufferOffset + (long)this.writeBufferLength > var4 && this.writeBufferOffset + (long)this.writeBufferLength <= var4 + (long)var7) { // L: 103
var10 = (long)this.writeBufferLength + this.writeBufferOffset; // L: 104
} else if (var4 + (long)var7 > this.writeBufferOffset && (long)var7 + var4 <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 106
var10 = (long)var7 + var4; // L: 107
}
if (var13 > -1L && var10 > var13) {
int var12 = (int)(var10 - var13);
System.arraycopy(this.writeBuffer, (int)(var13 - this.writeBufferOffset), var1, (int)(var13 - var4) + var2, var12);
if (var10 > this.offset) {
var3 = (int)((long)var3 - (var10 - this.offset));
this.offset = var10;
if (var13 > -1L && var10 > var13) { // L: 109
int var12 = (int)(var10 - var13); // L: 110
System.arraycopy(this.writeBuffer, (int)(var13 - this.writeBufferOffset), var1, (int)(var13 - var4) + var2, var12); // L: 111
if (var10 > this.offset) { // L: 112
var3 = (int)((long)var3 - (var10 - this.offset)); // L: 113
this.offset = var10; // L: 114
}
}
}
} catch (IOException var16) {
this.fileOffset = -1L;
throw var16;
} catch (IOException var16) { // L: 120
this.fileOffset = -1L; // L: 121
throw var16; // L: 122
}
if (var3 > 0) {
if (var3 > 0) { // L: 124
throw new EOFException();
}
}
} // L: 125
@ObfuscatedName("j")
@ObfuscatedSignature(
@@ -238,28 +238,28 @@ public class BufferedFile {
)
@Export("load")
void load() throws IOException {
this.readBufferLength = 0;
if (this.fileOffset != this.offset) {
this.accessFile.seek(this.offset);
this.fileOffset = this.offset;
this.readBufferLength = 0; // L: 128
if (this.fileOffset != this.offset) { // L: 129
this.accessFile.seek(this.offset); // L: 130
this.fileOffset = this.offset; // L: 131
}
int var2;
for (this.readBufferOffset = this.offset; this.readBufferLength < this.readBuffer.length; this.readBufferLength += var2) {
int var1 = this.readBuffer.length - this.readBufferLength;
if (var1 > 200000000) {
for (this.readBufferOffset = this.offset; this.readBufferLength < this.readBuffer.length; this.readBufferLength += var2) { // L: 133 134 140
int var1 = this.readBuffer.length - this.readBufferLength; // L: 135
if (var1 > 200000000) { // L: 136
var1 = 200000000;
}
var2 = this.accessFile.read(this.readBuffer, this.readBufferLength, var1);
if (var2 == -1) {
var2 = this.accessFile.read(this.readBuffer, this.readBufferLength, var1); // L: 137
if (var2 == -1) { // L: 138
break;
}
this.fileOffset += (long)var2;
this.fileOffset += (long)var2; // L: 139
}
}
} // L: 142
@ObfuscatedName("n")
@ObfuscatedSignature(
@@ -269,75 +269,75 @@ public class BufferedFile {
@Export("write")
public void write(byte[] var1, int var2, int var3) throws IOException {
try {
if ((long)var3 + this.offset > this.length) {
if ((long)var3 + this.offset > this.length) { // L: 146
this.length = this.offset + (long)var3;
}
if (this.writeBufferOffset != -1L && (this.offset < this.writeBufferOffset || this.offset > this.writeBufferOffset + (long)this.writeBufferLength)) {
this.flush();
if (this.writeBufferOffset != -1L && (this.offset < this.writeBufferOffset || this.offset > this.writeBufferOffset + (long)this.writeBufferLength)) { // L: 147
this.flush(); // L: 148
}
if (this.writeBufferOffset != -1L && (long)var3 + this.offset > this.writeBufferOffset + (long)this.writeBuffer.length) {
int var4 = (int)((long)this.writeBuffer.length - (this.offset - this.writeBufferOffset));
System.arraycopy(var1, var2, this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var4);
this.offset += (long)var4;
var2 += var4;
var3 -= var4;
this.writeBufferLength = this.writeBuffer.length;
this.flush();
if (this.writeBufferOffset != -1L && (long)var3 + this.offset > this.writeBufferOffset + (long)this.writeBuffer.length) { // L: 150
int var4 = (int)((long)this.writeBuffer.length - (this.offset - this.writeBufferOffset)); // L: 151
System.arraycopy(var1, var2, this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var4); // L: 152
this.offset += (long)var4; // L: 153
var2 += var4; // L: 154
var3 -= var4; // L: 155
this.writeBufferLength = this.writeBuffer.length; // L: 156
this.flush(); // L: 157
}
if (var3 <= this.writeBuffer.length) {
if (var3 > 0) {
if (this.writeBufferOffset == -1L) {
if (var3 <= this.writeBuffer.length) { // L: 159
if (var3 > 0) { // L: 188
if (this.writeBufferOffset == -1L) { // L: 189
this.writeBufferOffset = this.offset;
}
System.arraycopy(var1, var2, this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var3);
this.offset += (long)var3;
if (this.offset - this.writeBufferOffset > (long)this.writeBufferLength) {
System.arraycopy(var1, var2, this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var3); // L: 190
this.offset += (long)var3; // L: 191
if (this.offset - this.writeBufferOffset > (long)this.writeBufferLength) { // L: 192
this.writeBufferLength = (int)(this.offset - this.writeBufferOffset);
}
}
} else {
if (this.offset != this.fileOffset) {
this.accessFile.seek(this.offset);
this.fileOffset = this.offset;
if (this.offset != this.fileOffset) { // L: 160
this.accessFile.seek(this.offset); // L: 161
this.fileOffset = this.offset; // L: 162
}
this.accessFile.write(var1, var2, var3);
this.fileOffset += (long)var3;
if (this.fileOffset > this.fileLength) {
this.accessFile.write(var1, var2, var3); // L: 164
this.fileOffset += (long)var3; // L: 165
if (this.fileOffset > this.fileLength) { // L: 166
this.fileLength = this.fileOffset;
}
long var9 = -1L;
long var6 = -1L;
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) {
var9 = this.offset;
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < this.offset + (long)var3) {
var9 = this.readBufferOffset;
long var9 = -1L; // L: 167
long var6 = -1L; // L: 168
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) { // L: 169
var9 = this.offset; // L: 170
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < this.offset + (long)var3) { // L: 172
var9 = this.readBufferOffset; // L: 173
}
if (this.offset + (long)var3 > this.readBufferOffset && (long)var3 + this.offset <= this.readBufferOffset + (long)this.readBufferLength) {
var6 = this.offset + (long)var3;
} else if ((long)this.readBufferLength + this.readBufferOffset > this.offset && (long)this.readBufferLength + this.readBufferOffset <= this.offset + (long)var3) {
var6 = (long)this.readBufferLength + this.readBufferOffset;
if (this.offset + (long)var3 > this.readBufferOffset && (long)var3 + this.offset <= this.readBufferOffset + (long)this.readBufferLength) { // L: 175
var6 = this.offset + (long)var3; // L: 176
} else if ((long)this.readBufferLength + this.readBufferOffset > this.offset && (long)this.readBufferLength + this.readBufferOffset <= this.offset + (long)var3) { // L: 178
var6 = (long)this.readBufferLength + this.readBufferOffset; // L: 179
}
if (var9 > -1L && var6 > var9) {
int var8 = (int)(var6 - var9);
System.arraycopy(var1, (int)(var9 + (long)var2 - this.offset), this.readBuffer, (int)(var9 - this.readBufferOffset), var8);
if (var9 > -1L && var6 > var9) { // L: 181
int var8 = (int)(var6 - var9); // L: 182
System.arraycopy(var1, (int)(var9 + (long)var2 - this.offset), this.readBuffer, (int)(var9 - this.readBufferOffset), var8); // L: 183
}
this.offset += (long)var3;
this.offset += (long)var3; // L: 185
}
} catch (IOException var12) {
this.fileOffset = -1L;
throw var12;
} catch (IOException var12) { // L: 196
this.fileOffset = -1L; // L: 197
throw var12; // L: 198
}
}
} // L: 186 193 200
@ObfuscatedName("p")
@ObfuscatedSignature(
@@ -346,40 +346,40 @@ public class BufferedFile {
)
@Export("flush")
void flush() throws IOException {
if (-1L != this.writeBufferOffset) {
if (this.writeBufferOffset != this.fileOffset) {
this.accessFile.seek(this.writeBufferOffset);
this.fileOffset = this.writeBufferOffset;
if (-1L != this.writeBufferOffset) { // L: 203
if (this.writeBufferOffset != this.fileOffset) { // L: 204
this.accessFile.seek(this.writeBufferOffset); // L: 205
this.fileOffset = this.writeBufferOffset; // L: 206
}
this.accessFile.write(this.writeBuffer, 0, this.writeBufferLength);
this.fileOffset += 958797773L * (long)(this.writeBufferLength * 1893510405);
if (this.fileOffset > this.fileLength) {
this.accessFile.write(this.writeBuffer, 0, this.writeBufferLength); // L: 208
this.fileOffset += (long)this.writeBufferLength * 1815493559466328065L; // L: 209
if (this.fileOffset > this.fileLength) { // L: 210
this.fileLength = this.fileOffset;
}
long var1 = -1L;
long var3 = -1L;
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < (long)this.readBufferLength + this.readBufferOffset) {
var1 = this.writeBufferOffset;
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < (long)this.writeBufferLength + this.writeBufferOffset) {
var1 = this.readBufferOffset;
long var1 = -1L; // L: 211
long var3 = -1L; // L: 212
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < (long)this.readBufferLength + this.readBufferOffset) { // L: 213
var1 = this.writeBufferOffset; // L: 214
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < (long)this.writeBufferLength + this.writeBufferOffset) { // L: 216
var1 = this.readBufferOffset; // L: 217
}
if ((long)this.writeBufferLength + this.writeBufferOffset > this.readBufferOffset && this.writeBufferOffset + (long)this.writeBufferLength <= (long)this.readBufferLength + this.readBufferOffset) {
var3 = this.writeBufferOffset + (long)this.writeBufferLength;
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= (long)this.writeBufferLength + this.writeBufferOffset) {
var3 = this.readBufferOffset + (long)this.readBufferLength;
if ((long)this.writeBufferLength + this.writeBufferOffset > this.readBufferOffset && this.writeBufferOffset + (long)this.writeBufferLength <= (long)this.readBufferLength + this.readBufferOffset) { // L: 219
var3 = this.writeBufferOffset + (long)this.writeBufferLength; // L: 220
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 222
var3 = this.readBufferOffset + (long)this.readBufferLength; // L: 223
}
if (var1 > -1L && var3 > var1) {
int var5 = (int)(var3 - var1);
System.arraycopy(this.writeBuffer, (int)(var1 - this.writeBufferOffset), this.readBuffer, (int)(var1 - this.readBufferOffset), var5);
if (var1 > -1L && var3 > var1) { // L: 225
int var5 = (int)(var3 - var1); // L: 226
System.arraycopy(this.writeBuffer, (int)(var1 - this.writeBufferOffset), this.readBuffer, (int)(var1 - this.readBufferOffset), var5); // L: 227
}
this.writeBufferOffset = -1L;
this.writeBufferLength = 0;
this.writeBufferOffset = -1L; // L: 229
this.writeBufferLength = 0; // L: 230
}
}
} // L: 232
}

View File

@@ -25,14 +25,14 @@ public class BufferedNetSocket extends AbstractSocket {
BufferedSink sink;
BufferedNetSocket(Socket var1, int var2, int var3) throws IOException {
this.socket = var1;
this.socket.setSoTimeout(30000);
this.socket.setTcpNoDelay(true);
this.socket.setReceiveBufferSize(65536);
this.socket.setSendBufferSize(65536);
this.source = new BufferedSource(this.socket.getInputStream(), var2);
this.sink = new BufferedSink(this.socket.getOutputStream(), var3);
}
this.socket = var1; // L: 12
this.socket.setSoTimeout(30000); // L: 13
this.socket.setTcpNoDelay(true); // L: 14
this.socket.setReceiveBufferSize(65536); // L: 15
this.socket.setSendBufferSize(65536); // L: 16
this.source = new BufferedSource(this.socket.getInputStream(), var2); // L: 17
this.sink = new BufferedSink(this.socket.getOutputStream(), var3); // L: 18
} // L: 19
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -41,15 +41,15 @@ public class BufferedNetSocket extends AbstractSocket {
)
@Export("close")
public void close() {
this.sink.close();
this.sink.close(); // L: 42
try {
this.socket.close();
} catch (IOException var2) {
this.socket.close(); // L: 44
} catch (IOException var2) { // L: 46
}
this.source.close();
}
this.source.close(); // L: 47
} // L: 48
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -58,7 +58,7 @@ public class BufferedNetSocket extends AbstractSocket {
)
@Export("readUnsignedByte")
public int readUnsignedByte() throws IOException {
return this.source.readUnsignedByte();
return this.source.readUnsignedByte(); // L: 30
}
@ObfuscatedName("x")
@@ -68,7 +68,7 @@ public class BufferedNetSocket extends AbstractSocket {
)
@Export("available")
public int available() throws IOException {
return this.source.available();
return this.source.available(); // L: 26
}
@ObfuscatedName("w")
@@ -78,7 +78,7 @@ public class BufferedNetSocket extends AbstractSocket {
)
@Export("isAvailable")
public boolean isAvailable(int var1) throws IOException {
return this.source.isAvailable(var1);
return this.source.isAvailable(var1); // L: 22
}
@ObfuscatedName("t")
@@ -88,7 +88,7 @@ public class BufferedNetSocket extends AbstractSocket {
)
@Export("read")
public int read(byte[] var1, int var2, int var3) throws IOException {
return this.source.read(var1, var2, var3);
return this.source.read(var1, var2, var3); // L: 34
}
@ObfuscatedName("n")
@@ -98,10 +98,10 @@ public class BufferedNetSocket extends AbstractSocket {
)
@Export("write")
public void write(byte[] var1, int var2, int var3) throws IOException {
this.sink.write(var1, var2, var3);
}
this.sink.write(var1, var2, var3); // L: 38
} // L: 39
protected void finalize() {
this.close();
}
this.close(); // L: 51
} // L: 52
}

View File

@@ -44,15 +44,15 @@ public class BufferedSink implements Runnable {
boolean closed;
BufferedSink(OutputStream var1, int var2) {
this.position = 0;
this.limit = 0;
this.outputStream = var1;
this.capacity = var2 + 1;
this.buffer = new byte[this.capacity];
this.thread = new Thread(this);
this.thread.setDaemon(true);
this.thread.start();
}
this.position = 0; // L: 186
this.limit = 0; // L: 187
this.outputStream = var1; // L: 192
this.capacity = var2 + 1; // L: 193
this.buffer = new byte[this.capacity]; // L: 194
this.thread = new Thread(this); // L: 195
this.thread.setDaemon(true); // L: 196
this.thread.start(); // L: 197
} // L: 198
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -61,21 +61,21 @@ public class BufferedSink implements Runnable {
)
@Export("isClosed")
boolean isClosed() {
if (this.closed) {
if (this.closed) { // L: 201
try {
this.outputStream.close();
this.outputStream.close(); // L: 203
if (this.exception == null) {
this.exception = new IOException("");
this.exception = new IOException(""); // L: 204
}
} catch (IOException var2) {
if (this.exception == null) {
} catch (IOException var2) { // L: 206
if (this.exception == null) { // L: 207
this.exception = new IOException(var2);
}
}
return true;
return true; // L: 209
} else {
return false;
return false; // L: 211
}
}
@@ -86,38 +86,38 @@ public class BufferedSink implements Runnable {
)
@Export("write")
void write(byte[] var1, int var2, int var3) throws IOException {
if (var3 >= 0 && var2 >= 0 && var3 + var2 <= var1.length) {
synchronized(this) {
if (this.exception != null) {
if (var3 >= 0 && var2 >= 0 && var3 + var2 <= var1.length) { // L: 261
synchronized(this) { // L: 262
if (this.exception != null) { // L: 263
throw new IOException(this.exception.toString());
} else {
int var5;
if (this.position <= this.limit) {
if (this.position <= this.limit) { // L: 265
var5 = this.capacity - this.limit + this.position - 1;
} else {
var5 = this.position - this.limit - 1;
var5 = this.position - this.limit - 1; // L: 266
}
if (var5 < var3) {
if (var5 < var3) { // L: 267
throw new IOException("");
} else {
if (var3 + this.limit <= this.capacity) {
System.arraycopy(var1, var2, this.buffer, this.limit, var3);
if (var3 + this.limit <= this.capacity) { // L: 268
System.arraycopy(var1, var2, this.buffer, this.limit, var3); // L: 269
} else {
int var6 = this.capacity - this.limit;
System.arraycopy(var1, var2, this.buffer, this.limit, var6);
System.arraycopy(var1, var6 + var2, this.buffer, 0, var3 - var6);
int var6 = this.capacity - this.limit; // L: 272
System.arraycopy(var1, var2, this.buffer, this.limit, var6); // L: 273
System.arraycopy(var1, var6 + var2, this.buffer, 0, var3 - var6); // L: 274
}
this.limit = (var3 + this.limit) % this.capacity;
this.notifyAll();
this.limit = (var3 + this.limit) % this.capacity; // L: 276
this.notifyAll(); // L: 277
}
}
}
} else {
throw new IOException();
}
}
} // L: 279
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -126,75 +126,75 @@ public class BufferedSink implements Runnable {
)
@Export("close")
void close() {
synchronized(this) {
this.closed = true;
this.notifyAll();
}
synchronized(this) { // L: 282
this.closed = true; // L: 283
this.notifyAll(); // L: 284
} // L: 285
try {
this.thread.join();
} catch (InterruptedException var3) {
this.thread.join(); // L: 287
} catch (InterruptedException var3) { // L: 289
}
}
} // L: 290
public void run() {
do {
int var1;
synchronized(this) {
synchronized(this) { // L: 217
while (true) {
if (this.exception != null) {
if (this.exception != null) { // L: 219
return;
}
if (this.position <= this.limit) {
if (this.position <= this.limit) { // L: 220
var1 = this.limit - this.position;
} else {
var1 = this.capacity - this.position + this.limit;
var1 = this.capacity - this.position + this.limit; // L: 221
}
if (var1 > 0) {
if (var1 > 0) { // L: 222
break;
}
try {
this.outputStream.flush();
} catch (IOException var11) {
this.exception = var11;
return;
this.outputStream.flush(); // L: 224
} catch (IOException var11) { // L: 226
this.exception = var11; // L: 227
return; // L: 228
}
if (this.isClosed()) {
if (this.isClosed()) { // L: 230
return;
}
try {
this.wait();
} catch (InterruptedException var12) {
this.wait(); // L: 232
} catch (InterruptedException var12) { // L: 234
}
}
}
try {
if (var1 + this.position <= this.capacity) {
this.outputStream.write(this.buffer, this.position, var1);
if (var1 + this.position <= this.capacity) { // L: 238
this.outputStream.write(this.buffer, this.position, var1); // L: 239
} else {
int var7 = this.capacity - this.position;
this.outputStream.write(this.buffer, this.position, var7);
this.outputStream.write(this.buffer, 0, var1 - var7);
int var7 = this.capacity - this.position; // L: 242
this.outputStream.write(this.buffer, this.position, var7); // L: 243
this.outputStream.write(this.buffer, 0, var1 - var7); // L: 244
}
} catch (IOException var10) {
} catch (IOException var10) { // L: 247
IOException var2 = var10;
synchronized(this) {
this.exception = var2;
return;
synchronized(this) { // L: 248
this.exception = var2; // L: 249
return; // L: 250
}
}
synchronized(this) {
this.position = (var1 + this.position) % this.capacity;
}
} while(!this.isClosed());
synchronized(this) { // L: 253
this.position = (var1 + this.position) % this.capacity; // L: 254
} // L: 255
} while(!this.isClosed()); // L: 256
}
@@ -204,6 +204,6 @@ public class BufferedSink implements Runnable {
garbageValue = "248442350"
)
public static class7[] method5889() {
return new class7[]{class7.field25};
return new class7[]{class7.field25}; // L: 12
}
}

View File

@@ -42,15 +42,15 @@ public class BufferedSource implements Runnable {
IOException exception;
BufferedSource(InputStream var1, int var2) {
this.position = 0;
this.limit = 0;
this.inputStream = var1;
this.capacity = var2 + 1;
this.buffer = new byte[this.capacity];
this.thread = new Thread(this);
this.thread.setDaemon(true);
this.thread.start();
}
this.position = 0; // L: 59
this.limit = 0; // L: 60
this.inputStream = var1; // L: 64
this.capacity = var2 + 1; // L: 65
this.buffer = new byte[this.capacity]; // L: 66
this.thread = new Thread(this); // L: 67
this.thread.setDaemon(true); // L: 68
this.thread.start(); // L: 69
} // L: 70
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -59,26 +59,26 @@ public class BufferedSource implements Runnable {
)
@Export("isAvailable")
boolean isAvailable(int var1) throws IOException {
if (var1 == 0) {
if (var1 == 0) { // L: 106
return true;
} else if (var1 > 0 && var1 < this.capacity) {
synchronized(this) {
} else if (var1 > 0 && var1 < this.capacity) { // L: 107
synchronized(this) { // L: 108
int var3;
if (this.position <= this.limit) {
if (this.position <= this.limit) { // L: 110
var3 = this.limit - this.position;
} else {
var3 = this.capacity - this.position + this.limit;
var3 = this.capacity - this.position + this.limit; // L: 111
}
if (var3 < var1) {
if (this.exception != null) {
if (var3 < var1) { // L: 112
if (this.exception != null) { // L: 113
throw new IOException(this.exception.toString());
} else {
this.notifyAll();
return false;
this.notifyAll(); // L: 114
return false; // L: 115
}
} else {
return true;
return true; // L: 117
}
}
} else {
@@ -93,19 +93,19 @@ public class BufferedSource implements Runnable {
)
@Export("available")
int available() throws IOException {
synchronized(this) {
synchronized(this) { // L: 122
int var2;
if (this.position <= this.limit) {
if (this.position <= this.limit) { // L: 124
var2 = this.limit - this.position;
} else {
var2 = this.capacity - this.position + this.limit;
var2 = this.capacity - this.position + this.limit; // L: 125
}
if (var2 <= 0 && this.exception != null) {
throw new IOException(this.exception.toString());
if (var2 <= 0 && this.exception != null) { // L: 126
throw new IOException(this.exception.toString()); // L: 127
} else {
this.notifyAll();
return var2;
this.notifyAll(); // L: 129
return var2; // L: 130
}
}
}
@@ -117,18 +117,18 @@ public class BufferedSource implements Runnable {
)
@Export("readUnsignedByte")
int readUnsignedByte() throws IOException {
synchronized(this) {
if (this.position == this.limit) {
if (this.exception != null) {
synchronized(this) { // L: 135
if (this.position == this.limit) { // L: 136
if (this.exception != null) { // L: 137
throw new IOException(this.exception.toString());
} else {
return -1;
return -1; // L: 138
}
} else {
int var2 = this.buffer[this.position] & 255;
this.position = (this.position + 1) % this.capacity;
this.notifyAll();
return var2;
int var2 = this.buffer[this.position] & 255; // L: 140
this.position = (this.position + 1) % this.capacity; // L: 141
this.notifyAll(); // L: 142
return var2; // L: 143
}
}
}
@@ -140,33 +140,33 @@ public class BufferedSource implements Runnable {
)
@Export("read")
int read(byte[] var1, int var2, int var3) throws IOException {
if (var3 >= 0 && var2 >= 0 && var3 + var2 <= var1.length) {
synchronized(this) {
if (var3 >= 0 && var2 >= 0 && var3 + var2 <= var1.length) { // L: 148
synchronized(this) { // L: 149
int var5;
if (this.position <= this.limit) {
if (this.position <= this.limit) { // L: 151
var5 = this.limit - this.position;
} else {
var5 = this.capacity - this.position + this.limit;
var5 = this.capacity - this.position + this.limit; // L: 152
}
if (var3 > var5) {
if (var3 > var5) { // L: 153
var3 = var5;
}
if (var3 == 0 && this.exception != null) {
if (var3 == 0 && this.exception != null) { // L: 154
throw new IOException(this.exception.toString());
} else {
if (var3 + this.position <= this.capacity) {
System.arraycopy(this.buffer, this.position, var1, var2, var3);
if (var3 + this.position <= this.capacity) { // L: 155
System.arraycopy(this.buffer, this.position, var1, var2, var3); // L: 156
} else {
int var6 = this.capacity - this.position;
System.arraycopy(this.buffer, this.position, var1, var2, var6);
System.arraycopy(this.buffer, 0, var1, var6 + var2, var3 - var6);
int var6 = this.capacity - this.position; // L: 159
System.arraycopy(this.buffer, this.position, var1, var2, var6); // L: 160
System.arraycopy(this.buffer, 0, var1, var6 + var2, var3 - var6); // L: 161
}
this.position = (var3 + this.position) % this.capacity;
this.notifyAll();
return var3;
this.position = (var3 + this.position) % this.capacity; // L: 163
this.notifyAll(); // L: 164
return var3; // L: 165
}
}
} else {
@@ -181,66 +181,66 @@ public class BufferedSource implements Runnable {
)
@Export("close")
void close() {
synchronized(this) {
synchronized(this) { // L: 170
if (this.exception == null) {
this.exception = new IOException("");
this.exception = new IOException(""); // L: 171
}
this.notifyAll();
this.notifyAll(); // L: 172
}
try {
this.thread.join();
} catch (InterruptedException var3) {
this.thread.join(); // L: 175
} catch (InterruptedException var3) { // L: 177
}
}
} // L: 178
public void run() {
while (true) {
int var1;
synchronized(this) {
synchronized(this) { // L: 75
while (true) {
if (this.exception != null) {
if (this.exception != null) { // L: 77
return;
}
if (this.position == 0) {
if (this.position == 0) { // L: 78
var1 = this.capacity - this.limit - 1;
} else if (this.position <= this.limit) {
} else if (this.position <= this.limit) { // L: 79
var1 = this.capacity - this.limit;
} else {
var1 = this.position - this.limit - 1;
var1 = this.position - this.limit - 1; // L: 80
}
if (var1 > 0) {
if (var1 > 0) { // L: 81
break;
}
try {
this.wait();
} catch (InterruptedException var10) {
this.wait(); // L: 83
} catch (InterruptedException var10) { // L: 85
}
}
}
int var7;
try {
var7 = this.inputStream.read(this.buffer, this.limit, var1);
var7 = this.inputStream.read(this.buffer, this.limit, var1); // L: 90
if (var7 == -1) {
throw new EOFException();
throw new EOFException(); // L: 91
}
} catch (IOException var11) {
} catch (IOException var11) { // L: 93
IOException var3 = var11;
synchronized(this) {
this.exception = var3;
return;
synchronized(this) { // L: 94
this.exception = var3; // L: 95
return; // L: 96
}
}
synchronized(this) {
this.limit = (var7 + this.limit) % this.capacity;
}
synchronized(this) { // L: 99
this.limit = (var7 + this.limit) % this.capacity; // L: 100
} // L: 101
}
}
}

View File

@@ -10,6 +10,6 @@ public class ByteArrayNode extends Node {
public byte[] byteArray;
public ByteArrayNode(byte[] var1) {
this.byteArray = var1;
}
this.byteArray = var1; // L: 7
} // L: 8
}

View File

@@ -36,12 +36,12 @@ public class ByteArrayPool {
static byte[][] ByteArrayPool_large;
static {
ByteArrayPool_smallCount = 0;
ByteArrayPool_mediumCount = 0;
ByteArrayPool_largeCount = 0;
ByteArrayPool_small = new byte[1000][];
ByteArrayPool_medium = new byte[250][];
ByteArrayPool_large = new byte[50][];
ByteArrayPool_smallCount = 0; // L: 4
ByteArrayPool_mediumCount = 0; // L: 5
ByteArrayPool_largeCount = 0; // L: 6
ByteArrayPool_small = new byte[1000][]; // L: 7
ByteArrayPool_medium = new byte[250][]; // L: 8
ByteArrayPool_large = new byte[50][]; // L: 9
}
@ObfuscatedName("h")
@@ -52,46 +52,46 @@ public class ByteArrayPool {
@Export("ByteArrayPool_getArrayBool")
static synchronized byte[] ByteArrayPool_getArrayBool(int var0, boolean var1) {
byte[] var4;
if (var0 != 100) {
if (var0 != 100) { // L: 20
if (var0 < 100) {
}
} else if (ByteArrayPool_smallCount > 0) {
var4 = ByteArrayPool_small[--ByteArrayPool_smallCount];
ByteArrayPool_small[ByteArrayPool_smallCount] = null;
return var4;
var4 = ByteArrayPool_small[--ByteArrayPool_smallCount]; // L: 21
ByteArrayPool_small[ByteArrayPool_smallCount] = null; // L: 22
return var4; // L: 23
}
if (var0 != 5000) {
if (var0 != 5000) { // L: 25
if (var0 < 5000) {
}
} else if (ByteArrayPool_mediumCount > 0) {
var4 = ByteArrayPool_medium[--ByteArrayPool_mediumCount];
ByteArrayPool_medium[ByteArrayPool_mediumCount] = null;
return var4;
var4 = ByteArrayPool_medium[--ByteArrayPool_mediumCount]; // L: 26
ByteArrayPool_medium[ByteArrayPool_mediumCount] = null; // L: 27
return var4; // L: 28
}
if (var0 != 30000) {
if (var0 != 30000) { // L: 30
if (var0 < 30000) {
}
} else if (ByteArrayPool_largeCount > 0) {
var4 = ByteArrayPool_large[--ByteArrayPool_largeCount];
ByteArrayPool_large[ByteArrayPool_largeCount] = null;
return var4;
var4 = ByteArrayPool_large[--ByteArrayPool_largeCount]; // L: 31
ByteArrayPool_large[ByteArrayPool_largeCount] = null; // L: 32
return var4; // L: 33
}
if (class23.ByteArrayPool_arrays != null) {
for (int var2 = 0; var2 < SoundCache.ByteArrayPool_alternativeSizes.length; ++var2) {
if (SoundCache.ByteArrayPool_alternativeSizes[var2] != var0) {
if (class23.ByteArrayPool_arrays != null) { // L: 35
for (int var2 = 0; var2 < SoundCache.ByteArrayPool_alternativeSizes.length; ++var2) { // L: 36
if (SoundCache.ByteArrayPool_alternativeSizes[var2] != var0) { // L: 37
if (var0 < SoundCache.ByteArrayPool_alternativeSizes[var2]) {
}
} else if (JagexCache.ByteArrayPool_altSizeArrayCounts[var2] > 0) {
byte[] var3 = class23.ByteArrayPool_arrays[var2][--JagexCache.ByteArrayPool_altSizeArrayCounts[var2]];
class23.ByteArrayPool_arrays[var2][JagexCache.ByteArrayPool_altSizeArrayCounts[var2]] = null;
return var3;
byte[] var3 = class23.ByteArrayPool_arrays[var2][--JagexCache.ByteArrayPool_altSizeArrayCounts[var2]]; // L: 38
class23.ByteArrayPool_arrays[var2][JagexCache.ByteArrayPool_altSizeArrayCounts[var2]] = null; // L: 39
return var3; // L: 40
}
}
}
return new byte[var0];
return new byte[var0]; // L: 53
}
}

View File

@@ -18,11 +18,11 @@ public class Calendar {
static java.util.Calendar Calendar_calendar;
static {
MONTH_NAMES_ENGLISH_GERMAN = new String[][]{{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}, {"Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"}, {"jan", "fév", "mars", "avr", "mai", "juin", "juil", "août", "sept", "oct", "nov", "déc"}, {"jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"}, {"jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"}, {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}, {"ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic"}};
DAYS_OF_THE_WEEK = new String[]{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
java.util.Calendar.getInstance();
Calendar_calendar = java.util.Calendar.getInstance(TimeZone.getTimeZone("GMT"));
}
MONTH_NAMES_ENGLISH_GERMAN = new String[][]{{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}, {"Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"}, {"jan", "fév", "mars", "avr", "mai", "juin", "juil", "août", "sept", "oct", "nov", "déc"}, {"jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"}, {"jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"}, {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}, {"ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic"}}; // L: 7
DAYS_OF_THE_WEEK = new String[]{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; // L: 17
java.util.Calendar.getInstance(); // L: 21
Calendar_calendar = java.util.Calendar.getInstance(TimeZone.getTimeZone("GMT")); // L: 22
} // L: 23
@ObfuscatedName("l")
@ObfuscatedSignature(
@@ -30,10 +30,10 @@ public class Calendar {
garbageValue = "-1496948542"
)
static final void method3985() {
Object var10000 = null;
Object var10000 = null; // L: 112
String var0 = "Your friend list is full. Max of 200 for free users, and 400 for members";
class234.addGameMessage(30, "", var0);
}
class234.addGameMessage(30, "", var0); // L: 114
} // L: 116
@ObfuscatedName("z")
@ObfuscatedSignature(
@@ -42,11 +42,11 @@ public class Calendar {
)
@Export("Messages_getNextChatID")
static int Messages_getNextChatID(int var0) {
Message var1 = (Message)Messages.Messages_hashTable.get((long)var0);
if (var1 == null) {
Message var1 = (Message)Messages.Messages_hashTable.get((long)var0); // L: 77
if (var1 == null) { // L: 78
return -1;
} else {
return var1.previousDual == Messages.Messages_queue.sentinel ? -1 : ((Message)var1.previousDual).count;
return var1.previousDual == Messages.Messages_queue.sentinel ? -1 : ((Message)var1.previousDual).count; // L: 79 80
}
}
}

View File

@@ -16,16 +16,16 @@ public final class Canvas extends java.awt.Canvas {
Component component;
Canvas(Component var1) {
this.component = var1;
}
this.component = var1; // L: 11
} // L: 12
public final void update(Graphics var1) {
this.component.update(var1);
}
this.component.update(var1); // L: 15
} // L: 16
public final void paint(Graphics var1) {
this.component.paint(var1);
}
this.component.paint(var1); // L: 19
} // L: 20
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -33,8 +33,8 @@ public final class Canvas extends java.awt.Canvas {
garbageValue = "1765160595"
)
public static void method912(AbstractArchive var0, AbstractArchive var1, AbstractArchive var2) {
HitSplatDefinition.HitSplatDefinition_archive = var0;
HitSplatDefinition.field3354 = var1;
HitSplatDefinition.HitSplatDefinition_archive = var0; // L: 46
HitSplatDefinition.field3354 = var1; // L: 47
HitSplatDefinition.HitSplatDefinition_fontsArchive = var2;
}
@@ -45,8 +45,8 @@ public final class Canvas extends java.awt.Canvas {
)
@Export("Messages_getHistorySize")
static int Messages_getHistorySize(int var0) {
ChatChannel var1 = (ChatChannel)Messages.Messages_channels.get(var0);
return var1 == null ? 0 : var1.size();
ChatChannel var1 = (ChatChannel)Messages.Messages_channels.get(var0); // L: 48
return var1 == null ? 0 : var1.size(); // L: 49 50
}
@ObfuscatedName("fh")
@@ -57,496 +57,496 @@ public final class Canvas extends java.awt.Canvas {
@Export("load")
static void load() {
int var12;
if (Client.titleLoadingStage == 0) {
ArchiveLoader.scene = new Scene(4, 104, 104, Tiles.Tiles_heights);
if (Client.titleLoadingStage == 0) { // L: 1726
ArchiveLoader.scene = new Scene(4, 104, 104, Tiles.Tiles_heights); // L: 1727
for (var12 = 0; var12 < 4; ++var12) {
for (var12 = 0; var12 < 4; ++var12) { // L: 1728
Client.collisionMaps[var12] = new CollisionMap(104, 104);
}
class25.sceneMinimapSprite = new Sprite(512, 512);
Login.Login_loadingText = "Starting game engine...";
Login.Login_loadingPercent = 5;
Client.titleLoadingStage = 20;
} else if (Client.titleLoadingStage == 20) {
Login.Login_loadingText = "Prepared visibility map";
Login.Login_loadingPercent = 10;
Client.titleLoadingStage = 30;
} else if (Client.titleLoadingStage == 30) {
TilePaint.archive0 = WorldMapCacheName.newArchive(0, false, true, true);
WorldMapSprite.archive1 = WorldMapCacheName.newArchive(1, false, true, true);
DynamicObject.archive2 = WorldMapCacheName.newArchive(2, true, false, true);
class330.archive3 = WorldMapCacheName.newArchive(3, false, true, true);
class227.archive4 = WorldMapCacheName.newArchive(4, false, true, true);
GameShell.archive5 = WorldMapCacheName.newArchive(5, true, true, true);
class217.archive6 = WorldMapCacheName.newArchive(6, true, true, true);
BuddyRankComparator.archive7 = WorldMapCacheName.newArchive(7, false, true, true);
Messages.archive8 = WorldMapCacheName.newArchive(8, false, true, true);
GrandExchangeOfferUnitPriceComparator.archive9 = WorldMapCacheName.newArchive(9, false, true, true);
class92.archive10 = WorldMapCacheName.newArchive(10, false, true, true);
ItemContainer.archive11 = WorldMapCacheName.newArchive(11, false, true, true);
PacketBufferNode.archive12 = WorldMapCacheName.newArchive(12, false, true, true);
GrandExchangeOfferUnitPriceComparator.archive13 = WorldMapCacheName.newArchive(13, true, false, true);
FontName.archive14 = WorldMapCacheName.newArchive(14, false, true, true);
Client.archive15 = WorldMapCacheName.newArchive(15, false, true, true);
class169.archive17 = WorldMapCacheName.newArchive(17, true, true, true);
class41.archive18 = WorldMapCacheName.newArchive(18, false, true, true);
class195.archive19 = WorldMapCacheName.newArchive(19, false, true, true);
NetFileRequest.archive20 = WorldMapCacheName.newArchive(20, false, true, true);
Login.Login_loadingText = "Connecting to update server";
Login.Login_loadingPercent = 20;
Client.titleLoadingStage = 40;
} else if (Client.titleLoadingStage == 40) {
byte var23 = 0;
var12 = var23 + TilePaint.archive0.percentage() * 4 / 100;
var12 += WorldMapSprite.archive1.percentage() * 4 / 100;
var12 += DynamicObject.archive2.percentage() * 2 / 100;
var12 += class330.archive3.percentage() * 2 / 100;
var12 += class227.archive4.percentage() * 6 / 100;
var12 += GameShell.archive5.percentage() * 4 / 100;
var12 += class217.archive6.percentage() * 2 / 100;
var12 += BuddyRankComparator.archive7.percentage() * 56 / 100;
var12 += Messages.archive8.percentage() * 2 / 100;
var12 += GrandExchangeOfferUnitPriceComparator.archive9.percentage() * 2 / 100;
var12 += class92.archive10.percentage() * 2 / 100;
var12 += ItemContainer.archive11.percentage() * 2 / 100;
var12 += PacketBufferNode.archive12.percentage() * 2 / 100;
var12 += GrandExchangeOfferUnitPriceComparator.archive13.percentage() * 2 / 100;
var12 += FontName.archive14.percentage() * 2 / 100;
var12 += Client.archive15.percentage() * 2 / 100;
var12 += class195.archive19.percentage() / 100;
var12 += class41.archive18.percentage() / 100;
var12 += NetFileRequest.archive20.percentage() / 100;
var12 += class169.archive17.method4304() && class169.archive17.isFullyLoaded() ? 1 : 0;
if (var12 != 100) {
if (var12 != 0) {
class25.sceneMinimapSprite = new Sprite(512, 512); // L: 1729
Login.Login_loadingText = "Starting game engine..."; // L: 1730
Login.Login_loadingPercent = 5; // L: 1731
Client.titleLoadingStage = 20; // L: 1732
} else if (Client.titleLoadingStage == 20) { // L: 1735
Login.Login_loadingText = "Prepared visibility map"; // L: 1736
Login.Login_loadingPercent = 10; // L: 1737
Client.titleLoadingStage = 30; // L: 1738
} else if (Client.titleLoadingStage == 30) { // L: 1741
TilePaint.archive0 = WorldMapCacheName.newArchive(0, false, true, true); // L: 1742
WorldMapSprite.archive1 = WorldMapCacheName.newArchive(1, false, true, true); // L: 1743
DynamicObject.archive2 = WorldMapCacheName.newArchive(2, true, false, true); // L: 1744
class330.archive3 = WorldMapCacheName.newArchive(3, false, true, true); // L: 1745
class227.archive4 = WorldMapCacheName.newArchive(4, false, true, true); // L: 1746
GameShell.archive5 = WorldMapCacheName.newArchive(5, true, true, true); // L: 1747
class217.archive6 = WorldMapCacheName.newArchive(6, true, true, true); // L: 1748
BuddyRankComparator.archive7 = WorldMapCacheName.newArchive(7, false, true, true); // L: 1749
Messages.archive8 = WorldMapCacheName.newArchive(8, false, true, true); // L: 1750
GrandExchangeOfferUnitPriceComparator.archive9 = WorldMapCacheName.newArchive(9, false, true, true); // L: 1751
class92.archive10 = WorldMapCacheName.newArchive(10, false, true, true); // L: 1752
ItemContainer.archive11 = WorldMapCacheName.newArchive(11, false, true, true); // L: 1753
PacketBufferNode.archive12 = WorldMapCacheName.newArchive(12, false, true, true); // L: 1754
GrandExchangeOfferUnitPriceComparator.archive13 = WorldMapCacheName.newArchive(13, true, false, true); // L: 1755
FontName.archive14 = WorldMapCacheName.newArchive(14, false, true, true); // L: 1756
Client.archive15 = WorldMapCacheName.newArchive(15, false, true, true); // L: 1757
class169.archive17 = WorldMapCacheName.newArchive(17, true, true, true); // L: 1758
class41.archive18 = WorldMapCacheName.newArchive(18, false, true, true); // L: 1759
class195.archive19 = WorldMapCacheName.newArchive(19, false, true, true); // L: 1760
NetFileRequest.archive20 = WorldMapCacheName.newArchive(20, false, true, true); // L: 1761
Login.Login_loadingText = "Connecting to update server"; // L: 1762
Login.Login_loadingPercent = 20; // L: 1763
Client.titleLoadingStage = 40; // L: 1764
} else if (Client.titleLoadingStage == 40) { // L: 1767
byte var23 = 0; // L: 1768
var12 = var23 + TilePaint.archive0.percentage() * 4 / 100; // L: 1769
var12 += WorldMapSprite.archive1.percentage() * 4 / 100; // L: 1770
var12 += DynamicObject.archive2.percentage() * 2 / 100; // L: 1771
var12 += class330.archive3.percentage() * 2 / 100; // L: 1772
var12 += class227.archive4.percentage() * 6 / 100; // L: 1773
var12 += GameShell.archive5.percentage() * 4 / 100; // L: 1774
var12 += class217.archive6.percentage() * 2 / 100; // L: 1775
var12 += BuddyRankComparator.archive7.percentage() * 56 / 100; // L: 1776
var12 += Messages.archive8.percentage() * 2 / 100; // L: 1777
var12 += GrandExchangeOfferUnitPriceComparator.archive9.percentage() * 2 / 100; // L: 1778
var12 += class92.archive10.percentage() * 2 / 100; // L: 1779
var12 += ItemContainer.archive11.percentage() * 2 / 100; // L: 1780
var12 += PacketBufferNode.archive12.percentage() * 2 / 100; // L: 1781
var12 += GrandExchangeOfferUnitPriceComparator.archive13.percentage() * 2 / 100; // L: 1782
var12 += FontName.archive14.percentage() * 2 / 100; // L: 1783
var12 += Client.archive15.percentage() * 2 / 100; // L: 1784
var12 += class195.archive19.percentage() / 100; // L: 1785
var12 += class41.archive18.percentage() / 100; // L: 1786
var12 += NetFileRequest.archive20.percentage() / 100; // L: 1787
var12 += class169.archive17.method4304() && class169.archive17.isFullyLoaded() ? 1 : 0; // L: 1788
if (var12 != 100) { // L: 1789
if (var12 != 0) { // L: 1790
Login.Login_loadingText = "Checking for updates - " + var12 + "%";
}
Login.Login_loadingPercent = 30;
Login.Login_loadingPercent = 30; // L: 1791
} else {
UserComparator4.method3469(TilePaint.archive0, "Animations");
UserComparator4.method3469(WorldMapSprite.archive1, "Skeletons");
UserComparator4.method3469(class227.archive4, "Sound FX");
UserComparator4.method3469(GameShell.archive5, "Maps");
UserComparator4.method3469(class217.archive6, "Music Tracks");
UserComparator4.method3469(BuddyRankComparator.archive7, "Models");
UserComparator4.method3469(Messages.archive8, "Sprites");
UserComparator4.method3469(ItemContainer.archive11, "Music Jingles");
UserComparator4.method3469(FontName.archive14, "Music Samples");
UserComparator4.method3469(Client.archive15, "Music Patches");
UserComparator4.method3469(class195.archive19, "World Map");
UserComparator4.method3469(class41.archive18, "World Map Geography");
UserComparator4.method3469(NetFileRequest.archive20, "World Map Ground");
WorldMapManager.spriteIds = new GraphicsDefaults();
WorldMapManager.spriteIds.decode(class169.archive17);
Login.Login_loadingText = "Loaded update list";
Login.Login_loadingPercent = 30;
Client.titleLoadingStage = 45;
UserComparator4.method3469(TilePaint.archive0, "Animations"); // L: 1794
UserComparator4.method3469(WorldMapSprite.archive1, "Skeletons"); // L: 1795
UserComparator4.method3469(class227.archive4, "Sound FX"); // L: 1796
UserComparator4.method3469(GameShell.archive5, "Maps"); // L: 1797
UserComparator4.method3469(class217.archive6, "Music Tracks"); // L: 1798
UserComparator4.method3469(BuddyRankComparator.archive7, "Models"); // L: 1799
UserComparator4.method3469(Messages.archive8, "Sprites"); // L: 1800
UserComparator4.method3469(ItemContainer.archive11, "Music Jingles"); // L: 1801
UserComparator4.method3469(FontName.archive14, "Music Samples"); // L: 1802
UserComparator4.method3469(Client.archive15, "Music Patches"); // L: 1803
UserComparator4.method3469(class195.archive19, "World Map"); // L: 1804
UserComparator4.method3469(class41.archive18, "World Map Geography"); // L: 1805
UserComparator4.method3469(NetFileRequest.archive20, "World Map Ground"); // L: 1806
WorldMapManager.spriteIds = new GraphicsDefaults(); // L: 1807
WorldMapManager.spriteIds.decode(class169.archive17); // L: 1808
Login.Login_loadingText = "Loaded update list"; // L: 1809
Login.Login_loadingPercent = 30; // L: 1810
Client.titleLoadingStage = 45; // L: 1811
}
} else {
Archive var2;
Archive var16;
Archive var21;
if (Client.titleLoadingStage == 45) {
WorldMapIcon_0.method270(22050, !Client.isLowDetail, 2);
MidiPcmStream var20 = new MidiPcmStream();
var20.method3759(9, 128);
AbstractWorldMapData.pcmPlayer0 = UserComparator6.method3526(GameShell.taskHandler, 0, 22050);
AbstractWorldMapData.pcmPlayer0.setStream(var20);
var21 = Client.archive15;
var2 = FontName.archive14;
var16 = class227.archive4;
class206.musicPatchesArchive = var21;
class206.musicSamplesArchive = var2;
class206.soundEffectsArchive = var16;
class206.midiPcmStream = var20;
FriendLoginUpdate.pcmPlayer1 = UserComparator6.method3526(GameShell.taskHandler, 1, 2048);
WorldMapManager.pcmStreamMixer = new PcmStreamMixer();
FriendLoginUpdate.pcmPlayer1.setStream(WorldMapManager.pcmStreamMixer);
TileItemPile.decimator = new Decimator(22050, PcmPlayer.field1443);
Login.Login_loadingText = "Prepared sound engine";
Login.Login_loadingPercent = 35;
Client.titleLoadingStage = 50;
WorldMapLabel.WorldMapElement_fonts = new Fonts(Messages.archive8, GrandExchangeOfferUnitPriceComparator.archive13);
} else if (Client.titleLoadingStage == 50) {
var12 = FontName.method5353().length;
Client.fontsMap = WorldMapLabel.WorldMapElement_fonts.createMap(FontName.method5353());
if (Client.fontsMap.size() < var12) {
Login.Login_loadingText = "Loading fonts - " + Client.fontsMap.size() * 100 / var12 + "%";
Login.Login_loadingPercent = 40;
if (Client.titleLoadingStage == 45) { // L: 1814
WorldMapIcon_0.method270(22050, !Client.isLowDetail, 2); // L: 1815
MidiPcmStream var20 = new MidiPcmStream(); // L: 1816
var20.method3759(9, 128); // L: 1817
AbstractWorldMapData.pcmPlayer0 = UserComparator6.method3526(GameShell.taskHandler, 0, 22050); // L: 1818
AbstractWorldMapData.pcmPlayer0.setStream(var20); // L: 1819
var21 = Client.archive15; // L: 1820
var2 = FontName.archive14; // L: 1821
var16 = class227.archive4; // L: 1822
class206.musicPatchesArchive = var21; // L: 1824
class206.musicSamplesArchive = var2; // L: 1825
class206.soundEffectsArchive = var16; // L: 1826
class206.midiPcmStream = var20; // L: 1827
FriendLoginUpdate.pcmPlayer1 = UserComparator6.method3526(GameShell.taskHandler, 1, 2048); // L: 1829
WorldMapManager.pcmStreamMixer = new PcmStreamMixer(); // L: 1830
FriendLoginUpdate.pcmPlayer1.setStream(WorldMapManager.pcmStreamMixer); // L: 1831
TileItemPile.decimator = new Decimator(22050, PcmPlayer.field1443); // L: 1832
Login.Login_loadingText = "Prepared sound engine"; // L: 1833
Login.Login_loadingPercent = 35; // L: 1834
Client.titleLoadingStage = 50; // L: 1835
WorldMapLabel.WorldMapElement_fonts = new Fonts(Messages.archive8, GrandExchangeOfferUnitPriceComparator.archive13); // L: 1836
} else if (Client.titleLoadingStage == 50) { // L: 1839
var12 = FontName.method5353().length; // L: 1840
Client.fontsMap = WorldMapLabel.WorldMapElement_fonts.createMap(FontName.method5353()); // L: 1841
if (Client.fontsMap.size() < var12) { // L: 1842
Login.Login_loadingText = "Loading fonts - " + Client.fontsMap.size() * 100 / var12 + "%"; // L: 1843
Login.Login_loadingPercent = 40; // L: 1844
} else {
class297.fontPlain11 = (Font)Client.fontsMap.get(FontName.FontName_plain11);
WorldMapLabelSize.fontPlain12 = (Font)Client.fontsMap.get(FontName.FontName_plain12);
GrandExchangeOfferTotalQuantityComparator.fontBold12 = (Font)Client.fontsMap.get(FontName.FontName_bold12);
class58.platformInfo = Client.platformInfoProvider.get();
Login.Login_loadingText = "Loaded fonts";
Login.Login_loadingPercent = 40;
Client.titleLoadingStage = 60;
class297.fontPlain11 = (Font)Client.fontsMap.get(FontName.FontName_plain11); // L: 1847
WorldMapLabelSize.fontPlain12 = (Font)Client.fontsMap.get(FontName.FontName_plain12); // L: 1848
GrandExchangeOfferTotalQuantityComparator.fontBold12 = (Font)Client.fontsMap.get(FontName.FontName_bold12); // L: 1849
class58.platformInfo = Client.platformInfoProvider.get(); // L: 1850
Login.Login_loadingText = "Loaded fonts"; // L: 1851
Login.Login_loadingPercent = 40; // L: 1852
Client.titleLoadingStage = 60; // L: 1853
}
} else {
int var3;
int var15;
if (Client.titleLoadingStage == 60) {
var21 = class92.archive10;
var2 = Messages.archive8;
var3 = 0;
if (var21.tryLoadFileByNames("title.jpg", "")) {
if (Client.titleLoadingStage == 60) { // L: 1856
var21 = class92.archive10; // L: 1858
var2 = Messages.archive8; // L: 1859
var3 = 0; // L: 1861
if (var21.tryLoadFileByNames("title.jpg", "")) { // L: 1862
++var3;
}
if (var2.tryLoadFileByNames("logo", "")) {
if (var2.tryLoadFileByNames("logo", "")) { // L: 1863
++var3;
}
if (var2.tryLoadFileByNames("logo_deadman_mode", "")) {
if (var2.tryLoadFileByNames("logo_deadman_mode", "")) { // L: 1864
++var3;
}
if (var2.tryLoadFileByNames("logo_seasonal_mode", "")) {
if (var2.tryLoadFileByNames("logo_seasonal_mode", "")) { // L: 1865
++var3;
}
if (var2.tryLoadFileByNames("titlebox", "")) {
if (var2.tryLoadFileByNames("titlebox", "")) { // L: 1866
++var3;
}
if (var2.tryLoadFileByNames("titlebutton", "")) {
if (var2.tryLoadFileByNames("titlebutton", "")) { // L: 1867
++var3;
}
if (var2.tryLoadFileByNames("runes", "")) {
if (var2.tryLoadFileByNames("runes", "")) { // L: 1868
++var3;
}
if (var2.tryLoadFileByNames("title_mute", "")) {
if (var2.tryLoadFileByNames("title_mute", "")) { // L: 1869
++var3;
}
if (var2.tryLoadFileByNames("options_radio_buttons,0", "")) {
if (var2.tryLoadFileByNames("options_radio_buttons,0", "")) { // L: 1870
++var3;
}
if (var2.tryLoadFileByNames("options_radio_buttons,2", "")) {
if (var2.tryLoadFileByNames("options_radio_buttons,2", "")) { // L: 1871
++var3;
}
if (var2.tryLoadFileByNames("options_radio_buttons,4", "")) {
if (var2.tryLoadFileByNames("options_radio_buttons,4", "")) { // L: 1872
++var3;
}
if (var2.tryLoadFileByNames("options_radio_buttons,6", "")) {
if (var2.tryLoadFileByNames("options_radio_buttons,6", "")) { // L: 1873
++var3;
}
var2.tryLoadFileByNames("sl_back", "");
var2.tryLoadFileByNames("sl_flags", "");
var2.tryLoadFileByNames("sl_arrows", "");
var2.tryLoadFileByNames("sl_stars", "");
var2.tryLoadFileByNames("sl_button", "");
var15 = DynamicObject.method2304();
if (var3 < var15) {
Login.Login_loadingText = "Loading title screen - " + var3 * 100 / var15 + "%";
Login.Login_loadingPercent = 50;
var2.tryLoadFileByNames("sl_back", ""); // L: 1874
var2.tryLoadFileByNames("sl_flags", ""); // L: 1875
var2.tryLoadFileByNames("sl_arrows", ""); // L: 1876
var2.tryLoadFileByNames("sl_stars", ""); // L: 1877
var2.tryLoadFileByNames("sl_button", ""); // L: 1878
var15 = DynamicObject.method2304(); // L: 1882
if (var3 < var15) { // L: 1883
Login.Login_loadingText = "Loading title screen - " + var3 * 100 / var15 + "%"; // L: 1884
Login.Login_loadingPercent = 50; // L: 1885
} else {
Login.Login_loadingText = "Loaded title screen";
Login.Login_loadingPercent = 50;
WorldMapCacheName.updateGameState(5);
Client.titleLoadingStage = 70;
Login.Login_loadingText = "Loaded title screen"; // L: 1888
Login.Login_loadingPercent = 50; // L: 1889
WorldMapCacheName.updateGameState(5); // L: 1890
Client.titleLoadingStage = 70; // L: 1891
}
} else if (Client.titleLoadingStage == 70) {
if (!DynamicObject.archive2.isFullyLoaded()) {
Login.Login_loadingText = "Loading config - " + DynamicObject.archive2.loadPercent() + "%";
Login.Login_loadingPercent = 60;
} else if (Client.titleLoadingStage == 70) { // L: 1894
if (!DynamicObject.archive2.isFullyLoaded()) { // L: 1895
Login.Login_loadingText = "Loading config - " + DynamicObject.archive2.loadPercent() + "%"; // L: 1896
Login.Login_loadingPercent = 60; // L: 1897
} else {
MouseHandler.method1157(DynamicObject.archive2);
Archive var19 = DynamicObject.archive2;
FloorUnderlayDefinition.FloorUnderlayDefinition_archive = var19;
var21 = DynamicObject.archive2;
var2 = BuddyRankComparator.archive7;
KitDefinition.KitDefinition_archive = var21;
class227.KitDefinition_modelsArchive = var2;
KitDefinition.KitDefinition_fileCount = KitDefinition.KitDefinition_archive.getGroupFileCount(3);
var16 = DynamicObject.archive2;
Archive var4 = BuddyRankComparator.archive7;
boolean var17 = Client.isLowDetail;
ObjectDefinition.ObjectDefinition_archive = var16;
ObjectDefinition.ObjectDefinition_modelsArchive = var4;
ObjectDefinition.ObjectDefinition_isLowDetail = var17;
World.method1849(DynamicObject.archive2, BuddyRankComparator.archive7);
ParamDefinition.method4526(DynamicObject.archive2);
Actor.method1821(DynamicObject.archive2, BuddyRankComparator.archive7, Client.isMembersWorld, class297.fontPlain11);
PcmPlayer.method2538(DynamicObject.archive2, TilePaint.archive0, WorldMapSprite.archive1);
ModelData0.method3331(DynamicObject.archive2, BuddyRankComparator.archive7);
class200.method3712(DynamicObject.archive2);
Archive var18 = DynamicObject.archive2;
class1.VarpDefinition_archive = var18;
VarpDefinition.VarpDefinition_fileCount = class1.VarpDefinition_archive.getGroupFileCount(16);
Archive var22 = class330.archive3;
Archive var8 = BuddyRankComparator.archive7;
Archive var9 = Messages.archive8;
Archive var10 = GrandExchangeOfferUnitPriceComparator.archive13;
class58.Widget_archive = var22;
GrandExchangeOfferWorldComparator.Widget_modelsArchive = var8;
class1.Widget_spritesArchive = var9;
Bounds.Widget_fontsArchive = var10;
class9.Widget_interfaceComponents = new Widget[class58.Widget_archive.getGroupCount()][];
class195.Widget_loadedInterfaces = new boolean[class58.Widget_archive.getGroupCount()];
Archive var11 = DynamicObject.archive2;
InvDefinition.InvDefinition_archive = var11;
StructDefinition.method4545(DynamicObject.archive2);
ModelData0.method3330(DynamicObject.archive2);
class13.method129(DynamicObject.archive2);
Varcs.varcs = new Varcs();
method912(DynamicObject.archive2, Messages.archive8, GrandExchangeOfferUnitPriceComparator.archive13);
ServerPacket.method3669(DynamicObject.archive2, Messages.archive8);
class219.method4010(DynamicObject.archive2, Messages.archive8);
Login.Login_loadingText = "Loaded config";
Login.Login_loadingPercent = 60;
Client.titleLoadingStage = 80;
MouseHandler.method1157(DynamicObject.archive2); // L: 1900
Archive var19 = DynamicObject.archive2; // L: 1901
FloorUnderlayDefinition.FloorUnderlayDefinition_archive = var19; // L: 1903
var21 = DynamicObject.archive2; // L: 1905
var2 = BuddyRankComparator.archive7; // L: 1906
KitDefinition.KitDefinition_archive = var21; // L: 1908
class227.KitDefinition_modelsArchive = var2; // L: 1909
KitDefinition.KitDefinition_fileCount = KitDefinition.KitDefinition_archive.getGroupFileCount(3); // L: 1910
var16 = DynamicObject.archive2; // L: 1912
Archive var4 = BuddyRankComparator.archive7; // L: 1913
boolean var17 = Client.isLowDetail; // L: 1914
ObjectDefinition.ObjectDefinition_archive = var16; // L: 1916
ObjectDefinition.ObjectDefinition_modelsArchive = var4; // L: 1917
ObjectDefinition.ObjectDefinition_isLowDetail = var17; // L: 1918
World.method1849(DynamicObject.archive2, BuddyRankComparator.archive7); // L: 1920
ParamDefinition.method4526(DynamicObject.archive2); // L: 1921
Actor.method1821(DynamicObject.archive2, BuddyRankComparator.archive7, Client.isMembersWorld, class297.fontPlain11); // L: 1922
PcmPlayer.method2538(DynamicObject.archive2, TilePaint.archive0, WorldMapSprite.archive1); // L: 1923
ModelData0.method3331(DynamicObject.archive2, BuddyRankComparator.archive7); // L: 1924
class200.method3712(DynamicObject.archive2); // L: 1925
Archive var18 = DynamicObject.archive2; // L: 1926
class1.VarpDefinition_archive = var18; // L: 1928
VarpDefinition.VarpDefinition_fileCount = class1.VarpDefinition_archive.getGroupFileCount(16); // L: 1929
Archive var22 = class330.archive3; // L: 1931
Archive var8 = BuddyRankComparator.archive7; // L: 1932
Archive var9 = Messages.archive8; // L: 1933
Archive var10 = GrandExchangeOfferUnitPriceComparator.archive13; // L: 1934
class58.Widget_archive = var22; // L: 1936
GrandExchangeOfferWorldComparator.Widget_modelsArchive = var8; // L: 1937
class1.Widget_spritesArchive = var9; // L: 1938
Bounds.Widget_fontsArchive = var10; // L: 1939
class9.Widget_interfaceComponents = new Widget[class58.Widget_archive.getGroupCount()][]; // L: 1940
class195.Widget_loadedInterfaces = new boolean[class58.Widget_archive.getGroupCount()]; // L: 1941
Archive var11 = DynamicObject.archive2; // L: 1943
InvDefinition.InvDefinition_archive = var11; // L: 1945
StructDefinition.method4545(DynamicObject.archive2); // L: 1947
ModelData0.method3330(DynamicObject.archive2); // L: 1948
class13.method129(DynamicObject.archive2); // L: 1949
Varcs.varcs = new Varcs(); // L: 1950
method912(DynamicObject.archive2, Messages.archive8, GrandExchangeOfferUnitPriceComparator.archive13); // L: 1951
ServerPacket.method3669(DynamicObject.archive2, Messages.archive8); // L: 1952
class219.method4010(DynamicObject.archive2, Messages.archive8); // L: 1953
Login.Login_loadingText = "Loaded config"; // L: 1954
Login.Login_loadingPercent = 60; // L: 1955
Client.titleLoadingStage = 80; // L: 1956
}
} else if (Client.titleLoadingStage == 80) {
var12 = 0;
if (UrlRequester.compass == null) {
} else if (Client.titleLoadingStage == 80) { // L: 1959
var12 = 0; // L: 1960
if (UrlRequester.compass == null) { // L: 1961
UrlRequester.compass = Skills.SpriteBuffer_getSprite(Messages.archive8, WorldMapManager.spriteIds.compass, 0);
} else {
++var12;
++var12; // L: 1962
}
if (ViewportMouse.redHintArrowSprite == null) {
if (ViewportMouse.redHintArrowSprite == null) { // L: 1963
ViewportMouse.redHintArrowSprite = Skills.SpriteBuffer_getSprite(Messages.archive8, WorldMapManager.spriteIds.field3845, 0);
} else {
++var12;
++var12; // L: 1964
}
IndexedSprite[] var1;
IndexedSprite[] var5;
int var6;
IndexedSprite var7;
if (WorldMapRegion.mapSceneSprites == null) {
var2 = Messages.archive8;
var3 = WorldMapManager.spriteIds.mapScenes;
if (!class304.method5363(var2, var3, 0)) {
var1 = null;
if (WorldMapRegion.mapSceneSprites == null) { // L: 1965
var2 = Messages.archive8; // L: 1967
var3 = WorldMapManager.spriteIds.mapScenes; // L: 1968
if (!class304.method5363(var2, var3, 0)) { // L: 1970
var1 = null; // L: 1971
} else {
var5 = new IndexedSprite[class336.SpriteBuffer_spriteCount];
var5 = new IndexedSprite[class336.SpriteBuffer_spriteCount]; // L: 1976
for (var6 = 0; var6 < class336.SpriteBuffer_spriteCount; ++var6) {
var7 = var5[var6] = new IndexedSprite();
var7.width = DirectByteArrayCopier.SpriteBuffer_spriteWidth;
var7.height = class336.SpriteBuffer_spriteHeight;
var7.xOffset = class336.SpriteBuffer_xOffsets[var6];
var7.yOffset = class336.SpriteBuffer_yOffsets[var6];
var7.subWidth = class336.SpriteBuffer_spriteWidths[var6];
var7.subHeight = class336.SpriteBuffer_spriteHeights[var6];
var7.palette = class336.SpriteBuffer_spritePalette;
var7.pixels = GrandExchangeEvents.SpriteBuffer_pixels[var6];
for (var6 = 0; var6 < class336.SpriteBuffer_spriteCount; ++var6) { // L: 1977
var7 = var5[var6] = new IndexedSprite(); // L: 1978
var7.width = DirectByteArrayCopier.SpriteBuffer_spriteWidth; // L: 1979
var7.height = class336.SpriteBuffer_spriteHeight; // L: 1980
var7.xOffset = class336.SpriteBuffer_xOffsets[var6]; // L: 1981
var7.yOffset = class336.SpriteBuffer_yOffsets[var6]; // L: 1982
var7.subWidth = class336.SpriteBuffer_spriteWidths[var6]; // L: 1983
var7.subHeight = class336.SpriteBuffer_spriteHeights[var6]; // L: 1984
var7.palette = class336.SpriteBuffer_spritePalette; // L: 1985
var7.pixels = GrandExchangeEvents.SpriteBuffer_pixels[var6]; // L: 1986
}
class336.SpriteBuffer_xOffsets = null;
class336.SpriteBuffer_yOffsets = null;
class336.SpriteBuffer_spriteWidths = null;
class336.SpriteBuffer_spriteHeights = null;
class336.SpriteBuffer_spritePalette = null;
GrandExchangeEvents.SpriteBuffer_pixels = null;
var1 = var5;
class336.SpriteBuffer_xOffsets = null; // L: 1989
class336.SpriteBuffer_yOffsets = null; // L: 1990
class336.SpriteBuffer_spriteWidths = null; // L: 1991
class336.SpriteBuffer_spriteHeights = null; // L: 1992
class336.SpriteBuffer_spritePalette = null; // L: 1993
GrandExchangeEvents.SpriteBuffer_pixels = null; // L: 1994
var1 = var5; // L: 1998
}
WorldMapRegion.mapSceneSprites = var1;
WorldMapRegion.mapSceneSprites = var1; // L: 2000
} else {
++var12;
++var12; // L: 2002
}
if (Message.headIconPkSprites == null) {
if (Message.headIconPkSprites == null) { // L: 2003
Message.headIconPkSprites = ClientPreferences.method1918(Messages.archive8, WorldMapManager.spriteIds.headIconsPk, 0);
} else {
++var12;
++var12; // L: 2004
}
if (Client.headIconPrayerSprites == null) {
if (Client.headIconPrayerSprites == null) { // L: 2005
Client.headIconPrayerSprites = ClientPreferences.method1918(Messages.archive8, WorldMapManager.spriteIds.field3844, 0);
} else {
++var12;
++var12; // L: 2006
}
if (AbstractWorldMapIcon.headIconHintSprites == null) {
if (AbstractWorldMapIcon.headIconHintSprites == null) { // L: 2007
AbstractWorldMapIcon.headIconHintSprites = ClientPreferences.method1918(Messages.archive8, WorldMapManager.spriteIds.field3843, 0);
} else {
++var12;
++var12; // L: 2008
}
if (GrandExchangeOfferUnitPriceComparator.mapMarkerSprites == null) {
if (GrandExchangeOfferUnitPriceComparator.mapMarkerSprites == null) { // L: 2009
GrandExchangeOfferUnitPriceComparator.mapMarkerSprites = ClientPreferences.method1918(Messages.archive8, WorldMapManager.spriteIds.field3846, 0);
} else {
++var12;
++var12; // L: 2010
}
if (GrandExchangeOfferAgeComparator.crossSprites == null) {
if (GrandExchangeOfferAgeComparator.crossSprites == null) { // L: 2011
GrandExchangeOfferAgeComparator.crossSprites = ClientPreferences.method1918(Messages.archive8, WorldMapManager.spriteIds.field3847, 0);
} else {
++var12;
++var12; // L: 2012
}
if (Actor.mapDotSprites == null) {
if (Actor.mapDotSprites == null) { // L: 2013
Actor.mapDotSprites = ClientPreferences.method1918(Messages.archive8, WorldMapManager.spriteIds.field3848, 0);
} else {
++var12;
++var12; // L: 2014
}
if (InterfaceParent.scrollBarSprites == null) {
var2 = Messages.archive8;
var3 = WorldMapManager.spriteIds.field3849;
if (!class304.method5363(var2, var3, 0)) {
var1 = null;
if (InterfaceParent.scrollBarSprites == null) { // L: 2015
var2 = Messages.archive8; // L: 2017
var3 = WorldMapManager.spriteIds.field3849; // L: 2018
if (!class304.method5363(var2, var3, 0)) { // L: 2020
var1 = null; // L: 2021
} else {
var5 = new IndexedSprite[class336.SpriteBuffer_spriteCount];
var5 = new IndexedSprite[class336.SpriteBuffer_spriteCount]; // L: 2026
for (var6 = 0; var6 < class336.SpriteBuffer_spriteCount; ++var6) {
var7 = var5[var6] = new IndexedSprite();
var7.width = DirectByteArrayCopier.SpriteBuffer_spriteWidth;
var7.height = class336.SpriteBuffer_spriteHeight;
var7.xOffset = class336.SpriteBuffer_xOffsets[var6];
var7.yOffset = class336.SpriteBuffer_yOffsets[var6];
var7.subWidth = class336.SpriteBuffer_spriteWidths[var6];
var7.subHeight = class336.SpriteBuffer_spriteHeights[var6];
var7.palette = class336.SpriteBuffer_spritePalette;
var7.pixels = GrandExchangeEvents.SpriteBuffer_pixels[var6];
for (var6 = 0; var6 < class336.SpriteBuffer_spriteCount; ++var6) { // L: 2027
var7 = var5[var6] = new IndexedSprite(); // L: 2028
var7.width = DirectByteArrayCopier.SpriteBuffer_spriteWidth; // L: 2029
var7.height = class336.SpriteBuffer_spriteHeight; // L: 2030
var7.xOffset = class336.SpriteBuffer_xOffsets[var6]; // L: 2031
var7.yOffset = class336.SpriteBuffer_yOffsets[var6]; // L: 2032
var7.subWidth = class336.SpriteBuffer_spriteWidths[var6]; // L: 2033
var7.subHeight = class336.SpriteBuffer_spriteHeights[var6]; // L: 2034
var7.palette = class336.SpriteBuffer_spritePalette; // L: 2035
var7.pixels = GrandExchangeEvents.SpriteBuffer_pixels[var6]; // L: 2036
}
class336.SpriteBuffer_xOffsets = null;
class336.SpriteBuffer_yOffsets = null;
class336.SpriteBuffer_spriteWidths = null;
class336.SpriteBuffer_spriteHeights = null;
class336.SpriteBuffer_spritePalette = null;
GrandExchangeEvents.SpriteBuffer_pixels = null;
var1 = var5;
class336.SpriteBuffer_xOffsets = null; // L: 2039
class336.SpriteBuffer_yOffsets = null; // L: 2040
class336.SpriteBuffer_spriteWidths = null; // L: 2041
class336.SpriteBuffer_spriteHeights = null; // L: 2042
class336.SpriteBuffer_spritePalette = null; // L: 2043
GrandExchangeEvents.SpriteBuffer_pixels = null; // L: 2044
var1 = var5; // L: 2048
}
InterfaceParent.scrollBarSprites = var1;
InterfaceParent.scrollBarSprites = var1; // L: 2050
} else {
++var12;
++var12; // L: 2052
}
if (class39.modIconSprites == null) {
var2 = Messages.archive8;
var3 = WorldMapManager.spriteIds.field3850;
if (!class304.method5363(var2, var3, 0)) {
var1 = null;
if (class39.modIconSprites == null) { // L: 2053
var2 = Messages.archive8; // L: 2055
var3 = WorldMapManager.spriteIds.field3850; // L: 2056
if (!class304.method5363(var2, var3, 0)) { // L: 2058
var1 = null; // L: 2059
} else {
var5 = new IndexedSprite[class336.SpriteBuffer_spriteCount];
var5 = new IndexedSprite[class336.SpriteBuffer_spriteCount]; // L: 2064
for (var6 = 0; var6 < class336.SpriteBuffer_spriteCount; ++var6) {
var7 = var5[var6] = new IndexedSprite();
var7.width = DirectByteArrayCopier.SpriteBuffer_spriteWidth;
var7.height = class336.SpriteBuffer_spriteHeight;
var7.xOffset = class336.SpriteBuffer_xOffsets[var6];
var7.yOffset = class336.SpriteBuffer_yOffsets[var6];
var7.subWidth = class336.SpriteBuffer_spriteWidths[var6];
var7.subHeight = class336.SpriteBuffer_spriteHeights[var6];
var7.palette = class336.SpriteBuffer_spritePalette;
var7.pixels = GrandExchangeEvents.SpriteBuffer_pixels[var6];
for (var6 = 0; var6 < class336.SpriteBuffer_spriteCount; ++var6) { // L: 2065
var7 = var5[var6] = new IndexedSprite(); // L: 2066
var7.width = DirectByteArrayCopier.SpriteBuffer_spriteWidth; // L: 2067
var7.height = class336.SpriteBuffer_spriteHeight; // L: 2068
var7.xOffset = class336.SpriteBuffer_xOffsets[var6]; // L: 2069
var7.yOffset = class336.SpriteBuffer_yOffsets[var6]; // L: 2070
var7.subWidth = class336.SpriteBuffer_spriteWidths[var6]; // L: 2071
var7.subHeight = class336.SpriteBuffer_spriteHeights[var6]; // L: 2072
var7.palette = class336.SpriteBuffer_spritePalette; // L: 2073
var7.pixels = GrandExchangeEvents.SpriteBuffer_pixels[var6]; // L: 2074
}
class336.SpriteBuffer_xOffsets = null;
class336.SpriteBuffer_yOffsets = null;
class336.SpriteBuffer_spriteWidths = null;
class336.SpriteBuffer_spriteHeights = null;
class336.SpriteBuffer_spritePalette = null;
GrandExchangeEvents.SpriteBuffer_pixels = null;
var1 = var5;
class336.SpriteBuffer_xOffsets = null; // L: 2077
class336.SpriteBuffer_yOffsets = null; // L: 2078
class336.SpriteBuffer_spriteWidths = null; // L: 2079
class336.SpriteBuffer_spriteHeights = null; // L: 2080
class336.SpriteBuffer_spritePalette = null; // L: 2081
GrandExchangeEvents.SpriteBuffer_pixels = null; // L: 2082
var1 = var5; // L: 2086
}
class39.modIconSprites = var1;
class39.modIconSprites = var1; // L: 2088
} else {
++var12;
++var12; // L: 2090
}
if (var12 < 11) {
Login.Login_loadingText = "Loading sprites - " + var12 * 100 / 12 + "%";
Login.Login_loadingPercent = 70;
if (var12 < 11) { // L: 2091
Login.Login_loadingText = "Loading sprites - " + var12 * 100 / 12 + "%"; // L: 2092
Login.Login_loadingPercent = 70; // L: 2093
} else {
AbstractFont.AbstractFont_modIconSprites = class39.modIconSprites;
ViewportMouse.redHintArrowSprite.normalize();
int var13 = (int)(Math.random() * 21.0D) - 10;
int var14 = (int)(Math.random() * 21.0D) - 10;
var3 = (int)(Math.random() * 21.0D) - 10;
var15 = (int)(Math.random() * 41.0D) - 20;
WorldMapRegion.mapSceneSprites[0].shiftColors(var13 + var15, var14 + var15, var15 + var3);
Login.Login_loadingText = "Loaded sprites";
Login.Login_loadingPercent = 70;
Client.titleLoadingStage = 90;
AbstractFont.AbstractFont_modIconSprites = class39.modIconSprites; // L: 2096
ViewportMouse.redHintArrowSprite.normalize(); // L: 2097
int var13 = (int)(Math.random() * 21.0D) - 10; // L: 2098
int var14 = (int)(Math.random() * 21.0D) - 10; // L: 2099
var3 = (int)(Math.random() * 21.0D) - 10; // L: 2100
var15 = (int)(Math.random() * 41.0D) - 20; // L: 2101
WorldMapRegion.mapSceneSprites[0].shiftColors(var13 + var15, var14 + var15, var15 + var3); // L: 2102
Login.Login_loadingText = "Loaded sprites"; // L: 2103
Login.Login_loadingPercent = 70; // L: 2104
Client.titleLoadingStage = 90; // L: 2105
}
} else if (Client.titleLoadingStage == 90) {
if (!GrandExchangeOfferUnitPriceComparator.archive9.isFullyLoaded()) {
Login.Login_loadingText = "Loading textures - " + "0%";
Login.Login_loadingPercent = 90;
} else if (Client.titleLoadingStage == 90) { // L: 2108
if (!GrandExchangeOfferUnitPriceComparator.archive9.isFullyLoaded()) { // L: 2109
Login.Login_loadingText = "Loading textures - " + "0%"; // L: 2110
Login.Login_loadingPercent = 90; // L: 2111
} else {
class307.textureProvider = new TextureProvider(GrandExchangeOfferUnitPriceComparator.archive9, Messages.archive8, 20, Timer.clientPreferences.field1057, Client.isLowDetail ? 64 : 128);
Rasterizer3D.Rasterizer3D_setTextureLoader(class307.textureProvider);
Rasterizer3D.Rasterizer3D_setBrightness(Timer.clientPreferences.field1057);
Client.titleLoadingStage = 100;
class307.textureProvider = new TextureProvider(GrandExchangeOfferUnitPriceComparator.archive9, Messages.archive8, 20, Timer.clientPreferences.field1057, Client.isLowDetail ? 64 : 128); // L: 2114
Rasterizer3D.Rasterizer3D_setTextureLoader(class307.textureProvider); // L: 2115
Rasterizer3D.Rasterizer3D_setBrightness(Timer.clientPreferences.field1057); // L: 2116
Client.titleLoadingStage = 100; // L: 2117
}
} else if (Client.titleLoadingStage == 100) {
var12 = class307.textureProvider.getLoadedPercentage();
if (var12 < 100) {
Login.Login_loadingText = "Loading textures - " + var12 + "%";
Login.Login_loadingPercent = 90;
} else if (Client.titleLoadingStage == 100) { // L: 2120
var12 = class307.textureProvider.getLoadedPercentage(); // L: 2121
if (var12 < 100) { // L: 2122
Login.Login_loadingText = "Loading textures - " + var12 + "%"; // L: 2123
Login.Login_loadingPercent = 90; // L: 2124
} else {
Login.Login_loadingText = "Loaded textures";
Login.Login_loadingPercent = 90;
Client.titleLoadingStage = 110;
Login.Login_loadingText = "Loaded textures"; // L: 2127
Login.Login_loadingPercent = 90; // L: 2128
Client.titleLoadingStage = 110; // L: 2129
}
} else if (Client.titleLoadingStage == 110) {
SoundCache.mouseRecorder = new MouseRecorder();
GameShell.taskHandler.newThreadTask(SoundCache.mouseRecorder, 10);
Login.Login_loadingText = "Loaded input handler";
Login.Login_loadingPercent = 92;
Client.titleLoadingStage = 120;
} else if (Client.titleLoadingStage == 120) {
if (!class92.archive10.tryLoadFileByNames("huffman", "")) {
Login.Login_loadingText = "Loading wordpack - " + 0 + "%";
Login.Login_loadingPercent = 94;
} else if (Client.titleLoadingStage == 110) { // L: 2132
SoundCache.mouseRecorder = new MouseRecorder(); // L: 2133
GameShell.taskHandler.newThreadTask(SoundCache.mouseRecorder, 10); // L: 2134
Login.Login_loadingText = "Loaded input handler"; // L: 2135
Login.Login_loadingPercent = 92; // L: 2136
Client.titleLoadingStage = 120; // L: 2137
} else if (Client.titleLoadingStage == 120) { // L: 2140
if (!class92.archive10.tryLoadFileByNames("huffman", "")) { // L: 2141
Login.Login_loadingText = "Loading wordpack - " + 0 + "%"; // L: 2142
Login.Login_loadingPercent = 94; // L: 2143
} else {
Huffman var0 = new Huffman(class92.archive10.takeFileByNames("huffman", ""));
RouteStrategy.method3643(var0);
Login.Login_loadingText = "Loaded wordpack";
Login.Login_loadingPercent = 94;
Client.titleLoadingStage = 130;
Huffman var0 = new Huffman(class92.archive10.takeFileByNames("huffman", "")); // L: 2146
RouteStrategy.method3643(var0); // L: 2147
Login.Login_loadingText = "Loaded wordpack"; // L: 2148
Login.Login_loadingPercent = 94; // L: 2149
Client.titleLoadingStage = 130; // L: 2150
}
} else if (Client.titleLoadingStage == 130) {
if (!class330.archive3.isFullyLoaded()) {
Login.Login_loadingText = "Loading interfaces - " + class330.archive3.loadPercent() * 4 / 5 + "%";
Login.Login_loadingPercent = 96;
} else if (!PacketBufferNode.archive12.isFullyLoaded()) {
Login.Login_loadingText = "Loading interfaces - " + (80 + PacketBufferNode.archive12.loadPercent() / 6) + "%";
Login.Login_loadingPercent = 96;
} else if (!GrandExchangeOfferUnitPriceComparator.archive13.isFullyLoaded()) {
Login.Login_loadingText = "Loading interfaces - " + (96 + GrandExchangeOfferUnitPriceComparator.archive13.loadPercent() / 50) + "%";
Login.Login_loadingPercent = 96;
} else if (Client.titleLoadingStage == 130) { // L: 2153
if (!class330.archive3.isFullyLoaded()) { // L: 2154
Login.Login_loadingText = "Loading interfaces - " + class330.archive3.loadPercent() * 4 / 5 + "%"; // L: 2155
Login.Login_loadingPercent = 96; // L: 2156
} else if (!PacketBufferNode.archive12.isFullyLoaded()) { // L: 2159
Login.Login_loadingText = "Loading interfaces - " + (80 + PacketBufferNode.archive12.loadPercent() / 6) + "%"; // L: 2160
Login.Login_loadingPercent = 96; // L: 2161
} else if (!GrandExchangeOfferUnitPriceComparator.archive13.isFullyLoaded()) { // L: 2164
Login.Login_loadingText = "Loading interfaces - " + (96 + GrandExchangeOfferUnitPriceComparator.archive13.loadPercent() / 50) + "%"; // L: 2165
Login.Login_loadingPercent = 96; // L: 2166
} else {
Login.Login_loadingText = "Loaded interfaces";
Login.Login_loadingPercent = 98;
Client.titleLoadingStage = 140;
Login.Login_loadingText = "Loaded interfaces"; // L: 2169
Login.Login_loadingPercent = 98; // L: 2170
Client.titleLoadingStage = 140; // L: 2171
}
} else if (Client.titleLoadingStage == 140) {
Login.Login_loadingPercent = 100;
if (!class195.archive19.tryLoadGroupByName(WorldMapCacheName.field328.name)) {
Login.Login_loadingText = "Loading world map - " + class195.archive19.groupLoadPercentByName(WorldMapCacheName.field328.name) / 10 + "%";
} else if (Client.titleLoadingStage == 140) { // L: 2174
Login.Login_loadingPercent = 100; // L: 2175
if (!class195.archive19.tryLoadGroupByName(WorldMapCacheName.field328.name)) { // L: 2176
Login.Login_loadingText = "Loading world map - " + class195.archive19.groupLoadPercentByName(WorldMapCacheName.field328.name) / 10 + "%"; // L: 2177
} else {
if (WorldMapRectangle.worldMap == null) {
WorldMapRectangle.worldMap = new WorldMap();
WorldMapRectangle.worldMap.init(class195.archive19, class41.archive18, NetFileRequest.archive20, GrandExchangeOfferTotalQuantityComparator.fontBold12, Client.fontsMap, WorldMapRegion.mapSceneSprites);
if (WorldMapRectangle.worldMap == null) { // L: 2180
WorldMapRectangle.worldMap = new WorldMap(); // L: 2181
WorldMapRectangle.worldMap.init(class195.archive19, class41.archive18, NetFileRequest.archive20, GrandExchangeOfferTotalQuantityComparator.fontBold12, Client.fontsMap, WorldMapRegion.mapSceneSprites); // L: 2182
}
Login.Login_loadingText = "Loaded world map";
Client.titleLoadingStage = 150;
Login.Login_loadingText = "Loaded world map"; // L: 2184
Client.titleLoadingStage = 150; // L: 2185
}
} else if (Client.titleLoadingStage == 150) {
WorldMapCacheName.updateGameState(10);
} else if (Client.titleLoadingStage == 150) { // L: 2188
WorldMapCacheName.updateGameState(10); // L: 2189
}
}
}
}
} // L: 1733 1739 1765 1792 1812 1837 1845 1854 1886 1892 1898 1957 2094 2106 2112 2118 2125 2130 2138 2144 2151 2157 2162 2167 2172 2178 2186 2190 2192
@ObfuscatedName("kf")
@ObfuscatedSignature(
@@ -554,12 +554,12 @@ public final class Canvas extends java.awt.Canvas {
garbageValue = "27"
)
static boolean method911(int var0) {
for (int var1 = 0; var1 < Client.field870; ++var1) {
if (Client.field693[var1] == var0) {
for (int var1 = 0; var1 < Client.field870; ++var1) { // L: 10364
if (Client.field693[var1] == var0) { // L: 10365
return true;
}
}
return false;
return false; // L: 10367
}
}

View File

@@ -40,15 +40,15 @@ public class ChatChannel {
Message var5 = this.messages[99];
for (int var6 = this.count; var6 > 0; --var6) {
if (var6 != 100) {
this.messages[var6] = this.messages[var6 - 1];
if (var6 != 100) { // L: 93
this.messages[var6] = this.messages[var6 - 1]; // L: 94
}
}
if (var5 == null) {
var5 = new Message(var1, var2, var4, var3);
} else {
var5.remove();
var5.remove(); // L: 98
var5.removeDual();
var5.set(var1, var2, var4, var3);
}
@@ -58,7 +58,7 @@ public class ChatChannel {
++this.count;
}
return var5;
return var5; // L: 104
}
@ObfuscatedName("v")
@@ -68,7 +68,7 @@ public class ChatChannel {
)
@Export("getMessage")
Message getMessage(int var1) {
return var1 >= 0 && var1 < this.count ? this.messages[var1] : null;
return var1 >= 0 && var1 < this.count ? this.messages[var1] : null; // L: 108 109
}
@ObfuscatedName("x")
@@ -98,7 +98,7 @@ public class ChatChannel {
} else {
var1 = Actor.newScript(var2);
Script.Script_cached.put(var1, (long)var0);
return var1;
return var1; // L: 33
}
}
}
@@ -110,19 +110,19 @@ public class ChatChannel {
)
@Export("getParamDefinition")
public static ParamDefinition getParamDefinition(int var0) {
ParamDefinition var1 = (ParamDefinition)ParamDefinition.ParamDefinition_cached.get((long)var0);
if (var1 != null) {
ParamDefinition var1 = (ParamDefinition)ParamDefinition.ParamDefinition_cached.get((long)var0); // L: 25
if (var1 != null) { // L: 26
return var1;
} else {
byte[] var2 = ParamDefinition.ParamDefinition_archive.takeFile(11, var0);
var1 = new ParamDefinition();
if (var2 != null) {
byte[] var2 = ParamDefinition.ParamDefinition_archive.takeFile(11, var0); // L: 27
var1 = new ParamDefinition(); // L: 28
if (var2 != null) { // L: 29
var1.decode(new Buffer(var2));
}
var1.postDecode();
ParamDefinition.ParamDefinition_cached.put(var1, (long)var0);
return var1;
var1.postDecode(); // L: 30
ParamDefinition.ParamDefinition_cached.put(var1, (long)var0); // L: 31
return var1; // L: 32
}
}
@@ -133,110 +133,110 @@ public class ChatChannel {
)
@Export("sortWorlds")
static void sortWorlds(World[] var0, int var1, int var2, int[] var3, int[] var4) {
if (var1 < var2) {
int var5 = var1 - 1;
int var6 = var2 + 1;
int var7 = (var2 + var1) / 2;
World var8 = var0[var7];
var0[var7] = var0[var1];
var0[var1] = var8;
if (var1 < var2) { // L: 81
int var5 = var1 - 1; // L: 82
int var6 = var2 + 1; // L: 83
int var7 = (var2 + var1) / 2; // L: 84
World var8 = var0[var7]; // L: 85
var0[var7] = var0[var1]; // L: 86
var0[var1] = var8; // L: 87
while (var5 < var6) {
boolean var9 = true;
while (var5 < var6) { // L: 88
boolean var9 = true; // L: 89
int var10;
int var11;
int var12;
do {
--var6;
--var6; // L: 91
for (var10 = 0; var10 < 4; ++var10) {
if (var3[var10] == 2) {
var11 = var0[var6].index;
var12 = var8.index;
} else if (var3[var10] == 1) {
var11 = var0[var6].population;
var12 = var8.population;
if (var11 == -1 && var4[var10] == 1) {
for (var10 = 0; var10 < 4; ++var10) { // L: 92
if (var3[var10] == 2) { // L: 95
var11 = var0[var6].index; // L: 96
var12 = var8.index; // L: 97
} else if (var3[var10] == 1) { // L: 99
var11 = var0[var6].population; // L: 100
var12 = var8.population; // L: 101
if (var11 == -1 && var4[var10] == 1) { // L: 102
var11 = 2001;
}
if (var12 == -1 && var4[var10] == 1) {
if (var12 == -1 && var4[var10] == 1) { // L: 103
var12 = 2001;
}
} else if (var3[var10] == 3) {
var11 = var0[var6].isMembersOnly() ? 1 : 0;
var12 = var8.isMembersOnly() ? 1 : 0;
} else if (var3[var10] == 3) { // L: 105
var11 = var0[var6].isMembersOnly() ? 1 : 0; // L: 106
var12 = var8.isMembersOnly() ? 1 : 0; // L: 107
} else {
var11 = var0[var6].id;
var12 = var8.id;
var11 = var0[var6].id; // L: 110
var12 = var8.id; // L: 111
}
if (var11 != var12) {
if ((var4[var10] != 1 || var11 <= var12) && (var4[var10] != 0 || var11 >= var12)) {
var9 = false;
if (var11 != var12) { // L: 113
if ((var4[var10] != 1 || var11 <= var12) && (var4[var10] != 0 || var11 >= var12)) { // L: 116 117
var9 = false; // L: 119
}
break;
}
if (var10 == 3) {
if (var10 == 3) { // L: 114
var9 = false;
}
}
} while(var9);
var9 = true;
var9 = true; // L: 124
do {
++var5;
++var5; // L: 126
for (var10 = 0; var10 < 4; ++var10) {
if (var3[var10] == 2) {
var11 = var0[var5].index;
var12 = var8.index;
} else if (var3[var10] == 1) {
var11 = var0[var5].population;
var12 = var8.population;
if (var11 == -1 && var4[var10] == 1) {
for (var10 = 0; var10 < 4; ++var10) { // L: 127
if (var3[var10] == 2) { // L: 130
var11 = var0[var5].index; // L: 131
var12 = var8.index; // L: 132
} else if (var3[var10] == 1) { // L: 134
var11 = var0[var5].population; // L: 135
var12 = var8.population; // L: 136
if (var11 == -1 && var4[var10] == 1) { // L: 137
var11 = 2001;
}
if (var12 == -1 && var4[var10] == 1) {
if (var12 == -1 && var4[var10] == 1) { // L: 138
var12 = 2001;
}
} else if (var3[var10] == 3) {
var11 = var0[var5].isMembersOnly() ? 1 : 0;
var12 = var8.isMembersOnly() ? 1 : 0;
} else if (var3[var10] == 3) { // L: 140
var11 = var0[var5].isMembersOnly() ? 1 : 0; // L: 141
var12 = var8.isMembersOnly() ? 1 : 0; // L: 142
} else {
var11 = var0[var5].id;
var12 = var8.id;
var11 = var0[var5].id; // L: 145
var12 = var8.id; // L: 146
}
if (var11 != var12) {
if ((var4[var10] != 1 || var11 >= var12) && (var4[var10] != 0 || var11 <= var12)) {
var9 = false;
if (var11 != var12) { // L: 148
if ((var4[var10] != 1 || var11 >= var12) && (var4[var10] != 0 || var11 <= var12)) { // L: 151 152
var9 = false; // L: 154
}
break;
}
if (var10 == 3) {
if (var10 == 3) { // L: 149
var9 = false;
}
}
} while(var9);
if (var5 < var6) {
World var13 = var0[var5];
var0[var5] = var0[var6];
var0[var6] = var13;
if (var5 < var6) { // L: 159
World var13 = var0[var5]; // L: 160
var0[var5] = var0[var6]; // L: 161
var0[var6] = var13; // L: 162
}
}
sortWorlds(var0, var1, var6, var3, var4);
sortWorlds(var0, var6 + 1, var2, var3, var4);
sortWorlds(var0, var1, var6, var3, var4); // L: 165
sortWorlds(var0, var6 + 1, var2, var3, var4); // L: 166
}
}
} // L: 168
@ObfuscatedName("w")
@ObfuscatedSignature(
@@ -244,6 +244,6 @@ public class ChatChannel {
garbageValue = "57"
)
public static void method2317(int var0) {
MouseHandler.MouseHandler_idleCycles = var0;
}
MouseHandler.MouseHandler_idleCycles = var0; // L: 63
} // L: 64
}

View File

@@ -44,13 +44,13 @@ public class ClanChat extends UserList {
descriptor = "(Lmu;Lka;)V"
)
public ClanChat(LoginType var1, Usernamed var2) {
super(100);
this.name = null;
this.owner = null;
this.field3676 = 1;
this.loginType = var1;
this.localUser = var2;
}
super(100); // L: 18
this.name = null; // L: 11
this.owner = null; // L: 12
this.field3676 = 1; // L: 15
this.loginType = var1; // L: 19
this.localUser = var2; // L: 20
} // L: 21
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -59,7 +59,7 @@ public class ClanChat extends UserList {
)
@Export("newInstance")
User newInstance() {
return new ClanMate();
return new ClanMate(); // L: 24
}
@ObfuscatedName("v")
@@ -69,7 +69,7 @@ public class ClanChat extends UserList {
)
@Export("newTypedArray")
User[] newTypedArray(int var1) {
return new ClanMate[var1];
return new ClanMate[var1]; // L: 28
}
@ObfuscatedName("x")
@@ -79,8 +79,8 @@ public class ClanChat extends UserList {
)
@Export("readName")
final void readName(String var1) {
this.name = class238.method4166(var1);
}
this.name = class238.method4166(var1); // L: 32
} // L: 33
@ObfuscatedName("u")
@ObfuscatedSignature(
@@ -89,8 +89,8 @@ public class ClanChat extends UserList {
)
@Export("setOwner")
final void setOwner(String var1) {
this.owner = class238.method4166(var1);
}
this.owner = class238.method4166(var1); // L: 36
} // L: 37
@ObfuscatedName("e")
@ObfuscatedSignature(
@@ -99,25 +99,25 @@ public class ClanChat extends UserList {
)
@Export("readUpdate")
public final void readUpdate(Buffer var1) {
this.setOwner(var1.readStringCp1252NullTerminated());
long var2 = var1.readLong();
this.readName(SecureRandomCallable.method1218(var2));
this.minKick = var1.readByte();
int var4 = var1.readUnsignedByte();
if (var4 != 255) {
this.clear();
this.setOwner(var1.readStringCp1252NullTerminated()); // L: 40
long var2 = var1.readLong(); // L: 41
this.readName(SecureRandomCallable.method1218(var2)); // L: 42
this.minKick = var1.readByte(); // L: 43
int var4 = var1.readUnsignedByte(); // L: 44
if (var4 != 255) { // L: 45
this.clear(); // L: 46
for (int var5 = 0; var5 < var4; ++var5) {
ClanMate var6 = (ClanMate)this.addLastNoPreviousUsername(new Username(var1.readStringCp1252NullTerminated(), this.loginType));
int var7 = var1.readUnsignedShort();
var6.set(var7, ++this.field3676 - 1);
var6.rank = var1.readByte();
var1.readStringCp1252NullTerminated();
this.isLocalPlayer(var6);
for (int var5 = 0; var5 < var4; ++var5) { // L: 47
ClanMate var6 = (ClanMate)this.addLastNoPreviousUsername(new Username(var1.readStringCp1252NullTerminated(), this.loginType)); // L: 48
int var7 = var1.readUnsignedShort(); // L: 49
var6.set(var7, ++this.field3676 - 1); // L: 50
var6.rank = var1.readByte(); // L: 51
var1.readStringCp1252NullTerminated(); // L: 52
this.isLocalPlayer(var6); // L: 53
}
}
}
} // L: 55
@ObfuscatedName("m")
@ObfuscatedSignature(
@@ -125,41 +125,41 @@ public class ClanChat extends UserList {
garbageValue = "255"
)
public final void method5251(Buffer var1) {
Username var2 = new Username(var1.readStringCp1252NullTerminated(), this.loginType);
int var3 = var1.readUnsignedShort();
byte var4 = var1.readByte();
boolean var5 = false;
if (var4 == -128) {
Username var2 = new Username(var1.readStringCp1252NullTerminated(), this.loginType); // L: 58
int var3 = var1.readUnsignedShort(); // L: 59
byte var4 = var1.readByte(); // L: 60
boolean var5 = false; // L: 61
if (var4 == -128) { // L: 62
var5 = true;
}
ClanMate var6;
if (var5) {
if (this.getSize() == 0) {
if (var5) { // L: 63
if (this.getSize() == 0) { // L: 64
return;
}
var6 = (ClanMate)this.getByCurrentUsername(var2);
if (var6 != null && var6.getWorld() == var3) {
this.remove(var6);
var6 = (ClanMate)this.getByCurrentUsername(var2); // L: 65
if (var6 != null && var6.getWorld() == var3) { // L: 66
this.remove(var6); // L: 67
}
} else {
var1.readStringCp1252NullTerminated();
var6 = (ClanMate)this.getByCurrentUsername(var2);
if (var6 == null) {
if (this.getSize() > super.capacity) {
var1.readStringCp1252NullTerminated(); // L: 71
var6 = (ClanMate)this.getByCurrentUsername(var2); // L: 72
if (var6 == null) { // L: 73
if (this.getSize() > super.capacity) { // L: 74
return;
}
var6 = (ClanMate)this.addLastNoPreviousUsername(var2);
var6 = (ClanMate)this.addLastNoPreviousUsername(var2); // L: 75
}
var6.set(var3, ++this.field3676 - 1);
var6.rank = var4;
this.isLocalPlayer(var6);
var6.set(var3, ++this.field3676 - 1); // L: 77
var6.rank = var4; // L: 78
this.isLocalPlayer(var6); // L: 79
}
}
} // L: 81
@ObfuscatedName("cz")
@ObfuscatedSignature(
@@ -168,11 +168,11 @@ public class ClanChat extends UserList {
)
@Export("clearFriends")
public final void clearFriends() {
for (int var1 = 0; var1 < this.getSize(); ++var1) {
((ClanMate)this.get(var1)).clearIsFriend();
for (int var1 = 0; var1 < this.getSize(); ++var1) { // L: 84
((ClanMate)this.get(var1)).clearIsFriend(); // L: 85
}
}
} // L: 87
@ObfuscatedName("cc")
@ObfuscatedSignature(
@@ -181,11 +181,11 @@ public class ClanChat extends UserList {
)
@Export("invalidateIgnoreds")
public final void invalidateIgnoreds() {
for (int var1 = 0; var1 < this.getSize(); ++var1) {
((ClanMate)this.get(var1)).clearIsIgnored();
for (int var1 = 0; var1 < this.getSize(); ++var1) { // L: 90
((ClanMate)this.get(var1)).clearIsIgnored(); // L: 91
}
}
} // L: 93
@ObfuscatedName("ce")
@ObfuscatedSignature(
@@ -194,9 +194,9 @@ public class ClanChat extends UserList {
)
@Export("isLocalPlayer")
final void isLocalPlayer(ClanMate var1) {
if (var1.getUsername().equals(this.localUser.username())) {
if (var1.getUsername().equals(this.localUser.username())) { // L: 96
this.rank = var1.rank;
}
}
} // L: 97
}

View File

@@ -20,9 +20,9 @@ public class ClanMate extends Buddy {
TriBool ignored;
ClanMate() {
this.friend = TriBool.TriBool_unknown;
this.ignored = TriBool.TriBool_unknown;
}
this.friend = TriBool.TriBool_unknown; // L: 6
this.ignored = TriBool.TriBool_unknown; // L: 7
} // L: 9
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -31,8 +31,8 @@ public class ClanMate extends Buddy {
)
@Export("clearIsFriend")
void clearIsFriend() {
this.friend = TriBool.TriBool_unknown;
}
this.friend = TriBool.TriBool_unknown; // L: 12
} // L: 13
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -41,11 +41,11 @@ public class ClanMate extends Buddy {
)
@Export("isFriend")
public final boolean isFriend() {
if (this.friend == TriBool.TriBool_unknown) {
this.fillIsFriend();
if (this.friend == TriBool.TriBool_unknown) { // L: 16
this.fillIsFriend(); // L: 17
}
return this.friend == TriBool.TriBool_true;
return this.friend == TriBool.TriBool_true; // L: 19
}
@ObfuscatedName("x")
@@ -55,8 +55,8 @@ public class ClanMate extends Buddy {
)
@Export("fillIsFriend")
void fillIsFriend() {
this.friend = MilliClock.friendSystem.friendsList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false;
}
this.friend = MilliClock.friendSystem.friendsList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false; // L: 23
} // L: 24
@ObfuscatedName("w")
@ObfuscatedSignature(
@@ -65,8 +65,8 @@ public class ClanMate extends Buddy {
)
@Export("clearIsIgnored")
void clearIsIgnored() {
this.ignored = TriBool.TriBool_unknown;
}
this.ignored = TriBool.TriBool_unknown; // L: 27
} // L: 28
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -75,11 +75,11 @@ public class ClanMate extends Buddy {
)
@Export("isIgnored")
public final boolean isIgnored() {
if (this.ignored == TriBool.TriBool_unknown) {
this.fillIsIgnored();
if (this.ignored == TriBool.TriBool_unknown) { // L: 31
this.fillIsIgnored(); // L: 32
}
return this.ignored == TriBool.TriBool_true;
return this.ignored == TriBool.TriBool_true; // L: 34
}
@ObfuscatedName("j")
@@ -89,6 +89,6 @@ public class ClanMate extends Buddy {
)
@Export("fillIsIgnored")
void fillIsIgnored() {
this.ignored = MilliClock.friendSystem.ignoreList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false;
}
this.ignored = MilliClock.friendSystem.ignoreList.contains(super.username) ? TriBool.TriBool_true : TriBool.TriBool_false; // L: 38
} // L: 39
}

File diff suppressed because it is too large Load Diff

View File

@@ -536,118 +536,118 @@ public class ClientPacket implements class190 {
final int length;
static {
field2230 = new ClientPacket(0, -2);
field2234 = new ClientPacket(1, -2);
field2317 = new ClientPacket(2, 7);
field2329 = new ClientPacket(3, 6);
field2231 = new ClientPacket(4, 8);
field2232 = new ClientPacket(5, -1);
field2233 = new ClientPacket(6, -1);
field2277 = new ClientPacket(7, 1);
field2235 = new ClientPacket(8, 0);
field2262 = new ClientPacket(9, 3);
field2237 = new ClientPacket(10, 13);
field2238 = new ClientPacket(11, 3);
field2291 = new ClientPacket(12, 4);
field2240 = new ClientPacket(13, 8);
field2241 = new ClientPacket(14, -1);
field2242 = new ClientPacket(15, 3);
field2316 = new ClientPacket(16, 8);
field2244 = new ClientPacket(17, 0);
field2245 = new ClientPacket(18, -1);
field2246 = new ClientPacket(19, 3);
field2290 = new ClientPacket(20, -1);
field2248 = new ClientPacket(21, 7);
field2249 = new ClientPacket(22, 8);
field2250 = new ClientPacket(23, 2);
field2328 = new ClientPacket(24, 4);
field2252 = new ClientPacket(25, 8);
field2258 = new ClientPacket(26, 11);
field2254 = new ClientPacket(27, 7);
field2255 = new ClientPacket(28, 10);
field2256 = new ClientPacket(29, 9);
field2257 = new ClientPacket(30, 8);
field2227 = new ClientPacket(31, -1);
field2259 = new ClientPacket(32, 8);
field2260 = new ClientPacket(33, 3);
field2296 = new ClientPacket(34, 16);
field2236 = new ClientPacket(35, 3);
field2263 = new ClientPacket(36, 15);
field2247 = new ClientPacket(37, 8);
field2265 = new ClientPacket(38, 8);
field2266 = new ClientPacket(39, 6);
field2267 = new ClientPacket(40, 7);
field2280 = new ClientPacket(41, -1);
field2269 = new ClientPacket(42, 9);
field2324 = new ClientPacket(43, 7);
field2271 = new ClientPacket(44, 7);
field2272 = new ClientPacket(45, -1);
field2279 = new ClientPacket(46, 15);
field2274 = new ClientPacket(47, 9);
field2275 = new ClientPacket(48, 4);
field2276 = new ClientPacket(49, 3);
field2312 = new ClientPacket(50, 3);
field2230 = new ClientPacket(0, -2); // L: 5
field2234 = new ClientPacket(1, -2); // L: 6
field2317 = new ClientPacket(2, 7); // L: 7
field2329 = new ClientPacket(3, 6); // L: 8
field2231 = new ClientPacket(4, 8); // L: 9
field2232 = new ClientPacket(5, -1); // L: 10
field2233 = new ClientPacket(6, -1); // L: 11
field2277 = new ClientPacket(7, 1); // L: 12
field2235 = new ClientPacket(8, 0); // L: 13
field2262 = new ClientPacket(9, 3); // L: 14
field2237 = new ClientPacket(10, 13); // L: 15
field2238 = new ClientPacket(11, 3); // L: 16
field2291 = new ClientPacket(12, 4); // L: 17
field2240 = new ClientPacket(13, 8); // L: 18
field2241 = new ClientPacket(14, -1); // L: 19
field2242 = new ClientPacket(15, 3); // L: 20
field2316 = new ClientPacket(16, 8); // L: 21
field2244 = new ClientPacket(17, 0); // L: 22
field2245 = new ClientPacket(18, -1); // L: 23
field2246 = new ClientPacket(19, 3); // L: 24
field2290 = new ClientPacket(20, -1); // L: 25
field2248 = new ClientPacket(21, 7); // L: 26
field2249 = new ClientPacket(22, 8); // L: 27
field2250 = new ClientPacket(23, 2); // L: 28
field2328 = new ClientPacket(24, 4); // L: 29
field2252 = new ClientPacket(25, 8); // L: 30
field2258 = new ClientPacket(26, 11); // L: 31
field2254 = new ClientPacket(27, 7); // L: 32
field2255 = new ClientPacket(28, 10); // L: 33
field2256 = new ClientPacket(29, 9); // L: 34
field2257 = new ClientPacket(30, 8); // L: 35
field2227 = new ClientPacket(31, -1); // L: 36
field2259 = new ClientPacket(32, 8); // L: 37
field2260 = new ClientPacket(33, 3); // L: 38
field2296 = new ClientPacket(34, 16); // L: 39
field2236 = new ClientPacket(35, 3); // L: 40
field2263 = new ClientPacket(36, 15); // L: 41
field2247 = new ClientPacket(37, 8); // L: 42
field2265 = new ClientPacket(38, 8); // L: 43
field2266 = new ClientPacket(39, 6); // L: 44
field2267 = new ClientPacket(40, 7); // L: 45
field2280 = new ClientPacket(41, -1); // L: 46
field2269 = new ClientPacket(42, 9); // L: 47
field2324 = new ClientPacket(43, 7); // L: 48
field2271 = new ClientPacket(44, 7); // L: 49
field2272 = new ClientPacket(45, -1); // L: 50
field2279 = new ClientPacket(46, 15); // L: 51
field2274 = new ClientPacket(47, 9); // L: 52
field2275 = new ClientPacket(48, 4); // L: 53
field2276 = new ClientPacket(49, 3); // L: 54
field2312 = new ClientPacket(50, 3); // L: 55
field2253 = new ClientPacket(51, 3);
field2278 = new ClientPacket(52, 3);
field2268 = new ClientPacket(53, 3);
field2281 = new ClientPacket(54, 13);
field2282 = new ClientPacket(55, 3);
field2283 = new ClientPacket(56, 11);
field2284 = new ClientPacket(57, 8);
field2285 = new ClientPacket(58, -1);
field2286 = new ClientPacket(59, 8);
field2323 = new ClientPacket(60, 7);
field2288 = new ClientPacket(61, 2);
field2289 = new ClientPacket(62, 8);
field2326 = new ClientPacket(63, -1);
field2304 = new ClientPacket(64, -1);
field2297 = new ClientPacket(65, -1);
field2293 = new ClientPacket(66, 7);
field2270 = new ClientPacket(67, -2);
field2295 = new ClientPacket(68, 16);
field2287 = new ClientPacket(69, 4);
field2294 = new ClientPacket(70, 8);
field2292 = new ClientPacket(71, -1);
field2299 = new ClientPacket(72, 4);
field2306 = new ClientPacket(73, 0);
field2301 = new ClientPacket(74, -1);
field2302 = new ClientPacket(75, 9);
field2303 = new ClientPacket(76, 0);
field2261 = new ClientPacket(77, -1);
field2305 = new ClientPacket(78, 7);
field2228 = new ClientPacket(79, -1);
field2307 = new ClientPacket(80, 8);
field2308 = new ClientPacket(81, 3);
field2229 = new ClientPacket(82, 8);
field2310 = new ClientPacket(83, 7);
field2311 = new ClientPacket(84, 7);
field2314 = new ClientPacket(85, 2);
field2313 = new ClientPacket(86, 2);
field2309 = new ClientPacket(87, 3);
field2315 = new ClientPacket(88, 8);
field2239 = new ClientPacket(89, 13);
field2320 = new ClientPacket(90, 8);
field2318 = new ClientPacket(91, -1);
field2319 = new ClientPacket(92, -1);
field2327 = new ClientPacket(93, 14);
field2321 = new ClientPacket(94, 2);
field2322 = new ClientPacket(95, 0);
field2330 = new ClientPacket(96, 8);
field2298 = new ClientPacket(97, 16);
field2325 = new ClientPacket(98, 8);
field2264 = new ClientPacket(99, 8);
field2251 = new ClientPacket(100, -1);
field2273 = new ClientPacket(101, 5);
field2243 = new ClientPacket(102, -1);
field2278 = new ClientPacket(52, 3); // L: 57
field2268 = new ClientPacket(53, 3); // L: 58
field2281 = new ClientPacket(54, 13); // L: 59
field2282 = new ClientPacket(55, 3); // L: 60
field2283 = new ClientPacket(56, 11); // L: 61
field2284 = new ClientPacket(57, 8); // L: 62
field2285 = new ClientPacket(58, -1); // L: 63
field2286 = new ClientPacket(59, 8); // L: 64
field2323 = new ClientPacket(60, 7); // L: 65
field2288 = new ClientPacket(61, 2); // L: 66
field2289 = new ClientPacket(62, 8); // L: 67
field2326 = new ClientPacket(63, -1); // L: 68
field2304 = new ClientPacket(64, -1); // L: 69
field2297 = new ClientPacket(65, -1); // L: 70
field2293 = new ClientPacket(66, 7); // L: 71
field2270 = new ClientPacket(67, -2); // L: 72
field2295 = new ClientPacket(68, 16); // L: 73
field2287 = new ClientPacket(69, 4); // L: 74
field2294 = new ClientPacket(70, 8); // L: 75
field2292 = new ClientPacket(71, -1); // L: 76
field2299 = new ClientPacket(72, 4); // L: 77
field2306 = new ClientPacket(73, 0); // L: 78
field2301 = new ClientPacket(74, -1); // L: 79
field2302 = new ClientPacket(75, 9); // L: 80
field2303 = new ClientPacket(76, 0); // L: 81
field2261 = new ClientPacket(77, -1); // L: 82
field2305 = new ClientPacket(78, 7); // L: 83
field2228 = new ClientPacket(79, -1); // L: 84
field2307 = new ClientPacket(80, 8); // L: 85
field2308 = new ClientPacket(81, 3); // L: 86
field2229 = new ClientPacket(82, 8); // L: 87
field2310 = new ClientPacket(83, 7); // L: 88
field2311 = new ClientPacket(84, 7); // L: 89
field2314 = new ClientPacket(85, 2); // L: 90
field2313 = new ClientPacket(86, 2); // L: 91
field2309 = new ClientPacket(87, 3); // L: 92
field2315 = new ClientPacket(88, 8); // L: 93
field2239 = new ClientPacket(89, 13); // L: 94
field2320 = new ClientPacket(90, 8); // L: 95
field2318 = new ClientPacket(91, -1); // L: 96
field2319 = new ClientPacket(92, -1); // L: 97
field2327 = new ClientPacket(93, 14); // L: 98
field2321 = new ClientPacket(94, 2); // L: 99
field2322 = new ClientPacket(95, 0); // L: 100
field2330 = new ClientPacket(96, 8); // L: 101
field2298 = new ClientPacket(97, 16); // L: 102
field2325 = new ClientPacket(98, 8); // L: 103
field2264 = new ClientPacket(99, 8); // L: 104
field2251 = new ClientPacket(100, -1); // L: 105
field2273 = new ClientPacket(101, 5); // L: 106
field2243 = new ClientPacket(102, -1); // L: 107
}
ClientPacket(int var1, int var2) {
this.id = var1;
this.length = var2;
}
this.id = var1; // L: 112
this.length = var2; // L: 113
} // L: 114
@ObfuscatedName("w")
public static int method3671(long var0) {
return (int)(var0 >>> 0 & 127L);
return (int)(var0 >>> 0 & 127L); // L: 56
}
}

View File

@@ -59,7 +59,7 @@ public class ClientPreferences {
LinkedHashMap parameters;
static {
ClientPreferences_optionCount = 7;
ClientPreferences_optionCount = 7; // L: 11
}
ClientPreferences() {
@@ -71,21 +71,21 @@ public class ClientPreferences {
this.soundEffectsVolume = 127;
this.areaSoundEffectsVolume = 127;
this.parameters = new LinkedHashMap();
this.method1908(true);
this.method1908(true); // L: 25
}
@ObfuscatedSignature(
descriptor = "(Lkj;)V"
)
ClientPreferences(Buffer var1) {
this.windowMode = 1;
this.rememberedUsername = null;
this.hideUsername = false;
this.field1057 = 0.8D;
this.musicVolume = 127;
this.soundEffectsVolume = 127;
this.areaSoundEffectsVolume = 127;
this.parameters = new LinkedHashMap();
this.windowMode = 1; // L: 15
this.rememberedUsername = null; // L: 16
this.hideUsername = false; // L: 17
this.field1057 = 0.8D; // L: 18
this.musicVolume = 127; // L: 19
this.soundEffectsVolume = 127; // L: 20
this.areaSoundEffectsVolume = 127; // L: 21
this.parameters = new LinkedHashMap(); // L: 22
if (var1 != null && var1.array != null) {
int var2 = var1.readUnsignedByte();
if (var2 >= 0 && var2 <= ClientPreferences_optionCount) {
@@ -93,8 +93,8 @@ public class ClientPreferences {
this.roofsHidden = true;
}
if (var2 > 1) {
this.titleMusicDisabled = var1.readUnsignedByte() == 1;
if (var2 > 1) { // L: 39
this.titleMusicDisabled = var1.readUnsignedByte() == 1; // L: 40
}
if (var2 > 3) {
@@ -104,26 +104,26 @@ public class ClientPreferences {
if (var2 > 2) {
int var3 = var1.readUnsignedByte();
for (int var4 = 0; var4 < var3; ++var4) {
int var5 = var1.readInt();
int var6 = var1.readInt();
for (int var4 = 0; var4 < var3; ++var4) { // L: 47
int var5 = var1.readInt(); // L: 48
int var6 = var1.readInt(); // L: 49
this.parameters.put(var5, var6);
}
}
if (var2 > 4) {
this.rememberedUsername = var1.readStringCp1252NullTerminatedOrNull();
if (var2 > 4) { // L: 53
this.rememberedUsername = var1.readStringCp1252NullTerminatedOrNull(); // L: 54
}
if (var2 > 5) {
this.hideUsername = var1.readBoolean();
if (var2 > 5) { // L: 56
this.hideUsername = var1.readBoolean(); // L: 57
}
if (var2 > 6) {
this.field1057 = (double)var1.readUnsignedByte() / 100.0D;
this.musicVolume = var1.readUnsignedByte();
this.soundEffectsVolume = var1.readUnsignedByte();
this.areaSoundEffectsVolume = var1.readUnsignedByte();
if (var2 > 6) { // L: 59
this.field1057 = (double)var1.readUnsignedByte() / 100.0D; // L: 60
this.musicVolume = var1.readUnsignedByte(); // L: 61
this.soundEffectsVolume = var1.readUnsignedByte(); // L: 62
this.areaSoundEffectsVolume = var1.readUnsignedByte(); // L: 63
}
} else {
this.method1908(true);
@@ -132,7 +132,7 @@ public class ClientPreferences {
this.method1908(true);
}
}
} // L: 67
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -140,7 +140,7 @@ public class ClientPreferences {
garbageValue = "-1410665690"
)
void method1908(boolean var1) {
}
} // L: 69
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -149,27 +149,27 @@ public class ClientPreferences {
)
@Export("toBuffer")
Buffer toBuffer() {
Buffer var1 = new Buffer(100);
var1.writeByte(ClientPreferences_optionCount);
var1.writeByte(this.roofsHidden ? 1 : 0);
var1.writeByte(this.titleMusicDisabled ? 1 : 0);
var1.writeByte(this.windowMode);
var1.writeByte(this.parameters.size());
Iterator var2 = this.parameters.entrySet().iterator();
Buffer var1 = new Buffer(100); // L: 72
var1.writeByte(ClientPreferences_optionCount); // L: 73
var1.writeByte(this.roofsHidden ? 1 : 0); // L: 74
var1.writeByte(this.titleMusicDisabled ? 1 : 0); // L: 75
var1.writeByte(this.windowMode); // L: 76
var1.writeByte(this.parameters.size()); // L: 77
Iterator var2 = this.parameters.entrySet().iterator(); // L: 78
while (var2.hasNext()) {
Entry var3 = (Entry)var2.next();
var1.writeInt((Integer)var3.getKey());
var1.writeInt((Integer)var3.getValue());
Entry var3 = (Entry)var2.next(); // L: 79
var1.writeInt((Integer)var3.getKey()); // L: 81
var1.writeInt((Integer)var3.getValue()); // L: 82
}
var1.writeStringCp1252NullTerminated(this.rememberedUsername != null ? this.rememberedUsername : "");
var1.writeBoolean(this.hideUsername);
var1.writeByte((int)(100.0D * this.field1057));
var1.writeByte(this.musicVolume);
var1.writeByte(this.soundEffectsVolume);
var1.writeByte(this.areaSoundEffectsVolume);
return var1;
var1.writeStringCp1252NullTerminated(this.rememberedUsername != null ? this.rememberedUsername : ""); // L: 85
var1.writeBoolean(this.hideUsername); // L: 86
var1.writeByte((int)(100.0D * this.field1057)); // L: 87
var1.writeByte(this.musicVolume); // L: 88
var1.writeByte(this.soundEffectsVolume); // L: 89
var1.writeByte(this.areaSoundEffectsVolume); // L: 90
return var1; // L: 91
}
@ObfuscatedName("h")
@@ -178,35 +178,35 @@ public class ClientPreferences {
garbageValue = "93"
)
public static Sprite[] method1918(AbstractArchive var0, int var1, int var2) {
if (!class304.method5363(var0, var1, var2)) {
if (!class304.method5363(var0, var1, var2)) { // L: 23
return null;
} else {
Sprite[] var4 = new Sprite[class336.SpriteBuffer_spriteCount];
Sprite[] var4 = new Sprite[class336.SpriteBuffer_spriteCount]; // L: 26
for (int var5 = 0; var5 < class336.SpriteBuffer_spriteCount; ++var5) {
Sprite var6 = var4[var5] = new Sprite();
var6.width = DirectByteArrayCopier.SpriteBuffer_spriteWidth;
var6.height = class336.SpriteBuffer_spriteHeight;
var6.xOffset = class336.SpriteBuffer_xOffsets[var5];
var6.yOffset = class336.SpriteBuffer_yOffsets[var5];
var6.subWidth = class336.SpriteBuffer_spriteWidths[var5];
var6.subHeight = class336.SpriteBuffer_spriteHeights[var5];
int var7 = var6.subHeight * var6.subWidth;
byte[] var8 = GrandExchangeEvents.SpriteBuffer_pixels[var5];
var6.pixels = new int[var7];
for (int var5 = 0; var5 < class336.SpriteBuffer_spriteCount; ++var5) { // L: 27
Sprite var6 = var4[var5] = new Sprite(); // L: 28
var6.width = DirectByteArrayCopier.SpriteBuffer_spriteWidth; // L: 29
var6.height = class336.SpriteBuffer_spriteHeight; // L: 30
var6.xOffset = class336.SpriteBuffer_xOffsets[var5]; // L: 31
var6.yOffset = class336.SpriteBuffer_yOffsets[var5]; // L: 32
var6.subWidth = class336.SpriteBuffer_spriteWidths[var5]; // L: 33
var6.subHeight = class336.SpriteBuffer_spriteHeights[var5]; // L: 34
int var7 = var6.subHeight * var6.subWidth; // L: 35
byte[] var8 = GrandExchangeEvents.SpriteBuffer_pixels[var5]; // L: 36
var6.pixels = new int[var7]; // L: 37
for (int var9 = 0; var9 < var7; ++var9) {
for (int var9 = 0; var9 < var7; ++var9) { // L: 38
var6.pixels[var9] = class336.SpriteBuffer_spritePalette[var8[var9] & 255];
}
}
class336.SpriteBuffer_xOffsets = null;
class336.SpriteBuffer_yOffsets = null;
class336.SpriteBuffer_spriteWidths = null;
class336.SpriteBuffer_spriteHeights = null;
class336.SpriteBuffer_spritePalette = null;
GrandExchangeEvents.SpriteBuffer_pixels = null;
return var4;
class336.SpriteBuffer_xOffsets = null; // L: 41
class336.SpriteBuffer_yOffsets = null; // L: 42
class336.SpriteBuffer_spriteWidths = null; // L: 43
class336.SpriteBuffer_spriteHeights = null; // L: 44
class336.SpriteBuffer_spritePalette = null; // L: 45
GrandExchangeEvents.SpriteBuffer_pixels = null; // L: 46
return var4; // L: 50
}
}
@@ -217,36 +217,36 @@ public class ClientPreferences {
)
@Export("addPlayerToScene")
static void addPlayerToScene(Player var0, boolean var1) {
if (var0 != null && var0.isVisible() && !var0.isHidden) {
var0.isUnanimated = false;
if ((Client.isLowDetail && Players.Players_count > 50 || Players.Players_count > 200) && var1 && var0.movementSequence == var0.idleSequence) {
if (var0 != null && var0.isVisible() && !var0.isHidden) { // L: 4723
var0.isUnanimated = false; // L: 4724
if ((Client.isLowDetail && Players.Players_count > 50 || Players.Players_count > 200) && var1 && var0.movementSequence == var0.idleSequence) { // L: 4725 4726
var0.isUnanimated = true;
}
int var2 = var0.x >> 7;
int var3 = var0.y >> 7;
if (var2 >= 0 && var2 < 104 && var3 >= 0 && var3 < 104) {
long var4 = NPC.calculateTag(0, 0, 0, false, var0.index);
if (var0.model0 != null && Client.cycle >= var0.animationCycleStart && Client.cycle < var0.animationCycleEnd) {
var0.isUnanimated = false;
var0.tileHeight = SecureRandomFuture.getTileHeight(var0.x, var0.y, GameObject.Client_plane);
var0.playerCycle = Client.cycle;
ArchiveLoader.scene.addNullableObject(GameObject.Client_plane, var0.x, var0.y, var0.tileHeight, 60, var0, var0.rotation, var4, var0.field620, var0.field606, var0.field622, var0.field623);
int var2 = var0.x >> 7; // L: 4728
int var3 = var0.y >> 7; // L: 4729
if (var2 >= 0 && var2 < 104 && var3 >= 0 && var3 < 104) { // L: 4730
long var4 = NPC.calculateTag(0, 0, 0, false, var0.index); // L: 4731
if (var0.model0 != null && Client.cycle >= var0.animationCycleStart && Client.cycle < var0.animationCycleEnd) { // L: 4732
var0.isUnanimated = false; // L: 4733
var0.tileHeight = SecureRandomFuture.getTileHeight(var0.x, var0.y, GameObject.Client_plane); // L: 4734
var0.playerCycle = Client.cycle; // L: 4735
ArchiveLoader.scene.addNullableObject(GameObject.Client_plane, var0.x, var0.y, var0.tileHeight, 60, var0, var0.rotation, var4, var0.field620, var0.field606, var0.field622, var0.field623); // L: 4736
} else {
if ((var0.x & 127) == 64 && (var0.y & 127) == 64) {
if (Client.tileLastDrawnActor[var2][var3] == Client.viewportDrawCount) {
if ((var0.x & 127) == 64 && (var0.y & 127) == 64) { // L: 4739
if (Client.tileLastDrawnActor[var2][var3] == Client.viewportDrawCount) { // L: 4740
return;
}
Client.tileLastDrawnActor[var2][var3] = Client.viewportDrawCount;
Client.tileLastDrawnActor[var2][var3] = Client.viewportDrawCount; // L: 4741
}
var0.tileHeight = SecureRandomFuture.getTileHeight(var0.x, var0.y, GameObject.Client_plane);
var0.playerCycle = Client.cycle;
ArchiveLoader.scene.drawEntity(GameObject.Client_plane, var0.x, var0.y, var0.tileHeight, 60, var0, var0.rotation, var4, var0.isWalking);
var0.tileHeight = SecureRandomFuture.getTileHeight(var0.x, var0.y, GameObject.Client_plane); // L: 4743
var0.playerCycle = Client.cycle; // L: 4744
ArchiveLoader.scene.drawEntity(GameObject.Client_plane, var0.x, var0.y, var0.tileHeight, 60, var0, var0.rotation, var4, var0.isWalking); // L: 4745
}
}
}
}
} // L: 4749
}

View File

@@ -7,7 +7,7 @@ import net.runelite.mapping.ObfuscatedSignature;
@Implements("Clock")
public abstract class Clock {
Clock() {
}
} // L: 4
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -32,25 +32,25 @@ public abstract class Clock {
)
@Export("decodeStringCp1252")
public static String decodeStringCp1252(byte[] var0, int var1, int var2) {
char[] var3 = new char[var2];
int var4 = 0;
char[] var3 = new char[var2]; // L: 136
int var4 = 0; // L: 137
for (int var5 = 0; var5 < var2; ++var5) {
int var6 = var0[var5 + var1] & 255;
if (var6 != 0) {
if (var6 >= 128 && var6 < 160) {
char var7 = class298.cp1252AsciiExtension[var6 - 128];
if (var7 == 0) {
for (int var5 = 0; var5 < var2; ++var5) { // L: 138
int var6 = var0[var5 + var1] & 255; // L: 139
if (var6 != 0) { // L: 140
if (var6 >= 128 && var6 < 160) { // L: 141
char var7 = class298.cp1252AsciiExtension[var6 - 128]; // L: 142
if (var7 == 0) { // L: 143
var7 = '?';
}
var6 = var7;
var6 = var7; // L: 144
}
var3[var4++] = (char)var6;
var3[var4++] = (char)var6; // L: 146
}
}
return new String(var3, 0, var4);
return new String(var3, 0, var4); // L: 148
}
}

View File

@@ -41,13 +41,13 @@ public class CollisionMap {
public int[][] flags;
public CollisionMap(int var1, int var2) {
this.xInset = 0;
this.yInset = 0;
this.xSize = var1;
this.ySize = var2;
this.flags = new int[this.xSize][this.ySize];
this.clear();
}
this.xInset = 0; // L: 44
this.yInset = 0; // L: 45
this.xSize = var1; // L: 46
this.ySize = var2; // L: 47
this.flags = new int[this.xSize][this.ySize]; // L: 48
this.clear(); // L: 49
} // L: 50
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -56,17 +56,17 @@ public class CollisionMap {
)
@Export("clear")
public void clear() {
for (int var1 = 0; var1 < this.xSize; ++var1) {
for (int var2 = 0; var2 < this.ySize; ++var2) {
if (var1 != 0 && var2 != 0 && var1 < this.xSize - 5 && var2 < this.ySize - 5) {
this.flags[var1][var2] = 16777216;
for (int var1 = 0; var1 < this.xSize; ++var1) { // L: 53
for (int var2 = 0; var2 < this.ySize; ++var2) { // L: 54
if (var1 != 0 && var2 != 0 && var1 < this.xSize - 5 && var2 < this.ySize - 5) { // L: 55
this.flags[var1][var2] = 16777216; // L: 56
} else {
this.flags[var1][var2] = 16777215;
}
}
}
}
} // L: 59
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -74,151 +74,151 @@ public class CollisionMap {
garbageValue = "-12"
)
public void method3611(int var1, int var2, int var3, int var4, boolean var5) {
var1 -= this.xInset;
var2 -= this.yInset;
if (var3 == 0) {
if (var4 == 0) {
this.setFlag(var1, var2, 128);
this.setFlag(var1 - 1, var2, 8);
var1 -= this.xInset; // L: 62
var2 -= this.yInset; // L: 63
if (var3 == 0) { // L: 64
if (var4 == 0) { // L: 65
this.setFlag(var1, var2, 128); // L: 66
this.setFlag(var1 - 1, var2, 8); // L: 67
}
if (var4 == 1) {
this.setFlag(var1, var2, 2);
this.setFlag(var1, var2 + 1, 32);
if (var4 == 1) { // L: 69
this.setFlag(var1, var2, 2); // L: 70
this.setFlag(var1, var2 + 1, 32); // L: 71
}
if (var4 == 2) {
this.setFlag(var1, var2, 8);
this.setFlag(var1 + 1, var2, 128);
if (var4 == 2) { // L: 73
this.setFlag(var1, var2, 8); // L: 74
this.setFlag(var1 + 1, var2, 128); // L: 75
}
if (var4 == 3) {
this.setFlag(var1, var2, 32);
this.setFlag(var1, var2 - 1, 2);
if (var4 == 3) { // L: 77
this.setFlag(var1, var2, 32); // L: 78
this.setFlag(var1, var2 - 1, 2); // L: 79
}
}
if (var3 == 1 || var3 == 3) {
if (var4 == 0) {
this.setFlag(var1, var2, 1);
this.setFlag(var1 - 1, var2 + 1, 16);
if (var3 == 1 || var3 == 3) { // L: 82
if (var4 == 0) { // L: 83
this.setFlag(var1, var2, 1); // L: 84
this.setFlag(var1 - 1, var2 + 1, 16); // L: 85
}
if (var4 == 1) {
this.setFlag(var1, var2, 4);
this.setFlag(var1 + 1, var2 + 1, 64);
if (var4 == 1) { // L: 87
this.setFlag(var1, var2, 4); // L: 88
this.setFlag(var1 + 1, var2 + 1, 64); // L: 89
}
if (var4 == 2) {
this.setFlag(var1, var2, 16);
this.setFlag(var1 + 1, var2 - 1, 1);
if (var4 == 2) { // L: 91
this.setFlag(var1, var2, 16); // L: 92
this.setFlag(var1 + 1, var2 - 1, 1); // L: 93
}
if (var4 == 3) {
this.setFlag(var1, var2, 64);
this.setFlag(var1 - 1, var2 - 1, 4);
if (var4 == 3) { // L: 95
this.setFlag(var1, var2, 64); // L: 96
this.setFlag(var1 - 1, var2 - 1, 4); // L: 97
}
}
if (var3 == 2) {
if (var4 == 0) {
this.setFlag(var1, var2, 130);
this.setFlag(var1 - 1, var2, 8);
this.setFlag(var1, var2 + 1, 32);
if (var3 == 2) { // L: 100
if (var4 == 0) { // L: 101
this.setFlag(var1, var2, 130); // L: 102
this.setFlag(var1 - 1, var2, 8); // L: 103
this.setFlag(var1, var2 + 1, 32); // L: 104
}
if (var4 == 1) {
this.setFlag(var1, var2, 10);
this.setFlag(var1, var2 + 1, 32);
this.setFlag(var1 + 1, var2, 128);
if (var4 == 1) { // L: 106
this.setFlag(var1, var2, 10); // L: 107
this.setFlag(var1, var2 + 1, 32); // L: 108
this.setFlag(var1 + 1, var2, 128); // L: 109
}
if (var4 == 2) {
this.setFlag(var1, var2, 40);
this.setFlag(var1 + 1, var2, 128);
this.setFlag(var1, var2 - 1, 2);
if (var4 == 2) { // L: 111
this.setFlag(var1, var2, 40); // L: 112
this.setFlag(var1 + 1, var2, 128); // L: 113
this.setFlag(var1, var2 - 1, 2); // L: 114
}
if (var4 == 3) {
this.setFlag(var1, var2, 160);
this.setFlag(var1, var2 - 1, 2);
this.setFlag(var1 - 1, var2, 8);
if (var4 == 3) { // L: 116
this.setFlag(var1, var2, 160); // L: 117
this.setFlag(var1, var2 - 1, 2); // L: 118
this.setFlag(var1 - 1, var2, 8); // L: 119
}
}
if (var5) {
if (var3 == 0) {
if (var4 == 0) {
this.setFlag(var1, var2, 65536);
this.setFlag(var1 - 1, var2, 4096);
if (var5) { // L: 122
if (var3 == 0) { // L: 123
if (var4 == 0) { // L: 124
this.setFlag(var1, var2, 65536); // L: 125
this.setFlag(var1 - 1, var2, 4096); // L: 126
}
if (var4 == 1) {
this.setFlag(var1, var2, 1024);
this.setFlag(var1, var2 + 1, 16384);
if (var4 == 1) { // L: 128
this.setFlag(var1, var2, 1024); // L: 129
this.setFlag(var1, var2 + 1, 16384); // L: 130
}
if (var4 == 2) {
this.setFlag(var1, var2, 4096);
this.setFlag(var1 + 1, var2, 65536);
if (var4 == 2) { // L: 132
this.setFlag(var1, var2, 4096); // L: 133
this.setFlag(var1 + 1, var2, 65536); // L: 134
}
if (var4 == 3) {
this.setFlag(var1, var2, 16384);
this.setFlag(var1, var2 - 1, 1024);
if (var4 == 3) { // L: 136
this.setFlag(var1, var2, 16384); // L: 137
this.setFlag(var1, var2 - 1, 1024); // L: 138
}
}
if (var3 == 1 || var3 == 3) {
if (var4 == 0) {
this.setFlag(var1, var2, 512);
this.setFlag(var1 - 1, var2 + 1, 8192);
if (var3 == 1 || var3 == 3) { // L: 141
if (var4 == 0) { // L: 142
this.setFlag(var1, var2, 512); // L: 143
this.setFlag(var1 - 1, var2 + 1, 8192); // L: 144
}
if (var4 == 1) {
this.setFlag(var1, var2, 2048);
this.setFlag(var1 + 1, var2 + 1, 32768);
if (var4 == 1) { // L: 146
this.setFlag(var1, var2, 2048); // L: 147
this.setFlag(var1 + 1, var2 + 1, 32768); // L: 148
}
if (var4 == 2) {
this.setFlag(var1, var2, 8192);
this.setFlag(var1 + 1, var2 - 1, 512);
if (var4 == 2) { // L: 150
this.setFlag(var1, var2, 8192); // L: 151
this.setFlag(var1 + 1, var2 - 1, 512); // L: 152
}
if (var4 == 3) {
this.setFlag(var1, var2, 32768);
this.setFlag(var1 - 1, var2 - 1, 2048);
if (var4 == 3) { // L: 154
this.setFlag(var1, var2, 32768); // L: 155
this.setFlag(var1 - 1, var2 - 1, 2048); // L: 156
}
}
if (var3 == 2) {
if (var4 == 0) {
this.setFlag(var1, var2, 66560);
this.setFlag(var1 - 1, var2, 4096);
this.setFlag(var1, var2 + 1, 16384);
if (var3 == 2) { // L: 159
if (var4 == 0) { // L: 160
this.setFlag(var1, var2, 66560); // L: 161
this.setFlag(var1 - 1, var2, 4096); // L: 162
this.setFlag(var1, var2 + 1, 16384); // L: 163
}
if (var4 == 1) {
this.setFlag(var1, var2, 5120);
this.setFlag(var1, var2 + 1, 16384);
this.setFlag(var1 + 1, var2, 65536);
if (var4 == 1) { // L: 165
this.setFlag(var1, var2, 5120); // L: 166
this.setFlag(var1, var2 + 1, 16384); // L: 167
this.setFlag(var1 + 1, var2, 65536); // L: 168
}
if (var4 == 2) {
this.setFlag(var1, var2, 20480);
this.setFlag(var1 + 1, var2, 65536);
this.setFlag(var1, var2 - 1, 1024);
if (var4 == 2) { // L: 170
this.setFlag(var1, var2, 20480); // L: 171
this.setFlag(var1 + 1, var2, 65536); // L: 172
this.setFlag(var1, var2 - 1, 1024); // L: 173
}
if (var4 == 3) {
this.setFlag(var1, var2, 81920);
this.setFlag(var1, var2 - 1, 1024);
this.setFlag(var1 - 1, var2, 4096);
if (var4 == 3) { // L: 175
this.setFlag(var1, var2, 81920); // L: 176
this.setFlag(var1, var2 - 1, 1024); // L: 177
this.setFlag(var1 - 1, var2, 4096); // L: 178
}
}
}
}
} // L: 182
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -227,7 +227,7 @@ public class CollisionMap {
)
@Export("addGameObject")
public void addGameObject(int var1, int var2, int var3, int var4, boolean var5) {
int var6 = 256;
int var6 = 256; // L: 185
if (var5) {
var6 += 131072;
}
@@ -237,7 +237,7 @@ public class CollisionMap {
for (int var7 = var1; var7 < var3 + var1; ++var7) {
if (var7 >= 0 && var7 < this.xSize) {
for (int var8 = var2; var8 < var2 + var4; ++var8) {
for (int var8 = var2; var8 < var2 + var4; ++var8) { // L: 191
if (var8 >= 0 && var8 < this.ySize) {
this.setFlag(var7, var8, var6);
}
@@ -245,7 +245,7 @@ public class CollisionMap {
}
}
}
} // L: 196
@ObfuscatedName("w")
@ObfuscatedSignature(
@@ -254,11 +254,11 @@ public class CollisionMap {
)
@Export("setBlockedByFloor")
public void setBlockedByFloor(int var1, int var2) {
var1 -= this.xInset;
var2 -= this.yInset;
int[] var10000 = this.flags[var1];
var1 -= this.xInset; // L: 199
var2 -= this.yInset; // L: 200
int[] var10000 = this.flags[var1]; // L: 201
var10000[var2] |= 2097152;
}
} // L: 202
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -267,11 +267,11 @@ public class CollisionMap {
)
@Export("setBlockedByFloorDec")
public void setBlockedByFloorDec(int var1, int var2) {
var1 -= this.xInset;
var2 -= this.yInset;
int[] var10000 = this.flags[var1];
var1 -= this.xInset; // L: 205
var2 -= this.yInset; // L: 206
int[] var10000 = this.flags[var1]; // L: 207
var10000[var2] |= 262144;
}
} // L: 208
@ObfuscatedName("j")
@ObfuscatedSignature(
@@ -280,9 +280,9 @@ public class CollisionMap {
)
@Export("setFlag")
void setFlag(int var1, int var2, int var3) {
int[] var10000 = this.flags[var1];
int[] var10000 = this.flags[var1]; // L: 211
var10000[var2] |= var3;
}
} // L: 212
@ObfuscatedName("n")
@ObfuscatedSignature(
@@ -290,151 +290,151 @@ public class CollisionMap {
garbageValue = "1790847002"
)
public void method3616(int var1, int var2, int var3, int var4, boolean var5) {
var1 -= this.xInset;
var2 -= this.yInset;
if (var3 == 0) {
if (var4 == 0) {
this.setFlagOff(var1, var2, 128);
this.setFlagOff(var1 - 1, var2, 8);
var1 -= this.xInset; // L: 215
var2 -= this.yInset; // L: 216
if (var3 == 0) { // L: 217
if (var4 == 0) { // L: 218
this.setFlagOff(var1, var2, 128); // L: 219
this.setFlagOff(var1 - 1, var2, 8); // L: 220
}
if (var4 == 1) {
this.setFlagOff(var1, var2, 2);
this.setFlagOff(var1, var2 + 1, 32);
if (var4 == 1) { // L: 222
this.setFlagOff(var1, var2, 2); // L: 223
this.setFlagOff(var1, var2 + 1, 32); // L: 224
}
if (var4 == 2) {
this.setFlagOff(var1, var2, 8);
this.setFlagOff(var1 + 1, var2, 128);
if (var4 == 2) { // L: 226
this.setFlagOff(var1, var2, 8); // L: 227
this.setFlagOff(var1 + 1, var2, 128); // L: 228
}
if (var4 == 3) {
this.setFlagOff(var1, var2, 32);
this.setFlagOff(var1, var2 - 1, 2);
if (var4 == 3) { // L: 230
this.setFlagOff(var1, var2, 32); // L: 231
this.setFlagOff(var1, var2 - 1, 2); // L: 232
}
}
if (var3 == 1 || var3 == 3) {
if (var4 == 0) {
this.setFlagOff(var1, var2, 1);
this.setFlagOff(var1 - 1, var2 + 1, 16);
if (var3 == 1 || var3 == 3) { // L: 235
if (var4 == 0) { // L: 236
this.setFlagOff(var1, var2, 1); // L: 237
this.setFlagOff(var1 - 1, var2 + 1, 16); // L: 238
}
if (var4 == 1) {
this.setFlagOff(var1, var2, 4);
this.setFlagOff(var1 + 1, var2 + 1, 64);
if (var4 == 1) { // L: 240
this.setFlagOff(var1, var2, 4); // L: 241
this.setFlagOff(var1 + 1, var2 + 1, 64); // L: 242
}
if (var4 == 2) {
this.setFlagOff(var1, var2, 16);
this.setFlagOff(var1 + 1, var2 - 1, 1);
if (var4 == 2) { // L: 244
this.setFlagOff(var1, var2, 16); // L: 245
this.setFlagOff(var1 + 1, var2 - 1, 1); // L: 246
}
if (var4 == 3) {
this.setFlagOff(var1, var2, 64);
this.setFlagOff(var1 - 1, var2 - 1, 4);
if (var4 == 3) { // L: 248
this.setFlagOff(var1, var2, 64); // L: 249
this.setFlagOff(var1 - 1, var2 - 1, 4); // L: 250
}
}
if (var3 == 2) {
if (var4 == 0) {
this.setFlagOff(var1, var2, 130);
this.setFlagOff(var1 - 1, var2, 8);
this.setFlagOff(var1, var2 + 1, 32);
if (var3 == 2) { // L: 253
if (var4 == 0) { // L: 254
this.setFlagOff(var1, var2, 130); // L: 255
this.setFlagOff(var1 - 1, var2, 8); // L: 256
this.setFlagOff(var1, var2 + 1, 32); // L: 257
}
if (var4 == 1) {
this.setFlagOff(var1, var2, 10);
this.setFlagOff(var1, var2 + 1, 32);
this.setFlagOff(var1 + 1, var2, 128);
if (var4 == 1) { // L: 259
this.setFlagOff(var1, var2, 10); // L: 260
this.setFlagOff(var1, var2 + 1, 32); // L: 261
this.setFlagOff(var1 + 1, var2, 128); // L: 262
}
if (var4 == 2) {
this.setFlagOff(var1, var2, 40);
this.setFlagOff(var1 + 1, var2, 128);
this.setFlagOff(var1, var2 - 1, 2);
if (var4 == 2) { // L: 264
this.setFlagOff(var1, var2, 40); // L: 265
this.setFlagOff(var1 + 1, var2, 128); // L: 266
this.setFlagOff(var1, var2 - 1, 2); // L: 267
}
if (var4 == 3) {
this.setFlagOff(var1, var2, 160);
this.setFlagOff(var1, var2 - 1, 2);
this.setFlagOff(var1 - 1, var2, 8);
if (var4 == 3) { // L: 269
this.setFlagOff(var1, var2, 160); // L: 270
this.setFlagOff(var1, var2 - 1, 2); // L: 271
this.setFlagOff(var1 - 1, var2, 8); // L: 272
}
}
if (var5) {
if (var3 == 0) {
if (var4 == 0) {
this.setFlagOff(var1, var2, 65536);
this.setFlagOff(var1 - 1, var2, 4096);
if (var5) { // L: 275
if (var3 == 0) { // L: 276
if (var4 == 0) { // L: 277
this.setFlagOff(var1, var2, 65536); // L: 278
this.setFlagOff(var1 - 1, var2, 4096); // L: 279
}
if (var4 == 1) {
this.setFlagOff(var1, var2, 1024);
this.setFlagOff(var1, var2 + 1, 16384);
if (var4 == 1) { // L: 281
this.setFlagOff(var1, var2, 1024); // L: 282
this.setFlagOff(var1, var2 + 1, 16384); // L: 283
}
if (var4 == 2) {
this.setFlagOff(var1, var2, 4096);
this.setFlagOff(var1 + 1, var2, 65536);
if (var4 == 2) { // L: 285
this.setFlagOff(var1, var2, 4096); // L: 286
this.setFlagOff(var1 + 1, var2, 65536); // L: 287
}
if (var4 == 3) {
this.setFlagOff(var1, var2, 16384);
this.setFlagOff(var1, var2 - 1, 1024);
if (var4 == 3) { // L: 289
this.setFlagOff(var1, var2, 16384); // L: 290
this.setFlagOff(var1, var2 - 1, 1024); // L: 291
}
}
if (var3 == 1 || var3 == 3) {
if (var4 == 0) {
this.setFlagOff(var1, var2, 512);
this.setFlagOff(var1 - 1, var2 + 1, 8192);
if (var3 == 1 || var3 == 3) { // L: 294
if (var4 == 0) { // L: 295
this.setFlagOff(var1, var2, 512); // L: 296
this.setFlagOff(var1 - 1, var2 + 1, 8192); // L: 297
}
if (var4 == 1) {
this.setFlagOff(var1, var2, 2048);
this.setFlagOff(var1 + 1, var2 + 1, 32768);
if (var4 == 1) { // L: 299
this.setFlagOff(var1, var2, 2048); // L: 300
this.setFlagOff(var1 + 1, var2 + 1, 32768); // L: 301
}
if (var4 == 2) {
this.setFlagOff(var1, var2, 8192);
this.setFlagOff(var1 + 1, var2 - 1, 512);
if (var4 == 2) { // L: 303
this.setFlagOff(var1, var2, 8192); // L: 304
this.setFlagOff(var1 + 1, var2 - 1, 512); // L: 305
}
if (var4 == 3) {
this.setFlagOff(var1, var2, 32768);
this.setFlagOff(var1 - 1, var2 - 1, 2048);
if (var4 == 3) { // L: 307
this.setFlagOff(var1, var2, 32768); // L: 308
this.setFlagOff(var1 - 1, var2 - 1, 2048); // L: 309
}
}
if (var3 == 2) {
if (var4 == 0) {
this.setFlagOff(var1, var2, 66560);
this.setFlagOff(var1 - 1, var2, 4096);
this.setFlagOff(var1, var2 + 1, 16384);
if (var3 == 2) { // L: 312
if (var4 == 0) { // L: 313
this.setFlagOff(var1, var2, 66560); // L: 314
this.setFlagOff(var1 - 1, var2, 4096); // L: 315
this.setFlagOff(var1, var2 + 1, 16384); // L: 316
}
if (var4 == 1) {
this.setFlagOff(var1, var2, 5120);
this.setFlagOff(var1, var2 + 1, 16384);
this.setFlagOff(var1 + 1, var2, 65536);
if (var4 == 1) { // L: 318
this.setFlagOff(var1, var2, 5120); // L: 319
this.setFlagOff(var1, var2 + 1, 16384); // L: 320
this.setFlagOff(var1 + 1, var2, 65536); // L: 321
}
if (var4 == 2) {
this.setFlagOff(var1, var2, 20480);
this.setFlagOff(var1 + 1, var2, 65536);
this.setFlagOff(var1, var2 - 1, 1024);
if (var4 == 2) { // L: 323
this.setFlagOff(var1, var2, 20480); // L: 324
this.setFlagOff(var1 + 1, var2, 65536); // L: 325
this.setFlagOff(var1, var2 - 1, 1024); // L: 326
}
if (var4 == 3) {
this.setFlagOff(var1, var2, 81920);
this.setFlagOff(var1, var2 - 1, 1024);
this.setFlagOff(var1 - 1, var2, 4096);
if (var4 == 3) { // L: 328
this.setFlagOff(var1, var2, 81920); // L: 329
this.setFlagOff(var1, var2 - 1, 1024); // L: 330
this.setFlagOff(var1 - 1, var2, 4096); // L: 331
}
}
}
}
} // L: 335
@ObfuscatedName("p")
@ObfuscatedSignature(
@@ -443,31 +443,31 @@ public class CollisionMap {
)
@Export("setFlagOffNonSquare")
public void setFlagOffNonSquare(int var1, int var2, int var3, int var4, int var5, boolean var6) {
int var7 = 256;
if (var6) {
int var7 = 256; // L: 338
if (var6) { // L: 339
var7 += 131072;
}
var1 -= this.xInset;
var2 -= this.yInset;
var1 -= this.xInset; // L: 340
var2 -= this.yInset; // L: 341
int var8;
if (var5 == 1 || var5 == 3) {
var8 = var3;
var3 = var4;
var4 = var8;
if (var5 == 1 || var5 == 3) { // L: 342
var8 = var3; // L: 343
var3 = var4; // L: 344
var4 = var8; // L: 345
}
for (var8 = var1; var8 < var3 + var1; ++var8) {
if (var8 >= 0 && var8 < this.xSize) {
for (int var9 = var2; var9 < var2 + var4; ++var9) {
for (var8 = var1; var8 < var3 + var1; ++var8) { // L: 347
if (var8 >= 0 && var8 < this.xSize) { // L: 348
for (int var9 = var2; var9 < var2 + var4; ++var9) { // L: 349
if (var9 >= 0 && var9 < this.ySize) {
this.setFlagOff(var8, var9, var7);
this.setFlagOff(var8, var9, var7); // L: 350
}
}
}
}
}
} // L: 354
@ObfuscatedName("l")
@ObfuscatedSignature(
@@ -476,9 +476,9 @@ public class CollisionMap {
)
@Export("setFlagOff")
void setFlagOff(int var1, int var2, int var3) {
int[] var10000 = this.flags[var1];
int[] var10000 = this.flags[var1]; // L: 357
var10000[var2] &= ~var3;
}
} // L: 358
@ObfuscatedName("z")
@ObfuscatedSignature(
@@ -486,11 +486,11 @@ public class CollisionMap {
garbageValue = "22"
)
public void method3619(int var1, int var2) {
var1 -= this.xInset;
var2 -= this.yInset;
int[] var10000 = this.flags[var1];
var1 -= this.xInset; // L: 361
var2 -= this.yInset; // L: 362
int[] var10000 = this.flags[var1]; // L: 363
var10000[var2] &= -262145;
}
} // L: 364
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -499,16 +499,16 @@ public class CollisionMap {
)
@Export("getWidget")
public static Widget getWidget(int var0) {
int var1 = var0 >> 16;
int var2 = var0 & 65535;
if (class9.Widget_interfaceComponents[var1] == null || class9.Widget_interfaceComponents[var1][var2] == null) {
boolean var3 = class41.loadInterface(var1);
if (!var3) {
int var1 = var0 >> 16; // L: 186
int var2 = var0 & 65535; // L: 187
if (class9.Widget_interfaceComponents[var1] == null || class9.Widget_interfaceComponents[var1][var2] == null) { // L: 188
boolean var3 = class41.loadInterface(var1); // L: 189
if (!var3) { // L: 190
return null;
}
}
return class9.Widget_interfaceComponents[var1][var2];
return class9.Widget_interfaceComponents[var1][var2]; // L: 192
}
@ObfuscatedName("kn")
@@ -518,9 +518,9 @@ public class CollisionMap {
)
@Export("invalidateWidget")
static void invalidateWidget(Widget var0) {
if (var0.cycle == Client.field852) {
Client.field901[var0.rootIndex] = true;
if (var0.cycle == Client.field852) { // L: 10525
Client.field901[var0.rootIndex] = true; // L: 10526
}
}
} // L: 10528
}

View File

@@ -30,24 +30,24 @@ public class Coord {
descriptor = "(Lhs;)V"
)
public Coord(Coord var1) {
this.plane = var1.plane;
this.x = var1.x;
this.y = var1.y;
}
this.plane = var1.plane; // L: 15
this.x = var1.x; // L: 16
this.y = var1.y; // L: 17
} // L: 18
public Coord(int var1, int var2, int var3) {
this.plane = var1;
this.x = var2;
this.y = var3;
}
this.plane = var1; // L: 9
this.x = var2; // L: 10
this.y = var3; // L: 11
} // L: 12
public Coord(int var1) {
if (var1 == -1) {
if (var1 == -1) { // L: 21
this.plane = -1;
} else {
this.plane = var1 >> 28 & 3;
this.x = var1 >> 14 & 16383;
this.y = var1 & 16383;
this.plane = var1 >> 28 & 3; // L: 23
this.x = var1 >> 14 & 16383; // L: 24
this.y = var1 & 16383; // L: 25
}
}
@@ -59,7 +59,7 @@ public class Coord {
)
@Export("packed")
public int packed() {
return this.plane << 28 | this.x << 14 | this.y;
return this.plane << 28 | this.x << 14 | this.y; // L: 30
}
@ObfuscatedName("v")
@@ -85,23 +85,23 @@ public class Coord {
)
@Export("toString")
String toString(String var1) {
return this.plane + var1 + (this.x >> 6) + var1 + (this.y >> 6) + var1 + (this.x & 63) + var1 + (this.y & 63);
return this.plane + var1 + (this.x >> 6) + var1 + (this.y >> 6) + var1 + (this.x & 63) + var1 + (this.y & 63); // L: 55
}
public boolean equals(Object var1) {
if (this == var1) {
return true;
} else {
return !(var1 instanceof Coord) ? false : this.equalsCoord((Coord)var1);
return !(var1 instanceof Coord) ? false : this.equalsCoord((Coord)var1); // L: 36
}
}
public int hashCode() {
return this.packed();
return this.packed(); // L: 47
}
public String toString() {
return this.toString(",");
return this.toString(","); // L: 51
}
@ObfuscatedName("h")
@@ -111,25 +111,25 @@ public class Coord {
)
@Export("getVarbit")
public static int getVarbit(int var0) {
VarbitDefinition var2 = (VarbitDefinition)VarbitDefinition.VarbitDefinition_cached.get((long)var0);
VarbitDefinition var2 = (VarbitDefinition)VarbitDefinition.VarbitDefinition_cached.get((long)var0); // L: 26
VarbitDefinition var1;
if (var2 != null) {
var1 = var2;
if (var2 != null) { // L: 27
var1 = var2; // L: 28
} else {
byte[] var3 = VarbitDefinition.VarbitDefinition_archive.takeFile(14, var0);
var2 = new VarbitDefinition();
if (var3 != null) {
byte[] var3 = VarbitDefinition.VarbitDefinition_archive.takeFile(14, var0); // L: 31
var2 = new VarbitDefinition(); // L: 32
if (var3 != null) { // L: 33
var2.decode(new Buffer(var3));
}
VarbitDefinition.VarbitDefinition_cached.put(var2, (long)var0);
var1 = var2;
VarbitDefinition.VarbitDefinition_cached.put(var2, (long)var0); // L: 34
var1 = var2; // L: 35
}
int var7 = var1.baseVar;
int var4 = var1.startBit;
int var5 = var1.endBit;
int var6 = Varps.Varps_masks[var5 - var4];
return Varps.Varps_main[var7] >> var4 & var6;
int var7 = var1.baseVar; // L: 38
int var4 = var1.startBit; // L: 39
int var5 = var1.endBit; // L: 40
int var6 = Varps.Varps_masks[var5 - var4]; // L: 41
return Varps.Varps_main[var7] >> var4 & var6; // L: 42
}
}

View File

@@ -30,53 +30,53 @@ public class Decimator {
int[][] table;
public Decimator(int var1, int var2) {
if (var2 != var1) {
int var4 = var1;
if (var2 != var1) { // L: 14
int var4 = var1; // L: 16
int var5 = var2;
if (var2 > var1) {
var4 = var2;
var5 = var1;
if (var2 > var1) { // L: 19
var4 = var2; // L: 21
var5 = var1; // L: 22
}
while (var5 != 0) {
int var6 = var4 % var5;
var4 = var5;
var5 = var6;
while (var5 != 0) { // L: 24
int var6 = var4 % var5; // L: 25
var4 = var5; // L: 26
var5 = var6; // L: 27
}
var1 /= var4;
var2 /= var4;
this.inputRate = var1;
this.outputRate = var2;
this.table = new int[var1][14];
var1 /= var4; // L: 32
var2 /= var4; // L: 33
this.inputRate = var1; // L: 34
this.outputRate = var2; // L: 35
this.table = new int[var1][14]; // L: 36
for (int var7 = 0; var7 < var1; ++var7) {
int[] var8 = this.table[var7];
double var9 = 6.0D + (double)var7 / (double)var1;
int var11 = (int)Math.floor(1.0D + (var9 - 7.0D));
if (var11 < 0) {
for (int var7 = 0; var7 < var1; ++var7) { // L: 37
int[] var8 = this.table[var7]; // L: 38
double var9 = 6.0D + (double)var7 / (double)var1; // L: 39
int var11 = (int)Math.floor(1.0D + (var9 - 7.0D)); // L: 40
if (var11 < 0) { // L: 41
var11 = 0;
}
int var12 = (int)Math.ceil(7.0D + var9);
if (var12 > 14) {
int var12 = (int)Math.ceil(7.0D + var9); // L: 42
if (var12 > 14) { // L: 43
var12 = 14;
}
for (double var13 = (double)var2 / (double)var1; var11 < var12; ++var11) {
double var15 = 3.141592653589793D * ((double)var11 - var9);
double var17 = var13;
if (var15 < -1.0E-4D || var15 > 1.0E-4D) {
for (double var13 = (double)var2 / (double)var1; var11 < var12; ++var11) { // L: 44 45
double var15 = 3.141592653589793D * ((double)var11 - var9); // L: 46
double var17 = var13; // L: 47
if (var15 < -1.0E-4D || var15 > 1.0E-4D) { // L: 48
var17 = var13 * (Math.sin(var15) / var15);
}
var17 *= 0.54D + 0.46D * Math.cos(((double)var11 - var9) * 0.2243994752564138D);
var8[var11] = (int)Math.floor(var17 * 65536.0D + 0.5D);
var17 *= 0.54D + 0.46D * Math.cos(((double)var11 - var9) * 0.2243994752564138D); // L: 49
var8[var11] = (int)Math.floor(var17 * 65536.0D + 0.5D); // L: 50
}
}
}
}
} // L: 53
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -85,43 +85,43 @@ public class Decimator {
)
@Export("resample")
byte[] resample(byte[] var1) {
if (this.table != null) {
int var2 = (int)((long)var1.length * (long)this.outputRate / (long)this.inputRate) + 14;
int[] var3 = new int[var2];
int var4 = 0;
int var5 = 0;
if (this.table != null) { // L: 56
int var2 = (int)((long)var1.length * (long)this.outputRate / (long)this.inputRate) + 14; // L: 57
int[] var3 = new int[var2]; // L: 58
int var4 = 0; // L: 59
int var5 = 0; // L: 60
int var6;
for (var6 = 0; var6 < var1.length; ++var6) {
byte var7 = var1[var6];
int[] var8 = this.table[var5];
for (var6 = 0; var6 < var1.length; ++var6) { // L: 61
byte var7 = var1[var6]; // L: 62
int[] var8 = this.table[var5]; // L: 63
int var9;
for (var9 = 0; var9 < 14; ++var9) {
for (var9 = 0; var9 < 14; ++var9) { // L: 64
var3[var4 + var9] += var8[var9] * var7;
}
var5 += this.outputRate;
var9 = var5 / this.inputRate;
var4 += var9;
var5 -= var9 * this.inputRate;
var5 += this.outputRate; // L: 65
var9 = var5 / this.inputRate; // L: 66
var4 += var9; // L: 67
var5 -= var9 * this.inputRate; // L: 68
}
var1 = new byte[var2];
var1 = new byte[var2]; // L: 70
for (var6 = 0; var6 < var2; ++var6) {
int var10 = var3[var6] + 32768 >> 16;
if (var10 < -128) {
for (var6 = 0; var6 < var2; ++var6) { // L: 71
int var10 = var3[var6] + 32768 >> 16; // L: 72
if (var10 < -128) { // L: 73
var1[var6] = -128;
} else if (var10 > 127) {
} else if (var10 > 127) { // L: 74
var1[var6] = 127;
} else {
var1[var6] = (byte)var10;
var1[var6] = (byte)var10; // L: 75
}
}
}
return var1;
return var1; // L: 78
}
@ObfuscatedName("v")
@@ -131,11 +131,11 @@ public class Decimator {
)
@Export("scaleRate")
int scaleRate(int var1) {
if (this.table != null) {
if (this.table != null) { // L: 82
var1 = (int)((long)this.outputRate * (long)var1 / (long)this.inputRate);
}
return var1;
return var1; // L: 83
}
@ObfuscatedName("x")
@@ -145,11 +145,11 @@ public class Decimator {
)
@Export("scalePosition")
int scalePosition(int var1) {
if (this.table != null) {
if (this.table != null) { // L: 87
var1 = (int)((long)var1 * (long)this.outputRate / (long)this.inputRate) + 6;
}
return var1;
return var1; // L: 88
}
@ObfuscatedName("x")
@@ -158,6 +158,6 @@ public class Decimator {
garbageValue = "319524550"
)
public static boolean method2598(int var0) {
return (var0 >> 21 & 1) != 0;
return (var0 >> 21 & 1) != 0; // L: 17
}
}

View File

@@ -20,12 +20,12 @@ public class DefaultsGroup {
final int group;
static {
field3839 = new DefaultsGroup(3);
field3839 = new DefaultsGroup(3); // L: 4
}
DefaultsGroup(int var1) {
this.group = var1;
}
this.group = var1; // L: 8
} // L: 9
@ObfuscatedName("fd")
@ObfuscatedSignature(
@@ -33,42 +33,42 @@ public class DefaultsGroup {
garbageValue = "19331"
)
static void method5939() {
Client.packetWriter.clearBuffer();
Client.packetWriter.packetBuffer.offset = 0;
Client.packetWriter.serverPacket = null;
Client.packetWriter.field1335 = null;
Client.packetWriter.field1336 = null;
Client.packetWriter.field1337 = null;
Client.packetWriter.serverPacketLength = 0;
Client.packetWriter.field1333 = 0;
Client.rebootTimer = 0;
Client.menuOptionsCount = 0;
Client.isMenuOpen = false;
Client.minimapState = 0;
Client.destinationX = 0;
Client.packetWriter.clearBuffer(); // L: 2758
Client.packetWriter.packetBuffer.offset = 0; // L: 2759
Client.packetWriter.serverPacket = null; // L: 2760
Client.packetWriter.field1335 = null; // L: 2761
Client.packetWriter.field1336 = null; // L: 2762
Client.packetWriter.field1337 = null; // L: 2763
Client.packetWriter.serverPacketLength = 0; // L: 2764
Client.packetWriter.field1333 = 0; // L: 2765
Client.rebootTimer = 0; // L: 2766
Client.menuOptionsCount = 0; // L: 2768
Client.isMenuOpen = false; // L: 2769
Client.minimapState = 0; // L: 2771
Client.destinationX = 0; // L: 2772
int var0;
for (var0 = 0; var0 < 2048; ++var0) {
for (var0 = 0; var0 < 2048; ++var0) { // L: 2773
Client.players[var0] = null;
}
PlayerAppearance.localPlayer = null;
PlayerAppearance.localPlayer = null; // L: 2774
for (var0 = 0; var0 < Client.npcs.length; ++var0) {
NPC var1 = Client.npcs[var0];
if (var1 != null) {
var1.targetIndex = -1;
var1.false0 = false;
for (var0 = 0; var0 < Client.npcs.length; ++var0) { // L: 2775
NPC var1 = Client.npcs[var0]; // L: 2776
if (var1 != null) { // L: 2777
var1.targetIndex = -1; // L: 2778
var1.false0 = false; // L: 2779
}
}
ItemContainer.itemContainers = new NodeHashTable(32);
WorldMapCacheName.updateGameState(30);
ItemContainer.itemContainers = new NodeHashTable(32); // L: 2783
WorldMapCacheName.updateGameState(30); // L: 2785
for (var0 = 0; var0 < 100; ++var0) {
for (var0 = 0; var0 < 100; ++var0) { // L: 2786
Client.field901[var0] = true;
}
MouseRecorder.method1264();
}
MouseRecorder.method1264(); // L: 2787
} // L: 2788
}

View File

@@ -31,44 +31,44 @@ public final class DemotingHashTable {
class155 field1984;
public DemotingHashTable(int var1, int var2) {
this.queue = new IterableDualNodeQueue();
this.capacity = var1;
this.remaining = var1;
this.queue = new IterableDualNodeQueue(); // L: 11
this.capacity = var1; // L: 15
this.remaining = var1; // L: 16
int var3;
for (var3 = 1; var3 + var3 < var1 && var3 < var2; var3 += var3) {
for (var3 = 1; var3 + var3 < var1 && var3 < var2; var3 += var3) { // L: 17 18
}
this.hashTable = new IterableNodeHashTable(var3);
}
this.hashTable = new IterableNodeHashTable(var3); // L: 19
} // L: 20
@ObfuscatedName("h")
@Export("get")
public Object get(long var1) {
Wrapper var3 = (Wrapper)this.hashTable.get(var1);
if (var3 == null) {
Wrapper var3 = (Wrapper)this.hashTable.get(var1); // L: 23
if (var3 == null) { // L: 24
return null;
} else {
Object var4 = var3.get();
if (var4 == null) {
var3.remove();
var3.removeDual();
this.remaining += var3.size;
return null;
Object var4 = var3.get(); // L: 25
if (var4 == null) { // L: 26
var3.remove(); // L: 27
var3.removeDual(); // L: 28
this.remaining += var3.size; // L: 29
return null; // L: 30
} else {
if (var3.isSoft()) {
DirectWrapper var5 = new DirectWrapper(var4, var3.size);
this.hashTable.put(var5, var3.key);
this.queue.add(var5);
var5.keyDual = 0L;
var3.remove();
var3.removeDual();
if (var3.isSoft()) { // L: 32
DirectWrapper var5 = new DirectWrapper(var4, var3.size); // L: 33
this.hashTable.put(var5, var3.key); // L: 34
this.queue.add(var5); // L: 35
var5.keyDual = 0L; // L: 36
var3.remove(); // L: 37
var3.removeDual(); // L: 38
} else {
this.queue.add(var3);
var3.keyDual = 0L;
this.queue.add(var3); // L: 41
var3.keyDual = 0L; // L: 42
}
return var4;
return var4; // L: 44
}
}
}
@@ -76,9 +76,9 @@ public final class DemotingHashTable {
@ObfuscatedName("v")
@Export("remove")
void remove(long var1) {
Wrapper var3 = (Wrapper)this.hashTable.get(var1);
this.removeWrapper(var3);
}
Wrapper var3 = (Wrapper)this.hashTable.get(var1); // L: 48
this.removeWrapper(var3); // L: 49
} // L: 50
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -86,71 +86,71 @@ public final class DemotingHashTable {
)
@Export("removeWrapper")
void removeWrapper(Wrapper var1) {
if (var1 != null) {
var1.remove();
var1.removeDual();
this.remaining += var1.size;
if (var1 != null) { // L: 53
var1.remove(); // L: 54
var1.removeDual(); // L: 55
this.remaining += var1.size; // L: 56
}
}
} // L: 58
@ObfuscatedName("w")
@Export("put")
public void put(Object var1, long var2, int var4) {
if (var4 > this.capacity) {
if (var4 > this.capacity) { // L: 61
throw new IllegalStateException();
} else {
this.remove(var2);
this.remaining -= var4;
this.remove(var2); // L: 62
this.remaining -= var4; // L: 63
while (this.remaining < 0) {
Wrapper var5 = (Wrapper)this.queue.removeLast();
if (var5 == null) {
throw new RuntimeException("");
while (this.remaining < 0) { // L: 64
Wrapper var5 = (Wrapper)this.queue.removeLast(); // L: 65
if (var5 == null) { // L: 66
throw new RuntimeException(""); // L: 67
}
if (!var5.isSoft()) {
if (!var5.isSoft()) { // L: 69
}
this.removeWrapper(var5);
if (this.field1984 != null) {
this.field1984.method3411(var5.get());
this.removeWrapper(var5); // L: 70
if (this.field1984 != null) { // L: 71
this.field1984.method3411(var5.get()); // L: 72
}
}
DirectWrapper var6 = new DirectWrapper(var1, var4);
this.hashTable.put(var6, var2);
this.queue.add(var6);
var6.keyDual = 0L;
DirectWrapper var6 = new DirectWrapper(var1, var4); // L: 75
this.hashTable.put(var6, var2); // L: 76
this.queue.add(var6); // L: 77
var6.keyDual = 0L; // L: 78
}
}
} // L: 79
@ObfuscatedName("t")
@Export("demote")
public void demote(int var1) {
for (Wrapper var2 = (Wrapper)this.queue.last(); var2 != null; var2 = (Wrapper)this.queue.previous()) {
if (var2.isSoft()) {
if (var2.get() == null) {
var2.remove();
var2.removeDual();
this.remaining += var2.size;
for (Wrapper var2 = (Wrapper)this.queue.last(); var2 != null; var2 = (Wrapper)this.queue.previous()) { // L: 82
if (var2.isSoft()) { // L: 83
if (var2.get() == null) { // L: 84
var2.remove(); // L: 85
var2.removeDual(); // L: 86
this.remaining += var2.size; // L: 87
}
} else if (++var2.keyDual > (long)var1) {
SoftWrapper var3 = new SoftWrapper(var2.get(), var2.size);
this.hashTable.put(var3, var2.key);
IterableDualNodeQueue.DualNodeDeque_addBefore(var3, var2);
var2.remove();
var2.removeDual();
} else if (++var2.keyDual > (long)var1) { // L: 92
SoftWrapper var3 = new SoftWrapper(var2.get(), var2.size); // L: 93
this.hashTable.put(var3, var2.key); // L: 94
IterableDualNodeQueue.DualNodeDeque_addBefore(var3, var2); // L: 95
var2.remove(); // L: 96
var2.removeDual(); // L: 97
}
}
}
} // L: 101
@ObfuscatedName("j")
@Export("clear")
public void clear() {
this.queue.clear();
this.hashTable.clear();
this.remaining = this.capacity;
}
this.queue.clear(); // L: 104
this.hashTable.clear(); // L: 105
this.remaining = this.capacity; // L: 106
} // L: 107
}

View File

@@ -31,126 +31,126 @@ public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
@Export("get")
public PlatformInfo get() {
byte var1;
if (ObjectSound.field1077.startsWith("win")) {
if (ObjectSound.field1077.startsWith("win")) { // L: 15
var1 = 1;
} else if (ObjectSound.field1077.startsWith("mac")) {
} else if (ObjectSound.field1077.startsWith("mac")) { // L: 16
var1 = 2;
} else if (ObjectSound.field1077.startsWith("linux")) {
} else if (ObjectSound.field1077.startsWith("linux")) { // L: 17
var1 = 3;
} else {
var1 = 4;
var1 = 4; // L: 18
}
String var2;
try {
var2 = System.getProperty("os.arch").toLowerCase();
} catch (Exception var27) {
var2 = "";
var2 = System.getProperty("os.arch").toLowerCase(); // L: 22
} catch (Exception var27) { // L: 24
var2 = ""; // L: 25
}
String var3;
try {
var3 = System.getProperty("os.version").toLowerCase();
} catch (Exception var26) {
var3 = "";
var3 = System.getProperty("os.version").toLowerCase(); // L: 28
} catch (Exception var26) { // L: 30
var3 = ""; // L: 31
}
String var4 = "Unknown";
String var5 = "1.1";
String var4 = "Unknown"; // L: 33
String var5 = "1.1"; // L: 34
try {
var4 = System.getProperty("java.vendor");
var5 = System.getProperty("java.version");
} catch (Exception var25) {
var4 = System.getProperty("java.vendor"); // L: 36
var5 = System.getProperty("java.version"); // L: 37
} catch (Exception var25) { // L: 39
}
boolean var24;
if (!var2.startsWith("amd64") && !var2.startsWith("x86_64")) {
var24 = false;
if (!var2.startsWith("amd64") && !var2.startsWith("x86_64")) { // L: 41
var24 = false; // L: 42
} else {
var24 = true;
}
byte var7 = 0;
if (var1 == 1) {
if (var3.indexOf("4.0") != -1) {
byte var7 = 0; // L: 43
if (var1 == 1) { // L: 44
if (var3.indexOf("4.0") != -1) { // L: 45
var7 = 1;
} else if (var3.indexOf("4.1") != -1) {
} else if (var3.indexOf("4.1") != -1) { // L: 46
var7 = 2;
} else if (var3.indexOf("4.9") != -1) {
} else if (var3.indexOf("4.9") != -1) { // L: 47
var7 = 3;
} else if (var3.indexOf("5.0") != -1) {
} else if (var3.indexOf("5.0") != -1) { // L: 48
var7 = 4;
} else if (var3.indexOf("5.1") != -1) {
} else if (var3.indexOf("5.1") != -1) { // L: 49
var7 = 5;
} else if (var3.indexOf("5.2") != -1) {
} else if (var3.indexOf("5.2") != -1) { // L: 50
var7 = 8;
} else if (var3.indexOf("6.0") != -1) {
} else if (var3.indexOf("6.0") != -1) { // L: 51
var7 = 6;
} else if (var3.indexOf("6.1") != -1) {
} else if (var3.indexOf("6.1") != -1) { // L: 52
var7 = 7;
} else if (var3.indexOf("6.2") != -1) {
} else if (var3.indexOf("6.2") != -1) { // L: 53
var7 = 9;
} else if (var3.indexOf("6.3") != -1) {
} else if (var3.indexOf("6.3") != -1) { // L: 54
var7 = 10;
} else if (var3.indexOf("10.0") != -1) {
} else if (var3.indexOf("10.0") != -1) { // L: 55
var7 = 11;
}
} else if (var1 == 2) {
if (var3.indexOf("10.4") != -1) {
} else if (var1 == 2) { // L: 57
if (var3.indexOf("10.4") != -1) { // L: 58
var7 = 20;
} else if (var3.indexOf("10.5") != -1) {
} else if (var3.indexOf("10.5") != -1) { // L: 59
var7 = 21;
} else if (var3.indexOf("10.6") != -1) {
} else if (var3.indexOf("10.6") != -1) { // L: 60
var7 = 22;
} else if (var3.indexOf("10.7") != -1) {
} else if (var3.indexOf("10.7") != -1) { // L: 61
var7 = 23;
} else if (var3.indexOf("10.8") != -1) {
} else if (var3.indexOf("10.8") != -1) { // L: 62
var7 = 24;
} else if (var3.indexOf("10.9") != -1) {
} else if (var3.indexOf("10.9") != -1) { // L: 63
var7 = 25;
} else if (var3.indexOf("10.10") != -1) {
} else if (var3.indexOf("10.10") != -1) { // L: 64
var7 = 26;
} else if (var3.indexOf("10.11") != -1) {
} else if (var3.indexOf("10.11") != -1) { // L: 65
var7 = 27;
} else if (var3.indexOf("10.12") != -1) {
} else if (var3.indexOf("10.12") != -1) { // L: 66
var7 = 28;
} else if (var3.indexOf("10.13") != -1) {
} else if (var3.indexOf("10.13") != -1) { // L: 67
var7 = 29;
}
}
byte var8;
if (var4.toLowerCase().indexOf("sun") != -1) {
if (var4.toLowerCase().indexOf("sun") != -1) { // L: 70
var8 = 1;
} else if (var4.toLowerCase().indexOf("microsoft") != -1) {
} else if (var4.toLowerCase().indexOf("microsoft") != -1) { // L: 71
var8 = 2;
} else if (var4.toLowerCase().indexOf("apple") != -1) {
} else if (var4.toLowerCase().indexOf("apple") != -1) { // L: 72
var8 = 3;
} else if (var4.toLowerCase().indexOf("oracle") != -1) {
} else if (var4.toLowerCase().indexOf("oracle") != -1) { // L: 73
var8 = 5;
} else {
var8 = 4;
var8 = 4; // L: 74
}
this.method6322(var5);
int var10 = (int)(Runtime.getRuntime().maxMemory() / 1048576L) + 1;
this.method6322(var5); // L: 75
int var10 = (int)(Runtime.getRuntime().maxMemory() / 1048576L) + 1; // L: 77
int var11;
if (this.field3941 > 3) {
if (this.field3941 > 3) { // L: 80
var11 = Runtime.getRuntime().availableProcessors();
} else {
var11 = 0;
var11 = 0; // L: 81
}
byte var12 = 0;
String var13 = "";
String var14 = "";
String var15 = "";
String var16 = "";
String var17 = "";
String var18 = "";
int[] var23 = new int[3];
return new PlatformInfo(var1, var24, var7, var8, this.field3941, this.field3942, this.field3943, false, var10, var11, var12, 0, var13, var14, var15, var16, 0, 0, 0, 0, var17, var18, var23, 0, "");
byte var12 = 0; // L: 82
String var13 = ""; // L: 83
String var14 = ""; // L: 84
String var15 = ""; // L: 85
String var16 = ""; // L: 86
String var17 = ""; // L: 87
String var18 = ""; // L: 88
int[] var23 = new int[3]; // L: 93
return new PlatformInfo(var1, var24, var7, var8, this.field3941, this.field3942, this.field3943, false, var10, var11, var12, 0, var13, var14, var15, var16, 0, 0, 0, 0, var17, var18, var23, 0, ""); // L: 97
}
@ObfuscatedName("v")
@@ -159,13 +159,13 @@ public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
garbageValue = "-54"
)
void method6322(String var1) {
if (var1.startsWith("1.")) {
this.method6321(var1);
if (var1.startsWith("1.")) { // L: 101
this.method6321(var1); // L: 102
} else {
this.method6331(var1);
this.method6331(var1); // L: 105
}
}
} // L: 107
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -173,17 +173,17 @@ public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
garbageValue = "-1601938226"
)
void method6321(String var1) {
String[] var2 = var1.split("\\.");
String[] var2 = var1.split("\\."); // L: 110
try {
this.field3941 = Integer.parseInt(var2[1]);
var2 = var2[2].split("_");
this.field3942 = Integer.parseInt(var2[0]);
this.field3943 = Integer.parseInt(var2[1]);
} catch (Exception var4) {
this.field3941 = Integer.parseInt(var2[1]); // L: 112
var2 = var2[2].split("_"); // L: 113
this.field3942 = Integer.parseInt(var2[0]); // L: 114
this.field3943 = Integer.parseInt(var2[1]); // L: 115
} catch (Exception var4) { // L: 117
}
}
} // L: 118
@ObfuscatedName("w")
@ObfuscatedSignature(
@@ -191,14 +191,14 @@ public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
garbageValue = "-13668"
)
void method6331(String var1) {
String[] var2 = var1.split("\\.");
String[] var2 = var1.split("\\."); // L: 121
try {
this.field3941 = Integer.parseInt(var2[0]);
this.field3942 = Integer.parseInt(var2[1]);
this.field3943 = Integer.parseInt(var2[2]);
} catch (Exception var4) {
this.field3941 = Integer.parseInt(var2[0]); // L: 123
this.field3942 = Integer.parseInt(var2[1]); // L: 124
this.field3943 = Integer.parseInt(var2[2]); // L: 125
} catch (Exception var4) { // L: 127
}
}
} // L: 128
}

View File

@@ -29,7 +29,7 @@ public class DevicePcmPlayer extends PcmPlayer {
byte[] byteSamples;
DevicePcmPlayer() {
}
} // L: 18
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -38,9 +38,9 @@ public class DevicePcmPlayer extends PcmPlayer {
)
@Export("init")
protected void init() {
this.format = new AudioFormat((float)PcmPlayer.field1443, 16, PcmPlayer.PcmPlayer_stereo ? 2 : 1, true, false);
this.byteSamples = new byte[256 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1)];
}
this.format = new AudioFormat((float)PcmPlayer.field1443, 16, PcmPlayer.PcmPlayer_stereo ? 2 : 1, true, false); // L: 21
this.byteSamples = new byte[256 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1)]; // L: 22
} // L: 23
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -50,26 +50,26 @@ public class DevicePcmPlayer extends PcmPlayer {
@Export("open")
protected void open(int var1) throws LineUnavailableException {
try {
Info var2 = new Info(SourceDataLine.class, this.format, var1 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1));
this.line = (SourceDataLine)AudioSystem.getLine(var2);
this.line.open();
this.line.start();
this.capacity2 = var1;
} catch (LineUnavailableException var5) {
int var4 = (var1 >>> 1 & 1431655765) + (var1 & 1431655765);
var4 = (var4 >>> 2 & 858993459) + (var4 & 858993459);
var4 = (var4 >>> 4) + var4 & 252645135;
var4 += var4 >>> 8;
var4 += var4 >>> 16;
int var3 = var4 & 255;
if (var3 != 1) {
this.open(World.method1870(var1));
Info var2 = new Info(SourceDataLine.class, this.format, var1 << (PcmPlayer.PcmPlayer_stereo ? 2 : 1)); // L: 27
this.line = (SourceDataLine)AudioSystem.getLine(var2); // L: 28
this.line.open(); // L: 29
this.line.start(); // L: 30
this.capacity2 = var1; // L: 31
} catch (LineUnavailableException var5) { // L: 33
int var4 = (var1 >>> 1 & 1431655765) + (var1 & 1431655765); // L: 37
var4 = (var4 >>> 2 & 858993459) + (var4 & 858993459); // L: 38
var4 = (var4 >>> 4) + var4 & 252645135; // L: 39
var4 += var4 >>> 8; // L: 40
var4 += var4 >>> 16; // L: 41
int var3 = var4 & 255; // L: 42
if (var3 != 1) { // L: 44
this.open(World.method1870(var1)); // L: 45
} else {
this.line = null;
throw var5;
this.line = null; // L: 48
throw var5; // L: 49
}
}
}
} // L: 46 51
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -78,29 +78,29 @@ public class DevicePcmPlayer extends PcmPlayer {
)
@Export("position")
protected int position() {
return this.capacity2 - (this.line.available() >> (PcmPlayer.PcmPlayer_stereo ? 2 : 1));
return this.capacity2 - (this.line.available() >> (PcmPlayer.PcmPlayer_stereo ? 2 : 1)); // L: 54
}
@ObfuscatedName("w")
@Export("write")
protected void write() {
int var1 = 256;
if (PcmPlayer.PcmPlayer_stereo) {
int var1 = 256; // L: 59
if (PcmPlayer.PcmPlayer_stereo) { // L: 60
var1 <<= 1;
}
for (int var2 = 0; var2 < var1; ++var2) {
int var3 = super.samples[var2];
if ((var3 + 8388608 & -16777216) != 0) {
var3 = 8388607 ^ var3 >> 31;
for (int var2 = 0; var2 < var1; ++var2) { // L: 61
int var3 = super.samples[var2]; // L: 62
if ((var3 + 8388608 & -16777216) != 0) { // L: 63
var3 = 8388607 ^ var3 >> 31; // L: 64
}
this.byteSamples[var2 * 2] = (byte)(var3 >> 8);
this.byteSamples[var2 * 2 + 1] = (byte)(var3 >> 16);
this.byteSamples[var2 * 2] = (byte)(var3 >> 8); // L: 66
this.byteSamples[var2 * 2 + 1] = (byte)(var3 >> 16); // L: 67
}
this.line.write(this.byteSamples, 0, var1 << 1);
}
this.line.write(this.byteSamples, 0, var1 << 1); // L: 69
} // L: 70
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -109,12 +109,12 @@ public class DevicePcmPlayer extends PcmPlayer {
)
@Export("close")
protected void close() {
if (this.line != null) {
this.line.close();
this.line = null;
if (this.line != null) { // L: 73
this.line.close(); // L: 74
this.line = null; // L: 75
}
}
} // L: 77
@ObfuscatedName("j")
@ObfuscatedSignature(
@@ -123,6 +123,6 @@ public class DevicePcmPlayer extends PcmPlayer {
)
@Export("discard")
protected void discard() {
this.line.flush();
}
this.line.flush(); // L: 80
} // L: 81
}

View File

@@ -7,7 +7,7 @@ import net.runelite.mapping.ObfuscatedSignature;
@Implements("DevicePcmPlayerProvider")
public class DevicePcmPlayerProvider implements PlayerProvider {
DevicePcmPlayerProvider() {
}
} // L: 7
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -16,7 +16,7 @@ public class DevicePcmPlayerProvider implements PlayerProvider {
)
@Export("player")
public PcmPlayer player() {
return new DevicePcmPlayer();
return new DevicePcmPlayer(); // L: 10
}
@ObfuscatedName("jt")
@@ -26,16 +26,16 @@ public class DevicePcmPlayerProvider implements PlayerProvider {
)
@Export("formatItemStacks")
static final String formatItemStacks(int var0) {
String var1 = Integer.toString(var0);
String var1 = Integer.toString(var0); // L: 9437
for (int var2 = var1.length() - 3; var2 > 0; var2 -= 3) {
var1 = var1.substring(0, var2) + "," + var1.substring(var2);
for (int var2 = var1.length() - 3; var2 > 0; var2 -= 3) { // L: 9438
var1 = var1.substring(0, var2) + "," + var1.substring(var2); // L: 9439
}
if (var1.length() > 9) {
if (var1.length() > 9) { // L: 9441
return " " + class23.colorStartTag(65408) + var1.substring(0, var1.length() - 8) + "M" + " " + " (" + var1 + ")" + "</col>";
} else {
return var1.length() > 6 ? " " + class23.colorStartTag(16777215) + var1.substring(0, var1.length() - 4) + "K" + " " + " (" + var1 + ")" + "</col>" : " " + class23.colorStartTag(16776960) + var1 + "</col>";
return var1.length() > 6 ? " " + class23.colorStartTag(16777215) + var1.substring(0, var1.length() - 4) + "K" + " " + " (" + var1 + ")" + "</col>" : " " + class23.colorStartTag(16776960) + var1 + "</col>"; // L: 9442 9443
}
}
@@ -46,6 +46,6 @@ public class DevicePcmPlayerProvider implements PlayerProvider {
)
@Export("isComponentHidden")
static boolean isComponentHidden(Widget var0) {
return var0.isHidden;
return var0.isHidden; // L: 11059
}
}

View File

@@ -31,10 +31,10 @@ public class DirectByteArrayCopier extends AbstractByteArrayCopier {
)
@Export("get")
byte[] get() {
byte[] var1 = new byte[this.directBuffer.capacity()];
this.directBuffer.position(0);
this.directBuffer.get(var1);
return var1;
byte[] var1 = new byte[this.directBuffer.capacity()]; // L: 13
this.directBuffer.position(0); // L: 14
this.directBuffer.get(var1); // L: 15
return var1; // L: 16
}
@ObfuscatedName("x")
@@ -44,10 +44,10 @@ public class DirectByteArrayCopier extends AbstractByteArrayCopier {
)
@Export("set")
public void set(byte[] var1) {
this.directBuffer = ByteBuffer.allocateDirect(var1.length);
this.directBuffer.position(0);
this.directBuffer.put(var1);
}
this.directBuffer = ByteBuffer.allocateDirect(var1.length); // L: 20
this.directBuffer.position(0); // L: 21
this.directBuffer.put(var1); // L: 22
} // L: 23
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -55,20 +55,20 @@ public class DirectByteArrayCopier extends AbstractByteArrayCopier {
garbageValue = "-69"
)
static void method3983() {
Tiles.Tiles_minPlane = 99;
Tiles.field514 = new byte[4][104][104];
Tiles.field508 = new byte[4][104][104];
class9.field40 = new byte[4][104][104];
Username.field3663 = new byte[4][104][104];
GrandExchangeOfferWorldComparator.field52 = new int[4][105][105];
Tiles.field511 = new byte[4][105][105];
class92.field1173 = new int[105][105];
VarbitDefinition.Tiles_hue = new int[104];
ArchiveDiskActionHandler.Tiles_saturation = new int[104];
class92.Tiles_lightness = new int[104];
UserComparator7.Tiles_hueMultiplier = new int[104];
Varcs.field1283 = new int[104];
}
Tiles.Tiles_minPlane = 99; // L: 48
Tiles.field514 = new byte[4][104][104]; // L: 49
Tiles.field508 = new byte[4][104][104]; // L: 50
class9.field40 = new byte[4][104][104]; // L: 51
Username.field3663 = new byte[4][104][104]; // L: 52
GrandExchangeOfferWorldComparator.field52 = new int[4][105][105]; // L: 53
Tiles.field511 = new byte[4][105][105]; // L: 54
class92.field1173 = new int[105][105]; // L: 55
VarbitDefinition.Tiles_hue = new int[104]; // L: 56
ArchiveDiskActionHandler.Tiles_saturation = new int[104]; // L: 57
class92.Tiles_lightness = new int[104]; // L: 58
UserComparator7.Tiles_hueMultiplier = new int[104]; // L: 59
Varcs.field1283 = new int[104]; // L: 60
} // L: 61
@ObfuscatedName("kh")
@ObfuscatedSignature(
@@ -77,119 +77,119 @@ public class DirectByteArrayCopier extends AbstractByteArrayCopier {
)
@Export("drawMinimap")
static final void drawMinimap(Widget var0, int var1, int var2, int var3) {
FontName.playPcmPlayers();
SpriteMask var4 = var0.getSpriteMask(false);
if (var4 != null) {
Rasterizer2D.Rasterizer2D_setClip(var1, var2, var4.width + var1, var2 + var4.height);
if (Client.minimapState != 2 && Client.minimapState != 5) {
int var5 = Client.camAngleY & 2047;
int var6 = PlayerAppearance.localPlayer.x / 32 + 48;
int var7 = 464 - PlayerAppearance.localPlayer.y / 32;
class25.sceneMinimapSprite.drawRotatedMaskedCenteredAround(var1, var2, var4.width, var4.height, var6, var7, var5, 256, var4.xStarts, var4.xWidths);
FontName.playPcmPlayers(); // L: 10871
SpriteMask var4 = var0.getSpriteMask(false); // L: 10872
if (var4 != null) { // L: 10873
Rasterizer2D.Rasterizer2D_setClip(var1, var2, var4.width + var1, var2 + var4.height); // L: 10874
if (Client.minimapState != 2 && Client.minimapState != 5) { // L: 10875
int var5 = Client.camAngleY & 2047; // L: 10876
int var6 = PlayerAppearance.localPlayer.x / 32 + 48; // L: 10877
int var7 = 464 - PlayerAppearance.localPlayer.y / 32; // L: 10878
class25.sceneMinimapSprite.drawRotatedMaskedCenteredAround(var1, var2, var4.width, var4.height, var6, var7, var5, 256, var4.xStarts, var4.xWidths); // L: 10879
int var8;
int var10;
int var17;
for (var8 = 0; var8 < Client.mapIconCount; ++var8) {
var17 = Client.mapIconXs[var8] * 4 + 2 - PlayerAppearance.localPlayer.x / 32;
var10 = Client.mapIconYs[var8] * 4 + 2 - PlayerAppearance.localPlayer.y / 32;
class25.drawSpriteOnMinimap(var1, var2, var17, var10, Client.mapIcons[var8], var4);
for (var8 = 0; var8 < Client.mapIconCount; ++var8) { // L: 10880
var17 = Client.mapIconXs[var8] * 4 + 2 - PlayerAppearance.localPlayer.x / 32; // L: 10881
var10 = Client.mapIconYs[var8] * 4 + 2 - PlayerAppearance.localPlayer.y / 32; // L: 10882
class25.drawSpriteOnMinimap(var1, var2, var17, var10, Client.mapIcons[var8], var4); // L: 10883
}
int var11;
int var12;
for (var8 = 0; var8 < 104; ++var8) {
for (var17 = 0; var17 < 104; ++var17) {
NodeDeque var15 = Client.groundItems[GameObject.Client_plane][var8][var17];
if (var15 != null) {
var11 = var8 * 4 + 2 - PlayerAppearance.localPlayer.x / 32;
var12 = var17 * 4 + 2 - PlayerAppearance.localPlayer.y / 32;
class25.drawSpriteOnMinimap(var1, var2, var11, var12, Actor.mapDotSprites[0], var4);
for (var8 = 0; var8 < 104; ++var8) { // L: 10885
for (var17 = 0; var17 < 104; ++var17) { // L: 10886
NodeDeque var15 = Client.groundItems[GameObject.Client_plane][var8][var17]; // L: 10887
if (var15 != null) { // L: 10888
var11 = var8 * 4 + 2 - PlayerAppearance.localPlayer.x / 32; // L: 10889
var12 = var17 * 4 + 2 - PlayerAppearance.localPlayer.y / 32; // L: 10890
class25.drawSpriteOnMinimap(var1, var2, var11, var12, Actor.mapDotSprites[0], var4); // L: 10891
}
}
}
for (var8 = 0; var8 < Client.npcCount; ++var8) {
NPC var9 = Client.npcs[Client.npcIndices[var8]];
if (var9 != null && var9.isVisible()) {
NPCDefinition var19 = var9.definition;
if (var19 != null && var19.transforms != null) {
for (var8 = 0; var8 < Client.npcCount; ++var8) { // L: 10895
NPC var9 = Client.npcs[Client.npcIndices[var8]]; // L: 10896
if (var9 != null && var9.isVisible()) { // L: 10897
NPCDefinition var19 = var9.definition; // L: 10898
if (var19 != null && var19.transforms != null) { // L: 10899
var19 = var19.transform();
}
if (var19 != null && var19.drawMapDot && var19.isInteractable) {
var11 = var9.x / 32 - PlayerAppearance.localPlayer.x / 32;
var12 = var9.y / 32 - PlayerAppearance.localPlayer.y / 32;
class25.drawSpriteOnMinimap(var1, var2, var11, var12, Actor.mapDotSprites[1], var4);
if (var19 != null && var19.drawMapDot && var19.isInteractable) { // L: 10900
var11 = var9.x / 32 - PlayerAppearance.localPlayer.x / 32; // L: 10901
var12 = var9.y / 32 - PlayerAppearance.localPlayer.y / 32; // L: 10902
class25.drawSpriteOnMinimap(var1, var2, var11, var12, Actor.mapDotSprites[1], var4); // L: 10903
}
}
}
var8 = Players.Players_count;
int[] var18 = Players.Players_indices;
var8 = Players.Players_count; // L: 10907
int[] var18 = Players.Players_indices; // L: 10908
for (var10 = 0; var10 < var8; ++var10) {
Player var16 = Client.players[var18[var10]];
if (var16 != null && var16.isVisible() && !var16.isHidden && var16 != PlayerAppearance.localPlayer) {
var12 = var16.x / 32 - PlayerAppearance.localPlayer.x / 32;
int var13 = var16.y / 32 - PlayerAppearance.localPlayer.y / 32;
boolean var14 = false;
if (PlayerAppearance.localPlayer.team != 0 && var16.team != 0 && var16.team == PlayerAppearance.localPlayer.team) {
for (var10 = 0; var10 < var8; ++var10) { // L: 10909
Player var16 = Client.players[var18[var10]]; // L: 10910
if (var16 != null && var16.isVisible() && !var16.isHidden && var16 != PlayerAppearance.localPlayer) { // L: 10911
var12 = var16.x / 32 - PlayerAppearance.localPlayer.x / 32; // L: 10912
int var13 = var16.y / 32 - PlayerAppearance.localPlayer.y / 32; // L: 10913
boolean var14 = false; // L: 10914
if (PlayerAppearance.localPlayer.team != 0 && var16.team != 0 && var16.team == PlayerAppearance.localPlayer.team) { // L: 10915
var14 = true;
}
if (var16.isFriend()) {
if (var16.isFriend()) { // L: 10916
class25.drawSpriteOnMinimap(var1, var2, var12, var13, Actor.mapDotSprites[3], var4);
} else if (var14) {
} else if (var14) { // L: 10917
class25.drawSpriteOnMinimap(var1, var2, var12, var13, Actor.mapDotSprites[4], var4);
} else if (var16.isClanMember()) {
} else if (var16.isClanMember()) { // L: 10918
class25.drawSpriteOnMinimap(var1, var2, var12, var13, Actor.mapDotSprites[5], var4);
} else {
class25.drawSpriteOnMinimap(var1, var2, var12, var13, Actor.mapDotSprites[2], var4);
class25.drawSpriteOnMinimap(var1, var2, var12, var13, Actor.mapDotSprites[2], var4); // L: 10919
}
}
}
if (Client.hintArrowType != 0 && Client.cycle % 20 < 10) {
if (Client.hintArrowType == 1 && Client.hintArrowNpcIndex >= 0 && Client.hintArrowNpcIndex < Client.npcs.length) {
NPC var20 = Client.npcs[Client.hintArrowNpcIndex];
if (var20 != null) {
var11 = var20.x / 32 - PlayerAppearance.localPlayer.x / 32;
var12 = var20.y / 32 - PlayerAppearance.localPlayer.y / 32;
AbstractWorldMapData.worldToMinimap(var1, var2, var11, var12, GrandExchangeOfferUnitPriceComparator.mapMarkerSprites[1], var4);
if (Client.hintArrowType != 0 && Client.cycle % 20 < 10) { // L: 10922
if (Client.hintArrowType == 1 && Client.hintArrowNpcIndex >= 0 && Client.hintArrowNpcIndex < Client.npcs.length) { // L: 10923
NPC var20 = Client.npcs[Client.hintArrowNpcIndex]; // L: 10924
if (var20 != null) { // L: 10925
var11 = var20.x / 32 - PlayerAppearance.localPlayer.x / 32; // L: 10926
var12 = var20.y / 32 - PlayerAppearance.localPlayer.y / 32; // L: 10927
AbstractWorldMapData.worldToMinimap(var1, var2, var11, var12, GrandExchangeOfferUnitPriceComparator.mapMarkerSprites[1], var4); // L: 10928
}
}
if (Client.hintArrowType == 2) {
var10 = Client.hintArrowX * 4 - NetFileRequest.baseX * 256 + 2 - PlayerAppearance.localPlayer.x / 32;
var11 = Client.hintArrowY * 4 - class41.baseY * 256 + 2 - PlayerAppearance.localPlayer.y / 32;
AbstractWorldMapData.worldToMinimap(var1, var2, var10, var11, GrandExchangeOfferUnitPriceComparator.mapMarkerSprites[1], var4);
if (Client.hintArrowType == 2) { // L: 10931
var10 = Client.hintArrowX * 4 - NetFileRequest.baseX * 4 + 2 - PlayerAppearance.localPlayer.x / 32; // L: 10932
var11 = Client.hintArrowY * 4 - class41.baseY * 4 + 2 - PlayerAppearance.localPlayer.y / 32; // L: 10933
AbstractWorldMapData.worldToMinimap(var1, var2, var10, var11, GrandExchangeOfferUnitPriceComparator.mapMarkerSprites[1], var4); // L: 10934
}
if (Client.hintArrowType == 10 && Client.hintArrowPlayerIndex >= 0 && Client.hintArrowPlayerIndex < Client.players.length) {
Player var21 = Client.players[Client.hintArrowPlayerIndex];
if (var21 != null) {
var11 = var21.x / 32 - PlayerAppearance.localPlayer.x / 32;
var12 = var21.y / 32 - PlayerAppearance.localPlayer.y / 32;
AbstractWorldMapData.worldToMinimap(var1, var2, var11, var12, GrandExchangeOfferUnitPriceComparator.mapMarkerSprites[1], var4);
if (Client.hintArrowType == 10 && Client.hintArrowPlayerIndex >= 0 && Client.hintArrowPlayerIndex < Client.players.length) { // L: 10936
Player var21 = Client.players[Client.hintArrowPlayerIndex]; // L: 10937
if (var21 != null) { // L: 10938
var11 = var21.x / 32 - PlayerAppearance.localPlayer.x / 32; // L: 10939
var12 = var21.y / 32 - PlayerAppearance.localPlayer.y / 32; // L: 10940
AbstractWorldMapData.worldToMinimap(var1, var2, var11, var12, GrandExchangeOfferUnitPriceComparator.mapMarkerSprites[1], var4); // L: 10941
}
}
}
if (Client.destinationX != 0) {
var10 = Client.destinationX * 4 + 2 - PlayerAppearance.localPlayer.x / 32;
var11 = Client.destinationY * 4 + 2 - PlayerAppearance.localPlayer.y / 32;
class25.drawSpriteOnMinimap(var1, var2, var10, var11, GrandExchangeOfferUnitPriceComparator.mapMarkerSprites[0], var4);
if (Client.destinationX != 0) { // L: 10945
var10 = Client.destinationX * 4 + 2 - PlayerAppearance.localPlayer.x / 32; // L: 10946
var11 = Client.destinationY * 4 + 2 - PlayerAppearance.localPlayer.y / 32; // L: 10947
class25.drawSpriteOnMinimap(var1, var2, var10, var11, GrandExchangeOfferUnitPriceComparator.mapMarkerSprites[0], var4); // L: 10948
}
if (!PlayerAppearance.localPlayer.isHidden) {
if (!PlayerAppearance.localPlayer.isHidden) { // L: 10950
Rasterizer2D.Rasterizer2D_fillRectangle(var4.width / 2 + var1 - 1, var4.height / 2 + var2 - 1, 3, 3, 16777215);
}
} else {
Rasterizer2D.Rasterizer2D_fillMaskedRectangle(var1, var2, 0, var4.xStarts, var4.xWidths);
Rasterizer2D.Rasterizer2D_fillMaskedRectangle(var1, var2, 0, var4.xStarts, var4.xWidths); // L: 10952
}
Client.field854[var3] = true;
Client.field854[var3] = true; // L: 10953
}
}
} // L: 10954
}

View File

@@ -10,19 +10,19 @@ public class DirectWrapper extends Wrapper {
Object obj;
DirectWrapper(Object var1, int var2) {
super(var2);
this.obj = var1;
}
super(var2); // L: 7
this.obj = var1; // L: 8
} // L: 9
@ObfuscatedName("h")
@Export("get")
Object get() {
return this.obj;
return this.obj; // L: 12
}
@ObfuscatedName("v")
@Export("isSoft")
boolean isSoft() {
return false;
return false; // L: 16
}
}

View File

@@ -25,11 +25,11 @@ public class DualNode extends Node {
@ObfuscatedName("ck")
@Export("removeDual")
public void removeDual() {
if (this.nextDual != null) {
this.nextDual.previousDual = this.previousDual;
this.previousDual.nextDual = this.nextDual;
this.previousDual = null;
this.nextDual = null;
if (this.nextDual != null) { // L: 9
this.nextDual.previousDual = this.previousDual; // L: 10
this.previousDual.nextDual = this.nextDual; // L: 11
this.previousDual = null; // L: 12
this.nextDual = null; // L: 13
}
}
} // L: 14
}

View File

@@ -14,10 +14,10 @@ public final class DualNodeDeque {
DualNode sentinel;
public DualNodeDeque() {
this.sentinel = new DualNode();
this.sentinel.previousDual = this.sentinel;
this.sentinel.nextDual = this.sentinel;
}
this.sentinel = new DualNode(); // L: 6
this.sentinel.previousDual = this.sentinel; // L: 9
this.sentinel.nextDual = this.sentinel; // L: 10
} // L: 11
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -25,15 +25,15 @@ public final class DualNodeDeque {
)
@Export("addFirst")
public void addFirst(DualNode var1) {
if (var1.nextDual != null) {
if (var1.nextDual != null) { // L: 14
var1.removeDual();
}
var1.nextDual = this.sentinel.nextDual;
var1.previousDual = this.sentinel;
var1.nextDual.previousDual = var1;
var1.previousDual.nextDual = var1;
}
var1.nextDual = this.sentinel.nextDual; // L: 15
var1.previousDual = this.sentinel; // L: 16
var1.nextDual.previousDual = var1; // L: 17
var1.previousDual.nextDual = var1; // L: 18
} // L: 19
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -41,15 +41,15 @@ public final class DualNodeDeque {
)
@Export("addLast")
public void addLast(DualNode var1) {
if (var1.nextDual != null) {
if (var1.nextDual != null) { // L: 22
var1.removeDual();
}
var1.nextDual = this.sentinel;
var1.previousDual = this.sentinel.previousDual;
var1.nextDual.previousDual = var1;
var1.previousDual.nextDual = var1;
}
var1.nextDual = this.sentinel; // L: 23
var1.previousDual = this.sentinel.previousDual; // L: 24
var1.nextDual.previousDual = var1; // L: 25
var1.previousDual.nextDual = var1; // L: 26
} // L: 27
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -57,7 +57,7 @@ public final class DualNodeDeque {
)
@Export("removeLast")
public DualNode removeLast() {
DualNode var1 = this.sentinel.previousDual;
return var1 == this.sentinel ? null : var1;
DualNode var1 = this.sentinel.previousDual; // L: 30
return var1 == this.sentinel ? null : var1; // L: 31 32
}
}

View File

@@ -86,31 +86,31 @@ public class DynamicObject extends Entity {
)
DynamicObject(int var1, int var2, int var3, int var4, int var5, int var6, int var7, boolean var8, Entity var9) {
this.id = var1;
this.type = var2;
this.orientation = var3;
this.plane = var4;
this.x = var5;
this.y = var6;
if (var7 != -1) {
this.sequenceDefinition = ParamDefinition.SequenceDefinition_get(var7);
this.frame = 0;
this.cycleStart = Client.cycle - 1;
if (this.sequenceDefinition.field3548 == 0 && var9 != null && var9 instanceof DynamicObject) {
DynamicObject var10 = (DynamicObject)var9;
if (var10.sequenceDefinition == this.sequenceDefinition) {
this.frame = var10.frame;
this.cycleStart = var10.cycleStart;
return;
this.type = var2; // L: 21
this.orientation = var3; // L: 22
this.plane = var4; // L: 23
this.x = var5; // L: 24
this.y = var6; // L: 25
if (var7 != -1) { // L: 26
this.sequenceDefinition = ParamDefinition.SequenceDefinition_get(var7); // L: 27
this.frame = 0; // L: 28
this.cycleStart = Client.cycle - 1; // L: 29
if (this.sequenceDefinition.field3548 == 0 && var9 != null && var9 instanceof DynamicObject) { // L: 30
DynamicObject var10 = (DynamicObject)var9; // L: 31
if (var10.sequenceDefinition == this.sequenceDefinition) { // L: 32
this.frame = var10.frame; // L: 33
this.cycleStart = var10.cycleStart; // L: 34
return; // L: 35
}
}
if (var8 && this.sequenceDefinition.frameCount != -1) {
this.frame = (int)(Math.random() * (double)this.sequenceDefinition.frameIds.length);
this.cycleStart -= (int)(Math.random() * (double)this.sequenceDefinition.frameLengths[this.frame]);
if (var8 && this.sequenceDefinition.frameCount != -1) { // L: 38
this.frame = (int)(Math.random() * (double)this.sequenceDefinition.frameIds.length); // L: 39
this.cycleStart -= (int)(Math.random() * (double)this.sequenceDefinition.frameLengths[this.frame]); // L: 40
}
}
}
} // L: 43
@ObfuscatedName("l")
@ObfuscatedSignature(
@@ -119,59 +119,59 @@ public class DynamicObject extends Entity {
)
@Export("getModel")
protected final Model getModel() {
if (this.sequenceDefinition != null) {
int var1 = Client.cycle - this.cycleStart;
if (var1 > 100 && this.sequenceDefinition.frameCount > 0) {
if (this.sequenceDefinition != null) { // L: 46
int var1 = Client.cycle - this.cycleStart; // L: 47
if (var1 > 100 && this.sequenceDefinition.frameCount > 0) { // L: 48
var1 = 100;
}
label56: {
do {
do {
if (var1 <= this.sequenceDefinition.frameLengths[this.frame]) {
if (var1 <= this.sequenceDefinition.frameLengths[this.frame]) { // L: 49
break label56;
}
var1 -= this.sequenceDefinition.frameLengths[this.frame];
++this.frame;
} while(this.frame < this.sequenceDefinition.frameIds.length);
var1 -= this.sequenceDefinition.frameLengths[this.frame]; // L: 50
++this.frame; // L: 51
} while(this.frame < this.sequenceDefinition.frameIds.length); // L: 52
this.frame -= this.sequenceDefinition.frameCount;
this.frame -= this.sequenceDefinition.frameCount; // L: 53
} while(this.frame >= 0 && this.frame < this.sequenceDefinition.frameIds.length);
this.sequenceDefinition = null;
this.sequenceDefinition = null; // L: 55
}
this.cycleStart = Client.cycle - var1;
this.cycleStart = Client.cycle - var1; // L: 60
}
ObjectDefinition var12 = WorldMapDecoration.getObjectDefinition(this.id);
if (var12.transforms != null) {
ObjectDefinition var12 = WorldMapDecoration.getObjectDefinition(this.id); // L: 62
if (var12.transforms != null) { // L: 63
var12 = var12.transform();
}
if (var12 == null) {
if (var12 == null) { // L: 64
return null;
} else {
int var2;
int var3;
if (this.orientation != 1 && this.orientation != 3) {
var2 = var12.sizeX;
var3 = var12.sizeY;
if (this.orientation != 1 && this.orientation != 3) { // L: 67
var2 = var12.sizeX; // L: 72
var3 = var12.sizeY; // L: 73
} else {
var2 = var12.sizeY;
var3 = var12.sizeX;
var2 = var12.sizeY; // L: 68
var3 = var12.sizeX; // L: 69
}
int var4 = (var2 >> 1) + this.x;
int var5 = (var2 + 1 >> 1) + this.x;
int var6 = (var3 >> 1) + this.y;
int var7 = (var3 + 1 >> 1) + this.y;
int[][] var8 = Tiles.Tiles_heights[this.plane];
int var9 = var8[var5][var7] + var8[var4][var7] + var8[var5][var6] + var8[var4][var6] >> 2;
int var10 = (this.x << 7) + (var2 << 6);
int var11 = (this.y << 7) + (var3 << 6);
return var12.getModelDynamic(this.type, this.orientation, var8, var10, var9, var11, this.sequenceDefinition, this.frame);
int var4 = (var2 >> 1) + this.x; // L: 75
int var5 = (var2 + 1 >> 1) + this.x; // L: 76
int var6 = (var3 >> 1) + this.y; // L: 77
int var7 = (var3 + 1 >> 1) + this.y; // L: 78
int[][] var8 = Tiles.Tiles_heights[this.plane]; // L: 79
int var9 = var8[var5][var7] + var8[var4][var7] + var8[var5][var6] + var8[var4][var6] >> 2; // L: 80
int var10 = (this.x << 7) + (var2 << 6); // L: 81
int var11 = (this.y << 7) + (var3 << 6); // L: 82
return var12.getModelDynamic(this.type, this.orientation, var8, var10, var9, var11, this.sequenceDefinition, this.frame); // L: 83
}
}
@@ -181,7 +181,7 @@ public class DynamicObject extends Entity {
garbageValue = "92"
)
static WorldMapSprite method2300(byte[] var0) {
return var0 == null ? new WorldMapSprite() : new WorldMapSprite(WorldMapSection0.convertJpgToSprite(var0).pixels);
return var0 == null ? new WorldMapSprite() : new WorldMapSprite(WorldMapSection0.convertJpgToSprite(var0).pixels); // L: 19 20
}
@ObfuscatedName("h")
@@ -190,7 +190,7 @@ public class DynamicObject extends Entity {
garbageValue = "1772389683"
)
static int method2304() {
return 12;
return 12; // L: 123
}
@ObfuscatedName("aw")
@@ -199,7 +199,7 @@ public class DynamicObject extends Entity {
garbageValue = "-35"
)
public static int method2305(byte[] var0, int var1) {
return WorldMapRectangle.method334(var0, 0, var1);
return WorldMapRectangle.method334(var0, 0, var1); // L: 54
}
@ObfuscatedName("ix")
@@ -209,9 +209,9 @@ public class DynamicObject extends Entity {
)
@Export("resumePauseWidget")
static void resumePauseWidget(int var0, int var1) {
PacketBufferNode var2 = ItemContainer.getPacketBufferNode(ClientPacket.field2266, Client.packetWriter.isaacCipher);
var2.packetBuffer.writeInt(var0);
var2.packetBuffer.writeShort(var1);
Client.packetWriter.addNode(var2);
}
PacketBufferNode var2 = ItemContainer.getPacketBufferNode(ClientPacket.field2266, Client.packetWriter.isaacCipher); // L: 8361
var2.packetBuffer.writeInt(var0); // L: 8362
var2.packetBuffer.writeShort(var1); // L: 8363
Client.packetWriter.addNode(var2); // L: 8364
} // L: 8365
}

View File

@@ -20,8 +20,8 @@ public abstract class Entity extends DualNode {
public int height;
protected Entity() {
this.height = 1000;
}
this.height = 1000; // L: 6
} // L: 8
@ObfuscatedName("l")
@ObfuscatedSignature(
@@ -36,10 +36,10 @@ public abstract class Entity extends DualNode {
@ObfuscatedName("cf")
@Export("draw")
void draw(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, long var9) {
Model var11 = this.getModel();
if (var11 != null) {
this.height = var11.height;
var11.draw(var1, var2, var3, var4, var5, var6, var7, var8, var9);
Model var11 = this.getModel(); // L: 11
if (var11 != null) { // L: 12
this.height = var11.height; // L: 13
var11.draw(var1, var2, var3, var4, var5, var6, var7, var8, var9); // L: 14
}
}
@@ -50,29 +50,29 @@ public abstract class Entity extends DualNode {
garbageValue = "85"
)
static long method3340(CharSequence var0) {
long var1 = 0L;
int var3 = var0.length();
long var1 = 0L; // L: 16
int var3 = var0.length(); // L: 17
for (int var4 = 0; var4 < var3; ++var4) {
var1 *= 37L;
char var5 = var0.charAt(var4);
if (var5 >= 'A' && var5 <= 'Z') {
for (int var4 = 0; var4 < var3; ++var4) { // L: 18
var1 *= 37L; // L: 19
char var5 = var0.charAt(var4); // L: 20
if (var5 >= 'A' && var5 <= 'Z') { // L: 21
var1 += (long)(var5 + 1 - 65);
} else if (var5 >= 'a' && var5 <= 'z') {
} else if (var5 >= 'a' && var5 <= 'z') { // L: 22
var1 += (long)(var5 + 1 - 97);
} else if (var5 >= '0' && var5 <= '9') {
} else if (var5 >= '0' && var5 <= '9') { // L: 23
var1 += (long)(var5 + 27 - 48);
}
if (var1 >= 177917621779460413L) {
if (var1 >= 177917621779460413L) { // L: 24
break;
}
}
while (0L == var1 % 37L && var1 != 0L) {
while (0L == var1 % 37L && var1 != 0L) { // L: 26
var1 /= 37L;
}
return var1;
return var1; // L: 27
}
}

View File

@@ -9,7 +9,7 @@ import net.runelite.mapping.ObfuscatedSignature;
public class EnumDefinition extends DualNode {
@ObfuscatedName("rk")
@ObfuscatedGetter(
intValue = -718709376
intValue = 2141868731
)
static int field3340;
@ObfuscatedName("h")
@@ -62,13 +62,13 @@ public class EnumDefinition extends DualNode {
public String[] strVals;
static {
EnumDefinition_cached = new EvictingDualNodeHashTable(64);
EnumDefinition_cached = new EvictingDualNodeHashTable(64); // L: 12
}
EnumDefinition() {
this.defaultStr = "null";
this.outputCount = 0;
}
this.defaultStr = "null"; // L: 15
this.outputCount = 0; // L: 17
} // L: 22
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -78,12 +78,12 @@ public class EnumDefinition extends DualNode {
@Export("decode")
void decode(Buffer var1) {
while (true) {
int var2 = var1.readUnsignedByte();
if (var2 == 0) {
return;
int var2 = var1.readUnsignedByte(); // L: 40
if (var2 == 0) { // L: 41
return; // L: 44
}
this.decodeNext(var1, var2);
this.decodeNext(var1, var2); // L: 42
}
}
@@ -94,38 +94,38 @@ public class EnumDefinition extends DualNode {
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2) {
if (var2 == 1) {
if (var2 == 1) { // L: 47
this.inputType = (char)var1.readUnsignedByte();
} else if (var2 == 2) {
} else if (var2 == 2) { // L: 48
this.outputType = (char)var1.readUnsignedByte();
} else if (var2 == 3) {
} else if (var2 == 3) { // L: 49
this.defaultStr = var1.readStringCp1252NullTerminated();
} else if (var2 == 4) {
} else if (var2 == 4) { // L: 50
this.defaultInt = var1.readInt();
} else {
int var3;
if (var2 == 5) {
this.outputCount = var1.readUnsignedShort();
this.keys = new int[this.outputCount];
this.strVals = new String[this.outputCount];
if (var2 == 5) { // L: 51
this.outputCount = var1.readUnsignedShort(); // L: 52
this.keys = new int[this.outputCount]; // L: 53
this.strVals = new String[this.outputCount]; // L: 54
for (var3 = 0; var3 < this.outputCount; ++var3) {
this.keys[var3] = var1.readInt();
this.strVals[var3] = var1.readStringCp1252NullTerminated();
for (var3 = 0; var3 < this.outputCount; ++var3) { // L: 55
this.keys[var3] = var1.readInt(); // L: 56
this.strVals[var3] = var1.readStringCp1252NullTerminated(); // L: 57
}
} else if (var2 == 6) {
this.outputCount = var1.readUnsignedShort();
this.keys = new int[this.outputCount];
this.intVals = new int[this.outputCount];
} else if (var2 == 6) { // L: 60
this.outputCount = var1.readUnsignedShort(); // L: 61
this.keys = new int[this.outputCount]; // L: 62
this.intVals = new int[this.outputCount]; // L: 63
for (var3 = 0; var3 < this.outputCount; ++var3) {
this.keys[var3] = var1.readInt();
this.intVals[var3] = var1.readInt();
for (var3 = 0; var3 < this.outputCount; ++var3) { // L: 64
this.keys[var3] = var1.readInt(); // L: 65
this.intVals[var3] = var1.readInt(); // L: 66
}
}
}
}
} // L: 70
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -134,6 +134,6 @@ public class EnumDefinition extends DualNode {
)
@Export("size")
public int size() {
return this.outputCount;
return this.outputCount; // L: 73
}
}

View File

@@ -31,17 +31,17 @@ public final class EvictingDualNodeHashTable {
IterableDualNodeQueue deque;
public EvictingDualNodeHashTable(int var1) {
this.field1977 = new DualNode();
this.deque = new IterableDualNodeQueue();
this.capacity = var1;
this.remainingCapacity = var1;
this.field1977 = new DualNode(); // L: 8
this.deque = new IterableDualNodeQueue(); // L: 12
this.capacity = var1; // L: 15
this.remainingCapacity = var1; // L: 16
int var2;
for (var2 = 1; var2 + var2 < var1; var2 += var2) {
for (var2 = 1; var2 + var2 < var1; var2 += var2) { // L: 17 18
}
this.hashTable = new IterableNodeHashTable(var2);
}
this.hashTable = new IterableNodeHashTable(var2); // L: 19
} // L: 20
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -49,25 +49,25 @@ public final class EvictingDualNodeHashTable {
)
@Export("get")
public DualNode get(long var1) {
DualNode var3 = (DualNode)this.hashTable.get(var1);
if (var3 != null) {
this.deque.add(var3);
DualNode var3 = (DualNode)this.hashTable.get(var1); // L: 23
if (var3 != null) { // L: 24
this.deque.add(var3); // L: 25
}
return var3;
return var3; // L: 28
}
@ObfuscatedName("v")
@Export("remove")
public void remove(long var1) {
DualNode var3 = (DualNode)this.hashTable.get(var1);
if (var3 != null) {
var3.remove();
var3.removeDual();
++this.remainingCapacity;
DualNode var3 = (DualNode)this.hashTable.get(var1); // L: 32
if (var3 != null) { // L: 33
var3.remove(); // L: 34
var3.removeDual(); // L: 35
++this.remainingCapacity; // L: 36
}
}
} // L: 38
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -75,29 +75,29 @@ public final class EvictingDualNodeHashTable {
)
@Export("put")
public void put(DualNode var1, long var2) {
if (this.remainingCapacity == 0) {
DualNode var4 = this.deque.removeLast();
var4.remove();
var4.removeDual();
if (var4 == this.field1977) {
var4 = this.deque.removeLast();
var4.remove();
var4.removeDual();
if (this.remainingCapacity == 0) { // L: 41
DualNode var4 = this.deque.removeLast(); // L: 42
var4.remove(); // L: 43
var4.removeDual(); // L: 44
if (var4 == this.field1977) { // L: 45
var4 = this.deque.removeLast(); // L: 46
var4.remove(); // L: 47
var4.removeDual(); // L: 48
}
} else {
--this.remainingCapacity;
--this.remainingCapacity; // L: 51
}
this.hashTable.put(var1, var2);
this.deque.add(var1);
}
this.hashTable.put(var1, var2); // L: 52
this.deque.add(var1); // L: 53
} // L: 54
@ObfuscatedName("w")
@Export("clear")
public void clear() {
this.deque.clear();
this.hashTable.clear();
this.field1977 = new DualNode();
this.remainingCapacity = this.capacity;
}
this.deque.clear(); // L: 57
this.hashTable.clear(); // L: 58
this.field1977 = new DualNode(); // L: 59
this.remainingCapacity = this.capacity; // L: 60
} // L: 61
}

View File

@@ -27,7 +27,7 @@ public class FaceNormal {
int z;
FaceNormal() {
}
} // L: 8
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -35,80 +35,80 @@ public class FaceNormal {
garbageValue = "1343156262"
)
static int method3345(int var0, Script var1, boolean var2) {
if (var0 < 1000) {
if (var0 < 1000) { // L: 391
return class231.method4154(var0, var1, var2);
} else if (var0 < 1100) {
} else if (var0 < 1100) { // L: 392
return class200.method3711(var0, var1, var2);
} else if (var0 < 1200) {
} else if (var0 < 1200) { // L: 393
return WorldMapData_1.method736(var0, var1, var2);
} else if (var0 < 1300) {
} else if (var0 < 1300) { // L: 394
return UserComparator9.method3478(var0, var1, var2);
} else if (var0 < 1400) {
} else if (var0 < 1400) { // L: 395
return ScriptFrame.method1213(var0, var1, var2);
} else if (var0 < 1500) {
} else if (var0 < 1500) { // L: 396
return ModeWhere.method3717(var0, var1, var2);
} else if (var0 < 1600) {
} else if (var0 < 1600) { // L: 397
return Messages.method2283(var0, var1, var2);
} else if (var0 < 1700) {
} else if (var0 < 1700) { // L: 398
return GrandExchangeOfferUnitPriceComparator.method200(var0, var1, var2);
} else if (var0 < 1800) {
} else if (var0 < 1800) { // L: 399
return class277.method5005(var0, var1, var2);
} else if (var0 < 1900) {
} else if (var0 < 1900) { // L: 400
return WorldMapRectangle.method331(var0, var1, var2);
} else if (var0 < 2000) {
} else if (var0 < 2000) { // L: 401
return Frames.method3354(var0, var1, var2);
} else if (var0 < 2100) {
} else if (var0 < 2100) { // L: 402
return class200.method3711(var0, var1, var2);
} else if (var0 < 2200) {
} else if (var0 < 2200) { // L: 403
return WorldMapData_1.method736(var0, var1, var2);
} else if (var0 < 2300) {
} else if (var0 < 2300) { // L: 404
return UserComparator9.method3478(var0, var1, var2);
} else if (var0 < 2400) {
} else if (var0 < 2400) { // L: 405
return ScriptFrame.method1213(var0, var1, var2);
} else if (var0 < 2500) {
return ModeWhere.method3717(var0, var1, var2);
} else if (var0 < 2600) {
return ModeWhere.method3717(var0, var1, var2); // L: 406
} else if (var0 < 2600) { // L: 407
return class22.method221(var0, var1, var2);
} else if (var0 < 2700) {
} else if (var0 < 2700) { // L: 408
return WorldMapIcon_1.method336(var0, var1, var2);
} else if (var0 < 2800) {
} else if (var0 < 2800) { // L: 409
return WorldMapIcon_1.method345(var0, var1, var2);
} else if (var0 < 2900) {
} else if (var0 < 2900) { // L: 410
return AbstractWorldMapData.method328(var0, var1, var2);
} else if (var0 < 3000) {
} else if (var0 < 3000) { // L: 411
return Frames.method3354(var0, var1, var2);
} else if (var0 < 3200) {
} else if (var0 < 3200) { // L: 412
return WorldMapID.method600(var0, var1, var2);
} else if (var0 < 3300) {
} else if (var0 < 3300) { // L: 413
return WorldMapData_0.method245(var0, var1, var2);
} else if (var0 < 3400) {
} else if (var0 < 3400) { // L: 414
return Language.method3709(var0, var1, var2);
} else if (var0 < 3500) {
} else if (var0 < 3500) { // L: 415
return TileItemPile.method2850(var0, var1, var2);
} else if (var0 < 3700) {
} else if (var0 < 3700) { // L: 416
return ApproximateRouteStrategy.method1302(var0, var1, var2);
} else if (var0 < 4000) {
} else if (var0 < 4000) { // L: 417
return GrandExchangeEvents.method146(var0, var1, var2);
} else if (var0 < 4100) {
} else if (var0 < 4100) { // L: 418
return class41.method602(var0, var1, var2);
} else if (var0 < 4200) {
} else if (var0 < 4200) { // L: 419
return GrandExchangeOfferAgeComparator.method218(var0, var1, var2);
} else if (var0 < 4300) {
} else if (var0 < 4300) { // L: 420
return StudioGame.method4186(var0, var1, var2);
} else if (var0 < 5100) {
return class258.method4516(var0, var1, var2);
} else if (var0 < 5400) {
return class258.method4516(var0, var1, var2); // L: 421
} else if (var0 < 5400) { // L: 422
return class58.method916(var0, var1, var2);
} else if (var0 < 5600) {
} else if (var0 < 5600) { // L: 423
return FloorUnderlayDefinition.method4460(var0, var1, var2);
} else if (var0 < 5700) {
} else if (var0 < 5700) { // L: 424
return AbstractWorldMapIcon.method656(var0, var1, var2);
} else if (var0 < 6300) {
} else if (var0 < 6300) { // L: 425
return WorldMapID.method599(var0, var1, var2);
} else if (var0 < 6600) {
} else if (var0 < 6600) { // L: 426
return HorizontalAlignment.method4729(var0, var1, var2);
} else {
return var0 < 6700 ? class52.method845(var0, var1, var2) : 2;
return var0 < 6700 ? class52.method845(var0, var1, var2) : 2; // L: 427 428
}
}
@@ -118,8 +118,8 @@ public class FaceNormal {
garbageValue = "398077002"
)
public static final void method3344(PlayerProvider var0) {
Varps.pcmPlayerProvider = var0;
}
Varps.pcmPlayerProvider = var0; // L: 45
} // L: 46
@ObfuscatedName("lx")
@ObfuscatedSignature(
@@ -128,7 +128,7 @@ public class FaceNormal {
)
@Export("getWidgetFlags")
static int getWidgetFlags(Widget var0) {
IntegerNode var1 = (IntegerNode)Client.widgetFlags.get((long)var0.childIndex + ((long)var0.id << 32));
return var1 != null ? var1.integer : var0.flags;
IntegerNode var1 = (IntegerNode)Client.widgetFlags.get((long)var0.childIndex + ((long)var0.id << 32)); // L: 11053
return var1 != null ? var1.integer : var0.flags; // L: 11054 11055
}
}

View File

@@ -29,9 +29,9 @@ public class FileSystem {
static int[] regions;
static {
FileSystem_hasPermissions = false;
FileSystem_hasPermissions = false; // L: 7
FileSystem_cacheFiles = new Hashtable(16);
}
} // L: 9
@ObfuscatedName("la")
@ObfuscatedSignature(
@@ -39,29 +39,29 @@ public class FileSystem {
garbageValue = "-1885661901"
)
static void method3573(Buffer var0) {
if (Client.randomDatData != null) {
var0.writeBytes(Client.randomDatData, 0, Client.randomDatData.length);
if (Client.randomDatData != null) { // L: 11152
var0.writeBytes(Client.randomDatData, 0, Client.randomDatData.length); // L: 11153
} else {
byte[] var2 = new byte[24];
byte[] var2 = new byte[24]; // L: 11158
try {
JagexCache.JagexCache_randomDat.seek(0L);
JagexCache.JagexCache_randomDat.readFully(var2);
JagexCache.JagexCache_randomDat.seek(0L); // L: 11160
JagexCache.JagexCache_randomDat.readFully(var2); // L: 11161
int var3;
for (var3 = 0; var3 < 24 && var2[var3] == 0; ++var3) {
for (var3 = 0; var3 < 24 && var2[var3] == 0; ++var3) { // L: 11162 11163 11164
}
if (var3 >= 24) {
if (var3 >= 24) { // L: 11166
throw new IOException();
}
} catch (Exception var6) {
for (int var4 = 0; var4 < 24; ++var4) {
for (int var4 = 0; var4 < 24; ++var4) { // L: 11169
var2[var4] = -1;
}
}
var0.writeBytes(var2, 0, var2.length);
var0.writeBytes(var2, 0, var2.length); // L: 11174
}
}
} // L: 11154 11175
}

View File

@@ -45,7 +45,7 @@ public final class FloorDecoration {
int flags;
FloorDecoration() {
}
} // L: 11
@ObfuscatedName("e")
@ObfuscatedSignature(
@@ -53,11 +53,11 @@ public final class FloorDecoration {
garbageValue = "390219432"
)
static final void method2932(String var0) {
PacketBufferNode var1 = ItemContainer.getPacketBufferNode(ClientPacket.field2241, Client.packetWriter.isaacCipher);
var1.packetBuffer.writeByte(stringCp1252NullTerminatedByteSize(var0));
var1.packetBuffer.writeStringCp1252NullTerminated(var0);
Client.packetWriter.addNode(var1);
}
PacketBufferNode var1 = ItemContainer.getPacketBufferNode(ClientPacket.field2241, Client.packetWriter.isaacCipher); // L: 134
var1.packetBuffer.writeByte(stringCp1252NullTerminatedByteSize(var0)); // L: 135
var1.packetBuffer.writeStringCp1252NullTerminated(var0); // L: 136
Client.packetWriter.addNode(var1); // L: 137
} // L: 138
@ObfuscatedName("at")
@ObfuscatedSignature(
@@ -66,7 +66,7 @@ public final class FloorDecoration {
)
@Export("stringCp1252NullTerminatedByteSize")
public static int stringCp1252NullTerminatedByteSize(String var0) {
return var0.length() + 1;
return var0.length() + 1; // L: 119
}
@ObfuscatedName("im")
@@ -75,47 +75,47 @@ public final class FloorDecoration {
garbageValue = "-74"
)
static void method2931(int var0, String var1) {
int var2 = Players.Players_count;
int[] var3 = Players.Players_indices;
boolean var4 = false;
Username var5 = new Username(var1, GrandExchangeOfferUnitPriceComparator.loginType);
int var2 = Players.Players_count; // L: 8288
int[] var3 = Players.Players_indices; // L: 8289
boolean var4 = false; // L: 8290
Username var5 = new Username(var1, GrandExchangeOfferUnitPriceComparator.loginType); // L: 8291
for (int var6 = 0; var6 < var2; ++var6) {
Player var7 = Client.players[var3[var6]];
if (var7 != null && var7 != PlayerAppearance.localPlayer && var7.username != null && var7.username.equals(var5)) {
for (int var6 = 0; var6 < var2; ++var6) { // L: 8292
Player var7 = Client.players[var3[var6]]; // L: 8293
if (var7 != null && var7 != PlayerAppearance.localPlayer && var7.username != null && var7.username.equals(var5)) { // L: 8294
PacketBufferNode var8;
if (var0 == 1) {
var8 = ItemContainer.getPacketBufferNode(ClientPacket.field2260, Client.packetWriter.isaacCipher);
var8.packetBuffer.method5568(0);
var8.packetBuffer.writeShortLE(var3[var6]);
Client.packetWriter.addNode(var8);
} else if (var0 == 4) {
var8 = ItemContainer.getPacketBufferNode(ClientPacket.field2312, Client.packetWriter.isaacCipher);
var8.packetBuffer.writeShortLE(var3[var6]);
var8.packetBuffer.method5568(0);
Client.packetWriter.addNode(var8);
} else if (var0 == 6) {
var8 = ItemContainer.getPacketBufferNode(ClientPacket.field2242, Client.packetWriter.isaacCipher);
var8.packetBuffer.method5568(0);
var8.packetBuffer.method5578(var3[var6]);
Client.packetWriter.addNode(var8);
} else if (var0 == 7) {
var8 = ItemContainer.getPacketBufferNode(ClientPacket.field2268, Client.packetWriter.isaacCipher);
var8.packetBuffer.method5578(var3[var6]);
var8.packetBuffer.writeIntME(0);
Client.packetWriter.addNode(var8);
if (var0 == 1) { // L: 8295
var8 = ItemContainer.getPacketBufferNode(ClientPacket.field2260, Client.packetWriter.isaacCipher); // L: 8297
var8.packetBuffer.method5568(0); // L: 8298
var8.packetBuffer.writeShortLE(var3[var6]); // L: 8299
Client.packetWriter.addNode(var8); // L: 8300
} else if (var0 == 4) { // L: 8302
var8 = ItemContainer.getPacketBufferNode(ClientPacket.field2312, Client.packetWriter.isaacCipher); // L: 8304
var8.packetBuffer.writeShortLE(var3[var6]); // L: 8305
var8.packetBuffer.method5568(0); // L: 8306
Client.packetWriter.addNode(var8); // L: 8307
} else if (var0 == 6) { // L: 8309
var8 = ItemContainer.getPacketBufferNode(ClientPacket.field2242, Client.packetWriter.isaacCipher); // L: 8311
var8.packetBuffer.method5568(0); // L: 8312
var8.packetBuffer.method5578(var3[var6]); // L: 8313
Client.packetWriter.addNode(var8); // L: 8314
} else if (var0 == 7) { // L: 8316
var8 = ItemContainer.getPacketBufferNode(ClientPacket.field2268, Client.packetWriter.isaacCipher); // L: 8318
var8.packetBuffer.method5578(var3[var6]); // L: 8319
var8.packetBuffer.writeIntME(0); // L: 8320
Client.packetWriter.addNode(var8); // L: 8321
}
var4 = true;
var4 = true; // L: 8323
break;
}
}
if (!var4) {
if (!var4) { // L: 8327
class234.addGameMessage(4, "", "Unable to find " + var1);
}
}
} // L: 8328
@ObfuscatedName("jb")
@ObfuscatedSignature(
@@ -124,87 +124,87 @@ public final class FloorDecoration {
)
@Export("addPlayerToMenu")
static final void addPlayerToMenu(Player var0, int var1, int var2, int var3) {
if (PlayerAppearance.localPlayer != var0) {
if (Client.menuOptionsCount < 400) {
if (PlayerAppearance.localPlayer != var0) { // L: 8826
if (Client.menuOptionsCount < 400) { // L: 8827
String var4;
int var7;
if (var0.skillLevel == 0) {
String var5 = var0.actions[0] + var0.username + var0.actions[1];
var7 = var0.combatLevel;
int var8 = PlayerAppearance.localPlayer.combatLevel;
int var9 = var8 - var7;
if (var0.skillLevel == 0) { // L: 8829
String var5 = var0.actions[0] + var0.username + var0.actions[1]; // L: 8830
var7 = var0.combatLevel; // L: 8832
int var8 = PlayerAppearance.localPlayer.combatLevel; // L: 8833
int var9 = var8 - var7; // L: 8835
String var6;
if (var9 < -9) {
var6 = class23.colorStartTag(16711680);
} else if (var9 < -6) {
var6 = class23.colorStartTag(16723968);
} else if (var9 < -3) {
var6 = class23.colorStartTag(16740352);
} else if (var9 < 0) {
var6 = class23.colorStartTag(16756736);
} else if (var9 > 9) {
var6 = class23.colorStartTag(65280);
} else if (var9 > 6) {
var6 = class23.colorStartTag(4259584);
} else if (var9 > 3) {
var6 = class23.colorStartTag(8453888);
} else if (var9 > 0) {
var6 = class23.colorStartTag(12648192);
if (var9 < -9) { // L: 8836
var6 = class23.colorStartTag(16711680); // L: 8837
} else if (var9 < -6) { // L: 8840
var6 = class23.colorStartTag(16723968); // L: 8841
} else if (var9 < -3) { // L: 8844
var6 = class23.colorStartTag(16740352); // L: 8845
} else if (var9 < 0) { // L: 8848
var6 = class23.colorStartTag(16756736); // L: 8849
} else if (var9 > 9) { // L: 8852
var6 = class23.colorStartTag(65280); // L: 8853
} else if (var9 > 6) { // L: 8856
var6 = class23.colorStartTag(4259584); // L: 8857
} else if (var9 > 3) { // L: 8860
var6 = class23.colorStartTag(8453888); // L: 8861
} else if (var9 > 0) { // L: 8864
var6 = class23.colorStartTag(12648192); // L: 8865
} else {
var6 = class23.colorStartTag(16776960);
var6 = class23.colorStartTag(16776960); // L: 8868
}
var4 = var5 + var6 + " " + " (" + "level-" + var0.combatLevel + ")" + var0.actions[2];
var4 = var5 + var6 + " " + " (" + "level-" + var0.combatLevel + ")" + var0.actions[2]; // L: 8870
} else {
var4 = var0.actions[0] + var0.username + var0.actions[1] + " " + " (" + "skill-" + var0.skillLevel + ")" + var0.actions[2];
var4 = var0.actions[0] + var0.username + var0.actions[1] + " " + " (" + "skill-" + var0.skillLevel + ")" + var0.actions[2]; // L: 8872
}
int var10;
if (Client.isItemSelected == 1) {
WorldMapRegion.insertMenuItemNoShift("Use", Client.selectedItemName + " " + "->" + " " + class23.colorStartTag(16777215) + var4, 14, var1, var2, var3);
} else if (Client.isSpellSelected) {
if ((Player.selectedSpellFlags & 8) == 8) {
WorldMapRegion.insertMenuItemNoShift(Client.selectedSpellActionName, Client.selectedSpellName + " " + "->" + " " + class23.colorStartTag(16777215) + var4, 15, var1, var2, var3);
if (Client.isItemSelected == 1) { // L: 8873
WorldMapRegion.insertMenuItemNoShift("Use", Client.selectedItemName + " " + "->" + " " + class23.colorStartTag(16777215) + var4, 14, var1, var2, var3); // L: 8874
} else if (Client.isSpellSelected) { // L: 8877
if ((Player.selectedSpellFlags & 8) == 8) { // L: 8878
WorldMapRegion.insertMenuItemNoShift(Client.selectedSpellActionName, Client.selectedSpellName + " " + "->" + " " + class23.colorStartTag(16777215) + var4, 15, var1, var2, var3); // L: 8879
}
} else {
for (var10 = 7; var10 >= 0; --var10) {
if (Client.playerMenuActions[var10] != null) {
short var11 = 0;
if (Client.playerMenuActions[var10].equalsIgnoreCase("Attack")) {
if (AttackOption.AttackOption_hidden == Client.playerAttackOption) {
for (var10 = 7; var10 >= 0; --var10) { // L: 8884
if (Client.playerMenuActions[var10] != null) { // L: 8885
short var11 = 0; // L: 8886
if (Client.playerMenuActions[var10].equalsIgnoreCase("Attack")) { // L: 8887
if (AttackOption.AttackOption_hidden == Client.playerAttackOption) { // L: 8888
continue;
}
if (Client.playerAttackOption == AttackOption.AttackOption_alwaysRightClick || AttackOption.AttackOption_dependsOnCombatLevels == Client.playerAttackOption && var0.combatLevel > PlayerAppearance.localPlayer.combatLevel) {
var11 = 2000;
if (Client.playerAttackOption == AttackOption.AttackOption_alwaysRightClick || AttackOption.AttackOption_dependsOnCombatLevels == Client.playerAttackOption && var0.combatLevel > PlayerAppearance.localPlayer.combatLevel) { // L: 8889
var11 = 2000; // L: 8890
}
if (PlayerAppearance.localPlayer.team != 0 && var0.team != 0) {
if (var0.team == PlayerAppearance.localPlayer.team) {
if (PlayerAppearance.localPlayer.team != 0 && var0.team != 0) { // L: 8892
if (var0.team == PlayerAppearance.localPlayer.team) { // L: 8893
var11 = 2000;
} else {
var11 = 0;
var11 = 0; // L: 8894
}
}
} else if (Client.playerOptionsPriorities[var10]) {
} else if (Client.playerOptionsPriorities[var10]) { // L: 8897
var11 = 2000;
}
boolean var12 = false;
var7 = Client.playerMenuOpcodes[var10] + var11;
WorldMapRegion.insertMenuItemNoShift(Client.playerMenuActions[var10], class23.colorStartTag(16777215) + var4, var7, var1, var2, var3);
boolean var12 = false; // L: 8898
var7 = Client.playerMenuOpcodes[var10] + var11; // L: 8899
WorldMapRegion.insertMenuItemNoShift(Client.playerMenuActions[var10], class23.colorStartTag(16777215) + var4, var7, var1, var2, var3); // L: 8900
}
}
}
for (var10 = 0; var10 < Client.menuOptionsCount; ++var10) {
if (Client.menuOpcodes[var10] == 23) {
Client.menuTargets[var10] = class23.colorStartTag(16777215) + var4;
for (var10 = 0; var10 < Client.menuOptionsCount; ++var10) { // L: 8905
if (Client.menuOpcodes[var10] == 23) { // L: 8906
Client.menuTargets[var10] = class23.colorStartTag(16777215) + var4; // L: 8907
break;
}
}
}
}
}
} // L: 8911
}

View File

@@ -78,15 +78,15 @@ public class FloorOverlayDefinition extends DualNode {
public int secondaryLightness;
static {
FloorOverlayDefinition_cached = new EvictingDualNodeHashTable(64);
FloorOverlayDefinition_cached = new EvictingDualNodeHashTable(64); // L: 11
}
FloorOverlayDefinition() {
this.primaryRgb = 0;
this.texture = -1;
this.hideUnderlay = true;
this.secondaryRgb = -1;
}
this.primaryRgb = 0; // L: 12
this.texture = -1; // L: 13
this.hideUnderlay = true; // L: 14
this.secondaryRgb = -1; // L: 15
} // L: 23
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -95,15 +95,15 @@ public class FloorOverlayDefinition extends DualNode {
)
@Export("postDecode")
void postDecode() {
if (this.secondaryRgb != -1) {
this.setHsl(this.secondaryRgb);
this.secondaryHue = this.hue;
this.secondarySaturation = this.saturation;
this.secondaryLightness = this.lightness;
if (this.secondaryRgb != -1) { // L: 41
this.setHsl(this.secondaryRgb); // L: 42
this.secondaryHue = this.hue; // L: 43
this.secondarySaturation = this.saturation; // L: 44
this.secondaryLightness = this.lightness; // L: 45
}
this.setHsl(this.primaryRgb);
}
this.setHsl(this.primaryRgb); // L: 47
} // L: 48
@ObfuscatedName("w")
@ObfuscatedSignature(
@@ -113,12 +113,12 @@ public class FloorOverlayDefinition extends DualNode {
@Export("decode")
void decode(Buffer var1, int var2) {
while (true) {
int var3 = var1.readUnsignedByte();
if (var3 == 0) {
return;
int var3 = var1.readUnsignedByte(); // L: 52
if (var3 == 0) { // L: 53
return; // L: 56
}
this.decodeNext(var1, var3, var2);
this.decodeNext(var1, var3, var2); // L: 54
}
}
@@ -129,18 +129,18 @@ public class FloorOverlayDefinition extends DualNode {
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2, int var3) {
if (var2 == 1) {
if (var2 == 1) { // L: 59
this.primaryRgb = var1.readMedium();
} else if (var2 == 2) {
this.texture = var1.readUnsignedByte();
} else if (var2 == 5) {
this.texture = var1.readUnsignedByte(); // L: 60
} else if (var2 == 5) { // L: 61
this.hideUnderlay = false;
} else if (var2 == 7) {
} else if (var2 == 7) { // L: 62
this.secondaryRgb = var1.readMedium();
} else if (var2 == 8) {
} else if (var2 == 8) { // L: 63
}
}
} // L: 65
@ObfuscatedName("j")
@ObfuscatedSignature(
@@ -149,65 +149,65 @@ public class FloorOverlayDefinition extends DualNode {
)
@Export("setHsl")
void setHsl(int var1) {
double var2 = (double)(var1 >> 16 & 255) / 256.0D;
double var4 = (double)(var1 >> 8 & 255) / 256.0D;
double var6 = (double)(var1 & 255) / 256.0D;
double var8 = var2;
if (var4 < var2) {
double var2 = (double)(var1 >> 16 & 255) / 256.0D; // L: 68
double var4 = (double)(var1 >> 8 & 255) / 256.0D; // L: 69
double var6 = (double)(var1 & 255) / 256.0D; // L: 70
double var8 = var2; // L: 71
if (var4 < var2) { // L: 72
var8 = var4;
}
if (var6 < var8) {
if (var6 < var8) { // L: 73
var8 = var6;
}
double var10 = var2;
if (var4 > var2) {
double var10 = var2; // L: 74
if (var4 > var2) { // L: 75
var10 = var4;
}
if (var6 > var10) {
if (var6 > var10) { // L: 76
var10 = var6;
}
double var12 = 0.0D;
double var14 = 0.0D;
double var16 = (var10 + var8) / 2.0D;
if (var8 != var10) {
if (var16 < 0.5D) {
double var12 = 0.0D; // L: 77
double var14 = 0.0D; // L: 78
double var16 = (var10 + var8) / 2.0D; // L: 79
if (var8 != var10) { // L: 80
if (var16 < 0.5D) { // L: 81
var14 = (var10 - var8) / (var8 + var10);
}
if (var16 >= 0.5D) {
if (var16 >= 0.5D) { // L: 82
var14 = (var10 - var8) / (2.0D - var10 - var8);
}
if (var10 == var2) {
if (var10 == var2) { // L: 83
var12 = (var4 - var6) / (var10 - var8);
} else if (var10 == var4) {
} else if (var10 == var4) { // L: 84
var12 = 2.0D + (var6 - var2) / (var10 - var8);
} else if (var6 == var10) {
var12 = 4.0D + (var2 - var4) / (var10 - var8);
var12 = 4.0D + (var2 - var4) / (var10 - var8); // L: 85
}
}
var12 /= 6.0D;
this.hue = (int)(256.0D * var12);
this.saturation = (int)(var14 * 256.0D);
this.lightness = (int)(var16 * 256.0D);
if (this.saturation < 0) {
var12 /= 6.0D; // L: 87
this.hue = (int)(256.0D * var12); // L: 88
this.saturation = (int)(var14 * 256.0D); // L: 89
this.lightness = (int)(var16 * 256.0D); // L: 90
if (this.saturation < 0) { // L: 91
this.saturation = 0;
} else if (this.saturation > 255) {
} else if (this.saturation > 255) { // L: 92
this.saturation = 255;
}
if (this.lightness < 0) {
if (this.lightness < 0) { // L: 93
this.lightness = 0;
} else if (this.lightness > 255) {
} else if (this.lightness > 255) { // L: 94
this.lightness = 255;
}
}
} // L: 95
@ObfuscatedName("p")
@ObfuscatedSignature(
@@ -215,15 +215,15 @@ public class FloorOverlayDefinition extends DualNode {
garbageValue = "-54"
)
public static IndexedSprite method4789(AbstractArchive var0, int var1) {
byte[] var3 = var0.takeFileFlat(var1);
byte[] var3 = var0.takeFileFlat(var1); // L: 153
boolean var2;
if (var3 == null) {
var2 = false;
if (var3 == null) { // L: 154
var2 = false; // L: 155
} else {
class232.SpriteBuffer_decode(var3);
var2 = true;
class232.SpriteBuffer_decode(var3); // L: 158
var2 = true; // L: 159
}
return !var2 ? null : PrivateChatMode.method5937();
return !var2 ? null : PrivateChatMode.method5937(); // L: 161 162
}
}

View File

@@ -52,12 +52,12 @@ public class FloorUnderlayDefinition extends DualNode {
public int hueMultiplier;
static {
FloorUnderlayDefinition_cached = new EvictingDualNodeHashTable(64);
FloorUnderlayDefinition_cached = new EvictingDualNodeHashTable(64); // L: 11
}
FloorUnderlayDefinition() {
this.rgb = 0;
}
this.rgb = 0; // L: 12
} // L: 18
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -66,8 +66,8 @@ public class FloorUnderlayDefinition extends DualNode {
)
@Export("postDecode")
void postDecode() {
this.setHsl(this.rgb);
}
this.setHsl(this.rgb); // L: 32
} // L: 33
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -77,12 +77,12 @@ public class FloorUnderlayDefinition extends DualNode {
@Export("decode")
void decode(Buffer var1, int var2) {
while (true) {
int var3 = var1.readUnsignedByte();
if (var3 == 0) {
return;
int var3 = var1.readUnsignedByte(); // L: 37
if (var3 == 0) { // L: 38
return; // L: 41
}
this.decodeNext(var1, var3, var2);
this.decodeNext(var1, var3, var2); // L: 39
}
}
@@ -93,11 +93,11 @@ public class FloorUnderlayDefinition extends DualNode {
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2, int var3) {
if (var2 == 1) {
if (var2 == 1) { // L: 44
this.rgb = var1.readMedium();
}
}
} // L: 46
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -106,75 +106,75 @@ public class FloorUnderlayDefinition extends DualNode {
)
@Export("setHsl")
void setHsl(int var1) {
double var2 = (double)(var1 >> 16 & 255) / 256.0D;
double var4 = (double)(var1 >> 8 & 255) / 256.0D;
double var6 = (double)(var1 & 255) / 256.0D;
double var8 = var2;
if (var4 < var2) {
double var2 = (double)(var1 >> 16 & 255) / 256.0D; // L: 49
double var4 = (double)(var1 >> 8 & 255) / 256.0D; // L: 50
double var6 = (double)(var1 & 255) / 256.0D; // L: 51
double var8 = var2; // L: 52
if (var4 < var2) { // L: 53
var8 = var4;
}
if (var6 < var8) {
if (var6 < var8) { // L: 54
var8 = var6;
}
double var10 = var2;
if (var4 > var2) {
double var10 = var2; // L: 55
if (var4 > var2) { // L: 56
var10 = var4;
}
if (var6 > var10) {
if (var6 > var10) { // L: 57
var10 = var6;
}
double var12 = 0.0D;
double var14 = 0.0D;
double var16 = (var8 + var10) / 2.0D;
if (var8 != var10) {
if (var16 < 0.5D) {
double var12 = 0.0D; // L: 58
double var14 = 0.0D; // L: 59
double var16 = (var8 + var10) / 2.0D; // L: 60
if (var8 != var10) { // L: 61
if (var16 < 0.5D) { // L: 62
var14 = (var10 - var8) / (var8 + var10);
}
if (var16 >= 0.5D) {
if (var16 >= 0.5D) { // L: 63
var14 = (var10 - var8) / (2.0D - var10 - var8);
}
if (var2 == var10) {
if (var2 == var10) { // L: 64
var12 = (var4 - var6) / (var10 - var8);
} else if (var10 == var4) {
} else if (var10 == var4) { // L: 65
var12 = 2.0D + (var6 - var2) / (var10 - var8);
} else if (var6 == var10) {
var12 = 4.0D + (var2 - var4) / (var10 - var8);
var12 = 4.0D + (var2 - var4) / (var10 - var8); // L: 66
}
}
var12 /= 6.0D;
this.saturation = (int)(var14 * 256.0D);
this.lightness = (int)(256.0D * var16);
if (this.saturation < 0) {
var12 /= 6.0D; // L: 68
this.saturation = (int)(var14 * 256.0D); // L: 69
this.lightness = (int)(256.0D * var16); // L: 70
if (this.saturation < 0) { // L: 71
this.saturation = 0;
} else if (this.saturation > 255) {
} else if (this.saturation > 255) { // L: 72
this.saturation = 255;
}
if (this.lightness < 0) {
if (this.lightness < 0) { // L: 73
this.lightness = 0;
} else if (this.lightness > 255) {
} else if (this.lightness > 255) { // L: 74
this.lightness = 255;
}
if (var16 > 0.5D) {
if (var16 > 0.5D) { // L: 75
this.hueMultiplier = (int)(var14 * (1.0D - var16) * 512.0D);
} else {
this.hueMultiplier = (int)(var16 * var14 * 512.0D);
this.hueMultiplier = (int)(var16 * var14 * 512.0D); // L: 76
}
if (this.hueMultiplier < 1) {
if (this.hueMultiplier < 1) { // L: 77
this.hueMultiplier = 1;
}
this.hue = (int)((double)this.hueMultiplier * var12);
}
this.hue = (int)((double)this.hueMultiplier * var12); // L: 78
} // L: 79
@ObfuscatedName("ah")
@ObfuscatedSignature(
@@ -183,35 +183,35 @@ public class FloorUnderlayDefinition extends DualNode {
)
static int method4460(int var0, Script var1, boolean var2) {
int var3;
if (var0 == ScriptOpcodes.CAM_FORCEANGLE) {
VarcInt.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
int var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
if (!Client.isCameraLocked) {
Client.camAngleX = var3;
Client.camAngleY = var4;
if (var0 == ScriptOpcodes.CAM_FORCEANGLE) { // L: 3211
VarcInt.Interpreter_intStackSize -= 2; // L: 3212
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 3213
int var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 3214
if (!Client.isCameraLocked) { // L: 3215
Client.camAngleX = var3; // L: 3216
Client.camAngleY = var4; // L: 3217
}
return 1;
} else if (var0 == ScriptOpcodes.CAM_GETANGLE_XA) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.camAngleX;
return 1;
} else if (var0 == ScriptOpcodes.CAM_GETANGLE_YA) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.camAngleY;
return 1;
} else if (var0 == ScriptOpcodes.CAM_SETFOLLOWHEIGHT) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (var3 < 0) {
return 1; // L: 3219
} else if (var0 == ScriptOpcodes.CAM_GETANGLE_XA) { // L: 3221
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.camAngleX; // L: 3222
return 1; // L: 3223
} else if (var0 == ScriptOpcodes.CAM_GETANGLE_YA) { // L: 3225
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.camAngleY; // L: 3226
return 1; // L: 3227
} else if (var0 == ScriptOpcodes.CAM_SETFOLLOWHEIGHT) { // L: 3229
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 3230
if (var3 < 0) { // L: 3231
var3 = 0;
}
Client.camFollowHeight = var3;
return 1;
} else if (var0 == ScriptOpcodes.CAM_GETFOLLOWHEIGHT) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.camFollowHeight;
return 1;
Client.camFollowHeight = var3; // L: 3232
return 1; // L: 3233
} else if (var0 == ScriptOpcodes.CAM_GETFOLLOWHEIGHT) { // L: 3235
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.camFollowHeight; // L: 3236
return 1; // L: 3237
} else {
return 2;
return 2; // L: 3239
}
}
}

View File

@@ -6,94 +6,94 @@ import net.runelite.mapping.ObfuscatedName;
@Implements("Font")
public final class Font extends AbstractFont {
public Font(byte[] var1, int[] var2, int[] var3, int[] var4, int[] var5, int[] var6, byte[][] var7) {
super(var1, var2, var3, var4, var5, var6, var7);
}
super(var1, var2, var3, var4, var5, var6, var7); // L: 7
} // L: 8
public Font(byte[] var1) {
super(var1);
}
super(var1); // L: 11
} // L: 12
@ObfuscatedName("h")
@Export("drawGlyph")
final void drawGlyph(byte[] var1, int var2, int var3, int var4, int var5, int var6) {
int var7 = var3 * Rasterizer2D.Rasterizer2D_width + var2;
int var8 = Rasterizer2D.Rasterizer2D_width - var4;
int var9 = 0;
int var10 = 0;
int var7 = var3 * Rasterizer2D.Rasterizer2D_width + var2; // L: 15
int var8 = Rasterizer2D.Rasterizer2D_width - var4; // L: 16
int var9 = 0; // L: 17
int var10 = 0; // L: 18
int var11;
if (var3 < Rasterizer2D.Rasterizer2D_yClipStart) {
var11 = Rasterizer2D.Rasterizer2D_yClipStart - var3;
var5 -= var11;
var3 = Rasterizer2D.Rasterizer2D_yClipStart;
var10 += var11 * var4;
var7 += var11 * Rasterizer2D.Rasterizer2D_width;
if (var3 < Rasterizer2D.Rasterizer2D_yClipStart) { // L: 19
var11 = Rasterizer2D.Rasterizer2D_yClipStart - var3; // L: 20
var5 -= var11; // L: 21
var3 = Rasterizer2D.Rasterizer2D_yClipStart; // L: 22
var10 += var11 * var4; // L: 23
var7 += var11 * Rasterizer2D.Rasterizer2D_width; // L: 24
}
if (var3 + var5 > Rasterizer2D.Rasterizer2D_yClipEnd) {
if (var3 + var5 > Rasterizer2D.Rasterizer2D_yClipEnd) { // L: 26
var5 -= var3 + var5 - Rasterizer2D.Rasterizer2D_yClipEnd;
}
if (var2 < Rasterizer2D.Rasterizer2D_xClipStart) {
var11 = Rasterizer2D.Rasterizer2D_xClipStart - var2;
var4 -= var11;
var2 = Rasterizer2D.Rasterizer2D_xClipStart;
var10 += var11;
var7 += var11;
var9 += var11;
var8 += var11;
if (var2 < Rasterizer2D.Rasterizer2D_xClipStart) { // L: 27
var11 = Rasterizer2D.Rasterizer2D_xClipStart - var2; // L: 28
var4 -= var11; // L: 29
var2 = Rasterizer2D.Rasterizer2D_xClipStart; // L: 30
var10 += var11; // L: 31
var7 += var11; // L: 32
var9 += var11; // L: 33
var8 += var11; // L: 34
}
if (var2 + var4 > Rasterizer2D.Rasterizer2D_xClipEnd) {
var11 = var2 + var4 - Rasterizer2D.Rasterizer2D_xClipEnd;
var4 -= var11;
var9 += var11;
var8 += var11;
if (var2 + var4 > Rasterizer2D.Rasterizer2D_xClipEnd) { // L: 36
var11 = var2 + var4 - Rasterizer2D.Rasterizer2D_xClipEnd; // L: 37
var4 -= var11; // L: 38
var9 += var11; // L: 39
var8 += var11; // L: 40
}
if (var4 > 0 && var5 > 0) {
AbstractFont.AbstractFont_placeGlyph(Rasterizer2D.Rasterizer2D_pixels, var1, var6, var10, var7, var4, var5, var8, var9);
if (var4 > 0 && var5 > 0) { // L: 42
AbstractFont.AbstractFont_placeGlyph(Rasterizer2D.Rasterizer2D_pixels, var1, var6, var10, var7, var4, var5, var8, var9); // L: 43
}
}
} // L: 44
@ObfuscatedName("v")
@Export("drawGlyphAlpha")
final void drawGlyphAlpha(byte[] var1, int var2, int var3, int var4, int var5, int var6, int var7) {
int var8 = var3 * Rasterizer2D.Rasterizer2D_width + var2;
int var9 = Rasterizer2D.Rasterizer2D_width - var4;
int var10 = 0;
int var11 = 0;
int var8 = var3 * Rasterizer2D.Rasterizer2D_width + var2; // L: 47
int var9 = Rasterizer2D.Rasterizer2D_width - var4; // L: 48
int var10 = 0; // L: 49
int var11 = 0; // L: 50
int var12;
if (var3 < Rasterizer2D.Rasterizer2D_yClipStart) {
var12 = Rasterizer2D.Rasterizer2D_yClipStart - var3;
var5 -= var12;
var3 = Rasterizer2D.Rasterizer2D_yClipStart;
var11 += var12 * var4;
var8 += var12 * Rasterizer2D.Rasterizer2D_width;
if (var3 < Rasterizer2D.Rasterizer2D_yClipStart) { // L: 51
var12 = Rasterizer2D.Rasterizer2D_yClipStart - var3; // L: 52
var5 -= var12; // L: 53
var3 = Rasterizer2D.Rasterizer2D_yClipStart; // L: 54
var11 += var12 * var4; // L: 55
var8 += var12 * Rasterizer2D.Rasterizer2D_width; // L: 56
}
if (var3 + var5 > Rasterizer2D.Rasterizer2D_yClipEnd) {
if (var3 + var5 > Rasterizer2D.Rasterizer2D_yClipEnd) { // L: 58
var5 -= var3 + var5 - Rasterizer2D.Rasterizer2D_yClipEnd;
}
if (var2 < Rasterizer2D.Rasterizer2D_xClipStart) {
var12 = Rasterizer2D.Rasterizer2D_xClipStart - var2;
var4 -= var12;
var2 = Rasterizer2D.Rasterizer2D_xClipStart;
var11 += var12;
var8 += var12;
var10 += var12;
var9 += var12;
if (var2 < Rasterizer2D.Rasterizer2D_xClipStart) { // L: 59
var12 = Rasterizer2D.Rasterizer2D_xClipStart - var2; // L: 60
var4 -= var12; // L: 61
var2 = Rasterizer2D.Rasterizer2D_xClipStart; // L: 62
var11 += var12; // L: 63
var8 += var12; // L: 64
var10 += var12; // L: 65
var9 += var12; // L: 66
}
if (var2 + var4 > Rasterizer2D.Rasterizer2D_xClipEnd) {
var12 = var2 + var4 - Rasterizer2D.Rasterizer2D_xClipEnd;
var4 -= var12;
var10 += var12;
var9 += var12;
if (var2 + var4 > Rasterizer2D.Rasterizer2D_xClipEnd) { // L: 68
var12 = var2 + var4 - Rasterizer2D.Rasterizer2D_xClipEnd; // L: 69
var4 -= var12; // L: 70
var10 += var12; // L: 71
var9 += var12; // L: 72
}
if (var4 > 0 && var5 > 0) {
AbstractFont.AbstractFont_placeGlyphAlpha(Rasterizer2D.Rasterizer2D_pixels, var1, var6, var11, var8, var4, var5, var9, var10, var7);
if (var4 > 0 && var5 > 0) { // L: 74
AbstractFont.AbstractFont_placeGlyphAlpha(Rasterizer2D.Rasterizer2D_pixels, var1, var6, var11, var8, var4, var5, var9, var10, var7); // L: 75
}
}
} // L: 76
}

File diff suppressed because it is too large Load Diff

View File

@@ -27,10 +27,10 @@ public class Fonts {
descriptor = "(Lib;Lib;)V"
)
public Fonts(AbstractArchive var1, AbstractArchive var2) {
this.spritesArchive = var1;
this.fontsArchive = var2;
this.map = new HashMap();
}
this.spritesArchive = var1; // L: 14
this.fontsArchive = var2; // L: 15
this.map = new HashMap(); // L: 16
} // L: 17
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -39,22 +39,22 @@ public class Fonts {
)
@Export("createMap")
public HashMap createMap(FontName[] var1) {
HashMap var2 = new HashMap();
FontName[] var3 = var1;
HashMap var2 = new HashMap(); // L: 20
FontName[] var3 = var1; // L: 22
for (int var4 = 0; var4 < var3.length; ++var4) {
FontName var5 = var3[var4];
if (this.map.containsKey(var5)) {
var2.put(var5, this.map.get(var5));
for (int var4 = 0; var4 < var3.length; ++var4) { // L: 23
FontName var5 = var3[var4]; // L: 24
if (this.map.containsKey(var5)) { // L: 26
var2.put(var5, this.map.get(var5)); // L: 27
} else {
Font var6 = class169.method3534(this.spritesArchive, this.fontsArchive, var5.name, "");
if (var6 != null) {
this.map.put(var5, var6);
var2.put(var5, var6);
Font var6 = class169.method3534(this.spritesArchive, this.fontsArchive, var5.name, ""); // L: 30
if (var6 != null) { // L: 31
this.map.put(var5, var6); // L: 32
var2.put(var5, var6); // L: 33
}
}
}
return var2;
return var2; // L: 39
}
}

View File

@@ -19,38 +19,38 @@ public class Frames extends DualNode {
)
Frames(AbstractArchive var1, AbstractArchive var2, int var3, boolean var4) {
NodeDeque var5 = new NodeDeque();
int var6 = var1.getGroupFileCount(var3);
this.frames = new Animation[var6];
int[] var7 = var1.getGroupFileIds(var3);
int var6 = var1.getGroupFileCount(var3); // L: 36
this.frames = new Animation[var6]; // L: 37
int[] var7 = var1.getGroupFileIds(var3); // L: 38
for (int var8 = 0; var8 < var7.length; ++var8) {
byte[] var9 = var1.takeFile(var3, var7[var8]);
Skeleton var10 = null;
int var11 = (var9[0] & 255) << 8 | var9[1] & 255;
for (int var8 = 0; var8 < var7.length; ++var8) { // L: 39
byte[] var9 = var1.takeFile(var3, var7[var8]); // L: 40
Skeleton var10 = null; // L: 41
int var11 = (var9[0] & 255) << 8 | var9[1] & 255; // L: 42
for (Skeleton var12 = (Skeleton)var5.last(); var12 != null; var12 = (Skeleton)var5.previous()) {
if (var11 == var12.id) {
var10 = var12;
for (Skeleton var12 = (Skeleton)var5.last(); var12 != null; var12 = (Skeleton)var5.previous()) { // L: 43 44 49
if (var11 == var12.id) { // L: 45
var10 = var12; // L: 46
break;
}
}
if (var10 == null) {
if (var10 == null) { // L: 51
byte[] var13;
if (var4) {
if (var4) { // L: 53
var13 = var2.getFile(0, var11);
} else {
var13 = var2.getFile(var11, 0);
var13 = var2.getFile(var11, 0); // L: 54
}
var10 = new Skeleton(var11, var13);
var5.addFirst(var10);
var10 = new Skeleton(var11, var13); // L: 55
var5.addFirst(var10); // L: 56
}
this.frames[var7[var8]] = new Animation(var9, var10);
this.frames[var7[var8]] = new Animation(var9, var10); // L: 58
}
}
} // L: 60
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -59,7 +59,7 @@ public class Frames extends DualNode {
)
@Export("hasAlphaTransform")
public boolean hasAlphaTransform(int var1) {
return this.frames[var1].hasAlphaTransform;
return this.frames[var1].hasAlphaTransform; // L: 63
}
@ObfuscatedName("x")
@@ -68,21 +68,21 @@ public class Frames extends DualNode {
garbageValue = "-67"
)
static int method3356(int var0, int var1) {
ItemContainer var2 = (ItemContainer)ItemContainer.itemContainers.get((long)var0);
if (var2 == null) {
ItemContainer var2 = (ItemContainer)ItemContainer.itemContainers.get((long)var0); // L: 28
if (var2 == null) { // L: 29
return 0;
} else if (var1 == -1) {
} else if (var1 == -1) { // L: 30
return 0;
} else {
int var3 = 0;
int var3 = 0; // L: 31
for (int var4 = 0; var4 < var2.quantities.length; ++var4) {
for (int var4 = 0; var4 < var2.quantities.length; ++var4) { // L: 32
if (var2.ids[var4] == var1) {
var3 += var2.quantities[var4];
var3 += var2.quantities[var4]; // L: 33
}
}
return var3;
return var3; // L: 35
}
}
@@ -93,49 +93,49 @@ public class Frames extends DualNode {
)
static int method3354(int var0, Script var1, boolean var2) {
Widget var6;
if (var0 != ScriptOpcodes.CC_CALLONRESIZE && var0 != ScriptOpcodes.IF_CALLONRESIZE) {
if (var0 != ScriptOpcodes.CC_CALLONRESIZE && var0 != ScriptOpcodes.IF_CALLONRESIZE) { // L: 1145
int var4;
if (var0 == 1928) {
var6 = var2 ? PlayerAppearance.field2561 : VarcInt.field3264;
var4 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (var4 >= 1 && var4 <= 10) {
class3.widgetDefaultMenuAction(var4, var6.id, var6.childIndex, var6.itemId, "");
return 1;
if (var0 == 1928) { // L: 1162
var6 = var2 ? PlayerAppearance.field2561 : VarcInt.field3264; // L: 1163
var4 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 1164
if (var4 >= 1 && var4 <= 10) { // L: 1165
class3.widgetDefaultMenuAction(var4, var6.id, var6.childIndex, var6.itemId, ""); // L: 1168
return 1; // L: 1169
} else {
throw new RuntimeException();
throw new RuntimeException(); // L: 1166
}
} else if (var0 == 2928) {
VarcInt.Interpreter_intStackSize -= 3;
int var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
int var5 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 2];
if (var5 >= 1 && var5 <= 10) {
class3.widgetDefaultMenuAction(var5, var3, var4, CollisionMap.getWidget(var3).itemId, "");
return 1;
} else if (var0 == 2928) { // L: 1171
VarcInt.Interpreter_intStackSize -= 3; // L: 1172
int var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 1173
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 1174
int var5 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 2]; // L: 1175
if (var5 >= 1 && var5 <= 10) { // L: 1176
class3.widgetDefaultMenuAction(var5, var3, var4, CollisionMap.getWidget(var3).itemId, ""); // L: 1179
return 1; // L: 1180
} else {
throw new RuntimeException();
throw new RuntimeException(); // L: 1177
}
} else {
return 2;
return 2; // L: 1182
}
} else if (Interpreter.field1097 >= 10) {
throw new RuntimeException();
} else if (Interpreter.field1097 >= 10) { // L: 1146
throw new RuntimeException(); // L: 1147
} else {
if (var0 >= 2000) {
var6 = CollisionMap.getWidget(Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]);
if (var0 >= 2000) { // L: 1150
var6 = CollisionMap.getWidget(Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]); // L: 1151
} else {
var6 = var2 ? PlayerAppearance.field2561 : VarcInt.field3264;
var6 = var2 ? PlayerAppearance.field2561 : VarcInt.field3264; // L: 1153
}
if (var6.onResize == null) {
if (var6.onResize == null) { // L: 1154
return 0;
} else {
ScriptEvent var7 = new ScriptEvent();
var7.widget = var6;
var7.args = var6.onResize;
var7.field569 = Interpreter.field1097 + 1;
Client.scriptEvents.addFirst(var7);
return 1;
ScriptEvent var7 = new ScriptEvent(); // L: 1155
var7.widget = var6; // L: 1156
var7.args = var6.onResize; // L: 1157
var7.field569 = Interpreter.field1097 + 1; // L: 1158
Client.scriptEvents.addFirst(var7); // L: 1159
return 1; // L: 1160
}
}
}
@@ -146,11 +146,11 @@ public class Frames extends DualNode {
garbageValue = "-41"
)
static final void method3352(int var0, int var1, int var2, int var3) {
for (int var4 = 0; var4 < Client.rootWidgetCount; ++var4) {
if (Client.rootWidgetXs[var4] + Client.rootWidgetWidths[var4] > var0 && Client.rootWidgetXs[var4] < var0 + var2 && Client.rootWidgetYs[var4] + Client.rootWidgetHeights[var4] > var1 && Client.rootWidgetYs[var4] < var3 + var1) {
for (int var4 = 0; var4 < Client.rootWidgetCount; ++var4) { // L: 7336
if (Client.rootWidgetXs[var4] + Client.rootWidgetWidths[var4] > var0 && Client.rootWidgetXs[var4] < var0 + var2 && Client.rootWidgetYs[var4] + Client.rootWidgetHeights[var4] > var1 && Client.rootWidgetYs[var4] < var3 + var1) { // L: 7337
Client.field901[var4] = true;
}
}
}
} // L: 7339
}

View File

@@ -12,7 +12,7 @@ public class Friend extends Buddy {
boolean field3667;
Friend() {
}
} // L: 9
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -21,24 +21,24 @@ public class Friend extends Buddy {
)
@Export("compareToFriend")
int compareToFriend(Friend var1) {
if (super.world == Client.worldId && Client.worldId != var1.world) {
if (super.world == Client.worldId && Client.worldId != var1.world) { // L: 12
return -1;
} else if (Client.worldId == var1.world && super.world != Client.worldId) {
} else if (Client.worldId == var1.world && super.world != Client.worldId) { // L: 13
return 1;
} else if (super.world != 0 && var1.world == 0) {
} else if (super.world != 0 && var1.world == 0) { // L: 14
return -1;
} else if (var1.world != 0 && super.world == 0) {
} else if (var1.world != 0 && super.world == 0) { // L: 15
return 1;
} else if (this.field3666 && !var1.field3666) {
} else if (this.field3666 && !var1.field3666) { // L: 16
return -1;
} else if (!this.field3666 && var1.field3666) {
} else if (!this.field3666 && var1.field3666) { // L: 17
return 1;
} else if (this.field3667 && !var1.field3667) {
} else if (this.field3667 && !var1.field3667) { // L: 18
return -1;
} else if (!this.field3667 && var1.field3667) {
} else if (!this.field3667 && var1.field3667) { // L: 19
return 1;
} else {
return super.world != 0 ? super.int2 - var1.int2 : var1.int2 - super.int2;
return super.world != 0 ? super.int2 - var1.int2 : var1.int2 - super.int2; // L: 20 21 24
}
}
@@ -49,10 +49,10 @@ public class Friend extends Buddy {
)
@Export("compareTo_user")
public int compareTo_user(User var1) {
return this.compareToFriend((Friend)var1);
return this.compareToFriend((Friend)var1); // L: 29
}
public int compareTo(Object var1) {
return this.compareToFriend((Friend)var1);
return this.compareToFriend((Friend)var1); // L: 33
}
}

View File

@@ -32,10 +32,10 @@ public class FriendLoginUpdate extends Link {
descriptor = "(Lki;I)V"
)
FriendLoginUpdate(Username var1, int var2) {
this.field3680 = (int)(class298.currentTimeMillis() / 1000L);
this.username = var1;
this.world = (short)var2;
}
this.field3680 = (int)(class298.currentTimeMillis() / 1000L); // L: 106
this.username = var1; // L: 107
this.world = (short)var2; // L: 108
} // L: 109
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -43,7 +43,7 @@ public class FriendLoginUpdate extends Link {
garbageValue = "-1"
)
public static boolean method5290(int var0) {
return var0 >= WorldMapDecorationType.field2761.id && var0 <= WorldMapDecorationType.field2747.id || var0 == WorldMapDecorationType.field2748.id;
return var0 >= WorldMapDecorationType.field2761.id && var0 <= WorldMapDecorationType.field2747.id || var0 == WorldMapDecorationType.field2748.id; // L: 42
}
@ObfuscatedName("l")
@@ -53,6 +53,6 @@ public class FriendLoginUpdate extends Link {
)
@Export("isAlphaNumeric")
public static boolean isAlphaNumeric(char var0) {
return var0 >= '0' && var0 <= '9' || var0 >= 'A' && var0 <= 'Z' || var0 >= 'a' && var0 <= 'z';
return var0 >= '0' && var0 <= '9' || var0 >= 'A' && var0 <= 'Z' || var0 >= 'a' && var0 <= 'z'; // L: 155
}
}

View File

@@ -45,11 +45,11 @@ public class FriendSystem {
descriptor = "(Lmu;)V"
)
FriendSystem(LoginType var1) {
this.field1069 = 0;
this.loginType = var1;
this.friendsList = new FriendsList(var1);
this.ignoreList = new IgnoreList(var1);
}
this.field1069 = 0; // L: 23
this.loginType = var1; // L: 26
this.friendsList = new FriendsList(var1); // L: 27
this.ignoreList = new IgnoreList(var1); // L: 28
} // L: 29
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -57,7 +57,7 @@ public class FriendSystem {
garbageValue = "-413073532"
)
boolean method1939() {
return this.field1069 == 2;
return this.field1069 == 2; // L: 32
}
@ObfuscatedName("v")
@@ -66,8 +66,8 @@ public class FriendSystem {
garbageValue = "321244010"
)
final void method1919() {
this.field1069 = 1;
}
this.field1069 = 1; // L: 36
} // L: 37
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -76,20 +76,20 @@ public class FriendSystem {
)
@Export("readUpdate")
final void readUpdate(Buffer var1, int var2) {
this.friendsList.read(var1, var2);
this.field1069 = 2;
this.friendsList.read(var1, var2); // L: 40
this.field1069 = 2; // L: 41
for (int var3 = 0; var3 < Players.Players_count; ++var3) {
Player var4 = Client.players[Players.Players_indices[var3]];
var4.clearIsFriend();
for (int var3 = 0; var3 < Players.Players_count; ++var3) { // L: 43
Player var4 = Client.players[Players.Players_indices[var3]]; // L: 44
var4.clearIsFriend(); // L: 45
}
TileItem.method2189();
TileItem.method2189(); // L: 47
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.clearFriends();
WorldMapArea.clanChat.clearFriends(); // L: 49
}
}
} // L: 52
@ObfuscatedName("w")
@ObfuscatedSignature(
@@ -98,21 +98,21 @@ public class FriendSystem {
)
@Export("processFriendUpdates")
final void processFriendUpdates() {
for (FriendLoginUpdate var1 = (FriendLoginUpdate)this.friendsList.friendLoginUpdates.last(); var1 != null; var1 = (FriendLoginUpdate)this.friendsList.friendLoginUpdates.previous()) {
if ((long)var1.field3680 < class298.currentTimeMillis() / 1000L - 5L) {
for (FriendLoginUpdate var1 = (FriendLoginUpdate)this.friendsList.friendLoginUpdates.last(); var1 != null; var1 = (FriendLoginUpdate)this.friendsList.friendLoginUpdates.previous()) { // L: 55
if ((long)var1.field3680 < class298.currentTimeMillis() / 1000L - 5L) { // L: 56
if (var1.world > 0) {
class234.addGameMessage(5, "", var1.username + " has logged in.");
class234.addGameMessage(5, "", var1.username + " has logged in."); // L: 57
}
if (var1.world == 0) {
if (var1.world == 0) { // L: 58
class234.addGameMessage(5, "", var1.username + " has logged out.");
}
var1.remove();
var1.remove(); // L: 59
}
}
}
} // L: 62
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -121,10 +121,10 @@ public class FriendSystem {
)
@Export("clear")
final void clear() {
this.field1069 = 0;
this.friendsList.clear();
this.ignoreList.clear();
}
this.field1069 = 0; // L: 65
this.friendsList.clear(); // L: 66
this.ignoreList.clear(); // L: 67
} // L: 68
@ObfuscatedName("j")
@ObfuscatedSignature(
@@ -133,12 +133,12 @@ public class FriendSystem {
)
@Export("isFriended")
final boolean isFriended(Username var1, boolean var2) {
if (var1 == null) {
if (var1 == null) { // L: 71
return false;
} else if (var1.equals(PlayerAppearance.localPlayer.username)) {
} else if (var1.equals(PlayerAppearance.localPlayer.username)) { // L: 72
return true;
} else {
return this.friendsList.isFriended(var1, var2);
return this.friendsList.isFriended(var1, var2); // L: 73
}
}
@@ -149,10 +149,10 @@ public class FriendSystem {
)
@Export("isIgnored")
final boolean isIgnored(Username var1) {
if (var1 == null) {
if (var1 == null) { // L: 78
return false;
} else {
return this.ignoreList.contains(var1);
return this.ignoreList.contains(var1); // L: 79
}
}
@@ -163,28 +163,28 @@ public class FriendSystem {
)
@Export("addFriend")
final void addFriend(String var1) {
if (var1 != null) {
Username var2 = new Username(var1, this.loginType);
if (var2.hasCleanName()) {
if (this.friendsListIsFull()) {
Calendar.method3985();
} else if (PlayerAppearance.localPlayer.username.equals(var2)) {
ServerPacket.method3668();
} else if (this.isFriended(var2, false)) {
class219.method4003(var1);
} else if (this.isIgnored(var2)) {
if (var1 != null) { // L: 84
Username var2 = new Username(var1, this.loginType); // L: 85
if (var2.hasCleanName()) { // L: 86
if (this.friendsListIsFull()) { // L: 87
Calendar.method3985(); // L: 88
} else if (PlayerAppearance.localPlayer.username.equals(var2)) { // L: 91
ServerPacket.method3668(); // L: 92
} else if (this.isFriended(var2, false)) { // L: 95
class219.method4003(var1); // L: 96
} else if (this.isIgnored(var2)) { // L: 99
StringBuilder var10000 = new StringBuilder();
Object var10001 = null;
Object var10001 = null; // L: 101
var10000 = var10000.append("Please remove ").append(var1);
var10001 = null;
String var3 = var10000.append(" from your ignore list first").toString();
class234.addGameMessage(30, "", var3);
class234.addGameMessage(30, "", var3); // L: 103
} else {
FloorDecoration.method2932(var1);
FloorDecoration.method2932(var1); // L: 108
}
}
}
}
} // L: 89 93 97 106 109
@ObfuscatedName("m")
@ObfuscatedSignature(
@@ -193,7 +193,7 @@ public class FriendSystem {
)
@Export("friendsListIsFull")
final boolean friendsListIsFull() {
return this.friendsList.isFull() || this.friendsList.getSize() >= 200 && Client.field766 != 1;
return this.friendsList.isFull() || this.friendsList.getSize() >= 200 && Client.field766 != 1; // L: 141
}
@ObfuscatedName("c")
@@ -203,32 +203,32 @@ public class FriendSystem {
)
@Export("addIgnore")
final void addIgnore(String var1) {
if (var1 != null) {
Username var2 = new Username(var1, this.loginType);
if (var2.hasCleanName()) {
if (var1 != null) { // L: 148
Username var2 = new Username(var1, this.loginType); // L: 149
if (var2.hasCleanName()) { // L: 150
StringBuilder var10000;
String var3;
if (this.canAddIgnore()) {
var10000 = null;
if (this.canAddIgnore()) { // L: 151
var10000 = null; // L: 153
var3 = "Your ignore list is full. Max of 100 for free users, and 400 for members";
class234.addGameMessage(30, "", var3);
} else if (PlayerAppearance.localPlayer.username.equals(var2)) {
var10000 = null;
class234.addGameMessage(30, "", var3); // L: 155
} else if (PlayerAppearance.localPlayer.username.equals(var2)) { // L: 160
var10000 = null; // L: 162
var3 = "You can't add yourself to your own ignore list";
class234.addGameMessage(30, "", var3);
} else if (this.isIgnored(var2)) {
var10000 = (new StringBuilder()).append(var1);
class234.addGameMessage(30, "", var3); // L: 164
} else if (this.isIgnored(var2)) { // L: 169
var10000 = (new StringBuilder()).append(var1); // L: 171
Object var10001 = null;
var3 = var10000.append(" is already on your ignore list").toString();
class234.addGameMessage(30, "", var3);
} else if (this.isFriended(var2, false)) {
GrandExchangeOfferTotalQuantityComparator.method165(var1);
class234.addGameMessage(30, "", var3); // L: 173
} else if (this.isFriended(var2, false)) { // L: 178
GrandExchangeOfferTotalQuantityComparator.method165(var1); // L: 179
} else {
Skeleton.method3155(var1);
Skeleton.method3155(var1); // L: 182
}
}
}
}
} // L: 158 167 176 180 183
@ObfuscatedName("y")
@ObfuscatedSignature(
@@ -237,7 +237,7 @@ public class FriendSystem {
)
@Export("canAddIgnore")
final boolean canAddIgnore() {
return this.ignoreList.isFull() || this.ignoreList.getSize() >= 100 && Client.field766 != 1;
return this.ignoreList.isFull() || this.ignoreList.getSize() >= 100 && Client.field766 != 1; // L: 201
}
@ObfuscatedName("r")
@@ -247,30 +247,30 @@ public class FriendSystem {
)
@Export("removeFriend")
final void removeFriend(String var1) {
if (var1 != null) {
Username var2 = new Username(var1, this.loginType);
if (var2.hasCleanName()) {
if (this.friendsList.removeByUsername(var2)) {
Client.field879 = Client.cycleCntr;
PacketBufferNode var3 = ItemContainer.getPacketBufferNode(ClientPacket.field2290, Client.packetWriter.isaacCipher);
var3.packetBuffer.writeByte(FloorDecoration.stringCp1252NullTerminatedByteSize(var1));
var3.packetBuffer.writeStringCp1252NullTerminated(var1);
Client.packetWriter.addNode(var3);
if (var1 != null) { // L: 208
Username var2 = new Username(var1, this.loginType); // L: 209
if (var2.hasCleanName()) { // L: 210
if (this.friendsList.removeByUsername(var2)) { // L: 211
Client.field879 = Client.cycleCntr; // L: 213
PacketBufferNode var3 = ItemContainer.getPacketBufferNode(ClientPacket.field2290, Client.packetWriter.isaacCipher); // L: 216
var3.packetBuffer.writeByte(FloorDecoration.stringCp1252NullTerminatedByteSize(var1)); // L: 217
var3.packetBuffer.writeStringCp1252NullTerminated(var1); // L: 218
Client.packetWriter.addNode(var3); // L: 219
}
for (int var5 = 0; var5 < Players.Players_count; ++var5) {
Player var4 = Client.players[Players.Players_indices[var5]];
var4.clearIsFriend();
for (int var5 = 0; var5 < Players.Players_count; ++var5) { // L: 222
Player var4 = Client.players[Players.Players_indices[var5]]; // L: 223
var4.clearIsFriend(); // L: 224
}
TileItem.method2189();
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.clearFriends();
TileItem.method2189(); // L: 226
if (WorldMapArea.clanChat != null) { // L: 227
WorldMapArea.clanChat.clearFriends(); // L: 228
}
}
}
}
} // L: 231
@ObfuscatedName("q")
@ObfuscatedSignature(
@@ -279,21 +279,21 @@ public class FriendSystem {
)
@Export("removeIgnore")
final void removeIgnore(String var1) {
if (var1 != null) {
Username var2 = new Username(var1, this.loginType);
if (var2.hasCleanName()) {
if (this.ignoreList.removeByUsername(var2)) {
Client.field879 = Client.cycleCntr;
PacketBufferNode var3 = ItemContainer.getPacketBufferNode(ClientPacket.field2318, Client.packetWriter.isaacCipher);
var3.packetBuffer.writeByte(FloorDecoration.stringCp1252NullTerminatedByteSize(var1));
var3.packetBuffer.writeStringCp1252NullTerminated(var1);
Client.packetWriter.addNode(var3);
if (var1 != null) { // L: 234
Username var2 = new Username(var1, this.loginType); // L: 235
if (var2.hasCleanName()) { // L: 236
if (this.ignoreList.removeByUsername(var2)) { // L: 237
Client.field879 = Client.cycleCntr; // L: 239
PacketBufferNode var3 = ItemContainer.getPacketBufferNode(ClientPacket.field2318, Client.packetWriter.isaacCipher); // L: 242
var3.packetBuffer.writeByte(FloorDecoration.stringCp1252NullTerminatedByteSize(var1)); // L: 243
var3.packetBuffer.writeStringCp1252NullTerminated(var1); // L: 244
Client.packetWriter.addNode(var3); // L: 245
}
class9.FriendSystem_invalidateIgnoreds();
class9.FriendSystem_invalidateIgnoreds(); // L: 247
}
}
}
} // L: 248
@ObfuscatedName("o")
@ObfuscatedSignature(
@@ -302,17 +302,17 @@ public class FriendSystem {
)
@Export("isFriendAndHasWorld")
final boolean isFriendAndHasWorld(Username var1) {
Friend var2 = (Friend)this.friendsList.getByUsername(var1);
return var2 != null && var2.hasWorld();
Friend var2 = (Friend)this.friendsList.getByUsername(var1); // L: 260
return var2 != null && var2.hasWorld(); // L: 261
}
@ObfuscatedName("h")
static double method1972(double var0) {
return Math.exp(var0 * -var0 / 2.0D) / Math.sqrt(6.283185307179586D);
return Math.exp(var0 * -var0 / 2.0D) / Math.sqrt(6.283185307179586D); // L: 9
}
@ObfuscatedName("v")
public static boolean method1943(long var0) {
return 0L != var0 && !AbstractWorldMapIcon.method657(var0);
return 0L != var0 && !AbstractWorldMapIcon.method657(var0); // L: 48
}
}

View File

@@ -29,11 +29,11 @@ public class FriendsList extends UserList {
descriptor = "(Lmu;)V"
)
public FriendsList(LoginType var1) {
super(400);
this.field3657 = 1;
this.friendLoginUpdates = new LinkDeque();
this.loginType = var1;
}
super(400); // L: 17
this.field3657 = 1; // L: 13
this.friendLoginUpdates = new LinkDeque(); // L: 14
this.loginType = var1; // L: 18
} // L: 19
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -42,7 +42,7 @@ public class FriendsList extends UserList {
)
@Export("newInstance")
User newInstance() {
return new Friend();
return new Friend(); // L: 22
}
@ObfuscatedName("v")
@@ -52,7 +52,7 @@ public class FriendsList extends UserList {
)
@Export("newTypedArray")
User[] newTypedArray(int var1) {
return new Friend[var1];
return new Friend[var1]; // L: 26
}
@ObfuscatedName("x")
@@ -62,11 +62,11 @@ public class FriendsList extends UserList {
)
@Export("isFriended")
public boolean isFriended(Username var1, boolean var2) {
Friend var3 = (Friend)this.getByUsername(var1);
if (var3 == null) {
Friend var3 = (Friend)this.getByUsername(var1); // L: 30
if (var3 == null) { // L: 31
return false;
} else {
return !var2 || var3.world != 0;
return !var2 || var3.world != 0; // L: 32
}
}
@@ -78,23 +78,23 @@ public class FriendsList extends UserList {
@Export("read")
public void read(Buffer var1, int var2) {
while (true) {
if (var1.offset < var2) {
boolean var3 = var1.readUnsignedByte() == 1;
Username var4 = new Username(var1.readStringCp1252NullTerminated(), this.loginType);
Username var5 = new Username(var1.readStringCp1252NullTerminated(), this.loginType);
int var6 = var1.readUnsignedShort();
int var7 = var1.readUnsignedByte();
int var8 = var1.readUnsignedByte();
boolean var9 = (var8 & 2) != 0;
boolean var10 = (var8 & 1) != 0;
if (var6 > 0) {
var1.readStringCp1252NullTerminated();
var1.readUnsignedByte();
var1.readInt();
if (var1.offset < var2) { // L: 37
boolean var3 = var1.readUnsignedByte() == 1; // L: 38
Username var4 = new Username(var1.readStringCp1252NullTerminated(), this.loginType); // L: 39
Username var5 = new Username(var1.readStringCp1252NullTerminated(), this.loginType); // L: 40
int var6 = var1.readUnsignedShort(); // L: 41
int var7 = var1.readUnsignedByte(); // L: 42
int var8 = var1.readUnsignedByte(); // L: 43
boolean var9 = (var8 & 2) != 0; // L: 44
boolean var10 = (var8 & 1) != 0; // L: 45
if (var6 > 0) { // L: 46
var1.readStringCp1252NullTerminated(); // L: 47
var1.readUnsignedByte(); // L: 48
var1.readInt(); // L: 49
}
var1.readStringCp1252NullTerminated();
if (var4 != null && var4.hasCleanName()) {
var1.readStringCp1252NullTerminated(); // L: 51
if (var4 != null && var4.hasCleanName()) { // L: 52
Friend var11 = (Friend)this.getByCurrentUsername(var4);
if (var3) {
Friend var12 = (Friend)this.getByCurrentUsername(var5);
@@ -110,10 +110,10 @@ public class FriendsList extends UserList {
if (var11 != null) {
this.changeName(var11, var4, var5);
if (var6 != var11.world) {
boolean var14 = true;
boolean var14 = true; // L: 68
for (FriendLoginUpdate var13 = (FriendLoginUpdate)this.friendLoginUpdates.last(); var13 != null; var13 = (FriendLoginUpdate)this.friendLoginUpdates.previous()) {
if (var13.username.equals(var4)) {
for (FriendLoginUpdate var13 = (FriendLoginUpdate)this.friendLoginUpdates.last(); var13 != null; var13 = (FriendLoginUpdate)this.friendLoginUpdates.previous()) { // L: 69
if (var13.username.equals(var4)) { // L: 70
if (var6 != 0 && var13.world == 0) {
var13.remove();
var14 = false;
@@ -129,11 +129,11 @@ public class FriendsList extends UserList {
}
}
} else {
if (this.getSize() >= 400) {
if (this.getSize() >= 400) { // L: 84
continue;
}
var11 = (Friend)this.addLast(var4, var5);
var11 = (Friend)this.addLast(var4, var5); // L: 85
}
if (var6 != var11.world) {
@@ -155,7 +155,7 @@ public class FriendsList extends UserList {
}
this.sort();
return;
return; // L: 98
}
}
@@ -165,75 +165,75 @@ public class FriendsList extends UserList {
garbageValue = "754468419"
)
static void method5222(int var0, int var1, int var2, int var3) {
for (ObjectSound var4 = (ObjectSound)ObjectSound.objectSounds.last(); var4 != null; var4 = (ObjectSound)ObjectSound.objectSounds.previous()) {
if (var4.soundEffectId != -1 || var4.soundEffectIds != null) {
int var5 = 0;
if (var1 > var4.field1073 * 128) {
var5 += var1 - var4.field1073 * 128;
} else if (var1 < var4.x * 128) {
var5 += var4.x * 128 - var1;
for (ObjectSound var4 = (ObjectSound)ObjectSound.objectSounds.last(); var4 != null; var4 = (ObjectSound)ObjectSound.objectSounds.previous()) { // L: 53
if (var4.soundEffectId != -1 || var4.soundEffectIds != null) { // L: 54
int var5 = 0; // L: 55
if (var1 > var4.field1073) { // L: 56
var5 += var1 - var4.field1073;
} else if (var1 < var4.x) { // L: 57
var5 += var4.x - var1;
}
if (var2 > var4.field1078 * 16384) {
var5 += var2 - var4.field1078 * 16384;
} else if (var2 < var4.y * 16384) {
var5 += var4.y * 16384 - var2;
if (var2 > var4.field1078) { // L: 58
var5 += var2 - var4.field1078;
} else if (var2 < var4.y) { // L: 59
var5 += var4.y - var2;
}
if (var5 - 64 <= var4.field1086 && Timer.clientPreferences.areaSoundEffectsVolume != 0 && var0 == var4.plane) {
var5 -= 64;
if (var5 < 0) {
if (var5 - 64 <= var4.field1086 && Timer.clientPreferences.areaSoundEffectsVolume != 0 && var0 == var4.plane) { // L: 60
var5 -= 64; // L: 71
if (var5 < 0) { // L: 72
var5 = 0;
}
int var6 = (var4.field1086 - var5) * Timer.clientPreferences.areaSoundEffectsVolume / var4.field1086;
if (var4.stream1 == null) {
if (var4.soundEffectId >= 0) {
SoundEffect var7 = SoundEffect.readSoundEffect(class227.archive4, var4.soundEffectId, 0);
if (var7 != null) {
RawSound var8 = var7.toRawSound().resample(TileItemPile.decimator);
RawPcmStream var9 = RawPcmStream.createRawPcmStream(var8, 100, var6);
var9.setNumLoops(-1);
WorldMapManager.pcmStreamMixer.addSubStream(var9);
var4.stream1 = var9;
int var6 = (var4.field1086 - var5) * Timer.clientPreferences.areaSoundEffectsVolume / var4.field1086; // L: 73
if (var4.stream1 == null) { // L: 74
if (var4.soundEffectId >= 0) { // L: 75
SoundEffect var7 = SoundEffect.readSoundEffect(class227.archive4, var4.soundEffectId, 0); // L: 76
if (var7 != null) { // L: 77
RawSound var8 = var7.toRawSound().resample(TileItemPile.decimator); // L: 78
RawPcmStream var9 = RawPcmStream.createRawPcmStream(var8, 100, var6); // L: 79
var9.setNumLoops(-1); // L: 80
WorldMapManager.pcmStreamMixer.addSubStream(var9); // L: 81
var4.stream1 = var9; // L: 82
}
}
} else {
var4.stream1.method2610(var6);
var4.stream1.method2610(var6); // L: 86
}
if (var4.stream2 == null) {
if (var4.soundEffectIds != null && (var4.field1081 -= var3) <= 0) {
int var11 = (int)(Math.random() * (double)var4.soundEffectIds.length);
SoundEffect var12 = SoundEffect.readSoundEffect(class227.archive4, var4.soundEffectIds[var11], 0);
if (var12 != null) {
RawSound var13 = var12.toRawSound().resample(TileItemPile.decimator);
RawPcmStream var10 = RawPcmStream.createRawPcmStream(var13, 100, var6);
var10.setNumLoops(0);
WorldMapManager.pcmStreamMixer.addSubStream(var10);
var4.stream2 = var10;
var4.field1081 = var4.field1085 + (int)(Math.random() * (double)(var4.field1083 - var4.field1085));
if (var4.stream2 == null) { // L: 87
if (var4.soundEffectIds != null && (var4.field1081 -= var3) <= 0) { // L: 88
int var11 = (int)(Math.random() * (double)var4.soundEffectIds.length); // L: 89
SoundEffect var12 = SoundEffect.readSoundEffect(class227.archive4, var4.soundEffectIds[var11], 0); // L: 90
if (var12 != null) { // L: 91
RawSound var13 = var12.toRawSound().resample(TileItemPile.decimator); // L: 92
RawPcmStream var10 = RawPcmStream.createRawPcmStream(var13, 100, var6); // L: 93
var10.setNumLoops(0); // L: 94
WorldMapManager.pcmStreamMixer.addSubStream(var10); // L: 95
var4.stream2 = var10; // L: 96
var4.field1081 = var4.field1085 + (int)(Math.random() * (double)(var4.field1083 - var4.field1085)); // L: 97
}
}
} else {
var4.stream2.method2610(var6);
if (!var4.stream2.hasNext()) {
var4.stream2 = null;
var4.stream2.method2610(var6); // L: 102
if (!var4.stream2.hasNext()) { // L: 103
var4.stream2 = null; // L: 104
}
}
} else {
if (var4.stream1 != null) {
WorldMapManager.pcmStreamMixer.removeSubStream(var4.stream1);
var4.stream1 = null;
if (var4.stream1 != null) { // L: 61
WorldMapManager.pcmStreamMixer.removeSubStream(var4.stream1); // L: 62
var4.stream1 = null; // L: 63
}
if (var4.stream2 != null) {
WorldMapManager.pcmStreamMixer.removeSubStream(var4.stream2);
var4.stream2 = null;
if (var4.stream2 != null) { // L: 65
WorldMapManager.pcmStreamMixer.removeSubStream(var4.stream2); // L: 66
var4.stream2 = null; // L: 67
}
}
}
}
}
} // L: 108
}

View File

@@ -22,11 +22,11 @@ public class GZipDecompressor {
garbageValue = "1000000"
)
GZipDecompressor(int var1, int var2, int var3) {
}
} // L: 13
public GZipDecompressor() {
this(-1, 1000000, 1000000);
}
this(-1, 1000000, 1000000); // L: 10
} // L: 11
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -35,22 +35,22 @@ public class GZipDecompressor {
)
@Export("decompress")
public void decompress(Buffer var1, byte[] var2) {
if (var1.array[var1.offset] == 31 && var1.array[var1.offset + 1] == -117) {
if (this.inflater == null) {
if (var1.array[var1.offset] == 31 && var1.array[var1.offset + 1] == -117) { // L: 16
if (this.inflater == null) { // L: 17
this.inflater = new Inflater(true);
}
try {
this.inflater.setInput(var1.array, var1.offset + 10, var1.array.length - (var1.offset + 8 + 10));
this.inflater.inflate(var2);
} catch (Exception var4) {
this.inflater.reset();
throw new RuntimeException("");
this.inflater.setInput(var1.array, var1.offset + 10, var1.array.length - (var1.offset + 8 + 10)); // L: 19
this.inflater.inflate(var2); // L: 20
} catch (Exception var4) { // L: 22
this.inflater.reset(); // L: 23
throw new RuntimeException(""); // L: 24
}
this.inflater.reset();
this.inflater.reset(); // L: 26
} else {
throw new RuntimeException("");
}
}
} // L: 27
}

View File

@@ -42,14 +42,14 @@ public class GameBuild {
final int buildId;
static {
LIVE = new GameBuild("LIVE", 0);
BUILDLIVE = new GameBuild("BUILDLIVE", 3);
RC = new GameBuild("RC", 1);
WIP = new GameBuild("WIP", 2);
LIVE = new GameBuild("LIVE", 0); // L: 5
BUILDLIVE = new GameBuild("BUILDLIVE", 3); // L: 6
RC = new GameBuild("RC", 1); // L: 7
WIP = new GameBuild("WIP", 2); // L: 8
}
GameBuild(String var1, int var2) {
this.name = var1;
this.buildId = var2;
}
this.name = var1; // L: 17
this.buildId = var2; // L: 18
} // L: 19
}

View File

@@ -98,7 +98,7 @@ public final class GameObject {
int flags;
GameObject() {
this.tag = 0L;
this.flags = 0;
}
this.tag = 0L; // L: 16
this.flags = 0; // L: 17
} // L: 19
}

File diff suppressed because it is too large Load Diff

View File

@@ -46,21 +46,21 @@ public class GrandExchangeEvent {
descriptor = "(Lkj;BI)V"
)
GrandExchangeEvent(Buffer var1, byte var2, int var3) {
this.offerName = var1.readStringCp1252NullTerminated();
this.previousOfferName = var1.readStringCp1252NullTerminated();
this.world = var1.readUnsignedShort();
this.age = var1.readLong();
int var4 = var1.readInt();
int var5 = var1.readInt();
this.grandExchangeOffer = new GrandExchangeOffer();
this.grandExchangeOffer.method171(2);
this.grandExchangeOffer.method176(var2);
this.grandExchangeOffer.unitPrice = var4;
this.grandExchangeOffer.totalQuantity = var5;
this.grandExchangeOffer.currentQuantity = 0;
this.grandExchangeOffer.currentPrice = 0;
this.grandExchangeOffer.id = var3;
}
this.offerName = var1.readStringCp1252NullTerminated(); // L: 111
this.previousOfferName = var1.readStringCp1252NullTerminated(); // L: 112
this.world = var1.readUnsignedShort(); // L: 113
this.age = var1.readLong(); // L: 114
int var4 = var1.readInt(); // L: 115
int var5 = var1.readInt(); // L: 116
this.grandExchangeOffer = new GrandExchangeOffer(); // L: 117
this.grandExchangeOffer.method171(2); // L: 118
this.grandExchangeOffer.method176(var2); // L: 119
this.grandExchangeOffer.unitPrice = var4; // L: 120
this.grandExchangeOffer.totalQuantity = var5; // L: 121
this.grandExchangeOffer.currentQuantity = 0; // L: 122
this.grandExchangeOffer.currentPrice = 0; // L: 123
this.grandExchangeOffer.id = var3; // L: 124
} // L: 125
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -69,7 +69,7 @@ public class GrandExchangeEvent {
)
@Export("getOfferName")
public String getOfferName() {
return this.offerName;
return this.offerName; // L: 128
}
@ObfuscatedName("v")
@@ -79,7 +79,7 @@ public class GrandExchangeEvent {
)
@Export("getPreviousOfferName")
public String getPreviousOfferName() {
return this.previousOfferName;
return this.previousOfferName; // L: 132
}
@ObfuscatedName("h")
@@ -90,36 +90,36 @@ public class GrandExchangeEvent {
@Export("loadWorlds")
static boolean loadWorlds() {
try {
if (World.World_request == null) {
if (World.World_request == null) { // L: 31
World.World_request = GrandExchangeOfferAgeComparator.urlRequester.request(new URL(GrandExchangeOfferTotalQuantityComparator.field75));
} else if (World.World_request.isDone()) {
byte[] var0 = World.World_request.getResponse();
Buffer var1 = new Buffer(var0);
var1.readInt();
World.World_count = var1.readUnsignedShort();
World.World_worlds = new World[World.World_count];
} else if (World.World_request.isDone()) { // L: 33
byte[] var0 = World.World_request.getResponse(); // L: 34
Buffer var1 = new Buffer(var0); // L: 35
var1.readInt(); // L: 36
World.World_count = var1.readUnsignedShort(); // L: 37
World.World_worlds = new World[World.World_count]; // L: 38
World var3;
for (int var2 = 0; var2 < World.World_count; var3.index = var2++) {
var3 = World.World_worlds[var2] = new World();
var3.id = var1.readUnsignedShort();
var3.properties = var1.readInt();
var3.host = var1.readStringCp1252NullTerminated();
var3.activity = var1.readStringCp1252NullTerminated();
var3.location = var1.readUnsignedByte();
var3.population = var1.readShort();
for (int var2 = 0; var2 < World.World_count; var3.index = var2++) { // L: 39 47
var3 = World.World_worlds[var2] = new World(); // L: 40
var3.id = var1.readUnsignedShort(); // L: 41
var3.properties = var1.readInt(); // L: 42
var3.host = var1.readStringCp1252NullTerminated(); // L: 43
var3.activity = var1.readStringCp1252NullTerminated(); // L: 44
var3.location = var1.readUnsignedByte(); // L: 45
var3.population = var1.readShort(); // L: 46
}
ChatChannel.sortWorlds(World.World_worlds, 0, World.World_worlds.length - 1, World.World_sortOption1, World.World_sortOption2);
World.World_request = null;
return true;
ChatChannel.sortWorlds(World.World_worlds, 0, World.World_worlds.length - 1, World.World_sortOption1, World.World_sortOption2); // L: 49
World.World_request = null; // L: 50
return true; // L: 51
}
} catch (Exception var4) {
var4.printStackTrace();
World.World_request = null;
} catch (Exception var4) { // L: 55
var4.printStackTrace(); // L: 56
World.World_request = null; // L: 57
}
return false;
return false; // L: 59
}
@ObfuscatedName("ae")
@@ -128,17 +128,17 @@ public class GrandExchangeEvent {
garbageValue = "31"
)
protected static final void method153() {
class225.clock.mark();
class225.clock.mark(); // L: 421
int var0;
for (var0 = 0; var0 < 32; ++var0) {
for (var0 = 0; var0 < 32; ++var0) { // L: 422
GameShell.graphicsTickTimes[var0] = 0L;
}
for (var0 = 0; var0 < 32; ++var0) {
for (var0 = 0; var0 < 32; ++var0) { // L: 423
GameShell.clientTickTimes[var0] = 0L;
}
class8.gameCyclesToDo = 0;
}
class8.gameCyclesToDo = 0; // L: 424
} // L: 425
}

View File

@@ -31,35 +31,35 @@ public class GrandExchangeEvents {
public final List events;
static {
GrandExchangeEvents_ageComparator = new GrandExchangeOfferAgeComparator();
GrandExchangeEvents_ageComparator = new GrandExchangeOfferAgeComparator(); // L: 11
new GrandExchangeOfferWorldComparator();
GrandExchangeEvents_priceComparator = new GrandExchangeOfferUnitPriceComparator();
GrandExchangeEvents_nameComparator = new GrandExchangeOfferNameComparator();
GrandExchangeEvents_priceComparator = new GrandExchangeOfferUnitPriceComparator(); // L: 41
GrandExchangeEvents_nameComparator = new GrandExchangeOfferNameComparator(); // L: 54
GrandExchangeEvents_quantityComparator = new GrandExchangeOfferTotalQuantityComparator();
}
} // L: 67
@ObfuscatedSignature(
descriptor = "(Lkj;Z)V",
garbageValue = "1"
)
public GrandExchangeEvents(Buffer var1, boolean var2) {
int var3 = var1.readUnsignedShort();
boolean var4 = var1.readUnsignedByte() == 1;
int var3 = var1.readUnsignedShort(); // L: 82
boolean var4 = var1.readUnsignedByte() == 1; // L: 83
byte var5;
if (var4) {
if (var4) { // L: 85
var5 = 1;
} else {
var5 = 0;
var5 = 0; // L: 86
}
int var6 = var1.readUnsignedShort();
this.events = new ArrayList(var6);
int var6 = var1.readUnsignedShort(); // L: 87
this.events = new ArrayList(var6); // L: 88
for (int var7 = 0; var7 < var6; ++var7) {
this.events.add(new GrandExchangeEvent(var1, var5, var3));
for (int var7 = 0; var7 < var6; ++var7) { // L: 89
this.events.add(new GrandExchangeEvent(var1, var5, var3)); // L: 90
}
}
} // L: 92
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -68,13 +68,13 @@ public class GrandExchangeEvents {
)
@Export("sort")
public void sort(Comparator var1, boolean var2) {
if (var2) {
Collections.sort(this.events, var1);
if (var2) { // L: 95
Collections.sort(this.events, var1); // L: 96
} else {
Collections.sort(this.events, Collections.reverseOrder(var1));
Collections.sort(this.events, Collections.reverseOrder(var1)); // L: 99
}
}
} // L: 101
@ObfuscatedName("p")
@ObfuscatedSignature(
@@ -83,7 +83,7 @@ public class GrandExchangeEvents {
)
@Export("getNextWorldListWorld")
static World getNextWorldListWorld() {
return World.World_listCount < World.World_count ? World.World_worlds[++World.World_listCount - 1] : null;
return World.World_listCount < World.World_count ? World.World_worlds[++World.World_listCount - 1] : null; // L: 252 253
}
@ObfuscatedName("as")
@@ -93,139 +93,139 @@ public class GrandExchangeEvents {
)
static int method146(int var0, Script var1, boolean var2) {
int var3;
if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERTYPE) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].type();
return 1;
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERITEM) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].id;
return 1;
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERPRICE) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].unitPrice;
return 1;
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOUNT) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].totalQuantity;
return 1;
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOMPLETEDCOUNT) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].currentQuantity;
return 1;
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOMPLETEDGOLD) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].currentPrice;
return 1;
if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERTYPE) { // L: 2327
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2328
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].type(); // L: 2329
return 1; // L: 2330
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERITEM) { // L: 2332
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2333
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].id; // L: 2334
return 1; // L: 2335
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERPRICE) { // L: 2337
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2338
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].unitPrice; // L: 2339
return 1; // L: 2340
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOUNT) { // L: 2342
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2343
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].totalQuantity; // L: 2344
return 1; // L: 2345
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOMPLETEDCOUNT) { // L: 2347
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2348
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].currentQuantity; // L: 2349
return 1; // L: 2350
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOMPLETEDGOLD) { // L: 2352
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2353
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].currentPrice; // L: 2354
return 1; // L: 2355
} else {
int var13;
if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFEREMPTY) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var13 = Client.grandExchangeOffers[var3].status();
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var13 == 0 ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERSTABLE) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var13 = Client.grandExchangeOffers[var3].status();
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var13 == 2 ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERFINISHED) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var13 = Client.grandExchangeOffers[var3].status();
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var13 == 5 ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERADDING) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var13 = Client.grandExchangeOffers[var3].status();
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var13 == 1 ? 1 : 0;
return 1;
if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFEREMPTY) { // L: 2357
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2358
var13 = Client.grandExchangeOffers[var3].status(); // L: 2359
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var13 == 0 ? 1 : 0; // L: 2360
return 1; // L: 2361
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERSTABLE) { // L: 2363
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2364
var13 = Client.grandExchangeOffers[var3].status(); // L: 2365
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var13 == 2 ? 1 : 0; // L: 2366
return 1; // L: 2367
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERFINISHED) { // L: 2369
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2370
var13 = Client.grandExchangeOffers[var3].status(); // L: 2371
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var13 == 5 ? 1 : 0; // L: 2372
return 1; // L: 2373
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERADDING) { // L: 2375
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2376
var13 = Client.grandExchangeOffers[var3].status(); // L: 2377
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var13 == 1 ? 1 : 0; // L: 2378
return 1; // L: 2379
} else {
boolean var12;
if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_NAME) {
var12 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (AbstractUserComparator.grandExchangeEvents != null) {
AbstractUserComparator.grandExchangeEvents.sort(GrandExchangeEvents_nameComparator, var12);
if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_NAME) { // L: 2381
var12 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2382
if (AbstractUserComparator.grandExchangeEvents != null) { // L: 2383
AbstractUserComparator.grandExchangeEvents.sort(GrandExchangeEvents_nameComparator, var12); // L: 2384
}
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_PRICE) {
var12 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (AbstractUserComparator.grandExchangeEvents != null) {
AbstractUserComparator.grandExchangeEvents.sort(GrandExchangeEvents_priceComparator, var12);
return 1; // L: 2386
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_PRICE) { // L: 2388
var12 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2389
if (AbstractUserComparator.grandExchangeEvents != null) { // L: 2390
AbstractUserComparator.grandExchangeEvents.sort(GrandExchangeEvents_priceComparator, var12); // L: 2391
}
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTFILTERBY_WORLD) {
VarcInt.Interpreter_intStackSize -= 2;
var12 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] == 1;
boolean var11 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1] == 1;
if (AbstractUserComparator.grandExchangeEvents != null) {
Client.GrandExchangeEvents_worldComparator.filterWorlds = var11;
AbstractUserComparator.grandExchangeEvents.sort(Client.GrandExchangeEvents_worldComparator, var12);
return 1; // L: 2393
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTFILTERBY_WORLD) { // L: 2395
VarcInt.Interpreter_intStackSize -= 2; // L: 2396
var12 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] == 1; // L: 2397
boolean var11 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1] == 1; // L: 2398
if (AbstractUserComparator.grandExchangeEvents != null) { // L: 2399
Client.GrandExchangeEvents_worldComparator.filterWorlds = var11; // L: 2400
AbstractUserComparator.grandExchangeEvents.sort(Client.GrandExchangeEvents_worldComparator, var12); // L: 2401
}
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_AGE) {
var12 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (AbstractUserComparator.grandExchangeEvents != null) {
AbstractUserComparator.grandExchangeEvents.sort(GrandExchangeEvents_ageComparator, var12);
return 1; // L: 2403
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_AGE) { // L: 2405
var12 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2406
if (AbstractUserComparator.grandExchangeEvents != null) { // L: 2407
AbstractUserComparator.grandExchangeEvents.sort(GrandExchangeEvents_ageComparator, var12); // L: 2408
}
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_COUNT) {
var12 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
if (AbstractUserComparator.grandExchangeEvents != null) {
AbstractUserComparator.grandExchangeEvents.sort(GrandExchangeEvents_quantityComparator, var12);
return 1; // L: 2410
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_COUNT) { // L: 2412
var12 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 2413
if (AbstractUserComparator.grandExchangeEvents != null) { // L: 2414
AbstractUserComparator.grandExchangeEvents.sort(GrandExchangeEvents_quantityComparator, var12); // L: 2415
}
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETTOTALOFFERS) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = AbstractUserComparator.grandExchangeEvents == null ? 0 : AbstractUserComparator.grandExchangeEvents.events.size();
return 1;
return 1; // L: 2417
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETTOTALOFFERS) { // L: 2419
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = AbstractUserComparator.grandExchangeEvents == null ? 0 : AbstractUserComparator.grandExchangeEvents.events.size(); // L: 2420
return 1; // L: 2421
} else {
GrandExchangeEvent var4;
if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERWORLD) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var4.world;
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERNAME) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getOfferName();
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERPREVIOUSNAME) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getPreviousOfferName();
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERAGE) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3);
long var5 = class298.currentTimeMillis() - class4.field17 - var4.age;
int var7 = (int)(var5 / 3600000L);
int var8 = (int)((var5 - (long)(var7 * 3600000)) / 60000L);
int var9 = (int)((var5 - (long)(var7 * 3600000) - (long)(var8 * 60000)) / 1000L);
String var10 = var7 + ":" + var8 / 10 + var8 % 10 + ":" + var9 / 10 + var9 % 10;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var10;
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERCOUNT) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var4.grandExchangeOffer.totalQuantity;
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERPRICE) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var4.grandExchangeOffer.unitPrice;
return 1;
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERITEM) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var4.grandExchangeOffer.id;
return 1;
if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERWORLD) { // L: 2423
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2424
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3); // L: 2425
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var4.world; // L: 2426
return 1; // L: 2427
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERNAME) { // L: 2429
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2430
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3); // L: 2431
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getOfferName(); // L: 2432
return 1; // L: 2433
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERPREVIOUSNAME) { // L: 2435
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2436
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3); // L: 2437
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getPreviousOfferName(); // L: 2438
return 1; // L: 2439
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERAGE) { // L: 2441
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2442
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3); // L: 2443
long var5 = class298.currentTimeMillis() - class4.field17 - var4.age; // L: 2444
int var7 = (int)(var5 / 3600000L); // L: 2445
int var8 = (int)((var5 - (long)(var7 * 3600000)) / 60000L); // L: 2446
int var9 = (int)((var5 - (long)(var7 * 3600000) - (long)(var8 * 60000)) / 1000L); // L: 2447
String var10 = var7 + ":" + var8 / 10 + var8 % 10 + ":" + var9 / 10 + var9 % 10; // L: 2448
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var10; // L: 2449
return 1; // L: 2450
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERCOUNT) { // L: 2452
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2453
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3); // L: 2454
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var4.grandExchangeOffer.totalQuantity; // L: 2455
return 1; // L: 2456
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERPRICE) { // L: 2458
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2459
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3); // L: 2460
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var4.grandExchangeOffer.unitPrice; // L: 2461
return 1; // L: 2462
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERITEM) { // L: 2464
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2465
var4 = (GrandExchangeEvent)AbstractUserComparator.grandExchangeEvents.events.get(var3); // L: 2466
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var4.grandExchangeOffer.id; // L: 2467
return 1; // L: 2468
} else {
return 2;
return 2; // L: 2470
}
}
}
@@ -238,6 +238,6 @@ public class GrandExchangeEvents {
garbageValue = "-563338359"
)
static final void method144(Actor var0, int var1) {
GrandExchangeOffer.worldToScreen(var0.x, var0.y, var1);
}
GrandExchangeOffer.worldToScreen(var0.x, var0.y, var1); // L: 5240
} // L: 5241
}

View File

@@ -42,7 +42,7 @@ public class GrandExchangeOffer {
public int currentPrice;
public GrandExchangeOffer() {
}
} // L: 13
@ObfuscatedSignature(
descriptor = "(Lkj;Z)V",
@@ -51,7 +51,7 @@ public class GrandExchangeOffer {
public GrandExchangeOffer(Buffer var1, boolean var2) {
this.state = var1.readByte();
this.id = var1.readUnsignedShort();
this.unitPrice = var1.readInt();
this.unitPrice = var1.readInt(); // L: 18
this.totalQuantity = var1.readInt();
this.currentQuantity = var1.readInt();
this.currentPrice = var1.readInt();
@@ -74,7 +74,7 @@ public class GrandExchangeOffer {
)
@Export("type")
public int type() {
return (this.state & 8) == 8 ? 1 : 0;
return (this.state & 8) == 8 ? 1 : 0; // L: 54
}
@ObfuscatedName("t")
@@ -83,7 +83,7 @@ public class GrandExchangeOffer {
garbageValue = "1068160748"
)
void method171(int var1) {
this.state &= -8;
this.state &= -8; // L: 58
this.state = (byte)(this.state | var1 & 7);
}
@@ -95,10 +95,10 @@ public class GrandExchangeOffer {
void method176(int var1) {
this.state &= -9;
if (var1 == 1) {
this.state = (byte)(this.state | 8);
this.state = (byte)(this.state | 8); // L: 64
}
}
} // L: 65
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -108,90 +108,90 @@ public class GrandExchangeOffer {
static int method186(int var0, int var1) {
FloorOverlayDefinition var2 = RouteStrategy.method3648(var0);
if (var2 == null) {
return var1;
return var1; // L: 17
} else if (var2.secondaryRgb >= 0) {
return var2.secondaryRgb | -16777216;
return var2.secondaryRgb | -16777216; // L: 20
} else {
int var4;
int var5;
if (var2.texture >= 0) {
if (var2.texture >= 0) { // L: 22
var4 = Rasterizer3D.Rasterizer3D_textureLoader.getAverageTextureRGB(var2.texture);
byte var11 = 96;
int var3;
if (var4 == -2) {
var3 = 12345678;
} else if (var4 == -1) {
if (var11 < 0) {
var11 = 0;
} else if (var11 > 127) {
var11 = 127;
var3 = 12345678; // L: 28
} else if (var4 == -1) { // L: 31
if (var11 < 0) { // L: 32
var11 = 0; // L: 33
} else if (var11 > 127) { // L: 35
var11 = 127; // L: 36
}
var5 = 127 - var11;
var3 = var5;
var5 = 127 - var11; // L: 38
var3 = var5; // L: 39
} else {
var5 = var11 * (var4 & 127) / 128;
if (var5 < 2) {
var5 = var11 * (var4 & 127) / 128; // L: 42
if (var5 < 2) { // L: 43
var5 = 2;
} else if (var5 > 126) {
} else if (var5 > 126) { // L: 44
var5 = 126;
}
var3 = var5 + (var4 & 65408);
var3 = var5 + (var4 & 65408); // L: 45
}
return Rasterizer3D.Rasterizer3D_colorPalette[var3] | -16777216;
} else if (var2.primaryRgb == 16711935) {
return var1;
return Rasterizer3D.Rasterizer3D_colorPalette[var3] | -16777216; // L: 48
} else if (var2.primaryRgb == 16711935) { // L: 50
return var1; // L: 51
} else {
var4 = var2.hue;
var5 = var2.saturation;
int var6 = var2.lightness;
if (var6 > 179) {
var4 = var2.hue; // L: 55
var5 = var2.saturation; // L: 56
int var6 = var2.lightness; // L: 57
if (var6 > 179) { // L: 59
var5 /= 2;
}
if (var6 > 192) {
if (var6 > 192) { // L: 60
var5 /= 2;
}
if (var6 > 217) {
if (var6 > 217) { // L: 61
var5 /= 2;
}
if (var6 > 243) {
if (var6 > 243) { // L: 62
var5 /= 2;
}
int var7 = (var5 / 32 << 7) + var6 / 2 + (var4 / 4 << 10);
byte var9 = 96;
int var7 = (var5 / 32 << 7) + var6 / 2 + (var4 / 4 << 10); // L: 63
byte var9 = 96; // L: 68
int var8;
if (var7 == -2) {
var8 = 12345678;
if (var7 == -2) { // L: 70
var8 = 12345678; // L: 71
} else {
int var12;
if (var7 == -1) {
if (var9 < 0) {
var9 = 0;
} else if (var9 > 127) {
var9 = 127;
if (var7 == -1) { // L: 74
if (var9 < 0) { // L: 75
var9 = 0; // L: 76
} else if (var9 > 127) { // L: 78
var9 = 127; // L: 79
}
var12 = 127 - var9;
var8 = var12;
var12 = 127 - var9; // L: 81
var8 = var12; // L: 82
} else {
var12 = var9 * (var7 & 127) / 128;
if (var12 < 2) {
var12 = var9 * (var7 & 127) / 128; // L: 85
if (var12 < 2) { // L: 86
var12 = 2;
} else if (var12 > 126) {
} else if (var12 > 126) { // L: 87
var12 = 126;
}
var8 = var12 + (var7 & 65408);
var8 = var12 + (var7 & 65408); // L: 88
}
}
return Rasterizer3D.Rasterizer3D_colorPalette[var8] | -16777216;
return Rasterizer3D.Rasterizer3D_colorPalette[var8] | -16777216; // L: 91
}
}
}
@@ -202,23 +202,23 @@ public class GrandExchangeOffer {
garbageValue = "-2034592352"
)
public static byte[] method188(Object var0, boolean var1) {
if (var0 == null) {
if (var0 == null) { // L: 8
return null;
} else if (var0 instanceof byte[]) {
byte[] var6 = (byte[])((byte[])var0);
if (var1) {
int var4 = var6.length;
byte[] var5 = new byte[var4];
System.arraycopy(var6, 0, var5, 0, var4);
return var5;
} else if (var0 instanceof byte[]) { // L: 9
byte[] var6 = (byte[])((byte[])var0); // L: 10
if (var1) { // L: 11
int var4 = var6.length; // L: 14
byte[] var5 = new byte[var4]; // L: 15
System.arraycopy(var6, 0, var5, 0, var4); // L: 16
return var5; // L: 19
} else {
return var6;
return var6; // L: 21
}
} else if (var0 instanceof AbstractByteArrayCopier) {
AbstractByteArrayCopier var2 = (AbstractByteArrayCopier)var0;
return var2.get();
} else if (var0 instanceof AbstractByteArrayCopier) { // L: 23
AbstractByteArrayCopier var2 = (AbstractByteArrayCopier)var0; // L: 24
return var2.get(); // L: 25
} else {
throw new IllegalArgumentException();
throw new IllegalArgumentException(); // L: 27
}
}
@@ -229,23 +229,23 @@ public class GrandExchangeOffer {
)
@Export("savePreferences")
static void savePreferences() {
AccessFile var0 = null;
AccessFile var0 = null; // L: 95
try {
var0 = WorldMapRegion.getPreferencesFile("", AttackOption.field1174.name, true);
Buffer var1 = Timer.clientPreferences.toBuffer();
var0.write(var1.array, 0, var1.offset);
} catch (Exception var3) {
var0 = WorldMapRegion.getPreferencesFile("", AttackOption.field1174.name, true); // L: 97
Buffer var1 = Timer.clientPreferences.toBuffer(); // L: 98
var0.write(var1.array, 0, var1.offset); // L: 99
} catch (Exception var3) { // L: 101
}
try {
if (var0 != null) {
var0.closeSync(true);
if (var0 != null) { // L: 103
var0.closeSync(true); // L: 104
}
} catch (Exception var2) {
} catch (Exception var2) { // L: 107
}
}
} // L: 108
@ObfuscatedName("m")
@ObfuscatedSignature(
@@ -253,10 +253,10 @@ public class GrandExchangeOffer {
garbageValue = "66"
)
static final int method190(int var0, int var1) {
int var2 = var1 * 57 + var0;
var2 ^= var2 << 13;
int var3 = (var2 * var2 * 15731 + 789221) * var2 + 1376312589 & Integer.MAX_VALUE;
return var3 >> 19 & 255;
int var2 = var1 * 57 + var0; // L: 855
var2 ^= var2 << 13; // L: 856
int var3 = (var2 * var2 * 15731 + 789221) * var2 + 1376312589 & Integer.MAX_VALUE; // L: 857
return var3 >> 19 & 255; // L: 858
}
@ObfuscatedName("hx")
@@ -266,31 +266,31 @@ public class GrandExchangeOffer {
)
@Export("worldToScreen")
static final void worldToScreen(int var0, int var1, int var2) {
if (var0 >= 128 && var1 >= 128 && var0 <= 13056 && var1 <= 13056) {
int var3 = SecureRandomFuture.getTileHeight(var0, var1, GameObject.Client_plane) - var2;
var0 -= Player.cameraX;
var3 -= KeyHandler.cameraY;
var1 -= class69.cameraZ;
int var4 = Rasterizer3D.Rasterizer3D_sine[Skeleton.cameraPitch];
int var5 = Rasterizer3D.Rasterizer3D_cosine[Skeleton.cameraPitch];
int var6 = Rasterizer3D.Rasterizer3D_sine[AbstractArchive.cameraYaw];
int var7 = Rasterizer3D.Rasterizer3D_cosine[AbstractArchive.cameraYaw];
int var8 = var6 * var1 + var0 * var7 >> 16;
var1 = var7 * var1 - var0 * var6 >> 16;
var0 = var8;
var8 = var5 * var3 - var4 * var1 >> 16;
var1 = var3 * var4 + var5 * var1 >> 16;
if (var1 >= 50) {
Client.viewportTempX = var0 * Client.viewportZoom / var1 + Client.viewportWidth / 2;
Client.viewportTempY = Client.viewportHeight / 2 + var8 * Client.viewportZoom / var1;
if (var0 >= 128 && var1 >= 128 && var0 <= 13056 && var1 <= 13056) { // L: 5244
int var3 = SecureRandomFuture.getTileHeight(var0, var1, GameObject.Client_plane) - var2; // L: 5249
var0 -= Player.cameraX; // L: 5250
var3 -= KeyHandler.cameraY; // L: 5251
var1 -= class69.cameraZ; // L: 5252
int var4 = Rasterizer3D.Rasterizer3D_sine[Skeleton.cameraPitch]; // L: 5253
int var5 = Rasterizer3D.Rasterizer3D_cosine[Skeleton.cameraPitch]; // L: 5254
int var6 = Rasterizer3D.Rasterizer3D_sine[AbstractArchive.cameraYaw]; // L: 5255
int var7 = Rasterizer3D.Rasterizer3D_cosine[AbstractArchive.cameraYaw]; // L: 5256
int var8 = var6 * var1 + var0 * var7 >> 16; // L: 5257
var1 = var7 * var1 - var0 * var6 >> 16; // L: 5258
var0 = var8; // L: 5259
var8 = var5 * var3 - var4 * var1 >> 16; // L: 5260
var1 = var3 * var4 + var5 * var1 >> 16; // L: 5261
if (var1 >= 50) { // L: 5263
Client.viewportTempX = var0 * Client.viewportZoom / var1 + Client.viewportWidth / 2; // L: 5264
Client.viewportTempY = Client.viewportHeight / 2 + var8 * Client.viewportZoom / var1; // L: 5265
} else {
Client.viewportTempX = -1;
Client.viewportTempY = -1;
Client.viewportTempX = -1; // L: 5268
Client.viewportTempY = -1; // L: 5269
}
} else {
Client.viewportTempX = -1;
Client.viewportTempY = -1;
Client.viewportTempX = -1; // L: 5245
Client.viewportTempY = -1; // L: 5246
}
}
} // L: 5247 5271
}

View File

@@ -29,15 +29,15 @@ final class GrandExchangeOfferAgeComparator implements Comparator {
)
@Export("compare_bridged")
int compare_bridged(GrandExchangeEvent var1, GrandExchangeEvent var2) {
return var1.age < var2.age ? -1 : (var1.age == var2.age ? 0 : 1);
return var1.age < var2.age ? -1 : (var1.age == var2.age ? 0 : 1); // L: 13
}
public int compare(Object var1, Object var2) {
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2);
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2); // L: 17
}
public boolean equals(Object var1) {
return super.equals(var1);
return super.equals(var1); // L: 21
}
@ObfuscatedName("ac")
@@ -48,172 +48,172 @@ final class GrandExchangeOfferAgeComparator implements Comparator {
static int method218(int var0, Script var1, boolean var2) {
String var3;
int var9;
if (var0 == ScriptOpcodes.APPEND_NUM) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
var9 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3 + var9;
return 1;
if (var0 == ScriptOpcodes.APPEND_NUM) { // L: 2633
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2634
var9 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2635
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3 + var9; // L: 2636
return 1; // L: 2637
} else {
String var4;
if (var0 == ScriptOpcodes.APPEND) {
Interpreter.Interpreter_stringStackSize -= 2;
var3 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize];
var4 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3 + var4;
return 1;
} else if (var0 == ScriptOpcodes.APPEND_SIGNNUM) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
var9 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3 + HealthBarDefinition.intToString(var9, true);
return 1;
} else if (var0 == ScriptOpcodes.LOWERCASE) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.toLowerCase();
return 1;
if (var0 == ScriptOpcodes.APPEND) { // L: 2639
Interpreter.Interpreter_stringStackSize -= 2; // L: 2640
var3 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize]; // L: 2641
var4 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1]; // L: 2642
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3 + var4; // L: 2643
return 1; // L: 2644
} else if (var0 == ScriptOpcodes.APPEND_SIGNNUM) { // L: 2646
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2647
var9 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2648
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3 + HealthBarDefinition.intToString(var9, true); // L: 2649
return 1; // L: 2650
} else if (var0 == ScriptOpcodes.LOWERCASE) { // L: 2652
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2653
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.toLowerCase(); // L: 2654
return 1; // L: 2655
} else {
int var6;
int var10;
if (var0 == ScriptOpcodes.FROMDATE) {
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
long var13 = ((long)var10 + 11745L) * 86400000L;
Interpreter.Interpreter_calendar.setTime(new Date(var13));
var6 = Interpreter.Interpreter_calendar.get(5);
int var17 = Interpreter.Interpreter_calendar.get(2);
int var8 = Interpreter.Interpreter_calendar.get(1);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var6 + "-" + Interpreter.Interpreter_MONTHS[var17] + "-" + var8;
return 1;
} else if (var0 != ScriptOpcodes.TEXT_GENDER) {
if (var0 == ScriptOpcodes.TOSTRING) {
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = Integer.toString(var10);
return 1;
} else if (var0 == ScriptOpcodes.COMPARE) {
Interpreter.Interpreter_stringStackSize -= 2;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = World.method1874(UrlRequester.compareStrings(Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize], Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1], WorldMapScaleHandler.clientLanguage));
return 1;
if (var0 == ScriptOpcodes.FROMDATE) { // L: 2657
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2658
long var13 = ((long)var10 + 11745L) * 86400000L; // L: 2659
Interpreter.Interpreter_calendar.setTime(new Date(var13)); // L: 2660
var6 = Interpreter.Interpreter_calendar.get(5); // L: 2661
int var17 = Interpreter.Interpreter_calendar.get(2); // L: 2662
int var8 = Interpreter.Interpreter_calendar.get(1); // L: 2663
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var6 + "-" + Interpreter.Interpreter_MONTHS[var17] + "-" + var8; // L: 2664
return 1; // L: 2665
} else if (var0 != ScriptOpcodes.TEXT_GENDER) { // L: 2667
if (var0 == ScriptOpcodes.TOSTRING) { // L: 2675
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2676
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = Integer.toString(var10); // L: 2677
return 1; // L: 2678
} else if (var0 == ScriptOpcodes.COMPARE) { // L: 2680
Interpreter.Interpreter_stringStackSize -= 2; // L: 2681
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = World.method1874(UrlRequester.compareStrings(Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize], Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1], WorldMapScaleHandler.clientLanguage)); // L: 2682
return 1; // L: 2683
} else {
int var5;
byte[] var11;
Font var12;
if (var0 == ScriptOpcodes.PARAHEIGHT) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
VarcInt.Interpreter_intStackSize -= 2;
var9 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var5 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
var11 = GrandExchangeOfferUnitPriceComparator.archive13.takeFile(var5, 0);
var12 = new Font(var11);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var12.lineCount(var3, var9);
return 1;
} else if (var0 == ScriptOpcodes.PARAWIDTH) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
VarcInt.Interpreter_intStackSize -= 2;
var9 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var5 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
var11 = GrandExchangeOfferUnitPriceComparator.archive13.takeFile(var5, 0);
var12 = new Font(var11);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var12.lineWidth(var3, var9);
return 1;
} else if (var0 == ScriptOpcodes.TEXT_SWITCH) {
Interpreter.Interpreter_stringStackSize -= 2;
var3 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize];
var4 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1];
if (Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1) {
if (var0 == ScriptOpcodes.PARAHEIGHT) { // L: 2685
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2686
VarcInt.Interpreter_intStackSize -= 2; // L: 2687
var9 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 2688
var5 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 2689
var11 = GrandExchangeOfferUnitPriceComparator.archive13.takeFile(var5, 0); // L: 2690
var12 = new Font(var11); // L: 2691
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var12.lineCount(var3, var9); // L: 2692
return 1; // L: 2693
} else if (var0 == ScriptOpcodes.PARAWIDTH) { // L: 2695
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2696
VarcInt.Interpreter_intStackSize -= 2; // L: 2697
var9 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 2698
var5 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 2699
var11 = GrandExchangeOfferUnitPriceComparator.archive13.takeFile(var5, 0); // L: 2700
var12 = new Font(var11); // L: 2701
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var12.lineWidth(var3, var9); // L: 2702
return 1; // L: 2703
} else if (var0 == ScriptOpcodes.TEXT_SWITCH) { // L: 2705
Interpreter.Interpreter_stringStackSize -= 2; // L: 2706
var3 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize]; // L: 2707
var4 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1]; // L: 2708
if (Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1) { // L: 2709
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3;
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4; // L: 2710
}
return 1;
} else if (var0 == ScriptOpcodes.ESCAPE) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = AbstractFont.escapeBrackets(var3);
return 1;
} else if (var0 == ScriptOpcodes.APPEND_CHAR) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
var9 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3 + (char)var9;
return 1;
} else if (var0 == ScriptOpcodes.CHAR_ISPRINTABLE) {
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = TriBool.isCharPrintable((char)var10) ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CHAR_ISALPHANUMERIC) {
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = FriendLoginUpdate.isAlphaNumeric((char)var10) ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CHAR_ISALPHA) {
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = NetCache.isCharAlphabetic((char)var10) ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CHAR_ISNUMERIC) {
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = class39.isDigit((char)var10) ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.STRING_LENGTH) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
if (var3 != null) {
return 1; // L: 2711
} else if (var0 == ScriptOpcodes.ESCAPE) { // L: 2713
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2714
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = AbstractFont.escapeBrackets(var3); // L: 2715
return 1; // L: 2716
} else if (var0 == ScriptOpcodes.APPEND_CHAR) { // L: 2718
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2719
var9 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2720
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3 + (char)var9; // L: 2721
return 1; // L: 2722
} else if (var0 == ScriptOpcodes.CHAR_ISPRINTABLE) { // L: 2724
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2725
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = TriBool.isCharPrintable((char)var10) ? 1 : 0; // L: 2726
return 1; // L: 2727
} else if (var0 == ScriptOpcodes.CHAR_ISALPHANUMERIC) { // L: 2729
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2730
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = FriendLoginUpdate.isAlphaNumeric((char)var10) ? 1 : 0; // L: 2731
return 1; // L: 2732
} else if (var0 == ScriptOpcodes.CHAR_ISALPHA) { // L: 2734
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2735
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = NetCache.isCharAlphabetic((char)var10) ? 1 : 0; // L: 2736
return 1; // L: 2737
} else if (var0 == ScriptOpcodes.CHAR_ISNUMERIC) { // L: 2739
var10 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2740
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = class39.isDigit((char)var10) ? 1 : 0; // L: 2741
return 1; // L: 2742
} else if (var0 == ScriptOpcodes.STRING_LENGTH) { // L: 2744
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2745
if (var3 != null) { // L: 2746
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.length();
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 2747
}
return 1;
} else if (var0 == ScriptOpcodes.SUBSTRING) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
VarcInt.Interpreter_intStackSize -= 2;
var9 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var5 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.substring(var9, var5);
return 1;
} else if (var0 == ScriptOpcodes.REMOVETAGS) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
StringBuilder var15 = new StringBuilder(var3.length());
boolean var16 = false;
return 1; // L: 2748
} else if (var0 == ScriptOpcodes.SUBSTRING) { // L: 2750
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2751
VarcInt.Interpreter_intStackSize -= 2; // L: 2752
var9 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 2753
var5 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 2754
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.substring(var9, var5); // L: 2755
return 1; // L: 2756
} else if (var0 == ScriptOpcodes.REMOVETAGS) { // L: 2758
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2759
StringBuilder var15 = new StringBuilder(var3.length()); // L: 2760
boolean var16 = false; // L: 2761
for (var6 = 0; var6 < var3.length(); ++var6) {
char var7 = var3.charAt(var6);
if (var7 == '<') {
for (var6 = 0; var6 < var3.length(); ++var6) { // L: 2762
char var7 = var3.charAt(var6); // L: 2763
if (var7 == '<') { // L: 2764
var16 = true;
} else if (var7 == '>') {
} else if (var7 == '>') { // L: 2765
var16 = false;
} else if (!var16) {
} else if (!var16) { // L: 2766
var15.append(var7);
}
}
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var15.toString();
return 1;
} else if (var0 == ScriptOpcodes.STRING_INDEXOF_CHAR) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
var9 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.indexOf(var9);
return 1;
} else if (var0 == ScriptOpcodes.STRING_INDEXOF_STRING) {
Interpreter.Interpreter_stringStackSize -= 2;
var3 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize];
var4 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1];
var5 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.indexOf(var4, var5);
return 1;
} else if (var0 == ScriptOpcodes.UPPERCASE) {
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.toUpperCase();
return 1;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var15.toString(); // L: 2768
return 1; // L: 2769
} else if (var0 == ScriptOpcodes.STRING_INDEXOF_CHAR) { // L: 2771
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2772
var9 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2773
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.indexOf(var9); // L: 2774
return 1; // L: 2775
} else if (var0 == ScriptOpcodes.STRING_INDEXOF_STRING) { // L: 2777
Interpreter.Interpreter_stringStackSize -= 2; // L: 2778
var3 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize]; // L: 2779
var4 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1]; // L: 2780
var5 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 2781
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.indexOf(var4, var5); // L: 2782
return 1; // L: 2783
} else if (var0 == ScriptOpcodes.UPPERCASE) { // L: 2785
var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 2786
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.toUpperCase(); // L: 2787
return 1; // L: 2788
} else {
return 2;
return 2; // L: 2790
}
}
} else {
Interpreter.Interpreter_stringStackSize -= 2;
var3 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize];
var4 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1];
if (PlayerAppearance.localPlayer.appearance != null && PlayerAppearance.localPlayer.appearance.isFemale) {
Interpreter.Interpreter_stringStackSize -= 2; // L: 2668
var3 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize]; // L: 2669
var4 = Interpreter.Interpreter_stringStack[Interpreter.Interpreter_stringStackSize + 1]; // L: 2670
if (PlayerAppearance.localPlayer.appearance != null && PlayerAppearance.localPlayer.appearance.isFemale) { // L: 2671
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4;
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3; // L: 2672
}
return 1;
return 1; // L: 2673
}
}
}

View File

@@ -21,7 +21,7 @@ final class GrandExchangeOfferNameComparator implements Comparator {
}
public boolean equals(Object var1) {
return super.equals(var1);
return super.equals(var1); // L: 64
}
public int compare(Object var1, Object var2) {
@@ -44,34 +44,34 @@ final class GrandExchangeOfferNameComparator implements Comparator {
)
@Export("itemContainerSetItem")
static void itemContainerSetItem(int var0, int var1, int var2, int var3) {
ItemContainer var4 = (ItemContainer)ItemContainer.itemContainers.get((long)var0);
if (var4 == null) {
var4 = new ItemContainer();
ItemContainer.itemContainers.put(var4, (long)var0);
ItemContainer var4 = (ItemContainer)ItemContainer.itemContainers.get((long)var0); // L: 39
if (var4 == null) { // L: 40
var4 = new ItemContainer(); // L: 41
ItemContainer.itemContainers.put(var4, (long)var0); // L: 42
}
if (var4.ids.length <= var1) {
int[] var5 = new int[var1 + 1];
int[] var6 = new int[var1 + 1];
if (var4.ids.length <= var1) { // L: 44
int[] var5 = new int[var1 + 1]; // L: 45
int[] var6 = new int[var1 + 1]; // L: 46
int var7;
for (var7 = 0; var7 < var4.ids.length; ++var7) {
var5[var7] = var4.ids[var7];
var6[var7] = var4.quantities[var7];
for (var7 = 0; var7 < var4.ids.length; ++var7) { // L: 47
var5[var7] = var4.ids[var7]; // L: 48
var6[var7] = var4.quantities[var7]; // L: 49
}
for (var7 = var4.ids.length; var7 < var1; ++var7) {
var5[var7] = -1;
var6[var7] = 0;
for (var7 = var4.ids.length; var7 < var1; ++var7) { // L: 51
var5[var7] = -1; // L: 52
var6[var7] = 0; // L: 53
}
var4.ids = var5;
var4.quantities = var6;
var4.ids = var5; // L: 55
var4.quantities = var6; // L: 56
}
var4.ids[var1] = var2;
var4.quantities[var1] = var3;
}
var4.ids[var1] = var2; // L: 58
var4.quantities[var1] = var3; // L: 59
} // L: 60
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -80,14 +80,14 @@ final class GrandExchangeOfferNameComparator implements Comparator {
)
@Export("isKeyDown")
public static final boolean isKeyDown() {
synchronized(KeyHandler.KeyHandler_instance) {
if (KeyHandler.field415 == KeyHandler.field417) {
synchronized(KeyHandler.KeyHandler_instance) { // L: 191
if (KeyHandler.field415 == KeyHandler.field417) { // L: 192
return false;
} else {
StudioGame.field3135 = KeyHandler.field412[KeyHandler.field415];
WorldMapIcon_1.field200 = KeyHandler.field409[KeyHandler.field415];
KeyHandler.field415 = KeyHandler.field415 + 1 & 127;
return true;
StudioGame.field3135 = KeyHandler.field412[KeyHandler.field415]; // L: 193
WorldMapIcon_1.field200 = KeyHandler.field409[KeyHandler.field415]; // L: 194
KeyHandler.field415 = KeyHandler.field415 + 1 & 127; // L: 195
return true; // L: 196
}
}
}
@@ -99,39 +99,39 @@ final class GrandExchangeOfferNameComparator implements Comparator {
)
@Export("getGcDuration")
protected static int getGcDuration() {
int var0 = 0;
if (class25.garbageCollector == null || !class25.garbageCollector.isValid()) {
int var0 = 0; // L: 566
if (class25.garbageCollector == null || !class25.garbageCollector.isValid()) { // L: 567
try {
Iterator var1 = ManagementFactory.getGarbageCollectorMXBeans().iterator();
Iterator var1 = ManagementFactory.getGarbageCollectorMXBeans().iterator(); // L: 569
while (var1.hasNext()) {
GarbageCollectorMXBean var2 = (GarbageCollectorMXBean)var1.next();
if (var2.isValid()) {
class25.garbageCollector = var2;
GameShell.garbageCollectorLastCheckTimeMs = -1L;
GameShell.garbageCollectorLastCollectionTime = -1L;
GarbageCollectorMXBean var2 = (GarbageCollectorMXBean)var1.next(); // L: 570
if (var2.isValid()) { // L: 572
class25.garbageCollector = var2; // L: 573
GameShell.garbageCollectorLastCheckTimeMs = -1L; // L: 574
GameShell.garbageCollectorLastCollectionTime = -1L; // L: 575
}
}
} catch (Throwable var11) {
} catch (Throwable var11) { // L: 580
}
}
if (class25.garbageCollector != null) {
long var9 = class298.currentTimeMillis();
long var3 = class25.garbageCollector.getCollectionTime();
if (-1L != GameShell.garbageCollectorLastCollectionTime) {
long var5 = var3 - GameShell.garbageCollectorLastCollectionTime;
long var7 = var9 - GameShell.garbageCollectorLastCheckTimeMs;
if (var7 != 0L) {
if (class25.garbageCollector != null) { // L: 582
long var9 = class298.currentTimeMillis(); // L: 583
long var3 = class25.garbageCollector.getCollectionTime(); // L: 584
if (-1L != GameShell.garbageCollectorLastCollectionTime) { // L: 585
long var5 = var3 - GameShell.garbageCollectorLastCollectionTime; // L: 586
long var7 = var9 - GameShell.garbageCollectorLastCheckTimeMs; // L: 587
if (var7 != 0L) { // L: 588
var0 = (int)(100L * var5 / var7);
}
}
GameShell.garbageCollectorLastCollectionTime = var3;
GameShell.garbageCollectorLastCheckTimeMs = var9;
GameShell.garbageCollectorLastCollectionTime = var3; // L: 590
GameShell.garbageCollectorLastCheckTimeMs = var9; // L: 591
}
return var0;
return var0; // L: 593
}
@ObfuscatedName("gm")
@@ -140,14 +140,14 @@ final class GrandExchangeOfferNameComparator implements Comparator {
garbageValue = "112778991"
)
static final void method209() {
if (WorldMapIcon_1.ClanChat_inClanChat) {
if (WorldMapArea.clanChat != null) {
WorldMapArea.clanChat.sort();
if (WorldMapIcon_1.ClanChat_inClanChat) { // L: 3725
if (WorldMapArea.clanChat != null) { // L: 3726
WorldMapArea.clanChat.sort(); // L: 3727
}
SecureRandomCallable.method1217();
WorldMapIcon_1.ClanChat_inClanChat = false;
SecureRandomCallable.method1217(); // L: 3729
WorldMapIcon_1.ClanChat_inClanChat = false; // L: 3730
}
}
} // L: 3732
}

View File

@@ -17,7 +17,7 @@ public class GrandExchangeOfferOwnWorldComparator implements Comparator {
boolean filterWorlds;
GrandExchangeOfferOwnWorldComparator() {
}
} // L: 11252
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -26,29 +26,29 @@ public class GrandExchangeOfferOwnWorldComparator implements Comparator {
)
@Export("compare_bridged")
int compare_bridged(GrandExchangeEvent var1, GrandExchangeEvent var2) {
if (var2.world == var1.world) {
if (var2.world == var1.world) { // L: 11255
return 0;
} else {
if (this.filterWorlds) {
if (Client.worldId == var1.world) {
if (this.filterWorlds) { // L: 11256
if (Client.worldId == var1.world) { // L: 11257
return -1;
}
if (var2.world == Client.worldId) {
if (var2.world == Client.worldId) { // L: 11258
return 1;
}
}
return var1.world < var2.world ? -1 : 1;
return var1.world < var2.world ? -1 : 1; // L: 11260
}
}
public int compare(Object var1, Object var2) {
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2);
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2); // L: 11264
}
public boolean equals(Object var1) {
return super.equals(var1);
return super.equals(var1); // L: 11268
}
@ObfuscatedName("g")
@@ -57,10 +57,10 @@ public class GrandExchangeOfferOwnWorldComparator implements Comparator {
garbageValue = "-812111829"
)
static final void method1359(String var0, int var1) {
PacketBufferNode var2 = ItemContainer.getPacketBufferNode(ClientPacket.field2292, Client.packetWriter.isaacCipher);
var2.packetBuffer.writeByte(FloorDecoration.stringCp1252NullTerminatedByteSize(var0) + 1);
var2.packetBuffer.writeStringCp1252NullTerminated(var0);
var2.packetBuffer.method5569(var1);
Client.packetWriter.addNode(var2);
}
PacketBufferNode var2 = ItemContainer.getPacketBufferNode(ClientPacket.field2292, Client.packetWriter.isaacCipher); // L: 252
var2.packetBuffer.writeByte(FloorDecoration.stringCp1252NullTerminatedByteSize(var0) + 1); // L: 253
var2.packetBuffer.writeStringCp1252NullTerminated(var0); // L: 254
var2.packetBuffer.method5569(var1); // L: 255
Client.packetWriter.addNode(var2); // L: 256
} // L: 257
}

View File

@@ -26,15 +26,15 @@ final class GrandExchangeOfferTotalQuantityComparator implements Comparator {
)
@Export("compare_bridged")
int compare_bridged(GrandExchangeEvent var1, GrandExchangeEvent var2) {
return var1.grandExchangeOffer.totalQuantity < var2.grandExchangeOffer.totalQuantity ? -1 : (var2.grandExchangeOffer.totalQuantity == var1.grandExchangeOffer.totalQuantity ? 0 : 1);
return var1.grandExchangeOffer.totalQuantity < var2.grandExchangeOffer.totalQuantity ? -1 : (var2.grandExchangeOffer.totalQuantity == var1.grandExchangeOffer.totalQuantity ? 0 : 1); // L: 69
}
public int compare(Object var1, Object var2) {
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2);
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2); // L: 73
}
public boolean equals(Object var1) {
return super.equals(var1);
return super.equals(var1); // L: 77
}
@ObfuscatedName("i")
@@ -44,10 +44,10 @@ final class GrandExchangeOfferTotalQuantityComparator implements Comparator {
)
static final void method165(String var0) {
StringBuilder var10000 = new StringBuilder();
Object var10001 = null;
Object var10001 = null; // L: 186
var10000 = var10000.append("Please remove ").append(var0);
var10001 = null;
String var1 = var10000.append(" from your friend list first").toString();
class234.addGameMessage(30, "", var1);
}
class234.addGameMessage(30, "", var1); // L: 188
} // L: 190
}

View File

@@ -40,15 +40,15 @@ final class GrandExchangeOfferUnitPriceComparator implements Comparator {
)
@Export("compare_bridged")
int compare_bridged(GrandExchangeEvent var1, GrandExchangeEvent var2) {
return var1.grandExchangeOffer.unitPrice < var2.grandExchangeOffer.unitPrice ? -1 : (var2.grandExchangeOffer.unitPrice == var1.grandExchangeOffer.unitPrice ? 0 : 1);
return var1.grandExchangeOffer.unitPrice < var2.grandExchangeOffer.unitPrice ? -1 : (var2.grandExchangeOffer.unitPrice == var1.grandExchangeOffer.unitPrice ? 0 : 1); // L: 43
}
public int compare(Object var1, Object var2) {
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2);
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2); // L: 47
}
public boolean equals(Object var1) {
return super.equals(var1);
return super.equals(var1); // L: 51
}
@ObfuscatedName("u")
@@ -58,16 +58,16 @@ final class GrandExchangeOfferUnitPriceComparator implements Comparator {
)
@Export("Widget_setKeyIgnoreHeld")
static final void Widget_setKeyIgnoreHeld(Widget var0, int var1) {
if (var0.field2649 == null) {
throw new RuntimeException();
if (var0.field2649 == null) { // L: 936
throw new RuntimeException(); // L: 937
} else {
if (var0.field2684 == null) {
var0.field2684 = new int[var0.field2649.length];
if (var0.field2684 == null) { // L: 939
var0.field2684 = new int[var0.field2649.length]; // L: 940
}
var0.field2684[var1] = Integer.MAX_VALUE;
var0.field2684[var1] = Integer.MAX_VALUE; // L: 942
}
}
} // L: 943
@ObfuscatedName("c")
@ObfuscatedSignature(
@@ -75,54 +75,54 @@ final class GrandExchangeOfferUnitPriceComparator implements Comparator {
garbageValue = "-613147121"
)
static int method200(int var0, Script var1, boolean var2) {
Widget var3 = var2 ? PlayerAppearance.field2561 : VarcInt.field3264;
if (var0 == ScriptOpcodes.CC_GETSCROLLX) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollX;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETSCROLLY) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollY;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETTEXT) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.text;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETSCROLLWIDTH) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollWidth;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETSCROLLHEIGHT) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollHeight;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETMODELZOOM) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelZoom;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_X) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleX;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Z) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleZ;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Y) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleY;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETTRANSTOP) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.transparencyTop;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETTRANSBOT) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.transparencyBot;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETCOLOUR) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.color;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETFILLCOLOUR) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.color2;
return 1;
} else if (var0 == ScriptOpcodes.CC_GETFILLMODE) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.fillMode.rsOrdinal();
return 1;
} else if (var0 == ScriptOpcodes.CC_GETMODELTRANSPARENT) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelTransparency ? 1 : 0;
return 1;
Widget var3 = var2 ? PlayerAppearance.field2561 : VarcInt.field3264; // L: 1041
if (var0 == ScriptOpcodes.CC_GETSCROLLX) { // L: 1042
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollX; // L: 1043
return 1; // L: 1044
} else if (var0 == ScriptOpcodes.CC_GETSCROLLY) { // L: 1046
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollY; // L: 1047
return 1; // L: 1048
} else if (var0 == ScriptOpcodes.CC_GETTEXT) { // L: 1050
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.text; // L: 1051
return 1; // L: 1052
} else if (var0 == ScriptOpcodes.CC_GETSCROLLWIDTH) { // L: 1054
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollWidth; // L: 1055
return 1; // L: 1056
} else if (var0 == ScriptOpcodes.CC_GETSCROLLHEIGHT) { // L: 1058
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.scrollHeight; // L: 1059
return 1; // L: 1060
} else if (var0 == ScriptOpcodes.CC_GETMODELZOOM) { // L: 1062
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelZoom; // L: 1063
return 1; // L: 1064
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_X) { // L: 1066
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleX; // L: 1067
return 1; // L: 1068
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Z) { // L: 1070
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleZ; // L: 1071
return 1; // L: 1072
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Y) { // L: 1074
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelAngleY; // L: 1075
return 1; // L: 1076
} else if (var0 == ScriptOpcodes.CC_GETTRANSTOP) { // L: 1078
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.transparencyTop; // L: 1079
return 1; // L: 1080
} else if (var0 == ScriptOpcodes.CC_GETTRANSBOT) { // L: 1082
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.transparencyBot; // L: 1083
return 1; // L: 1084
} else if (var0 == ScriptOpcodes.CC_GETCOLOUR) { // L: 1086
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.color; // L: 1087
return 1; // L: 1088
} else if (var0 == ScriptOpcodes.CC_GETFILLCOLOUR) { // L: 1090
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.color2; // L: 1091
return 1; // L: 1092
} else if (var0 == ScriptOpcodes.CC_GETFILLMODE) { // L: 1094
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.fillMode.rsOrdinal(); // L: 1095
return 1; // L: 1096
} else if (var0 == ScriptOpcodes.CC_GETMODELTRANSPARENT) { // L: 1098
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.modelTransparency ? 1 : 0; // L: 1099
return 1; // L: 1100
} else {
return 2;
return 2; // L: 1102
}
}
}

View File

@@ -23,14 +23,14 @@ final class GrandExchangeOfferWorldComparator implements Comparator {
)
@Export("compare_bridged")
int compare_bridged(GrandExchangeEvent var1, GrandExchangeEvent var2) {
return var1.world < var2.world ? -1 : (var2.world == var1.world ? 0 : 1);
return var1.world < var2.world ? -1 : (var2.world == var1.world ? 0 : 1); // L: 28
}
public int compare(Object var1, Object var2) {
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2);
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2); // L: 32
}
public boolean equals(Object var1) {
return super.equals(var1);
return super.equals(var1); // L: 36
}
}

View File

@@ -67,17 +67,17 @@ public class GraphicsDefaults {
public int field3850;
public GraphicsDefaults() {
this.compass = -1;
this.field3845 = -1;
this.mapScenes = -1;
this.headIconsPk = -1;
this.field3844 = -1;
this.field3843 = -1;
this.field3846 = -1;
this.field3847 = -1;
this.field3848 = -1;
this.field3849 = -1;
this.field3850 = -1;
this.compass = -1; // L: 7
this.field3845 = -1; // L: 8
this.mapScenes = -1; // L: 9
this.headIconsPk = -1; // L: 10
this.field3844 = -1; // L: 11
this.field3843 = -1; // L: 12
this.field3846 = -1; // L: 13
this.field3847 = -1; // L: 14
this.field3848 = -1; // L: 15
this.field3849 = -1; // L: 16
this.field3850 = -1; // L: 17
}
@ObfuscatedName("h")
@@ -87,31 +87,31 @@ public class GraphicsDefaults {
)
@Export("decode")
public void decode(AbstractArchive var1) {
byte[] var2 = var1.takeFileFlat(DefaultsGroup.field3839.group);
Buffer var3 = new Buffer(var2);
byte[] var2 = var1.takeFileFlat(DefaultsGroup.field3839.group); // L: 20
Buffer var3 = new Buffer(var2); // L: 21
while (true) {
int var4 = var3.readUnsignedByte();
if (var4 == 0) {
return;
int var4 = var3.readUnsignedByte(); // L: 23
if (var4 == 0) { // L: 24
return; // L: 51
}
switch(var4) {
switch(var4) { // L: 25
case 1:
var3.readMedium();
break;
var3.readMedium(); // L: 31
break; // L: 32
case 2:
this.compass = var3.method5559();
this.field3845 = var3.method5559();
this.mapScenes = var3.method5559();
this.headIconsPk = var3.method5559();
this.field3844 = var3.method5559();
this.field3843 = var3.method5559();
this.field3846 = var3.method5559();
this.field3847 = var3.method5559();
this.field3848 = var3.method5559();
this.field3849 = var3.method5559();
this.field3850 = var3.method5559();
this.compass = var3.method5559(); // L: 36
this.field3845 = var3.method5559(); // L: 37
this.mapScenes = var3.method5559(); // L: 38
this.headIconsPk = var3.method5559(); // L: 39
this.field3844 = var3.method5559(); // L: 40
this.field3843 = var3.method5559(); // L: 41
this.field3846 = var3.method5559(); // L: 42
this.field3847 = var3.method5559(); // L: 43
this.field3848 = var3.method5559(); // L: 44
this.field3849 = var3.method5559(); // L: 45
this.field3850 = var3.method5559(); // L: 46
}
}
}

View File

@@ -68,24 +68,24 @@ public final class GraphicsObject extends Entity {
boolean isFinished;
GraphicsObject(int var1, int var2, int var3, int var4, int var5, int var6, int var7) {
this.frame = 0;
this.frameCycle = 0;
this.isFinished = false;
this.id = var1;
this.plane = var2;
this.x = var3;
this.y = var4;
this.height = var5;
this.cycleStart = var7 + var6;
int var8 = TileItem.SpotAnimationDefinition_get(this.id).sequence;
if (var8 != -1) {
this.isFinished = false;
this.sequenceDefinition = ParamDefinition.SequenceDefinition_get(var8);
this.frame = 0; // L: 16
this.frameCycle = 0; // L: 17
this.isFinished = false; // L: 18
this.id = var1; // L: 21
this.plane = var2; // L: 22
this.x = var3; // L: 23
this.y = var4; // L: 24
this.height = var5; // L: 25
this.cycleStart = var7 + var6; // L: 26
int var8 = TileItem.SpotAnimationDefinition_get(this.id).sequence; // L: 27
if (var8 != -1) { // L: 28
this.isFinished = false; // L: 29
this.sequenceDefinition = ParamDefinition.SequenceDefinition_get(var8); // L: 30
} else {
this.isFinished = true;
this.isFinished = true; // L: 32
}
}
} // L: 33
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -94,20 +94,20 @@ public final class GraphicsObject extends Entity {
)
@Export("advance")
final void advance(int var1) {
if (!this.isFinished) {
this.frameCycle += var1;
if (!this.isFinished) { // L: 36
this.frameCycle += var1; // L: 37
while (this.frameCycle > this.sequenceDefinition.frameLengths[this.frame]) {
this.frameCycle -= this.sequenceDefinition.frameLengths[this.frame];
++this.frame;
if (this.frame >= this.sequenceDefinition.frameIds.length) {
this.isFinished = true;
while (this.frameCycle > this.sequenceDefinition.frameLengths[this.frame]) { // L: 38
this.frameCycle -= this.sequenceDefinition.frameLengths[this.frame]; // L: 39
++this.frame; // L: 40
if (this.frame >= this.sequenceDefinition.frameIds.length) { // L: 41
this.isFinished = true; // L: 42
break;
}
}
}
}
} // L: 46
@ObfuscatedName("l")
@ObfuscatedSignature(
@@ -116,15 +116,15 @@ public final class GraphicsObject extends Entity {
)
@Export("getModel")
protected final Model getModel() {
SpotAnimationDefinition var1 = TileItem.SpotAnimationDefinition_get(this.id);
SpotAnimationDefinition var1 = TileItem.SpotAnimationDefinition_get(this.id); // L: 49
Model var2;
if (!this.isFinished) {
if (!this.isFinished) { // L: 51
var2 = var1.getModel(this.frame);
} else {
var2 = var1.getModel(-1);
var2 = var1.getModel(-1); // L: 52
}
return var2 == null ? null : var2;
return var2 == null ? null : var2; // L: 53
}
@ObfuscatedName("w")
@@ -133,38 +133,38 @@ public final class GraphicsObject extends Entity {
garbageValue = "14"
)
public static void method2090() {
synchronized(KeyHandler.KeyHandler_instance) {
++KeyHandler.KeyHandler_idleCycles;
KeyHandler.field415 = KeyHandler.field417;
KeyHandler.field414 = 0;
synchronized(KeyHandler.KeyHandler_instance) { // L: 164
++KeyHandler.KeyHandler_idleCycles; // L: 165
KeyHandler.field415 = KeyHandler.field417; // L: 166
KeyHandler.field414 = 0; // L: 167
int var1;
if (KeyHandler.field410 < 0) {
for (var1 = 0; var1 < 112; ++var1) {
if (KeyHandler.field410 < 0) { // L: 168
for (var1 = 0; var1 < 112; ++var1) { // L: 169
KeyHandler.KeyHandler_pressedKeys[var1] = false;
}
KeyHandler.field410 = KeyHandler.field401;
KeyHandler.field410 = KeyHandler.field401; // L: 170
} else {
while (KeyHandler.field401 != KeyHandler.field410) {
var1 = KeyHandler.field408[KeyHandler.field401];
KeyHandler.field401 = KeyHandler.field401 + 1 & 127;
if (var1 < 0) {
while (KeyHandler.field401 != KeyHandler.field410) { // L: 173
var1 = KeyHandler.field408[KeyHandler.field401]; // L: 174
KeyHandler.field401 = KeyHandler.field401 + 1 & 127; // L: 175
if (var1 < 0) { // L: 176
KeyHandler.KeyHandler_pressedKeys[~var1] = false;
} else {
if (!KeyHandler.KeyHandler_pressedKeys[var1] && KeyHandler.field414 < KeyHandler.field413.length - 1) {
KeyHandler.field413[++KeyHandler.field414 - 1] = var1;
if (!KeyHandler.KeyHandler_pressedKeys[var1] && KeyHandler.field414 < KeyHandler.field413.length - 1) { // L: 178
KeyHandler.field413[++KeyHandler.field414 - 1] = var1; // L: 179
}
KeyHandler.KeyHandler_pressedKeys[var1] = true;
KeyHandler.KeyHandler_pressedKeys[var1] = true; // L: 181
}
}
}
if (KeyHandler.field414 > 0) {
if (KeyHandler.field414 > 0) { // L: 185
KeyHandler.KeyHandler_idleCycles = 0;
}
KeyHandler.field417 = KeyHandler.field419;
KeyHandler.field417 = KeyHandler.field419; // L: 186
}
}
} // L: 188
}

View File

@@ -23,9 +23,9 @@ public class HealthBar extends Node {
descriptor = "(Lie;)V"
)
HealthBar(HealthBarDefinition var1) {
this.updates = new IterableNodeDeque();
this.definition = var1;
}
this.updates = new IterableNodeDeque(); // L: 12
this.definition = var1; // L: 15
} // L: 16
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -34,34 +34,34 @@ public class HealthBar extends Node {
)
@Export("put")
void put(int var1, int var2, int var3, int var4) {
HealthBarUpdate var5 = null;
int var6 = 0;
HealthBarUpdate var5 = null; // L: 19
int var6 = 0; // L: 20
for (HealthBarUpdate var7 = (HealthBarUpdate)this.updates.last(); var7 != null; var7 = (HealthBarUpdate)this.updates.previous()) {
++var6;
if (var7.cycle == var1) {
var7.set(var1, var2, var3, var4);
return;
for (HealthBarUpdate var7 = (HealthBarUpdate)this.updates.last(); var7 != null; var7 = (HealthBarUpdate)this.updates.previous()) { // L: 21
++var6; // L: 22
if (var7.cycle == var1) { // L: 23
var7.set(var1, var2, var3, var4); // L: 24
return; // L: 25
}
if (var7.cycle <= var1) {
var5 = var7;
var5 = var7; // L: 27
}
}
if (var5 == null) {
if (var6 < 4) {
if (var5 == null) { // L: 29
if (var6 < 4) { // L: 30
this.updates.addLast(new HealthBarUpdate(var1, var2, var3, var4));
}
} else {
IterableNodeDeque.IterableNodeDeque_addBefore(new HealthBarUpdate(var1, var2, var3, var4), var5);
IterableNodeDeque.IterableNodeDeque_addBefore(new HealthBarUpdate(var1, var2, var3, var4), var5); // L: 33
if (var6 >= 4) {
this.updates.last().remove();
this.updates.last().remove(); // L: 34
}
}
}
} // L: 31 35
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -70,18 +70,18 @@ public class HealthBar extends Node {
)
@Export("get")
HealthBarUpdate get(int var1) {
HealthBarUpdate var2 = (HealthBarUpdate)this.updates.last();
if (var2 != null && var2.cycle <= var1) {
for (HealthBarUpdate var3 = (HealthBarUpdate)this.updates.previous(); var3 != null && var3.cycle <= var1; var3 = (HealthBarUpdate)this.updates.previous()) {
var2.remove();
var2 = var3;
HealthBarUpdate var2 = (HealthBarUpdate)this.updates.last(); // L: 38
if (var2 != null && var2.cycle <= var1) { // L: 39
for (HealthBarUpdate var3 = (HealthBarUpdate)this.updates.previous(); var3 != null && var3.cycle <= var1; var3 = (HealthBarUpdate)this.updates.previous()) { // L: 40 41
var2.remove(); // L: 42
var2 = var3; // L: 43
}
if (this.definition.int5 + var2.cycle + var2.cycleOffset > var1) {
if (this.definition.int5 + var2.cycle + var2.cycleOffset > var1) { // L: 47
return var2;
} else {
var2.remove();
return null;
var2.remove(); // L: 49
return null; // L: 50
}
} else {
return null;
@@ -95,6 +95,6 @@ public class HealthBar extends Node {
)
@Export("isEmpty")
boolean isEmpty() {
return this.updates.method4840();
return this.updates.method4840(); // L: 55
}
}

View File

@@ -85,21 +85,21 @@ public class HealthBarDefinition extends DualNode {
public int widthPadding;
static {
HealthBarDefinition_cached = new EvictingDualNodeHashTable(64);
HealthBarDefinition_cachedSprites = new EvictingDualNodeHashTable(64);
HealthBarDefinition_cached = new EvictingDualNodeHashTable(64); // L: 14
HealthBarDefinition_cachedSprites = new EvictingDualNodeHashTable(64); // L: 15
}
HealthBarDefinition() {
this.int1 = 255;
this.int2 = 255;
this.int3 = -1;
this.field3307 = 1;
this.int5 = 70;
this.frontSpriteID = -1;
this.backSpriteID = -1;
this.width = 30;
this.widthPadding = 0;
}
this.int1 = 255; // L: 19
this.int2 = 255; // L: 20
this.int3 = -1; // L: 21
this.field3307 = 1; // L: 22
this.int5 = 70; // L: 23
this.frontSpriteID = -1; // L: 24
this.backSpriteID = -1; // L: 25
this.width = 30; // L: 26
this.widthPadding = 0; // L: 27
} // L: 29
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -109,12 +109,12 @@ public class HealthBarDefinition extends DualNode {
@Export("decode")
void decode(Buffer var1) {
while (true) {
int var2 = var1.readUnsignedByte();
if (var2 == 0) {
return;
int var2 = var1.readUnsignedByte(); // L: 48
if (var2 == 0) { // L: 49
return; // L: 52
}
this.decodeNext(var1, var2);
this.decodeNext(var1, var2); // L: 50
}
}
@@ -125,17 +125,17 @@ public class HealthBarDefinition extends DualNode {
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2) {
if (var2 == 1) {
var1.readUnsignedShort();
} else if (var2 == 2) {
if (var2 == 1) { // L: 55
var1.readUnsignedShort(); // L: 56
} else if (var2 == 2) { // L: 58
this.int1 = var1.readUnsignedByte();
} else if (var2 == 3) {
} else if (var2 == 3) { // L: 59
this.int2 = var1.readUnsignedByte();
} else if (var2 == 4) {
} else if (var2 == 4) { // L: 60
this.int3 = 0;
} else if (var2 == 5) {
this.int5 = var1.readUnsignedShort();
} else if (var2 == 6) {
this.int5 = var1.readUnsignedShort(); // L: 61
} else if (var2 == 6) { // L: 62
var1.readUnsignedByte();
} else if (var2 == 7) {
this.frontSpriteID = var1.method5559();
@@ -158,7 +158,7 @@ public class HealthBarDefinition extends DualNode {
)
@Export("getFrontSprite")
public Sprite getFrontSprite() {
if (this.frontSpriteID < 0) {
if (this.frontSpriteID < 0) { // L: 74
return null;
} else {
Sprite var1 = (Sprite)HealthBarDefinition_cachedSprites.get((long)this.frontSpriteID);
@@ -170,7 +170,7 @@ public class HealthBarDefinition extends DualNode {
HealthBarDefinition_cachedSprites.put(var1, (long)this.frontSpriteID);
}
return var1;
return var1; // L: 80
}
}
}
@@ -182,19 +182,19 @@ public class HealthBarDefinition extends DualNode {
)
@Export("getBackSprite")
public Sprite getBackSprite() {
if (this.backSpriteID < 0) {
if (this.backSpriteID < 0) { // L: 84
return null;
} else {
Sprite var1 = (Sprite)HealthBarDefinition_cachedSprites.get((long)this.backSpriteID);
Sprite var1 = (Sprite)HealthBarDefinition_cachedSprites.get((long)this.backSpriteID); // L: 85
if (var1 != null) {
return var1;
return var1; // L: 86
} else {
var1 = Skills.SpriteBuffer_getSprite(HitSplatDefinition_spritesArchive, this.backSpriteID, 0);
var1 = Skills.SpriteBuffer_getSprite(HitSplatDefinition_spritesArchive, this.backSpriteID, 0); // L: 87
if (var1 != null) {
HealthBarDefinition_cachedSprites.put(var1, (long)this.backSpriteID);
HealthBarDefinition_cachedSprites.put(var1, (long)this.backSpriteID); // L: 88
}
return var1;
return var1; // L: 90
}
}
}
@@ -206,24 +206,24 @@ public class HealthBarDefinition extends DualNode {
)
@Export("changeWorldSelectSorting")
static void changeWorldSelectSorting(int var0, int var1) {
int[] var2 = new int[4];
int[] var3 = new int[4];
var2[0] = var0;
var3[0] = var1;
int var4 = 1;
int[] var2 = new int[4]; // L: 63
int[] var3 = new int[4]; // L: 64
var2[0] = var0; // L: 65
var3[0] = var1; // L: 66
int var4 = 1; // L: 67
for (int var5 = 0; var5 < 4; ++var5) {
if (World.World_sortOption1[var5] != var0) {
var2[var4] = World.World_sortOption1[var5];
var3[var4] = World.World_sortOption2[var5];
++var4;
for (int var5 = 0; var5 < 4; ++var5) { // L: 68
if (World.World_sortOption1[var5] != var0) { // L: 69
var2[var4] = World.World_sortOption1[var5]; // L: 70
var3[var4] = World.World_sortOption2[var5]; // L: 71
++var4; // L: 72
}
}
World.World_sortOption1 = var2;
World.World_sortOption2 = var3;
ChatChannel.sortWorlds(World.World_worlds, 0, World.World_worlds.length - 1, World.World_sortOption1, World.World_sortOption2);
}
World.World_sortOption1 = var2; // L: 75
World.World_sortOption2 = var3; // L: 76
ChatChannel.sortWorlds(World.World_worlds, 0, World.World_worlds.length - 1, World.World_sortOption1, World.World_sortOption2); // L: 77
} // L: 78
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -232,36 +232,36 @@ public class HealthBarDefinition extends DualNode {
)
@Export("intToString")
public static String intToString(int var0, boolean var1) {
if (var1 && var0 >= 0) {
int var3 = var0;
if (var1 && var0 >= 0) { // L: 110
int var3 = var0; // L: 112
String var2;
if (var1 && var0 >= 0) {
int var4 = 2;
if (var1 && var0 >= 0) { // L: 115
int var4 = 2; // L: 119
for (int var5 = var0 / 10; var5 != 0; ++var4) {
var5 /= 10;
for (int var5 = var0 / 10; var5 != 0; ++var4) { // L: 120 121 123
var5 /= 10; // L: 122
}
char[] var6 = new char[var4];
var6[0] = '+';
char[] var6 = new char[var4]; // L: 125
var6[0] = '+'; // L: 126
for (int var7 = var4 - 1; var7 > 0; --var7) {
int var8 = var3;
var3 /= 10;
int var9 = var8 - var3 * 10;
if (var9 >= 10) {
for (int var7 = var4 - 1; var7 > 0; --var7) { // L: 127
int var8 = var3; // L: 128
var3 /= 10; // L: 129
int var9 = var8 - var3 * 10; // L: 130
if (var9 >= 10) { // L: 131
var6[var7] = (char)(var9 + 87);
} else {
var6[var7] = (char)(var9 + 48);
var6[var7] = (char)(var9 + 48); // L: 132
}
}
var2 = new String(var6);
var2 = new String(var6); // L: 134
} else {
var2 = Integer.toString(var0, 10);
var2 = Integer.toString(var0, 10); // L: 116
}
return var2;
return var2; // L: 136
} else {
return Integer.toString(var0);
}
@@ -273,10 +273,10 @@ public class HealthBarDefinition extends DualNode {
garbageValue = "46"
)
public static void method4509() {
HitSplatDefinition.HitSplatDefinition_cached.clear();
HitSplatDefinition.HitSplatDefinition_cachedSprites.clear();
HitSplatDefinition.HitSplatDefinition_cachedFonts.clear();
}
HitSplatDefinition.HitSplatDefinition_cached.clear(); // L: 177
HitSplatDefinition.HitSplatDefinition_cachedSprites.clear(); // L: 178
HitSplatDefinition.HitSplatDefinition_cachedFonts.clear(); // L: 179
} // L: 180
@ObfuscatedName("jo")
@ObfuscatedSignature(
@@ -284,30 +284,30 @@ public class HealthBarDefinition extends DualNode {
garbageValue = "128"
)
static final int method4512(Widget var0, int var1) {
if (var0.cs1Instructions != null && var1 < var0.cs1Instructions.length) {
if (var0.cs1Instructions != null && var1 < var0.cs1Instructions.length) { // L: 9606
try {
int[] var2 = var0.cs1Instructions[var1];
int var3 = 0;
int var4 = 0;
byte var5 = 0;
int[] var2 = var0.cs1Instructions[var1]; // L: 9608
int var3 = 0; // L: 9609
int var4 = 0; // L: 9610
byte var5 = 0; // L: 9611
while (true) {
int var6 = var2[var4++];
int var7 = 0;
byte var8 = 0;
if (var6 == 0) {
int var6 = var2[var4++]; // L: 9613
int var7 = 0; // L: 9614
byte var8 = 0; // L: 9615
if (var6 == 0) { // L: 9616
return var3;
}
if (var6 == 1) {
if (var6 == 1) { // L: 9617
var7 = Client.currentLevels[var2[var4++]];
}
if (var6 == 2) {
if (var6 == 2) { // L: 9618
var7 = Client.levels[var2[var4++]];
}
if (var6 == 3) {
if (var6 == 3) { // L: 9619
var7 = Client.experience[var2[var4++]];
}
@@ -315,126 +315,126 @@ public class HealthBarDefinition extends DualNode {
Widget var10;
int var11;
int var12;
if (var6 == 4) {
var9 = var2[var4++] << 16;
var9 += var2[var4++];
var10 = CollisionMap.getWidget(var9);
var11 = var2[var4++];
if (var11 != -1 && (!SecureRandomCallable.ItemDefinition_get(var11).isMembersOnly || Client.isMembersWorld)) {
for (var12 = 0; var12 < var10.itemIds.length; ++var12) {
if (var11 + 1 == var10.itemIds[var12]) {
if (var6 == 4) { // L: 9620
var9 = var2[var4++] << 16; // L: 9621
var9 += var2[var4++]; // L: 9622
var10 = CollisionMap.getWidget(var9); // L: 9623
var11 = var2[var4++]; // L: 9624
if (var11 != -1 && (!SecureRandomCallable.ItemDefinition_get(var11).isMembersOnly || Client.isMembersWorld)) { // L: 9625
for (var12 = 0; var12 < var10.itemIds.length; ++var12) { // L: 9626
if (var11 + 1 == var10.itemIds[var12]) { // L: 9627
var7 += var10.itemQuantities[var12];
}
}
}
}
if (var6 == 5) {
if (var6 == 5) { // L: 9631
var7 = Varps.Varps_main[var2[var4++]];
}
if (var6 == 6) {
if (var6 == 6) { // L: 9632
var7 = Skills.Skills_experienceTable[Client.levels[var2[var4++]] - 1];
}
if (var6 == 7) {
if (var6 == 7) { // L: 9633
var7 = Varps.Varps_main[var2[var4++]] * 100 / 46875;
}
if (var6 == 8) {
if (var6 == 8) { // L: 9634
var7 = PlayerAppearance.localPlayer.combatLevel;
}
if (var6 == 9) {
for (var9 = 0; var9 < 25; ++var9) {
if (Skills.Skills_enabled[var9]) {
if (var6 == 9) { // L: 9635
for (var9 = 0; var9 < 25; ++var9) { // L: 9636
if (Skills.Skills_enabled[var9]) { // L: 9637
var7 += Client.levels[var9];
}
}
}
if (var6 == 10) {
var9 = var2[var4++] << 16;
var9 += var2[var4++];
var10 = CollisionMap.getWidget(var9);
var11 = var2[var4++];
if (var11 != -1 && (!SecureRandomCallable.ItemDefinition_get(var11).isMembersOnly || Client.isMembersWorld)) {
for (var12 = 0; var12 < var10.itemIds.length; ++var12) {
if (var11 + 1 == var10.itemIds[var12]) {
var7 = 999999999;
break;
if (var6 == 10) { // L: 9640
var9 = var2[var4++] << 16; // L: 9641
var9 += var2[var4++]; // L: 9642
var10 = CollisionMap.getWidget(var9); // L: 9643
var11 = var2[var4++]; // L: 9644
if (var11 != -1 && (!SecureRandomCallable.ItemDefinition_get(var11).isMembersOnly || Client.isMembersWorld)) { // L: 9645
for (var12 = 0; var12 < var10.itemIds.length; ++var12) { // L: 9646
if (var11 + 1 == var10.itemIds[var12]) { // L: 9647
var7 = 999999999; // L: 9648
break; // L: 9649
}
}
}
}
if (var6 == 11) {
if (var6 == 11) { // L: 9654
var7 = Client.runEnergy;
}
if (var6 == 12) {
if (var6 == 12) { // L: 9655
var7 = Client.weight;
}
if (var6 == 13) {
var9 = Varps.Varps_main[var2[var4++]];
int var13 = var2[var4++];
var7 = (var9 & 1 << var13) != 0 ? 1 : 0;
if (var6 == 13) { // L: 9656
var9 = Varps.Varps_main[var2[var4++]]; // L: 9657
int var13 = var2[var4++]; // L: 9658
var7 = (var9 & 1 << var13) != 0 ? 1 : 0; // L: 9659
}
if (var6 == 14) {
var9 = var2[var4++];
var7 = Coord.getVarbit(var9);
if (var6 == 14) { // L: 9661
var9 = var2[var4++]; // L: 9662
var7 = Coord.getVarbit(var9); // L: 9663
}
if (var6 == 15) {
if (var6 == 15) { // L: 9665
var8 = 1;
}
if (var6 == 16) {
if (var6 == 16) { // L: 9666
var8 = 2;
}
if (var6 == 17) {
if (var6 == 17) { // L: 9667
var8 = 3;
}
if (var6 == 18) {
var7 = NetFileRequest.baseX * 64 + (PlayerAppearance.localPlayer.x >> 7);
if (var6 == 18) { // L: 9668
var7 = (PlayerAppearance.localPlayer.x >> 7) + NetFileRequest.baseX;
}
if (var6 == 19) {
var7 = class41.baseY * 64 + (PlayerAppearance.localPlayer.y >> 7);
if (var6 == 19) { // L: 9669
var7 = (PlayerAppearance.localPlayer.y >> 7) + class41.baseY;
}
if (var6 == 20) {
if (var6 == 20) { // L: 9670
var7 = var2[var4++];
}
if (var8 == 0) {
if (var5 == 0) {
if (var8 == 0) { // L: 9671
if (var5 == 0) { // L: 9672
var3 += var7;
}
if (var5 == 1) {
if (var5 == 1) { // L: 9673
var3 -= var7;
}
if (var5 == 2 && var7 != 0) {
if (var5 == 2 && var7 != 0) { // L: 9674
var3 /= var7;
}
if (var5 == 3) {
if (var5 == 3) { // L: 9675
var3 *= var7;
}
var5 = 0;
var5 = 0; // L: 9676
} else {
var5 = var8;
var5 = var8; // L: 9678
}
}
} catch (Exception var14) {
return -1;
} catch (Exception var14) { // L: 9681
return -1; // L: 9682
}
} else {
return -2;

View File

@@ -39,11 +39,11 @@ public class HealthBarUpdate extends Node {
int cycleOffset;
HealthBarUpdate(int var1, int var2, int var3, int var4) {
this.cycle = var1;
this.health = var2;
this.health2 = var3;
this.cycleOffset = var4;
}
this.cycle = var1; // L: 12
this.health = var2; // L: 13
this.health2 = var3; // L: 14
this.cycleOffset = var4; // L: 15
} // L: 16
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -52,11 +52,11 @@ public class HealthBarUpdate extends Node {
)
@Export("set")
void set(int var1, int var2, int var3, int var4) {
this.cycle = var1;
this.health = var2;
this.health2 = var3;
this.cycleOffset = var4;
}
this.cycle = var1; // L: 19
this.health = var2; // L: 20
this.health2 = var3; // L: 21
this.cycleOffset = var4; // L: 22
} // L: 23
@ObfuscatedName("v")
@ObfuscatedSignature(
@@ -64,18 +64,18 @@ public class HealthBarUpdate extends Node {
garbageValue = "-68"
)
public static HealthBarDefinition method1826(int var0) {
HealthBarDefinition var1 = (HealthBarDefinition)HealthBarDefinition.HealthBarDefinition_cached.get((long)var0);
if (var1 != null) {
HealthBarDefinition var1 = (HealthBarDefinition)HealthBarDefinition.HealthBarDefinition_cached.get((long)var0); // L: 37
if (var1 != null) { // L: 38
return var1;
} else {
byte[] var2 = class225.HealthBarDefinition_archive.takeFile(33, var0);
var1 = new HealthBarDefinition();
if (var2 != null) {
byte[] var2 = class225.HealthBarDefinition_archive.takeFile(33, var0); // L: 39
var1 = new HealthBarDefinition(); // L: 40
if (var2 != null) { // L: 41
var1.decode(new Buffer(var2));
}
HealthBarDefinition.HealthBarDefinition_cached.put(var1, (long)var0);
return var1;
HealthBarDefinition.HealthBarDefinition_cached.put(var1, (long)var0); // L: 42
return var1; // L: 43
}
}
@@ -85,7 +85,7 @@ public class HealthBarUpdate extends Node {
garbageValue = "307117656"
)
static int method1823(int var0) {
return (int)Math.pow(2.0D, (double)((float)var0 / 256.0F + 7.0F));
return (int)Math.pow(2.0D, (double)((float)var0 / 256.0F + 7.0F)); // L: 3259
}
@ObfuscatedName("kc")
@@ -94,40 +94,40 @@ public class HealthBarUpdate extends Node {
garbageValue = "-1439133446"
)
static final boolean method1825(Widget var0) {
int var1 = var0.contentType;
if (var1 == 205) {
Client.logoutTimer = 250;
return true;
int var1 = var0.contentType; // L: 10843
if (var1 == 205) { // L: 10844
Client.logoutTimer = 250; // L: 10845
return true; // L: 10846
} else {
int var2;
int var3;
if (var1 >= 300 && var1 <= 313) {
var2 = (var1 - 300) / 2;
var3 = var1 & 1;
Client.playerAppearance.changeAppearance(var2, var3 == 1);
if (var1 >= 300 && var1 <= 313) { // L: 10848
var2 = (var1 - 300) / 2; // L: 10849
var3 = var1 & 1; // L: 10850
Client.playerAppearance.changeAppearance(var2, var3 == 1); // L: 10851
}
if (var1 >= 314 && var1 <= 323) {
var2 = (var1 - 314) / 2;
var3 = var1 & 1;
Client.playerAppearance.method4043(var2, var3 == 1);
if (var1 >= 314 && var1 <= 323) { // L: 10853
var2 = (var1 - 314) / 2; // L: 10854
var3 = var1 & 1; // L: 10855
Client.playerAppearance.method4043(var2, var3 == 1); // L: 10856
}
if (var1 == 324) {
Client.playerAppearance.changeSex(false);
Client.playerAppearance.changeSex(false); // L: 10858
}
if (var1 == 325) {
if (var1 == 325) { // L: 10859
Client.playerAppearance.changeSex(true);
}
if (var1 == 326) {
PacketBufferNode var4 = ItemContainer.getPacketBufferNode(ClientPacket.field2239, Client.packetWriter.isaacCipher);
Client.playerAppearance.write(var4.packetBuffer);
Client.packetWriter.addNode(var4);
return true;
if (var1 == 326) { // L: 10860
PacketBufferNode var4 = ItemContainer.getPacketBufferNode(ClientPacket.field2239, Client.packetWriter.isaacCipher); // L: 10862
Client.playerAppearance.write(var4.packetBuffer); // L: 10863
Client.packetWriter.addNode(var4); // L: 10864
return true; // L: 10865
} else {
return false;
return false; // L: 10867
}
}
}

View File

@@ -130,21 +130,21 @@ public class HitSplatDefinition extends DualNode {
HitSplatDefinition() {
this.fontId = -1;
this.textColor = 16777215;
this.field3364 = 70;
this.field3365 = -1;
this.field3366 = -1;
this.field3355 = -1;
this.field3358 = -1;
this.field3377 = 0;
this.field3353 = 0;
this.field3378 = -1;
this.field3370 = "";
this.field3373 = -1;
this.field3374 = 0;
this.transformVarbit = -1;
this.transformVarp = -1;
}
this.textColor = 16777215; // L: 27
this.field3364 = 70; // L: 28
this.field3365 = -1; // L: 29
this.field3366 = -1; // L: 30
this.field3355 = -1; // L: 31
this.field3358 = -1; // L: 32
this.field3377 = 0; // L: 33
this.field3353 = 0; // L: 34
this.field3378 = -1; // L: 35
this.field3370 = ""; // L: 36
this.field3373 = -1; // L: 37
this.field3374 = 0; // L: 38
this.transformVarbit = -1; // L: 40
this.transformVarp = -1; // L: 41
} // L: 43
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -154,12 +154,12 @@ public class HitSplatDefinition extends DualNode {
@Export("decode")
void decode(Buffer var1) {
while (true) {
int var2 = var1.readUnsignedByte();
if (var2 == 0) {
return;
int var2 = var1.readUnsignedByte(); // L: 63
if (var2 == 0) { // L: 64
return; // L: 67
}
this.decodeNext(var1, var2);
this.decodeNext(var1, var2); // L: 65
}
}
@@ -170,67 +170,67 @@ public class HitSplatDefinition extends DualNode {
)
@Export("decodeNext")
void decodeNext(Buffer var1, int var2) {
if (var2 == 1) {
if (var2 == 1) { // L: 70
this.fontId = var1.method5559();
} else if (var2 == 2) {
} else if (var2 == 2) { // L: 71
this.textColor = var1.readMedium();
} else if (var2 == 3) {
} else if (var2 == 3) { // L: 72
this.field3365 = var1.method5559();
} else if (var2 == 4) {
} else if (var2 == 4) { // L: 73
this.field3355 = var1.method5559();
} else if (var2 == 5) {
} else if (var2 == 5) { // L: 74
this.field3366 = var1.method5559();
} else if (var2 == 6) {
} else if (var2 == 6) { // L: 75
this.field3358 = var1.method5559();
} else if (var2 == 7) {
} else if (var2 == 7) { // L: 76
this.field3377 = var1.readShort();
} else if (var2 == 8) {
} else if (var2 == 8) { // L: 77
this.field3370 = var1.readStringCp1252NullCircumfixed();
} else if (var2 == 9) {
} else if (var2 == 9) { // L: 78
this.field3364 = var1.readUnsignedShort();
} else if (var2 == 10) {
} else if (var2 == 10) { // L: 79
this.field3353 = var1.readShort();
} else if (var2 == 11) {
} else if (var2 == 11) { // L: 80
this.field3378 = 0;
} else if (var2 == 12) {
} else if (var2 == 12) { // L: 81
this.field3373 = var1.readUnsignedByte();
} else if (var2 == 13) {
} else if (var2 == 13) { // L: 82
this.field3374 = var1.readShort();
} else if (var2 == 14) {
this.field3378 = var1.readUnsignedShort();
} else if (var2 == 17 || var2 == 18) {
this.transformVarbit = var1.readUnsignedShort();
if (this.transformVarbit == 65535) {
this.field3378 = var1.readUnsignedShort(); // L: 83
} else if (var2 == 17 || var2 == 18) { // L: 84
this.transformVarbit = var1.readUnsignedShort(); // L: 85
if (this.transformVarbit == 65535) { // L: 86
this.transformVarbit = -1;
}
this.transformVarp = var1.readUnsignedShort();
if (this.transformVarp == 65535) {
this.transformVarp = var1.readUnsignedShort(); // L: 87
if (this.transformVarp == 65535) { // L: 88
this.transformVarp = -1;
}
int var3 = -1;
if (var2 == 18) {
var3 = var1.readUnsignedShort();
if (var3 == 65535) {
int var3 = -1; // L: 89
if (var2 == 18) { // L: 90
var3 = var1.readUnsignedShort(); // L: 91
if (var3 == 65535) { // L: 92
var3 = -1;
}
}
int var4 = var1.readUnsignedByte();
this.transforms = new int[var4 + 2];
int var4 = var1.readUnsignedByte(); // L: 94
this.transforms = new int[var4 + 2]; // L: 95
for (int var5 = 0; var5 <= var4; ++var5) {
this.transforms[var5] = var1.readUnsignedShort();
if (this.transforms[var5] == 65535) {
for (int var5 = 0; var5 <= var4; ++var5) { // L: 96
this.transforms[var5] = var1.readUnsignedShort(); // L: 97
if (this.transforms[var5] == 65535) { // L: 98
this.transforms[var5] = -1;
}
}
this.transforms[var4 + 1] = var3;
this.transforms[var4 + 1] = var3; // L: 100
}
}
} // L: 103
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -239,21 +239,21 @@ public class HitSplatDefinition extends DualNode {
)
@Export("transform")
public final HitSplatDefinition transform() {
int var1 = -1;
if (this.transformVarbit != -1) {
int var1 = -1; // L: 106
if (this.transformVarbit != -1) { // L: 107
var1 = Coord.getVarbit(this.transformVarbit);
} else if (this.transformVarp != -1) {
} else if (this.transformVarp != -1) { // L: 108
var1 = Varps.Varps_main[this.transformVarp];
}
int var2;
if (var1 >= 0 && var1 < this.transforms.length - 1) {
var2 = this.transforms[var1];
if (var1 >= 0 && var1 < this.transforms.length - 1) { // L: 110
var2 = this.transforms[var1]; // L: 111
} else {
var2 = this.transforms[this.transforms.length - 1];
}
return var2 != -1 ? class198.method3697(var2) : null;
return var2 != -1 ? class198.method3697(var2) : null; // L: 112 113
}
@ObfuscatedName("j")
@@ -263,15 +263,15 @@ public class HitSplatDefinition extends DualNode {
)
@Export("getString")
public String getString(int var1) {
String var2 = this.field3370;
String var2 = this.field3370; // L: 117
while (true) {
int var3 = var2.indexOf("%1");
if (var3 < 0) {
return var2;
int var3 = var2.indexOf("%1"); // L: 119
if (var3 < 0) { // L: 120
return var2; // L: 123
}
var2 = var2.substring(0, var3) + HealthBarDefinition.intToString(var1, false) + var2.substring(var3 + 2);
var2 = var2.substring(0, var3) + HealthBarDefinition.intToString(var1, false) + var2.substring(var3 + 2); // L: 121
}
}
@@ -281,19 +281,19 @@ public class HitSplatDefinition extends DualNode {
garbageValue = "-1476611889"
)
public Sprite method4583() {
if (this.field3365 < 0) {
if (this.field3365 < 0) { // L: 127
return null;
} else {
Sprite var1 = (Sprite)HitSplatDefinition_cachedSprites.get((long)this.field3365);
if (var1 != null) {
Sprite var1 = (Sprite)HitSplatDefinition_cachedSprites.get((long)this.field3365); // L: 128
if (var1 != null) { // L: 129
return var1;
} else {
var1 = Skills.SpriteBuffer_getSprite(field3354, this.field3365, 0);
var1 = Skills.SpriteBuffer_getSprite(field3354, this.field3365, 0); // L: 130
if (var1 != null) {
HitSplatDefinition_cachedSprites.put(var1, (long)this.field3365);
HitSplatDefinition_cachedSprites.put(var1, (long)this.field3365); // L: 131
}
return var1;
return var1; // L: 133
}
}
}
@@ -304,19 +304,19 @@ public class HitSplatDefinition extends DualNode {
garbageValue = "809304727"
)
public Sprite method4578() {
if (this.field3366 < 0) {
if (this.field3366 < 0) { // L: 137
return null;
} else {
Sprite var1 = (Sprite)HitSplatDefinition_cachedSprites.get((long)this.field3366);
if (var1 != null) {
Sprite var1 = (Sprite)HitSplatDefinition_cachedSprites.get((long)this.field3366); // L: 138
if (var1 != null) { // L: 139
return var1;
} else {
var1 = Skills.SpriteBuffer_getSprite(field3354, this.field3366, 0);
if (var1 != null) {
var1 = Skills.SpriteBuffer_getSprite(field3354, this.field3366, 0); // L: 140
if (var1 != null) { // L: 141
HitSplatDefinition_cachedSprites.put(var1, (long)this.field3366);
}
return var1;
return var1; // L: 143
}
}
}
@@ -327,19 +327,19 @@ public class HitSplatDefinition extends DualNode {
garbageValue = "644601071"
)
public Sprite method4587() {
if (this.field3355 < 0) {
if (this.field3355 < 0) { // L: 147
return null;
} else {
Sprite var1 = (Sprite)HitSplatDefinition_cachedSprites.get((long)this.field3355);
Sprite var1 = (Sprite)HitSplatDefinition_cachedSprites.get((long)this.field3355); // L: 148
if (var1 != null) {
return var1;
return var1; // L: 149
} else {
var1 = Skills.SpriteBuffer_getSprite(field3354, this.field3355, 0);
var1 = Skills.SpriteBuffer_getSprite(field3354, this.field3355, 0); // L: 150
if (var1 != null) {
HitSplatDefinition_cachedSprites.put(var1, (long)this.field3355);
HitSplatDefinition_cachedSprites.put(var1, (long)this.field3355); // L: 151
}
return var1;
return var1; // L: 153
}
}
}
@@ -350,19 +350,19 @@ public class HitSplatDefinition extends DualNode {
garbageValue = "500"
)
public Sprite method4585() {
if (this.field3358 < 0) {
if (this.field3358 < 0) { // L: 157
return null;
} else {
Sprite var1 = (Sprite)HitSplatDefinition_cachedSprites.get((long)this.field3358);
Sprite var1 = (Sprite)HitSplatDefinition_cachedSprites.get((long)this.field3358); // L: 158
if (var1 != null) {
return var1;
return var1; // L: 159
} else {
var1 = Skills.SpriteBuffer_getSprite(field3354, this.field3358, 0);
if (var1 != null) {
var1 = Skills.SpriteBuffer_getSprite(field3354, this.field3358, 0); // L: 160
if (var1 != null) { // L: 161
HitSplatDefinition_cachedSprites.put(var1, (long)this.field3358);
}
return var1;
return var1; // L: 163
}
}
}
@@ -374,19 +374,19 @@ public class HitSplatDefinition extends DualNode {
)
@Export("getFont")
public Font getFont() {
if (this.fontId == -1) {
if (this.fontId == -1) { // L: 167
return null;
} else {
Font var1 = (Font)HitSplatDefinition_cachedFonts.get((long)this.fontId);
if (var1 != null) {
Font var1 = (Font)HitSplatDefinition_cachedFonts.get((long)this.fontId); // L: 168
if (var1 != null) { // L: 169
return var1;
} else {
var1 = PrivateChatMode.method5934(field3354, HitSplatDefinition_fontsArchive, this.fontId, 0);
var1 = PrivateChatMode.method5934(field3354, HitSplatDefinition_fontsArchive, this.fontId, 0); // L: 170
if (var1 != null) {
HitSplatDefinition_cachedFonts.put(var1, (long)this.fontId);
HitSplatDefinition_cachedFonts.put(var1, (long)this.fontId); // L: 171
}
return var1;
return var1; // L: 173
}
}
}
@@ -397,19 +397,19 @@ public class HitSplatDefinition extends DualNode {
garbageValue = "20"
)
public static int method4612(int var0, int var1, int var2, int var3, int var4, int var5) {
if ((var5 & 1) == 1) {
int var6 = var3;
var3 = var4;
var4 = var6;
if ((var5 & 1) == 1) { // L: 17
int var6 = var3; // L: 18
var3 = var4; // L: 19
var4 = var6; // L: 20
}
var2 &= 3;
if (var2 == 0) {
var2 &= 3; // L: 22
if (var2 == 0) { // L: 23
return var0;
} else if (var2 == 1) {
} else if (var2 == 1) { // L: 24
return var1;
} else {
return var2 == 2 ? 7 - var0 - (var3 - 1) : 7 - var1 - (var4 - 1);
return var2 == 2 ? 7 - var0 - (var3 - 1) : 7 - var1 - (var4 - 1); // L: 25 26
}
}
}

View File

@@ -39,9 +39,9 @@ public enum HorizontalAlignment implements Enumerated {
final int id;
HorizontalAlignment(int var3, int var4) {
this.value = var3;
this.id = var4;
}
this.value = var3; // L: 14
this.id = var4; // L: 15
} // L: 16
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -50,7 +50,7 @@ public enum HorizontalAlignment implements Enumerated {
)
@Export("rsOrdinal")
public int rsOrdinal() {
return this.id;
return this.id; // L: 19
}
@ObfuscatedName("aw")
@@ -59,195 +59,195 @@ public enum HorizontalAlignment implements Enumerated {
garbageValue = "4"
)
static int method4729(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.WORLDLIST_FETCH) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = GrandExchangeEvent.loadWorlds() ? 1 : 0;
return 1;
if (var0 == ScriptOpcodes.WORLDLIST_FETCH) { // L: 3339
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = GrandExchangeEvent.loadWorlds() ? 1 : 0; // L: 3340
return 1; // L: 3341
} else {
World var9;
if (var0 == ScriptOpcodes.WORLDLIST_START) {
var9 = class236.worldListStart();
if (var9 != null) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.id;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.properties;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var9.activity;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.location;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.population;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var9.host;
if (var0 == ScriptOpcodes.WORLDLIST_START) { // L: 3343
var9 = class236.worldListStart(); // L: 3344
if (var9 != null) { // L: 3345
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.id; // L: 3346
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.properties; // L: 3347
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var9.activity; // L: 3348
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.location; // L: 3349
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.population; // L: 3350
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var9.host; // L: 3351
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1; // L: 3354
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3355
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 3356
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3357
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3358
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 3359
}
return 1;
} else if (var0 == ScriptOpcodes.WORLDLIST_NEXT) {
var9 = GrandExchangeEvents.getNextWorldListWorld();
if (var9 != null) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.id;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.properties;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var9.activity;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.location;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.population;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var9.host;
return 1; // L: 3361
} else if (var0 == ScriptOpcodes.WORLDLIST_NEXT) { // L: 3363
var9 = GrandExchangeEvents.getNextWorldListWorld(); // L: 3364
if (var9 != null) { // L: 3365
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.id; // L: 3366
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.properties; // L: 3367
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var9.activity; // L: 3368
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.location; // L: 3369
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var9.population; // L: 3370
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var9.host; // L: 3371
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1; // L: 3374
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3375
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 3376
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3377
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3378
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 3379
}
return 1;
return 1; // L: 3381
} else {
int var3;
World var7;
int var8;
if (var0 == ScriptOpcodes.WORLDLIST_SPECIFIC) {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var7 = null;
if (var0 == ScriptOpcodes.WORLDLIST_SPECIFIC) { // L: 3383
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 3384
var7 = null; // L: 3385
for (var8 = 0; var8 < World.World_count; ++var8) {
if (var3 == World.World_worlds[var8].id) {
var7 = World.World_worlds[var8];
for (var8 = 0; var8 < World.World_count; ++var8) { // L: 3386
if (var3 == World.World_worlds[var8].id) { // L: 3387
var7 = World.World_worlds[var8]; // L: 3388
break;
}
}
if (var7 != null) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.id;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.properties;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var7.activity;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.location;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.population;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var7.host;
if (var7 != null) { // L: 3392
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.id; // L: 3393
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.properties; // L: 3394
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var7.activity; // L: 3395
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.location; // L: 3396
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.population; // L: 3397
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var7.host; // L: 3398
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1; // L: 3401
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3402
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 3403
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3404
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3405
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 3406
}
return 1;
} else if (var0 == ScriptOpcodes.WORLDLIST_SORT) {
VarcInt.Interpreter_intStackSize -= 4;
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
boolean var10 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1] == 1;
var8 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 2];
boolean var6 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 3] == 1;
TaskHandler.sortWorldList(var3, var10, var8, var6);
return 1;
} else if (var0 != ScriptOpcodes.GETWORLDINFO) {
if (var0 == ScriptOpcodes.SETFOLLOWEROPSLOWPRIORITY) {
Client.followerOpsLowPriority = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
return 1;
return 1; // L: 3408
} else if (var0 == ScriptOpcodes.WORLDLIST_SORT) { // L: 3410
VarcInt.Interpreter_intStackSize -= 4; // L: 3411
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 3412
boolean var10 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1] == 1; // L: 3413
var8 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 2]; // L: 3414
boolean var6 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 3] == 1; // L: 3415
TaskHandler.sortWorldList(var3, var10, var8, var6); // L: 3416
return 1; // L: 3417
} else if (var0 != ScriptOpcodes.GETWORLDINFO) { // L: 3419
if (var0 == ScriptOpcodes.SETFOLLOWEROPSLOWPRIORITY) { // L: 3440
Client.followerOpsLowPriority = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1; // L: 3441
return 1; // L: 3442
} else {
int var4;
ParamDefinition var5;
if (var0 == ScriptOpcodes.NC_PARAM) {
VarcInt.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
var5 = ChatChannel.getParamDefinition(var4);
if (var5.isString()) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapIcon_0.getNpcDefinition(var3).getStringParam(var4, var5.defaultStr);
if (var0 == ScriptOpcodes.NC_PARAM) { // L: 3444
VarcInt.Interpreter_intStackSize -= 2; // L: 3445
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 3446
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 3447
var5 = ChatChannel.getParamDefinition(var4); // L: 3448
if (var5.isString()) { // L: 3449
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapIcon_0.getNpcDefinition(var3).getStringParam(var4, var5.defaultStr); // L: 3450
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapIcon_0.getNpcDefinition(var3).getIntParam(var4, var5.defaultInt);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapIcon_0.getNpcDefinition(var3).getIntParam(var4, var5.defaultInt); // L: 3453
}
return 1;
} else if (var0 == ScriptOpcodes.LC_PARAM) {
VarcInt.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
var5 = ChatChannel.getParamDefinition(var4);
if (var5.isString()) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapDecoration.getObjectDefinition(var3).getStringParam(var4, var5.defaultStr);
return 1; // L: 3455
} else if (var0 == ScriptOpcodes.LC_PARAM) { // L: 3457
VarcInt.Interpreter_intStackSize -= 2; // L: 3458
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 3459
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 3460
var5 = ChatChannel.getParamDefinition(var4); // L: 3461
if (var5.isString()) { // L: 3462
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = WorldMapDecoration.getObjectDefinition(var3).getStringParam(var4, var5.defaultStr); // L: 3463
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapDecoration.getObjectDefinition(var3).getIntParam(var4, var5.defaultInt);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = WorldMapDecoration.getObjectDefinition(var3).getIntParam(var4, var5.defaultInt); // L: 3466
}
return 1;
} else if (var0 == ScriptOpcodes.OC_PARAM) {
VarcInt.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
var5 = ChatChannel.getParamDefinition(var4);
if (var5.isString()) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = SecureRandomCallable.ItemDefinition_get(var3).getStringParam(var4, var5.defaultStr);
return 1; // L: 3468
} else if (var0 == ScriptOpcodes.OC_PARAM) { // L: 3470
VarcInt.Interpreter_intStackSize -= 2; // L: 3471
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 3472
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 3473
var5 = ChatChannel.getParamDefinition(var4); // L: 3474
if (var5.isString()) { // L: 3475
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = SecureRandomCallable.ItemDefinition_get(var3).getStringParam(var4, var5.defaultStr); // L: 3476
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = SecureRandomCallable.ItemDefinition_get(var3).getIntParam(var4, var5.defaultInt);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = SecureRandomCallable.ItemDefinition_get(var3).getIntParam(var4, var5.defaultInt); // L: 3479
}
return 1;
} else if (var0 == ScriptOpcodes.STRUCT_PARAM) {
VarcInt.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
var5 = ChatChannel.getParamDefinition(var4);
if (var5.isString()) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = AbstractWorldMapIcon.StructDefinition_getStructDefinition(var3).getStringParam(var4, var5.defaultStr);
return 1; // L: 3481
} else if (var0 == ScriptOpcodes.STRUCT_PARAM) { // L: 3483
VarcInt.Interpreter_intStackSize -= 2; // L: 3484
var3 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]; // L: 3485
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]; // L: 3486
var5 = ChatChannel.getParamDefinition(var4); // L: 3487
if (var5.isString()) { // L: 3488
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = AbstractWorldMapIcon.StructDefinition_getStructDefinition(var3).getStringParam(var4, var5.defaultStr); // L: 3489
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = AbstractWorldMapIcon.StructDefinition_getStructDefinition(var3).getIntParam(var4, var5.defaultInt);
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = AbstractWorldMapIcon.StructDefinition_getStructDefinition(var3).getIntParam(var4, var5.defaultInt); // L: 3492
}
return 1;
} else if (var0 == ScriptOpcodes.ON_MOBILE) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.onMobile ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLIENTTYPE) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.clientType & 3;
return 1;
} else if (var0 == 6520) {
return 1;
} else if (var0 == ScriptOpcodes.MOBILE_KEYBOARDHIDE) {
return 1;
} else if (var0 == 6522) {
--Interpreter.Interpreter_stringStackSize;
--VarcInt.Interpreter_intStackSize;
return 1;
} else if (var0 == 6523) {
--Interpreter.Interpreter_stringStackSize;
--VarcInt.Interpreter_intStackSize;
return 1;
} else if (var0 == ScriptOpcodes.BATTERYLEVEL) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1;
return 1;
} else if (var0 == ScriptOpcodes.BATTERYCHARGING) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1;
return 1;
} else if (var0 == ScriptOpcodes.WIFIAVAILABLE) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1;
return 1;
return 1; // L: 3494
} else if (var0 == ScriptOpcodes.ON_MOBILE) { // L: 3496
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.onMobile ? 1 : 0; // L: 3497
return 1; // L: 3498
} else if (var0 == ScriptOpcodes.CLIENTTYPE) { // L: 3500
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = Client.clientType & 3; // L: 3501
return 1; // L: 3502
} else if (var0 == 6520) { // L: 3504
return 1; // L: 3505
} else if (var0 == ScriptOpcodes.MOBILE_KEYBOARDHIDE) { // L: 3507
return 1; // L: 3508
} else if (var0 == 6522) { // L: 3510
--Interpreter.Interpreter_stringStackSize; // L: 3511
--VarcInt.Interpreter_intStackSize; // L: 3512
return 1; // L: 3513
} else if (var0 == 6523) { // L: 3515
--Interpreter.Interpreter_stringStackSize; // L: 3516
--VarcInt.Interpreter_intStackSize; // L: 3517
return 1; // L: 3518
} else if (var0 == ScriptOpcodes.BATTERYLEVEL) { // L: 3520
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1; // L: 3521
return 1; // L: 3522
} else if (var0 == ScriptOpcodes.BATTERYCHARGING) { // L: 3524
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1; // L: 3525
return 1; // L: 3526
} else if (var0 == ScriptOpcodes.WIFIAVAILABLE) { // L: 3528
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 1; // L: 3529
return 1; // L: 3530
} else {
return 2;
return 2; // L: 3532
}
}
} else {
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
if (var3 >= 0 && var3 < World.World_count) {
var7 = World.World_worlds[var3];
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.id;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.properties;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var7.activity;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.location;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.population;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var7.host;
var3 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]; // L: 3420
if (var3 >= 0 && var3 < World.World_count) { // L: 3421
var7 = World.World_worlds[var3]; // L: 3422
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.id; // L: 3423
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.properties; // L: 3424
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var7.activity; // L: 3425
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.location; // L: 3426
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.population; // L: 3427
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var7.host; // L: 3428
} else {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0;
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1; // L: 3431
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3432
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 3433
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3434
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = 0; // L: 3435
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ""; // L: 3436
}
return 1;
return 1; // L: 3438
}
}
}

View File

@@ -17,87 +17,87 @@ public class Huffman {
int[] keys;
public Huffman(byte[] var1) {
int var2 = var1.length;
this.masks = new int[var2];
this.bits = var1;
int[] var3 = new int[33];
this.keys = new int[8];
int var4 = 0;
int var2 = var1.length; // L: 9
this.masks = new int[var2]; // L: 10
this.bits = var1; // L: 11
int[] var3 = new int[33]; // L: 12
this.keys = new int[8]; // L: 13
int var4 = 0; // L: 14
for (int var5 = 0; var5 < var2; ++var5) {
byte var6 = var1[var5];
if (var6 != 0) {
int var7 = 1 << 32 - var6;
int var8 = var3[var6];
this.masks[var5] = var8;
for (int var5 = 0; var5 < var2; ++var5) { // L: 15
byte var6 = var1[var5]; // L: 16
if (var6 != 0) { // L: 17
int var7 = 1 << 32 - var6; // L: 18
int var8 = var3[var6]; // L: 19
this.masks[var5] = var8; // L: 20
int var9;
int var10;
int var11;
int var12;
if ((var8 & var7) != 0) {
if ((var8 & var7) != 0) { // L: 22
var9 = var3[var6 - 1];
} else {
var9 = var8 | var7;
var9 = var8 | var7; // L: 24
for (var10 = var6 - 1; var10 >= 1; --var10) {
var11 = var3[var10];
if (var11 != var8) {
for (var10 = var6 - 1; var10 >= 1; --var10) { // L: 25
var11 = var3[var10]; // L: 26
if (var11 != var8) { // L: 27
break;
}
var12 = 1 << 32 - var10;
if ((var11 & var12) != 0) {
var3[var10] = var3[var10 - 1];
var12 = 1 << 32 - var10; // L: 28
if ((var11 & var12) != 0) { // L: 29
var3[var10] = var3[var10 - 1]; // L: 30
break;
}
var3[var10] = var11 | var12;
var3[var10] = var11 | var12; // L: 33
}
}
var3[var6] = var9;
var3[var6] = var9; // L: 38
for (var10 = var6 + 1; var10 <= 32; ++var10) {
if (var8 == var3[var10]) {
for (var10 = var6 + 1; var10 <= 32; ++var10) { // L: 39
if (var8 == var3[var10]) { // L: 40
var3[var10] = var9;
}
}
var10 = 0;
var10 = 0; // L: 42
for (var11 = 0; var11 < var6; ++var11) {
var12 = Integer.MIN_VALUE >>> var11;
if ((var8 & var12) != 0) {
if (this.keys[var10] == 0) {
for (var11 = 0; var11 < var6; ++var11) { // L: 43
var12 = Integer.MIN_VALUE >>> var11; // L: 44
if ((var8 & var12) != 0) { // L: 45
if (this.keys[var10] == 0) { // L: 46
this.keys[var10] = var4;
}
var10 = this.keys[var10];
var10 = this.keys[var10]; // L: 47
} else {
++var10;
++var10; // L: 49
}
if (var10 >= this.keys.length) {
int[] var13 = new int[this.keys.length * 2];
if (var10 >= this.keys.length) { // L: 50
int[] var13 = new int[this.keys.length * 2]; // L: 51
for (int var14 = 0; var14 < this.keys.length; ++var14) {
for (int var14 = 0; var14 < this.keys.length; ++var14) { // L: 52
var13[var14] = this.keys[var14];
}
this.keys = var13;
this.keys = var13; // L: 53
}
var12 >>>= 1;
var12 >>>= 1; // L: 55
}
this.keys[var10] = ~var5;
if (var10 >= var4) {
this.keys[var10] = ~var5; // L: 57
if (var10 >= var4) { // L: 58
var4 = var10 + 1;
}
}
}
}
} // L: 60
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -106,48 +106,48 @@ public class Huffman {
)
@Export("compress")
int compress(byte[] var1, int var2, int var3, byte[] var4, int var5) {
int var6 = 0;
int var7 = var5 << 3;
int var6 = 0; // L: 63
int var7 = var5 << 3; // L: 64
for (var3 += var2; var2 < var3; ++var2) {
int var8 = var1[var2] & 255;
int var9 = this.masks[var8];
byte var10 = this.bits[var8];
if (var10 == 0) {
for (var3 += var2; var2 < var3; ++var2) { // L: 65 66
int var8 = var1[var2] & 255; // L: 67
int var9 = this.masks[var8]; // L: 68
byte var10 = this.bits[var8]; // L: 69
if (var10 == 0) { // L: 70
throw new RuntimeException("" + var8);
}
int var11 = var7 >> 3;
int var12 = var7 & 7;
var6 &= -var12 >> 31;
int var13 = (var10 + var12 - 1 >> 3) + var11;
var12 += 24;
var4[var11] = (byte)(var6 |= var9 >>> var12);
if (var11 < var13) {
++var11;
var12 -= 8;
var4[var11] = (byte)(var6 = var9 >>> var12);
if (var11 < var13) {
++var11;
var12 -= 8;
var4[var11] = (byte)(var6 = var9 >>> var12);
if (var11 < var13) {
++var11;
var12 -= 8;
var4[var11] = (byte)(var6 = var9 >>> var12);
if (var11 < var13) {
++var11;
var12 -= 8;
var4[var11] = (byte)(var6 = var9 << -var12);
int var11 = var7 >> 3; // L: 71
int var12 = var7 & 7; // L: 72
var6 &= -var12 >> 31; // L: 73
int var13 = (var10 + var12 - 1 >> 3) + var11; // L: 74
var12 += 24; // L: 76
var4[var11] = (byte)(var6 |= var9 >>> var12); // L: 77
if (var11 < var13) { // L: 78
++var11; // L: 79
var12 -= 8; // L: 80
var4[var11] = (byte)(var6 = var9 >>> var12); // L: 81
if (var11 < var13) { // L: 82
++var11; // L: 83
var12 -= 8; // L: 84
var4[var11] = (byte)(var6 = var9 >>> var12); // L: 85
if (var11 < var13) { // L: 86
++var11; // L: 87
var12 -= 8; // L: 88
var4[var11] = (byte)(var6 = var9 >>> var12); // L: 89
if (var11 < var13) { // L: 90
++var11; // L: 91
var12 -= 8; // L: 92
var4[var11] = (byte)(var6 = var9 << -var12); // L: 93
}
}
}
}
var7 += var10;
var7 += var10; // L: 95
}
return (var7 + 7 >> 3) - var5;
return (var7 + 7 >> 3) - var5; // L: 97
}
@ObfuscatedName("v")
@@ -157,114 +157,114 @@ public class Huffman {
)
@Export("decompress")
int decompress(byte[] var1, int var2, byte[] var3, int var4, int var5) {
if (var5 == 0) {
if (var5 == 0) { // L: 101
return 0;
} else {
int var6 = 0;
var5 += var4;
int var6 = 0; // L: 102
var5 += var4; // L: 103
int var7 = var2;
while (true) {
byte var8 = var1[var7];
if (var8 < 0) {
byte var8 = var1[var7]; // L: 106
if (var8 < 0) { // L: 108
var6 = this.keys[var6];
} else {
++var6;
++var6; // L: 109
}
int var9;
if ((var9 = this.keys[var6]) < 0) {
var3[var4++] = (byte)(~var9);
if (var4 >= var5) {
if ((var9 = this.keys[var6]) < 0) { // L: 110
var3[var4++] = (byte)(~var9); // L: 111
if (var4 >= var5) { // L: 112
break;
}
var6 = 0;
var6 = 0; // L: 113
}
if ((var8 & 64) != 0) {
if ((var8 & 64) != 0) { // L: 115
var6 = this.keys[var6];
} else {
++var6;
++var6; // L: 116
}
if ((var9 = this.keys[var6]) < 0) {
var3[var4++] = (byte)(~var9);
if (var4 >= var5) {
if ((var9 = this.keys[var6]) < 0) { // L: 117
var3[var4++] = (byte)(~var9); // L: 118
if (var4 >= var5) { // L: 119
break;
}
var6 = 0;
var6 = 0; // L: 120
}
if ((var8 & 32) != 0) {
if ((var8 & 32) != 0) { // L: 122
var6 = this.keys[var6];
} else {
++var6;
++var6; // L: 123
}
if ((var9 = this.keys[var6]) < 0) {
var3[var4++] = (byte)(~var9);
if (var4 >= var5) {
if ((var9 = this.keys[var6]) < 0) { // L: 124
var3[var4++] = (byte)(~var9); // L: 125
if (var4 >= var5) { // L: 126
break;
}
var6 = 0;
var6 = 0; // L: 127
}
if ((var8 & 16) != 0) {
if ((var8 & 16) != 0) { // L: 129
var6 = this.keys[var6];
} else {
++var6;
++var6; // L: 130
}
if ((var9 = this.keys[var6]) < 0) {
var3[var4++] = (byte)(~var9);
if (var4 >= var5) {
if ((var9 = this.keys[var6]) < 0) { // L: 131
var3[var4++] = (byte)(~var9); // L: 132
if (var4 >= var5) { // L: 133
break;
}
var6 = 0;
var6 = 0; // L: 134
}
if ((var8 & 8) != 0) {
if ((var8 & 8) != 0) { // L: 136
var6 = this.keys[var6];
} else {
++var6;
++var6; // L: 137
}
if ((var9 = this.keys[var6]) < 0) {
var3[var4++] = (byte)(~var9);
if (var4 >= var5) {
if ((var9 = this.keys[var6]) < 0) { // L: 138
var3[var4++] = (byte)(~var9); // L: 139
if (var4 >= var5) { // L: 140
break;
}
var6 = 0;
var6 = 0; // L: 141
}
if ((var8 & 4) != 0) {
if ((var8 & 4) != 0) { // L: 143
var6 = this.keys[var6];
} else {
++var6;
++var6; // L: 144
}
if ((var9 = this.keys[var6]) < 0) {
var3[var4++] = (byte)(~var9);
if (var4 >= var5) {
if ((var9 = this.keys[var6]) < 0) { // L: 145
var3[var4++] = (byte)(~var9); // L: 146
if (var4 >= var5) { // L: 147
break;
}
var6 = 0;
var6 = 0; // L: 148
}
if ((var8 & 2) != 0) {
if ((var8 & 2) != 0) { // L: 150
var6 = this.keys[var6];
} else {
++var6;
++var6; // L: 151
}
if ((var9 = this.keys[var6]) < 0) {
var3[var4++] = (byte)(~var9);
if ((var9 = this.keys[var6]) < 0) { // L: 152
var3[var4++] = (byte)(~var9); // L: 153
if (var4 >= var5) {
break;
}
@@ -280,14 +280,14 @@ public class Huffman {
if ((var9 = this.keys[var6]) < 0) {
var3[var4++] = (byte)(~var9);
if (var4 >= var5) {
if (var4 >= var5) { // L: 161
break;
}
var6 = 0;
var6 = 0; // L: 162
}
++var7;
++var7; // L: 105
}
return var7 + 1 - var2;
@@ -302,61 +302,61 @@ public class Huffman {
@Export("loadTerrain")
static final void loadTerrain(Buffer var0, int var1, int var2, int var3, int var4, int var5, int var6) {
int var7;
if (var2 >= 0 && var2 < 104 && var3 >= 0 && var3 < 104) {
Tiles.Tiles_renderFlags[var1][var2][var3] = 0;
if (var2 >= 0 && var2 < 104 && var3 >= 0 && var3 < 104) { // L: 154
Tiles.Tiles_renderFlags[var1][var2][var3] = 0; // L: 155
while (true) {
var7 = var0.readUnsignedByte();
if (var7 == 0) {
var7 = var0.readUnsignedByte(); // L: 157
if (var7 == 0) { // L: 158
if (var1 == 0) {
Tiles.Tiles_heights[0][var2][var3] = -PcmPlayer.method2544(932731 + var2 + var4, var3 + 556238 + var5) * 8;
Tiles.Tiles_heights[0][var2][var3] = -PcmPlayer.method2544(932731 + var2 + var4, var3 + 556238 + var5) * 8; // L: 159
} else {
Tiles.Tiles_heights[var1][var2][var3] = Tiles.Tiles_heights[var1 - 1][var2][var3] - 240;
Tiles.Tiles_heights[var1][var2][var3] = Tiles.Tiles_heights[var1 - 1][var2][var3] - 240; // L: 160
}
break;
}
if (var7 == 1) {
int var8 = var0.readUnsignedByte();
if (var8 == 1) {
if (var7 == 1) { // L: 163
int var8 = var0.readUnsignedByte(); // L: 164
if (var8 == 1) { // L: 165
var8 = 0;
}
if (var1 == 0) {
if (var1 == 0) { // L: 166
Tiles.Tiles_heights[0][var2][var3] = -var8 * 8;
} else {
Tiles.Tiles_heights[var1][var2][var3] = Tiles.Tiles_heights[var1 - 1][var2][var3] - var8 * 8;
Tiles.Tiles_heights[var1][var2][var3] = Tiles.Tiles_heights[var1 - 1][var2][var3] - var8 * 8; // L: 167
}
break;
}
if (var7 <= 49) {
Tiles.field508[var1][var2][var3] = var0.readByte();
class9.field40[var1][var2][var3] = (byte)((var7 - 2) / 4);
Username.field3663[var1][var2][var3] = (byte)(var7 - 2 + var6 & 3);
} else if (var7 <= 81) {
Tiles.Tiles_renderFlags[var1][var2][var3] = (byte)(var7 - 49);
if (var7 <= 49) { // L: 170
Tiles.field508[var1][var2][var3] = var0.readByte(); // L: 171
class9.field40[var1][var2][var3] = (byte)((var7 - 2) / 4); // L: 172
Username.field3663[var1][var2][var3] = (byte)(var7 - 2 + var6 & 3); // L: 173
} else if (var7 <= 81) { // L: 176
Tiles.Tiles_renderFlags[var1][var2][var3] = (byte)(var7 - 49); // L: 177
} else {
Tiles.field514[var1][var2][var3] = (byte)(var7 - 81);
Tiles.field514[var1][var2][var3] = (byte)(var7 - 81); // L: 180
}
}
} else {
while (true) {
var7 = var0.readUnsignedByte();
if (var7 == 0) {
var7 = var0.readUnsignedByte(); // L: 185
if (var7 == 0) { // L: 186
break;
}
if (var7 == 1) {
var0.readUnsignedByte();
if (var7 == 1) { // L: 187
var0.readUnsignedByte(); // L: 188
break;
}
if (var7 <= 49) {
if (var7 <= 49) { // L: 191
var0.readUnsignedByte();
}
}
}
}
} // L: 194
}

View File

@@ -24,9 +24,9 @@ public class IgnoreList extends UserList {
descriptor = "(Lmu;)V"
)
public IgnoreList(LoginType var1) {
super(400);
this.loginType = var1;
}
super(400); // L: 12
this.loginType = var1; // L: 13
} // L: 14
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -35,7 +35,7 @@ public class IgnoreList extends UserList {
)
@Export("newInstance")
User newInstance() {
return new Ignored();
return new Ignored(); // L: 17
}
@ObfuscatedName("v")
@@ -45,7 +45,7 @@ public class IgnoreList extends UserList {
)
@Export("newTypedArray")
User[] newTypedArray(int var1) {
return new Ignored[var1];
return new Ignored[var1]; // L: 21
}
@ObfuscatedName("x")
@@ -56,15 +56,15 @@ public class IgnoreList extends UserList {
@Export("read")
public void read(Buffer var1, int var2) {
while (true) {
if (var1.offset < var2) {
int var3 = var1.readUnsignedByte();
boolean var4 = (var3 & 1) == 1;
Username var5 = new Username(var1.readStringCp1252NullTerminated(), this.loginType);
Username var6 = new Username(var1.readStringCp1252NullTerminated(), this.loginType);
var1.readStringCp1252NullTerminated();
if (var5 != null && var5.hasCleanName()) {
Ignored var7 = (Ignored)this.getByCurrentUsername(var5);
if (var4) {
if (var1.offset < var2) { // L: 25
int var3 = var1.readUnsignedByte(); // L: 26
boolean var4 = (var3 & 1) == 1; // L: 27
Username var5 = new Username(var1.readStringCp1252NullTerminated(), this.loginType); // L: 28
Username var6 = new Username(var1.readStringCp1252NullTerminated(), this.loginType); // L: 29
var1.readStringCp1252NullTerminated(); // L: 30
if (var5 != null && var5.hasCleanName()) { // L: 31
Ignored var7 = (Ignored)this.getByCurrentUsername(var5); // L: 32
if (var4) { // L: 33
Ignored var8 = (Ignored)this.getByCurrentUsername(var6);
if (var8 != null && var8 != var7) {
if (var7 != null) {
@@ -83,7 +83,7 @@ public class IgnoreList extends UserList {
if (this.getSize() < 400) {
int var9 = this.getSize();
var7 = (Ignored)this.addLast(var5, var6);
var7.id = var9;
var7.id = var9; // L: 50
}
continue;
}
@@ -91,7 +91,7 @@ public class IgnoreList extends UserList {
throw new IllegalStateException();
}
return;
return; // L: 54
}
}
@@ -102,32 +102,32 @@ public class IgnoreList extends UserList {
)
@Export("iLog")
public static int iLog(int var0) {
int var1 = 0;
if (var0 < 0 || var0 >= 65536) {
var0 >>>= 16;
var1 += 16;
int var1 = 0; // L: 34
if (var0 < 0 || var0 >= 65536) { // L: 35
var0 >>>= 16; // L: 36
var1 += 16; // L: 37
}
if (var0 >= 256) {
var0 >>>= 8;
var1 += 8;
if (var0 >= 256) { // L: 39
var0 >>>= 8; // L: 40
var1 += 8; // L: 41
}
if (var0 >= 16) {
var0 >>>= 4;
var1 += 4;
if (var0 >= 16) { // L: 43
var0 >>>= 4; // L: 44
var1 += 4; // L: 45
}
if (var0 >= 4) {
var0 >>>= 2;
var1 += 2;
if (var0 >= 4) { // L: 47
var0 >>>= 2; // L: 48
var1 += 2; // L: 49
}
if (var0 >= 1) {
var0 >>>= 1;
++var1;
if (var0 >= 1) { // L: 51
var0 >>>= 1; // L: 52
++var1; // L: 53
}
return var0 + var1;
return var0 + var1; // L: 55
}
}

View File

@@ -15,7 +15,7 @@ public class Ignored extends User {
int id;
Ignored() {
}
} // L: 6
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -24,7 +24,7 @@ public class Ignored extends User {
)
@Export("compareTo_ignored")
int compareTo_ignored(Ignored var1) {
return this.id - var1.id;
return this.id - var1.id; // L: 9
}
@ObfuscatedName("au")
@@ -34,10 +34,10 @@ public class Ignored extends User {
)
@Export("compareTo_user")
public int compareTo_user(User var1) {
return this.compareTo_ignored((Ignored)var1);
return this.compareTo_ignored((Ignored)var1); // L: 13
}
public int compareTo(Object var1) {
return this.compareTo_ignored((Ignored)var1);
return this.compareTo_ignored((Ignored)var1); // L: 17
}
}

View File

@@ -33,242 +33,242 @@ public final class IndexedSprite extends Rasterizer2D {
@ObfuscatedName("h")
@Export("normalize")
public void normalize() {
if (this.subWidth != this.width || this.subHeight != this.height) {
byte[] var1 = new byte[this.width * this.height];
int var2 = 0;
if (this.subWidth != this.width || this.subHeight != this.height) { // L: 18
byte[] var1 = new byte[this.width * this.height]; // L: 19
int var2 = 0; // L: 20
for (int var3 = 0; var3 < this.subHeight; ++var3) {
for (int var4 = 0; var4 < this.subWidth; ++var4) {
var1[var4 + (var3 + this.yOffset) * this.width + this.xOffset] = this.pixels[var2++];
for (int var3 = 0; var3 < this.subHeight; ++var3) { // L: 21
for (int var4 = 0; var4 < this.subWidth; ++var4) { // L: 22
var1[var4 + (var3 + this.yOffset) * this.width + this.xOffset] = this.pixels[var2++]; // L: 23
}
}
this.pixels = var1;
this.subWidth = this.width;
this.subHeight = this.height;
this.xOffset = 0;
this.yOffset = 0;
this.pixels = var1; // L: 26
this.subWidth = this.width; // L: 27
this.subHeight = this.height; // L: 28
this.xOffset = 0; // L: 29
this.yOffset = 0; // L: 30
}
}
} // L: 31
@ObfuscatedName("v")
@Export("shiftColors")
public void shiftColors(int var1, int var2, int var3) {
for (int var4 = 0; var4 < this.palette.length; ++var4) {
int var5 = this.palette[var4] >> 16 & 255;
var5 += var1;
if (var5 < 0) {
for (int var4 = 0; var4 < this.palette.length; ++var4) { // L: 34
int var5 = this.palette[var4] >> 16 & 255; // L: 35
var5 += var1; // L: 36
if (var5 < 0) { // L: 37
var5 = 0;
} else if (var5 > 255) {
} else if (var5 > 255) { // L: 38
var5 = 255;
}
int var6 = this.palette[var4] >> 8 & 255;
var6 += var2;
if (var6 < 0) {
int var6 = this.palette[var4] >> 8 & 255; // L: 39
var6 += var2; // L: 40
if (var6 < 0) { // L: 41
var6 = 0;
} else if (var6 > 255) {
} else if (var6 > 255) { // L: 42
var6 = 255;
}
int var7 = this.palette[var4] & 255;
var7 += var3;
if (var7 < 0) {
int var7 = this.palette[var4] & 255; // L: 43
var7 += var3; // L: 44
if (var7 < 0) { // L: 45
var7 = 0;
} else if (var7 > 255) {
} else if (var7 > 255) { // L: 46
var7 = 255;
}
this.palette[var4] = var7 + (var6 << 8) + (var5 << 16);
this.palette[var4] = var7 + (var6 << 8) + (var5 << 16); // L: 47
}
}
} // L: 49
@ObfuscatedName("x")
@Export("drawAt")
public void drawAt(int var1, int var2) {
var1 += this.xOffset;
var2 += this.yOffset;
int var3 = var1 + var2 * Rasterizer2D.Rasterizer2D_width;
int var4 = 0;
int var5 = this.subHeight;
int var6 = this.subWidth;
int var7 = Rasterizer2D.Rasterizer2D_width - var6;
int var8 = 0;
var1 += this.xOffset; // L: 52
var2 += this.yOffset; // L: 53
int var3 = var1 + var2 * Rasterizer2D.Rasterizer2D_width; // L: 54
int var4 = 0; // L: 55
int var5 = this.subHeight; // L: 56
int var6 = this.subWidth; // L: 57
int var7 = Rasterizer2D.Rasterizer2D_width - var6; // L: 58
int var8 = 0; // L: 59
int var9;
if (var2 < Rasterizer2D.Rasterizer2D_yClipStart) {
var9 = Rasterizer2D.Rasterizer2D_yClipStart - var2;
var5 -= var9;
var2 = Rasterizer2D.Rasterizer2D_yClipStart;
var4 += var9 * var6;
var3 += var9 * Rasterizer2D.Rasterizer2D_width;
if (var2 < Rasterizer2D.Rasterizer2D_yClipStart) { // L: 60
var9 = Rasterizer2D.Rasterizer2D_yClipStart - var2; // L: 61
var5 -= var9; // L: 62
var2 = Rasterizer2D.Rasterizer2D_yClipStart; // L: 63
var4 += var9 * var6; // L: 64
var3 += var9 * Rasterizer2D.Rasterizer2D_width; // L: 65
}
if (var5 + var2 > Rasterizer2D.Rasterizer2D_yClipEnd) {
if (var5 + var2 > Rasterizer2D.Rasterizer2D_yClipEnd) { // L: 67
var5 -= var5 + var2 - Rasterizer2D.Rasterizer2D_yClipEnd;
}
if (var1 < Rasterizer2D.Rasterizer2D_xClipStart) {
var9 = Rasterizer2D.Rasterizer2D_xClipStart - var1;
var6 -= var9;
var1 = Rasterizer2D.Rasterizer2D_xClipStart;
var4 += var9;
var3 += var9;
var8 += var9;
var7 += var9;
if (var1 < Rasterizer2D.Rasterizer2D_xClipStart) { // L: 68
var9 = Rasterizer2D.Rasterizer2D_xClipStart - var1; // L: 69
var6 -= var9; // L: 70
var1 = Rasterizer2D.Rasterizer2D_xClipStart; // L: 71
var4 += var9; // L: 72
var3 += var9; // L: 73
var8 += var9; // L: 74
var7 += var9; // L: 75
}
if (var6 + var1 > Rasterizer2D.Rasterizer2D_xClipEnd) {
var9 = var6 + var1 - Rasterizer2D.Rasterizer2D_xClipEnd;
var6 -= var9;
var8 += var9;
var7 += var9;
if (var6 + var1 > Rasterizer2D.Rasterizer2D_xClipEnd) { // L: 77
var9 = var6 + var1 - Rasterizer2D.Rasterizer2D_xClipEnd; // L: 78
var6 -= var9; // L: 79
var8 += var9; // L: 80
var7 += var9; // L: 81
}
if (var6 > 0 && var5 > 0) {
IndexedSprite_two(Rasterizer2D.Rasterizer2D_pixels, this.pixels, this.palette, var4, var3, var6, var5, var7, var8);
if (var6 > 0 && var5 > 0) { // L: 83
IndexedSprite_two(Rasterizer2D.Rasterizer2D_pixels, this.pixels, this.palette, var4, var3, var6, var5, var7, var8); // L: 84
}
}
} // L: 85
@ObfuscatedName("t")
public void method6141(int var1, int var2, int var3, int var4) {
int var5 = this.subWidth;
int var6 = this.subHeight;
int var7 = 0;
int var8 = 0;
int var9 = this.width;
int var10 = this.height;
int var11 = (var9 << 16) / var3;
int var12 = (var10 << 16) / var4;
int var5 = this.subWidth; // L: 116
int var6 = this.subHeight; // L: 117
int var7 = 0; // L: 118
int var8 = 0; // L: 119
int var9 = this.width; // L: 120
int var10 = this.height; // L: 121
int var11 = (var9 << 16) / var3; // L: 122
int var12 = (var10 << 16) / var4; // L: 123
int var13;
if (this.xOffset > 0) {
var13 = (var11 + (this.xOffset << 16) - 1) / var11;
var1 += var13;
var7 += var13 * var11 - (this.xOffset << 16);
if (this.xOffset > 0) { // L: 124
var13 = (var11 + (this.xOffset << 16) - 1) / var11; // L: 125
var1 += var13; // L: 126
var7 += var13 * var11 - (this.xOffset << 16); // L: 127
}
if (this.yOffset > 0) {
var13 = (var12 + (this.yOffset << 16) - 1) / var12;
var2 += var13;
var8 += var13 * var12 - (this.yOffset << 16);
if (this.yOffset > 0) { // L: 129
var13 = (var12 + (this.yOffset << 16) - 1) / var12; // L: 130
var2 += var13; // L: 131
var8 += var13 * var12 - (this.yOffset << 16); // L: 132
}
if (var5 < var9) {
if (var5 < var9) { // L: 134
var3 = (var11 + ((var5 << 16) - var7) - 1) / var11;
}
if (var6 < var10) {
if (var6 < var10) { // L: 135
var4 = (var12 + ((var6 << 16) - var8) - 1) / var12;
}
var13 = var1 + var2 * Rasterizer2D.Rasterizer2D_width;
int var14 = Rasterizer2D.Rasterizer2D_width - var3;
if (var2 + var4 > Rasterizer2D.Rasterizer2D_yClipEnd) {
var13 = var1 + var2 * Rasterizer2D.Rasterizer2D_width; // L: 136
int var14 = Rasterizer2D.Rasterizer2D_width - var3; // L: 137
if (var2 + var4 > Rasterizer2D.Rasterizer2D_yClipEnd) { // L: 138
var4 -= var2 + var4 - Rasterizer2D.Rasterizer2D_yClipEnd;
}
int var15;
if (var2 < Rasterizer2D.Rasterizer2D_yClipStart) {
var15 = Rasterizer2D.Rasterizer2D_yClipStart - var2;
var4 -= var15;
var13 += var15 * Rasterizer2D.Rasterizer2D_width;
var8 += var12 * var15;
if (var2 < Rasterizer2D.Rasterizer2D_yClipStart) { // L: 139
var15 = Rasterizer2D.Rasterizer2D_yClipStart - var2; // L: 140
var4 -= var15; // L: 141
var13 += var15 * Rasterizer2D.Rasterizer2D_width; // L: 142
var8 += var12 * var15; // L: 143
}
if (var3 + var1 > Rasterizer2D.Rasterizer2D_xClipEnd) {
var15 = var3 + var1 - Rasterizer2D.Rasterizer2D_xClipEnd;
var3 -= var15;
var14 += var15;
if (var3 + var1 > Rasterizer2D.Rasterizer2D_xClipEnd) { // L: 145
var15 = var3 + var1 - Rasterizer2D.Rasterizer2D_xClipEnd; // L: 146
var3 -= var15; // L: 147
var14 += var15; // L: 148
}
if (var1 < Rasterizer2D.Rasterizer2D_xClipStart) {
var15 = Rasterizer2D.Rasterizer2D_xClipStart - var1;
var3 -= var15;
var13 += var15;
var7 += var11 * var15;
var14 += var15;
if (var1 < Rasterizer2D.Rasterizer2D_xClipStart) { // L: 150
var15 = Rasterizer2D.Rasterizer2D_xClipStart - var1; // L: 151
var3 -= var15; // L: 152
var13 += var15; // L: 153
var7 += var11 * var15; // L: 154
var14 += var15; // L: 155
}
IndexedSprite_something(Rasterizer2D.Rasterizer2D_pixels, this.pixels, this.palette, var7, var8, var13, var14, var3, var4, var11, var12, var5);
}
IndexedSprite_something(Rasterizer2D.Rasterizer2D_pixels, this.pixels, this.palette, var7, var8, var13, var14, var3, var4, var11, var12, var5); // L: 157
} // L: 158
@ObfuscatedName("w")
@Export("IndexedSprite_two")
static void IndexedSprite_two(int[] var0, byte[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8) {
int var9 = -(var5 >> 2);
var5 = -(var5 & 3);
int var9 = -(var5 >> 2); // L: 88
var5 = -(var5 & 3); // L: 89
for (int var10 = -var6; var10 < 0; ++var10) {
for (int var10 = -var6; var10 < 0; ++var10) { // L: 90
int var11;
byte var12;
for (var11 = var9; var11 < 0; ++var11) {
var12 = var1[var3++];
for (var11 = var9; var11 < 0; ++var11) { // L: 91
var12 = var1[var3++]; // L: 92
if (var12 != 0) {
var0[var4++] = var2[var12 & 255];
var0[var4++] = var2[var12 & 255]; // L: 93
} else {
++var4;
++var4; // L: 94
}
var12 = var1[var3++];
if (var12 != 0) {
var12 = var1[var3++]; // L: 95
if (var12 != 0) { // L: 96
var0[var4++] = var2[var12 & 255];
} else {
++var4;
++var4; // L: 97
}
var12 = var1[var3++];
if (var12 != 0) {
var12 = var1[var3++]; // L: 98
if (var12 != 0) { // L: 99
var0[var4++] = var2[var12 & 255];
} else {
++var4;
++var4; // L: 100
}
var12 = var1[var3++];
if (var12 != 0) {
var12 = var1[var3++]; // L: 101
if (var12 != 0) { // L: 102
var0[var4++] = var2[var12 & 255];
} else {
++var4;
++var4; // L: 103
}
}
for (var11 = var5; var11 < 0; ++var11) {
var12 = var1[var3++];
if (var12 != 0) {
for (var11 = var5; var11 < 0; ++var11) { // L: 105
var12 = var1[var3++]; // L: 106
if (var12 != 0) { // L: 107
var0[var4++] = var2[var12 & 255];
} else {
++var4;
++var4; // L: 108
}
}
var4 += var7;
var3 += var8;
var4 += var7; // L: 110
var3 += var8; // L: 111
}
}
} // L: 113
@ObfuscatedName("j")
@Export("IndexedSprite_something")
static void IndexedSprite_something(int[] var0, byte[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11) {
int var12 = var3;
int var12 = var3; // L: 161
for (int var13 = -var8; var13 < 0; ++var13) {
int var14 = var11 * (var4 >> 16);
for (int var13 = -var8; var13 < 0; ++var13) { // L: 162
int var14 = var11 * (var4 >> 16); // L: 163
for (int var15 = -var7; var15 < 0; ++var15) {
byte var16 = var1[(var3 >> 16) + var14];
if (var16 != 0) {
for (int var15 = -var7; var15 < 0; ++var15) { // L: 164
byte var16 = var1[(var3 >> 16) + var14]; // L: 165
if (var16 != 0) { // L: 166
var0[var5++] = var2[var16 & 255];
} else {
++var5;
++var5; // L: 167
}
var3 += var9;
var3 += var9; // L: 168
}
var4 += var10;
var3 = var12;
var5 += var6;
var4 += var10; // L: 170
var3 = var12; // L: 171
var5 += var6; // L: 172
}
}
} // L: 174
}

View File

@@ -114,76 +114,76 @@ public class Instrument {
int offset;
static {
Instrument_noise = new int[32768];
Random var0 = new Random(0L);
Instrument_noise = new int[32768]; // L: 31
Random var0 = new Random(0L); // L: 32
int var1;
for (var1 = 0; var1 < 32768; ++var1) {
Instrument_noise[var1] = (var0.nextInt() & 2) - 1;
for (var1 = 0; var1 < 32768; ++var1) { // L: 33
Instrument_noise[var1] = (var0.nextInt() & 2) - 1; // L: 34
}
Instrument_sine = new int[32768];
Instrument_sine = new int[32768]; // L: 36
for (var1 = 0; var1 < 32768; ++var1) {
Instrument_sine[var1] = (int)(Math.sin((double)var1 / 5215.1903D) * 16384.0D);
for (var1 = 0; var1 < 32768; ++var1) { // L: 37
Instrument_sine[var1] = (int)(Math.sin((double)var1 / 5215.1903D) * 16384.0D); // L: 38
}
Instrument_samples = new int[220500];
Instrument_phases = new int[5];
Instrument_delays = new int[5];
Instrument_volumeSteps = new int[5];
Instrument_pitchSteps = new int[5];
Instrument_pitchBaseSteps = new int[5];
Instrument_samples = new int[220500]; // L: 40
Instrument_phases = new int[5]; // L: 44
Instrument_delays = new int[5]; // L: 45
Instrument_volumeSteps = new int[5]; // L: 46
Instrument_pitchSteps = new int[5]; // L: 47
Instrument_pitchBaseSteps = new int[5]; // L: 48
}
Instrument() {
this.oscillatorVolume = new int[]{0, 0, 0, 0, 0};
this.oscillatorPitch = new int[]{0, 0, 0, 0, 0};
this.oscillatorDelays = new int[]{0, 0, 0, 0, 0};
this.delayTime = 0;
this.delayDecay = 100;
this.duration = 500;
this.offset = 0;
}
this.oscillatorVolume = new int[]{0, 0, 0, 0, 0}; // L: 17
this.oscillatorPitch = new int[]{0, 0, 0, 0, 0}; // L: 18
this.oscillatorDelays = new int[]{0, 0, 0, 0, 0}; // L: 19
this.delayTime = 0; // L: 20
this.delayDecay = 100; // L: 21
this.duration = 500; // L: 24
this.offset = 0; // L: 25
} // L: 50
@ObfuscatedName("h")
@Export("synthesize")
final int[] synthesize(int var1, int var2) {
class311.clearIntArray(Instrument_samples, 0, var1);
if (var2 < 10) {
class311.clearIntArray(Instrument_samples, 0, var1); // L: 53
if (var2 < 10) { // L: 54
return Instrument_samples;
} else {
double var3 = (double)var1 / ((double)var2 + 0.0D);
this.pitch.reset();
this.volume.reset();
int var5 = 0;
int var6 = 0;
int var7 = 0;
if (this.pitchModifier != null) {
this.pitchModifier.reset();
this.pitchModifierAmplitude.reset();
var5 = (int)((double)(this.pitchModifier.end - this.pitchModifier.start) * 32.768D / var3);
var6 = (int)((double)this.pitchModifier.start * 32.768D / var3);
double var3 = (double)var1 / ((double)var2 + 0.0D); // L: 55
this.pitch.reset(); // L: 56
this.volume.reset(); // L: 57
int var5 = 0; // L: 58
int var6 = 0; // L: 59
int var7 = 0; // L: 60
if (this.pitchModifier != null) { // L: 61
this.pitchModifier.reset(); // L: 62
this.pitchModifierAmplitude.reset(); // L: 63
var5 = (int)((double)(this.pitchModifier.end - this.pitchModifier.start) * 32.768D / var3); // L: 64
var6 = (int)((double)this.pitchModifier.start * 32.768D / var3); // L: 65
}
int var8 = 0;
int var9 = 0;
int var10 = 0;
if (this.volumeMultiplier != null) {
this.volumeMultiplier.reset();
this.volumeMultiplierAmplitude.reset();
var8 = (int)((double)(this.volumeMultiplier.end - this.volumeMultiplier.start) * 32.768D / var3);
var9 = (int)((double)this.volumeMultiplier.start * 32.768D / var3);
int var8 = 0; // L: 67
int var9 = 0; // L: 68
int var10 = 0; // L: 69
if (this.volumeMultiplier != null) { // L: 70
this.volumeMultiplier.reset(); // L: 71
this.volumeMultiplierAmplitude.reset(); // L: 72
var8 = (int)((double)(this.volumeMultiplier.end - this.volumeMultiplier.start) * 32.768D / var3); // L: 73
var9 = (int)((double)this.volumeMultiplier.start * 32.768D / var3); // L: 74
}
int var11;
for (var11 = 0; var11 < 5; ++var11) {
if (this.oscillatorVolume[var11] != 0) {
Instrument_phases[var11] = 0;
Instrument_delays[var11] = (int)((double)this.oscillatorDelays[var11] * var3);
Instrument_volumeSteps[var11] = (this.oscillatorVolume[var11] << 14) / 100;
Instrument_pitchSteps[var11] = (int)((double)(this.pitch.end - this.pitch.start) * 32.768D * Math.pow(1.0057929410678534D, (double)this.oscillatorPitch[var11]) / var3);
Instrument_pitchBaseSteps[var11] = (int)((double)this.pitch.start * 32.768D / var3);
for (var11 = 0; var11 < 5; ++var11) { // L: 76
if (this.oscillatorVolume[var11] != 0) { // L: 77
Instrument_phases[var11] = 0; // L: 78
Instrument_delays[var11] = (int)((double)this.oscillatorDelays[var11] * var3); // L: 79
Instrument_volumeSteps[var11] = (this.oscillatorVolume[var11] << 14) / 100; // L: 80
Instrument_pitchSteps[var11] = (int)((double)(this.pitch.end - this.pitch.start) * 32.768D * Math.pow(1.0057929410678534D, (double)this.oscillatorPitch[var11]) / var3); // L: 81
Instrument_pitchBaseSteps[var11] = (int)((double)this.pitch.start * 32.768D / var3); // L: 82
}
}
@@ -192,30 +192,30 @@ public class Instrument {
int var14;
int var15;
int[] var10000;
for (var11 = 0; var11 < var1; ++var11) {
var12 = this.pitch.doStep(var1);
var13 = this.volume.doStep(var1);
if (this.pitchModifier != null) {
var14 = this.pitchModifier.doStep(var1);
var15 = this.pitchModifierAmplitude.doStep(var1);
var12 += this.evaluateWave(var7, var15, this.pitchModifier.form) >> 1;
var7 = var7 + var6 + (var14 * var5 >> 16);
for (var11 = 0; var11 < var1; ++var11) { // L: 84
var12 = this.pitch.doStep(var1); // L: 85
var13 = this.volume.doStep(var1); // L: 86
if (this.pitchModifier != null) { // L: 87
var14 = this.pitchModifier.doStep(var1); // L: 88
var15 = this.pitchModifierAmplitude.doStep(var1); // L: 89
var12 += this.evaluateWave(var7, var15, this.pitchModifier.form) >> 1; // L: 90
var7 = var7 + var6 + (var14 * var5 >> 16); // L: 91
}
if (this.volumeMultiplier != null) {
var14 = this.volumeMultiplier.doStep(var1);
var15 = this.volumeMultiplierAmplitude.doStep(var1);
var13 = var13 * ((this.evaluateWave(var10, var15, this.volumeMultiplier.form) >> 1) + 32768) >> 15;
var10 = var10 + var9 + (var14 * var8 >> 16);
if (this.volumeMultiplier != null) { // L: 93
var14 = this.volumeMultiplier.doStep(var1); // L: 94
var15 = this.volumeMultiplierAmplitude.doStep(var1); // L: 95
var13 = var13 * ((this.evaluateWave(var10, var15, this.volumeMultiplier.form) >> 1) + 32768) >> 15; // L: 96
var10 = var10 + var9 + (var14 * var8 >> 16); // L: 97
}
for (var14 = 0; var14 < 5; ++var14) {
if (this.oscillatorVolume[var14] != 0) {
var15 = Instrument_delays[var14] + var11;
if (var15 < var1) {
var10000 = Instrument_samples;
for (var14 = 0; var14 < 5; ++var14) { // L: 99
if (this.oscillatorVolume[var14] != 0) { // L: 100
var15 = Instrument_delays[var14] + var11; // L: 101
if (var15 < var1) { // L: 102
var10000 = Instrument_samples; // L: 103
var10000[var15] += this.evaluateWave(Instrument_phases[var14], var13 * Instrument_volumeSteps[var14] >> 15, this.pitch.form);
var10000 = Instrument_phases;
var10000 = Instrument_phases; // L: 104
var10000[var14] += (var12 * Instrument_pitchSteps[var14] >> 16) + Instrument_pitchBaseSteps[var14];
}
}
@@ -223,147 +223,147 @@ public class Instrument {
}
int var16;
if (this.release != null) {
this.release.reset();
this.attack.reset();
var11 = 0;
boolean var19 = false;
boolean var20 = true;
if (this.release != null) { // L: 108
this.release.reset(); // L: 109
this.attack.reset(); // L: 110
var11 = 0; // L: 111
boolean var19 = false; // L: 112
boolean var20 = true; // L: 113
for (var14 = 0; var14 < var1; ++var14) {
var15 = this.release.doStep(var1);
var16 = this.attack.doStep(var1);
if (var20) {
for (var14 = 0; var14 < var1; ++var14) { // L: 114
var15 = this.release.doStep(var1); // L: 115
var16 = this.attack.doStep(var1); // L: 116
if (var20) { // L: 117
var12 = (var15 * (this.release.end - this.release.start) >> 8) + this.release.start;
} else {
var12 = (var16 * (this.release.end - this.release.start) >> 8) + this.release.start;
var12 = (var16 * (this.release.end - this.release.start) >> 8) + this.release.start; // L: 118
}
var11 += 256;
var11 += 256; // L: 119
if (var11 >= var12) {
var11 = 0;
var20 = !var20;
var11 = 0; // L: 120
var20 = !var20; // L: 121
}
if (var20) {
if (var20) { // L: 123
Instrument_samples[var14] = 0;
}
}
}
if (this.delayTime > 0 && this.delayDecay > 0) {
var11 = (int)((double)this.delayTime * var3);
if (this.delayTime > 0 && this.delayDecay > 0) { // L: 126
var11 = (int)((double)this.delayTime * var3); // L: 127
for (var12 = var11; var12 < var1; ++var12) {
for (var12 = var11; var12 < var1; ++var12) { // L: 128
var10000 = Instrument_samples;
var10000[var12] += Instrument_samples[var12 - var11] * this.delayDecay / 100;
}
}
if (this.filter.pairs[0] > 0 || this.filter.pairs[1] > 0) {
this.filterEnvelope.reset();
var11 = this.filterEnvelope.doStep(var1 + 1);
var12 = this.filter.compute(0, (float)var11 / 65536.0F);
var13 = this.filter.compute(1, (float)var11 / 65536.0F);
if (var1 >= var12 + var13) {
var14 = 0;
var15 = var13;
if (var13 > var1 - var12) {
if (this.filter.pairs[0] > 0 || this.filter.pairs[1] > 0) { // L: 130
this.filterEnvelope.reset(); // L: 131
var11 = this.filterEnvelope.doStep(var1 + 1); // L: 132
var12 = this.filter.compute(0, (float)var11 / 65536.0F); // L: 133
var13 = this.filter.compute(1, (float)var11 / 65536.0F); // L: 134
if (var1 >= var12 + var13) { // L: 135
var14 = 0; // L: 136
var15 = var13; // L: 137
if (var13 > var1 - var12) { // L: 138
var15 = var1 - var12;
}
int var17;
while (var14 < var15) {
var16 = (int)((long)Instrument_samples[var14 + var12] * (long)AudioFilter.forwardMultiplier >> 16);
var16 = (int)((long)Instrument_samples[var14 + var12] * (long)AudioFilter.forwardMultiplier >> 16); // L: 140
for (var17 = 0; var17 < var12; ++var17) {
for (var17 = 0; var17 < var12; ++var17) { // L: 141
var16 += (int)((long)Instrument_samples[var14 + var12 - 1 - var17] * (long)AudioFilter.coefficients[0][var17] >> 16);
}
for (var17 = 0; var17 < var14; ++var17) {
for (var17 = 0; var17 < var14; ++var17) { // L: 142
var16 -= (int)((long)Instrument_samples[var14 - 1 - var17] * (long)AudioFilter.coefficients[1][var17] >> 16);
}
Instrument_samples[var14] = var16;
var11 = this.filterEnvelope.doStep(var1 + 1);
++var14;
Instrument_samples[var14] = var16; // L: 143
var11 = this.filterEnvelope.doStep(var1 + 1); // L: 144
++var14; // L: 139
}
var15 = 128;
var15 = 128; // L: 147
while (true) {
if (var15 > var1 - var12) {
if (var15 > var1 - var12) { // L: 149
var15 = var1 - var12;
}
int var18;
while (var14 < var15) {
var17 = (int)((long)Instrument_samples[var14 + var12] * (long)AudioFilter.forwardMultiplier >> 16);
var17 = (int)((long)Instrument_samples[var14 + var12] * (long)AudioFilter.forwardMultiplier >> 16); // L: 151
for (var18 = 0; var18 < var12; ++var18) {
for (var18 = 0; var18 < var12; ++var18) { // L: 152
var17 += (int)((long)Instrument_samples[var14 + var12 - 1 - var18] * (long)AudioFilter.coefficients[0][var18] >> 16);
}
for (var18 = 0; var18 < var13; ++var18) {
for (var18 = 0; var18 < var13; ++var18) { // L: 153
var17 -= (int)((long)Instrument_samples[var14 - 1 - var18] * (long)AudioFilter.coefficients[1][var18] >> 16);
}
Instrument_samples[var14] = var17;
var11 = this.filterEnvelope.doStep(var1 + 1);
++var14;
Instrument_samples[var14] = var17; // L: 154
var11 = this.filterEnvelope.doStep(var1 + 1); // L: 155
++var14; // L: 150
}
if (var14 >= var1 - var12) {
if (var14 >= var1 - var12) { // L: 157
while (var14 < var1) {
var17 = 0;
var17 = 0; // L: 163
for (var18 = var14 + var12 - var1; var18 < var12; ++var18) {
for (var18 = var14 + var12 - var1; var18 < var12; ++var18) { // L: 164
var17 += (int)((long)Instrument_samples[var14 + var12 - 1 - var18] * (long)AudioFilter.coefficients[0][var18] >> 16);
}
for (var18 = 0; var18 < var13; ++var18) {
for (var18 = 0; var18 < var13; ++var18) { // L: 165
var17 -= (int)((long)Instrument_samples[var14 - 1 - var18] * (long)AudioFilter.coefficients[1][var18] >> 16);
}
Instrument_samples[var14] = var17;
this.filterEnvelope.doStep(var1 + 1);
++var14;
Instrument_samples[var14] = var17; // L: 166
this.filterEnvelope.doStep(var1 + 1); // L: 167
++var14; // L: 162
}
break;
}
var12 = this.filter.compute(0, (float)var11 / 65536.0F);
var13 = this.filter.compute(1, (float)var11 / 65536.0F);
var15 += 128;
var12 = this.filter.compute(0, (float)var11 / 65536.0F); // L: 158
var13 = this.filter.compute(1, (float)var11 / 65536.0F); // L: 159
var15 += 128; // L: 160
}
}
}
for (var11 = 0; var11 < var1; ++var11) {
if (Instrument_samples[var11] < -32768) {
for (var11 = 0; var11 < var1; ++var11) { // L: 171
if (Instrument_samples[var11] < -32768) { // L: 172
Instrument_samples[var11] = -32768;
}
if (Instrument_samples[var11] > 32767) {
if (Instrument_samples[var11] > 32767) { // L: 173
Instrument_samples[var11] = 32767;
}
}
return Instrument_samples;
return Instrument_samples; // L: 175
}
}
@ObfuscatedName("v")
@Export("evaluateWave")
final int evaluateWave(int var1, int var2, int var3) {
if (var3 == 1) {
return (var1 & 32767) < 16384 ? var2 : -var2;
} else if (var3 == 2) {
if (var3 == 1) { // L: 179
return (var1 & 32767) < 16384 ? var2 : -var2; // L: 180 181
} else if (var3 == 2) { // L: 183
return Instrument_sine[var1 & 32767] * var2 >> 14;
} else if (var3 == 3) {
} else if (var3 == 3) { // L: 184
return (var2 * (var1 & 32767) >> 14) - var2;
} else {
return var3 == 4 ? var2 * Instrument_noise[var1 / 2607 & 32767] : 0;
return var3 == 4 ? var2 * Instrument_noise[var1 / 2607 & 32767] : 0; // L: 185 186
}
}
@@ -373,54 +373,54 @@ public class Instrument {
)
@Export("decode")
final void decode(Buffer var1) {
this.pitch = new SoundEnvelope();
this.pitch.decode(var1);
this.volume = new SoundEnvelope();
this.volume.decode(var1);
int var2 = var1.readUnsignedByte();
if (var2 != 0) {
--var1.offset;
this.pitchModifier = new SoundEnvelope();
this.pitchModifier.decode(var1);
this.pitchModifierAmplitude = new SoundEnvelope();
this.pitchModifierAmplitude.decode(var1);
this.pitch = new SoundEnvelope(); // L: 190
this.pitch.decode(var1); // L: 191
this.volume = new SoundEnvelope(); // L: 192
this.volume.decode(var1); // L: 193
int var2 = var1.readUnsignedByte(); // L: 194
if (var2 != 0) { // L: 195
--var1.offset; // L: 196
this.pitchModifier = new SoundEnvelope(); // L: 197
this.pitchModifier.decode(var1); // L: 198
this.pitchModifierAmplitude = new SoundEnvelope(); // L: 199
this.pitchModifierAmplitude.decode(var1); // L: 200
}
var2 = var1.readUnsignedByte();
if (var2 != 0) {
--var1.offset;
this.volumeMultiplier = new SoundEnvelope();
this.volumeMultiplier.decode(var1);
this.volumeMultiplierAmplitude = new SoundEnvelope();
this.volumeMultiplierAmplitude.decode(var1);
var2 = var1.readUnsignedByte(); // L: 202
if (var2 != 0) { // L: 203
--var1.offset; // L: 204
this.volumeMultiplier = new SoundEnvelope(); // L: 205
this.volumeMultiplier.decode(var1); // L: 206
this.volumeMultiplierAmplitude = new SoundEnvelope(); // L: 207
this.volumeMultiplierAmplitude.decode(var1); // L: 208
}
var2 = var1.readUnsignedByte();
if (var2 != 0) {
--var1.offset;
this.release = new SoundEnvelope();
this.release.decode(var1);
this.attack = new SoundEnvelope();
this.attack.decode(var1);
var2 = var1.readUnsignedByte(); // L: 210
if (var2 != 0) { // L: 211
--var1.offset; // L: 212
this.release = new SoundEnvelope(); // L: 213
this.release.decode(var1); // L: 214
this.attack = new SoundEnvelope(); // L: 215
this.attack.decode(var1); // L: 216
}
for (int var3 = 0; var3 < 10; ++var3) {
int var4 = var1.readUShortSmart();
if (var4 == 0) {
for (int var3 = 0; var3 < 10; ++var3) { // L: 218
int var4 = var1.readUShortSmart(); // L: 219
if (var4 == 0) { // L: 220
break;
}
this.oscillatorVolume[var3] = var4;
this.oscillatorPitch[var3] = var1.readShortSmart();
this.oscillatorDelays[var3] = var1.readUShortSmart();
this.oscillatorVolume[var3] = var4; // L: 221
this.oscillatorPitch[var3] = var1.readShortSmart(); // L: 222
this.oscillatorDelays[var3] = var1.readUShortSmart(); // L: 223
}
this.delayTime = var1.readUShortSmart();
this.delayDecay = var1.readUShortSmart();
this.duration = var1.readUnsignedShort();
this.offset = var1.readUnsignedShort();
this.filter = new AudioFilter();
this.filterEnvelope = new SoundEnvelope();
this.filter.method2772(var1, this.filterEnvelope);
}
this.delayTime = var1.readUShortSmart(); // L: 225
this.delayDecay = var1.readUShortSmart(); // L: 226
this.duration = var1.readUnsignedShort(); // L: 227
this.offset = var1.readUnsignedShort(); // L: 228
this.filter = new AudioFilter(); // L: 229
this.filterEnvelope = new SoundEnvelope(); // L: 230
this.filter.method2772(var1, this.filterEnvelope); // L: 231
} // L: 232
}

View File

@@ -12,25 +12,25 @@ public class IntHashTable {
public IntHashTable(int[] var1) {
int var2;
for (var2 = 1; var2 <= (var1.length >> 1) + var1.length; var2 <<= 1) {
for (var2 = 1; var2 <= (var1.length >> 1) + var1.length; var2 <<= 1) { // L: 7 8
}
this.array = new int[var2 + var2];
this.array = new int[var2 + var2]; // L: 9
int var3;
for (var3 = 0; var3 < var2 + var2; ++var3) {
for (var3 = 0; var3 < var2 + var2; ++var3) { // L: 10
this.array[var3] = -1;
}
int var4;
for (var3 = 0; var3 < var1.length; this.array[var4 + var4 + 1] = var3++) {
for (var4 = var1[var3] & var2 - 1; this.array[var4 + var4 + 1] != -1; var4 = var4 + 1 & var2 - 1) {
for (var3 = 0; var3 < var1.length; this.array[var4 + var4 + 1] = var3++) { // L: 11 15
for (var4 = var1[var3] & var2 - 1; this.array[var4 + var4 + 1] != -1; var4 = var4 + 1 & var2 - 1) { // L: 12 13
}
this.array[var4 + var4] = var1[var3];
this.array[var4 + var4] = var1[var3]; // L: 14
}
}
} // L: 17
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -39,20 +39,20 @@ public class IntHashTable {
)
@Export("get")
public int get(int var1) {
int var2 = (this.array.length >> 1) - 1;
int var3 = var1 & var2;
int var2 = (this.array.length >> 1) - 1; // L: 20
int var3 = var1 & var2; // L: 21
while (true) {
int var4 = this.array[var3 + var3 + 1];
if (var4 == -1) {
int var4 = this.array[var3 + var3 + 1]; // L: 23
if (var4 == -1) { // L: 24
return -1;
}
if (this.array[var3 + var3] == var1) {
if (this.array[var3 + var3] == var1) { // L: 25
return var4;
}
var3 = var3 + 1 & var2;
var3 = var3 + 1 & var2; // L: 26
}
}
}

View File

@@ -10,6 +10,6 @@ public class IntegerNode extends Node {
public int integer;
public IntegerNode(int var1) {
this.integer = var1;
}
this.integer = var1; // L: 7
} // L: 8
}

View File

@@ -41,6 +41,6 @@ public class InterfaceParent extends Node {
boolean field559;
InterfaceParent() {
this.field559 = false;
}
this.field559 = false; // L: 8
} // L: 10
}

View File

@@ -56,18 +56,18 @@ public class Interpreter {
static final double field1093;
static {
Interpreter_arrayLengths = new int[5];
Interpreter_arrays = new int[5][5000];
Interpreter_intStack = new int[1000];
Interpreter_stringStack = new String[1000];
Interpreter_frameDepth = 0;
Interpreter_frames = new ScriptFrame[50];
Interpreter_calendar = java.util.Calendar.getInstance();
Interpreter_MONTHS = new String[]{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
field1104 = false;
field1103 = false;
field1097 = 0;
field1093 = Math.log(2.0D);
Interpreter_arrayLengths = new int[5]; // L: 70
Interpreter_arrays = new int[5][5000]; // L: 71
Interpreter_intStack = new int[1000]; // L: 72
Interpreter_stringStack = new String[1000]; // L: 74
Interpreter_frameDepth = 0; // L: 76
Interpreter_frames = new ScriptFrame[50]; // L: 77
Interpreter_calendar = java.util.Calendar.getInstance(); // L: 80
Interpreter_MONTHS = new String[]{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; // L: 83
field1104 = false; // L: 86
field1103 = false; // L: 87
field1097 = 0; // L: 88
field1093 = Math.log(2.0D); // L: 92
}
@ObfuscatedName("h")
@@ -76,14 +76,14 @@ public class Interpreter {
garbageValue = "781493841"
)
public static void method2082(AbstractArchive var0, int var1, int var2, int var3, boolean var4) {
class206.musicPlayerStatus = 1;
Varps.musicTrackArchive = var0;
HealthBarUpdate.musicTrackGroupId = var1;
class206.musicTrackFileId = var2;
GrandExchangeEvent.musicTrackVolume = var3;
class231.musicTrackBoolean = var4;
WorldMapSection1.pcmSampleLength = 10000;
}
class206.musicPlayerStatus = 1; // L: 26
Varps.musicTrackArchive = var0; // L: 27
HealthBarUpdate.musicTrackGroupId = var1; // L: 28
class206.musicTrackFileId = var2; // L: 29
GrandExchangeEvent.musicTrackVolume = var3; // L: 30
class231.musicTrackBoolean = var4; // L: 31
WorldMapSection1.pcmSampleLength = 10000; // L: 32
} // L: 33
@ObfuscatedName("l")
@ObfuscatedSignature(
@@ -91,7 +91,7 @@ public class Interpreter {
garbageValue = "636889033"
)
static boolean method1995(char var0) {
return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:'@#~,<.>/?\\| ".indexOf(var0) != -1;
return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:'@#~,<.>/?\\| ".indexOf(var0) != -1; // L: 875
}
@ObfuscatedName("jn")
@@ -101,32 +101,32 @@ public class Interpreter {
)
@Export("resizeInterface")
static void resizeInterface(Widget[] var0, int var1, int var2, int var3, boolean var4) {
for (int var5 = 0; var5 < var0.length; ++var5) {
Widget var6 = var0[var5];
if (var6 != null && var6.parentId == var1) {
TileItem.alignWidgetSize(var6, var2, var3, var4);
class7.alignWidgetPosition(var6, var2, var3);
if (var6.scrollX > var6.scrollWidth - var6.width) {
for (int var5 = 0; var5 < var0.length; ++var5) { // L: 9482
Widget var6 = var0[var5]; // L: 9483
if (var6 != null && var6.parentId == var1) { // L: 9484 9485
TileItem.alignWidgetSize(var6, var2, var3, var4); // L: 9486
class7.alignWidgetPosition(var6, var2, var3); // L: 9487
if (var6.scrollX > var6.scrollWidth - var6.width) { // L: 9488
var6.scrollX = var6.scrollWidth - var6.width;
}
if (var6.scrollX < 0) {
if (var6.scrollX < 0) { // L: 9489
var6.scrollX = 0;
}
if (var6.scrollY > var6.scrollHeight - var6.height) {
var6.scrollY = var6.scrollHeight - var6.height;
var6.scrollY = var6.scrollHeight - var6.height; // L: 9490
}
if (var6.scrollY < 0) {
if (var6.scrollY < 0) { // L: 9491
var6.scrollY = 0;
}
if (var6.type == 0) {
if (var6.type == 0) { // L: 9492
PendingSpawn.revalidateWidgetScroll(var0, var6, var4);
}
}
}
}
} // L: 9494
}

Some files were not shown because too many files have changed in this diff Show More