|
|
@@ -54,18 +54,17 @@ namespace Fort23.Mono
|
|
|
if (itemInfo.config.itemTag == 11)
|
|
|
{
|
|
|
csc.ChangeState(itemInfo.config.quality - 3);
|
|
|
- AccountFileInfo.FaBaoData faaData = AccountFileInfo.Instance.playerData.AllFaBaoDatas.FirstOrDefault(
|
|
|
- f =>
|
|
|
- f.id == itemInfo.config.associateVlaue[1]);
|
|
|
- if (faaData != null)
|
|
|
+
|
|
|
+ if (itemInfo.isSuiPian)
|
|
|
{
|
|
|
itemConfig = ConfigComponent.Instance.Get<ItemConfig>(itemInfo.config.associateVlaue[0]);
|
|
|
Icon_SuiPian.gameObject.SetActive(true);
|
|
|
count = itemInfo.config.associateVlaue[2];
|
|
|
- Text_Count.text = $"x{count}";
|
|
|
+ // Text_Count.text = $"x{count}";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ count = 1;
|
|
|
Icon_SuiPian.gameObject.SetActive(false);
|
|
|
Icon_New.gameObject.SetActive(true);
|
|
|
}
|
|
|
@@ -74,20 +73,17 @@ namespace Fort23.Mono
|
|
|
else if (itemInfo.config.itemTag == 13)
|
|
|
{
|
|
|
csc.ChangeState(itemInfo.config.quality - 3);
|
|
|
- AccountFileInfo.SkillData skillData = AccountFileInfo.Instance.playerData.AllSkillDatas.FirstOrDefault(
|
|
|
- s =>
|
|
|
- s.id == itemInfo.config.associateVlaue[1]);
|
|
|
- if (skillData != null)
|
|
|
+
|
|
|
+ if (itemInfo.isSuiPian)
|
|
|
{
|
|
|
itemConfig = ConfigComponent.Instance.Get<ItemConfig>(itemInfo.config.associateVlaue[0]);
|
|
|
Icon_SuiPian.gameObject.SetActive(true);
|
|
|
count = itemInfo.config.associateVlaue[2];
|
|
|
- Text_Count.text = $"x{count}";
|
|
|
- // Text_Count.text = $"x{itemInfo.config.associateVlaue[2]}";
|
|
|
- // Icon_New.gameObject.SetActive(true);
|
|
|
+ // Text_Count.text = $"x{count}";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ count = 1;
|
|
|
Icon_SuiPian.gameObject.SetActive(false);
|
|
|
Icon_New.gameObject.SetActive(true);
|
|
|
}
|
|
|
@@ -96,7 +92,7 @@ namespace Fort23.Mono
|
|
|
{
|
|
|
Icon_SuiPian.gameObject.SetActive(false);
|
|
|
count = (int)(itemInfo.count.Value);
|
|
|
- Text_Count.text = $"x{count}";
|
|
|
+ // Text_Count.text = $"x{count}";
|
|
|
csc.ChangeState(0);
|
|
|
}
|
|
|
|
|
|
@@ -168,7 +164,8 @@ namespace Fort23.Mono
|
|
|
|
|
|
|
|
|
Text_Name.text = LanguageManager.Instance.Text(itemConfig.itemName);
|
|
|
-
|
|
|
+ // count = (int)(itemInfo.count.Value);
|
|
|
+ Text_Count.text = $"x{count}";
|
|
|
// if (itemInfo.count.Value > 0)
|
|
|
// {
|
|
|
// Text_Count.gameObject.SetActive(true);
|