From 68869f5b4b4139958942294522471ff9f9f6c8f9 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 27 五月 2026 14:56:13 +0800
Subject: [PATCH] 656 布阵阵型增加混搭武将组合
---
Main/System/HeroUI/HeroPosWin.cs | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/Main/System/HeroUI/HeroPosWin.cs b/Main/System/HeroUI/HeroPosWin.cs
index 7ed586b..0e95cc9 100644
--- a/Main/System/HeroUI/HeroPosWin.cs
+++ b/Main/System/HeroUI/HeroPosWin.cs
@@ -238,6 +238,31 @@
//涓婇樀姝﹀皢鍥藉鍏夌幆婵�娲�
void RefreshOnTeamCountry(bool playEffect = false)
{
+ // 鍏堟鏌ユ贩鎼樀鍨�
+ var mixedConfig = HeroUIManager.Instance.GetMixedFormationConfig(HeroUIManager.Instance.selectTeamType, true);
+ if (mixedConfig != null)
+ {
+ countryOnImg.SetSprite("heroTeamCountryHe");
+ var participatingCountries = HeroUIManager.Instance.GetParticipatingCountriesByPriority(HeroUIManager.Instance.selectTeamType, true);
+ int totalPoints = mixedConfig.Countrys * mixedConfig.NeedHeroCount;
+ for (int i = 0; i < OnCountImgs.Count; i++)
+ {
+ if (i < totalPoints)
+ {
+ int countryIndex = i / mixedConfig.NeedHeroCount;
+ OnCountImgs[i].SetActive(true);
+ OnCountImgs[i].SetSprite("heroTeamCountryPoint" + participatingCountries[countryIndex]);
+ }
+ else
+ {
+ OnCountImgs[i].SetActive(false);
+ }
+ }
+ if (playEffect)
+ countryEffect.Play();
+ return;
+ }
+
Int2 result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.selectTeamType, true);
var config = HeroLineupHaloConfig.GetConfig(result.x, result.y);
--
Gitblit v1.8.0