From 56091a5a2b3df0681996731982f812003daf85e9 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 20 九月 2018 15:52:47 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Treasure/TreasureSoulWin.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/System/Treasure/TreasureSoulWin.cs b/System/Treasure/TreasureSoulWin.cs
index 7656d22..0285684 100644
--- a/System/Treasure/TreasureSoulWin.cs
+++ b/System/Treasure/TreasureSoulWin.cs
@@ -423,11 +423,11 @@
int Compare(int x, int y)
{
- TreasureSpecialData special_x;
- TreasureSpecialData special_y;
- if (model.TryGetTreasureSoul(x, out special_x) && model.TryGetTreasureSoul(y, out special_y))
+ var leftConfig = Config.Instance.Get<TreasurePrivilegeConfig>(x);
+ var rightConfig = Config.Instance.Get<TreasurePrivilegeConfig>(y);
+ if (leftConfig != null && rightConfig != null)
{
- return special_x.treasureId.CompareTo(special_y.treasureId);
+ return leftConfig.sort.CompareTo(rightConfig.sort);
}
return x.CompareTo(y);
}
--
Gitblit v1.8.0