-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbe.java
395 lines (336 loc) · 11 KB
/
be.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
public final class be {
private final int[] a = new int[]{10, 22, 27, 29, 30, 48, 55, 56, 76, 79, 91, 98};
private final int[] b = new int[]{5, 20, 2, 5, 100};
public static ch[] a(bd var0) {
if (var0.a() == 15 && bl.a() < 16) {
return null;
} else {
ch[] var1 = null;
int var2 = bl.a().c();
boolean var7 = var0.b() == 10 && ba.b();
int var10000 = var2 != 1 && !var7 ? at.a.nextInt(6) : 1;
int var8 = var10000;
if (var10000 == 0) {
return null;
} else {
var1 = new ch[var8];
for(int var3 = 0; var3 < var1.length; ++var3) {
int var4 = 0;
boolean var5 = false;
while(true) {
while(!var5) {
var4 = var7 ? 8 : ad.a(var2);
var5 = true;
for(int var6 = 0; var6 < var1.length; ++var6) {
if (var1[var6] != null && var1[var6].b() == var4) {
var5 = false;
break;
}
}
}
var1[var3] = ad.a()[var4].a();
var1[var3].a(bl.a().c());
var1[var3].c();
break;
}
}
return var1;
}
}
}
public final int[] a() {
v[] var1 = ad.a();
int var2;
if ((var2 = at.a.nextInt(3)) == 0) {
return null;
} else {
int[] var9 = new int[var2 << 1];
v[] var3 = ad.a();
int var4 = 0;
for(int var5 = 0; var5 < var9.length; var5 += 2) {
boolean var6 = false;
int var7 = 0;
for(int var8 = 0; var8 < 100 && !var6; ++var8) {
var7 = at.a.nextInt(var1.length);
var4 = var3[var7].b();
if (var3[var7].a() == null && at.a.nextInt(100) < this.b[var4] && at.a.nextInt(100) < var1[var7].k() && var3[var7].e() > 0 && var7 != 175 && var7 != 164 && (var4 == 4 || var3[var7].c() <= 7)) {
var6 = true;
}
}
if (!var6) {
var7 = 154 + at.a.nextInt(10);
var4 = 4;
}
var9[var5] = var7;
if (var4 == 4) {
var9[var5 + 1] = 1 + at.a.nextInt(9);
} else {
var9[var5 + 1] = 1;
}
}
return var9;
}
}
private int a(cw[] var1, int var2) {
int var3 = 0;
boolean var4 = false;
while(!var4) {
if (at.a.nextInt(100) < 20) {
var3 = var2;
} else if (at.a.nextInt(100) < 40) {
int[] var5;
var3 = (var5 = var1[bl.a().a()].a())[at.a.nextInt(var5.length)];
} else {
var3 = at.a.nextInt(100);
}
if (bl.a().a() == 15) {
var3 = bl.a().a()[at.a.nextInt(bl.a().a().length)];
}
var4 = true;
int var7;
for(var7 = 0; var7 < this.a.length; ++var7) {
if (var3 == this.a[var7]) {
var4 = false;
break;
}
}
var7 = 0;
for(int var6 = 0; var6 < var1.length; ++var6) {
if (var1[var6].a(var3)) {
var7 = var6;
break;
}
}
if (!bl.a()[var7]) {
var4 = false;
}
if (var1[var7].b() == null && var7 != bl.a().a()) {
var4 = false;
}
}
return var3;
}
public final ca[] a(bd var1) {
ca[] var2 = bl.a();
int var3 = 0;
boolean var4 = bl.a() > 16;
int var5;
for(var5 = 0; var5 < var2.length; ++var5) {
if (var2[var5].e() == var1.b() && var4) {
++var3;
}
}
ca[] var11 = new ca[g.c(5, var3 + 3 + at.a.nextInt(2))];
var5 = 0;
int var6;
for(var6 = 0; var6 < var2.length; ++var6) {
if (var2[var6].e() == var1.b() && var4) {
var11[var5++] = var2[var6];
}
}
boolean var15 = false;
int var17;
label176:
for(int var9 = var5; var9 < var11.length; ++var9) {
boolean var14 = false;
var5 = bl.a().c();
if (at.a.nextInt(100) < 20) {
var5 = at.a.nextInt(8);
}
boolean var7 = false;
int var8 = -1;
while(true) {
do {
if (var7) {
if (at.a.nextInt(100) < 33 || (var8 == 5 || var8 == 6) && bl.a() < 16) {
var8 = 0;
}
var7 = var8 != 6 && var5 == 0 ? at.a.nextInt(100) < 60 : true;
ca var12;
(var12 = new ca(-1, ad.a(var5, var7), var1.b(), bl.a().a(), var5, var7, -1, -1, -1)).b(var8);
var12.a(e.a(var7, var5));
if (var12.b() == 6) {
String[] var18 = new String[var5 = at.a.nextInt(3)];
for(var8 = 0; var8 < var5; ++var8) {
var18[var8] = ad.a(var12.c(), true);
}
var12.b = null;
var12.c = null;
var12.a = 0;
if (var18.length > 0 && var18[0] != null) {
var12.b = var18[0];
++var12.a;
}
if (var18.length > 1 && var18[1] != null) {
var12.c = var18[1];
++var12.a;
}
var12.c((var5 + 1) * (700 + at.a.nextInt(1300)));
} else if (var12.b() == 2) {
v[] var16 = ad.a();
var7 = false;
while(true) {
while((var17 = at.a.nextInt(var16.length)) == 175) {
}
if (var17 != 164 && var17 != 131 && var16[var17].a() == null && var16[var17].e() != 0) {
v var19 = var16[var17];
var5 = 5 + at.a.nextInt(15);
if (var19.b() == 3 || var19.b() == 0 || var19.b() == 2) {
var5 = 1;
}
var8 = var5 * (int)((float)(40 + at.a.nextInt(120)) / 100.0F * (float)ad.a()[var17].e());
var12.a(var17, var5, var8);
break;
}
}
}
var11[var9] = var12;
if (var11[var9].b() == 6) {
if (var15) {
var11[var9].b(1);
}
var15 = true;
} else if (var11[var9].b() == 0) {
var11[var9].a(this.a(var11[var9]));
}
continue label176;
}
var8 = at.a.nextInt(7);
} while(var5 == 1 && var8 == 6);
if (var8 != 4 && var8 != 3) {
var7 = true;
}
}
}
cs var10 = bl.a();
int[] var13 = new int[]{2, 3, 0, 1};
for(var5 = 0; var5 < var13.length; ++var5) {
var6 = var13[var5];
if (var10.a(var6)) {
for(var17 = 0; var17 < var11.length; ++var17) {
if (var11[var17].c() && var11[var17].b() != 7) {
var11[var17] = null;
var11[var17] = new ca(-1, ad.a(var6, true), var1.b(), bl.a().a(), var6, true, -1, -1, -1);
var11[var17].b(7);
var11[var17].a(e.a(true, var6));
break;
}
}
}
}
return var11;
}
public final cl a(ca var1) {
new av();
cw[] var2 = av.a();
int var3 = this.a(var2, var1.e());
if (bl.a().a() == 15) {
var3 = bl.a().a()[0] + at.a.nextInt(4);
}
boolean var4 = false;
int var5 = 0;
while(!var4) {
if ((var5 = at.a.nextInt(13)) != 8) {
var4 = true;
}
}
if (bl.a() < 16) {
switch(at.a.nextInt(5)) {
case 0:
var5 = 11;
break;
case 1:
var5 = 0;
break;
case 2:
var5 = 7;
break;
case 3:
var5 = 4;
break;
case 4:
var5 = 12;
}
}
if (var5 == 12) {
var3 = var1.e();
}
if (var1.b() == 5) {
var5 = 8;
var3 = var1.e();
}
if (var5 == 11 || var5 == 0) {
while(var3 == bl.a().b()) {
var3 = this.a(var2, var1.e());
}
}
int var14 = var1.c();
String var6 = var1.a;
boolean var7 = false;
int var8 = 0;
int var9 = 0;
int var15;
if (bl.a() < 16) {
var15 = 1 + at.a.nextInt(2);
} else {
var15 = 1 + at.a.nextInt(9);
}
if (var5 == 8) {
v[] var10 = ad.a();
boolean var11 = false;
int var17;
do {
do {
do {
do {
var17 = 97 + at.a.nextInt(var10.length - 97);
} while(var10[var17].e() == 0);
} while(var17 == 175);
} while(var17 == 164);
} while(var17 == 131);
var9 = var17;
var8 = 5 + at.a.nextInt(15);
var15 = var10[var17].c();
} else if (var5 != 3 && var5 != 5) {
if (var5 == 0) {
var8 = 5 + (int)(95.0F * ((float)var15 / 10.0F));
var9 = at.a.nextInt(7);
} else if (var5 == 11) {
var8 = 2 + (int)(18.0F * ((float)var15 / 10.0F));
} else if (var5 == 2) {
var8 = 2 + (int)((float)at.a.nextInt(4));
}
} else {
var8 = 2 + (int)(8.0F * ((float)var15 / 10.0F));
var9 = var5 == 3 ? 116 : 117;
}
var15 = g.c(10, var15);
float var16 = 1.0F + bv.a(var2[bl.a().a()], var2[bv.a(var3).a()]) / 1200.0F;
float var18 = (var18 = (float)(1500 + (int)((float)var15 / 10.0F * 5500.0F))) * var16 + (float)(bl.m() * 200);
if (var5 == 7) {
var18 *= 0.7F;
} else if (var5 == 9) {
var18 *= 1.2F;
} else if (var5 == 8) {
var18 = var18 / 2.0F + (float)(var8 * ad.a()[var9].g() * 3);
} else if (var5 == 11) {
var18 = (var18 *= 0.6F) + (float)var8 * (var18 / 5.0F);
} else if (var5 == 5 || var5 == 3) {
var18 *= 2.0F;
}
int var13 = (int)var18 % 50;
var18 = (var18 + (float)var13) % 50.0F == 0.0F ? var18 + (float)var13 : var18 - (float)var13;
cl var12 = new cl(var5, var6, var1.a(), var14, (int)var18, var3, var15);
var3 = (int)(var18 / 10.0F + (float)at.a.nextInt((int)var18 / 10));
if (var5 == 8) {
var3 = (int)((float)var3 * 0.5F);
} else if (var5 == 6) {
var12.a(ad.a(0, true));
}
var13 = var3 % 50;
var3 = (var3 + var13) % 50 == 0 ? var3 + var13 : var3 - var13;
var12.b(var3);
var12.a(var9, var8);
return var12;
}
}