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

取消托管后剩余的时间不准确 #138

Open
CuteReimu opened this issue Jan 19, 2024 · 0 comments
Open

取消托管后剩余的时间不准确 #138

CuteReimu opened this issue Jan 19, 2024 · 0 comments
Assignees
Labels
enhancement 新特性,新功能

Comments

@CuteReimu
Copy link
Owner

CuteReimu commented Jan 19, 2024

if (timeout != null && timeout!!.cancel()) {
var delay = Config.WaitSecond + 1
if (game!!.fsm is MainPhaseIdle || game!!.fsm is WaitForDieGiveCard)
delay = Config.WaitSecond * 4 / 3 + 1
else if (game!!.fsm is WaitForSelectRole)
delay = Config.WaitSecond * 2 + 1
timeout =
GameExecutor.TimeWheel.newTimeout(timeout!!.task(), delay.toLong(), TimeUnit.SECONDS)
}

@CuteReimu CuteReimu added the enhancement 新特性,新功能 label Jan 19, 2024
@CuteReimu CuteReimu self-assigned this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 新特性,新功能
Projects
None yet
Development

No branches or pull requests

1 participant