diff --git a/Desktop/GameMapTesting/GameMapViewer.xaml.cs b/Desktop/GameMapTesting/GameMapViewer.xaml.cs index f578f0e..ca93ea1 100644 --- a/Desktop/GameMapTesting/GameMapViewer.xaml.cs +++ b/Desktop/GameMapTesting/GameMapViewer.xaml.cs @@ -1610,7 +1610,7 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting _actingCharacterForTargetSelection = character; _potentialTargetsForSelection = selectable; _potentialTargetGridForSelection = range; - _maxTargetsForSelection = skill.CanSelectTargetCount; + _maxTargetsForSelection = skill.RealCanSelectTargetCount(enemys, teammates); _canSelectAllTeammates = skill.SelectAllTeammates; _canSelectAllEnemies = skill.SelectAllEnemies; _canSelectSelf = skill.CanSelectSelf; @@ -1619,10 +1619,11 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting _isSelectingTargets = true; // 进入目标选择模式 SelectedTargets.Clear(); // 清空之前的选择 - TargetSelectionTitle.Text = $"选择 {skill.Name} 的目标 (最多 {skill.RealCanSelectTargetCount(enemys, teammates)} 个)"; + TargetSelectionTitle.Text = $"选择 {skill.Name} 的目标 (最多 {_maxTargetsForSelection} 个)"; TargetSelectionOverlay.Visibility = Visibility.Visible; if (_canSelectAllTeammates) { + SelectedTargets.Add(character); foreach (Character teammate in teammates) { SelectedTargets.Add(teammate); diff --git a/Library/Main.cs b/Library/Main.cs index c5d8969..ff43cf7 100644 --- a/Library/Main.cs +++ b/Library/Main.cs @@ -36,16 +36,16 @@ ActivityTest.Test3(); //await ActivityTest.Test(); -foreach (Item i in FunGameConstant.Equipment) -{ - Console.WriteLine(i.ToString(true, false)); -} - -//foreach (Skill s in FunGameConstant.Skills) +//foreach (Item i in FunGameConstant.Equipment) //{ -// s.Level = 1; -// Console.WriteLine(s.GetInfo()); +// Console.WriteLine(i.ToString(true, false)); //} + +foreach (Skill s in FunGameConstant.Skills) +{ + s.Level = 6; + Console.WriteLine(s.GetInfo()); +} //foreach (Skill m in FunGameConstant.Magics) //{ // m.Level = 1;