Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给 recruit 加个可选参数来加速公招 #109

Open
yuhjnmwe opened this issue Apr 16, 2022 · 0 comments
Open

给 recruit 加个可选参数来加速公招 #109

yuhjnmwe opened this issue Apr 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@yuhjnmwe
Copy link

yuhjnmwe commented Apr 16, 2022

给 recruit 加个可选参数来加速公招

预期效果

预期在用户端实现的效果如下

arknights-mower recruit [agents ...]
# 自动进行公共招募,agents为本次自动招募的目标,不指定则以配置文件为准
arknights-mower recruit -q99
# 自动进行公共招募,使用应急许可完成公招99次,默认探员优先级以配置文件为准

命令行介绍文本修改如下

recruit [agents ...] -q[N] 
    自动进行公共招募
    agents 优先考虑的公招干员若不指定则使用配置文件中的优先级默认为高稀有度优先
    -q 是否自动消耗应急许可N 预计消耗几张应急许可不填写则 -q 命令无效
    note实际进行公开招募次数可能大于N
    waring使用 -q 命令会造成龙门币招募券和应急许可大量消耗请量力而行建议添加在文本中recruit --plan使用配置文件中的参数以及干员优先级自动进行招募

方便部分博士完成任务,徽章或招募需求 (不会有人用这刷绿黄票吧?)

实现过程

可以根据下列提出的两个方案实现。

方案1:

  1. 按现有代码完成左上公共招募框的公共招募
  2. 重复给左上的公共招募框使用应急许可实现N次公共招募
  3. 判定到应急许可使用完毕
  4. 完成剩下公共招募框内的公共招募
  5. 最后一步结束时所有的公共招募框应是招聘状态

该方案实现复杂,需要大幅更改现有代码;判定过程繁琐

方案2:

  1. 按现有代码完成公共招募
  2. 给在所有招聘状态的公共招募框都使用应急许可
  3. 重复该流程直到完成N次加速
  4. 检查到有公共招募框不在招募状态则完成公共招募
  5. 最后一步结束时所有的公共招募框应是招聘状态

该方案可以直接在现有代码上增加判定,其余流程便于循环。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants