Skip to content

feat: Add ROG Labyrinth initial refarming function#314

Closed
firedrakeovo wants to merge 10 commits into
cc004:devfrom
firedrakeovo:feat/dev-labyrinth-function
Closed

feat: Add ROG Labyrinth initial refarming function#314
firedrakeovo wants to merge 10 commits into
cc004:devfrom
firedrakeovo:feat/dev-labyrinth-function

Conversation

@firedrakeovo

Copy link
Copy Markdown

Add auto re-roll (initial refarming) function for Dawn Realm ROG Labyrinth.
Support one-click initial farming, fully tested locally, compatible with current program logic.

Lanly109 and others added 5 commits June 1, 2026 18:29
- 新增「刷EX路径」开关(默认关闭):检查每张地图上多个极难格是否在同一可达路径
- 新增「刷遗物」选项(关闭/遗物/事件/任意):检查区域2/5第一个EX格前一格的类型
- 进行中黎明界在第一格时自动续判,符合条件复用,不符合放弃重开
- max_attempts 从 50 改为 100
- QQ命令 #黎明界刷开局 支持可选公会名参数
@Lanly109

Lanly109 commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

感谢pr,但部分代码风格与不太一致,需修改后才能并

  • 数据库获取放在database.py
  • 请求放在pcrclient.py
    但目前已重复造轮子了(

- pcrclient.py: 新增 labyrinth_resume() 封装方法
- database.py: 新增 labyrinth_enter_guild/quest_data/wave_group_data/enemy_parameter 懒加载属性
- methods.py: 新增 get_enemy_ids() 辅助方法
- handlers.py: reward_info_list 背包更新
- config.py: 新增 LabyrinthGuildConfig 公会配置类
- autosweep.py/gacha.py: 同步上游新增内容
- labyrinth.py: 重构为上游代码风格(db.xxx / client.labyrinth_xxx),
  Boss 定义改为硬编码对齐上游,新增难度解锁检查,刷遗物限制难度≥4
- server.py: QQ命令数据库查询改用 db.labyrinth_enter_guild
@firedrakeovo

Copy link
Copy Markdown
Author

Collaborator

最新提交已经参考dev分支的实现方式重构,并同步了最近的修改。功能实现上有些微差异,可以参考有价值的部分同步;

@firedrakeovo
firedrakeovo changed the base branch from main to dev July 6, 2026 08:03
@Lanly109
Lanly109 deleted the branch cc004:dev July 19, 2026 15:28
@Lanly109 Lanly109 closed this Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants