Skip to content

Commit

Permalink
Merge pull request #42 from andsfonseca/feature/crystal-maiden-persona
Browse files Browse the repository at this point in the history
[Feature]: Crystal Maiden Persona Detection
  • Loading branch information
andsfonseca authored Nov 4, 2022
2 parents cb4b98f + 393fab3 commit 4aa37e2
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"npc_dota_hero_rattletrap": "Clockwerk",
"npc_dota_hero_crystal_maiden": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_2": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_3": "Crystal Maiden",
"npc_dota_hero_dark_seer": "Dark Seer",
"npc_dota_hero_dark_willow": "Dark Willow",
"npc_dota_hero_dawnbreaker": "Dawnbreaker",
Expand Down
1 change: 1 addition & 0 deletions lang/es-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"npc_dota_hero_rattletrap": "Clockwerk",
"npc_dota_hero_crystal_maiden": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_2": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_3": "Crystal Maiden",
"npc_dota_hero_dark_seer": "Dark Seer",
"npc_dota_hero_dark_willow": "Dark Willow",
"npc_dota_hero_dawnbreaker": "Dawnbreaker",
Expand Down
1 change: 1 addition & 0 deletions lang/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"npc_dota_hero_rattletrap": "Clockwerk",
"npc_dota_hero_crystal_maiden": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_2": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_3": "Crystal Maiden",
"npc_dota_hero_dark_seer": "Dark Seer",
"npc_dota_hero_dark_willow": "Dark Willow",
"npc_dota_hero_dawnbreaker": "Dawnbreaker",
Expand Down
1 change: 1 addition & 0 deletions lang/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"npc_dota_hero_rattletrap": "Clockwerk",
"npc_dota_hero_crystal_maiden": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_2": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_3": "Crystal Maiden",
"npc_dota_hero_dark_seer": "Dark Seer",
"npc_dota_hero_dark_willow": "Dark Willow",
"npc_dota_hero_dawnbreaker": "Dawnbreaker",
Expand Down
1 change: 1 addition & 0 deletions lang/ru-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"npc_dota_hero_rattletrap": "Clockwerk",
"npc_dota_hero_crystal_maiden": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_2": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_3": "Crystal Maiden",
"npc_dota_hero_dark_seer": "Dark Seer",
"npc_dota_hero_dark_willow": "Dark Willow",
"npc_dota_hero_dawnbreaker": "Dawnbreaker",
Expand Down
1 change: 1 addition & 0 deletions lang/th-th.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"npc_dota_hero_rattletrap": "Clockwerk",
"npc_dota_hero_crystal_maiden": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_2": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_3": "Crystal Maiden",
"npc_dota_hero_dark_seer": "Dark Seer",
"npc_dota_hero_dark_willow": "Dark Willow",
"npc_dota_hero_dawnbreaker": "Dawnbreaker",
Expand Down
1 change: 1 addition & 0 deletions lang/uk-ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"npc_dota_hero_rattletrap": "Clockwerk",
"npc_dota_hero_crystal_maiden": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_2": "Crystal Maiden",
"npc_dota_hero_crystal_maiden_3": "Crystal Maiden",
"npc_dota_hero_dark_seer": "Dark Seer",
"npc_dota_hero_dark_willow": "Dark Willow",
"npc_dota_hero_dawnbreaker": "Dawnbreaker",
Expand Down
3 changes: 2 additions & 1 deletion src/services/DotaService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ std::string DotaService::getHeroName(Json::Value data)
(name == "npc_dota_hero_mirana" && itemId == 18178) ||
(name == "npc_dota_hero_invoker" && itemId == 13042))
return name + "_2";
if (name == "npc_dota_hero_phantom_assassin" && itemId == 22723)
if ((name == "npc_dota_hero_phantom_assassin" && itemId == 22723) ||
(name == "npc_dota_hero_crystal_maiden" && itemId == 13078))
return name + "_3";
if (name == "npc_dota_hero_pudge" && itemId == 13786)
return name + "_4";
Expand Down

0 comments on commit 4aa37e2

Please sign in to comment.