From 95e525db797001becb4eaa2562255ef22e5b7c89 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 15 十二月 2025 19:02:18 +0800
Subject: [PATCH] 130 信息提示的参数支持武将的品质 、武将的名字
---
Main/System/Message/RichTableEvent.cs | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/Main/System/Message/RichTableEvent.cs b/Main/System/Message/RichTableEvent.cs
index e024d2d..3d90848 100644
--- a/Main/System/Message/RichTableEvent.cs
+++ b/Main/System/Message/RichTableEvent.cs
@@ -111,7 +111,20 @@
NPCConfig cfg = NPCConfig.Get(id);
if (cfg != null)
{
- return cfg.NPCName;
+ return cfg.NPCName;
+ }
+ }
+ }
+ break;
+ case "hero":
+ {
+ int id = 0;
+ if (_dict.ContainsKey("id") && int.TryParse(_dict["id"], out id))
+ {
+ HeroConfig cfg = HeroConfig.Get(id);
+ if (cfg != null)
+ {
+ return UIHelper.AppendColor(UIHelper.GetUIColorByFunc(cfg.Quality), cfg.Name) ;
}
}
}
--
Gitblit v1.8.0