Skip to content

Commit

Permalink
OS NYC Playtest (#161)
Browse files Browse the repository at this point in the history
* playtest

* fix(web): update gang payment amount text

* fix day off by one

* ungate playtest
  • Loading branch information
broody authored Sep 19, 2023
1 parent 59fe176 commit cfcf64b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion web/src/pages/[gameId]/[locationSlug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/[gameId]/event/decision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand Down
13 changes: 6 additions & 7 deletions web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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 (
<Layout CustomLeftPanel={HomeLeftPanel}>
Expand Down

1 comment on commit cfcf64b

@vercel
Copy link

@vercel vercel bot commented on cfcf64b Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rollyourown – ./

rollyourown.preview.cartridge.gg
rollyourown-git-main.preview.cartridge.gg

Please sign in to comment.