Minor improvements and fixes

This commit is contained in:
MaciejkaG 2024-03-02 18:36:40 +01:00
parent 72da84c3d6
commit 018e03aa6e

View File

@ -217,7 +217,12 @@ io.on('connection', async (socket) => {
let UTCTs = Math.floor((new Date()).getTime() / 1000 + 90); let UTCTs = Math.floor((new Date()).getTime() / 1000 + 90);
io.to(playerGame.id).emit('turn update', { turn: 0, phase: "preparation", timerToUTC: UTCTs }); io.to(playerGame.id).emit('turn update', { turn: 0, phase: "preparation", timerToUTC: UTCTs });
bships.timer(90, () => GInfo.endPrepPhase(socket)); bships.timer(90, () => {
GInfo.endPrepPhase(socket);
bships.timer(30, () => {
AFKEnd(playerGame.id);
});
});
} }
} }