From cfcf64b71e2455adcdddf127f2e36a1d7821c311 Mon Sep 17 00:00:00 2001 From: Yun Date: Tue, 19 Sep 2023 13:25:07 -0700 Subject: [PATCH] OS NYC Playtest (#161) * playtest * fix(web): update gang payment amount text * fix day off by one * ungate playtest --- web/src/pages/[gameId]/[locationSlug]/index.tsx | 2 +- web/src/pages/[gameId]/event/decision.tsx | 2 +- web/src/pages/index.tsx | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/web/src/pages/[gameId]/[locationSlug]/index.tsx b/web/src/pages/[gameId]/[locationSlug]/index.tsx index cd41f2253..7a76192bd 100644 --- a/web/src/pages/[gameId]/[locationSlug]/index.tsx +++ b/web/src/pages/[gameId]/[locationSlug]/index.tsx @@ -72,7 +72,7 @@ export default function Location() { playerEntity.turnsRemaining === 0 ? "Final Day" : `Day ${gameEntity.maxTurns - playerEntity.turnsRemaining + 1} / ${ - gameEntity.maxTurns + 1 + gameEntity.maxTurns }`; return ( diff --git a/web/src/pages/[gameId]/event/decision.tsx b/web/src/pages/[gameId]/event/decision.tsx index 1e66a68cd..10b503206 100644 --- a/web/src/pages/[gameId]/event/decision.tsx +++ b/web/src/pages/[gameId]/event/decision.tsx @@ -43,7 +43,7 @@ export default function Decision() { case PlayerStatus.BeingMugged: setPrefixTitle("You encountered a..."); setTitle("Gang!"); - setDemand(`They want 20% of your $PAPER!`); + setDemand(`They want 50% of your $PAPER!`); break; case PlayerStatus.BeingArrested: setPrefixTitle("You encountered the..."); diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 04dc9177e..df7e42d19 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -32,7 +32,7 @@ import { play } from "@/hooks/media"; // hardcode game params for now const START_TIME = 0; const MAX_PLAYERS = 1; -const NUM_TURNS = 9; +const NUM_TURNS = 10; export default function Home() { const router = useRouter(); @@ -44,14 +44,13 @@ export default function Home() { const [isSubmitting, setIsSubmitting] = useState(false); const [isGated, setIsGated] = useState(false); - useEffect( - () => - setIsGated(window.location.host === "rollyourown.preview.cartridge.gg"), - [], - ); + // useEffect( + // () => + // setIsGated(window.location.host === "rollyourown.preview.cartridge.gg"), + // [], + // ); const [isTutorialOpen, setIsTutorialOpen] = useState(false); - const isLocal = true; return (