|
@@ -581,6 +581,7 @@ namespace GFGGame
|
|
int liangyiqunIndex = -1;
|
|
int liangyiqunIndex = -1;
|
|
int shangyiIndex = -1;
|
|
int shangyiIndex = -1;
|
|
int xiazhuangIndex = -1;
|
|
int xiazhuangIndex = -1;
|
|
|
|
+ int neidaIndex = -1;
|
|
for (int i = 0; i < recommendList.Count; i++)
|
|
for (int i = 0; i < recommendList.Count; i++)
|
|
{
|
|
{
|
|
int subType = ItemUtilCS.GetItemSubType(recommendList[i]);
|
|
int subType = ItemUtilCS.GetItemSubType(recommendList[i]);
|
|
@@ -599,6 +600,11 @@ namespace GFGGame
|
|
{
|
|
{
|
|
xiazhuangIndex = i;
|
|
xiazhuangIndex = i;
|
|
continue;
|
|
continue;
|
|
|
|
+ }
|
|
|
|
+ if (subType == ConstDressUpItemType.NEI_DA)
|
|
|
|
+ {
|
|
|
|
+ neidaIndex = i;
|
|
|
|
+ continue;
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -612,7 +618,8 @@ namespace GFGGame
|
|
int lianyiqunScore = DressUpMenuItemDataManager.GetItemScore(recommendList[liangyiqunIndex]);
|
|
int lianyiqunScore = DressUpMenuItemDataManager.GetItemScore(recommendList[liangyiqunIndex]);
|
|
int shangyiScore = DressUpMenuItemDataManager.GetItemScore(recommendList[shangyiIndex]);
|
|
int shangyiScore = DressUpMenuItemDataManager.GetItemScore(recommendList[shangyiIndex]);
|
|
int xiazhuangScore = DressUpMenuItemDataManager.GetItemScore(recommendList[xiazhuangIndex]);
|
|
int xiazhuangScore = DressUpMenuItemDataManager.GetItemScore(recommendList[xiazhuangIndex]);
|
|
- if (lianyiqunScore > shangyiScore + xiazhuangScore)
|
|
|
|
|
|
+ int neidaScore = neidaIndex >= 0 ? DressUpMenuItemDataManager.GetItemScore(recommendList[neidaIndex]) : 0;
|
|
|
|
+ if (lianyiqunScore > shangyiScore + xiazhuangScore + neidaScore)
|
|
{
|
|
{
|
|
recommendList.RemoveAt(xiazhuangIndex);
|
|
recommendList.RemoveAt(xiazhuangIndex);
|
|
recommendList.RemoveAt(xiazhuangIndex);
|
|
recommendList.RemoveAt(xiazhuangIndex);
|