From 6d3da15158f9584edd2e61b17d3d1e23ef9a0230 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 17 九月 2025 15:59:51 +0800
Subject: [PATCH] 117 【武将】武将系统 - 增加非玩家武将配置
---
Main/System/HeroUI/HeroUIManager.Collect.cs | 2 ++
Main/System/HeroUI/HeroUIManager.cs | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Main/System/HeroUI/HeroUIManager.Collect.cs b/Main/System/HeroUI/HeroUIManager.Collect.cs
index fc12286..ce72014 100644
--- a/Main/System/HeroUI/HeroUIManager.Collect.cs
+++ b/Main/System/HeroUI/HeroUIManager.Collect.cs
@@ -71,6 +71,8 @@
foreach (var heroID in heroIDs)
{
HeroConfig heroConfig = HeroConfig.Get(heroID);
+ if (heroConfig.PlayerCanUse == 0)
+ continue;
if (!heroCollectDict.ContainsKey(heroConfig.Quality))
{
heroCollectDict[heroConfig.Quality] = new List<int>();
diff --git a/Main/System/HeroUI/HeroUIManager.cs b/Main/System/HeroUI/HeroUIManager.cs
index 9a0dabc..b0f8634 100644
--- a/Main/System/HeroUI/HeroUIManager.cs
+++ b/Main/System/HeroUI/HeroUIManager.cs
@@ -484,6 +484,9 @@
heroBookRedpointList.Clear();
foreach (var key in HeroConfig.GetKeys())
{
+ var config = HeroConfig.Get(key);
+ if (config.PlayerCanUse == 0)
+ continue;
heroBookRedpointList.Add(new Redpoint(MainRedDot.HeroCardCollectRedpoint, MainRedDot.HeroCardCollectRedpoint * 10000000 + key));
}
}
--
Gitblit v1.8.0