From 43a53e5651b896458823c2a2ed3942c34ae4cacf Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 10 Oct 2019 15:00:45 +1100 Subject: [PATCH] various pax things --- client/assets/styles/styles.mobile.less | 4 ++++ client/src/components/instance.ctrl.btns.jsx | 9 +++++++++ client/src/components/play.jsx | 2 +- server/src/instance.rs | 6 +++--- server/src/names.rs | 8 ++++++-- 5 files changed, 23 insertions(+), 6 deletions(-) diff --git a/client/assets/styles/styles.mobile.less b/client/assets/styles/styles.mobile.less index e8269bd2..be259075 100644 --- a/client/assets/styles/styles.mobile.less +++ b/client/assets/styles/styles.mobile.less @@ -123,4 +123,8 @@ padding: 0; } } + + .play-p { + display: none; + } } diff --git a/client/src/components/instance.ctrl.btns.jsx b/client/src/components/instance.ctrl.btns.jsx index d2acd10c..f1ca2be5 100644 --- a/client/src/components/instance.ctrl.btns.jsx +++ b/client/src/components/instance.ctrl.btns.jsx @@ -38,6 +38,15 @@ function InstanceCtrlBtns(args) { const finished = instance && instance.phase === 'Finished'; + // cheeky to make sure nubs don't just abandon their first game + const beingNub = instance.phase_end + && instance.phase === 'Lobby' + && Date.parse(instance.phase_end) - Date.now() < 2000; + + if (beingNub) { + sendReady(); + } + return (
diff --git a/client/src/components/play.jsx b/client/src/components/play.jsx index 3e8fb916..3e0a7f5f 100644 --- a/client/src/components/play.jsx +++ b/client/src/components/play.jsx @@ -94,7 +94,7 @@ function Play(args) {

v{VERSION}

-

Use the buttons on the right to join an instance.

+

Use the buttons on the right to join an instance.

Select PVP to play against other players.
Select INVITE then click COPY LINK to generate an instance invitation for a friend.
diff --git a/server/src/instance.rs b/server/src/instance.rs index 9cc55221..9731f879 100644 --- a/server/src/instance.rs +++ b/server/src/instance.rs @@ -530,13 +530,13 @@ pub fn instance_create(tx: &mut Transaction, instance: Instance) -> Result