Skip to content

Commit

Permalink
Get hero facet from api instead of gc
Browse files Browse the repository at this point in the history
  • Loading branch information
builder-247 committed May 28, 2024
1 parent f0e0862 commit dc4c0ad
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ interface GcPlayer {
party_id: number;
party_size: number;
permanent_buffs: any[];
selected_facet: number;

// Currently not passed
account_id?: number;
Expand Down
2 changes: 1 addition & 1 deletion routes/responses/MatchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export default {
type: 'object',
},
},
selected_facet: {
hero_variant: {
description: '1-indexed facet, see https://github.com/odota/dotaconstants/blob/master/build/hero_abilities.json',
type: 'integer',
},
Expand Down
2 changes: 1 addition & 1 deletion sql/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ CREATE TABLE IF NOT EXISTS player_matches (
ability_upgrades_arr integer[],
party_id int,
permanent_buffs json[],
selected_facet int,
hero_variant int,
lane int,
lane_role int,
is_roaming boolean,
Expand Down
1 change: 0 additions & 1 deletion store/getGcData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ async function saveGcData(
player_slot: p.player_slot,
party_id: Number(p.party_id),
permanent_buffs: p.permanent_buffs ?? [],
selected_facet: p.selected_facet,
party_size: data.match.players.filter(
(matchPlayer: any) =>
Number(matchPlayer.party_id) === Number(p.party_id),
Expand Down

0 comments on commit dc4c0ad

Please sign in to comment.