project: rev 205

This commit is contained in:
Justin
2022-05-11 21:14:59 +10:00
parent a048a17fce
commit 50446597eb
477 changed files with 59164 additions and 58718 deletions

View File

@@ -3,24 +3,20 @@ 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("ja")
@ObfuscatedName("jz")
@Implements("Calendar")
public class Calendar {
@ObfuscatedName("v")
@ObfuscatedName("o")
@Export("MONTH_NAMES_ENGLISH_GERMAN")
public static final String[][] MONTH_NAMES_ENGLISH_GERMAN;
@ObfuscatedName("c")
@ObfuscatedName("q")
@Export("DAYS_OF_THE_WEEK")
public static final String[] DAYS_OF_THE_WEEK;
@ObfuscatedName("i")
@ObfuscatedName("l")
@Export("Calendar_calendar")
public static java.util.Calendar Calendar_calendar;
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "Lex;"
)
static ClanSettings field3269;
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"}}; // L: 8
@@ -29,110 +25,164 @@ public class Calendar {
Calendar_calendar = java.util.Calendar.getInstance(TimeZone.getTimeZone("GMT")); // L: 23
} // L: 24
@ObfuscatedName("c")
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(IILgt;Lgv;I)Z",
garbageValue = "-692039603"
descriptor = "(II)Lfc;",
garbageValue = "-1123951030"
)
public static final boolean method5507(int var0, int var1, RouteStrategy var2, CollisionMap var3) {
int var4 = var0; // L: 111
int var5 = var1; // L: 112
byte var6 = 64; // L: 113
byte var7 = 64; // L: 114
int var8 = var0 - var6; // L: 115
int var9 = var1 - var7; // L: 116
class194.directions[var6][var7] = 99; // L: 117
class194.distances[var6][var7] = 0; // L: 118
byte var10 = 0; // L: 119
int var11 = 0; // L: 120
class194.bufferX[var10] = var0; // L: 121
byte var10001 = var10;
int var18 = var10 + 1;
class194.bufferY[var10001] = var1; // L: 122
int[][] var12 = var3.flags; // L: 123
while (var18 != var11) { // L: 124
var4 = class194.bufferX[var11]; // L: 125
var5 = class194.bufferY[var11]; // L: 126
var11 = var11 + 1 & 4095; // L: 127
int var16 = var4 - var8; // L: 128
int var17 = var5 - var9; // L: 129
int var13 = var4 - var3.xInset; // L: 130
int var14 = var5 - var3.yInset; // L: 131
if (var2.hasArrived(2, var4, var5, var3)) { // L: 132
HealthBarUpdate.field1189 = var4; // L: 133
StructComposition.field1988 = var5; // L: 134
return true; // L: 135
@Export("getEnum")
public static EnumComposition getEnum(int var0) {
EnumComposition var1 = (EnumComposition)EnumComposition.EnumDefinition_cached.get((long)var0); // L: 25
if (var1 != null) { // L: 26
return var1;
} else {
byte[] var2 = EnumComposition.EnumDefinition_archive.takeFile(8, var0); // L: 27
var1 = new EnumComposition(); // L: 28
if (var2 != null) { // L: 29
var1.decode(new Buffer(var2));
}
int var15 = class194.distances[var16][var17] + 1; // L: 137
if (var16 > 0 && class194.directions[var16 - 1][var17] == 0 && (var12[var13 - 1][var14] & 19136782) == 0 && (var12[var13 - 1][var14 + 1] & 19136824) == 0) { // L: 138 139 140 141
class194.bufferX[var18] = var4 - 1; // L: 142
class194.bufferY[var18] = var5; // L: 143
var18 = var18 + 1 & 4095; // L: 144
class194.directions[var16 - 1][var17] = 2; // L: 145
class194.distances[var16 - 1][var17] = var15; // L: 146
}
EnumComposition.EnumDefinition_cached.put(var1, (long)var0); // L: 30
return var1; // L: 31
}
}
if (var16 < 126 && class194.directions[var16 + 1][var17] == 0 && (var12[var13 + 2][var14] & 19136899) == 0 && (var12[var13 + 2][var14 + 1] & 19136992) == 0) { // L: 148 149 150 151
class194.bufferX[var18] = var4 + 1; // L: 152
class194.bufferY[var18] = var5; // L: 153
var18 = var18 + 1 & 4095; // L: 154
class194.directions[var16 + 1][var17] = 8; // L: 155
class194.distances[var16 + 1][var17] = var15; // L: 156
}
if (var17 > 0 && class194.directions[var16][var17 - 1] == 0 && (var12[var13][var14 - 1] & 19136782) == 0 && (var12[var13 + 1][var14 - 1] & 19136899) == 0) { // L: 158 159 160 161
class194.bufferX[var18] = var4; // L: 162
class194.bufferY[var18] = var5 - 1; // L: 163
var18 = var18 + 1 & 4095; // L: 164
class194.directions[var16][var17 - 1] = 1; // L: 165
class194.distances[var16][var17 - 1] = var15; // L: 166
}
if (var17 < 126 && class194.directions[var16][var17 + 1] == 0 && (var12[var13][var14 + 2] & 19136824) == 0 && (var12[var13 + 1][var14 + 2] & 19136992) == 0) { // L: 168 169 170 171
class194.bufferX[var18] = var4; // L: 172
class194.bufferY[var18] = var5 + 1; // L: 173
var18 = var18 + 1 & 4095; // L: 174
class194.directions[var16][var17 + 1] = 4; // L: 175
class194.distances[var16][var17 + 1] = var15; // L: 176
}
if (var16 > 0 && var17 > 0 && class194.directions[var16 - 1][var17 - 1] == 0 && (var12[var13 - 1][var14] & 19136830) == 0 && (var12[var13 - 1][var14 - 1] & 19136782) == 0 && (var12[var13][var14 - 1] & 19136911) == 0) { // L: 178 179 180 181 182
class194.bufferX[var18] = var4 - 1; // L: 183
class194.bufferY[var18] = var5 - 1; // L: 184
var18 = var18 + 1 & 4095; // L: 185
class194.directions[var16 - 1][var17 - 1] = 3; // L: 186
class194.distances[var16 - 1][var17 - 1] = var15; // L: 187
}
if (var16 < 126 && var17 > 0 && class194.directions[var16 + 1][var17 - 1] == 0 && (var12[var13 + 1][var14 - 1] & 19136911) == 0 && (var12[var13 + 2][var14 - 1] & 19136899) == 0 && (var12[var13 + 2][var14] & 19136995) == 0) { // L: 189 190 191 192 193
class194.bufferX[var18] = var4 + 1; // L: 194
class194.bufferY[var18] = var5 - 1; // L: 195
var18 = var18 + 1 & 4095; // L: 196
class194.directions[var16 + 1][var17 - 1] = 9; // L: 197
class194.distances[var16 + 1][var17 - 1] = var15; // L: 198
}
if (var16 > 0 && var17 < 126 && class194.directions[var16 - 1][var17 + 1] == 0 && (var12[var13 - 1][var14 + 1] & 19136830) == 0 && (var12[var13 - 1][var14 + 2] & 19136824) == 0 && (var12[var13][var14 + 2] & 19137016) == 0) { // L: 200 201 202 203 204
class194.bufferX[var18] = var4 - 1; // L: 205
class194.bufferY[var18] = var5 + 1; // L: 206
var18 = var18 + 1 & 4095; // L: 207
class194.directions[var16 - 1][var17 + 1] = 6; // L: 208
class194.distances[var16 - 1][var17 + 1] = var15; // L: 209
}
if (var16 < 126 && var17 < 126 && class194.directions[var16 + 1][var17 + 1] == 0 && (var12[var13 + 1][var14 + 2] & 19137016) == 0 && (var12[var13 + 2][var14 + 2] & 19136992) == 0 && (var12[var13 + 2][var14 + 1] & 19136995) == 0) { // L: 211 212 213 214 215
class194.bufferX[var18] = var4 + 1; // L: 216
class194.bufferY[var18] = var5 + 1; // L: 217
var18 = var18 + 1 & 4095; // L: 218
class194.directions[var16 + 1][var17 + 1] = 12; // L: 219
class194.distances[var16 + 1][var17 + 1] = var15; // L: 220
}
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "(ILbb;ZB)I",
garbageValue = "73"
)
static int method5349(int var0, Script var1, boolean var2) {
boolean var3 = true; // L: 858
Widget var4;
if (var0 >= 2000) { // L: 860
var0 -= 1000; // L: 861
var4 = class92.getWidget(Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize]); // L: 862
var3 = false; // L: 863
} else {
var4 = var2 ? Interpreter.scriptDotWidget : KeyHandler.scriptActiveWidget; // L: 865
}
HealthBarUpdate.field1189 = var4; // L: 223
StructComposition.field1988 = var5; // L: 224
return false; // L: 225
int var11;
if (var0 == ScriptOpcodes.CC_SETOP) { // L: 866
var11 = Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize] - 1; // L: 867
if (var11 >= 0 && var11 <= 9) { // L: 868
var4.setAction(var11, Interpreter.Interpreter_stringStack[--class9.Interpreter_stringStackSize]); // L: 872
return 1; // L: 873
} else {
--class9.Interpreter_stringStackSize; // L: 869
return 1; // L: 870
}
} else {
int var6;
if (var0 == ScriptOpcodes.CC_SETDRAGGABLE) { // L: 875
class12.Interpreter_intStackSize -= 2; // L: 876
var11 = Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize]; // L: 877
var6 = Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize + 1]; // L: 878
var4.parent = ApproximateRouteStrategy.getWidgetChild(var11, var6); // L: 879
return 1; // L: 880
} else if (var0 == ScriptOpcodes.CC_SETDRAGGABLEBEHAVIOR) { // L: 882
var4.isScrollBar = Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize] == 1; // L: 883
return 1; // L: 884
} else if (var0 == ScriptOpcodes.CC_SETDRAGDEADZONE) { // L: 886
var4.dragZoneSize = Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize]; // L: 887
return 1; // L: 888
} else if (var0 == ScriptOpcodes.CC_SETDRAGDEADTIME) { // L: 890
var4.dragThreshold = Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize]; // L: 891
return 1; // L: 892
} else if (var0 == ScriptOpcodes.CC_SETOPBASE) { // L: 894
var4.dataText = Interpreter.Interpreter_stringStack[--class9.Interpreter_stringStackSize]; // L: 895
return 1; // L: 896
} else if (var0 == ScriptOpcodes.CC_SETTARGETVERB) { // L: 898
var4.spellActionName = Interpreter.Interpreter_stringStack[--class9.Interpreter_stringStackSize]; // L: 899
return 1; // L: 900
} else if (var0 == ScriptOpcodes.CC_CLEAROPS) { // L: 902
var4.actions = null; // L: 903
return 1; // L: 904
} else if (var0 == 1308) { // L: 906
var4.prioritizeMenuEntry = Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize] == 1; // L: 907
return 1; // L: 908
} else if (var0 == 1309) { // L: 910
--class12.Interpreter_intStackSize; // L: 911
return 1; // L: 912
} else {
int var7;
byte[] var8;
if (var0 != ScriptOpcodes.CC_SETOPKEY) { // L: 914
byte var5;
if (var0 == ScriptOpcodes.CC_SETOPTKEY) { // L: 944
class12.Interpreter_intStackSize -= 2; // L: 945
var5 = 10; // L: 946
var8 = new byte[]{(byte)Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize]}; // L: 947
byte[] var9 = new byte[]{(byte)Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize + 1]}; // L: 948
class363.Widget_setKey(var4, var5, var8, var9); // L: 949
return 1; // L: 950
} else if (var0 == ScriptOpcodes.CC_SETOPKEYRATE) { // L: 952
class12.Interpreter_intStackSize -= 3; // L: 953
var11 = Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize] - 1; // L: 954
var6 = Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize + 1]; // L: 955
var7 = Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize + 2]; // L: 956
if (var11 >= 0 && var11 <= 9) { // L: 957
class152.Widget_setKeyRate(var4, var11, var6, var7); // L: 960
return 1; // L: 961
} else {
throw new RuntimeException(); // L: 958
}
} else if (var0 == ScriptOpcodes.CC_SETOPTKEYRATE) { // L: 963
var5 = 10; // L: 964
var6 = Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize]; // L: 965
var7 = Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize]; // L: 966
class152.Widget_setKeyRate(var4, var5, var6, var7); // L: 967
return 1; // L: 968
} else if (var0 == ScriptOpcodes.CC_SETOPKEYIGNOREHELD) { // L: 970
--class12.Interpreter_intStackSize; // L: 971
var11 = Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize] - 1; // L: 972
if (var11 >= 0 && var11 <= 9) { // L: 973
Script.Widget_setKeyIgnoreHeld(var4, var11); // L: 976
return 1; // L: 977
} else {
throw new RuntimeException(); // L: 974
}
} else if (var0 == ScriptOpcodes.CC_SETOPTKEYIGNOREHELD) { // L: 979
var5 = 10; // L: 980
Script.Widget_setKeyIgnoreHeld(var4, var5); // L: 981
return 1; // L: 982
} else {
return 2; // L: 984
}
} else {
byte[] var10 = null; // L: 915
var8 = null; // L: 916
if (var3) { // L: 917
class12.Interpreter_intStackSize -= 10; // L: 918
for (var7 = 0; var7 < 10 && Interpreter.Interpreter_intStack[var7 + class12.Interpreter_intStackSize] >= 0; var7 += 2) { // L: 920 921
}
if (var7 > 0) { // L: 923
var10 = new byte[var7 / 2]; // L: 924
var8 = new byte[var7 / 2]; // L: 925
for (var7 -= 2; var7 >= 0; var7 -= 2) { // L: 926
var10[var7 / 2] = (byte)Interpreter.Interpreter_intStack[var7 + class12.Interpreter_intStackSize]; // L: 927
var8[var7 / 2] = (byte)Interpreter.Interpreter_intStack[var7 + class12.Interpreter_intStackSize + 1]; // L: 928
}
}
} else {
class12.Interpreter_intStackSize -= 2; // L: 933
var10 = new byte[]{(byte)Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize]}; // L: 934
var8 = new byte[]{(byte)Interpreter.Interpreter_intStack[class12.Interpreter_intStackSize + 1]}; // L: 935
}
var7 = Interpreter.Interpreter_intStack[--class12.Interpreter_intStackSize] - 1; // L: 937
if (var7 >= 0 && var7 <= 9) { // L: 938
class363.Widget_setKey(var4, var7, var10, var8); // L: 941
return 1; // L: 942
} else {
throw new RuntimeException(); // L: 939
}
}
}
}
}
}