From 85441ef1cc7dc7c5986af2e3f792c4c46f8e2984 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 21 八月 2018 11:50:47 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Strengthening/GodBeastSlidingList.cs | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/System/Strengthening/GodBeastSlidingList.cs b/System/Strengthening/GodBeastSlidingList.cs
index 626336b..584545d 100644
--- a/System/Strengthening/GodBeastSlidingList.cs
+++ b/System/Strengthening/GodBeastSlidingList.cs
@@ -190,14 +190,14 @@
{
godBeastBagClass.LV = 0;
godBeastBagClass.Proficiency = 0;
-
+
}
else
{
godBeastBagClass.LV = IudetDogzEquipPlus[0];
godBeastBagClass.Proficiency = IudetDogzEquipPlus[1];
}
-
+
GodBeastBagList.Add(godBeastBagClass);
}
GodBeastBagList.Sort(Compare);
@@ -237,7 +237,7 @@
AbsorptionDic.Clear();
for (int i = 0; i < GodBeastBagList.Count; i++)
{
- if (Quality > 0)//鍙湁姘存櫠
+ if (Quality <= 0)//鍙湁姘存櫠
{
if (GodBeastBagList[i].IsEquipment != 0)
{
@@ -247,16 +247,20 @@
}
else
{
- if (Quality < 10 && (GodBeastBagList[i].IsEquipment == 1 || GodBeastBagList[i].Color > Quality))//杩囨护鎺夊彧鍓╂墍閫夊搧璐ㄨ澶�
+ if (Quality < 10 && GodBeastBagList[i].IsEquipment != 1 && GodBeastBagList[i].Color > Quality)//杩囨护鎺夊彧鍓╂墍閫夊搧璐ㄨ澶�
{
int type = i;
DeleteIndexList.Add(type);
}
}
}
- for (int j = 0; j < DeleteIndexList.Count; j++)
+ for (int j = DeleteIndexList.Count; j > 0; j--)
{
- GodBeastBagList.RemoveAt(DeleteIndexList[j]);
+ int Inedex = DeleteIndexList[j - 1];
+ if (Inedex <= GodBeastBagList.Count - 1)
+ {
+ GodBeastBagList.RemoveAt(Inedex);
+ }
}
if (m_ToggleAll.isOn)
{
@@ -357,6 +361,7 @@
{
GodBeastChildNodes.ChoosenImg.SetActive(true);
}
+ GodBeastChildNodes.GetGodBeastIndex(godBeastBagClass.Index);
GodBeastChildNodes.ButtonDown.AddListener(() =>
{
if (AbsorptionDic.ContainsKey(godBeastBagClass.Index))
@@ -365,7 +370,7 @@
}
else
{
- AbsorptionDic.Add(godBeastBagClass.Index,1);
+ AbsorptionDic.Add(godBeastBagClass.Index, 1);
}
m_ScrollerController.m_Scorller.RefreshActiveCellViews();//鍒锋柊鍙
if (AbsorbEvent != null)
@@ -373,7 +378,6 @@
AbsorbEvent(AbsorptionDic);
}
});
-
}
}
}
--
Gitblit v1.8.0