Skip to content

Commit

Permalink
skull icon for dead bros
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Sep 19, 2023
1 parent 4aba135 commit 8a02748
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/src/dojo/components/useGlobalScores.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class GlobalScores {
nameComponent &&
shortString.decodeShortString(nameComponent?.short_string),
cash: Math.floor(Number(edge.node?.cash) / SCALING_FACTOR),
dead: Number(edge.node?.turns_remaining_on_death) !== 0,
dead: Number(edge.node?.health) === 0,
};
});
}
Expand Down
4 changes: 2 additions & 2 deletions web/src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ export type GlobalScoresQueryVariables = Exact<{
}>;


export type GlobalScoresQuery = { __typename?: 'Query', playerComponents?: { __typename?: 'PlayerConnection', totalCount: number, edges?: Array<{ __typename?: 'PlayerEdge', cursor: any, node?: { __typename?: 'Player', cash?: any | null, turns_remaining_on_death?: any | null, entity?: { __typename?: 'Entity', keys?: Array<string | null> | null, components?: Array<{ __typename: 'Drug' } | { __typename: 'Game' } | { __typename: 'Market' } | { __typename: 'Name', short_string?: any | null } | { __typename: 'Player' } | { __typename: 'Risks' } | null> | null } | null } | null } | null> | null } | null };
export type GlobalScoresQuery = { __typename?: 'Query', playerComponents?: { __typename?: 'PlayerConnection', totalCount: number, edges?: Array<{ __typename?: 'PlayerEdge', cursor: any, node?: { __typename?: 'Player', cash?: any | null, health?: any | null, entity?: { __typename?: 'Entity', keys?: Array<string | null> | null, components?: Array<{ __typename: 'Drug' } | { __typename: 'Game' } | { __typename: 'Market' } | { __typename: 'Name', short_string?: any | null } | { __typename: 'Player' } | { __typename: 'Risks' } | null> | null } | null } | null } | null> | null } | null };

export type MarketPricesQueryVariables = Exact<{
gameId?: InputMaybe<Scalars['Int']>;
Expand Down Expand Up @@ -803,7 +803,7 @@ export const GlobalScoresDocument = `
edges {
node {
cash
turns_remaining_on_death
health
entity {
keys
components {
Expand Down
2 changes: 1 addition & 1 deletion web/src/graphql/components.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ query GlobalScores($limit: Int, $cursor: Cursor) {
edges {
node {
cash
turns_remaining_on_death
health
entity {
keys
components {
Expand Down

0 comments on commit 8a02748

Please sign in to comment.