Skip to content

Commit

Permalink
added HT CM
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxfighter committed Jul 13, 2022
1 parent cd3cde5 commit 5540a75
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions killproof_me/KillproofUITable.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ static const std::vector<MainTableColumn> COLUMN_SETUP {
{36, [] {return to_string_short(Killproof::maiTrinCM);}, []{ return GET_TEXTURE_CUSTOM(MAI_TRIN_TEXTURE, ID_Mai_Trin); }, "3", [] {return to_string_long(Killproof::maiTrinCM);}, false},
{38, [] {return to_string_short(Killproof::ankkaCM);}, []{ return GET_TEXTURE_CUSTOM(ANKKA_TEXTURE, ID_Ankka); }, "3", [] {return to_string_long(Killproof::ankkaCM);}, false},
{39, [] {return to_string_short(Killproof::ministerLiCM);}, []{ return GET_TEXTURE_CUSTOM(LI_TEXTURE, ID_Minister_Li); }, "3", [] {return to_string_long(Killproof::ministerLiCM);}, false},
{40, [] {return to_string_short(Killproof::harvestCM);}, []{ return GET_TEXTURE_CUSTOM(HARVEST_TEXTURE, ID_Harvest); }, "3", [] {return to_string_long(Killproof::harvestCM);}, false},
};

// Key is the mapId found in the mumbleLink
Expand All @@ -113,8 +114,8 @@ static const std::unordered_map<uint32_t, std::vector<size_t>> mapIdToColumnSetu
{1370, {0, 1, 2, 27}}, // Eye of the north
{1432, {0, 1, 2, 35, 36}}, // MaiTrin strike
{1451, {0, 1, 2, 37, 39}}, // MinisterLi strike
{1437, {0, 1, 2, 34}}, // HarvestTemple strike
{1428, {0, 1, 2, 33, 34, 35, 36, 37, 38, 39}}, // Arborstone
{1437, {0, 1, 2, 34, 40}}, // HarvestTemple strike
{1428, {0, 1, 2, 33, 34, 35, 36, 37, 38, 39, 40}}, // Arborstone
};

class KillproofUITable : public MainTable<> {
Expand Down
2 changes: 2 additions & 0 deletions killproof_me/Killproofs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const std::string& toStringShort(Killproof e) {
case Killproof::maiTrinCM: return Localization::STranslate(KMT_MaiTrinCM_Short);
case Killproof::ankkaCM: return Localization::STranslate(KMT_AnkkaCM_Short);
case Killproof::ministerLiCM: return Localization::STranslate(KMT_MinisterLiCM_Short);
case Killproof::harvestCM: return Localization::STranslate(KMT_HarvestCM_Short);
default: return Localization::STranslate(ET_Unknown);
}
}
Expand All @@ -103,6 +104,7 @@ const std::string& toStringLong(Killproof e) {
case Killproof::maiTrinCM: return Localization::STranslate(KMT_MaiTrinCM_Long);
case Killproof::ankkaCM: return Localization::STranslate(KMT_AnkkaCM_Long);
case Killproof::ministerLiCM: return Localization::STranslate(KMT_MinisterLiCM_Long);
case Killproof::harvestCM: return Localization::STranslate(KMT_HarvestCM_Long);
default: return Localization::STranslate(ET_Unknown);
}
}
Expand Down
4 changes: 4 additions & 0 deletions killproof_me/Killproofs.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ enum class Killproof : int {
ministerLi = 37,
ankkaCM = 38,
ministerLiCM = 39,
harvestCM = 40,

// no final entry anymore, use `magic_enum` to iterate over the enum.
};
Expand Down Expand Up @@ -280,6 +281,9 @@ class Killproofs {
case 96419:
killproofs[Killproof::ministerLiCM] = amount;
break;
case 95986:
killproofs[Killproof::harvestCM] = amount;
break;
default: break;
}
}
Expand Down
Binary file modified killproof_me/Lang.h
Binary file not shown.

0 comments on commit 5540a75

Please sign in to comment.