mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
docs: 肉鸽设置追加部分注释
This commit is contained in:
@@ -156,12 +156,13 @@ bool asst::RoguelikeTask::set_params(const json::value& params)
|
||||
m_roguelike_task_ptr->set_times_limit("StageTraderInvestConfirm", INT_MAX);
|
||||
}
|
||||
|
||||
m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::Squad, params.get("squad", ""));
|
||||
m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::Roles, params.get("roles", ""));
|
||||
m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::CoreChar, params.get("core_char", ""));
|
||||
m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::Squad, params.get("squad", "")); // 开局分队
|
||||
m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::Roles, params.get("roles", "")); // 开局职业组
|
||||
m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::CoreChar, params.get("core_char", "")); // 开局干员名
|
||||
m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::UseSupport,
|
||||
params.get("use_support", false) ? "1" : "0");
|
||||
params.get("use_support", false) ? "1" : "0"); // 开局干员是否为助战干员
|
||||
m_custom_start_plugin_ptr->set_custom(RoguelikeCustomType::UseNonfriendSupport,
|
||||
params.get("use_nonfriend_support", false) ? "1" : "0");
|
||||
params.get("use_nonfriend_support", false) ? "1"
|
||||
: "0"); // 是否可以是非好友助战干员
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -53,15 +53,15 @@ namespace asst
|
||||
int get_difficulty() const { return m_difficulty; }
|
||||
void set_start_with_elite_two(bool start_with_elite_two) { m_start_with_elite_two = start_with_elite_two; }
|
||||
bool get_start_with_elite_two() const { return m_start_with_elite_two; }
|
||||
void set_only_start_with_elite_two(bool only_start_with_elite_two) { m_only_start_with_elite_two = only_start_with_elite_two; }
|
||||
void set_only_start_with_elite_two(bool value) { m_only_start_with_elite_two = value; }
|
||||
bool get_only_start_with_elite_two() const { return m_only_start_with_elite_two; }
|
||||
|
||||
private:
|
||||
std::string m_theme; // 肉鸽主题
|
||||
RoguelikeMode m_mode = RoguelikeMode::Exp;
|
||||
int m_difficulty = 0;
|
||||
bool m_start_with_elite_two = false;
|
||||
bool m_only_start_with_elite_two = false;
|
||||
std::string m_theme; // 主题
|
||||
RoguelikeMode m_mode = RoguelikeMode::Exp; // 模式
|
||||
int m_difficulty = 0; // 难度
|
||||
bool m_start_with_elite_two = false; // 在刷开局模式下凹开局干员精二直升
|
||||
bool m_only_start_with_elite_two = false; // 只凹开局干员精二直升且不进行作战
|
||||
|
||||
/* 以下为每次重置 */
|
||||
public:
|
||||
@@ -89,14 +89,14 @@ namespace asst
|
||||
const std::vector<std::string>& get_foldartal() const { return m_foldartal; }
|
||||
|
||||
private:
|
||||
int m_recruitment_count = 0; // 肉鸽招募次数
|
||||
int m_recruitment_count = 0; // 招募次数
|
||||
bool m_recruitment_starts_complete = false; // 开局干员是否已经招募
|
||||
bool m_recruitment_team_complete = false; // 阵容是否完备
|
||||
bool m_trader_no_longer_buy = false;
|
||||
std::string m_core_char;
|
||||
std::string m_core_char; // 开局干员名
|
||||
bool m_team_full_without_rookie = false;
|
||||
bool m_use_support = false;
|
||||
bool m_use_nonfriend_support = false;
|
||||
bool m_use_support = false; // 开局干员是否为助战干员
|
||||
bool m_use_nonfriend_support = false; // 是否可以是非好友助战干员
|
||||
std::unordered_map<std::string, RoguelikeOper> m_oper; // 干员精英&等级
|
||||
std::optional<std::string> m_foldartal_floor; // 当前层的预见密文板,在下一层获得
|
||||
std::vector<std::string> m_foldartal; // 所有密文板
|
||||
|
||||
Reference in New Issue
Block a user