Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 43b419b

Browse files
authored
Merge pull request #597 from Arcana/dev
v6.1.1
2 parents 20562c1 + 89ebf6e commit 43b419b

14 files changed

+78
-31
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Changelog 6.1.1
2+
## General
3+
* Updated fantasy cards with this year's player card ID
4+
15
# Changelog 6.1.0
26
## General
37
* Removed some trailing util.log commands

handlers/fantasy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function decodeBonus(bonus) {
4040
*/
4141
Dota2.Dota2Client.prototype.requestPlayerCardsByPlayer = function() {
4242
if(this.Inventory) {
43-
var playercards = this.Inventory.filter(item => item.def_index == 11985);
43+
var playercards = this.Inventory.filter(item => item.def_index == 12184);
4444
var promises = [];
4545
// Sort cards per player
4646
var players = playercards.reduce((players, card)=>{
@@ -205,4 +205,4 @@ var onSetPlayerCardRosterResponse = function onSetPlayerCardRosterResponse(messa
205205
this.emit("playerCardDrafted", playerCardRoster.result);
206206
if (callback) callback(playerCardRoster.result, playerCardRoster);
207207
};
208-
handlers[Dota2.schema.lookupEnum("EDOTAGCMsg").values.k_EMsgClientToGCSetPlayerCardRosterResponse] = onSetPlayerCardRosterResponse;
208+
handlers[Dota2.schema.lookupEnum("EDOTAGCMsg").values.k_EMsgClientToGCSetPlayerCardRosterResponse] = onSetPlayerCardRosterResponse;

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dota2",
3-
"version": "6.1.0",
3+
"version": "6.1.1",
44
"dependencies": {
55
"deferred": "^0.7.9",
66
"long": "^4.0.0",

proto/base_gcmessages.proto

-21
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ enum ECustomGameInstallStatus {
4343
k_ECustomGameInstallStatus_FailedCanceled = 107;
4444
}
4545

46-
enum GC_BannedWordType {
47-
GC_BANNED_WORD_DISABLE_WORD = 0;
48-
GC_BANNED_WORD_ENABLE_WORD = 1;
49-
}
50-
5146
message CGCStorePurchaseInit_LineItem {
5247
optional uint32 item_def_id = 1;
5348
optional uint32 quantity = 2;
@@ -358,22 +353,6 @@ message CMsgGCStorePurchaseFinalizeResponse {
358353
repeated uint64 item_ids = 2;
359354
}
360355

361-
message CMsgGCBannedWordListRequest {
362-
optional uint32 ban_list_group_id = 1;
363-
optional uint32 word_id = 2;
364-
}
365-
366-
message CMsgGCBannedWord {
367-
optional uint32 word_id = 1;
368-
optional .GC_BannedWordType word_type = 2 [default = GC_BANNED_WORD_DISABLE_WORD];
369-
optional string word = 3;
370-
}
371-
372-
message CMsgGCBannedWordListResponse {
373-
optional uint32 ban_list_group_id = 1;
374-
repeated .CMsgGCBannedWord word_list = 2;
375-
}
376-
377356
message CMsgGCToGCBannedWordListUpdated {
378357
optional uint32 group_id = 1;
379358
}

proto/dota_gcmessages_client.proto

+46-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ message CMsgDOTAWelcome {
350350
optional uint32 timeplayedconsecutively = 6;
351351
optional bool allow_3rd_party_match_history = 7;
352352
optional .PartnerAccountType partner_account_type = 8 [default = PARTNER_NONE];
353-
optional uint32 banned_word_list_word_id = 9;
354353
optional uint32 partner_account_state = 11;
355354
optional uint32 last_time_played = 12;
356355
optional uint32 last_ip_address = 13;
@@ -2495,17 +2494,29 @@ message CMsgHeroGlobalDataResponse {
24952494
optional float ban_percent = 4;
24962495
}
24972496

2497+
message WeekData {
2498+
optional uint32 week = 1;
2499+
optional float win_percent = 2;
2500+
optional float pick_percent = 3;
2501+
optional float ban_percent = 4;
2502+
}
2503+
24982504
message HeroDataPerRankChunk {
24992505
optional uint32 rank_chunk = 1;
25002506
repeated .CMsgTalentWinRates talent_win_rates = 2;
25012507
optional .CMsgGlobalHeroAverages hero_averages = 3;
25022508
repeated .CMsgHeroGlobalDataResponse.GraphData graph_data = 4;
2509+
repeated .CMsgHeroGlobalDataResponse.WeekData week_data = 5;
25032510
}
25042511

25052512
optional uint32 hero_id = 1;
25062513
repeated .CMsgHeroGlobalDataResponse.HeroDataPerRankChunk hero_data_per_chunk = 2;
25072514
}
25082515

2516+
message CMsgHeroGlobalDataAllHeroes {
2517+
repeated .CMsgHeroGlobalDataResponse heroes = 1;
2518+
}
2519+
25092520
message CMsgPrivateMetadataKeyRequest {
25102521
optional uint64 match_id = 1;
25112522
}
@@ -2617,6 +2628,21 @@ message CMsgClientToGCCavernCrawlRequestMapStateResponse {
26172628
optional uint32 ultra_rare_reward_room_number = 11;
26182629
}
26192630

2631+
message CMsgClientToGCCavernCrawlGetClaimedRoomCount {
2632+
optional uint32 event_id = 1;
2633+
}
2634+
2635+
message CMsgClientToGCCavernCrawlGetClaimedRoomCountResponse {
2636+
enum Result {
2637+
SUCCESS = 0;
2638+
ERROR_UNKNOWN = 1;
2639+
EVENT_NOT_OWNED = 2;
2640+
}
2641+
2642+
optional .CMsgClientToGCCavernCrawlGetClaimedRoomCountResponse.Result result = 1 [default = SUCCESS];
2643+
optional uint32 count = 2;
2644+
}
2645+
26202646
message CMsgDOTAMutationList {
26212647
message Mutation {
26222648
optional uint32 id = 1;
@@ -2696,3 +2722,22 @@ message CMsgSocialFeedCommentsResponse {
26962722
repeated .CMsgSocialFeedCommentsResponse.FeedComment feed_comments = 3;
26972723
}
26982724

2725+
message CMsgClientToGCPlayerCardSpecificPurchaseRequest {
2726+
optional uint32 player_account_id = 1;
2727+
optional uint32 event_id = 2;
2728+
optional uint64 card_dust_item_id = 3;
2729+
}
2730+
2731+
message CMsgClientToGCPlayerCardSpecificPurchaseResponse {
2732+
enum Result {
2733+
SUCCESS = 1;
2734+
ERROR_INTERNAL = 2;
2735+
ERROR_INSUFFICIENT_DUST = 3;
2736+
ERROR_ITEM_NOT_DUST_ITEM = 4;
2737+
ERROR_FAILED_CARD_PACK_CREATE = 5;
2738+
}
2739+
2740+
optional .CMsgClientToGCPlayerCardSpecificPurchaseResponse.Result result = 1 [default = SUCCESS];
2741+
optional uint64 item_id = 2;
2742+
}
2743+

proto/dota_gcmessages_client_match_management.proto

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ message CMsgPracticeLobbySetDetails {
120120
optional uint64 custom_game_id = 29;
121121
optional uint32 custom_min_players = 30;
122122
optional uint32 custom_max_players = 31;
123-
optional uint32 lan_host_ping_to_server_region = 32;
124123
optional .DOTALobbyVisibility visibility = 33 [default = DOTALobbyVisibility_Public];
125124
optional fixed64 custom_game_crc = 34;
126125
optional uint32 league_series_id = 35;
@@ -133,6 +132,7 @@ message CMsgPracticeLobbySetDetails {
133132
optional uint64 bot_dire = 45;
134133
optional .DOTASelectionPriorityRules selection_priority_rules = 46 [default = k_DOTASelectionPriorityRules_Manual];
135134
optional bool custom_game_penalties = 47;
135+
optional string lan_host_ping_location = 48;
136136
}
137137

138138
message CMsgPracticeLobbyCreate {
@@ -222,8 +222,8 @@ message CMsgPracticeLobbyListResponseEntry {
222222
optional string custom_map_name = 15;
223223
optional uint32 max_player_count = 16;
224224
optional uint32 server_region = 17;
225-
optional uint32 lan_host_ping_to_server_region = 18;
226225
optional uint32 league_id = 19;
226+
optional string lan_host_ping_location = 20;
227227
}
228228

229229
message CMsgPracticeLobbyListResponse {
@@ -296,8 +296,8 @@ message CMsgJoinableCustomLobbiesResponseEntry {
296296
optional string custom_map_name = 7;
297297
optional uint32 max_player_count = 8;
298298
optional uint32 server_region = 9;
299-
optional uint32 lan_host_ping_to_server_region = 10;
300299
optional bool has_pass_key = 11;
300+
optional string lan_host_ping_location = 12;
301301
}
302302

303303
message CMsgJoinableCustomLobbiesResponse {

proto/dota_gcmessages_common.proto

+3
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ message CMsgLocalServerFakeLobbyData {
175175
repeated .CMsgLobbyEventPoints event_points = 2;
176176
optional bool is_plus_subscriber = 3;
177177
optional uint32 primary_event_id = 4;
178+
optional uint32 favorite_team = 5;
179+
optional uint32 favorite_team_quality = 6;
178180
}
179181

180182
message CMsgBattleCupVictory {
@@ -1089,6 +1091,7 @@ message CMsgMatchTips {
10891091
message SingleTip {
10901092
optional uint32 source_account_id = 1;
10911093
optional uint32 target_account_id = 2;
1094+
optional uint32 tip_amount = 3;
10921095
}
10931096

10941097
optional .EEvent event_id = 1 [default = EVENT_ID_NONE];

proto/dota_gcmessages_common_match_management.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ message CSODOTALobby {
311311
optional uint32 custom_min_players = 71;
312312
optional uint32 custom_max_players = 72;
313313
optional .PartnerAccountType partner_type = 73 [default = PARTNER_NONE];
314-
optional uint32 lan_host_ping_to_server_region = 74;
315314
optional .DOTALobbyVisibility visibility = 75 [default = DOTALobbyVisibility_Public];
316315
optional fixed64 custom_game_crc = 76;
317316
optional bool custom_game_auto_created_lobby = 77;
@@ -343,6 +342,7 @@ message CSODOTALobby {
343342
optional fixed64 custom_game_private_key = 106;
344343
optional bool custom_game_penalties = 107;
345344
repeated uint32 mutations = 108;
345+
optional string lan_host_ping_location = 109;
346346
}
347347

348348
message CMsgLobbyPlaytestDetails {

proto/dota_gcmessages_msgid.proto

+7
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ enum EDOTAGCMsg {
488488
k_EMsgGCToClientRequestLaneSelectionResponse = 7624;
489489
k_EMsgServerToGCCavernCrawlIsHeroActive = 7625;
490490
k_EMsgServerToGCCavernCrawlIsHeroActiveResponse = 7626;
491+
k_EMsgClientToGCPlayerCardSpecificPurchaseRequest = 7627;
492+
k_EMsgClientToGCPlayerCardSpecificPurchaseResponse = 7628;
493+
k_EMsgGCtoServerTensorflowInstance = 7629;
491494
k_EMsgGCDev_GrantWarKill = 8001;
492495
k_EMsgServerToGCLockCharmTrading = 8004;
493496
k_EMsgClientToGCPlayerStatsRequest = 8006;
@@ -760,9 +763,13 @@ enum EDOTAGCMsg {
760763
k_EMsgClientToGCRequestEventPointLogResponseV2 = 8299;
761764
k_EMsgClientToGCRequestEventTipsSummary = 8300;
762765
k_EMsgClientToGCRequestEventTipsSummaryResponse = 8301;
766+
k_EMsgHeroGlobalDataAllHeroes = 8302;
763767
k_EMsgClientToGCRequestSocialFeed = 8303;
764768
k_EMsgClientToGCRequestSocialFeedResponse = 8304;
765769
k_EMsgClientToGCRequestSocialFeedComments = 8305;
766770
k_EMsgClientToGCRequestSocialFeedCommentsResponse = 8306;
771+
k_EMsgGCToGCSignoutAwardCappedUnderhollowEventGamePoints = 8307;
772+
k_EMsgClientToGCCavernCrawlGetClaimedRoomCount = 8308;
773+
k_EMsgClientToGCCavernCrawlGetClaimedRoomCountResponse = 8309;
767774
}
768775

proto/dota_shared_enums.proto

-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ enum DOTALobbyVisibility {
247247
enum EDOTAPlayerMMRType {
248248
k_EDOTAPlayerMMRType_Invalid = 0;
249249
k_EDOTAPlayerMMRType_GeneralHidden = 1;
250-
k_EDOTAPlayerMMRType_SoloHidden = 2;
251250
k_EDOTAPlayerMMRType_GeneralCompetitive = 3;
252251
k_EDOTAPlayerMMRType_SoloCompetitive = 4;
253252
k_EDOTAPlayerMMRType_1v1Competitive_UNUSED = 5;

proto/econ_gcmessages.proto

+5
Original file line numberDiff line numberDiff line change
@@ -984,3 +984,8 @@ message CMsgGCToClientCurrencyPricePoints {
984984
repeated .CMsgGCToClientCurrencyPricePoints.Currency currencies = 2;
985985
}
986986

987+
message CMsgBannedWordList {
988+
optional uint32 version = 1;
989+
repeated string banned_words = 2;
990+
}
991+

proto/gcsdk_gcmessages.proto

+4
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ message CMsgGCToGCMasterSubscribeToCache {
369369
message CMsgGCToGCMasterSubscribeToCacheResponse {
370370
}
371371

372+
message CMsgGCToGCMasterSubscribeToCacheAsync {
373+
optional .CMsgGCToGCMasterSubscribeToCache subscribe_msg = 1;
374+
}
375+
372376
message CMsgGCToGCMasterUnsubscribeFromCache {
373377
optional uint32 soid_type = 1;
374378
optional fixed64 soid_id = 2;

proto/gcsystemmsgs.proto

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ enum EGCToGCMsg {
148148
k_EMsgGCToGCMasterSubscribeToCacheResponse = 168;
149149
k_EMsgGCToGCMasterUnsubscribeFromCache = 169;
150150
k_EMsgGCToGCMasterDestroyCache = 170;
151+
k_EMsgGCToGCMasterSubscribeToCacheAsync = 171;
151152
}
152153

153154
message CCommunity_GamePersonalDataCategoryInfo {

0 commit comments

Comments
 (0)