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

修复因明日方舟新增“中坚寻访”导致抽卡模拟不可用的问题 #1418

Merged
merged 1 commit into from
May 16, 2023

Conversation

RenYuan2004
Copy link
Contributor

修复因明日方舟新增“中坚寻访”导致抽卡模拟不可用的问题,优化up池及up概率抓取,将中坚干员排除出干员池

修复因明日方舟新增“中坚寻访”导致抽卡模拟不可用的问题,优化up池及up概率抓取,将中坚干员排除出干员池
if "权值" in char:
match = re.search(r"(在.*?以.*?(\d+).*?倍权值.*?)", char)
Copy link
Contributor Author

@RenYuan2004 RenYuan2004 May 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原代码此处错误抓取了“5”(倍)并将up权值设置为了5.0,实际概率经计算后约为0.03(截止至2023.5.14,为5/52*2%)

@HibiKier HibiKier merged commit 0d3c6d8 into HibiKier:main May 16, 2023
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