mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-18 00:45:14 -06:00
Started organizing CS2/Protocol-related functions
This commit is contained in:
parent
46740027df
commit
ef6a5d7385
268 changed files with 5936 additions and 6093 deletions
|
|
@ -1,6 +1,4 @@
|
|||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
public final class Static178 {
|
||||
|
||||
|
|
@ -10,47 +8,4 @@ public final class Static178 {
|
|||
@OriginalMember(owner = "client!od", name = "i", descriptor = "I")
|
||||
public static int anInt4247 = 0;
|
||||
|
||||
@OriginalMember(owner = "client!od", name = "a", descriptor = "(ILclient!na;)V")
|
||||
public static void method3318(@OriginalArg(1) JagString arg0) {
|
||||
if (Static199.aClass3_Sub22Array1 == null) {
|
||||
return;
|
||||
}
|
||||
@Pc(22) long local22 = arg0.encode37();
|
||||
@Pc(24) int local24 = 0;
|
||||
if (local22 == 0L) {
|
||||
return;
|
||||
}
|
||||
while (Static199.aClass3_Sub22Array1.length > local24 && Static199.aClass3_Sub22Array1[local24].key != local22) {
|
||||
local24++;
|
||||
}
|
||||
if (local24 < Static199.aClass3_Sub22Array1.length && Static199.aClass3_Sub22Array1[local24] != null) {
|
||||
Protocol.outboundBuffer.p1isaac(162);
|
||||
Protocol.outboundBuffer.p8(Static199.aClass3_Sub22Array1[local24].key);
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!od", name = "a", descriptor = "(IZII)I")
|
||||
public static int getTotalParam(@OriginalArg(1) boolean arg0, @OriginalArg(2) int arg1, @OriginalArg(3) int arg2) {
|
||||
@Pc(19) Inv local19 = (Inv) Static20.objectContainerCache.get((long) arg1);
|
||||
if (local19 == null) {
|
||||
return 0;
|
||||
}
|
||||
@Pc(27) int local27 = 0;
|
||||
for (@Pc(29) int local29 = 0; local29 < local19.objectIds.length; local29++) {
|
||||
if (local19.objectIds[local29] >= 0 && ObjTypeList.anInt3245 > local19.objectIds[local29]) {
|
||||
@Pc(56) ObjType local56 = ObjTypeList.get(local19.objectIds[local29]);
|
||||
if (local56.params != null) {
|
||||
@Pc(68) IntNode local68 = (IntNode) local56.params.get((long) arg2);
|
||||
if (local68 != null) {
|
||||
if (arg0) {
|
||||
local27 += local19.anIntArray422[local29] * local68.value;
|
||||
} else {
|
||||
local27 += local68.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return local27;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue