blob: 1cbaf4d1e3446af7d20dec70df98fe363abc492b (
plain)
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
|
using System;
using XUtliPoolLib;
namespace XMainClient
{
public class EquipSuitItemData : IComparable
{
public int CompareValue
{
get
{
bool flag = this.itemComposeData == null;
int result;
if (flag)
{
result = int.MinValue;
}
else
{
int num = (int)XBagDocument.BagDoc.GetItemCount(this.itemComposeData.SrcItem1[0]) - this.itemComposeData.SrcItem1[1];
bool flag2 = num < 0;
if (flag2)
{
result = num;
}
else
{
int num2 = (int)XBagDocument.BagDoc.GetItemCount(this.itemComposeData.SrcItem2[0]) - this.itemComposeData.SrcItem2[1];
bool flag3 = num2 < 0;
if (flag3)
{
result = num2;
}
else
{
int num3 = (int)XBagDocument.BagDoc.GetItemCount(this.itemComposeData.SrcItem3[0]) - this.itemComposeData.SrcItem3[1];
bool flag4 = num3 < 0;
if (flag4)
{
result = num3;
}
else
{
int num4 = (int)XBagDocument.BagDoc.GetItemCount(XEquipCreateDocument.CoinId) - this.itemComposeData.Coin;
bool flag5 = num4 < 0;
if (flag5)
{
result = num4;
}
else
{
result = num + num2 + num3 + num4;
}
}
}
}
}
return result;
}
}
public bool redpoint;
public EquipList.RowData itemData;
public ItemComposeTable.RowData itemComposeData;
public int CompareTo(object _other)
{
EquipSuitItemData equipSuitItemData = _other as EquipSuitItemData;
bool flag = this.itemComposeData != null && equipSuitItemData.itemComposeData != null;
if (flag)
{
bool flag2 = this.itemComposeData.Level != equipSuitItemData.itemComposeData.Level;
if (flag2)
{
return this.itemComposeData.Level - equipSuitItemData.itemComposeData.Level;
}
}
int compareValue = this.CompareValue;
int compareValue2 = equipSuitItemData.CompareValue;
bool flag3 = compareValue >= 0;
if (flag3)
{
bool flag4 = compareValue2 < 0;
if (flag4)
{
return -1;
}
}
else
{
bool flag5 = compareValue2 >= 0;
if (flag5)
{
return 1;
}
}
int[] equipPosOrderArray = XSingleton<XEquipCreateStaticData>.singleton.EquipPosOrderArray;
bool flag6 = equipPosOrderArray[(int)this.itemData.EquipPos] == equipPosOrderArray[(int)equipSuitItemData.itemData.EquipPos];
int result;
if (flag6)
{
bool flag7 = compareValue == compareValue2;
if (flag7)
{
result = this.itemComposeData.Coin - equipSuitItemData.itemComposeData.Coin;
}
else
{
result = compareValue2 - compareValue;
}
}
else
{
result = equipPosOrderArray[(int)this.itemData.EquipPos] - equipPosOrderArray[(int)equipSuitItemData.itemData.EquipPos];
}
return result;
}
}
}
|