chore: rev 194
This commit is contained in:
@@ -1,128 +1,136 @@
|
||||
import java.util.Comparator;
|
||||
import net.runelite.mapping.Export;
|
||||
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;
|
||||
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("u")
|
||||
@Implements("GrandExchangeOfferUnitPriceComparator")
|
||||
final class GrandExchangeOfferUnitPriceComparator implements Comparator {
|
||||
@ObfuscatedName("bx")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmu;"
|
||||
)
|
||||
@Export("loginType")
|
||||
static LoginType loginType;
|
||||
@ObfuscatedName("do")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lil;"
|
||||
)
|
||||
@Export("archive9")
|
||||
static Archive archive9;
|
||||
@ObfuscatedName("dz")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lil;"
|
||||
)
|
||||
@Export("archive13")
|
||||
static Archive archive13;
|
||||
@ObfuscatedName("ha")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "[Llm;"
|
||||
)
|
||||
@Export("mapMarkerSprites")
|
||||
static SpritePixels[] mapMarkerSpritePixels;
|
||||
@ObfuscatedName("rq")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1594877824
|
||||
)
|
||||
static int field102;
|
||||
@ObfuscatedName("sh")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmn;"
|
||||
)
|
||||
@Export("platformInfo")
|
||||
static PlatformInfo platformInfo;
|
||||
@ObfuscatedName("go")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -927718985
|
||||
)
|
||||
static int field103;
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(La;La;I)I",
|
||||
garbageValue = "1020581698"
|
||||
)
|
||||
@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); // L: 43
|
||||
}
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lx;Lx;B)I",
|
||||
garbageValue = "57"
|
||||
)
|
||||
@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);
|
||||
}
|
||||
|
||||
public int compare(Object var1, Object var2) {
|
||||
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2); // L: 47
|
||||
}
|
||||
public boolean equals(Object var1) {
|
||||
return super.equals(var1);
|
||||
}
|
||||
|
||||
public boolean equals(Object var1) {
|
||||
return super.equals(var1); // L: 51
|
||||
}
|
||||
public int compare(Object var1, Object var2) {
|
||||
return this.compare_bridged((GrandExchangeEvent)var1, (GrandExchangeEvent)var2);
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lhe;II)V",
|
||||
garbageValue = "1825626795"
|
||||
)
|
||||
@Export("Widget_setKeyIgnoreHeld")
|
||||
static final void Widget_setKeyIgnoreHeld(Widget var0, int var1) {
|
||||
if (var0.field2649 == null) { // L: 936
|
||||
throw new RuntimeException(); // L: 937
|
||||
} else {
|
||||
if (var0.field2684 == null) { // L: 939
|
||||
var0.field2684 = new int[var0.field2649.length]; // L: 940
|
||||
}
|
||||
@ObfuscatedName("if")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lbk;IIII)V",
|
||||
garbageValue = "1420045659"
|
||||
)
|
||||
@Export("addPlayerToMenu")
|
||||
static final void addPlayerToMenu(Player var0, int var1, int var2, int var3) {
|
||||
if (UserComparator9.localPlayer != var0) {
|
||||
if (Client.menuOptionsCount < 400) {
|
||||
String var4;
|
||||
int var7;
|
||||
if (var0.skillLevel == 0) {
|
||||
String var5 = var0.actions[0] + var0.username + var0.actions[1];
|
||||
var7 = var0.combatLevel;
|
||||
int var8 = UserComparator9.localPlayer.combatLevel;
|
||||
int var9 = var8 - var7;
|
||||
String var6;
|
||||
if (var9 < -9) {
|
||||
var6 = FileSystem.colorStartTag(16711680);
|
||||
} else if (var9 < -6) {
|
||||
var6 = FileSystem.colorStartTag(16723968);
|
||||
} else if (var9 < -3) {
|
||||
var6 = FileSystem.colorStartTag(16740352);
|
||||
} else if (var9 < 0) {
|
||||
var6 = FileSystem.colorStartTag(16756736);
|
||||
} else if (var9 > 9) {
|
||||
var6 = FileSystem.colorStartTag(65280);
|
||||
} else if (var9 > 6) {
|
||||
var6 = FileSystem.colorStartTag(4259584);
|
||||
} else if (var9 > 3) {
|
||||
var6 = FileSystem.colorStartTag(8453888);
|
||||
} else if (var9 > 0) {
|
||||
var6 = FileSystem.colorStartTag(12648192);
|
||||
} else {
|
||||
var6 = FileSystem.colorStartTag(16776960);
|
||||
}
|
||||
|
||||
var0.field2684[var1] = Integer.MAX_VALUE; // L: 942
|
||||
}
|
||||
} // L: 943
|
||||
var4 = var5 + var6 + " " + " (" + "level-" + var0.combatLevel + ")" + var0.actions[2];
|
||||
} else {
|
||||
var4 = var0.actions[0] + var0.username + var0.actions[1] + " " + " (" + "skill-" + var0.skillLevel + ")" + var0.actions[2];
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILcs;ZI)I",
|
||||
garbageValue = "-613147121"
|
||||
)
|
||||
static int method200(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = var2 ? PlayerComposition.scriptDotWidget : VarcInt.scriptActiveWidget; // 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; // L: 1102
|
||||
}
|
||||
}
|
||||
int var10;
|
||||
if (Client.isItemSelected == 1) {
|
||||
WorldMapManager.insertMenuItemNoShift("Use", Client.selectedItemName + " " + "->" + " " + FileSystem.colorStartTag(16777215) + var4, 14, var1, var2, var3);
|
||||
} else if (Client.isSpellSelected) {
|
||||
if ((GrandExchangeOfferNameComparator.selectedSpellFlags & 8) == 8) {
|
||||
WorldMapManager.insertMenuItemNoShift(Client.selectedSpellActionName, Client.selectedSpellName + " " + "->" + " " + FileSystem.colorStartTag(16777215) + var4, 15, var1, var2, var3);
|
||||
}
|
||||
} 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) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (Client.playerAttackOption == AttackOption.AttackOption_alwaysRightClick || Client.playerAttackOption == AttackOption.AttackOption_dependsOnCombatLevels && var0.combatLevel > UserComparator9.localPlayer.combatLevel) {
|
||||
var11 = 2000;
|
||||
}
|
||||
|
||||
if (UserComparator9.localPlayer.team != 0 && var0.team != 0) {
|
||||
if (var0.team == UserComparator9.localPlayer.team) {
|
||||
var11 = 2000;
|
||||
} else {
|
||||
var11 = 0;
|
||||
}
|
||||
}
|
||||
} else if (Client.playerOptionsPriorities[var10]) {
|
||||
var11 = 2000;
|
||||
}
|
||||
|
||||
boolean var12 = false;
|
||||
var7 = Client.playerMenuOpcodes[var10] + var11;
|
||||
WorldMapManager.insertMenuItemNoShift(Client.playerMenuActions[var10], FileSystem.colorStartTag(16777215) + var4, var7, var1, var2, var3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(var10 = 0; var10 < Client.menuOptionsCount; ++var10) {
|
||||
if (Client.menuOpcodes[var10] == 23) {
|
||||
Client.menuTargets[var10] = FileSystem.colorStartTag(16777215) + var4;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user