perf: 移除过旧的任务参数

涉及:
自动战斗: is_raid, is_adverse, add_user_additional
肉鸽任务: investment_enter_second_floor, investment_with_more_score
This commit is contained in:
status102
2025-05-06 18:21:55 +08:00
parent 558746add6
commit c3a7ae0c22
2 changed files with 5 additions and 7 deletions

View File

@@ -78,10 +78,7 @@ bool asst::CopilotTask::set_params(const json::value& params)
Log.warn("================ DEPRECATED ================");
Log.warn("`is_adverse` has been deprecated since v5.0.0-beta.3; Please use 'is_raid'");
Log.warn("================ DEPRECATED ================");
if (!params.contains("is_raid")) {
// 兼容旧版本在v6.0改为存在此参数时直接return false
is_raid = params.get("is_adverse", false);
}
return false;
}
bool use_sanity_potion = params.get("use_sanity_potion", false); // 是否吃理智药
bool with_formation = params.get("formation", false); // 是否使用自动编队
@@ -96,6 +93,7 @@ bool asst::CopilotTask::set_params(const json::value& params)
Log.warn("================ DEPRECATED ================");
Log.warn("`add_user_additional` has been deprecated since v5.1.0-beta.1;");
Log.warn("================ DEPRECATED ================");
return false;
}
auto filename_opt = params.find<std::string>("filename");

View File

@@ -82,10 +82,10 @@ bool asst::RoguelikeConfig::verify_and_load_params(const json::value& params)
if (!params.contains("investment_with_more_score") && params.contains("investment_enter_second_floor")) {
investment_with_more_score = params.get("investment_enter_second_floor", true);
Log.warn("================ DEPRECATED ================");
Log.warn(
"`investment_enter_second_floor` has been deprecated since v5.2.1; Please use "
"'investment_with_more_score'");
LogWarn << "`investment_enter_second_floor` has been deprecated since v5.2.1; Please use "
"'investment_with_more_score'";
Log.warn("================ DEPRECATED ================");
return false;
}
m_invest_with_more_score = (investment_with_more_score);
}