少年修仙传客户端代码仓库
hch
2020-11-02 d2b885ec709caacd1508e0fb7af2c42766994c5f
0312 优化扫荡物品排序
1个文件已修改
9 ■■■■ 已修改文件
System/Dungeon/DungeonSweepResultWin.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/DungeonSweepResultWin.cs
@@ -108,6 +108,13 @@
            }
        }
        private int compItem(Item itemA, Item itemB)
        {
            int colorA = ItemConfig.Get(itemA.id).ItemColor;
            int colorB = ItemConfig.Get(itemB.id).ItemColor;
            return colorB.CompareTo(colorA);
        }
        private void DrawItems()
        {
            var serveritems = model.dungeonResult.itemInfo;
@@ -118,7 +125,7 @@
                var serverItem = serveritems[i];
                items.Add(new Item(serverItem.ItemID, serverItem.Count));
            }
            items.Sort(compItem);
            for (int i = 0; i < itemBehaviours1.Length; i++)
            {
                var behaviour = itemBehaviours1[i];