project: Revvvvvvvvvvvvv

This commit is contained in:
Owain van Brakel
2022-02-09 13:21:03 +01:00
parent e91fc1a16a
commit e505012bff
474 changed files with 69930 additions and 69430 deletions

View File

@@ -4,210 +4,231 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("bj")
@ObfuscatedName("bc")
@Implements("DynamicObject")
public class DynamicObject extends Renderable {
@ObfuscatedName("o")
@Export("musicTrackBoolean")
public static boolean musicTrackBoolean;
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 1712801751
intValue = 1992615399
)
@Export("id")
int id;
@ObfuscatedName("b")
@ObfuscatedName("l")
@ObfuscatedGetter(
intValue = 2015197805
intValue = -1317067285
)
@Export("type")
int type;
@ObfuscatedName("p")
@ObfuscatedName("s")
@ObfuscatedGetter(
intValue = 1555173169
intValue = -206062303
)
@Export("orientation")
int orientation;
@ObfuscatedName("m")
@ObfuscatedName("e")
@ObfuscatedGetter(
intValue = -393716715
intValue = 957350903
)
@Export("plane")
int plane;
@ObfuscatedName("t")
@ObfuscatedName("r")
@ObfuscatedGetter(
intValue = -332192069
intValue = -713175869
)
@Export("x")
int x;
@ObfuscatedName("s")
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = 1639785979
intValue = -210754635
)
@Export("y")
int y;
@ObfuscatedName("j")
@ObfuscatedName("i")
@ObfuscatedSignature(
descriptor = "Lgn;"
descriptor = "Lgm;"
)
@Export("sequenceDefinition")
SequenceDefinition sequenceDefinition;
@ObfuscatedName("w")
@ObfuscatedGetter(
intValue = -724114563
intValue = -1627064681
)
@Export("frame")
int frame;
@ObfuscatedName("n")
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = 343705565
intValue = -1083644335
)
@Export("cycleStart")
int cycleStart;
@ObfuscatedSignature(
descriptor = "(IIIIIIIZLgt;)V"
descriptor = "(IIIIIIIZLgp;)V"
)
DynamicObject(int var1, int var2, int var3, int var4, int var5, int var6, int var7, boolean var8, Renderable var9) {
this.id = var1;
this.type = var2;
this.orientation = var3;
this.plane = var4;
this.x = var5;
this.y = var6;
if (var7 != -1) {
this.sequenceDefinition = UserComparator5.SequenceDefinition_get(var7);
this.frame = 0;
this.cycleStart = Client.cycle - 1;
if (this.sequenceDefinition.field2078 == 0 && var9 != null && var9 instanceof DynamicObject) {
DynamicObject var10 = (DynamicObject)var9;
if (this.sequenceDefinition == var10.sequenceDefinition) {
this.id = var1; // L: 20
this.type = var2; // L: 21
this.orientation = var3; // L: 22
this.plane = var4; // L: 23
this.x = var5; // L: 24
this.y = var6; // L: 25
if (var7 != -1) { // L: 26
this.sequenceDefinition = class78.SequenceDefinition_get(var7); // L: 27
this.frame = 0; // L: 28
this.cycleStart = Client.cycle - 1; // L: 29
if (this.sequenceDefinition.field2109 == 0 && var9 != null && var9 instanceof DynamicObject) { // L: 30
DynamicObject var10 = (DynamicObject)var9; // L: 31
if (this.sequenceDefinition == var10.sequenceDefinition) { // L: 32
this.frame = var10.frame;
this.cycleStart = var10.cycleStart;
return;
return; // L: 35
}
}
if (var8 && this.sequenceDefinition.frameCount != -1) {
if (!this.sequenceDefinition.method3690()) {
this.frame = (int)(Math.random() * (double)this.sequenceDefinition.frameIds.length);
this.cycleStart -= (int)(Math.random() * (double)this.sequenceDefinition.frameLengths[this.frame]);
if (var8 && this.sequenceDefinition.frameCount != -1) { // L: 38
if (!this.sequenceDefinition.method3600()) { // L: 39
this.frame = (int)(Math.random() * (double)this.sequenceDefinition.frameIds.length); // L: 40
this.cycleStart -= (int)(Math.random() * (double)this.sequenceDefinition.frameLengths[this.frame]); // L: 41
} else {
this.frame = (int)(Math.random() * (double)this.sequenceDefinition.method3647());
this.frame = (int)(Math.random() * (double)this.sequenceDefinition.method3637()); // L: 44
}
}
}
}
} // L: 48
@ObfuscatedName("b")
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "(I)Lgo;",
garbageValue = "202861607"
descriptor = "(B)Lgf;",
garbageValue = "39"
)
@Export("getModel")
protected final Model getModel() {
int var2;
if (this.sequenceDefinition != null) {
int var1 = Client.cycle - this.cycleStart;
if (var1 > 100 && this.sequenceDefinition.frameCount > 0) {
if (this.sequenceDefinition != null) { // L: 51
int var1 = Client.cycle - this.cycleStart; // L: 52
if (var1 > 100 && this.sequenceDefinition.frameCount > 0) { // L: 53
var1 = 100;
}
if (this.sequenceDefinition.method3690()) {
var2 = this.sequenceDefinition.method3647();
this.frame += var1;
var1 = 0;
if (this.frame >= var2) {
this.frame = var2 - this.sequenceDefinition.frameCount;
if (this.frame < 0 || this.frame > var2) {
this.sequenceDefinition = null;
if (this.sequenceDefinition.method3600()) { // L: 54
var2 = this.sequenceDefinition.method3637(); // L: 68
this.frame += var1; // L: 69
var1 = 0; // L: 70
if (this.frame >= var2) { // L: 71
this.frame = var2 - this.sequenceDefinition.frameCount; // L: 72
if (this.frame < 0 || this.frame > var2) { // L: 73
this.sequenceDefinition = null; // L: 74
}
}
} else {
label79: {
label82: {
do {
do {
if (var1 <= this.sequenceDefinition.frameLengths[this.frame]) {
break label79;
if (var1 <= this.sequenceDefinition.frameLengths[this.frame]) { // L: 55
break label82;
}
var1 -= this.sequenceDefinition.frameLengths[this.frame];
++this.frame;
} while(this.frame < this.sequenceDefinition.frameIds.length);
var1 -= this.sequenceDefinition.frameLengths[this.frame]; // L: 56
++this.frame; // L: 57
} while(this.frame < this.sequenceDefinition.frameIds.length); // L: 58
this.frame -= this.sequenceDefinition.frameCount;
} while(this.frame >= 0 && this.frame < this.sequenceDefinition.frameIds.length);
this.frame -= this.sequenceDefinition.frameCount; // L: 59
} while(this.frame >= 0 && this.frame < this.sequenceDefinition.frameIds.length); // L: 60
this.sequenceDefinition = null;
this.sequenceDefinition = null; // L: 61
}
}
this.cycleStart = Client.cycle - var1;
this.cycleStart = Client.cycle - var1; // L: 78
}
ObjectComposition var12 = class148.getObjectDefinition(this.id);
if (var12.transforms != null) {
ObjectComposition var12 = ParamComposition.getObjectDefinition(this.id); // L: 80
if (var12.transforms != null) { // L: 81
var12 = var12.transform();
}
if (var12 == null) {
if (var12 == null) { // L: 82
return null;
} else {
int var3;
if (this.orientation != 1 && this.orientation != 3) {
var2 = var12.sizeX;
var3 = var12.sizeY;
if (this.orientation != 1 && this.orientation != 3) { // L: 85
var2 = var12.sizeX; // L: 90
var3 = var12.sizeY; // L: 91
} else {
var2 = var12.sizeY;
var3 = var12.sizeX;
var2 = var12.sizeY; // L: 86
var3 = var12.sizeX; // L: 87
}
int var4 = (var2 >> 1) + this.x;
int var5 = (var2 + 1 >> 1) + this.x;
int var6 = (var3 >> 1) + this.y;
int var7 = (var3 + 1 >> 1) + this.y;
int[][] var8 = Tiles.Tiles_heights[this.plane];
int var9 = var8[var4][var7] + var8[var4][var6] + var8[var5][var6] + var8[var5][var7] >> 2;
int var10 = (this.x << 7) + (var2 << 6);
int var11 = (this.y << 7) + (var3 << 6);
return var12.getModelDynamic(this.type, this.orientation, var8, var10, var9, var11, this.sequenceDefinition, this.frame);
int var4 = (var2 >> 1) + this.x; // L: 93
int var5 = (var2 + 1 >> 1) + this.x; // L: 94
int var6 = (var3 >> 1) + this.y; // L: 95
int var7 = (var3 + 1 >> 1) + this.y; // L: 96
int[][] var8 = Tiles.Tiles_heights[this.plane]; // L: 97
int var9 = var8[var4][var7] + var8[var4][var6] + var8[var5][var6] + var8[var5][var7] >> 2; // L: 98
int var10 = (this.x << 7) + (var2 << 6); // L: 99
int var11 = (this.y << 7) + (var3 << 6); // L: 100
return var12.getModelDynamic(this.type, this.orientation, var8, var10, var9, var11, this.sequenceDefinition, this.frame); // L: 101
}
}
@ObfuscatedName("j")
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "(II)I",
garbageValue = "-2047180013"
descriptor = "(Lkq;Lkq;IIB)Llv;",
garbageValue = "15"
)
@Export("iLog")
public static int iLog(int var0) {
int var1 = 0;
if (var0 < 0 || var0 >= 65536) {
var0 >>>= 16;
var1 += 16;
}
public static Font method1996(AbstractArchive var0, AbstractArchive var1, int var2, int var3) {
return !class125.method2744(var0, var2, var3) ? null : Clock.method3125(var1.takeFile(var2, var3)); // L: 33 34
}
if (var0 >= 256) {
var0 >>>= 8;
var1 += 8;
}
@ObfuscatedName("r")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "-911650493"
)
static void method1998() {
if (Login.Login_username == null || Login.Login_username.length() <= 0) { // L: 266
if (class424.clientPreferences.rememberedUsername != null) { // L: 267
Login.Login_username = class424.clientPreferences.rememberedUsername; // L: 268
Client.Login_isUsernameRemembered = true; // L: 269
} else {
Client.Login_isUsernameRemembered = false; // L: 271
}
if (var0 >= 16) {
var0 >>>= 4;
var1 += 4;
}
} // L: 272
if (var0 >= 4) {
var0 >>>= 2;
var1 += 2;
@ObfuscatedName("y")
@ObfuscatedSignature(
descriptor = "(Ljz;II)V",
garbageValue = "-1250618442"
)
@Export("Widget_setKeyIgnoreHeld")
static final void Widget_setKeyIgnoreHeld(Widget var0, int var1) {
if (var0.field3339 == null) { // L: 1004
throw new RuntimeException(); // L: 1005
} else {
if (var0.field3254 == null) { // L: 1007
var0.field3254 = new int[var0.field3339.length]; // L: 1008
}
var0.field3254[var1] = Integer.MAX_VALUE; // L: 1010
}
} // L: 1011
if (var0 >= 1) {
var0 >>>= 1;
++var1;
@ObfuscatedName("y")
@ObfuscatedSignature(
descriptor = "(CI)Z",
garbageValue = "1245279724"
)
@Export("isCharPrintable")
public static boolean isCharPrintable(char var0) {
if (var0 >= ' ' && var0 <= '~') { // L: 189
return true;
} else if (var0 >= 160 && var0 <= 255) { // L: 190
return true;
} else {
return var0 == 8364 || var0 == 338 || var0 == 8212 || var0 == 339 || var0 == 376; // L: 191
}
return var0 + var1;
}
}