chore: rev 193

This commit is contained in:
therealunull
2020-12-09 11:07:26 -05:00
parent 5cd865f43f
commit 8f587826ee
358 changed files with 62074 additions and 62020 deletions

View File

@@ -3,53 +3,59 @@ import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
import net.runelite.rs.Reflection;
@ObfuscatedName("co")
@ObfuscatedName("cs")
@Implements("Script")
public class Script extends DualNode {
@ObfuscatedName("f")
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "Lev;"
descriptor = "Lez;"
)
@Export("Script_cached")
static EvictingDualNodeHashTable Script_cached;
@ObfuscatedName("b")
@ObfuscatedName("y")
@ObfuscatedSignature(
descriptor = "Laz;"
)
@Export("worldMapEvent")
static WorldMapEvent worldMapEvent;
@ObfuscatedName("v")
@Export("opcodes")
int[] opcodes;
@ObfuscatedName("l")
@ObfuscatedName("x")
@Export("intOperands")
int[] intOperands;
@ObfuscatedName("m")
@ObfuscatedName("w")
@Export("stringOperands")
String[] stringOperands;
@ObfuscatedName("z")
@ObfuscatedName("t")
@ObfuscatedGetter(
intValue = -289623255
intValue = 1311924603
)
@Export("localIntCount")
int localIntCount;
@ObfuscatedName("q")
@ObfuscatedName("j")
@ObfuscatedGetter(
intValue = -1416487067
intValue = 1513216297
)
@Export("localStringCount")
int localStringCount;
@ObfuscatedName("k")
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = -1408552327
intValue = 1973345543
)
@Export("intArgumentCount")
int intArgumentCount;
@ObfuscatedName("c")
@ObfuscatedName("p")
@ObfuscatedGetter(
intValue = 1198237171
intValue = 1310900639
)
@Export("stringArgumentCount")
int stringArgumentCount;
@ObfuscatedName("u")
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "[Lll;"
descriptor = "[Lla;"
)
@Export("switches")
IterableNodeHashTable[] switches;
@@ -59,124 +65,189 @@ public class Script extends DualNode {
}
Script() {
} // L: 22
}
@ObfuscatedName("z")
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "(II)[Lll;",
garbageValue = "20409592"
descriptor = "(II)[Lla;",
garbageValue = "557069999"
)
@Export("newIterableNodeHashTable")
IterableNodeHashTable[] newIterableNodeHashTable(int var1) {
return new IterableNodeHashTable[var1]; // L: 125
return new IterableNodeHashTable[var1];
}
@ObfuscatedName("f")
static double method2356(double var0, double var2, double var4) {
double var8 = (var0 - var2) / var4; // L: 10
double var6 = Math.exp(var8 * -var8 / 2.0D) / Math.sqrt(6.283185307179586D); // L: 12
return var6 / var4; // L: 14
}
@ObfuscatedName("m")
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "(ILco;ZI)I",
garbageValue = "1422774584"
descriptor = "(Ljava/lang/String;I)Ljava/lang/Class;",
garbageValue = "877971309"
)
static int method2355(int var0, Script var1, boolean var2) {
int var4;
int var9;
if (var0 == ScriptOpcodes.CC_CREATE) { // L: 430
MilliClock.Interpreter_intStackSize -= 3; // L: 431
var9 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize]; // L: 432
var4 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 1]; // L: 433
int var11 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 2]; // L: 434
if (var4 == 0) { // L: 435
throw new RuntimeException(); // L: 436
} else {
Widget var6 = UserComparator4.getWidget(var9); // L: 438
if (var6.children == null) { // L: 439
var6.children = new Widget[var11 + 1];
}
if (var6.children.length <= var11) { // L: 440
Widget[] var7 = new Widget[var11 + 1]; // L: 441
for (int var8 = 0; var8 < var6.children.length; ++var8) { // L: 442
var7[var8] = var6.children[var8];
}
var6.children = var7; // L: 443
}
if (var11 > 0 && var6.children[var11 - 1] == null) { // L: 445
throw new RuntimeException("" + (var11 - 1));
} else {
Widget var12 = new Widget(); // L: 446
var12.type = var4; // L: 447
var12.parentId = var12.id = var6.id; // L: 448
var12.childIndex = var11; // L: 449
var12.isIf3 = true; // L: 450
var6.children[var11] = var12; // L: 451
if (var2) { // L: 452
MouseRecorder.field621 = var12;
} else {
Interpreter.field1122 = var12; // L: 453
}
GrandExchangeOfferOwnWorldComparator.invalidateWidget(var6); // L: 454
return 1; // L: 455
}
}
@Export("loadClassFromDescriptor")
static Class loadClassFromDescriptor(String var0) throws ClassNotFoundException {
if (var0.equals("B")) {
return Byte.TYPE;
} else if (var0.equals("I")) {
return Integer.TYPE;
} else if (var0.equals("S")) {
return Short.TYPE;
} else if (var0.equals("J")) {
return Long.TYPE;
} else if (var0.equals("Z")) {
return Boolean.TYPE;
} else if (var0.equals("F")) {
return Float.TYPE;
} else if (var0.equals("D")) {
return Double.TYPE;
} else if (var0.equals("C")) {
return Character.TYPE;
} else {
Widget var3;
if (var0 == ScriptOpcodes.CC_DELETE) { // L: 457
var3 = var2 ? MouseRecorder.field621 : Interpreter.field1122; // L: 458
Widget var10 = UserComparator4.getWidget(var3.id); // L: 459
var10.children[var3.childIndex] = null; // L: 460
GrandExchangeOfferOwnWorldComparator.invalidateWidget(var10); // L: 461
return 1; // L: 462
} else if (var0 == ScriptOpcodes.CC_DELETEALL) { // L: 464
var3 = UserComparator4.getWidget(Interpreter.Interpreter_intStack[--MilliClock.Interpreter_intStackSize]); // L: 465
var3.children = null; // L: 466
GrandExchangeOfferOwnWorldComparator.invalidateWidget(var3); // L: 467
return 1; // L: 468
} else if (var0 != ScriptOpcodes.CC_FIND) { // L: 470
if (var0 == ScriptOpcodes.IF_FIND) { // L: 483
var3 = UserComparator4.getWidget(Interpreter.Interpreter_intStack[--MilliClock.Interpreter_intStackSize]); // L: 484
if (var3 != null) { // L: 485
Interpreter.Interpreter_intStack[++MilliClock.Interpreter_intStackSize - 1] = 1; // L: 486
if (var2) { // L: 487
MouseRecorder.field621 = var3;
} else {
Interpreter.field1122 = var3; // L: 488
}
} else {
Interpreter.Interpreter_intStack[++MilliClock.Interpreter_intStackSize - 1] = 0; // L: 490
}
return var0.equals("void") ? Void.TYPE : Reflection.findClass(var0);
}
}
return 1; // L: 491
} else {
return 2; // L: 493
}
} else {
MilliClock.Interpreter_intStackSize -= 2; // L: 471
var9 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize]; // L: 472
var4 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 1]; // L: 473
Widget var5 = ItemContainer.getWidgetChild(var9, var4); // L: 474
if (var5 != null && var4 != -1) { // L: 475
Interpreter.Interpreter_intStack[++MilliClock.Interpreter_intStackSize - 1] = 1; // L: 476
if (var2) { // L: 477
MouseRecorder.field621 = var5;
} else {
Interpreter.field1122 = var5; // L: 478
}
} else {
Interpreter.Interpreter_intStack[++MilliClock.Interpreter_intStackSize - 1] = 0; // L: 480
}
@ObfuscatedName("kl")
@ObfuscatedSignature(
descriptor = "(II)V",
garbageValue = "-1901639369"
)
@Export("changeGameOptions")
static final void changeGameOptions(int var0) {
class195.method3681();
return 1; // L: 481
for (ObjectSound var1 = (ObjectSound)ObjectSound.objectSounds.last(); var1 != null; var1 = (ObjectSound)ObjectSound.objectSounds.previous()) {
if (var1.obj != null) {
var1.set();
}
}
int var4 = class219.VarpDefinition_get(var0).type;
if (var4 != 0) {
int var2 = Varps.Varps_main[var0];
if (var4 == 1) {
if (var2 == 1) {
WorldMapSection1.method626(0.9D);
}
if (var2 == 2) {
WorldMapSection1.method626(0.8D);
}
if (var2 == 3) {
WorldMapSection1.method626(0.7D);
}
if (var2 == 4) {
WorldMapSection1.method626(0.6D);
}
}
if (var4 == 3) {
if (var2 == 0) {
WorldMapEvent.method810(255);
}
if (var2 == 1) {
WorldMapEvent.method810(192);
}
if (var2 == 2) {
WorldMapEvent.method810(128);
}
if (var2 == 3) {
WorldMapEvent.method810(64);
}
if (var2 == 4) {
WorldMapEvent.method810(0);
}
}
if (var4 == 4) {
if (var2 == 0) {
WorldMapCacheName.method662(127);
}
if (var2 == 1) {
WorldMapCacheName.method662(96);
}
if (var2 == 2) {
WorldMapCacheName.method662(64);
}
if (var2 == 3) {
WorldMapCacheName.method662(32);
}
if (var2 == 4) {
WorldMapCacheName.method662(0);
}
}
if (var4 == 5) {
Client.leftClickOpensMenu = var2;
}
if (var4 == 6) {
Client.chatEffects = var2;
}
if (var4 == 9) {
Client.field865 = var2;
}
if (var4 == 10) {
if (var2 == 0) {
class194.method3676(127);
}
if (var2 == 1) {
class194.method3676(96);
}
if (var2 == 2) {
class194.method3676(64);
}
if (var2 == 3) {
class194.method3676(32);
}
if (var2 == 4) {
class194.method3676(0);
}
}
if (var4 == 17) {
Client.followerIndex = var2 & 65535;
}
AttackOption[] var3;
if (var4 == 18) {
var3 = new AttackOption[]{AttackOption.AttackOption_hidden, AttackOption.AttackOption_dependsOnCombatLevels, AttackOption.AttackOption_alwaysRightClick, AttackOption.AttackOption_leftClickWhereAvailable};
Client.playerAttackOption = (AttackOption)UrlRequester.findEnumerated(var3, var2);
if (Client.playerAttackOption == null) {
Client.playerAttackOption = AttackOption.AttackOption_dependsOnCombatLevels;
}
}
if (var4 == 19) {
if (var2 == -1) {
Client.combatTargetPlayerIndex = -1;
} else {
Client.combatTargetPlayerIndex = var2 & 2047;
}
}
if (var4 == 22) {
var3 = new AttackOption[]{AttackOption.AttackOption_hidden, AttackOption.AttackOption_dependsOnCombatLevels, AttackOption.AttackOption_alwaysRightClick, AttackOption.AttackOption_leftClickWhereAvailable};
Client.npcAttackOption = (AttackOption)UrlRequester.findEnumerated(var3, var2);
if (Client.npcAttackOption == null) {
Client.npcAttackOption = AttackOption.AttackOption_dependsOnCombatLevels;
}
}
}
}
}