From b2d7bb59dc37c7b350786b076ee2f344b7c8911f Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期一, 11 八月 2025 17:26:47 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts --- Main/System/Hero/HeroManager.cs | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Main/System/Hero/HeroManager.cs b/Main/System/Hero/HeroManager.cs index 416dbc2..01aceb6 100644 --- a/Main/System/Hero/HeroManager.cs +++ b/Main/System/Hero/HeroManager.cs @@ -147,9 +147,12 @@ public int GetHeroCount() - { + { return heroInfoDict.Count; } - + public bool HasHero(int heroID) + { + return PackManager.Instance.GetSinglePack(PackType.Hero).HasItem(heroID); + } } \ No newline at end of file -- Gitblit v1.8.0