mirror of
https://github.com/MaciejkaG/statki.git
synced 2024-11-30 04:42:55 +01:00
Minor fixes
- Fixed prep phase duration
This commit is contained in:
parent
e28db82339
commit
bd7229e17b
2
index.js
2
index.js
@ -224,7 +224,7 @@ 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(10, async () => {
|
bships.timer(90, async () => {
|
||||||
const playerGame = await GInfo.getPlayerGameData(socket);
|
const playerGame = await GInfo.getPlayerGameData(socket);
|
||||||
for (let i = 0; i < playerGame.data.boards.length; i++) {
|
for (let i = 0; i < playerGame.data.boards.length; i++) {
|
||||||
const ships = playerGame.data.boards[i].ships;
|
const ships = playerGame.data.boards[i].ships;
|
||||||
|
Loading…
Reference in New Issue
Block a user