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. ///