From 4ac393352989803a3030fd040671cbb227578b67 Mon Sep 17 00:00:00 2001 From: Loong <40141251+wangl-cc@users.noreply.github.com> Date: Sat, 7 Sep 2024 13:10:20 +0100 Subject: [PATCH] fix: roguelike params name --- maa-cli/src/run/preset/roguelike.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/maa-cli/src/run/preset/roguelike.rs b/maa-cli/src/run/preset/roguelike.rs index bb92ec17..3e0323a5 100644 --- a/maa-cli/src/run/preset/roguelike.rs +++ b/maa-cli/src/run/preset/roguelike.rs @@ -113,9 +113,9 @@ pub struct RoguelikeParams { /// Whether to use Foldartal in Sami theme #[arg(long)] use_foldartal: bool, - /// A list of expected Foldartal to be check at first floor + /// A list of expected Foldartal to be started with #[arg(short = 'F', long)] - first_floor_foldartal: Vec, + start_foldartal: Vec, // Collapsal paradigm related parameters /// Whether to check collapsal paradigms #[arg(long)] @@ -197,12 +197,12 @@ impl TryFrom for MAAValue { } Theme::Sami => { value.insert("use_foldartal", params.use_foldartal); - if !params.first_floor_foldartal.is_empty() { + if !params.start_foldartal.is_empty() { value.insert( - "first_floor_foldartal", + "start_foldartal_list", MAAValue::Array( params - .first_floor_foldartal + .start_foldartal .into_iter() .map(MAAValue::from) .collect(), @@ -433,7 +433,7 @@ mod tests { .unwrap(), sami_params.join(object!( "use_foldartal" => true, - "first_floor_foldartal" => MAAValue::Array(vec![ + "start_foldartal_list" => MAAValue::Array(vec![ MAAValue::from("英雄"), MAAValue::from("大地"), ]),