|
@@ -289,54 +289,76 @@ namespace GFGGame
|
|
|
{
|
|
|
//检查默认资源
|
|
|
//是否有头发
|
|
|
- bool has1 = false;
|
|
|
+ bool hasFaXing = false;
|
|
|
//是否有连衣裙
|
|
|
- bool has2 = false;
|
|
|
+ bool hasLianYiQun = false;
|
|
|
//是否有内搭
|
|
|
- bool has3 = false;
|
|
|
+ bool hasNeiDa = false;
|
|
|
//是否有上衣
|
|
|
- // bool has4 = false;
|
|
|
+ bool hasShangYi = false;
|
|
|
//是否有下装
|
|
|
- bool has5 = false;
|
|
|
+ bool hasXiaZhuang = false;
|
|
|
//是否有默认内搭
|
|
|
- // bool has30000 = false;
|
|
|
+ bool hasNeiDaDefault = false;
|
|
|
//是否有默认下装
|
|
|
- // bool has50000 = false;
|
|
|
+ bool hasXiaZhuangDefault = false;
|
|
|
for (int i = 0; i < _equipDatas.Count; i++)
|
|
|
{
|
|
|
int itemID = (int)_equipDatas[i];
|
|
|
int subType = ItemUtilCS.GetItemSubType(itemID);
|
|
|
if (subType == (int)ConstDressUpItemType.FA_XING)
|
|
|
{
|
|
|
- has1 = true;
|
|
|
+ hasFaXing = true;
|
|
|
}
|
|
|
else if (subType == ConstDressUpItemType.LIAN_YI_QUN)
|
|
|
{
|
|
|
- has2 = true;
|
|
|
+ hasLianYiQun = true;
|
|
|
}
|
|
|
else if (subType == ConstDressUpItemType.NEI_DA)
|
|
|
{
|
|
|
- has3 = true;
|
|
|
+ hasNeiDa = true;
|
|
|
}
|
|
|
else if (subType == ConstDressUpItemType.XIA_ZHUANG)
|
|
|
{
|
|
|
- has5 = true;
|
|
|
+ hasXiaZhuang = true;
|
|
|
+ }
|
|
|
+ else if (subType == ConstDressUpItemType.SHANG_YI)
|
|
|
+ {
|
|
|
+ hasShangYi = true;
|
|
|
+ }
|
|
|
+ if (itemID == ConstItemID.DEFULT_NEI_DA)
|
|
|
+ {
|
|
|
+ hasNeiDaDefault = true;
|
|
|
+ }
|
|
|
+ else if (itemID == ConstItemID.DEFULT_XIA_ZHUANG)
|
|
|
+ {
|
|
|
+ hasXiaZhuangDefault = true;
|
|
|
}
|
|
|
}
|
|
|
- if (!has1)
|
|
|
+ if (!hasFaXing)
|
|
|
{
|
|
|
Add(10000);
|
|
|
}
|
|
|
- if (!has2)
|
|
|
+ if (!hasLianYiQun)
|
|
|
{
|
|
|
- if (!has5)
|
|
|
+ if(!hasShangYi && (!hasNeiDa || hasNeiDaDefault) && (!hasXiaZhuang || hasXiaZhuangDefault))
|
|
|
{
|
|
|
- Add(50000);
|
|
|
+ Remove(ConstItemID.DEFULT_XIA_ZHUANG);
|
|
|
+ Remove(ConstItemID.DEFULT_NEI_DA);
|
|
|
+ Add(ConstItemID.DEFULT_LIAN_YI_QUN);
|
|
|
}
|
|
|
- if (!has3)
|
|
|
+ else
|
|
|
{
|
|
|
- Add(30000);
|
|
|
+ if (!hasXiaZhuang)
|
|
|
+ {
|
|
|
+ Add(ConstItemID.DEFULT_XIA_ZHUANG);
|
|
|
+ }
|
|
|
+ if (!hasNeiDa)
|
|
|
+ {
|
|
|
+ Add(ConstItemID.DEFULT_NEI_DA);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|