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

优化出牌延迟 #37

Merged
merged 5 commits into from
Mar 17, 2024
Merged

优化出牌延迟 #37

merged 5 commits into from
Mar 17, 2024

Conversation

motoiro
Copy link
Contributor

@motoiro motoiro commented Mar 17, 2024

只有手切时生效,分3个延迟档次,切28(万筒索),34567(万筒索),红宝牌,检测到有人立直时,轮到自己的第一次出牌也可以自定义时间,幺九牌和字牌则按正常RandomTime出牌时间出牌,不用的话可以在setting.json中将moqiedelay改为false

@shinkuan shinkuan changed the base branch from main to dev March 17, 2024 09:10
time.sleep(4.75)
self.click_dahai(mjai_msg, tehai, tsumohai)
return
elif not mjai_msg['tsumogiri']:
Copy link
Owner

Choose a reason for hiding this comment

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

Instead of setting some delay here, let users choose delay themself.

@@ -6,6 +6,7 @@
"new_max": 4.5,
"min": 1.0,
"max": 3.2
"moqiedelay": true
Copy link
Owner

Choose a reason for hiding this comment

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

Missing "," here

client.py Outdated
@@ -516,6 +521,8 @@ def get_messages(self):
assert isinstance(messages, bytes)
self.messages_dict[flow_id].append(messages)
liqi_msg = self.liqi[flow_id].parse(messages)
Copy link
Owner

Choose a reason for hiding this comment

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

Remove this

@shinkuan shinkuan merged commit 7fa6544 into shinkuan:dev Mar 17, 2024
Copy link
Owner

@shinkuan shinkuan left a comment

Choose a reason for hiding this comment

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

Todo: add these feature to settings menu.

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.

None yet

2 participants