From 1f50858a21f9b0ef486123745cf75fbf369d66a0 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期五, 28 九月 2018 22:08:49 +0800
Subject: [PATCH] 2614 【前端】神兽——强化功能
---
System/Strengthening/GodBeastSlidingList.cs | 12 +++++++++---
System/Strengthening/GodBeastModel.cs | 3 ++-
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/System/Strengthening/GodBeastModel.cs b/System/Strengthening/GodBeastModel.cs
index c280165..395f080 100644
--- a/System/Strengthening/GodBeastModel.cs
+++ b/System/Strengthening/GodBeastModel.cs
@@ -398,10 +398,11 @@
for (int i = 0; i < RedPointLIst.Count; i++)
{
ItemModel _itemModel = playerPack.GetItemModelByIndex(PackType.rptDogzEquip, RedPointLIst[i]);
+ int MaxLv= QualityLimit[_itemModel.chinItemModel.ItemColor];//鑾峰彇鏈�澶у己鍖栫瓑绾�
var _IudetDogzEquipPlus = _itemModel.GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus);
if (_IudetDogzEquipPlus != null)
{
- if (_IudetDogzEquipPlus[0] < Lv)
+ if (_IudetDogzEquipPlus[0]<MaxLv && _IudetDogzEquipPlus[0] < Lv)
{
Lv = _IudetDogzEquipPlus[0];
IndexId = RedPointLIst[i];
diff --git a/System/Strengthening/GodBeastSlidingList.cs b/System/Strengthening/GodBeastSlidingList.cs
index b3bd301..5745933 100644
--- a/System/Strengthening/GodBeastSlidingList.cs
+++ b/System/Strengthening/GodBeastSlidingList.cs
@@ -47,7 +47,7 @@
GodBeastModel godBeastModel { get { return ModelCenter.Instance.GetModel<GodBeastModel>(); } }
private void Awake()
{
-
+
}
private void Start()
{
@@ -307,7 +307,7 @@
else
{
return;
- }
+ }
}
}
}
@@ -385,12 +385,18 @@
int childCode = 0;
for (childCode = 0; childCode < cell.transform.childCount; childCode++)
{
+
GodBeastChildNodes GodBeastChildNodes = cell.transform.GetChild(childCode).GetComponent<GodBeastChildNodes>();
+ int cellCount = (cell.transform.childCount) * gridlineIndex + (childCode + 1);
+ if (cellCount > 100)
+ {
+ GodBeastChildNodes.gameObject.SetActive(false);
+ continue;
+ }
GodBeastChildNodes.ItemCell.gameObject.SetActive(false);
GodBeastChildNodes.ChoosenImg.SetActive(false);
GodBeastChildNodes.TextNumber.gameObject.SetActive(false);
GodBeastChildNodes.NumberNow.gameObject.SetActive(false);
- int cellCount = (cell.transform.childCount) * gridlineIndex + (childCode + 1);
GodBeastChildNodes.ButtonDown.RemoveAllListeners();
if (cellCount - 1 < GodBeastBagList.Count)
{
--
Gitblit v1.8.0