mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-13 10:00:19 -07:00
141 lines
5.3 KiB
Java
141 lines
5.3 KiB
Java
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static91 {
|
|
|
|
@OriginalMember(owner = "client!hc", name = "O", descriptor = "[Lclient!pe;")
|
|
public static Class120[] aClass120Array1;
|
|
|
|
@OriginalMember(owner = "client!hc", name = "P", descriptor = "I")
|
|
public static int anInt2428;
|
|
|
|
@OriginalMember(owner = "client!hc", name = "d", descriptor = "(I)I")
|
|
public static int method1874() {
|
|
if ((double) Static138.aFloat14 == 3.0D) {
|
|
return 37;
|
|
} else if ((double) Static138.aFloat14 == 4.0D) {
|
|
return 50;
|
|
} else if ((double) Static138.aFloat14 == 6.0D) {
|
|
return 75;
|
|
} else if ((double) Static138.aFloat14 == 8.0D) {
|
|
return 100;
|
|
} else {
|
|
return 200;
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!hc", name = "a", descriptor = "(IB)Lclient!qc;")
|
|
public static ClientScript method1875(@OriginalArg(0) int arg0) {
|
|
@Pc(12) ClientScript local12 = (ClientScript) Static105.aClass54_9.method1806((long) arg0);
|
|
if (local12 != null) {
|
|
return local12;
|
|
}
|
|
@Pc(22) byte[] local22 = Static16.aClass153_9.method4495(arg0, 0);
|
|
if (local22 == null) {
|
|
return null;
|
|
}
|
|
local12 = new ClientScript();
|
|
@Pc(42) Buffer local42 = new Buffer(local22);
|
|
local42.anInt2792 = local42.aByteArray40.length - 2;
|
|
@Pc(53) int local53 = local42.method2163();
|
|
@Pc(63) int local63 = local42.aByteArray40.length - local53 - 12 - 2;
|
|
local42.anInt2792 = local63;
|
|
@Pc(70) int local70 = local42.method2174();
|
|
local12.anInt4667 = local42.method2163();
|
|
local12.anInt4671 = local42.method2163();
|
|
local12.anInt4665 = local42.method2163();
|
|
local12.anInt4669 = local42.method2163();
|
|
@Pc(98) int local98 = local42.method2229();
|
|
@Pc(107) int local107;
|
|
@Pc(114) int local114;
|
|
if (local98 > 0) {
|
|
local12.aClass133Array1 = new HashTable[local98];
|
|
for (local107 = 0; local107 < local98; local107++) {
|
|
local114 = local42.method2163();
|
|
@Pc(121) HashTable local121 = new HashTable(Static165.method3164(local114));
|
|
local12.aClass133Array1[local107] = local121;
|
|
while (local114-- > 0) {
|
|
@Pc(136) int local136 = local42.method2174();
|
|
@Pc(140) int local140 = local42.method2174();
|
|
local121.method3862(new Class3_Sub21(local140), (long) local136);
|
|
}
|
|
}
|
|
}
|
|
local42.anInt2792 = 0;
|
|
local12.aClass100_880 = local42.method2176();
|
|
local12.anIntArray415 = new int[local70];
|
|
local12.aClass100Array140 = new JagString[local70];
|
|
local107 = 0;
|
|
local12.anIntArray416 = new int[local70];
|
|
while (local63 > local42.anInt2792) {
|
|
local114 = local42.method2163();
|
|
if (local114 == 3) {
|
|
local12.aClass100Array140[local107] = local42.method2202();
|
|
} else if (local114 >= 100 || local114 == 21 || local114 == 38 || local114 == 39) {
|
|
local12.anIntArray416[local107] = local42.method2229();
|
|
} else {
|
|
local12.anIntArray416[local107] = local42.method2174();
|
|
}
|
|
local12.anIntArray415[local107++] = local114;
|
|
}
|
|
Static105.aClass54_9.method1811(local12, (long) arg0);
|
|
return local12;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!hc", name = "a", descriptor = "(Lclient!km;Z)V")
|
|
public static void method1877(@OriginalArg(0) Npc arg0) {
|
|
for (@Pc(13) AreaSound local13 = (AreaSound) Static152.aClass69_87.method2289(); local13 != null; local13 = (AreaSound) Static152.aClass69_87.method2288()) {
|
|
if (arg0 == local13.aClass8_Sub4_Sub2_1) {
|
|
if (local13.aClass3_Sub3_Sub1_1 != null) {
|
|
Static204.aClass3_Sub3_Sub2_1.method1347(local13.aClass3_Sub3_Sub1_1);
|
|
local13.aClass3_Sub3_Sub1_1 = null;
|
|
}
|
|
local13.method4658();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!hc", name = "a", descriptor = "(Lclient!ve;I)V")
|
|
public static void method1878(@OriginalArg(0) Js5 arg0) {
|
|
Static182.aClass153_77 = arg0;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!hc", name = "a", descriptor = "(Lclient!na;Z)I")
|
|
public static int method1879(@OriginalArg(0) JagString arg0) {
|
|
if (Static203.aClass134_1 == null || arg0.method3120() == 0) {
|
|
return -1;
|
|
}
|
|
for (@Pc(20) int local20 = 0; local20 < Static203.aClass134_1.anInt5074; local20++) {
|
|
if (Static203.aClass134_1.aClass100Array153[local20].method3140(Static101.aClass100_538, Static197.aClass100_872).method3108(arg0)) {
|
|
return local20;
|
|
}
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!hc", name = "a", descriptor = "(IIIILclient!th;Lclient!th;IIIIJ)V")
|
|
public static void method1880(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) Entity arg4, @OriginalArg(5) Entity arg5, @OriginalArg(6) int arg6, @OriginalArg(7) int arg7, @OriginalArg(8) int arg8, @OriginalArg(9) int arg9, @OriginalArg(10) long arg10) {
|
|
if (arg4 == null) {
|
|
return;
|
|
}
|
|
@Pc(6) WallDecor local6 = new WallDecor();
|
|
local6.aLong52 = arg10;
|
|
local6.anInt1390 = arg1 * 128 + 64;
|
|
local6.anInt1393 = arg2 * 128 + 64;
|
|
local6.anInt1391 = arg3;
|
|
local6.aClass8_3 = arg4;
|
|
local6.aClass8_2 = arg5;
|
|
local6.anInt1395 = arg6;
|
|
local6.anInt1388 = arg7;
|
|
local6.anInt1394 = arg8;
|
|
local6.anInt1392 = arg9;
|
|
for (@Pc(46) int local46 = arg0; local46 >= 0; local46--) {
|
|
if (Static130.aClass3_Sub5ArrayArrayArray1[local46][arg1][arg2] == null) {
|
|
Static130.aClass3_Sub5ArrayArrayArray1[local46][arg1][arg2] = new Tile(local46, arg1, arg2);
|
|
}
|
|
}
|
|
Static130.aClass3_Sub5ArrayArrayArray1[arg0][arg1][arg2].aClass24_1 = local6;
|
|
}
|
|
}
|