| System/Mount/MountWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Pet/PetAttributeWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/Mount/MountWin.cs
@@ -584,8 +584,8 @@ } int Compare(HorseConfig x, HorseConfig y)//数组排列 { bool havex = IsNoFullLv(x.HorseID); bool havey = IsNoFullLv(y.HorseID); int havex = NoFullLv(x.HorseID); int havey = NoFullLv(y.HorseID); bool have_x = IsFullLv(x.HorseID); bool have_y = IsFullLv(y.HorseID); if (havex.CompareTo(havey) != 0) @@ -602,21 +602,29 @@ } return 1; } private bool IsNoFullLv(int mountID)//未满街 private int NoFullLv(int mountID)//未满街 { HorseConfig HorseConfig = HorseConfig.Get(mountID); int MaterialNumber = playerPack.GetItemCountByID(PackType.Item, HorseConfig.UnlockItemID);//获取背包解锁材料的数量 if (MaterialNumber != 0) { return 3; } if (int.Parse(mountModel._HorseIDNow) == mountID) return 2; if (mountModel._DicHorse.ContainsKey(mountID)) { if (HorseConfig.MaxLV > mountModel._DicHorse[mountID].Lv) { return true; return 1; } else { return false; return 0; } } return false; return 0; } private bool IsFullLv(int mountID)//满阶 { System/Pet/PetAttributeWin.cs
@@ -263,8 +263,8 @@ } int Compare(PetInfoConfig x, PetInfoConfig y)//数组排列 { bool havex = IsNoFullLv(x.ID); bool havey = IsNoFullLv(y.ID); int havex = NoFullLv(x.ID); int havey = NoFullLv(y.ID); bool have_x = IsFullLv(x.ID); bool have_y = IsFullLv(y.ID); if (havex.CompareTo(havey) != 0) @@ -281,21 +281,28 @@ } return 1; } private bool IsNoFullLv(int petID)//未满街 private int NoFullLv(int petID)//未满街 { PetInfoConfig PetConfig = PetInfoConfig.Get(petID); int MaterialNumber = playerPack.GetItemCountByID(PackType.Item, PetConfig.UnLockNeedItemID);//获取背包解锁材料的数量 if (MaterialNumber != 0) { return 3; } if (petmodel.PetNow == petID) return 2; if (petmodel._DicPetBack.ContainsKey(petID)) { if (PetConfig.MaxRank > petmodel._DicPetBack[petID].PetClass) { return true; return 1; } else { return false; return 0; } } return false; return 0; } private bool IsFullLv(int petID)//满阶 {