fix: 加入了遗漏的判定

This commit is contained in:
violetc
2023-12-21 16:25:20 +08:00
parent 5ae505b853
commit b96ce13fd0
3 changed files with 5 additions and 4 deletions

View File

@@ -224,6 +224,8 @@ AsstTaskId ASSTAPI AsstAppendTask(AsstHandle handle, const char* type, const cha
"squad": string, // 开局分队,可选,例如 "突击战术分队" 等,默认 "指挥分队"
"roles": string, // 开局职业组,可选,例如 "先手必胜" 等,默认 "取长补短"
"core_char": string, // 开局干员名,可选,仅支持单个干员中!文!名!。默认识别练度自动选择
"start_with_elite_two": bool // 是否在刷开局模式下凹开局干员精二直升,可选,默认 false
"only_start_with_elite_two": bool // 是否只凹开局干员精二直升且不进行作战,可选,默认 falsestart_with_elite_two为true时有效
"use_support": bool, // 开局干员是否为助战干员,可选,默认 false
"use_nonfriend_support": bool, // 是否可以是非好友助战干员,可选,默认 falseuse_support为true时有效
"refresh_trader_with_dice": bool // 是否用骰子刷新商店购买特殊商品,目前支持水月肉鸽的指路鳞,可选,默认 false

View File

@@ -2012,8 +2012,8 @@ namespace MaaWpfGui.Main
taskParams["core_char"] = coreChar;
}
taskParams["start_with_elite_two"] = startWithEliteTwo;
taskParams["only_start_with_elite_two"] = onlyStartWithEliteTwo;
taskParams["start_with_elite_two"] = theme != "Phantom" && startWithEliteTwo;
taskParams["only_start_with_elite_two"] = theme != "Phantom" && onlyStartWithEliteTwo;
taskParams["use_support"] = useSupport;
taskParams["use_nonfriend_support"] = enableNonFriendSupport;
taskParams["refresh_trader_with_dice"] = theme == "Mizuki" && refreshTraderWithDice;

View File

@@ -126,7 +126,6 @@
<CheckBox
Margin="0,10"
IsChecked="{Binding RoguelikeStartWithEliteTwo}"
IsEnabled="{c:Binding 'RoguelikeMode != &quot;5&quot;'}"
Visibility="{c:Binding 'RoguelikeMode == &quot;4&quot; and RoguelikeTheme != &quot;Phantom&quot;'}">
<TextBlock
Block.TextAlignment="Left"
@@ -136,7 +135,7 @@
<CheckBox
Margin="0,10"
IsChecked="{Binding RoguelikeOnlyStartWithEliteTwo}"
IsEnabled="{c:Binding 'RoguelikeMode != &quot;5&quot; and RoguelikeStartWithEliteTwo'}"
IsEnabled="{Binding RoguelikeStartWithEliteTwo}"
Visibility="{c:Binding 'RoguelikeMode == &quot;4&quot; and RoguelikeTheme != &quot;Phantom&quot;'}">
<TextBlock
Block.TextAlignment="Left"