chore: rev 193
This commit is contained in:
@@ -1,79 +1,178 @@
|
||||
import java.util.LinkedHashMap;
|
||||
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("az")
|
||||
@ObfuscatedName("ak")
|
||||
@Implements("WorldMapDecoration")
|
||||
public class WorldMapDecoration {
|
||||
@ObfuscatedName("se")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lr;"
|
||||
)
|
||||
@Export("grandExchangeEvents")
|
||||
static GrandExchangeEvents grandExchangeEvents;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Ldz;"
|
||||
)
|
||||
@Export("soundSystem")
|
||||
static SoundSystem soundSystem;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 573803167
|
||||
intValue = 1756359553
|
||||
)
|
||||
@Export("objectDefinitionId")
|
||||
final int objectDefinitionId;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 502095041
|
||||
intValue = 1376256815
|
||||
)
|
||||
@Export("decoration")
|
||||
final int decoration;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -81694959
|
||||
intValue = 112778991
|
||||
)
|
||||
@Export("rotation")
|
||||
final int rotation;
|
||||
|
||||
WorldMapDecoration(int var1, int var2, int var3) {
|
||||
this.objectDefinitionId = var1; // L: 9
|
||||
this.decoration = var2; // L: 10
|
||||
this.rotation = var3; // L: 11
|
||||
} // L: 12
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(IB)V",
|
||||
garbageValue = "7"
|
||||
)
|
||||
static void method428(int var0) {
|
||||
Login.loginIndex = 12; // L: 1560
|
||||
Login.field1216 = var0; // L: 1561
|
||||
} // L: 1562
|
||||
this.objectDefinitionId = var1;
|
||||
this.decoration = var2;
|
||||
this.rotation = var3;
|
||||
}
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILco;ZI)I",
|
||||
garbageValue = "-1847675306"
|
||||
descriptor = "(II)Ljm;",
|
||||
garbageValue = "-671846279"
|
||||
)
|
||||
static int method429(int var0, Script var1, boolean var2) {
|
||||
if (var0 == ScriptOpcodes.SOUND_SYNTH) { // L: 1705
|
||||
MilliClock.Interpreter_intStackSize -= 3; // L: 1706
|
||||
KitDefinition.queueSoundEffect(Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize], Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 1], Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 2]); // L: 1707
|
||||
return 1; // L: 1708
|
||||
} else if (var0 == ScriptOpcodes.SOUND_SONG) { // L: 1710
|
||||
Messages.playSong(Interpreter.Interpreter_intStack[--MilliClock.Interpreter_intStackSize]); // L: 1711
|
||||
return 1; // L: 1712
|
||||
} else if (var0 == ScriptOpcodes.SOUND_JINGLE) { // L: 1714
|
||||
MilliClock.Interpreter_intStackSize -= 2; // L: 1715
|
||||
Projectile.playSoundJingle(Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize], Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 1]); // L: 1716
|
||||
return 1; // L: 1717
|
||||
@Export("getObjectDefinition")
|
||||
public static ObjectDefinition getObjectDefinition(int var0) {
|
||||
ObjectDefinition var1 = (ObjectDefinition)ObjectDefinition.ObjectDefinition_cached.get((long)var0);
|
||||
if (var1 != null) {
|
||||
return var1;
|
||||
} else {
|
||||
return 2; // L: 1719
|
||||
byte[] var2 = ObjectDefinition.ObjectDefinition_archive.takeFile(6, var0);
|
||||
var1 = new ObjectDefinition();
|
||||
var1.id = var0;
|
||||
if (var2 != null) {
|
||||
var1.decode(new Buffer(var2));
|
||||
}
|
||||
|
||||
var1.postDecode();
|
||||
if (var1.isSolid) {
|
||||
var1.interactType = 0;
|
||||
var1.boolean1 = false;
|
||||
}
|
||||
|
||||
ObjectDefinition.ObjectDefinition_cached.put(var1, (long)var0);
|
||||
return var1;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIIIIIII[Lfo;B)V",
|
||||
garbageValue = "-44"
|
||||
)
|
||||
static final void method381(byte[] var0, int var1, int var2, int var3, int var4, int var5, int var6, int var7, CollisionMap[] var8) {
|
||||
int var10;
|
||||
for (int var9 = 0; var9 < 8; ++var9) {
|
||||
for (var10 = 0; var10 < 8; ++var10) {
|
||||
if (var9 + var2 > 0 && var9 + var2 < 103 && var3 + var10 > 0 && var3 + var10 < 103) {
|
||||
int[] var10000 = var8[var1].flags[var9 + var2];
|
||||
var10000[var10 + var3] &= -16777217;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Buffer var21 = new Buffer(var0);
|
||||
|
||||
for (var10 = 0; var10 < 4; ++var10) {
|
||||
for (int var11 = 0; var11 < 64; ++var11) {
|
||||
for (int var12 = 0; var12 < 64; ++var12) {
|
||||
if (var10 == var4 && var11 >= var5 && var11 < var5 + 8 && var12 >= var6 && var12 < var6 + 8) {
|
||||
int var15 = var2 + class51.method815(var11 & 7, var12 & 7, var7);
|
||||
int var18 = var11 & 7;
|
||||
int var19 = var12 & 7;
|
||||
int var20 = var7 & 3;
|
||||
int var17;
|
||||
if (var20 == 0) {
|
||||
var17 = var19;
|
||||
} else if (var20 == 1) {
|
||||
var17 = 7 - var18;
|
||||
} else if (var20 == 2) {
|
||||
var17 = 7 - var19;
|
||||
} else {
|
||||
var17 = var18;
|
||||
}
|
||||
|
||||
Huffman.loadTerrain(var21, var1, var15, var3 + var17, 0, 0, var7);
|
||||
} else {
|
||||
Huffman.loadTerrain(var21, 0, -1, -1, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("fl")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ZI)V",
|
||||
garbageValue = "1662959699"
|
||||
)
|
||||
static final void method380(boolean var0) {
|
||||
if (var0) {
|
||||
Client.field872 = Login.field1200 ? class169.field2019 : class169.field2020;
|
||||
} else {
|
||||
LinkedHashMap var1 = Timer.clientPreferences.parameters;
|
||||
String var3 = Login.Login_username;
|
||||
int var4 = var3.length();
|
||||
int var5 = 0;
|
||||
|
||||
for (int var6 = 0; var6 < var4; ++var6) {
|
||||
var5 = (var5 << 5) - var5 + var3.charAt(var6);
|
||||
}
|
||||
|
||||
Client.field872 = var1.containsKey(var5) ? class169.field2025 : class169.field2021;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("hp")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)V",
|
||||
garbageValue = "-708398742"
|
||||
)
|
||||
static final void method382() {
|
||||
for (PendingSpawn var0 = (PendingSpawn)Client.pendingSpawns.last(); var0 != null; var0 = (PendingSpawn)Client.pendingSpawns.previous()) {
|
||||
if (var0.hitpoints > 0) {
|
||||
--var0.hitpoints;
|
||||
}
|
||||
|
||||
if (var0.hitpoints == 0) {
|
||||
if (var0.objectId < 0 || class234.method4159(var0.objectId, var0.field935)) {
|
||||
WorldMapData_1.addPendingSpawnToScene(var0.plane, var0.type, var0.x, var0.y, var0.objectId, var0.field929, var0.field935);
|
||||
var0.remove();
|
||||
}
|
||||
} else {
|
||||
if (var0.delay > 0) {
|
||||
--var0.delay;
|
||||
}
|
||||
|
||||
if (var0.delay == 0 && var0.x >= 1 && var0.y >= 1 && var0.x <= 102 && var0.y <= 102 && (var0.id < 0 || class234.method4159(var0.id, var0.field933))) {
|
||||
WorldMapData_1.addPendingSpawnToScene(var0.plane, var0.type, var0.x, var0.y, var0.id, var0.orientation, var0.field933);
|
||||
var0.delay = -1;
|
||||
if (var0.id == var0.objectId && var0.objectId == -1) {
|
||||
var0.remove();
|
||||
} else if (var0.id == var0.objectId && var0.field929 == var0.orientation && var0.field935 == var0.field933) {
|
||||
var0.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("ij")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lcq;IIB)V",
|
||||
garbageValue = "-43"
|
||||
)
|
||||
static final void method379(MenuAction var0, int var1, int var2) {
|
||||
RouteStrategy.menuAction(var0.param0, var0.param1, var0.opcode, var0.identifier, var0.action, var0.action, var1, var2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user