From 6521aa56fbeba8d6509d5736bd35b1d42dcc4029 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 17 十一月 2025 19:12:37 +0800
Subject: [PATCH] 328 【主界面】坐骑系统
---
Main/System/Horse/HorseWin.cs | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/Main/System/Horse/HorseWin.cs b/Main/System/Horse/HorseWin.cs
index 6146299..336e7fe 100644
--- a/Main/System/Horse/HorseWin.cs
+++ b/Main/System/Horse/HorseWin.cs
@@ -157,20 +157,33 @@
keys.Sort();
//婊$骇 鍜屼笅绾у睘鎬�
var nextConfig = HorseClassConfig.Get(HorseManager.Instance.classLV + 1);
- var nextAttr = state == 1 ? nextConfig.ClassAttrValueList : (state == 0 ? config.PerLVAttrValueList : new int[config.AttrIDList.Length]);
for (int i = 0; i < attrNameTexts.Length; i++)
{
if (i < keys.Count)
{
attrNameTexts[i].text = PlayerPropertyConfig.Get(keys[i]).Name;
- attrValueTexts[i].text = PlayerPropertyConfig.GetValueDescription(keys[i], HorseManager.Instance.attrDic[keys[i]]);
- nextAttrValueTexts[i].text = PlayerPropertyConfig.GetValueDescription(keys[i], nextAttr[i]);
+ var curValue = HorseManager.Instance.attrDic[keys[i]];
+ attrValueTexts[i].text = PlayerPropertyConfig.GetValueDescription(keys[i], curValue, 2);
+ var addValue = 0;
+ if (state == 0)
+ {
+ addValue = config.PerLVAttrValueList[i];
+ }
+ else if (state == 1)
+ {
+ addValue = nextConfig.ClassAttrValueList[i] + nextConfig.PerLVAttrValueList[i];
+ }
+
+ nextAttrValueTexts[i].text = PlayerPropertyConfig.GetValueDescription(keys[i], curValue + addValue, 2);
}
}
}
string GetSpecialAttr()
{
+ if (HorseManager.Instance.specialAttrDic.Count == 0)
+ return "";
+
List<string> attrList = new List<string>();
foreach(var attrID in HorseManager.Instance.specialAttrDic.Keys)
{
--
Gitblit v1.8.0