Skip to content

Commit

Permalink
fix: roguelike params name
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Sep 7, 2024
1 parent 4a11c96 commit 4ac3933
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions maa-cli/src/run/preset/roguelike.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
start_foldartal: Vec<String>,
// Collapsal paradigm related parameters
/// Whether to check collapsal paradigms
#[arg(long)]
Expand Down Expand Up @@ -197,12 +197,12 @@ impl TryFrom<RoguelikeParams> 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(),
Expand Down Expand Up @@ -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("大地"),
]),
Expand Down

0 comments on commit 4ac3933

Please sign in to comment.