mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 08:25:14 -06:00
Moved source to rt4 package so external code can depend on it
This commit is contained in:
parent
dc6deb9151
commit
153d8569b5
624 changed files with 1253 additions and 7 deletions
63
client/src/main/java/rt4/Static158.java
Normal file
63
client/src/main/java/rt4/Static158.java
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
package rt4;
|
||||
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
public final class Static158 {
|
||||
|
||||
@OriginalMember(owner = "client!mh", name = "hb", descriptor = "Lclient!bn;")
|
||||
public static Map aClass3_Sub2_Sub4_3;
|
||||
|
||||
@OriginalMember(owner = "client!mh", name = "X", descriptor = "I")
|
||||
public static int anInt3851 = -1;
|
||||
|
||||
@OriginalMember(owner = "client!mh", name = "Y", descriptor = "Z")
|
||||
public static boolean aBoolean187 = false;
|
||||
|
||||
@OriginalMember(owner = "client!mh", name = "h", descriptor = "(B)V")
|
||||
public static void decodeNpcFiles() {
|
||||
@Pc(10) int local10 = Static191.npcSpawnsFilesBuffer.length;
|
||||
for (@Pc(16) int local16 = 0; local16 < local10; local16++) {
|
||||
if (Static191.npcSpawnsFilesBuffer[local16] != null) {
|
||||
@Pc(25) int local25 = -1;
|
||||
for (@Pc(27) int local27 = 0; local27 < Static157.anInt3811; local27++) {
|
||||
if (Static217.anIntArray434[local27] == Static238.regionBitPacked[local16]) {
|
||||
local25 = local27;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (local25 == -1) {
|
||||
Static217.anIntArray434[Static157.anInt3811] = Static238.regionBitPacked[local16];
|
||||
local25 = Static157.anInt3811++;
|
||||
}
|
||||
@Pc(67) int local67 = 0;
|
||||
@Pc(74) Buffer local74 = new Buffer(Static191.npcSpawnsFilesBuffer[local16]);
|
||||
while (local74.offset < Static191.npcSpawnsFilesBuffer[local16].length && local67 < 511) {
|
||||
@Pc(97) int local97 = local67++ << 6 | local25;
|
||||
@Pc(103) int local103 = local74.g2();
|
||||
@Pc(107) int local107 = local103 >> 14;
|
||||
@Pc(113) int local113 = local103 >> 7 & 0x3F;
|
||||
@Pc(125) int local125 = local113 + (Static238.regionBitPacked[local16] >> 8) * 64 - Static225.originX;
|
||||
@Pc(129) int local129 = local103 & 0x3F;
|
||||
@Pc(142) int local142 = local129 + (Static238.regionBitPacked[local16] & 0xFF) * 64 - Static142.originZ;
|
||||
@Pc(148) NpcType local148 = NpcTypeList.get(local74.g2());
|
||||
if (NpcList.npcs[local97] == null && (local148.aByte10 & 0x1) > 0 && local107 == Static41.anInt1316 && local125 >= 0 && local148.soze + local125 < 104 && local142 >= 0 && local142 + local148.soze < 104) {
|
||||
NpcList.npcs[local97] = new Npc();
|
||||
@Pc(198) Npc local198 = NpcList.npcs[local97];
|
||||
Static33.anIntArray79[Static272.anInt5214++] = local97;
|
||||
local198.lastSeenLoop = client.loop;
|
||||
local198.method2698(local148);
|
||||
local198.method2692(local198.type.soze);
|
||||
local198.anInt3400 = local198.anInt3381 = PathingEntity.ANGLES[local198.type.aByte11];
|
||||
local198.anInt3376 = local198.type.anInt3733;
|
||||
if (local198.anInt3376 == 0) {
|
||||
local198.anInt3381 = 0;
|
||||
}
|
||||
local198.anInt3365 = local198.type.basId;
|
||||
local198.method2683(local198.getSize(), local125, local142, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue