| System/KnapSack/Logic/ItemLogicUtility.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/KnapSack/Logic/ItemModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/KnapSack/New/EquipPlaceCell.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/KnapSack/New/RoleEquipWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/KnapSack/Logic/ItemLogicUtility.cs
@@ -1168,8 +1168,7 @@ { var itemPackage = packModel.GetSinglePack(PackType.Item); var allItems = itemPackage.GetAllItems(); ItemModel putModel = packModel.GetItemByIndex(PackType.Equip, equipPlace); equipPlace = (equipPlace == 9 || equipPlace == 10) ? 9 : equipPlace; var putModel = packModel.GetItemByIndex(PackType.Equip, equipPlace); var guid = string.Empty; var score = putModel == null ? 0 : putModel.score; foreach (var item in allItems.Values) System/KnapSack/Logic/ItemModel.cs
@@ -61,7 +61,17 @@ var createTime = GetUseDataFirstValue((int)ItemUseDataKey.createTime); if (createTime > 0) { var overdueTime = TimeUtility.GetTime((uint)createTime).AddSeconds(GetUseDataFirstValue(48)); var seconds = GetUseDataFirstValue(48); var overdueTime = DateTime.Now; if (seconds != 0) { overdueTime = TimeUtility.GetTime((uint)createTime).AddSeconds(seconds); } else { overdueTime = TimeUtility.GetTime((uint)createTime).AddSeconds(config.ExpireTime); } surplusTime = (int)(overdueTime).Subtract(TimeUtility.ServerNow).TotalSeconds; } } System/KnapSack/New/EquipPlaceCell.cs
@@ -17,7 +17,8 @@ public void Display(RoleEquipType equipType) { this.equipType = equipType; var item = packModel.GetItemByIndex(PackType.Equip, EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)equipType))); var packIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)equipType)); var item = packModel.GetItemByIndex(PackType.Equip, packIndex); if (item == null) { m_ItemCell.gameObject.SetActive(false); @@ -42,7 +43,8 @@ private void AddEqup() { var item = packModel.GetItemByIndex(PackType.Equip, (int)equipType); var packIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)equipType)); var item = packModel.GetItemByIndex(PackType.Equip, packIndex); if (item != null) { return; @@ -66,7 +68,8 @@ private void ShowEquipTip() { var item = packModel.GetItemByIndex(PackType.Equip, (int)equipType); var packIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)equipType)); var item = packModel.GetItemByIndex(PackType.Equip, packIndex); if (item == null) { return; System/KnapSack/New/RoleEquipWin.cs
@@ -131,7 +131,13 @@ return; } var equipType = (RoleEquipType)index; var equipPosition = EquipSet.ServerPlaceToClientPlace(index); if (equipPosition.x != 0) { return; } var equipType = (RoleEquipType)equipPosition.y; if (!equipPlaces.Contain(equipType)) { return;