Spaces:
Sleeping
Sleeping
test
Browse files- convex/constants.ts +1 -1
- src/components/Game.tsx +3 -0
convex/constants.ts
CHANGED
|
@@ -87,7 +87,7 @@ export const LLM_VOTE_DURATION = 60000;
|
|
| 87 |
export const MAX_NPC = 8;
|
| 88 |
|
| 89 |
//Needs a minimum of 3 player to start the game
|
| 90 |
-
export const LOBBY_SIZE =
|
| 91 |
|
| 92 |
// Bound the number of pathfinding searches we do per game step.
|
| 93 |
export const MAX_PATHFINDS_PER_STEP = 16;
|
|
|
|
| 87 |
export const MAX_NPC = 8;
|
| 88 |
|
| 89 |
//Needs a minimum of 3 player to start the game
|
| 90 |
+
export const LOBBY_SIZE = 1;
|
| 91 |
|
| 92 |
// Bound the number of pathfinding searches we do per game step.
|
| 93 |
export const MAX_PATHFINDS_PER_STEP = 16;
|
src/components/Game.tsx
CHANGED
|
@@ -29,6 +29,9 @@ export function GameStateLabel(game: GameObj, me: PlayerDescription | undefined)
|
|
| 29 |
switch (game.world.gameCycle.cycleState) {
|
| 30 |
case 'Day':
|
| 31 |
cycle_num+=1;
|
|
|
|
|
|
|
|
|
|
| 32 |
return {
|
| 33 |
label: `Day ${cycle_num}`,
|
| 34 |
desc: 'Find out who is a werewolf',
|
|
|
|
| 29 |
switch (game.world.gameCycle.cycleState) {
|
| 30 |
case 'Day':
|
| 31 |
cycle_num+=1;
|
| 32 |
+
if (cycle_num==1){
|
| 33 |
+
console.log("We are exactly in day 1")
|
| 34 |
+
}
|
| 35 |
return {
|
| 36 |
label: `Day ${cycle_num}`,
|
| 37 |
desc: 'Find out who is a werewolf',
|