From bae41593e19d32046f77ed1f036089e015380b99 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期三, 30 七月 2025 22:25:18 +0800 Subject: [PATCH] 117 【武将】武将系统 - 布阵临时版 --- Main/System/Team/TeamManager.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Main/System/Team/TeamManager.cs b/Main/System/Team/TeamManager.cs index 38c6ec8..7c000a5 100644 --- a/Main/System/Team/TeamManager.cs +++ b/Main/System/Team/TeamManager.cs @@ -47,7 +47,7 @@ // 鎵�鍦ㄩ樀瀹逛俊鎭垪琛� [闃靛绫诲瀷*10000+闃靛瀷绫诲瀷*100+浣嶇疆缂栧彿, ...] int teamType = teamMsg / 10000; int shapeType = (teamMsg % 10000) / 100; - int positionIndex = teamMsg % 100; + int positionIndex = teamMsg % 100 - 1; //甯冮樀浣嶇疆锛氭湇鍔$涓� 1 瀹㈡埛绔负0 if (teamTypeShapeTypePositionDict.ContainsKey((TeamType)teamType)) { @@ -86,7 +86,7 @@ else { // 闃熶紞閲屾湁杩欎釜鑻遍泟锛屼絾鏄湪闃熶紞淇℃伅閲屾病鏈変簡 缃┖ 锛堣绉诲嚭闃熶紞锛� - team.SetTeamHero(teamHero.positionNum, null); + team.RemoveHero(teamHero.positionNum); } } // 鍘熸潵闃熶紞閲屾病杩欎釜鑻遍泟 @@ -97,7 +97,7 @@ if (teamTypeShapeTypePositionDict.ContainsKey(team.teamType)) { KeyValuePair<int, int> shapeTypePosition = teamTypeShapeTypePositionDict[team.teamType]; - team.RefreshServerData(shapeTypePosition.Key, shapeTypePosition.Value, null); + team.RefreshServerData(shapeTypePosition.Key, shapeTypePosition.Value, heroInfo); } } } @@ -128,7 +128,7 @@ // 鎵�鍦ㄩ樀瀹逛俊鎭垪琛� [闃靛绫诲瀷*10000+闃靛瀷绫诲瀷*100+浣嶇疆缂栧彿, ...] int teamType = teamMsg / 10000; int shapeType = (teamMsg % 10000) / 100; - int positionIndex = teamMsg % 100; + int positionIndex = teamMsg % 100 - 1; //甯冮樀浣嶇疆锛氭湇鍔$涓� 1 瀹㈡埛绔负0 TeamBase team = GetTeam((TeamType)teamType); @@ -152,7 +152,7 @@ { team = new TeamBase(teamType); // team.CreateDefault(HeroManager.Instance.GetPowerfulHeroList()); - // teamDict.Add(teamType, team); + teamDict.Add(teamType, team); } return team; -- Gitblit v1.8.0