diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f928dbd..fc35a35e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# Changelog 6.1.1 +## General + * Updated fantasy cards with this year's player card ID + # Changelog 6.1.0 ## General * Removed some trailing util.log commands diff --git a/handlers/fantasy.js b/handlers/fantasy.js index 1b45381a..e3a741ce 100644 --- a/handlers/fantasy.js +++ b/handlers/fantasy.js @@ -40,7 +40,7 @@ function decodeBonus(bonus) { */ Dota2.Dota2Client.prototype.requestPlayerCardsByPlayer = function() { if(this.Inventory) { - var playercards = this.Inventory.filter(item => item.def_index == 11985); + var playercards = this.Inventory.filter(item => item.def_index == 12184); var promises = []; // Sort cards per player var players = playercards.reduce((players, card)=>{ @@ -205,4 +205,4 @@ var onSetPlayerCardRosterResponse = function onSetPlayerCardRosterResponse(messa this.emit("playerCardDrafted", playerCardRoster.result); if (callback) callback(playerCardRoster.result, playerCardRoster); }; -handlers[Dota2.schema.lookupEnum("EDOTAGCMsg").values.k_EMsgClientToGCSetPlayerCardRosterResponse] = onSetPlayerCardRosterResponse; \ No newline at end of file +handlers[Dota2.schema.lookupEnum("EDOTAGCMsg").values.k_EMsgClientToGCSetPlayerCardRosterResponse] = onSetPlayerCardRosterResponse; diff --git a/package-lock.json b/package-lock.json index e6af215c..1728357a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "dota2", - "version": "6.1.0", + "version": "6.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 47b8a866..9b500288 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dota2", - "version": "6.1.0", + "version": "6.1.1", "dependencies": { "deferred": "^0.7.9", "long": "^4.0.0", diff --git a/proto/base_gcmessages.proto b/proto/base_gcmessages.proto index 423212e8..855596e1 100644 --- a/proto/base_gcmessages.proto +++ b/proto/base_gcmessages.proto @@ -43,11 +43,6 @@ enum ECustomGameInstallStatus { k_ECustomGameInstallStatus_FailedCanceled = 107; } -enum GC_BannedWordType { - GC_BANNED_WORD_DISABLE_WORD = 0; - GC_BANNED_WORD_ENABLE_WORD = 1; -} - message CGCStorePurchaseInit_LineItem { optional uint32 item_def_id = 1; optional uint32 quantity = 2; @@ -358,22 +353,6 @@ message CMsgGCStorePurchaseFinalizeResponse { repeated uint64 item_ids = 2; } -message CMsgGCBannedWordListRequest { - optional uint32 ban_list_group_id = 1; - optional uint32 word_id = 2; -} - -message CMsgGCBannedWord { - optional uint32 word_id = 1; - optional .GC_BannedWordType word_type = 2 [default = GC_BANNED_WORD_DISABLE_WORD]; - optional string word = 3; -} - -message CMsgGCBannedWordListResponse { - optional uint32 ban_list_group_id = 1; - repeated .CMsgGCBannedWord word_list = 2; -} - message CMsgGCToGCBannedWordListUpdated { optional uint32 group_id = 1; } diff --git a/proto/dota_gcmessages_client.proto b/proto/dota_gcmessages_client.proto index 997e76b9..f4b1d96b 100644 --- a/proto/dota_gcmessages_client.proto +++ b/proto/dota_gcmessages_client.proto @@ -350,7 +350,6 @@ message CMsgDOTAWelcome { optional uint32 timeplayedconsecutively = 6; optional bool allow_3rd_party_match_history = 7; optional .PartnerAccountType partner_account_type = 8 [default = PARTNER_NONE]; - optional uint32 banned_word_list_word_id = 9; optional uint32 partner_account_state = 11; optional uint32 last_time_played = 12; optional uint32 last_ip_address = 13; @@ -2495,17 +2494,29 @@ message CMsgHeroGlobalDataResponse { optional float ban_percent = 4; } + message WeekData { + optional uint32 week = 1; + optional float win_percent = 2; + optional float pick_percent = 3; + optional float ban_percent = 4; + } + message HeroDataPerRankChunk { optional uint32 rank_chunk = 1; repeated .CMsgTalentWinRates talent_win_rates = 2; optional .CMsgGlobalHeroAverages hero_averages = 3; repeated .CMsgHeroGlobalDataResponse.GraphData graph_data = 4; + repeated .CMsgHeroGlobalDataResponse.WeekData week_data = 5; } optional uint32 hero_id = 1; repeated .CMsgHeroGlobalDataResponse.HeroDataPerRankChunk hero_data_per_chunk = 2; } +message CMsgHeroGlobalDataAllHeroes { + repeated .CMsgHeroGlobalDataResponse heroes = 1; +} + message CMsgPrivateMetadataKeyRequest { optional uint64 match_id = 1; } @@ -2617,6 +2628,21 @@ message CMsgClientToGCCavernCrawlRequestMapStateResponse { optional uint32 ultra_rare_reward_room_number = 11; } +message CMsgClientToGCCavernCrawlGetClaimedRoomCount { + optional uint32 event_id = 1; +} + +message CMsgClientToGCCavernCrawlGetClaimedRoomCountResponse { + enum Result { + SUCCESS = 0; + ERROR_UNKNOWN = 1; + EVENT_NOT_OWNED = 2; + } + + optional .CMsgClientToGCCavernCrawlGetClaimedRoomCountResponse.Result result = 1 [default = SUCCESS]; + optional uint32 count = 2; +} + message CMsgDOTAMutationList { message Mutation { optional uint32 id = 1; @@ -2696,3 +2722,22 @@ message CMsgSocialFeedCommentsResponse { repeated .CMsgSocialFeedCommentsResponse.FeedComment feed_comments = 3; } +message CMsgClientToGCPlayerCardSpecificPurchaseRequest { + optional uint32 player_account_id = 1; + optional uint32 event_id = 2; + optional uint64 card_dust_item_id = 3; +} + +message CMsgClientToGCPlayerCardSpecificPurchaseResponse { + enum Result { + SUCCESS = 1; + ERROR_INTERNAL = 2; + ERROR_INSUFFICIENT_DUST = 3; + ERROR_ITEM_NOT_DUST_ITEM = 4; + ERROR_FAILED_CARD_PACK_CREATE = 5; + } + + optional .CMsgClientToGCPlayerCardSpecificPurchaseResponse.Result result = 1 [default = SUCCESS]; + optional uint64 item_id = 2; +} + diff --git a/proto/dota_gcmessages_client_match_management.proto b/proto/dota_gcmessages_client_match_management.proto index d846a5cd..073911a5 100644 --- a/proto/dota_gcmessages_client_match_management.proto +++ b/proto/dota_gcmessages_client_match_management.proto @@ -120,7 +120,6 @@ message CMsgPracticeLobbySetDetails { optional uint64 custom_game_id = 29; optional uint32 custom_min_players = 30; optional uint32 custom_max_players = 31; - optional uint32 lan_host_ping_to_server_region = 32; optional .DOTALobbyVisibility visibility = 33 [default = DOTALobbyVisibility_Public]; optional fixed64 custom_game_crc = 34; optional uint32 league_series_id = 35; @@ -133,6 +132,7 @@ message CMsgPracticeLobbySetDetails { optional uint64 bot_dire = 45; optional .DOTASelectionPriorityRules selection_priority_rules = 46 [default = k_DOTASelectionPriorityRules_Manual]; optional bool custom_game_penalties = 47; + optional string lan_host_ping_location = 48; } message CMsgPracticeLobbyCreate { @@ -222,8 +222,8 @@ message CMsgPracticeLobbyListResponseEntry { optional string custom_map_name = 15; optional uint32 max_player_count = 16; optional uint32 server_region = 17; - optional uint32 lan_host_ping_to_server_region = 18; optional uint32 league_id = 19; + optional string lan_host_ping_location = 20; } message CMsgPracticeLobbyListResponse { @@ -296,8 +296,8 @@ message CMsgJoinableCustomLobbiesResponseEntry { optional string custom_map_name = 7; optional uint32 max_player_count = 8; optional uint32 server_region = 9; - optional uint32 lan_host_ping_to_server_region = 10; optional bool has_pass_key = 11; + optional string lan_host_ping_location = 12; } message CMsgJoinableCustomLobbiesResponse { diff --git a/proto/dota_gcmessages_common.proto b/proto/dota_gcmessages_common.proto index ac00ecf1..10ab8fb5 100644 --- a/proto/dota_gcmessages_common.proto +++ b/proto/dota_gcmessages_common.proto @@ -175,6 +175,8 @@ message CMsgLocalServerFakeLobbyData { repeated .CMsgLobbyEventPoints event_points = 2; optional bool is_plus_subscriber = 3; optional uint32 primary_event_id = 4; + optional uint32 favorite_team = 5; + optional uint32 favorite_team_quality = 6; } message CMsgBattleCupVictory { @@ -1089,6 +1091,7 @@ message CMsgMatchTips { message SingleTip { optional uint32 source_account_id = 1; optional uint32 target_account_id = 2; + optional uint32 tip_amount = 3; } optional .EEvent event_id = 1 [default = EVENT_ID_NONE]; diff --git a/proto/dota_gcmessages_common_match_management.proto b/proto/dota_gcmessages_common_match_management.proto index 30b0ba03..85553fd8 100644 --- a/proto/dota_gcmessages_common_match_management.proto +++ b/proto/dota_gcmessages_common_match_management.proto @@ -311,7 +311,6 @@ message CSODOTALobby { optional uint32 custom_min_players = 71; optional uint32 custom_max_players = 72; optional .PartnerAccountType partner_type = 73 [default = PARTNER_NONE]; - optional uint32 lan_host_ping_to_server_region = 74; optional .DOTALobbyVisibility visibility = 75 [default = DOTALobbyVisibility_Public]; optional fixed64 custom_game_crc = 76; optional bool custom_game_auto_created_lobby = 77; @@ -343,6 +342,7 @@ message CSODOTALobby { optional fixed64 custom_game_private_key = 106; optional bool custom_game_penalties = 107; repeated uint32 mutations = 108; + optional string lan_host_ping_location = 109; } message CMsgLobbyPlaytestDetails { diff --git a/proto/dota_gcmessages_msgid.proto b/proto/dota_gcmessages_msgid.proto index d00d3e45..55601f4d 100644 --- a/proto/dota_gcmessages_msgid.proto +++ b/proto/dota_gcmessages_msgid.proto @@ -488,6 +488,9 @@ enum EDOTAGCMsg { k_EMsgGCToClientRequestLaneSelectionResponse = 7624; k_EMsgServerToGCCavernCrawlIsHeroActive = 7625; k_EMsgServerToGCCavernCrawlIsHeroActiveResponse = 7626; + k_EMsgClientToGCPlayerCardSpecificPurchaseRequest = 7627; + k_EMsgClientToGCPlayerCardSpecificPurchaseResponse = 7628; + k_EMsgGCtoServerTensorflowInstance = 7629; k_EMsgGCDev_GrantWarKill = 8001; k_EMsgServerToGCLockCharmTrading = 8004; k_EMsgClientToGCPlayerStatsRequest = 8006; @@ -760,9 +763,13 @@ enum EDOTAGCMsg { k_EMsgClientToGCRequestEventPointLogResponseV2 = 8299; k_EMsgClientToGCRequestEventTipsSummary = 8300; k_EMsgClientToGCRequestEventTipsSummaryResponse = 8301; + k_EMsgHeroGlobalDataAllHeroes = 8302; k_EMsgClientToGCRequestSocialFeed = 8303; k_EMsgClientToGCRequestSocialFeedResponse = 8304; k_EMsgClientToGCRequestSocialFeedComments = 8305; k_EMsgClientToGCRequestSocialFeedCommentsResponse = 8306; + k_EMsgGCToGCSignoutAwardCappedUnderhollowEventGamePoints = 8307; + k_EMsgClientToGCCavernCrawlGetClaimedRoomCount = 8308; + k_EMsgClientToGCCavernCrawlGetClaimedRoomCountResponse = 8309; } diff --git a/proto/dota_shared_enums.proto b/proto/dota_shared_enums.proto index 2edb4a88..5ff673fe 100644 --- a/proto/dota_shared_enums.proto +++ b/proto/dota_shared_enums.proto @@ -247,7 +247,6 @@ enum DOTALobbyVisibility { enum EDOTAPlayerMMRType { k_EDOTAPlayerMMRType_Invalid = 0; k_EDOTAPlayerMMRType_GeneralHidden = 1; - k_EDOTAPlayerMMRType_SoloHidden = 2; k_EDOTAPlayerMMRType_GeneralCompetitive = 3; k_EDOTAPlayerMMRType_SoloCompetitive = 4; k_EDOTAPlayerMMRType_1v1Competitive_UNUSED = 5; diff --git a/proto/econ_gcmessages.proto b/proto/econ_gcmessages.proto index f2241c5f..797558b7 100644 --- a/proto/econ_gcmessages.proto +++ b/proto/econ_gcmessages.proto @@ -984,3 +984,8 @@ message CMsgGCToClientCurrencyPricePoints { repeated .CMsgGCToClientCurrencyPricePoints.Currency currencies = 2; } +message CMsgBannedWordList { + optional uint32 version = 1; + repeated string banned_words = 2; +} + diff --git a/proto/gcsdk_gcmessages.proto b/proto/gcsdk_gcmessages.proto index 0c39d4d4..ce140597 100644 --- a/proto/gcsdk_gcmessages.proto +++ b/proto/gcsdk_gcmessages.proto @@ -369,6 +369,10 @@ message CMsgGCToGCMasterSubscribeToCache { message CMsgGCToGCMasterSubscribeToCacheResponse { } +message CMsgGCToGCMasterSubscribeToCacheAsync { + optional .CMsgGCToGCMasterSubscribeToCache subscribe_msg = 1; +} + message CMsgGCToGCMasterUnsubscribeFromCache { optional uint32 soid_type = 1; optional fixed64 soid_id = 2; diff --git a/proto/gcsystemmsgs.proto b/proto/gcsystemmsgs.proto index df132e52..e49e2f91 100644 --- a/proto/gcsystemmsgs.proto +++ b/proto/gcsystemmsgs.proto @@ -148,6 +148,7 @@ enum EGCToGCMsg { k_EMsgGCToGCMasterSubscribeToCacheResponse = 168; k_EMsgGCToGCMasterUnsubscribeFromCache = 169; k_EMsgGCToGCMasterDestroyCache = 170; + k_EMsgGCToGCMasterSubscribeToCacheAsync = 171; } message CCommunity_GamePersonalDataCategoryInfo {