From 3ba810d1d503e88c6754f1f7136222ccedd91981 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Fri, 22 May 2026 14:52:54 +0800 Subject: [PATCH] =?UTF-8?q?rft:=20=E7=A7=BB=E9=99=A4FightTask=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E4=BD=BF=E7=94=A8=E7=9A=84=E5=85=B3=E5=8D=A1=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FightSettingsUserControlModel.cs | 52 ------------------- 1 file changed, 52 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UserControl/TaskQueue/FightSettingsUserControlModel.cs b/src/MaaWpfGui/ViewModels/UserControl/TaskQueue/FightSettingsUserControlModel.cs index 7e9b101f66..ae7be148a1 100644 --- a/src/MaaWpfGui/ViewModels/UserControl/TaskQueue/FightSettingsUserControlModel.cs +++ b/src/MaaWpfGui/ViewModels/UserControl/TaskQueue/FightSettingsUserControlModel.cs @@ -122,58 +122,6 @@ public class FightSettingsUserControlModel : TaskSettingsViewModel, FightSetting StagePlan.Remove(plan); } - /// - /// Gets or sets the stage1. - /// - public string? Stage - { - get => field; - set { - if (field == value) - { - return; - } - - if (CustomStageCode) - { - // 从后往前删 - if (field?.Length != 3 && value != null) - { - value = ToUpperAndCheckStage(value); - } - } - - SetAndNotify(ref field, value); - SetFightParams(); - Instances.TaskQueueViewModel.UpdateDatePrompt(); - } - } - - /// - /// Gets or sets a value indicating whether to use custom stage code. - /// - public bool CustomStageCode - { - get => GetTaskConfig().IsStageManually; - set { - bool ret = SetTaskConfig(t => t.IsStageManually == value, t => t.IsStageManually = value); - if (ret && !value) - { - var stagePlan = GetTaskConfig().StagePlan; - for (int i = 0; i < stagePlan.Count; i++) - { - var stage = stagePlan[i]; - if (!Instances.StageManager.GetStageList().Any(p => p.Value == stage)) - { - stagePlan[i] = string.Empty; - } - } - SetTaskConfig(t => t.StagePlan.SequenceEqual(stagePlan), t => t.StagePlan = stagePlan); - RefreshCurrentStagePlan(); - } - } - } - /// /// Reset unsaved battle parameters. ///