project: Rev 182

This commit is contained in:
Owain van Brakel
2019-08-29 16:04:20 +02:00
parent 0c1dd644d8
commit 6485eb9bed
349 changed files with 51857 additions and 50740 deletions

View File

@@ -2,12 +2,11 @@ import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("eh")
@ObfuscatedName("eu")
@Implements("UserComparator9")
public class UserComparator9 extends AbstractUserComparator {
@ObfuscatedName("q")
@ObfuscatedName("s")
@Export("reversed")
final boolean reversed;
@@ -15,185 +14,43 @@ public class UserComparator9 extends AbstractUserComparator {
this.reversed = var1;
}
@ObfuscatedName("q")
@ObfuscatedName("s")
@ObfuscatedSignature(
signature = "(Ljz;Ljz;I)I",
garbageValue = "1918476759"
signature = "(Ljt;Ljt;B)I",
garbageValue = "-36"
)
@Export("compareBuddy")
int compareBuddy(Buddy var1, Buddy var2) {
if (Client.worldId == var1.world && var2.world == Client.worldId) {
return this.reversed ? var1.getUsername().compareToTyped(var2.getUsername()) : var2.getUsername().compareToTyped(var1.getUsername());
} else {
return this.compareUser(var1, var2);
}
return this.compareUser(var1, var2);
}
public int compare(Object var1, Object var2) {
return this.compareBuddy((Buddy)var1, (Buddy)var2);
}
@ObfuscatedName("q")
@ObfuscatedName("k")
@ObfuscatedSignature(
signature = "(I)[Lkl;",
garbageValue = "-445895559"
signature = "(Lkx;I)I",
garbageValue = "555200658"
)
@Export("ChatMode_values")
static PrivateChatMode[] ChatMode_values() {
return new PrivateChatMode[]{PrivateChatMode.field3817, PrivateChatMode.field3816, PrivateChatMode.field3818};
}
@ObfuscatedName("w")
@ObfuscatedSignature(
signature = "(Ljava/lang/Throwable;Ljava/lang/String;)Lml;"
)
@Export("newRunException")
public static RunException newRunException(Throwable var0, String var1) {
RunException var2;
if (var0 instanceof RunException) {
var2 = (RunException)var0;
var2.message = var2.message + ' ' + var1;
@Export("decode")
static int decode(PacketBuffer var0) {
int var1 = var0.readBits(2);
int var2;
if (var1 == 0) {
var2 = 0;
} else if (var1 == 1) {
var2 = var0.readBits(5);
} else if (var1 == 2) {
var2 = var0.readBits(8);
} else {
var2 = new RunException(var0, var1);
var2 = var0.readBits(11);
}
return var2;
}
@ObfuscatedName("i")
@ObfuscatedSignature(
signature = "(ILcx;ZS)I",
garbageValue = "-7813"
)
static int method3389(int var0, Script var1, boolean var2) {
boolean var3 = true;
Widget var4;
if (var0 >= 2000) {
var0 -= 1000;
var4 = class80.getWidget(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
var3 = false;
} else {
var4 = var2 ? Interpreter.field1111 : Calendar.field2507;
}
if (var0 == ScriptOpcodes.CC_SETOP) {
int var11 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize] - 1;
if (var11 >= 0 && var11 <= 9) {
var4.setAction(var11, Interpreter.Interpreter_stringStack[--Skills.Interpreter_stringStackSize]);
return 1;
}
--Skills.Interpreter_stringStackSize;
return 1;
}
if (var0 == ScriptOpcodes.CC_SETDRAGGABLE) {
HealthBarUpdate.Interpreter_intStackSize -= 2;
int var11 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize];
int var6 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1];
var4.parent = Client.getWidgetChild(var11, var6);
return 1;
}
if (var0 == ScriptOpcodes.CC_SETDRAGGABLEBEHAVIOR) {
var4.isScrollBar = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize] == 1;
return 1;
}
if (var0 == ScriptOpcodes.CC_SETDRAGDEADZONE) {
var4.dragZoneSize = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
return 1;
}
if (var0 == ScriptOpcodes.CC_SETDRAGDEADTIME) {
var4.dragThreshold = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
return 1;
}
if (var0 == ScriptOpcodes.CC_SETOPBASE) {
var4.dataText = Interpreter.Interpreter_stringStack[--Skills.Interpreter_stringStackSize];
return 1;
}
if (var0 == ScriptOpcodes.CC_SETTARGETVERB) {
var4.spellActionName = Interpreter.Interpreter_stringStack[--Skills.Interpreter_stringStackSize];
return 1;
}
if (var0 == ScriptOpcodes.CC_CLEAROPS) {
var4.actions = null;
return 1;
}
if (var0 == 1308) {
var4.field2691 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize] == 1;
return 1;
}
if (var0 == ScriptOpcodes.CC_SETOPKEY) {
byte[] var8 = null;
byte[] var9 = null;
if (!var3) {
HealthBarUpdate.Interpreter_intStackSize -= 2;
var8 = new byte[]{(byte) Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize]};
var9 = new byte[]{(byte) Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1]};
} else {
HealthBarUpdate.Interpreter_intStackSize -= 10;
int var7 = 0;
while (var7 < 10 && Interpreter.Interpreter_intStack[var7 + HealthBarUpdate.Interpreter_intStackSize] >= 0) {
var7 += 2;
}
if (var7 > 0) {
var8 = new byte[var7 / 2];
var9 = new byte[var7 / 2];
while ((var7 -= 2) >= 0) {
var8[var7 / 2] = (byte) Interpreter.Interpreter_intStack[var7 + HealthBarUpdate.Interpreter_intStackSize];
var9[var7 / 2] = (byte) Interpreter.Interpreter_intStack[var7 + HealthBarUpdate.Interpreter_intStackSize + 1];
}
}
}
int var7 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize] - 1;
if (var7 < 0 || var7 > 9) {
throw new RuntimeException();
}
FloorOverlayDefinition.Widget_setKey(var4, var7, var8, var9);
return 1;
}
if (var0 == ScriptOpcodes.CC_SETOPTKEY) {
HealthBarUpdate.Interpreter_intStackSize -= 2;
byte var5 = 10;
byte[] var9 = new byte[]{(byte) Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize]};
byte[] var10 = new byte[]{(byte) Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1]};
FloorOverlayDefinition.Widget_setKey(var4, var5, var9, var10);
return 1;
}
if (var0 == ScriptOpcodes.CC_SETOPKEYRATE) {
HealthBarUpdate.Interpreter_intStackSize -= 3;
int var11 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize] - 1;
int var6 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1];
int var7 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 2];
if (var11 < 0 || var11 > 9) {
throw new RuntimeException();
}
class14.Widget_setKeyRate(var4, var11, var6, var7);
return 1;
}
if (var0 == ScriptOpcodes.CC_SETOPTKEYRATE) {
byte var5 = 10;
int var6 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
int var7 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
class14.Widget_setKeyRate(var4, var5, var6, var7);
return 1;
}
if (var0 == ScriptOpcodes.CC_SETOPKEYIGNOREHELD) {
--HealthBarUpdate.Interpreter_intStackSize;
int var11 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize] - 1;
if (var11 < 0 || var11 > 9) {
throw new RuntimeException();
}
WorldMapCacheName.Widget_setKeyIgnoreHeld(var4, var11);
return 1;
}
if (var0 == ScriptOpcodes.CC_SETOPTKEYIGNOREHELD) {
byte var5 = 10;
WorldMapCacheName.Widget_setKeyIgnoreHeld(var4, var5);
return 1;
}
return 2;
}
}