Skip to content

Commit

Permalink
Merge pull request #50 from andsfonseca/feature/razor-arcana-support
Browse files Browse the repository at this point in the history
[Feature]: Razor Arcana Detection
  • Loading branch information
andsfonseca authored Feb 6, 2023
2 parents d373563 + 8e5a207 commit c9ff963
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lang/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"npc_dota_hero_queenofpain_2": "Queen of Pain",
"npc_dota_hero_queenofpain_3": "Queen of Pain",
"npc_dota_hero_razor": "Razor",
"npc_dota_hero_razor_2": "Razor",
"npc_dota_hero_razor_3": "Razor",
"npc_dota_hero_riki": "Riki",
"npc_dota_hero_rubick": "Rubick",
"npc_dota_hero_rubick_2": "Rubick",
Expand Down
2 changes: 2 additions & 0 deletions lang/es-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"npc_dota_hero_queenofpain_2": "Queen of Pain",
"npc_dota_hero_queenofpain_3": "Queen of Pain",
"npc_dota_hero_razor": "Razor",
"npc_dota_hero_razor_2": "Razor",
"npc_dota_hero_razor_3": "Razor",
"npc_dota_hero_riki": "Riki",
"npc_dota_hero_rubick": "Rubick",
"npc_dota_hero_rubick_2": "Rubick",
Expand Down
2 changes: 2 additions & 0 deletions lang/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"npc_dota_hero_queenofpain_2": "Queen of Pain",
"npc_dota_hero_queenofpain_3": "Queen of Pain",
"npc_dota_hero_razor": "Razor",
"npc_dota_hero_razor_2": "Razor",
"npc_dota_hero_razor_3": "Razor",
"npc_dota_hero_riki": "Riki",
"npc_dota_hero_rubick": "Rubick",
"npc_dota_hero_rubick_2": "Rubick",
Expand Down
2 changes: 2 additions & 0 deletions lang/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"npc_dota_hero_queenofpain_2": "Queen of Pain",
"npc_dota_hero_queenofpain_3": "Queen of Pain",
"npc_dota_hero_razor": "Razor",
"npc_dota_hero_razor_2": "Razor",
"npc_dota_hero_razor_3": "Razor",
"npc_dota_hero_riki": "Riki",
"npc_dota_hero_rubick": "Rubick",
"npc_dota_hero_rubick_2": "Rubick",
Expand Down
2 changes: 2 additions & 0 deletions lang/ru-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"npc_dota_hero_queenofpain_2": "Queen of Pain",
"npc_dota_hero_queenofpain_3": "Queen of Pain",
"npc_dota_hero_razor": "Razor",
"npc_dota_hero_razor_2": "Razor",
"npc_dota_hero_razor_3": "Razor",
"npc_dota_hero_riki": "Riki",
"npc_dota_hero_rubick": "Rubick",
"npc_dota_hero_rubick_2": "Rubick",
Expand Down
2 changes: 2 additions & 0 deletions lang/th-th.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"npc_dota_hero_queenofpain_2": "Queen of Pain",
"npc_dota_hero_queenofpain_3": "Queen of Pain",
"npc_dota_hero_razor": "Razor",
"npc_dota_hero_razor_2": "Razor",
"npc_dota_hero_razor_3": "Razor",
"npc_dota_hero_riki": "Riki",
"npc_dota_hero_rubick": "Rubick",
"npc_dota_hero_rubick_2": "Rubick",
Expand Down
2 changes: 2 additions & 0 deletions lang/uk-ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"npc_dota_hero_queenofpain_2": "Queen of Pain",
"npc_dota_hero_queenofpain_3": "Queen of Pain",
"npc_dota_hero_razor": "Razor",
"npc_dota_hero_razor_2": "Razor",
"npc_dota_hero_razor_3": "Razor",
"npc_dota_hero_riki": "Riki",
"npc_dota_hero_rubick": "Rubick",
"npc_dota_hero_rubick_2": "Rubick",
Expand Down
3 changes: 3 additions & 0 deletions src/services/DotaService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ std::string DotaService::getHeroName(Json::Value data)
if (data["wearables"].isNull())
return name;

std::cout << data["wearables"] << std::endl;

for (int i = 0;; i++)
{
std::string key = "wearable" + std::to_string(i);
Expand Down Expand Up @@ -152,6 +154,7 @@ std::string DotaService::getHeroName(Json::Value data)
(name == "npc_dota_hero_queenofpain" && itemId == 12930) ||
(name == "npc_dota_hero_rubick" && itemId == 12451) ||
(name == "npc_dota_hero_nevermore" && itemId == 6996) ||
(name == "npc_dota_hero_razor" && itemId == 23095) ||
(name == "npc_dota_hero_spectre" && itemId == 9662) ||
(name == "npc_dota_hero_terrorblade" && itemId == 5957) ||
(name == "npc_dota_hero_windrunner" && itemId == 13806) ||
Expand Down

0 comments on commit c9ff963

Please sign in to comment.