chore: rev 193
This commit is contained in:
@@ -3,69 +3,216 @@ 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("ik")
|
||||
@ObfuscatedName("ic")
|
||||
@Implements("StudioGame")
|
||||
public enum StudioGame implements Enumerated {
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lik;"
|
||||
descriptor = "Lic;"
|
||||
)
|
||||
@Export("runescape")
|
||||
runescape("runescape", "RuneScape", 0),
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lik;"
|
||||
descriptor = "Lic;"
|
||||
)
|
||||
@Export("stellardawn")
|
||||
stellardawn("stellardawn", "Stellar Dawn", 1),
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lik;"
|
||||
descriptor = "Lic;"
|
||||
)
|
||||
@Export("game3")
|
||||
game3("game3", "Game 3", 2),
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lik;"
|
||||
descriptor = "Lic;"
|
||||
)
|
||||
@Export("game4")
|
||||
game4("game4", "Game 4", 3),
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lik;"
|
||||
descriptor = "Lic;"
|
||||
)
|
||||
@Export("game5")
|
||||
game5("game5", "Game 5", 4),
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lik;"
|
||||
descriptor = "Lic;"
|
||||
)
|
||||
@Export("oldscape")
|
||||
oldscape("oldscape", "RuneScape 2007", 5);
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("cr")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1725294085
|
||||
)
|
||||
public static int field3135;
|
||||
@ObfuscatedName("n")
|
||||
@Export("name")
|
||||
public final String name;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1622621893
|
||||
intValue = -1088922919
|
||||
)
|
||||
@Export("id")
|
||||
final int id;
|
||||
|
||||
StudioGame(String var3, String var4, int var5) {
|
||||
this.name = var3; // L: 21
|
||||
this.id = var5; // L: 22
|
||||
} // L: 23
|
||||
this.name = var3;
|
||||
this.id = var5;
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)I",
|
||||
garbageValue = "23"
|
||||
descriptor = "(I)I",
|
||||
garbageValue = "-275768542"
|
||||
)
|
||||
@Export("rsOrdinal")
|
||||
public int rsOrdinal() {
|
||||
return this.id; // L: 26
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)V",
|
||||
garbageValue = "1020902177"
|
||||
)
|
||||
public static void method4185() {
|
||||
ParamDefinition.ParamDefinition_cached.clear();
|
||||
}
|
||||
|
||||
@ObfuscatedName("ak")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILcs;ZI)I",
|
||||
garbageValue = "211481230"
|
||||
)
|
||||
static int method4186(int var0, Script var1, boolean var2) {
|
||||
int var6;
|
||||
if (var0 == ScriptOpcodes.OC_NAME) {
|
||||
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = SecureRandomCallable.ItemDefinition_get(var6).name;
|
||||
return 1;
|
||||
} else {
|
||||
int var4;
|
||||
ItemDefinition var5;
|
||||
if (var0 == ScriptOpcodes.OC_OP) {
|
||||
VarcInt.Interpreter_intStackSize -= 2;
|
||||
var6 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
|
||||
var5 = SecureRandomCallable.ItemDefinition_get(var6);
|
||||
if (var4 >= 1 && var4 <= 5 && var5.groundActions[var4 - 1] != null) {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var5.groundActions[var4 - 1];
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.OC_IOP) {
|
||||
VarcInt.Interpreter_intStackSize -= 2;
|
||||
var6 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
|
||||
var5 = SecureRandomCallable.ItemDefinition_get(var6);
|
||||
if (var4 >= 1 && var4 <= 5 && var5.inventoryActions[var4 - 1] != null) {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var5.inventoryActions[var4 - 1];
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.OC_COST) {
|
||||
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = SecureRandomCallable.ItemDefinition_get(var6).price;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.OC_STACKABLE) {
|
||||
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = SecureRandomCallable.ItemDefinition_get(var6).isStackable == 1 ? 1 : 0;
|
||||
return 1;
|
||||
} else {
|
||||
ItemDefinition var7;
|
||||
if (var0 == ScriptOpcodes.OC_CERT) {
|
||||
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
var7 = SecureRandomCallable.ItemDefinition_get(var6);
|
||||
if (var7.noteTemplate == -1 && var7.note >= 0) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.note;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var6;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.OC_UNCERT) {
|
||||
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
var7 = SecureRandomCallable.ItemDefinition_get(var6);
|
||||
if (var7.noteTemplate >= 0 && var7.note >= 0) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.note;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var6;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.OC_MEMBERS) {
|
||||
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = SecureRandomCallable.ItemDefinition_get(var6).isMembersOnly ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.OC_PLACEHOLDER) {
|
||||
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
var7 = SecureRandomCallable.ItemDefinition_get(var6);
|
||||
if (var7.placeholderTemplate == -1 && var7.placeholder >= 0) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.placeholder;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var6;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.OC_UNPLACEHOLDER) {
|
||||
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
var7 = SecureRandomCallable.ItemDefinition_get(var6);
|
||||
if (var7.placeholderTemplate >= 0 && var7.placeholder >= 0) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var7.placeholder;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var6;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.OC_FIND) {
|
||||
String var3 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
|
||||
WorldMapSection1.findItemDefinitions(var3, var4 == 1);
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = PacketBufferNode.foundItemIdCount;
|
||||
return 1;
|
||||
} else if (var0 != ScriptOpcodes.OC_FINDNEXT) {
|
||||
if (var0 == ScriptOpcodes.OC_FINDRESET) {
|
||||
NetCache.foundItemIndex = 0;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
if (UrlRequest.foundItemIds != null && NetCache.foundItemIndex < PacketBufferNode.foundItemIdCount) {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = UrlRequest.foundItemIds[++NetCache.foundItemIndex - 1] & '\uffff';
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = -1;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("lw")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lhe;B)Ljava/lang/String;",
|
||||
garbageValue = "-113"
|
||||
)
|
||||
@Export("Widget_getSpellActionName")
|
||||
static String Widget_getSpellActionName(Widget var0) {
|
||||
if (ServerPacket.Widget_unpackTargetMask(FaceNormal.getWidgetFlags(var0)) == 0) {
|
||||
return null;
|
||||
} else {
|
||||
return var0.spellActionName != null && var0.spellActionName.trim().length() != 0 ? var0.spellActionName : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user