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

新线索 Bug Fix #712

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DavidDeruiyang
Copy link

@DavidDeruiyang DavidDeruiyang commented Dec 8, 2024

麻烦各位大佬看一下,我用的code base source from:https://git.zhaozuohong.vip/mower-ng/mower-ng
这个repo和github的repo不太一样,但是苦于没有办法联系到repo owner,对于Forgejo不是很熟悉没有账号无法contribute,只能在这里post PR。
实际的code update route 应该是:mower-ng\mower\solvers\infra\clue_init_.py : ClueManager


标题: 修复线索满时无法收集每日线索的 bug

描述:
根据 Issue #557 “新线索” Bug-3 的修复。当线索数量满时,"DailySolver" 无法收集每日线索。旧代码中,DailySolver.run() 被调用在 GiveAwaySolverGetClueCountSolver 之前,导致如果线索数量已满时,无法收集每日线索。

变更内容:

  • 根据我自己的游玩经验更新了操作顺序:1. 首先收集朋友线索 (GiveAwaySolver); 2. 接着赠送线索 (GiveAwaySolver);3. 最后收集每日线索 (DailySolver)。
  • 考虑到不同玩家需求,如果线索数量未满,DailySolver.run() 将在 GiveAwaySolver 之前调用以收集每日线索(DailySolver 会被call两次)

Title: Fix bug where daily clues cannot be collected when clue count is full


Description:
This update fixes the issue where the "DailySolver" cannot collect daily clues when the clue count is full (i.e., 10). In the old code, DailySolver.run() was called before GiveAwaySolver and GetClueCountSolver, preventing the collection of daily clues if the clue count was full.

Changes:

  • The sequence of operations has been updated:
    1. First, we collect the clues from friends (GiveAwaySolver).
    2. Next, we give away the clues (GiveAwaySolver).
    3. Finally, we collect the daily clues (DailySolver), but only if the clue count is not full (<= 9).
  • If the clue count is not full, DailySolver.run() will still be called before GiveAwaySolver to collect the daily clues.

This fix ensures that the system will always collect daily clues when the clue count is not full and gives priority to giving away clues when necessary.

@Anyk00
Copy link
Contributor

Anyk00 commented Dec 9, 2024

mower-ng和mower不太一样,这边如果想改代码的话是提交到2024.12.1分支里面。

@DavidDeruiyang
Copy link
Author

DavidDeruiyang commented Dec 9, 2024

mower-ng和mower不太一样,这边如果想改代码的话是提交到2024.12.1分支里面。

想请问一下现在mower的main branch还有在维护吗?如果想改mower-ng的代码的话应该怎么做?

@Shawnsdaddy
Copy link
Contributor

mower-ng和mower不太一样,这边如果想改代码的话是提交到2024.12.1分支里面。

想请问一下现在mower的main branch还有在维护吗?如果想改mower-ng的代码的话应该怎么做?

PR之前麻烦看一下readme,
image

NG 是分支,前开发携库跑路。

main branch 在2024.12.1 分支

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.

3 participants