// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
import java.io.*;
public class v
{
public byte a_byte;
public static final String a_java_lang_String_array1d_static[] = {
"sword", "axe", "hammer", "robe", "armor", "shoe", "boot", "stone", "stone", "stone",
"stone", "word", "word", "word", "word", "word", "notebook"
};
public byte b_byte;
public byte c;
public byte d;
public String a_java_lang_String;
public String b_java_lang_String;
public byte a_byte_array1d[];
public static byte b_byte_array1d_static[] = {
1, 2, 3, 4, 6, 1, 2, 3, 4, 7,
8, 6, 9, 5
};
public static final byte a_byte_array2d_static[][] = {
{
10, 125
}, {
5, 75
}, {
10, 125
}, {
5, 75
}, {
10, 50
}, {
10, 125
}, {
5, 75
}, {
10, 125
}, {
5, 75
}, {
25, 127
}, {
25, 127
}, {
10, 50
}, {
4, 40
}, {
2, 20
}, {
0, 0
}
};
public int a_int_array1d[];
public v()
{
a_byte_array1d = new byte[14];
a_int_array1d = new int[14];
}
public void a()
{
byte byte0 = 0;
int i = 0;
byte byte1 = 15;
a(byte0, i, byte1);
}
public void a(byte byte0, int i, int j)
{
if (i == 0)
{
c = (byte)n.a(z.e[n.a_z_static.h][3], z.e[n.a_z_static.h][4]);
i = c;
} else
{
c = (byte)i;
}
d = (byte)((i - 1) / 3 + 1);
if (byte0 == 0)
{
if (n.a(0, 99) < n.c.a("ballance.drop_Stone"))
byte0 = a_byte = (byte)n.a(8, 16);
else
byte0 = a_byte = (byte)n.a(1, 7);
} else
{
a_byte = byte0;
}
if (byte0 == 2 || byte0 == 3)
a_byte = 1;
if (byte0 a_java_lang_String = n.a_p_static.a(a_java_lang_String_array1d_static[byte0 - 1] + ".name").substring(((i - 1) / 3) * 3, ((i - 1) / 3) * 3 + 3);
else
if (byte0 a_java_lang_String = n.a_p_static.a(a_java_lang_String_array1d_static[byte0 - 1] + ".name").substring((byte0 - 8) * 4, (byte0 - 8) * 4 + 4);
else
if (byte0 a_java_lang_String = n.a_p_static.a(a_java_lang_String_array1d_static[byte0 - 1] + ".name").substring((byte0 - 12) * 3, (byte0 - 12) * 3 + 3);
else
a_java_lang_String = n.a_p_static.a(a_java_lang_String_array1d_static[byte0 - 1] + ".name");
switch (byte0)
{
case 1: // '\001'
int k = a_byte_array2d_static[0][0] + ((a_byte_array2d_static[0][1] - a_byte_array2d_static[0][0]) * (i - 1)) / 15;
int l2 = a_byte_array2d_static[0][1] - ((a_byte_array2d_static[0][1] - a_byte_array2d_static[0][0]) * (15 - i)) / 15;
a_byte_array1d[0] = (byte)n.a(k, l2 - ((l2 - k) * 2) / 3);
k = a_byte_array2d_static[2][0] + ((a_byte_array2d_static[2][1] - a_byte_array2d_static[2][0]) * (i - 1)) / 15;
l2 = a_byte_array2d_static[2][1] - ((a_byte_array2d_static[2][1] - a_byte_array2d_static[2][0]) * (15 - i)) / 15;
a_byte_array1d[2] = (byte)n.a(k + ((l2 - k) * 2) / 3, l2);
k = a_byte_array2d_static[4][0];
l2 = a_byte_array2d_static[4][1] - ((a_byte_array2d_static[4][1] - a_byte_array2d_static[4][0]) * 2) / 3;
a_byte_array1d[4] = (byte)(0 - n.a(k + ((l2 - k) * (15 - i)) / 15, l2 - ((l2 - k) * (i - 1)) / 15));
break;
case 2: // '\002'
int l = a_byte_array2d_static[0][0] + ((a_byte_array2d_static[0][1] - a_byte_array2d_static[0][0]) * (i - 1)) / 15;
int i3 = a_byte_array2d_static[0][1] - ((a_byte_array2d_static[0][1] - a_byte_array2d_static[0][0]) * (15 - i)) / 15;
a_byte_array1d[0] = (byte)n.a(l + (i3 - l) / 3, i3 - (i3 - l) / 3);
l = a_byte_array2d_static[2][0] + ((a_byte_array2d_static[2][1] - a_byte_array2d_static[2][0]) * (i - 1)) / 15;
i3 = a_byte_array2d_static[2][1] - ((a_byte_array2d_static[2][1] - a_byte_array2d_static[2][0]) * (15 - i)) / 15;
a_byte_array1d[2] = (byte)n.a(l + (i3 - l) / 3, i3 - (i3 - l) / 3);
l = a_byte_array2d_static[4][0] + (a_byte_array2d_static[4][1] - a_byte_array2d_static[4][0]) / 3;
i3 = a_byte_array2d_static[4][1] - (a_byte_array2d_static[4][1] - a_byte_array2d_static[4][0]) / 3;
a_byte_array1d[4] = (byte)(0 - n.a(l + ((i3 - l) * (15 - i)) / 15, i3 - ((i3 - l) * (i - 1)) / 15));
break;
case 3: // '\003'
int i1 = a_byte_array2d_static[0][0] + ((a_byte_array2d_static[0][1] - a_byte_array2d_static[0][0]) * (i - 1)) / 15;
int j3 = a_byte_array2d_static[0][1] - ((a_byte_array2d_static[0][1] - a_byte_array2d_static[0][0]) * (15 - i)) / 15;
a_byte_array1d[0] = (byte)n.a(i1 + ((j3 - i1) * 2) / 3, j3);
i1 = a_byte_array2d_static[2][0] + ((a_byte_array2d_static[2][1] - a_byte_array2d_static[2][0]) * (i - 1)) / 15;
j3 = a_byte_array2d_static[2][1] - ((a_byte_array2d_static[2][1] - a_byte_array2d_static[2][0]) * (15 - i)) / 15;
a_byte_array1d[2] = (byte)n.a(i1, j3 - ((j3 - i1) * 2) / 3);
i1 = a_byte_array2d_static[4][0] + ((a_byte_array2d_static[4][1] - a_byte_array2d_static[4][0]) * 2) / 3;
j3 = a_byte_array2d_static[4][1];
a_byte_array1d[4] = (byte)(0 - n.a(i1 + ((j3 - i1) * (15 - i)) / 15, j3 - ((j3 - i1) * (i - 1)) / 15));
break;
case 4: // '\004'
int j1 = a_byte_array2d_static[1][0] + ((a_byte_array2d_static[1][1] - a_byte_array2d_static[1][0]) * (i - 1)) / 15;
int k3 = a_byte_array2d_static[1][1] - ((a_byte_array2d_static[1][1] - a_byte_array2d_static[1][0]) * (15 - i)) / 15;
a_byte_array1d[1] = (byte)n.a(j1, k3 - ((k3 - j1) * 1) / 2);
j1 = a_byte_array2d_static[3][0] + ((a_byte_array2d_static[3][1] - a_byte_array2d_static[3][0]) * (i - 1)) / 15;
k3 = a_byte_array2d_static[3][1] - ((a_byte_array2d_static[3][1] - a_byte_array2d_static[3][0]) * (15 - i)) / 15;
a_byte_array1d[3] = (byte)n.a(j1 + ((k3 - j1) * 1) / 2, k3);
break;
case 5: // '\005'
int k1 = a_byte_array2d_static[1][0] + ((a_byte_array2d_static[1][1] - a_byte_array2d_static[1][0]) * (i - 1)) / 15;
int l3 = a_byte_array2d_static[1][1] - ((a_byte_array2d_static[1][1] - a_byte_array2d_static[1][0]) * (15 - i)) / 15;
a_byte_array1d[1] = (byte)n.a(k1 + ((l3 - k1) * 1) / 2, l3);
k1 = a_byte_array2d_static[3][0] + ((a_byte_array2d_static[3][1] - a_byte_array2d_static[3][0]) * (i - 1)) / 15;
l3 = a_byte_array2d_static[3][1] - ((a_byte_array2d_static[3][1] - a_byte_array2d_static[3][0]) * (15 - i)) / 15;
a_byte_array1d[3] = (byte)n.a(k1, l3 - ((l3 - k1) * 1) / 2);
break;
case 6: // '\006'
int l1 = a_byte_array2d_static[1][0] + ((a_byte_array2d_static[1][1] - a_byte_array2d_static[1][0]) * (i - 1)) / 15;
int i4 = a_byte_array2d_static[1][1] - ((a_byte_array2d_static[1][1] - a_byte_array2d_static[1][0]) * (15 - i)) / 15;
a_byte_array1d[1] = (byte)n.a(l1, i4 - ((i4 - l1) * 3) / 4);
l1 = a_byte_array2d_static[3][0] + ((a_byte_array2d_static[3][1] - a_byte_array2d_static[3][0]) * (i - 1)) / 15;
i4 = a_byte_array2d_static[3][1] - ((a_byte_array2d_static[3][1] - a_byte_array2d_static[3][0]) * (15 - i)) / 15;
a_byte_array1d[3] = (byte)n.a(l1, i4 - ((i4 - l1) * 3) / 4);
l1 = a_byte_array2d_static[4][0] + ((a_byte_array2d_static[4][1] - a_byte_array2d_static[4][0]) * 1) / 4;
i4 = a_byte_array2d_static[4][0] + ((a_byte_array2d_static[4][1] - a_byte_array2d_static[4][0]) * 1) / 2;
a_byte_array1d[4] = (byte)n.a(l1 + ((i4 - l1) * (15 - i)) / 15, i4 - ((i4 - l1) * (i - 1)) / 15);
break;
case 7: // '\007'
int i2 = a_byte_array2d_static[1][0] + ((a_byte_array2d_static[1][1] - a_byte_array2d_static[1][0]) * (i - 1)) / 15;
int j4 = a_byte_array2d_static[1][1] - ((a_byte_array2d_static[1][1] - a_byte_array2d_static[1][0]) * (15 - i)) / 15;
a_byte_array1d[1] = (byte)n.a(i2 + ((j4 - i2) * 1) / 4, j4 - ((j4 - i2) * 1) / 2);
i2 = a_byte_array2d_static[3][0] + ((a_byte_array2d_static[3][1] - a_byte_array2d_static[3][0]) * (i - 1)) / 15;
j4 = a_byte_array2d_static[3][1] - ((a_byte_array2d_static[3][1] - a_byte_array2d_static[3][0]) * (15 - i)) / 15;
a_byte_array1d[3] = (byte)n.a(i2 + ((j4 - i2) * 1) / 4, j4 - ((j4 - i2) * 1) / 2);
i2 = a_byte_array2d_static[4][0];
j4 = a_byte_array2d_static[4][0] + ((a_byte_array2d_static[4][1] - a_byte_array2d_static[4][0]) * 1) / 4;
a_byte_array1d[4] = (byte)n.a(i2 + ((j4 - i2) * (15 - i)) / 15, j4 - ((j4 - i2) * (i - 1)) / 15);
break;
case 8: // '\b'
case 9: // '\t'
case 10: // '\n'
case 11: // '\013'
case 12: // '\f'
case 13: // '\r'
case 14: // '\016'
case 15: // '\017'
case 16: // '\020'
int j2 = a_byte_array2d_static[byte0 - 3][0] + ((a_byte_array2d_static[byte0 - 3][1] - a_byte_array2d_static[byte0 - 3][0]) * (i - 1)) / 15;
int k4 = a_byte_array2d_static[byte0 - 3][1] - ((a_byte_array2d_static[byte0 - 3][1] - a_byte_array2d_static[byte0 - 3][0]) * (15 - i)) / 15;
a_byte_array1d[byte0 - 3] = (byte)n.a(j2, k4);
break;
}
if (byte0 {
int i5 = 0;
if (j == 15)
i5 = n.a(5, 45);
else
i5 = j + 4;
if (i5 > 4 && i5 < 14)
{
b_byte = (byte)i5;
int k2 = a_byte_array2d_static[i5][0] + ((a_byte_array2d_static[i5][1] - a_byte_array2d_static[i5][0]) * (i - 1)) / 15;
int l4 = a_byte_array2d_static[i5][1] - ((a_byte_array2d_static[i5][1] - a_byte_array2d_static[i5][0]) * (15 - i)) / 15;
a_byte_array1d[i5] = (byte)n.a(k2, l4);
a_int_array1d[i5] = 0xf27109;
b_java_lang_String = n.a_p_static.a("extra.name").substring((i5 - 5) * 2, (i5 - 4) * 2);
}
}
b();
}
public void b()
{
for (int i = 0; i < 14; i++)
if (i != b_byte || b_byte == 0)
{
int j = a_byte_array2d_static[i][0] + ((a_byte_array2d_static[i][1] - a_byte_array2d_static[i][0]) * (c - 1)) / 15;
int k = a_byte_array2d_static[i][1] - ((a_byte_array2d_static[i][1] - a_byte_array2d_static[i][0]) * (15 - c)) / 15;
if (a_byte_array1d[i] {
a_int_array1d[i] = 0xffffff;
continue;
}
if (a_byte_array1d[i] {
a_int_array1d[i] = 65526;
continue;
}
if (a_byte_array1d[i] {
a_int_array1d[i] = 0x5b52d2;
continue;
}
if (a_byte_array1d[i] a_int_array1d[i] = 0x31d607;
else
a_int_array1d[i] = 0xa800ff;
} else
{
a_int_array1d[i] = 0xf27109;
}
}
public void a(DataOutputStream dataoutputstream)
{
try
{
dataoutputstream.writeByte(a_byte);
dataoutputstream.writeByte(b_byte);
dataoutputstream.writeByte(c);
for (int i = 0; i < 14; i++)
dataoutputstream.writeByte(a_byte_array1d[i]);
}
catch (IOException ioexception)
{
System.out.println(ioexception);
}
}
public void a(DataInputStream datainputstream)
{
try
{
a_byte = datainputstream.readByte();
b_byte = datainputstream.readByte();
c = datainputstream.readByte();
for (int i = 0; i < 14; i++)
a_byte_array1d[i] = datainputstream.readByte();
if (a_byte > 0)
{
d = (byte)((c - 1) / 3 + 1);
if (a_byte a_java_lang_String = n.a_p_static.a(a_java_lang_String_array1d_static[a_byte - 1] + ".name").substring(((c - 1) / 3) * 3, ((c - 1) / 3) * 3 + 3);
else
if (a_byte a_java_lang_String = n.a_p_static.a(a_java_lang_String_array1d_static[a_byte - 1] + ".name").substring((a_byte - 8) * 3, (a_byte - 8) * 3 + 3);
else
if (a_byte a_java_lang_String = n.a_p_static.a(a_java_lang_String_array1d_static[a_byte - 1] + ".name").substring((a_byte - 12) * 3, (a_byte - 12) * 3 + 3);
else
a_java_lang_String = n.a_p_static.a(a_java_lang_String_array1d_static[a_byte - 1] + ".name");
if (b_byte != 0)
b_java_lang_String = n.a_p_static.a("extra.name").substring((b_byte - 5) * 2, (b_byte - 4) * 2);
b();
}
}
catch (IOException ioexception)
{
System.out.println(ioexception);
}
catch (Exception exception)
{
System.out.println(exception);
}
}
}