Skip to content

Commit

Permalink
fix: prioritize score stat
Browse files Browse the repository at this point in the history
  • Loading branch information
littensy committed Jul 5, 2024
1 parent a0930cc commit b8af832
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/server/players/services/scoreboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ export async function initScoreboardService() {
knockouts.Name = "☠️ KOs";
knockouts.Parent = stats;

const cash = new Instance("IntValue");
cash.Name = "💵 Cash";
cash.Parent = stats;

const score = new Instance("IntValue");
score.Name = "💯 Score";
score.Parent = stats;

const cash = new Instance("IntValue");
cash.Name = "💵 Cash";
cash.Parent = stats;
const isPrimary = new Instance("BoolValue");
isPrimary.Name = "IsPrimary";
isPrimary.Value = true;
isPrimary.Parent = score;

const unsubscribeFromSnake = store.subscribe(selectSnakeById(player.Name), (snake) => {
score.Value = snake ? snake.score : 0;
Expand Down

0 comments on commit b8af832

Please sign in to comment.