|
@@ -42,7 +42,9 @@ namespace GFGGame
|
|
|
|
|
|
public SuitFosterData GetSuitFosterData(int suitId)
|
|
public SuitFosterData GetSuitFosterData(int suitId)
|
|
{
|
|
{
|
|
- return _suitInfoBySuitIdDic[suitId];
|
|
|
|
|
|
+
|
|
|
|
+ return _suitInfoBySuitIdDic.ContainsKey(suitId) ? _suitInfoBySuitIdDic[suitId] : new SuitFosterData() { suitId = suitId, maintainStep = 0, maintainBonusSteps = new List<int>(), makeNewState = 0 };
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
//加成属性服装占比
|
|
//加成属性服装占比
|
|
@@ -86,6 +88,7 @@ namespace GFGGame
|
|
return new List<KeyValuePair<string, int>>(_dataPercent);
|
|
return new List<KeyValuePair<string, int>>(_dataPercent);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //获取当前阶段部件属性总值
|
|
public SortedList GetPropertyData(int suitId, int index)
|
|
public SortedList GetPropertyData(int suitId, int index)
|
|
{
|
|
{
|
|
SortedList propertyData = new SortedList();
|
|
SortedList propertyData = new SortedList();
|
|
@@ -108,5 +111,21 @@ namespace GFGGame
|
|
return propertyData;
|
|
return propertyData;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //0:未养护,1:养护中,2未养护
|
|
|
|
+ public int GetFosterState(int suitId, int index)
|
|
|
|
+ {
|
|
|
|
+ SuitFosterData suitFosterData = this.GetSuitFosterData(suitId);
|
|
|
|
+ if (suitFosterData.maintainStep == index)
|
|
|
|
+ {
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+ else if (suitFosterData.maintainStep < index)
|
|
|
|
+ {
|
|
|
|
+ return 2;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|