-
Notifications
You must be signed in to change notification settings - Fork 36
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
优化出牌延迟 #37
Conversation
time.sleep(4.75) | ||
self.click_dahai(mjai_msg, tehai, tsumohai) | ||
return | ||
elif not mjai_msg['tsumogiri']: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this
There was a problem hiding this 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.
只有手切时生效,分3个延迟档次,切28(万筒索),34567(万筒索),红宝牌,检测到有人立直时,轮到自己的第一次出牌也可以自定义时间,幺九牌和字牌则按正常RandomTime出牌时间出牌,不用的话可以在setting.json中将moqiedelay改为false