Commit a77c4f12 authored by Chunchi Che's avatar Chunchi Che

fix timelimit

parent 6ab710fe
Pipeline #21631 passed with stages
in 11 minutes and 47 seconds
import { sendTimeConfirm, ygopro } from "@/api";
import { matStore } from "@/stores";
const TIME_GAP = 200; // TODO: use config
export default function handleTimeLimit(timeLimit: ygopro.StocTimeLimit) {
setTimeout(() => {
matStore.timeLimits.set(timeLimit.player, timeLimit.left_time);
sendTimeConfirm();
}, TIME_GAP);
matStore.timeLimits.set(timeLimit.player, timeLimit.left_time);
sendTimeConfirm();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment