project: Rev 204

This commit is contained in:
Owain van Brakel
2022-03-23 14:15:28 +01:00
parent 14d41dd9a4
commit 3834b46aee
532 changed files with 61751 additions and 59895 deletions

View File

@@ -6,172 +6,190 @@ import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
@ObfuscatedName("x")
@ObfuscatedName("p")
public class class14 {
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = -845209745
@ObfuscatedName("ug")
@Export("foundItemIds")
static short[] foundItemIds;
@ObfuscatedName("iu")
@ObfuscatedSignature(
descriptor = "Lql;"
)
final int field85;
@ObfuscatedName("l")
final String field83;
@ObfuscatedName("s")
final ThreadFactory field84;
@ObfuscatedName("e")
final ThreadPoolExecutor field82;
@Export("compass")
static SpritePixels compass;
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = 659185471
)
final int field76;
@ObfuscatedName("o")
final String field74;
@ObfuscatedName("h")
final ThreadFactory field75;
@ObfuscatedName("g")
final ThreadPoolExecutor field73;
public class14(String var1, int var2, int var3) {
this.field83 = var1;
this.field85 = var2;
this.field84 = new class16(this); // L: 17
this.field82 = this.method167(var3);
this.field74 = var1; // L: 15
this.field76 = var2; // L: 16
this.field75 = new class16(this); // L: 17
this.field73 = this.method176(var3); // L: 18
} // L: 19
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(II)Ljava/util/concurrent/ThreadPoolExecutor;",
garbageValue = "-2010668855"
)
final ThreadPoolExecutor method176(int var1) {
return new ThreadPoolExecutor(var1, var1, 0L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue(this.field76), this.field75); // L: 22
}
@ObfuscatedName("c")
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(IB)Ljava/util/concurrent/ThreadPoolExecutor;",
garbageValue = "1"
descriptor = "(Lk;I)Lm;",
garbageValue = "-964082167"
)
final ThreadPoolExecutor method167(int var1) {
return new ThreadPoolExecutor(var1, var1, 0L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue(this.field85), this.field84); // L: 22
}
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "(Ly;I)Lj;",
garbageValue = "2078751615"
)
public class19 method174(class10 var1) {
if (this.field82.getQueue().remainingCapacity() <= 0) { // L: 26
System.err.println("REST thread pool queue is empty\r\nThread pool size " + this.field82.getCorePoolSize() + " Queue capacity " + this.field85); // L: 27
public class19 method180(class10 var1) {
if (this.field73.getQueue().remainingCapacity() <= 0) { // L: 26
System.err.println("REST thread pool queue is empty\r\nThread pool size " + this.field73.getCorePoolSize() + " Queue capacity " + this.field76); // L: 27
return new class19("Queue full"); // L: 28
} else {
class19 var2 = new class19(this.field82.submit(new class20(this, var1))); // L: 30
class19 var2 = new class19(this.field73.submit(new class20(this, var1))); // L: 30
return var2; // L: 31
}
}
@ObfuscatedName("s")
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "1535010747"
garbageValue = "-302987445"
)
public final void method169() {
public final void method178() {
try {
this.field82.shutdown(); // L: 36
this.field73.shutdown(); // L: 36
} catch (Exception var2) { // L: 38
System.err.println("Error shutting down RestRequestService\r\n" + var2); // L: 39
}
} // L: 41
@ObfuscatedName("c")
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(II)Loi;",
garbageValue = "-108388034"
descriptor = "(II)Z",
garbageValue = "-1120017674"
)
public static class414 method178(int var0) {
int var1 = class412.field4484[var0]; // L: 11
if (var1 == 1) { // L: 12
return class414.field4487; // L: 13
} else if (var1 == 2) { // L: 15
return class414.field4495; // L: 16
} else {
return var1 == 3 ? class414.field4489 : null; // L: 18 19 21
}
public static boolean method175(int var0) {
return var0 >= WorldMapDecorationType.field3519.id && var0 <= WorldMapDecorationType.field3511.id || var0 == WorldMapDecorationType.field3514.id; // L: 43
}
@ObfuscatedName("ie")
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "(Lcw;IIIB)V",
garbageValue = "-98"
descriptor = "(Lorg/json/JSONObject;Ljava/lang/String;B)[F",
garbageValue = "28"
)
@Export("addPlayerToMenu")
static final void addPlayerToMenu(Player var0, int var1, int var2, int var3) {
if (WorldMapSprite.localPlayer != var0) { // L: 9650
if (Client.menuOptionsCount < 400) { // L: 9651
String var4;
int var7;
if (var0.skillLevel == 0) { // L: 9653
String var5 = var0.actions[0] + var0.username + var0.actions[1]; // L: 9654
var7 = var0.combatLevel; // L: 9656
int var8 = WorldMapSprite.localPlayer.combatLevel; // L: 9657
int var9 = var8 - var7; // L: 9659
String var6;
if (var9 < -9) { // L: 9660
var6 = LoginScreenAnimation.colorStartTag(16711680); // L: 9661
} else if (var9 < -6) { // L: 9664
var6 = LoginScreenAnimation.colorStartTag(16723968); // L: 9665
} else if (var9 < -3) { // L: 9668
var6 = LoginScreenAnimation.colorStartTag(16740352); // L: 9669
} else if (var9 < 0) { // L: 9672
var6 = LoginScreenAnimation.colorStartTag(16756736); // L: 9673
} else if (var9 > 9) { // L: 9676
var6 = LoginScreenAnimation.colorStartTag(65280); // L: 9677
} else if (var9 > 6) { // L: 9680
var6 = LoginScreenAnimation.colorStartTag(4259584); // L: 9681
} else if (var9 > 3) { // L: 9684
var6 = LoginScreenAnimation.colorStartTag(8453888); // L: 9685
} else if (var9 > 0) { // L: 9688
var6 = LoginScreenAnimation.colorStartTag(12648192); // L: 9689
} else {
var6 = LoginScreenAnimation.colorStartTag(16776960); // L: 9692
}
static float[] method186(JSONObject var0, String var1) throws JSONException {
float[] var2 = new float[4]; // L: 307
var4 = var5 + var6 + " " + " (" + "level-" + var0.combatLevel + ")" + var0.actions[2]; // L: 9694
} else {
var4 = var0.actions[0] + var0.username + var0.actions[1] + " " + " (" + "skill-" + var0.skillLevel + ")" + var0.actions[2]; // L: 9696
try {
JSONArray var3 = var0.getJSONArray(var1); // L: 309
var2[0] = (float)var3.optDouble(0, 0.0D); // L: 310
var2[1] = (float)var3.optDouble(1, 0.0D); // L: 311
var2[2] = (float)var3.optDouble(2, 1.0D); // L: 312
var2[3] = (float)var3.optDouble(3, 1.0D); // L: 313
} catch (JSONException var4) { // L: 315
var2[0] = 0.0F; // L: 316
var2[1] = 0.0F; // L: 317
var2[2] = 1.0F; // L: 318
var2[3] = 1.0F; // L: 319
}
return var2; // L: 321
}
@ObfuscatedName("ac")
@ObfuscatedSignature(
descriptor = "(ILbo;ZI)I",
garbageValue = "-1324190419"
)
static int method184(int var0, Script var1, boolean var2) {
int var3;
int var6;
int var9;
if (var0 == ScriptOpcodes.ENUM_STRING) { // L: 2270
class295.Interpreter_intStackSize -= 2; // L: 2271
var3 = Interpreter.Interpreter_intStack[class295.Interpreter_intStackSize]; // L: 2272
var9 = Interpreter.Interpreter_intStack[class295.Interpreter_intStackSize + 1]; // L: 2273
EnumComposition var10 = class268.getEnum(var3); // L: 2274
if (var10.outputType != 's') { // L: 2275
}
for (var6 = 0; var6 < var10.outputCount; ++var6) { // L: 2276
if (var9 == var10.keys[var6]) { // L: 2277
Interpreter.Interpreter_stringStack[++ChatChannel.Interpreter_stringStackSize - 1] = var10.strVals[var6]; // L: 2278
var10 = null; // L: 2279
break;
}
}
int var10;
if (Client.isItemSelected == 1) { // L: 9697
class11.insertMenuItemNoShift("Use", Client.selectedItemName + " " + "->" + " " + LoginScreenAnimation.colorStartTag(16777215) + var4, 14, var1, var2, var3); // L: 9698
} else if (Client.isSpellSelected) { // L: 9701
if ((RouteStrategy.selectedSpellFlags & 8) == 8) { // L: 9702
class11.insertMenuItemNoShift(Client.selectedSpellActionName, Client.selectedSpellName + " " + "->" + " " + LoginScreenAnimation.colorStartTag(16777215) + var4, 15, var1, var2, var3); // L: 9703
}
} else {
for (var10 = 7; var10 >= 0; --var10) { // L: 9708
if (Client.playerMenuActions[var10] != null) { // L: 9709
short var11 = 0; // L: 9710
if (Client.playerMenuActions[var10].equalsIgnoreCase("Attack")) { // L: 9711
if (Client.playerAttackOption == AttackOption.AttackOption_hidden) { // L: 9712
continue;
}
if (var10 != null) { // L: 2283
Interpreter.Interpreter_stringStack[++ChatChannel.Interpreter_stringStackSize - 1] = var10.defaultStr;
}
if (AttackOption.AttackOption_alwaysRightClick == Client.playerAttackOption || Client.playerAttackOption == AttackOption.AttackOption_dependsOnCombatLevels && var0.combatLevel > WorldMapSprite.localPlayer.combatLevel) { // L: 9713
var11 = 2000; // L: 9714
}
if (WorldMapSprite.localPlayer.team != 0 && var0.team != 0) { // L: 9716
if (var0.team == WorldMapSprite.localPlayer.team) { // L: 9717
var11 = 2000;
} else {
var11 = 0; // L: 9718
}
} else if (Client.playerAttackOption == AttackOption.field1263 && var0.isClanMember()) { // L: 9720
var11 = 2000; // L: 9721
}
} else if (Client.playerOptionsPriorities[var10]) { // L: 9724
var11 = 2000;
}
boolean var12 = false; // L: 9725
var7 = Client.playerMenuOpcodes[var10] + var11; // L: 9726
class11.insertMenuItemNoShift(Client.playerMenuActions[var10], LoginScreenAnimation.colorStartTag(16777215) + var4, var7, var1, var2, var3); // L: 9727
return 1; // L: 2284
} else if (var0 != ScriptOpcodes.ENUM) { // L: 2286
if (var0 == ScriptOpcodes.ENUM_GETOUTPUTCOUNT) { // L: 2312
var3 = Interpreter.Interpreter_intStack[--class295.Interpreter_intStackSize]; // L: 2313
EnumComposition var4 = class268.getEnum(var3); // L: 2314
Interpreter.Interpreter_intStack[++class295.Interpreter_intStackSize - 1] = var4.size(); // L: 2315
return 1; // L: 2316
} else {
return 2; // L: 2318
}
} else {
class295.Interpreter_intStackSize -= 4; // L: 2287
var3 = Interpreter.Interpreter_intStack[class295.Interpreter_intStackSize]; // L: 2288
var9 = Interpreter.Interpreter_intStack[class295.Interpreter_intStackSize + 1]; // L: 2289
int var5 = Interpreter.Interpreter_intStack[class295.Interpreter_intStackSize + 2]; // L: 2290
var6 = Interpreter.Interpreter_intStack[class295.Interpreter_intStackSize + 3]; // L: 2291
EnumComposition var7 = class268.getEnum(var5); // L: 2292
if (var3 == var7.inputType && var9 == var7.outputType) { // L: 2293
for (int var8 = 0; var8 < var7.outputCount; ++var8) { // L: 2298
if (var6 == var7.keys[var8]) { // L: 2299
if (var9 == 115) { // L: 2300
Interpreter.Interpreter_stringStack[++ChatChannel.Interpreter_stringStackSize - 1] = var7.strVals[var8];
} else {
Interpreter.Interpreter_intStack[++class295.Interpreter_intStackSize - 1] = var7.intVals[var8]; // L: 2301
}
}
}
for (var10 = 0; var10 < Client.menuOptionsCount; ++var10) { // L: 9732
if (Client.menuOpcodes[var10] == 23) { // L: 9733
Client.menuTargets[var10] = LoginScreenAnimation.colorStartTag(16777215) + var4; // L: 9734
var7 = null; // L: 2302
break;
}
}
if (var7 != null) { // L: 2306
if (var9 == 115) { // L: 2307
Interpreter.Interpreter_stringStack[++ChatChannel.Interpreter_stringStackSize - 1] = var7.defaultStr;
} else {
Interpreter.Interpreter_intStack[++class295.Interpreter_intStackSize - 1] = var7.defaultInt; // L: 2308
}
}
return 1; // L: 2310
} else {
if (var9 == 115) { // L: 2294
Interpreter.Interpreter_stringStack[++ChatChannel.Interpreter_stringStackSize - 1] = "null";
} else {
Interpreter.Interpreter_intStack[++class295.Interpreter_intStackSize - 1] = 0; // L: 2295
}
return 1; // L: 2296
}
}
} // L: 9738
}
}