7
7
import org .runejs .client .node .NodeCache ;
8
8
9
9
public class IdentityKit extends CachedNode {
10
- public static CacheArchive identityKitCache ;
11
- public static NodeCache identityKitNodeCache = new NodeCache (64 );
12
- public static int identityKitLength ;
13
- public static CacheArchive aCacheArchive_654 ;
10
+ private static CacheArchive identityKitArchive ;
11
+ private static NodeCache identityKitCache = new NodeCache (64 );
12
+ public static int count ;
13
+ private static CacheArchive modelArchive ;
14
14
public int [] recolorToFind = new int [6 ];
15
15
public int [] recolorToReplace ;
16
16
public int bodyPartId = -1 ;
@@ -24,27 +24,27 @@ public IdentityKit() {
24
24
25
25
// ???
26
26
public static IdentityKit cache (int arg1 ) {
27
- IdentityKit identityKit = (IdentityKit ) identityKitNodeCache .get (arg1 );
27
+ IdentityKit identityKit = (IdentityKit ) identityKitCache .get (arg1 );
28
28
if (identityKit != null ) {
29
29
return identityKit ;
30
30
}
31
- byte [] is = identityKitCache .getFile (3 , arg1 );
31
+ byte [] is = identityKitArchive .getFile (3 , arg1 );
32
32
identityKit = new IdentityKit ();
33
33
if (is != null ) {
34
34
identityKit .readValues (new Buffer (is ));
35
35
}
36
- identityKitNodeCache .put (arg1 , identityKit );
36
+ identityKitCache .put (arg1 , identityKit );
37
37
return identityKit ;
38
38
}
39
39
40
40
public static void clearIdentityKitCache () {
41
- identityKitNodeCache .clear ();
41
+ identityKitCache .clear ();
42
42
}
43
43
44
44
public static void initializeIdentityKitDefinitionCache (CacheArchive definitionCache , CacheArchive arg2 ) {
45
- aCacheArchive_654 = arg2 ;
46
- identityKitCache = definitionCache ;
47
- identityKitLength = identityKitCache .fileLength (3 );
45
+ modelArchive = arg2 ;
46
+ identityKitArchive = definitionCache ;
47
+ count = identityKitArchive .fileLength (3 );
48
48
}
49
49
50
50
public void readValues (Buffer buffer ) {
@@ -63,7 +63,7 @@ public boolean isBodyModelCached() {
63
63
}
64
64
boolean isCached = true ;
65
65
for (int i = 0 ; modelId .length > i ; i ++) {
66
- if (!aCacheArchive_654 .loaded (modelId [i ], 0 )) {
66
+ if (!modelArchive .loaded (modelId [i ], 0 )) {
67
67
isCached = false ;
68
68
}
69
69
}
@@ -74,7 +74,7 @@ public boolean method624() {
74
74
boolean bool = true ;
75
75
int i = 0 ;
76
76
for (/**/ ; i < 5 ; i ++) {
77
- if (models [i ] != -1 && !aCacheArchive_654 .loaded (models [i ], 0 )) {
77
+ if (models [i ] != -1 && !modelArchive .loaded (models [i ], 0 )) {
78
78
bool = false ;
79
79
}
80
80
}
@@ -106,7 +106,7 @@ public Model method629() {
106
106
int i = 0 ;
107
107
for (int i_7_ = 0 ; i_7_ < 5 ; i_7_ ++) {
108
108
if (models [i_7_ ] != -1 ) {
109
- class40_sub5_sub17_sub5s [i ++] = Model .getModel (aCacheArchive_654 , models [i_7_ ]);
109
+ class40_sub5_sub17_sub5s [i ++] = Model .getModel (modelArchive , models [i_7_ ]);
110
110
}
111
111
}
112
112
Model class40_sub5_sub17_sub5 = new Model (class40_sub5_sub17_sub5s , i );
@@ -125,7 +125,7 @@ public Model getBodyModel() {
125
125
}
126
126
Model [] models = new Model [modelId .length ];
127
127
for (int i = 0 ; i < modelId .length ; i ++) {
128
- models [i ] = Model .getModel (aCacheArchive_654 , modelId [i ]);
128
+ models [i ] = Model .getModel (modelArchive , modelId [i ]);
129
129
}
130
130
Model model ;
131
131
if (models .length == 1 ) {
0 commit comments