From 8a02748a9aaab5d78058a87ea0c9095cbb53c27d Mon Sep 17 00:00:00 2001 From: notV4l Date: Tue, 19 Sep 2023 17:47:01 +0200 Subject: [PATCH] skull icon for dead bros --- web/src/dojo/components/useGlobalScores.tsx | 2 +- web/src/generated/graphql.ts | 4 ++-- web/src/graphql/components.graphql | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/dojo/components/useGlobalScores.tsx b/web/src/dojo/components/useGlobalScores.tsx index 6f6ac0f56..40e9631b3 100644 --- a/web/src/dojo/components/useGlobalScores.tsx +++ b/web/src/dojo/components/useGlobalScores.tsx @@ -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, }; }); } diff --git a/web/src/generated/graphql.ts b/web/src/generated/graphql.ts index 9c6508c7f..14862970b 100644 --- a/web/src/generated/graphql.ts +++ b/web/src/generated/graphql.ts @@ -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 | 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 | 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; @@ -803,7 +803,7 @@ export const GlobalScoresDocument = ` edges { node { cash - turns_remaining_on_death + health entity { keys components { diff --git a/web/src/graphql/components.graphql b/web/src/graphql/components.graphql index ad679d8f0..88d854fe0 100644 --- a/web/src/graphql/components.graphql +++ b/web/src/graphql/components.graphql @@ -25,7 +25,7 @@ query GlobalScores($limit: Int, $cursor: Cursor) { edges { node { cash - turns_remaining_on_death + health entity { keys components {